Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jfhufl
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
jfhufl
2y ago
Yep, makes sense, thanks!
2.
▲
by
jfhufl
2y ago
Well, learned something today after reading a bit further in the thread: ruby -e 'x = "a\n25\n" ; if x =~ /^\d+$/ ; puts "yes" ; else ; puts "no" ; end' yes Good to know.
3.
▲
by
jfhufl
2y ago
Unsure what you mean? $ ruby -e 'x = "25" ; if x =~ /^\d+$/ ; puts "yes" ; else ; puts "no" ; end' yes $ ruby -e 'x = "25\n" ; if x =~ /^\d+$/ ; puts &
4.
▲
by
jfhufl
3y ago
Dinky Toys!!! I had Eagles, ships from UFO, a Klingon ship...loved them!
5.
▲
by
jfhufl
3y ago
Wow, I did something like that for my senior project back in '94 using Inventor on an SGI workstation.
6.
▲
by
jfhufl
3y ago
If you still have IMAP access, thunderbird supports OAuth2 for connecting to O365 IMAP. tbsync for calendar access. Seems to work pretty well currently.
7.
▲
by
jfhufl
4y ago
I think that's the major problem with software engineering in general: when is software "done" ?
8.
▲
by
jfhufl
5y ago
I have Number-Form and Time-Space synesthesia - helps with remembering numbers and dates: https://en.wikipedia.org/wiki/Number_form https://www.discovermagazine.com/health/the-rare-humans-who-...
9.
▲
by
jfhufl
5y ago
Would Nix benefit from something like the old CMU depot program? http://www.cs.cmu.edu/afs/.cs.cmu.edu/help/content/unix_linu... Consolidating everything you want into /usr/local (exclude packa
10.
▲
by
jfhufl
5y ago
Interesting - I may have hyperphantasia? Most of my thoughts are accompanied by images, and I can rotate and unfold things. It's so vivid I seem to have two types of synesthesia: https://en.wikipedia.org/wiki/
11.
▲
by
jfhufl
5y ago
Nothing is "secure or not" - technologies/mitigations are secure against particular attacks. HTTPS is generally secure against passive network eavesdropping, but does nothing to stop local file inclusion in a web app. Just be
12.
▲
Mystery Weapon Attacks Continuing, Even on U.S. Soil
(gq.com)
46 points
by
jfhufl
6y ago
|
16 comments
13.
▲
by
jfhufl
6y ago
This works too: % cat /tmp/sh var=variables x=$( cat <<EOT This string has 'single' and "double" quotes and can interpolate '$var' EOT ) echo $x % bash &#x
14.
▲
by
jfhufl
6y ago
I get a lot of mileage out of command | ruby -e 'ARGF.each { |line| #do stuff with line }'
15.
▲
by
jfhufl
7y ago
xclip : https://github.com/astrand/xclip (long pipeline that generates lots of output) | xclip Or even just xclip < /some/file Now paste where necessary.
16.
▲
by
jfhufl
7y ago
getmntent(3)
17.
▲
by
jfhufl
8y ago
Hmmm, well that's why I like Ruby and other languages with functional approaches. Method chaining and blocks are very similar to pipes to me. cat /etc/passwd | grep root | awk -F: '{print $3}' ruby -e &#x
18.
▲
by
jfhufl
8y ago
The only reason I have any vague understanding of this article is all thanks to PBS Space Time on Youtube. It's an amazing series. Must watch if you want to know how much we humans understand about our universe.
19.
▲
by
jfhufl
8y ago
Reminds me of the organ banks in Niven's Known Space, Series. Governments made being sent to the "organ banks" the favored punishment for crimes. Also gave way to OrganLegging: https://en.wikipedia.org/wik
20.
▲
by
jfhufl
8y ago
Like so? % echo 'one\ntwo\nthree' | sed -e 's,$, four,' one four two four three four
21.
▲
by
jfhufl
8y ago
I've found that stevia sweeteners with inulin (not insulin) seen to be beneficial for my gut bacteria. Actually seems to help with "loose days". Sweetleaf is generally what I use.
22.
▲
by
jfhufl
8y ago
One good reason (IMO) for doing "cat file |" is it's easier to grab the command from your history and change it to something like "grep foo file |" rather than if you had run "cmd < file".
23.
▲
by
jfhufl
9y ago
Funny, I love Ruby and it's my primary language of choice, but I'm a heretic, using braces whenever I can: # events per day ndbh.fetch('select ts from tbl').all.map { |row| row[:ts] }.map { |t|
24.
▲
by
jfhufl
9y ago
Seems to me the main difference is that all the particles in the gyro are trying to go in a straight line, but can't due to being a part of a rigid structure. You should be able to tell the difference by dropping a ball bearing. It wil