Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Calzifer
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
61.
▲
by
Calzifer
3y ago
Java (since version 9) has -version which prints to stderr and --version which prints to stdout (also with slightly different content). Same for -showversion and --show-version and to get back on topic -help -h and -? print to stderr while
62.
▲
by
Calzifer
3y ago
Even better 'du -h | sort -h' for human readable sizes.
63.
▲
by
Calzifer
3y ago
I would prefer if Debian also had alphabetic release names. With Buster, Bullseye and Bookwork I just can't memorize the order and age of those versions.
64.
▲
by
Calzifer
3y ago
Not very convinced yet. I would expect it to fail/not work quite quickly for cases which are "worth" debugging. For the first example I would just place the breakpoint on the return. The highlighting is quite nice but I see n
65.
▲
by
Calzifer
3y ago
Annoying. Had recently trouble with a translation file (Java properties format). Traditionally it is all ASCII with \u1234 escape sequences. Well except for that recently added "single quote" which is actually some unnecessary (an
66.
▲
by
Calzifer
3y ago
> * Footer updated to © 2023 X Corp. The footer is this way for month already. And secondary resources like developer.twitter.com will likely stay inconsistent for a long time (probably forever). I'm still kinda surprised they actua
67.
▲
by
Calzifer
3y ago
Text rendering and transparency (not always together) torture me to often :( Quite recently I noticed that Java2D text rendering cheats the same way as Firefox and Chrome described in the overlapping example. The character Ø can be expresse
68.
▲
by
Calzifer
3y ago
Another variant which I overlooked to often is if you have a construct which returns an error but does not exit the script later move it in a function and now it does exit the script. set -e [[ 0 == 1 ]] && true echo Status:
69.
▲
by
Calzifer
3y ago
> One nice thing about bash is the ${var@Q} syntax that is great for printing stuff and deals with the potential for stuff that affects the terminal in a much nicer way than piping through tr. An alternative which works in both Bash and
70.
▲
by
Calzifer
3y ago
> You need to enable many flags to make it POSIX compatible. or use 'emulate sh' to enable many flags at once. (and I personally would prefer if other shells would behave like Zsh and not word split unquoted variables by defaul
71.
▲
by
Calzifer
3y ago
What I miss from jq and what is implemented but unreleased is platform independent line delimiters. jq on Windows produces \r\n terminated lines which can be annoying when used with Cygwin / MSYS2 / WSL. The '--binary' o
72.
▲
by
Calzifer
3y ago
So disgusting round like any UI/Website refresh in the last few years. You can look at any of the comparing screenshots find an UI element which had a sharp corner previously, it is round now.
73.
▲
by
Calzifer
3y ago
Or MSYS2. Other tricky variants is using Windows commands (which typically use '/' as option marker), e.g. $ tasklist /V ERROR: argument/option invalid - "C:/msys64/V" or the time I wan
74.
▲
by
Calzifer
3y ago
Thanks, with this keyword I found https://devblogs.microsoft.com/oldnewthing/20190618-00/?p=10... In context of ADS the first thing I imagined was storing the compressed and uncompressed file alongside. (which is
75.
▲
by
Calzifer
3y ago
One thing that make Windows paths wired is that Windows API, NTFS and most Windows tools have different restrictions on file paths. NTFS would accept almost anything. The Windows API (I think of the old Win32 one) would apply most restricti
76.
▲
by
Calzifer
3y ago
Are you sure we mean the same thing? You seem to talk about a specific command line argument of the compact command with a Windows typical (and IMO ugly) option style with '/' instead of '--' as option marker and &#
77.
▲
by
Calzifer
3y ago
Any data stream which is not the first one. Data stream is basically the file content and on NTFS a file can have more than one. In practice it is comparable to extended attributes in the Linux world but somewhat superior. But like extended
78.
▲
by
Calzifer
4y ago
Well, sounds like this pull request doesn't get merged. https://github.com/twitter/the-algorithm/pull/234
79.
▲
by
Calzifer
4y ago
oh-my-zsh has a quite interesting changelog system. Every commit¹ summary is prefixed in a standardized way which is later used to generate² a nicely formatted and categorized list of changes. ¹ https://github.com/ohmyzsh&#x
80.
▲
by
Calzifer
4y ago
Not so convincing if even the most basic example does not work completely. The Git example video/gif fails to push because it creates a repository with branch main and wants to push master. Seeing all those "Shell AI Helper"
81.
▲
by
Calzifer
4y ago
> I wonder what happens if they lose your money due to bugs or even intentionally - will they then happily accuse you of forging the PDFs because they're unsigned? > With paper that'd be not so trivial, in my country the pap
82.
▲
by
Calzifer
4y ago
It wrote a lot of incorrect tests at this point not only when non-Latin characters where involved. Look at the mixed case tests below. Always the same string but sometimes a palindrome and sometimes not. Same for the trailing whitespace tes
83.
▲
by
Calzifer
4y ago
I'm not a chess expert but I would expect there is a lot of information available about chess openings but not so much about midgame (it sometimes appears as if you just play a bunch of standard moves before the actual game begins). On
84.
▲
by
Calzifer
4y ago
Also the plot of an old danish movie. https://en.wikipedia.org/wiki/Strike_First_Freddy
85.
▲
by
Calzifer
4y ago
Since the list mentions grep -o (--only-matching) and regex. Here is my preferred trick to extract a specific part of a line and circumvent the lack of capture groups in grep. Imagine you have a line containing prefix 1234 suffix and
86.
▲
by
Calzifer
4y ago
The less variant is good if you only want to follow for a short time or check for new output once since it can be enabled/disabled in less itself with 'F' and Ctrl+c and then you can again scroll and search in less. And regar
87.
▲
by
Calzifer
4y ago
Spaces in filenames is more a Bash problem. Zsh does far less automatic word splitting. > Note in particular the fact that words of unquoted parameters are not automatically split on whitespace unless the option SH_WORD_SPLIT is set; see
88.
▲
by
Calzifer
4y ago
> Does it matter if lsof is slower than ss? Not really. I just mentioned it because it was notably slower than ss. I did not actually measured it, just saw it when trying the example. From my 4 points I wouldn't hold the first two a
89.
▲
by
Calzifer
4y ago
Well that is one of the problems when suggesting shell snippets. There are many similar ways to do the same thing¹ but most have some caveats or work on one system but not the other. And when asking the AI there might be not enough context
90.
▲
by
Calzifer
4y ago
> Also if tool is not installed, can ask how to install it This is actually a question I'm now really curious what the AI would answer since there are so many different correct answers (apt? yum? zypper? pacman? xbps?) and no indica
More ›