Earlier quoted context omitted.
If it didn't exist in the first place, then you had no business searching for it. You should have just known not to look. :)
I like this joke, it kind of reminds me of the difference between `find_by_id` and `find` in ruby on rails. In the former, if a result can't be found it will return `nil` but in the latter it expects the record to exist and so will raise an exception if it can't be found.
Suicide Linux
111–120 of 135 posts
Re: Suicide Linux
#112> The reaction from the OS is actually rather underwhelming. Somehow related, a coworker at a previous place unmounted some disks on an old AIX production box. It took him a solid minute to realise he had mistakenly unmounted / due to a typo (yes it was possible) as old processes with already opened files were happily serving stuff and only new attempts at opening files were beginning to produce errors. Also, a simil…
Years ago, I forget how, I managed to wipe the partition table of a DOS PC. I ended up reconstructing it by hand using MS-DOS Debug and a copy of Peter Norton's book. Another fun one: "killall" on Linux kills processes with names matching a string. "killall" on Solaris reboots the machine ...
Re: Suicide Linux
#113Earlier quoted context omitted.
A friend of mine aliased `git status` `git statsu`; I, being lazier, chose `git st`. Any time saved I lost by not copying his other alias, `c = commit -amSTUFF`...
I must be lazier. I use `gitst` for `git status`. That is 1/6 shorter and IMO not harder to remember.
alias add='git add'
alias st='git status'
alias ci='git commit'
alias br='git branch'
alias di='git diff'Re: Suicide Linux
#114I've added a counter (of successful commands in a row) to my bashrc. I've seen it as high as 120. function promptCommand() { LAST_STATUS=$? # Set title of window to dir, then add new line to prompt. PS1='\[\e]0;\w\a\]\n' if [ $LAST_STATUS -eq 0 ]; then ((successes++)) PS1+='\[\033[1;32m\][$successes]' else successes=0 PS1+='\[\033[1;31m\][0 $LAST_STATUS]' fi PS1+='\[\033[0;32m\] ' PS1+='\w $(date +%H:%M) \$ \[\033[0m…
Man, I hope you don't use grep very often (by default it uses exit code 1 when it doesn't find anything).
Not to mention tar which is just impossible to get right on the first try.
Re: Suicide Linux
#115This reminds me of Vigil, "the eternal morally vigilant programming language" https://github.com/munificent/vigil
Re: Suicide Linux
#116> The reaction from the OS is actually rather underwhelming. Somehow related, a coworker at a previous place unmounted some disks on an old AIX production box. It took him a solid minute to realise he had mistakenly unmounted / due to a typo (yes it was possible) as old processes with already opened files were happily serving stuff and only new attempts at opening files were beginning to produce errors. Also, a simil…
(Hilarious and unnerving)
Re: Suicide Linux
#117Re: Suicide Linux
#118Earlier quoted context omitted.
Don't miss his work at SCP wiki, either. http://www.scp-wiki.net/qntm-s-author-page
Visiting that page on mobile asked for permission to record audio and take photos...
Re: Suicide Linux
#119> The reaction from the OS is actually rather underwhelming. Somehow related, a coworker at a previous place unmounted some disks on an old AIX production box. It took him a solid minute to realise he had mistakenly unmounted / due to a typo (yes it was possible) as old processes with already opened files were happily serving stuff and only new attempts at opening files were beginning to produce errors. Also, a simil…