HNHacker News
TopNewBestAskShowJobs

16s

3,211 karma · joined June 25, 2010

submissionscomments
16s··on Data Structures using C++
Understanding the C++ std containers is almost a complete lesson in data structures. std::set is typically a red black tree, std::unordered_set is a hash table, etc. Looking at how these containers are implemented and understanding how/when to use which really separates the men from the boys when it comes to scaling and efficiency.

You can probably learn the concepts from other languages, but it's been my experience that C++ devs typically understand these concepts more so than most.

16s··on Google's ‘Gopher Team’
Have any heavy C++ devs switched to go? What's the major advantage/compelling reason to switch? It seems to me that Go is more comparable to Python/Ruby and Java on the Web, but maybe I'm wrong.
16s··on Fuck Off As A Service (FOAAS)
ISP rotated out the IP... DHCP. I'll find a static one someplace and put it up.

Edit: This works until 3:30 PM today (East Coast USA time):

    telnet insult.16s.us
16s··on Fuck Off As A Service (FOAAS)
That was inspired by this Great Santini quote:

That was the man who dandled me on his knee when I was a young boy—the Great Santini. I once introduced my father when I was giving a talk like this, and I said, "My father decided to go in the Marine Corps when he found out that his IQ was the temperature of this room."

My father got up right behind me. He stared down at the audience and he said, "My God, it's hot in here. . . it must be at least 165 degrees."

16s··on Fuck Off As A Service (FOAAS)
Telnet is simpler... I call this my random insult service and it can run on any TCP port. It's not as rude as saying "Fuck Off" as it is meant to be humorous and is intended for all the script-kiddie port scanners out there:

    telnet 108.4.184.93
16s··on Female developers as a perk
A classroom full of guys is why some people (guys and girls) don't major in engineering.
16s··on Linux 3.11 Officially Named "Linux For Workgroups"
I was part of a Windows system install in 1993 for a mid-sized corporation. At that time, Windows 3.11 was wonderful. People were amazed by it. There were no writable CDs back then (floppies ruled), but it was being researched and people were excited about the huge storage potential. Things have changed a lot since that time, but some things have stayed the same (red black trees are still red black trees). MicroSoft is still a heck of a systems programming shop, but back then, they were God.

The Linux name change is a fitting tribute to Windows system programmers everywhere.

16s··on Systemd is not portable and what this means for our ports
When higher-level software begins requiring systemd (Gnome, KDE, etc.), the BSDs and other non-Linux, but Unix-like operating systems will no longer be able to use that software.
16s··on Attention, Shoppers: Store Is Tracking Your Cell
Were it not for their name, "Cookies" would not be generally accepted. We should have named them "Roaches", then no one would say, well it's just a roach.
16s··on Enough with the JavaScript already
All the includes are insane as well. Run Noscript or any other JS blocker and visit a few big sites and you'll see that you end up running JS from half the Internet.

I'm joking of course, but some sites have dozens of includes from other sites, advertisers, CDNs, etc.

16s··on Kremlin security agencies buying typewriters "to avoid leaks"
If you are willing to risk smuggling one in and are foolish enough to think they cannot detect the radio waves, then go for it.
16s··on Kremlin security agencies buying typewriters "to avoid leaks"
Collect cellphones at door. Put them in steel cabinet. When workers leave, they can get the phones on the way out.
16s··on Why I don't touch crypto
Anyone wanting to learn more about information theory, decrypting to multiple plaintext messages or unbreakable encryption would find it interesting. OTP is an edge case and it does not scale (I understand that), but is useful for small messages between two parties when privacy is paramount. Government states have used it.

Also, I can't find any other OTP source code that compiles and works.

16s··on Why I don't touch crypto
I wrote some "home made" crypto about a year ago. It's a one-time pad implementation.

http://16s.us/FreeOTP/nsa/

The math behind OTP is pretty simple, but I may have made a mistake. I've posted the source code to crypto forums, HN, wilders security and emailed it to several prominent crypto developers/experts. No one seems to care nor want to look at it in-depth.

I've worked as a dev where we encrypted research data using standard, industry-accepted crypto (RSA and symmetric AES, etc) as well.

Having said that, I'm not an expert. And the real experts (Bruce Schneier) won't verify anything. They just say, "It's not been broken yet, which is a good indication."

Dive in and write some crypto code. Do it and make mistakes. That's how you learn. Not every program is life or death/mission critical. And if you never do it, you won't learn how. We learn by making mistakes.

Tarsnap is nice crypto code if you like C. It's easy to read too. I have no relation to Colin Percival or tarsnap. He's an expert, and even he makes mistakes:

