Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Calzifer
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
Calzifer
2y ago
In my opinion it should remain a shell thing. Adding tilde expansion just complicates the implementation of the tool. Now you need to know the current users home directory. And some tools might implement it incomplete so that '~'
32.
▲
by
Calzifer
2y ago
> And regardless of how you feel about the default the way they went about it broke things for users For users using Debian unstable and even there it was apparently fixed/improved after a week. Debian stable users had no "wild
33.
▲
by
Calzifer
2y ago
> [ERROR] No goals have been specified for this build. > [ERROR] Unknown lifecycle phase "build". And somehow missed that the error message also lists the valid lifecycle phases. (could have instead complained that it list a
34.
▲
by
Calzifer
2y ago
In most cases you could simply use a huge number of lines like head filename -n 1000000000 or use the "inverse mode". Head and tail can print all but the first/last n lines (I just have trouble to remember without man
35.
▲
by
Calzifer
2y ago
Until you realize that some of the expressions in [[ are evaluated as arithmetic expression which has some surprises around array subscript and command substitution. In short, because the following works despite quoting and will execute the
36.
▲
by
Calzifer
2y ago
> The developers are silent as spies. Until just now: https://github.com/matrix-org/matrix.org/issues/2483#issueco...
37.
▲
by
Calzifer
2y ago
Reminds me of the good old times of first generation Google ReCaptcha where I always only entered the one word Google knows and ignored or intentionally mistyped the other.
38.
▲
by
Calzifer
2y ago
Even searching 'float' on docs.python.org brings descent results. At first the author complains about bad search implementations on the documentation sites and then judges Python by the bad google results.
39.
▲
by
Calzifer
2y ago
> Based on our qualitative observations, participants’ long navigation times in Eclipse appeared largely due to time spent scrolling through files full of irrelevant code (as opposed to switching tabs), and failing to see the methods the
40.
▲
by
Calzifer
2y ago
> Have distros gone back to having "/usr/bin/python" available (as opposed to "python3" or something else)? Debian provides two packages python-is-python3 and python-is-python2 to restore the /usr&
41.
▲
by
Calzifer
2y ago
And will likely remain with that major version for the next 20 years since Perl 6 became Raku. https://en.wikipedia.org/wiki/Raku_(programming_language)
42.
▲
by
Calzifer
2y ago
Those are usually connection and no-data timeouts. A total time limit is in my experience less common.
43.
▲
by
Calzifer
3y ago
No, because dict_put will update the limit value if the new pos exceed it.
44.
▲
by
Calzifer
3y ago
Isn't JavaScripts regex one of the worst modern regex implementations? They seem to improve. Negative lookbehind isn't missing anymore [1]. But still lack the handy \Q and \E to escape stuff [2]. [1] https://stackoverfl
45.
▲
by
Calzifer
3y ago
It does, but express doesn't tell it directly in the docs. Instead http://expressjs.com/en/4x/api.html#app.listen sends you to https://nodejs.org/api/http.html#http_server_listen which
46.
▲
by
Calzifer
3y ago
The first time my mother encountered a toggle she tried to actually slide it. I also once saw a website which replaced in a redesign checkboxes with toggles where the cursor changes to a "grab hand" but of cause you cannot grab an
47.
▲
by
Calzifer
3y ago
If I think of square checkboxes I think of sharp corners. Maybe I should write an article "In Loving Memory of sharp corners" because I definitely miss them but they seem to be extinct from the modern Web and GUI in general. If I
48.
▲
by
Calzifer
3y ago
But does it matter? Nowadays even my editor wants to run a server in the background to provide syntax highlighting. People generally don't seem to care and see it as progress.
49.
▲
by
Calzifer
3y ago
aptitude also auto removes dependent packages and is in Debian stable. It has also a useful 'aptitude why package' to say why a package is installed and a nice TUI (which is optional; for the most part it works very similar to apt
50.
▲
by
Calzifer
3y ago
You can skip the uninstall if you use purge. And aptitude (alternative package manager) automatically removes dependent but not required anymore packages when removing/purging a package.
51.
▲
by
Calzifer
3y ago
Depends on how you interpret 'everything' and 'each time'. The default compiler plugin configuration is quite eager to recompile allot if something changed. https://maven.apache.org/plugins/maven-com
52.
▲
by
Calzifer
3y ago
And in keeping with the topic Seafile has a FUSE extension to access this storage system directly. https://manual.seafile.com/extension/fuse/
53.
▲
by
Calzifer
3y ago
No it won't. set -e is implicit disabled for the first command with && and ||. Same for a command after if/while/until and after !. It should only matter if you implicit return immediately after. $ bash -ec '
54.
▲
by
Calzifer
3y ago
> to put `-u` (nounset) in your shebang Any particular reason why in the shebang instead of set -u? > The only exception I typically run across is expansion of arrays using "${arr[@]}" syntax In Bash? Works for me. Edit: ano
55.
▲
by
Calzifer
3y ago
One feature I found very useful when using jq in Bash is the "alternative operator" '//'. result=$(echo "$data" | jq -r '.optional // ""') if [[ -n "$result&qu
56.
▲
by
Calzifer
3y ago
That is documented. Since the mercurial web interface isn't very nice to use I picked a random version. sudo 1.8.6 from 2012 writes in the man page "The sudoers file must not be world-writable,". https://www.sudo.w
57.
▲
by
Calzifer
3y ago
The last three are open, open and won't fix. Not so promising for the flatMap method.
58.
▲
by
Calzifer
3y ago
int s_isdigit(const char* s) { Name does not fit implementation. Should be "contains_digit". Also I would say almost any "issomething" method involving a loop has an opportunity for an early return.
59.
▲
by
Calzifer
3y ago
You can also run arbitrary code at any breakpoint (at least for Java with Eclipse). Want to check the content of a buffered image? Just run ImageIO.write(...) while the application is stopped. Want to check the current working directory? Pa
60.
▲
by
Calzifer
3y ago
I still do this all the time with Java. Especially because the application is rather slow to start or setup whatever I want to debug. It can also influence how you structure the code. In my opinion to the better. If you mutate state all ove
More ›