Live data from Hacker News

Viewing profile — jfhufl

jfhufl

HN member
Joined
Wed, Sep 20, 2017, 3:56 PM UTC
HN karma
70
Public activity
24 items

About jfhufl

No profile information was provided.

Recent public activity

  1. comment
    Comment #39768704

    Yep, makes sense, thanks!

  2. comment
    Comment #39768450

    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. comment
    Comment #39768401

    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 "yes" ; else ; puts "no" ; end…

  4. comment
    Comment #39486151

    Dinky Toys!!! I had Eagles, ships from UFO, a Klingon ship...loved them!

  5. comment
    Comment #38295126

    Wow, I did something like that for my senior project back in '94 using Inventor on an SGI workstation.

  6. comment
    Comment #36496119

    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. comment
    Comment #33506967

    I think that's the major problem with software engineering in general: when is software "done" ?

  8. comment
    Comment #30548819

    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…

  9. comment
    Comment #30065463

    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 (…

  10. comment
    Comment #29554268

    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: h…

  11. comment
    Comment #27626232

    Nothing is "secure or not" - technologies/mitigations are secure against particular attacks. HTTPS is generally secure against passive network eavesdropping, but does nothing to st…

  12. story
  13. comment
    Comment #24664960

    This works too: % cat /tmp/sh var=variables x=$( cat

  14. comment
    Comment #24640552

    I get a lot of mileage out of command | ruby -e 'ARGF.each { |line| #do stuff with line }'

  15. comment
    Comment #20715618

    xclip : https://github.com/astrand/xclip (long pipeline that generates lots of output) | xclip Or even just xclip Now paste where necessary.

  16. comment
    Comment #19810085

    getmntent(3)

  17. comment
    Comment #18969061

    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: …

  18. comment
    Comment #18818497

    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…

  19. comment
    Comment #18675699

    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: htt…

  20. comment
    Comment #18484037

    Like so? % echo 'one\ntwo\nthree' | sed -e 's,$, four,' one four two four three four

  21. comment
    Comment #18140630

    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. comment
    Comment #17664967

    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 …

  23. comment
    Comment #16572027

    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…

  24. comment
    Comment #15491791

    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…