http://www.daemonology.net/blog/2011-01-18-tarsnap-critical-...

16s··on What Python developers need to know before migrating to Go
You asked why they would do this. I answered your question. Maps are sets. And by implementing map, you can use it as a map or a set. Perhaps you're not looking for an answer to your question?

Say I implement log, but not log2. If you understand what log is and how to use it, you have log2. If you don't understand this, you ask why log2 is not provided.

16s··on What Python developers need to know before migrating to Go
A map is a set. In a map, the key and value can be different things. In a set, they are the same. That's the only difference. They are both associative containers.
16s··on What Python developers need to know before migrating to Go
"No built-in type for sets (have to use maps and test for existence)... In absence of sets, have to write your own intersection, union etc. methods"

In my mind, a map is a set. They are both Associative containers. It's just that the key and value can be different things in a map while in a set, the key and value are the same thing.

Edit: I speak from a strong C++ viewpoint, but maybe Go is not like that (I'm not sure why it would not be): https://en.wikipedia.org/wiki/Associative_containers_%28C%2B...

16s··on What Marshmallows Tell Us About Silicon Valley
Long article, but worth reading. Interesting take as well. I never thought of the marshmallow test in terms of trusting the reward (more marshmallows) will come, but that makes a lot of sense.

I trust they'll bring more, that's why I wait and work hard.

16s··on Text of letter to Edward Snowden from his father and father’s attorney
Laws make things legal or illegal. They don't make things right or wrong. The Declaration of Independence was illegal, and the men who signed it were wanted dead or alive, but it was the right thing to do.
16s··on [dead]
How can you tell if you are dead?
16s··on Free One-Time Pad Encryption Software
Hello HN,

I wrote FreeOTP about a year ago. With the recent privacy concerns in the news, I wanted to share it with others and get feedback and suggestions.

An acquaintance of mine, who is a professor of math at Virginia Tech and who teaches cryptography, reviewed the code and encrypted and decrypted some messages, but we didn't do much with it after that.

It's alpha software, but it seems to work OK on Windows, Mac and Linux. I post test messages on twitter (user FreeOTP) with pads so that anyone can decrypt them. Would be neat if others would encrypt something and send me the pads and encrypted messages so I could experiment more.

Let me know what you think. Would really appreciate any feedback with regard to the crypto implementation.

16s··on The NSA can store communications of US citizens for up to 5 years, sans warrant
Many Americans have multiple Facebook accounts. Corporations do too.
16s··on NSA admits listening to U.S. phone calls without warrants
Most American's don't care. They are too busy on Facebook or playing games on their iphone/android, taking pictures of themselves in the bathroom, etc.

The Native Americans gave their land away for beads. Modern Americans give their constitutional rights away for electronic gadgets that they can play with.

16s··on Who is Satoshi Nakamoto, the creator of Bitcoin?
This is not uncommon in crypto, Truecrypt devs are anonymous as well: "The developers of TrueCrypt have been only anonymously referred to on the site as “The TrueCrypt Foundation” since 2010,[44] though there are potentially good reasons related to privacy why they might have chosen to remain thus." http://en.wikipedia.org/wiki/Truecrypt
16s··on The Elves Leave Middle Earth – Sodas Are No Longer Free (2009)
Thank you for being the adult in this thread. +1
16s··on The Elves Leave Middle Earth – Sodas Are No Longer Free (2009)
I'm not sure about that. If management won't let you name the servers after characters in your favorite sci-fi movie, then that is an indication that names matter (ns1 for DNS rather than gandolf or papa_smurf or whatever) and that management is playing the role of the adult while you are acting like a child.

If you want to name servers after fairy tale characters and you will have a tantrum if management won't let you, then you are not mature enough to work for a company. It's called growing-up and being responsible.

16s··on Surveillance and the Internet of Things
I've emailed him before. He replied to the email. I think this is how normal people use email. Just my experience.
16s··on Chinese Hackers Resume Attacks on U.S. Targets
Many of these security Companies are like preachers. They need a devil so that they can sell their salvation. China seems to be the devil right now. In a few years, it'll be something or someone else.
16s··on Airline industry divided over passenger electronics
RF is somewhat like magic. Crappy 802.11 devices can cause interference with radios and antennas. I have one computer system that I can't use in the same room with a HAM radio. It causes too much interference. When I shut it off, everything works fine.
16s··on Linux code is the 'benchmark of quality,' study concludes
The OpenBSD devs have been very critical of it. That may just be sour grapes, but they may have some valid criticisms as well.
← PreviousPage 4 of 30Next →