HNHacker News
TopNewBestAskShowJobs

mjs

2,490 karma · joined July 7, 2008

http://beebo.org/
submissionscomments
mjs··on Richard Stallman’s rider
This is wonderful, in so many different ways. I've read quite a bit of the FSF material--which is invariably specific, clear and verbose--and it's interesting to read material in the same style, but about a completely different topic.

For example, under "Hospitality":

"In some places, my hosts act as if my every wish were their command. By catering to my every whim, in effect they make me a tyrant over them, which is not a role I like. I start to worry that I might subject them to great burdens without even realizing. I start being afraid to express my appreciation of anything, because they would get it and give it to me at any cost. If it is night, and the stars are beautiful, I hesitate to say so, lest my hosts feel obligated to try to get one for me."

mjs··on Sprint to 'Bet the Company' on iPhone
... in the USA. But yes, seems unlikely.
mjs··on Facebook fixes logout issue
From my reading of that link, in Rails it's not the CSRF token itself that's stored in the cookie, it's the secret used to verify the token. If Facebook is doing the same thing, there would be no need to store the secret after the user has logged out--just generate another secret the next time they log in.
mjs··on Facebook fixes logout issue
"The other 'a' cookie, a_xs, is now also deleted on logout. a_xs is used to prevent cross-site request forgery."

Does anyone know how this cookie is used to prevent CSRF?

mjs··on Textmate 2 - Alpha this year
What do you use for ctags? https://github.com/SublimeText/CTags?
mjs··on NSA built a NoSQL database
"There is a risk that Accumulo will be criticized for not providing adequate security. The access labels in Accumulo do not in themselves provide a complete security solution, but are a mechanism for labeling each piece of data with the authorizations that are necessary to see it."
mjs··on Istanbul Isiklarius traffic lights
"Isiklarius is equipped with a system developed in our studio that detects visually impaired and handicapped pedestrians."

How does that work??

mjs··on Amazon rolls out a social network for Kindle
It's been out for a while, and although it's really promising, a large number of obvious features are completely missing. For example there's no RSS feeds of a user's activity and there's no "per-book" pages (it'd be nice if you could point friends to a page that shows your review of the book, plus the passages you've highlighted/noted). There's a list of books you own, but there's no way to search the list. Also, the "Daily Review" feature is broken (I get the same book every day).

I think it could be a really useful site if Amazon would invest in it a little. But it seems as if they've given up on it, since nothing seems to have change since the site was launched. (Also, I haven't seen any review mention it, so perhaps people don't care.)

mjs··on "My current theory is that programming is quite literally writing."
I guess this is also illustrates the difference between studying French at university, and studying it at Alliance française--or studying computer science at university, versus programming at a trade/vocational school.
mjs··on "My current theory is that programming is quite literally writing."
As in, you didn't get to execute code on a computer at all?? That seems kinda odd--I think a large part of the pleasure of programming, for most people, is seeing your code actually do something. I think Logo was captivating because made this aspect especially prominent.
mjs··on Erlang inventor: Why do we need modules and files?
This is kinda off the point, but I'm surprised at the spelling and punctuation mistakes in that mail--generally high-profile hackers have excellent written English.

i.e. "but their isn't", "Do we need module's at all?", "do suggest alternative syntax's here."

mjs··on Heroku encourages use of www. prefix for domains after DDoS
Good question. Is there an AWS limitation in there somewhere?
mjs··on How Dead is WebOS?
Agreed, webOS suffers from some small-ish fit and finish problems, and much larger marketing and (lack of) application problems.

webOS 1.0 did do a lot of wacky/strange things that were annoying, though not bad enough for the phone to be useless. As well as the hardware problems, you'd get stuff like like the alarm going off a minute before it was supposed to (going by the phone's own time display). It would also repeatedly tell you every few minutes that it was unable to send an email message when no network was available.

They're reduced the number of annoyances in webOS 2.0, though, so I am hopeful for the Pre 3. (It also now has close to acceptable performance, instead of completely unacceptable performance.)

The marketing and app problems are much more difficult to solve; I'm not sure what they can do there. Throwing money at it, maybe...

mjs··on JavaScript performance and a Webkit hotspot
Arrays do seem to be the way to make Chrome happy, although unfortunately they're slower for everything else:

http://jsperf.com/backreference-copy

