HNHacker News
TopNewBestAskShowJobs

bobbyi_settv

1,472 karma · joined June 5, 2013

submissionscomments
bobbyi_settv··on New in Git: switch and restore
It's not just --help.

When you checkout a specific commit and are now in detached HEAD state, you are by default given the message

    If you want to create a new branch to retain commits you create, you may
    do so (now or later) by using -c with the switch command. Example:

      git switch -c <new-branch-name>

    Or undo this operation with:

      git switch -
bobbyi_settv··on Google broke a conditional statement that verifies passwords on Chrome OS
That technique doesn't work (as well) when you want a single "else" block that is used when either of the conditions is false, which I think is pretty common for this sort of conditional
bobbyi_settv··on Everything useful I know about kubectl
How is this command from the page:

  # Lint a Helm chart
  # Good to put in pre-merge checks
  $ helm template . | kubeval -
different/ better than "helm lint" (https://helm.sh/docs/helm/helm_lint/)?
bobbyi_settv··on A foreign seller has hijacked my Amazon Klein bottle listing
Worse, the klein bottles did nothing to remove my black heads
bobbyi_settv··on Bash PS1 Generator
The Mac equivalent of xclip -i is pbcopy
bobbyi_settv··on What it's like to be cancelled
> Whats the difference between having sex and being a sexual predator?

I don't think it's necessary to answer this because "sexual predator" was literally Noah's description of himself and his behavior (in those words) in the apology post that led to Wizards no longer wanting to work with him.

bobbyi_settv··on Safari 15 on Mac OS, a user interface mess
If I CMD+R on Hacker News, it reloads the page. If I do it on outlook.office.com, it starts drafting a reply to the email I have selected. Reload button does the same thing everywhere.
bobbyi_settv··on HBO Max accidentally sent an integration email test to users
I guess they're going for technically correct since 100% is indeed "a portion"
bobbyi_settv··on Bear plus snowflake equals polar bear
It's somewhat ambiguous because Unicode has a code block for actual runes which are not the same as the "runes" you're talking about

https://en.wikipedia.org/wiki/Runic_(Unicode_block)

bobbyi_settv··on I still like C and strongly dislike C++
Microsoft's compiler did not support C99 for a long time because they did not really think of it as a C compiler or a C/ C++ compiler; it is a C++ compiler. Its support for C90 was explained as being maintained "for historical reasons" ( https://herbsutter.com/2012/05/03/reader-qa-what-about-vc-an... ), but they had no reason to add support for new standards of a language that was outside the scope of the project.

It's odd for the author to complain about the commingling of C and C++ in compilers and then complain about Microsoft specifically not doing that.

bobbyi_settv··on FDA Moves to Ban All Menthol Cigarettes and Flavored Cigars
As the press release says, menthol was "the last allowable flavor".

It's not the government banning one specific flavor because it is popular with black people. It is the government first banning every flavor except the one popular with black people and now circling back to make the rules uniform.

bobbyi_settv··on iOS 14.5 delivers Unlock iPhone with Apple Watch, new privacy controls, and more
The fact that it can be unlocked with a picture doesn't mean it has no security.

The main use case for phone locking is that you leave your phone in a cab, a bar or wherever else in public and someone picks it up later. That person isn't going to know who you are and have a picture of you. They're still prevented from being able to take the phone they just saw laying around and go through your emails, etc.

bobbyi_settv··on Apple sued for terminating account with $25k worth of apps and videos
Could this lead to people intentionally violating terms to try to get their account terminated so that they can get money back for every in app purchase, etc, they've ever made?
bobbyi_settv··on From WinZips to GIFs, Jacob Ziv’s Algorithms Have Powered Decades of Compression
Did the word "compression" get cut off due to title length? Or is it intentionally being compressed in the original title as a meta-joke? Turns out it's the former
bobbyi_settv··on Google’s copying of the Java SE API was fair use [pdf]
> One of the big open questions is "are APIs copyrightable?" The court skirted that question, and instead focused on whether it was fair use:

Doesn't deciding that it's fair use specifically mean that they think it is copyrightable? The fair use doctrine specifically refers to the use of copyrighted material.

bobbyi_settv··on Vim Clutch – A hardware pedal for improved text editing (2012)
I need to get in the habit of using those. I tend to do ct<space>
bobbyi_settv··on Vim Clutch – A hardware pedal for improved text editing (2012)
ci also can take a number for nesting level. For example, c2i( will change within the second level of surrounding parens rather than the innermost
bobbyi_settv··on Wing Commander III
Tom Wilson later gained some internet fame for this song:

https://www.youtube.com/watch?v=iwY5o2fsG7Y

bobbyi_settv··on Git's list of banned C functions
It doesn't just buy safety. It also makes it possible to include null bytes inside of strings.
bobbyi_settv··on Scientists talked to people in their lucid dreams
Keep a dream journal. Meaning, when you wake up each morning, immediately write down everything from your dreams.

Everyone says they can't do this because they don't remember their dreams, but if you start trying to do it, you will probably find that when you have just woken up, you remember a little, and as you start writing, more comes back to you. Over days of doing this, you will get better at it.

After doing this for a while, try to recognize patterns, particularly specific things that show up with some frequency in your dreams that are indications you are dreaming. For example, there is someone you went to high school with that you encounter semi-often in your dreams, but never see anymore in real life. If you are talking to that person it means you are dreaming.

Try to brainwash yourself, really drill into your head over and over, that when you see this person, you are in a dream, and you should start trying to activate your mind and be conscious of what is going on. Also, really drill into your mind the idea that if you every find yourself vaguely wondering "am I dreaming right now?" the answer is ALWAYS yes.

With luck, the next time you encounter this situation in your dream, there will be a nagging feeling that there was something you were supposed to remember, and then you'll realize what it is and start to wake up your mind within the dream. After a few times, your mind will start to recognize when it is in a dream and become lucid sometimes without the specific trigger.

This is the technique I read in a book decades ago in my early teens and didn't expect it to actually work, but it did. I don't get there regularly (and never did), but I still get to full on lucid maybe once every month or two and it is amazing. It's so incredible to be able to look at the world around you and realize that everything you are seeing is created by your mind.

It gives a deep appreciation for how powerful your mind is and how much more there is to it than just what you are conscious of, since in the dream your conscious mind feels the same as when you are awake, but you know that all of the seemingly external stuff around you and even people that you speak to are also "you". If your conscious mind and everything that seems external to it are really part of the same connected whole when you are dreaming, could the same be true when you're awake?

Even if this approach doesn't work for you, keeping a dream journal for a while can be super interesting anyway.

FWIW, this was the book: https://www.amazon.com/gp/product/0805025006/

I haven't seen it in decades, so can't really vouch for it too much. From what I remember, it explained the approach I've outlined above in not much more detail than I just did and most of the rest was filler talking about what dreams are.

bobbyi_settv··on A Vim Guide for Advanced Users
I rarely actually do it because f and t motions, possibly with a number, can usually handle these cases. For example, c3tA to change up to but not including the third capital A after the current position
bobbyi_settv··on A Vim Guide for Advanced Users
The non-barbarian way to avoid counting characters when there's no convenient motion is visual mode. Hit v, then hit l until you've highlighted the part you want to change, then hit c to start changing it.
bobbyi_settv··on RFC 1178: Choosing a name for your computer (1990)
An opponent being able to remove one of your lands with small creature removal or any ping effect or -1/-1 counter is scary.

It sees play (I think) in Legacy and Commander where there are a bunch of specific powerful ways to abuse it (e.g., combo off early with Arbor + Gaea's Cradle to generate a bunch of mana), but you're not going to pull that off often in cube, so it would mostly be a basic forest that your opponent can easily remove.

bobbyi_settv··on Hobbyists beat professional designers in creating novel board games
Definitely disagree. There are other successful games that use deckbuilding as an element of a larger game (in the vein of Clank or Quest for El Dorado), but no pure deckbuilding game has come close to overtaking Dominion as top dog.

If we use logged plays for the past month on BGG as one datapoint, Dominion has more than than Aeon's End, Ascension and Marvel Legendary combined.

Sure, there is a specific population of people who log their plays and it differs from the gameplaying public as a whole, but if anything it veers more towards "cult of the new" and away from people who still play an older game because it's what they have.

EDIT: It looks like Star Realms has almost as many logged plays this month as Dominion, but I would still maintain that Dominion is in no way "superseded" even if it is no longer the only relevant game in its genre.

bobbyi_settv··on What am I running inside my bash? (2014)
Maybe it's for portability. The /proc filesystem doesn't exist on every OS supported by gdb.
bobbyi_settv··on OO in Python is mostly pointless
It's just for historical/ backwards compatibility reasons. These types have been part of Python from before it had classes. Today, they are classes and can be subclassed, etc, but too much code relies on their existing names to change them to match the modern convention.
bobbyi_settv··on Kubernetes is deprecating Docker runtime support
> We encourage you to evaluate moving to a container runtime that is a full-fledged implementation of CRI (v1alpha1 or v1 compliant) as they become available.

So Docker is deprecated, but no replacement is yet available?

bobbyi_settv··on Guidance to developers affected by effort to block less secure browsers, apps
Even if you don't care if someone hacks your Google account, the rest of care when we start getting deluged with spam from that Gmail address.
bobbyi_settv··on On the Beauty of Python's ExitStack (2015)
I think the idiomatic way is with weakref https://docs.python.org/3/library/weakref.html

Particularly note "finalize provides a straight forward way to register a cleanup function to be called when an object is garbage collected"

bobbyi_settv··on South Park creators have new political satire series with AI-generated deepfakes
Until very recently, I thought they wrote all the episodes without outside involvement, but then I recently came across this clip where Bill Hader talks about being part of a "South Park retreat" where they bring people to brainstorm episodes

https://www.youtube.com/watch?v=XdZnGz9CWpU

Page 1 of 11Next →