News for hackers. Stuff that matters.

dsy

Re:AK47 assault rifle inventor Kalashnikov dies at 94 on Monday December 23, 2013 @02:02PM (#6955926)
However, pride in his invention was tempered with sadness at its use by criminals

This makes me wonder if when I am 94, people will look at me, a data scientist, in much the same way: "well of course AK-47 was not only used to defend Russia's border but also by criminals and militant countries to kill a ton of people"

  :s/AK-47/your favorite AI algorithm/

  :s/defend Russia's borders/some harmless ad targeting platform/

  :s/criminals and militant countries/aggressive BigCo/

  :s/kill a ton of people/something really evil/
Clearly, it's a lot easier to see the evil consequences when you design a rifle. And yet, maybe I'm just being blind too.

</technophobic comment. back to work on some convolutional neural network implementation, and back to job hunting at companies that promise "don't be evil", rather than "won't be evil">

Its comparative simplicity made it cheap to manufacture, as well as reliable and easy to maintain

  "ayy
Edit: typos (thanks herge)
Re:Show HN: Encrypted end-to-end file transfer on Thursday October 10, 2013 @03:53PM (#6529655)
It looks nice and I wish you luck with it. A couple of tips (or nitpicks) regarding wget-gpg:

> filename=$(echo "$1" | sed 's/\// /g' | awk '{ print $4 }')

1. You could remove the sed, if you change the field separator:

  $(echo "$1" | awk 'BEGIN {FS="/"} {print $5}'
(this might be better for file names with spaces in them; though, if I understand your use case, this will never happen, but you might need to deal with space-to-%20 in wsend-gpg and then %20-to-space in wget-gpg...)

2. Or you could just replace this with:

  filename=$(basename "$1")

> filenamed=$(echo "$filename" | sed 's/.gpg//')

3. The problem that this cuts the first occurrence of .gpg in the file name, so nitpick.gpg.nitpick.gpg will become nitpick.nitpick.gpg instead of nitpick.gpg.nitpick

To remove this substring from the end of the string, you can probably replace the pattern with a greedy one or just use:

  filenamed=${filename%.gpg}
EDIT: previous related discussions:

https://news.ycombinator.com/item?id=6083884

https://news.ycombinator.com/item?id=6158719

https://news.ycombinator.com/item?id=6179424

I like your persistence and glad you finally made it to the front page. Good luck.