Hacker Newsnew | past | comments | ask | show | jobs | submit | bobbyi_settv's commentslogin

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 -


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


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/)?


I could be wrong here, but I think `helm lint` just checks that the chart is formed correctly — Go templating and all.

I don't think it validates the Kubernetes resources.

Here's an example:

$ helm create foo

$ cd foo

Then change "apiVersion" in deployment.yaml to "apiVersion: nonsense"

In the linting, I got

$ helm lint ==> Linting . [INFO] Chart.yaml: icon is recommended

1 chart(s) linted, 0 chart(s) failed

$ helm template . | kubeval -

ERR - foo/templates/deployment.yaml: Failed initializing schema https://kubernetesjsonschema.dev/master-standalone/deploymen...: Could not read schema from HTTP, response status is 404 Not Found


Worse, the klein bottles did nothing to remove my black heads


The Mac equivalent of xclip -i is pbcopy


> 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.


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.


This is one thing I'm grateful for as a Firefox user, I can disallow websites from overriding built-in shortcuts both globally or on a site-by-site basis. I don't believe Safari offers this unfortunately.


Yes, I wish webapps didn't put unnecessary keyboard shortcuts (or disable them by default)


I guess they're going for technically correct since 100% is indeed "a portion"


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)


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.


The MSVC compiler actually has distinct C and C++ compilers (or at least compilation modes). In C++ mode, no C99 is accepted. What's different from clang and gcc is that the MSVC C++ compiler doesn't accept any "modern C" code, while clang and gcc have C++ language extensions for this (for instance clang accepts the full C99 designated initialization feature set in C++).


I think they only moved away from that path due to customer pressure to keep supporting C on Windows.

That is the official excuse to only support C on Azure Sphere, despite the whole security sales pitch.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: