HackerTrans
トップ新着トレンドコメント過去質問紹介求人

jfhufl

no profile record

コメント

jfhufl
·2 年前·議論
Yep, makes sense, thanks!
jfhufl
·2 年前·議論
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.
jfhufl
·2 年前·議論
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' 
    yes
    $ ruby -e 'x = "a25\n" ; if x =~ /^\d+$/ ; puts "yes" ; else ; puts "no" ; end'
    no
Also, you'd want to use something that parameterizes the query with '?' (I use the Sequel gem) instead of just stuffing it into a sql string.
jfhufl
·2 年前·議論
Dinky Toys!!! I had Eagles, ships from UFO, a Klingon ship...loved them!
jfhufl
·3 年前·議論
Wow, I did something like that for my senior project back in '94 using Inventor on an SGI workstation.
jfhufl
·3 年前·議論
If you still have IMAP access, thunderbird supports OAuth2 for connecting to O365 IMAP. tbsync for calendar access. Seems to work pretty well currently.
jfhufl
·4 年前·議論
I think that's the major problem with software engineering in general: when is software "done" ?
jfhufl
·4 年前·議論
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-...
jfhufl
·4 年前·議論
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 packages you don't want). I used to use this at my old job before package managers were ubiquitous.
jfhufl
·5 年前·議論
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/Number_form
    https://www.discovermagazine.com/health/the-rare-humans-who-see-time-and-have-amazing-memories
jfhufl
·5 年前·議論
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 because there are attacks or ways around a particular defense doesn't mean it's worthless, that's why we have defense in depth.