I don't see why you say an array is a more appropriate datastructure for the algorithm, though--that seems very much implementation dependent. And at the JS level, arrays support operations such as splice that strings do not, suggesting that they'd typically be implemented with a more sophisticated datastructure, and hence slower at primitive operations like index access. (Perhaps V8 notices that these expensive operations aren't actually used, and creates a fast, basic version instead.)

mjs··on JavaScript performance and a Webkit hotspot
splice() might be able to help out, though how much depends on whether the copying really needs to overlap or not. There's some benchmarks at:

http://jsperf.com/backreference-copy

I couldn't actually get Safari to complete; FF 4.01 is fastest by a long way.

mjs··on Ryan Dahl (Creator of Node.js) is doing an IAMA on Reddit
http://www.reddit.com/r/node/comments/h1m2o/i_am_ryan_dahl_c...

Q: What are your favourite tech sites? (hacker news, /r/programming, etc.) A: hacker news

mjs··on Ubuntu 11.04 (Natty Narwhal)
I find the description of which image to choose confusing. You need the a 64-bit image to handle processes over 4GB, right? Why is the x86 version recommended for "most machines with Intel/AMD/etc type processors and almost all computers that run Microsoft Windows." (That's from the server description, too.)
mjs··on Rackspace cloud beats Amazon EC2, by a lot
I more or less understand the reasons, but I do think it unfortunate and weird that the companies offering cloud services price them on some combination of RAM, disk space and bandwidth--CPU performance doesn't really figure, except occasionally in vague terms, and neither does disk access speed.

RAM is important, sure, but there should be some way to quantify the expected CPU performance as well.

mjs··on Harvard's 1899 Entrance Exam [pdf]
The choice of topics, really. This was for (I think) an entrance exam, and so the only topic I think even vaguely suitable to write about without forewarning is "English country life in the 18th century." The Battle of Blenheim and the character of Rachel Lady Castlewood can only be attempted if you already know about those (very specific) things, and duelling is broad, and odd.
mjs··on Harvard's 1899 Entrance Exam [pdf]
I found some Cambridge exam papers from 1899 a while back. I don't have scans, but there's a few of the more interesting/mysterious questions at:

http://beebo.org/lately/2001-07-10_cambridge.html

I quite like the 2.5 hour "English Essay" for bizarreness:

Write an English Essay on one of the following subjects:

1. English country life in the 18th century. 2. The battle of Blenheim. 3. The character of Rachel Lady Castlewood. 4. Duelling.

mjs··on The Möbius Gear
Agreed. Video or I say it doesn't rotate!
mjs··on Torvalds: Standards are paper. I use paper to wipe my butt every day.
I find it interesting that Linus seems to have originally come across this particular bug report as a user; he, too, was having a problem with Flash player:

https://bugzilla.redhat.com/show_bug.cgi?id=638477#c8

"I see this as well. Sounds like clipping or some really bad sample rate frequency conversion."

(It's only later that it becomes clear that this is due to a glibc "regression".)

mjs··on Why did OKCupid write their own web server?
Ha, it gets better: the web server "was partially funded by the DARPA Composable High Assurance Trusted Systems program."

http://www.okws.org/doku.php?id=okws:sponsorship

mjs··on What it's like building a real website in Node.js
Yeah, that's nicer if bar() can be defined at the same "level" as foo() but if it makes more sense to move it somewhere else the closed-over variables need to be passed.
mjs··on What it's like building a real website in Node.js
If you have a function foo() that takes a callback as an argument i.e. something like:

  foo(..., function (n) {
     // closure over q, r, s
  });
Then what you can do is create a separate function, bar() that takes q, r, s as an argument, and returns a function:

  function bar(q, r, s) {
    return function(n) {
      // still has dependency on q, r, s
    }
  }
Once you have bar(), the foo() call above can be written as:

  foo(..., bar(q, r, s));
and you save one level of nesting. (This also makes the dependencies explicit, which is helpful.)

The main loop of

https://github.com/ithinkihaveacat/node-fishback/blob/ce5f9c...

does quite a lot of this, if you want a real example.

mjs··on Broken Links
This solves two problems: (1) the only visible/bookmarkable URLs are those without a #!; and (2) initial page loads can be fulfilled by a single request to the server. It doesn't solve the problem of URL discovery, but two out of three ain't bad.
mjs··on Node.js Interview: 4 Questions with Creator Ryan Dahl
Heh, I got the impression that he tried harder to get Lua working, partly because he felt is was a more pragmatic choice, but I take your point.
mjs··on Node.js Interview: 4 Questions with Creator Ryan Dahl
The two most interesting points for me:

* JavaScript wasn't the original language choice: he originally tried C, Lua and Haskell. He especially liked Lua but "it already had a lot of libraries written with blocking code."

* He regrets using the CommonJS module system. ("Far too complex and wildly different from how the browser works.")

mjs··on Visualization of stock market performance over time, adjusted for inflation
The reason they're coloured like that is that you can get to the pale red (0%-3%) by putting you money is much safer vehicles like term deposits or bonds. If you're getting less than 3% out, stocks aren't worth it.
mjs··on Visualization of stock market performance over time, adjusted for inflation
The two green squares are 7% annual return or greater, so you can be in the beige somewhere and still be getting decent returns.

It does seem somewhat difficult to end up on a green square though--there aren't that many of them and there are even fewer long runs.

← PreviousPage 8 of 10Next →