News for hackers. Stuff that matters.

omra

Re:ChessBoardJS on Friday July 26, 2013 @11:38AM (#6108760)
I don't think it's meant to play chess, it's just to show chess positions (see the example page: http://chessboardjs.com/examples).

It is in a similar vein to this: http://andrewphoy.github.io/chess-replayer/. (Which is more full-featured.)

Apple Corps v Apple Computer. Wikipedia: http://en.wikipedia.org/wiki/Apple_Corps_v_Apple_Computer
Re:Announcing Wolfram Community on Tuesday July 23, 2013 @05:20PM (#6092989)
I expect it will still exist, after all, there is both AskUbuntu.SE and ubuntuforums.com. It might start seeing less activity though.
Re:Apache Kills Off Its C++ Standard Library on Thursday July 18, 2013 @07:43PM (#6067325)
Check out the status reports to the Apache Board of Directors (http://stdcxx.apache.org/status/):

(05/11)

      No changes. Stdcxx continues to be dormant. There was a flurry of emails
      on the stdcxx-dev list suggesting continued interest from the same two
      parties (ARM and Sun) but no new work.
---

The Attic is where retired Apache projects go.

(02/2012)

      A vote to move stdcxx to the Attic failed. The majority of stdcxx
      contributors voted in favor of continuing to maintain the project.
      Several inactive committers stepped up to help with the project.
---

I do not think that this was a surprise. Regular status reports stopped completely after February 2012. It's also notable that Chris Bergström was proposed for the new chair position, see http://mail-archives.apache.org/mod_mbox/stdcxx-dev/201306.m...

Re:Show HN: Git bar graphs in the terminal on Sunday July 14, 2013 @02:36PM (#6041691)
https://github.com/joelthelion/autojump

(It's like a smart version of cd.)

I agree that an off-by-one error is not a huge deal in most cases, but cryptography is one of those places where you cannot get it wrong. The programmers, or a employee well-versed in cryptography, should have ran a Chi-Squared test immediately on the random data to make sure it was random. (That is the first thing I would try, and I only have a working knowledge of statistics and cryptography.)

Cryptography is unforgiving, and when your code could seriously endanger someone else, you have to be constantly vigilant.

Re:Let's Play Ancient Greek Geometry on Sunday July 07, 2013 @02:43PM (#6002921)
The URL in the location bar seems to update with the steps you've done (here's one showing the first construction: http://www.sciencevsmagic.net/geo/#0A1.1L0.1A0.3L0.3L1). Undo/Redo can then give an animation like appearance.
Re:What Is the Most Surprising Result in Mathematics? on Saturday July 06, 2013 @01:11PM (#5999360)
No notable mathematician has considered one prime since the early 20th century (of course, I'm oversimplifying, see [1] for more information).

[1]: https://cs.uwaterloo.ca/journals/JIS/VOL15/Caldwell1/cald5.h...

Re:New York City Launches .nyc Domain Names on Tuesday July 02, 2013 @05:44PM (#5980942)
Re:How a total n00b mined $700 in bitcoins on Saturday June 29, 2013 @08:49PM (#5964282)
Diminishing returns: The amount of mine-able bitcoins decreases overtime, as well as the amount of reward decreasing as the hashing power of the network increases. Assuming the price of Bitcoins does not increase accordingly, the amount of money gained will go down.

Bitcoin Collapse: If Bitcoins collapse, you now have a bunch of worthless miners. Compare this to a quick sell it and done.

God forbid you gain a significant amount of network control, because you have a problem. Miners will probably begin to reject your transactions for the sanity of the network, because you could double-spend, and virtually create infinite bitcoins.

Also, how is setting up a business like this trivial? I imagine that a huge part of it (initial investment, buying power, and maintaining all these devices) could be problematic, although I could be wrong.

Re:AES timing variability at a glance (2005) on Thursday June 27, 2013 @06:13PM (#5955069)
I highly recommend reading the explanation on how this is significant, it goes into more depth about timing attacks:

http://cr.yp.to/antiforgery/cachetiming-20050414.pdf

Re:NSA search trends on Saturday June 15, 2013 @04:46PM (#5886249)
And now if you want to depress yourself, tick the "Forecast" checkbox on the right.
Already posted a few hours ago: https://news.ycombinator.com/item?id=5845541
Re:There Was a Time before Mathematica on Thursday June 06, 2013 @09:19PM (#5836545)
Another very interesting part of the article is the call for the decryption of the SMP source code:

http://blog.stephenwolfram.com/2013/06/there-was-a-time-befo...

Re:Show HN: CMS Server written in Go (alpha) on Saturday June 01, 2013 @01:47PM (#5805039)
Go does not have constant time string comparisons by default. The crypto/subtle package supplies constant time comparisons.
a) That solution is sometimes implanted. The problem is: its slow, very, very, slow. It is not nearly as fast as regular integer arithmetic. (Also, +, -, /, and * aren't called axioms.) Also, how do you handle things such as powers and exponentiation (especially non-integer arguments)?

b) Search up for "BigInt libraries". The problem is the same with the others, its slow. You still have to allocate memory and the operations aren't as fast. However, BigInt libraries are widely used when necessary.

Re:Show HN: XKCD-inspired StackSort on Monday March 18, 2013 @05:23PM (#5397218)
[Slash/A](https://github.com/arturadib/slash-a) is specially designed for genetic programming / random generation. No matter how you piece together the instructions, it is still a valid program.
Re:Materials - HackerThings on Sunday February 17, 2013 @11:58AM (#5235760)
Re:Finding 2013 in Pi on Tuesday January 01, 2013 @06:19PM (#4994435)
Assuming the digits of pi are randomly distributed, any finite digit sequence can be found in pi.

The probability any sequence of length d is found in N digits of pi is 1 - 1/exp(N*0.1^d) (Poisson distribution for approximating the binomial). Then the limit as N approaches infinity is 1 for any finite d.

Re:Full list of new gTLDs on Wednesday December 26, 2012 @02:40PM (#4970517)
I hope that ICANN accepts a small amount of these. Isn't this the point of subdomains? Why can't ABC just use foo.abc.com (or foo.abc.go.com) instead of foo.abc? The new TLDs are confusing and I'm sure many people will just type in .com as well.

Then again, ICANN has nothing to lose by encouraging many applicants, they get an awful lot of money from the applications (about 357 million [1]). They may be non-profit, but they still need money to keep running.

  [1] http://www.name.com/blog/general/news-2/2012/06/icann-reveals-the-new-gtlds/
Re:Reminder: secret_token.rb is named so for a reason on Wednesday December 26, 2012 @02:17PM (#4970430)
Out of the 3000 repositories which I estimate to be affected by this issue (using Google and eliminating some common techniques used to circumvent the problem), I estimate 1600 of them are not on Github. Even if Github does its best to remove the issue completely, I don't believe it will have a huge impact.

I believe that a better idea is to fix this in Rails. Why is a secret key loaded from the configuration directory? I agree with ajross's comment (http://news.ycombinator.com/item?id=4970347).

This isn't to say that Github should do nothing to control the problem, but more must be done than just that.

Re:Reminder: secret_token.rb is named so for a reason on Wednesday December 26, 2012 @02:13PM (#4970416)
I have no problem with old issues or vulnerabilities being posted, of course, especially when they are very widespread such as in this case.

Note that not all of those results are necessarily vulnerable, for example, https://github.com/hotsh/rstat.us/blob/master/config/initial... loads the secret key from the environment, and https://github.com/GreenplumChorus/chorus/blob/master/config... loads it from an ignored file (like the article). I would estimate the real number of projects to be somewhere less than 3000, with about 1400 being on Github. This also assumes that these are all actually production keys.

Just to reiterate, I do believe that this is a legitimate problem even now, but I just wanted to note the age of the article and to refute the claim that this is the first mention of the issue.

Re:Reminder: secret_token.rb is named so for a reason on Wednesday December 26, 2012 @12:45PM (#4970069)
Note that this was published back in May 2012, so it's not entirely recent (which is OK, just thought I would note it). However, this seems to have been public by February 2011 (http://stackoverflow.com/questions/5132152/when-you-have-sec...). I don't think the issue is entirely widespread, and a different key is likely used for production.
Re:How do we tell truths that might hurt? (E. Dijkstra, 1975) on Saturday December 15, 2012 @10:15PM (#4927192)
I've already counted 90+ authors and contributors from a _brief_ history of finite simple groups, using [1]. This includes "et. al", from which I have assumed best practice of APA Style Guidelines, indicating at least 6 authors. I also could have counted more using [2], but I believe this is sufficient.

I feel that the statement that "only 100" mathematicians worked on the classification of finite groups is disingenuous. There is clearly a disparity between contributing a kernel patch and dedicating your entire life to researching a mathematical topic.

As for the Linux kernel, I would like to point out that the original paper [3] states that 7,944 developers have contributed since 2.6.11 (which is more than your estimate, but important regardless). A paragraph later on is a little more telling:

>[D]espite the large number of individual developers, there is still a relatively small number who are doing the majority of the work. In any given development cycle, approximately 1/3 of the developers involved contribute exactly one patch. Over the past 5.5 years, the top 10 individual developers have contributed 9% of the total changes and the top 30 developers have contributed just over 20% of the total.

That is to say, 30 developers have made 20% of Linux. This is not unlike the classification of finite groups, where a small amount of people have done a large majority of the work. It would be insane to say only 100 people have ever looked at finite groups. Indeed, proving something is exponentially harder than learning it. Similarly, you would not say that 7000 people use Linux, because 7000 have hacked on the kernel.

As for your last comment regarding about how you did not choose the topic, I agree. But I think that this entire debate is silly: neither side is more important than the other, more difficult than the other, mutually exclusive, or so on. I do not agree with Dijkstra on this point, and I feel that his fame is no reason to excuse him from it.

[1] http://www.ams.org/journals/bull/2001-38-03/S0273-0979-01-00...

[2] A History of Finite Simple Groups, by FCC Doherty.

[3] http://go.linuxfoundation.org/who-writes-linux-2012

Re:How do we tell truths that might hurt? (E. Dijkstra, 1975) on Saturday December 15, 2012 @09:30PM (#4927087)
I think the entire statement is silly in that it attempts to compare two entirely different branches of mathematics, it would be almost as arguing between physics and biology. Physics is the study of matter and energy. Biology is the study of life. Any attempt to assign some "order" to them or declare one "harder" than the other is subjective and pointless.

However, there are some factual problems with your reply which I want to address. The Classification of Finite Simple Groups was a large endeavor spanning over an entire century. It was not made "by about 100 mathematicians".

The fact that the current was not working is not sufficient enough to conclude that the result was a failure or that pure mathematics is somehow worse than computer science. It would be similar to writing some code, and then suddenly realizing that you have to rewrite it if you want to get acceptable performance or to stop it from becoming spaghetti code. Neither of this sheds bad light on the field of computer science.

The key note errors you refer to are not much different from bugs, which of course are inevitable.

Re:Github Archive on Wednesday October 24, 2012 @04:58PM (#4695023)
There certainly is a mechanism [0], however it doesn't actually completely remove the commit from the remote GitHub repo, as people with the direct link can still access it. I'll check to see if I can find removed commits using this.

[0] https://help.github.com/articles/remove-sensitive-data

Re:Create your own XKCD-style Graphs on Wednesday October 24, 2012 @04:38PM (#4694957)
Interesting! I decided to do some detective work and find out why. I found this: http://imkevinxu.com/xkcd/parser.js, and thought that maybe if I knew how the strings were parsed, I could figure out why it was doing that.

    $ string_eval("x*x1")
    "x*x1"
I figured that the issue must be with the equation drawing or evaluated. Here's what I found as an inline script (note that i is points at which the function is evaluated):

    current_expression = expression.split("-x").join(-i);
    var result = eval(current_expression.split("x").join(i));
So it just splits up the equation and rejoins it. From here it was pretty easy to see what was happening:

    $ expression = string_eval("x*x1");
    "x*x1"
    $ expression.split("x").join(12);
    "12*121"
    $ expression.split("x").join(3);
    "3*31"
    $ expression.split("x").join(0.3);
    "0.3*0.31"
    $ expression.split("x").join(-3);
    "-3*-31"
Re:Stop building dumb stuff on Sunday October 21, 2012 @05:55PM (#4680973)
I'd say no; the mean poverty fraction is 30.91%, with median 28.25% and standard deviation 19.05%. [0] Afghanistan has a poverty rate of 36% (as of 2008). [1] So it's definitely above the average.

[0] http://www.wolframalpha.com/input/?i=poverty+fraction

[1] http://www.wolframalpha.com/input/?i=Afghanistan+poverty+rat...

(I'm not the poster, but you can find the times of reddit links by mousing over the timestamp.)

* Found this on my windshield today. Good people rule. - Mon Jul 2 19:50:42 2012 UTC

* 15 years ago my mom made me take "glamour shots". She sent me this today. - Wed Sep 12 12:18:08 2012 UTC

* Photographer snuck this gem into my cousins wedding album. - Fri Sep 14 00:41:23 2012 UTC

* My friend won't approach cliff edges because he says the risk isn't worth it. This is how he looks over, every time. - Thu Sep 27 00:03:55 2012 UTC

The best times to post are given here: http://blog.reddit.com/2011/07/nerd-talk-tale-of-life-of-lin...

Older »