HNHacker News
TopNewBestAskShowJobs

eliteraspberrie

846 karma · joined September 25, 2013

www.eliteraspberries.com
submissionscomments
eliteraspberrie··on Hackers Hit Mt. Gox Exchange's CEO, Claim To Publish Evidence Of Fraud.
Go straight to the article: https://www.readability.com/articles/3bukomx5
eliteraspberrie··on A Former CIA Agent Talks Spycraft
An operative is not an agent, i.e. case officer. The original articles in Pursuit Magazine (listed below) correctly describe her as a former agent. Whoever wrote this summary doesn't understand the distinction.

http://pursuitmag.com/lindsay-moran-former-cia-agent-talks-s...

http://pursuitmag.com/lindsay-moran-former-cia-operative-why...

In any case, you won't find anything published in the US that the CIA would not agree to. Everything written by current or former agents is screened by the CIA's Publications Review Board.

eliteraspberrie··on DEC64: Decimal Floating Point
One difference is with non-numbers. IEEE 754 defines several infinities (positive, negative) and several NaN values. DEC64 seems to simplify things to a single NaN value. That seems more practical for the average use case.
eliteraspberrie··on How our 1,000-year-old math curriculum cheats America's kids
The irony is that all mathematics up to the high school level was historically motivated by practical problems. Algebra began as a system of rules to fairly partition land, for irrigation or inheritance, for example. But most of the high school math teachers are not actually mathematicians, so they themselves have no clue what algebra and calculus are used for. There ought to be incentives for professionals of all fields to go into teaching.
eliteraspberrie··on How to safely generate a random number
Don't take my word for it, check libsodium with Frama-C (as NaCl was) and file the bug report yourself.
eliteraspberrie··on How to safely generate a random number
No, libsodium does not do the same thing as NaCl.

NaCl:

https://gist.github.com/anonymous/9234738

libsodium:

https://github.com/jedisct1/libsodium/blob/master/src/libsod...

eliteraspberrie··on How to safely generate a random number
Use urandom, but that's not the end of it. It may be that urandom supports non-blocking reads. Most implementations only check if read() returns -1 then abort, without checking for EAGAIN, not to mention EINTR, or some other subtleties like making sure not to request more than SSIZE_MAX bytes. The randombytes function in NaCl does it right, unfortunately libsodium did their own thing.

If you use Python, read from os.urandom, which is a wrapper to the system's CSPRNG. Don't use random.randint or random.getrandbits...

eliteraspberrie··on Apple's SSL/TLS bug
Unfortunately the decision to use static analysis tools would have to come from developers who are comfortable admitting they make mistakes sometimes.

It takes a special kind of ego to write an SSL library with no unit tests, not turn on compiler warnings, and not use static analysis tools.

eliteraspberrie··on My children’s book on technology raised 100k within 24 hours – here’s how
An educational app for children's mathematics has been on my mind for years. But I always thought the market was too small. The success of this story is making me think about finally writing one, maybe less technical and more adventurous.
eliteraspberrie··on My children’s book on technology raised 100k within 24 hours – here’s how
The practical advice in this post is gold. Marketing to a select community is true for apps as well as Kickstarter.
eliteraspberrie··on University of Maryland Data Breach
The blind leading the blind:

NSA designated the University of Maryland as a National Center of Academic Excellence in Information Assurance Research. The University of Maryland was also named an Intelligence Community "Center of Academic Excellence" by the Department of Homeland Security. ... MC2 takes a unique approach in educating the future cybersecurity workforce to serve industry and government needs in Maryland and the Washington, DC metropolitan area.

http://cyber.umd.edu/about

eliteraspberrie··on Julia for Matlab users
CSV is rarely used with Matlab. Can Julia read HDF, H5, or CDF formats?
eliteraspberrie··on Simple Dynamic Strings library for C
I'm aware of arithmetic overflow, thanks. It was the subject of my research (which will eventually be open source, watch www.peripetylabs.com/publications/ if you're interested). See my sizeop library in the meantime: https://bitbucket.org/eliteraspberries/sizeop

I am not dismissive of the problem. I just know from experience that the chances of code like that being fixed at all, let alone correctly, is near zero.

eliteraspberrie··on Simple Dynamic Strings library for C
If it's any reassurance, I had a look at it, and although there is unnecessary signed/unsigned arithmetic, I could not find anything exploitable. Change the types of variables representing an object size, length, array index, and so on to size_t (from int) and it will be fine.
eliteraspberrie··on Show HN: I built this game alone – design, code, music, sound, marketing
It's inspiring to read success stories of indie developers. Thanks for sharing and best of luck.
eliteraspberrie··on Guide to Advanced Programming in C
Good advice. Integer arithmetic is one of the trickiest aspects of C, and dangerous in combination with the manual memory management. For more information, see the free chapter of TAOSSA: http://pentest.cryptocity.net/files/code_analysis/Dowd_ch06....

There are (were) a couple bugs in the example code. Here are a some guidelines that will help avoid those, and most problems with integer operations and the heap in general.

First, don't mix unsigned and signed types in arithmetic; and always prefer the size_t type for variables representing the size of an object.

Second, check for overflow before an operation, not after, like so:

    if (size > SIZE_MAX / 2) {
        goto error;
    }
    newsize = size * 2;
Third, always double-check the arguments to memory allocation functions, especially for zero, because the result is not always well defined.

    if (size >= SIZE_MAX - n) {
        goto error;
    }
    foo = malloc(size + n);
    foo[size] = ...;
eliteraspberrie··on Guide to Advanced Programming in C
It is also impossible for a variable of type int to have a value greater than SIZE_MAX.
eliteraspberrie··on Algorithm Development is Broken
This was (partly) solved in mathematical software with TOMS and Netlib:

http://toms.acm.org/

http://www.netlib.org/

However, if you want to do something non-trivial and you want it done right, hire a computer scientist or mathematician. No amount of crowd will help if no one in the crowd has a clue what they're doing.

eliteraspberrie··on UK reveals footage of 'top secret' drone [video]
The purpose of this program (the Defence Industrial Strategy) was for the UK to be able to develop these drones independently, but there may have been some technology transfer. The French and German governments did the same with the nEUROn.
eliteraspberrie··on UK reveals footage of 'top secret' drone [video]
The challenge for UAV going forward is to operate autonomously. Stealth is useless if its communications with a satellite are obvious, and almost all drones are useless if GPS is jammed. I haven't found any information indicating that the Taranis solves these problems.
eliteraspberrie··on Git tips from the trenches
English is not his first language. No need to write a novel about it.
eliteraspberrie··on Belgian professor in cryptography hacked
His computer was infected after clicking a (bogus) LinkedIn invitation of a non-existent employee of the European patent office.

Just goes to show how effective phishing attacks are. If a professor of cryptography does not check SSL certificates, far less people do so than we think.

eliteraspberrie··on Footage released of Guardian editors destroying Snowden hard drives
Censoring stories, partially or entirely, is standard operating procedure.

The most egregious example is when the New York Times delayed publishing revelations of unlawful wiretapping until after the US elections of 2006, on request of the White House. [1] There was no legitimate editorial reason for that decision.

That behaviour has not changed, and the Guardian is no better. According to ACLU attorney Ben Wizner (self-described "chief legal advisor" to Snowden) the New York Times, the Guardian -- and every other publication which got access to the leaked documents -- did not publish a single document without first consulting with the US government. [2,3]

Personally I don't trust any tax-paying organization to publish information the government does not want published.

[1] http://fair.org/take-action/action-alerts/the-scoop-that-got...

[2] "The journalists who Snowden gave the information to, have in every single case, gone to the government before they have published something." https://www.youtube.com/watch?v=Vs3mFZ4UWME#t=53m (At 53:00.)

[3] "The Guardian has not published a single story that has included NSA classified documents, without consulting with the US government. The same is true for Glenn Greenwald, and the same is true for every foreign journalistic partner. In fact, they put it into their contract, with all of those other publications around the world, that they are not to publish any secret document without giving the US an opportunity to weigh in." http://ww3.tvo.org/video/199289/sentencing-snowden (At 9:40.)

Edit: found a better link to the TVO interview.

eliteraspberrie··on Python Idioms [pdf]
Also note the second argument to the get method specifies the default value to return in case of a KeyError:

    something = d.get('x', default)
eliteraspberrie··on Coursera blocks access to students in Cuba, Iran, Sudan and Syria
There are a few alternatives to PayPal now: Paymill and Sellfy are European companies, for example.
eliteraspberrie··on [dead]
A MATLAB package is not useful on iOS or Android.
eliteraspberrie··on Open for everyone
Then it's time to try Jekyll, Octopress, nanoc, Pelican, Hakyll, etc.
eliteraspberrie··on Richard Stallman - Re: clang vs free software
I think most people outside of technology wouldn't easily understand copyleft, and a day might come when I depend on those people. So it's a trade-off between my rights, users' rights, and my peace of mind. The rights I give up, by choosing BSD rather than GPL, I don't think I could enforce without losing my peace of mind.
eliteraspberrie··on Why I'm Moving My Business From San Francisco To St. Louis
In the Toronto area this week, temperatures are about -20 degrees Celsius (-4 F) with 40-60 km/h (25-40 mph) wind. ;)
eliteraspberrie··on Richard Stallman - Re: clang vs free software
I invite those working on major add-ons to LLVM to release them under GNU GPL version-3-or-later.

I don't use the GPL because I cannot honestly say that I understand it entirely. I understand copyleft, but the document is written for lawyers and I am not one. I can't expect users to read it either, much less understand it.

I use the BSD licenses because they are simple and clear. If I ever had to defend my intellectual property, I could do so myself, and the case would be over quick. That is more important to me, as a developer without access to lawyers, than ideological battles.

← PreviousPage 5 of 9Next →