HNHacker News
TopNewBestAskShowJobs

peripetylabs

172 karma · joined October 9, 2012

submissionscomments
peripetylabs··on U.S. charges Edward Snowden with espionage
The Chinese authorities will hold him until they feel he has given them all he knows, then quickly extradite him to the US.

At that point he will probably try to get to Europe. If he makes it, his appeal to those governments on humanitarian grounds may be weakened by the fact the first country he picked practices capital punishment far more than the US (more than every other country in the world combined):

http://www.amnesty.org/en/death-penalty/death-sentences-and-...

He could have fled to Europe in the first place just as easily. For example, US citizens are exempt from visa requirements for short stays (90 days) in France -- la Patrie des droits de l'homme -- from where he would have had direct access to the ECtHR...

peripetylabs··on How Browsers Store Your Passwords (and Why You Shouldn't Let Them)
Every browser seems to implement its own password management scheme. None of them are as good as the same functionality that already exists in the operating system. Browsers should request access to passwords from the OS when needed, perhaps once per session.
peripetylabs··on NSA whistleblower Russ Tice goes on record with new revelations
Technically the NSA is a part of the DOD. They assist the ODNI which is civilian, although its leadership role is limited.
peripetylabs··on Microsoft Said To Give Zero Day Exploits To US Government Before It Patches Them
I think the US government is not on the list because they don't need this program. The NSA finds its exploits directly from the source code, which Microsoft shares with them and many other governments, not second-hand from Microsoft.
peripetylabs··on An encrypted message to Edward Snowden
I hope Snowden realizes that none of this matters if an FBI agent is sitting beside the reporter as they communicate.
peripetylabs··on An encrypted message to Edward Snowden
An open message to Snowden: this reporter would hand over his private key in a second.
peripetylabs··on Jordanian citizen was denied re-entry to the US on eve of his PhD defense at JHU
He probably pissed off some member of the royal family, whom are more important to the US than intellectuals.
peripetylabs··on NSA leaker Edward Snowden: U.S. targets China with hackers
Although this wasn't news to most people here, keep in mind that the US has always denied doing economic espionage, against China or anyone else. The Snowden leak also revealed that the largest target of US espionage in Europe is Germany -- I can't think of any reason for that other than economic espionage. This certainly raises questions.
peripetylabs··on Learn C
There exist proof and verification tools for C, like ACSL and Frama-C, [1] or LCL and Splint. [2,3] Not to mention the myriad of static and dynamic analysis tools. You can prove that a piece of C code does or doesn't contain certain bugs -- this is not the case for higher-level languages (except perhaps Haskell and ML). That is why C is used for highly sensitive projects like avionics.

I would say: learn C and high-level languages.

[1] http://frama-c.com/acsl.html

[2] www.hpl.hp.com/techreports/Compaq-DEC/SRC-RR-74.pdf

[3] http://splint.org/

peripetylabs··on Python's Hardest Problem (2012)
I'm glad I came across this article. I'm learning Python and was given that advice to use multiprocessing rather than threading, but hadn't researched why. Very informative, thanks for sharing.
peripetylabs··on A Framework for Creating Reusable Charts with d3.js
This looks great. It could be the PGFPlots of Javascript.
peripetylabs··on Thoughts on Matasano Security’s Critique of Javascript Cryptography
Without going into the technical details described by other commenters here, this is my understanding of the problem (please correct me if I'm wrong): You receive the code that is run, from the same entity you should be protecting yourself from -- that being the Cryptocat server. This is a big contradiction.

One really should assume that if a service can be compelled to act against the interests of its users, that will eventually happen.

peripetylabs··on The New York Times Told Me To Take This Down
The fact that their website still doesn't have a viewable demonstration of their software suggests it actually isn't so easy to make interactive content like Snow Fall.

The only thing I could find was this very annoying video: http://www.youtube.com/watch?v=vUA62gHzVpA

peripetylabs··on Ask HN: I'm lost. Please help
You can always put the idea on hold for a while, and find regular work until you decide to go back to it. The work you put into it so far isn't going anywhere.
peripetylabs··on A faster next-power-of-two algorithm
To me, the next power of two after 4 is 8, not 4. If you prefer, you can add a line to simply return the input if it is already a power of two:

http://en.wikipedia.org/wiki/Power_of_two#Fast_algorithm_to_...

(Edit: You forgot to subtract one before setting the lower bits and incrementing. If you omit that step, both these algorithms give the same result.)

Actually this algorithm is faster for smaller numbers too, because it always performs less operations in the loop -- one shift as opposed to a shift and a bitwise or.

peripetylabs··on Iron Ring
A ring cut from a single crystal of silicon may be strong enough. Regardless, it would look very nice.
peripetylabs··on "I can't do math" (2001)
We were taught sine, cosine and tangent in the context of how they could be used to derive angles from other angles, not what they were and how they worked. They were presented as tools that could be used in particular ways that had to be memorized.

This has to be the worst things you could do to a student in a math class. In engineering they call it "plug and chug" -- students must plug numbers into a formula they've memorized and come up with an answer.

By the way, we learned trigonometry with the unit circle. If we forgot a formula, we'd just draw a little circle and derive it. I'm always grateful for that teacher.

peripetylabs··on Experimental aircraft speeds to Mach 5.1 in test flight
Past Mach 10, a layer of plasma is formed on the leading surface of the aircraft, which RF cannot traverse. This is also why atmospheric reentry occurs in a blackout. There's a good explanation of the phenomenon here:

http://www.scientificamerican.com/article.cfm?id=piercing-th...

peripetylabs··on Experimental aircraft speeds to Mach 5.1 in test flight
Congratulations on a successful test flight. Aircraft that fly up to Mach 10 can still use radio communication. That wasn't the case with the Falcon Project's HTV-2. I guess the Air Force wants a GPS-guided hypersonic cruise missile.
peripetylabs··on Harder than it looks: rounding a float to the nearest integer
I'm glad the subject is being studied, it's a very interesting problem. Proper solutions are much more sophisticated than it seems. You have to ensure that the checks you use in the checker functions don't themselves cause overflows. If you're interested, I'll write about an algorithm for your WillOverflow function which has been proved correct.
peripetylabs··on How a 17 year old girl won a hackathon
Your question is based on anecdotal evidence. You should instead ask why so few women and girls in your life are inquisitive about their world?

In my personal experience, women are just as inquisitive as men, if not more, as evidenced by the fact that more girls than guys went on to study science after high school. But I wouldn't claim my experience is universally true.

peripetylabs··on High school student faces adult felony charges for setting off chemical reaction
Shame on this so-called school. We've all done this (probably with vinegar and baking soda) only a million times.
peripetylabs··on How To Split A Pizza
In the case of three people sharing one pizza:

Slice the pizza in four, and eat three of the quarters (the two people who aren't slicing picking first of course). Repeat with the remaining quarter until what's left is not worth being disappointed about.

I would never actually do this, but it's a good illustration of limits of geometric series.

peripetylabs··on How to eat healthily on £1 a day
I've always disliked the perception that poor people necessarily eat poorly. Rice, wheat, barley, oats, beans, and root vegetables are grown in abundance in developed countries and so are inexpensive; they do not spoil quickly; and are very healthy. Most vegetables will keep for weeks in a refrigerator and months in a freezer. Sardines (fresh) and eggs provide much better protein than meat.

I think the cost of "healthy food" is mostly rooted in ignorance and a taste for simple sugars:

"For a Brit, there can be no greater comfort food than a custard cream."

There's your problem.

peripetylabs··on Feynman called woman “worse than a whore” for not exchanging sex for sandwiches
Wow, I hadn't read the book and never knew that about Feynman. Very disappointing.
peripetylabs··on Ask HN: Cross platform build testing?
Oh, I see now. The only service I know that comes close is the openSUSE Build Service:

https://build.opensuse.org/

But it is primarily used for packaging, not testing.

peripetylabs··on Ask HN: Cross platform build testing?
I haven't used it myself, but Buildbot sounds like what you're looking for:

http://trac.buildbot.net

Alternatives include Mozilla Tinderbox and Atlassian Bamboo. If you have success with any of these, I'd love to read about it (I follow your blog) as I've been thinking about the same problem lately.

peripetylabs··on New, Higher-Resolution Image of Boston Marathon Suspect
I should have mentioned this was done client-side, by a Python script:

http://code.google.com/p/fftresize/source/browse/fftresize.p...

Like so (edit: note that you'll have to edit the image first to make it grayscale, and even then this uses a lot of memory...):

    $ python fftresize.py suspect-number-2.JPG 2.0
I just uploaded the image to S3 to share. The script isn't great (grayscale only) because it was written for a blog post to demonstrate the interpolation method, but I might as well work on it this weekend.
peripetylabs··on New, Higher-Resolution Image of Boston Marathon Suspect
I've interpolated the image linked in the article (suspect-number-2.JPG) to twice its size, if that helps at all (only in grayscale for now):

http://www.eliteraspberries.com/images/suspect-number-2-749.... (17MB)

peripetylabs··on I dropped over 40 grand when I could have spent $100
It is not possible to infer anything from such a low sample population (45). For statistically significant results, you would need to spend on the order of $1,000 not $100.
Page 1 of 4Next →