HNHacker News
TopNewBestAskShowJobs

rapala

228 karma · joined December 20, 2010

[ my public key: https://keybase.io/rahcola; my proof: https://keybase.io/rahcola/sigs/sIb3yWKlDdFiRFkLyIA7q0RyqUeceOLN168-HM9tbC4 ]
submissionscomments
rapala··on The consumer driven economy is for people who don't naturally automate things
How would these social and environmental factors be featured in the new currency? How would they differ from the current situation where things like moral value of goods are reflected directly in the price (green energy costs more because it has more value)? I'm having difficulties seeing how this new currency would work.
rapala··on The State of eGovernment in Germany
I actually did mention that. :)

I think the system is pretty good. The only problem it has, that I know of, is the price. The user of the service has to pay for every single authentication. Couple of years ago the price was 14 cents per authentication. That was enough for a one government project to second guess their choice of authentication.

rapala··on The State of eGovernment in Germany
E-government has at least two big problems, and the author faced both of those.

First, the users need to be authenticated, as in you are the person you claim to be authenticated. Almost no other web service actually needs to know that. Banks are an other exception and for example here in Finland they provide authentication for other private and government web services. Finland also has those secure chip ID cards the author briefly mentioned. The problem with those is that, at least here in Finland, nobody has them. And most of those who have one, don't own a reader needed to use the chip.

The second problem is about logging and archiving. Governments are subject to very strict laws and regulations about how certain cases need to be handled. The are processes to follow. Who did which step when has to be recorded. When the case is finally closed, every piece of paper about the case needs to be archived. Was something denied because a letter from the applicant did not have the necessary information? That letter needs to be archived. All this is manageable when the case is handled in paper.

If the case is handled using a web service, things get more complicated. The system has to log all actions done in the case. It has to archive documents in proper ways. That's not impossible. But it is harder than stamping and signing papers for those whose jobs have been about stamping and signing papers for years. It's also harder for those implementing the web service, as most of the strict regulations don't apply in other projects. All this means that big money needs to used for creating something that adds complexity and is not strictly necessary, and oh boy the government likes to skimp on those kind of projects.

rapala··on JavaScript Isn't Scheme
I would argue that the order of declarations is part of the scoping rules. In your example the variable i is not yet in scope when the assignment is done, and thus the compiler complaints. But this is of course somewhat philosophical.

My first argument was that the order of statements is part of the lexical representation of code, and thus should effect the lexical scoping.

rapala··on JavaScript Isn't Scheme
In a lexically scoped language I would assume that the scoping follows the lexical representation of the code. The given example goes against this assumption. The variable i is not even defined before it is refered to in the inner function.

The level of scope (global, block, ...) interact with the type of scoping in many ways, so I would not say that they are orthogonal. This example would behave very differently under dynamic and lexical scoping.

  function foo() {
    var i = 1;
    function bar() {
        var a = i;
        var i = 2;
        return a + i;
    }
    return bar;
  }
  foo()() // => ?
rapala··on Lennart Poettering wants to remove syslogd, use systemd journal instead
>What is next, systemd will replace cron too, in powerpoint format?

systemd has some cron-like features: http://www.freedesktop.org/software/systemd/man/systemd.time...

rapala··on Who Says C is Simple?
Well, to be fair, the NULL check was in a wrong place. The pointer was already dereferenced before the check.

  struct tun_struct *tun = __tun_get(tfile);
  struct sock *sk = tun->sk;
  unsigned int mask = 0;
  
  if (!tun)
    return POLLERR;
rapala··on UK and Sweden veto espionage talks between US and Europe
The Swedish military is allowed to listen to all communications crossing the nations borders. All ISPs are also required to route all their traffic through the militarys network.

EDIT: http://en.wikipedia.org/wiki/FRA_law

rapala··on How People Think Facebook Connect Log‑in and Log‑out Work
Nor should dumb users be punished because of knowledgeable users. Facebook ain't exactly the service of power users. Leaving Facebook logged in on a public computer has some nasty security consequences.

The weakest link of security is always the human factor.

rapala··on How People Think Facebook Connect Log‑in and Log‑out Work
> Why would anyone think they'd be logged out of Facebook because they logged out of a site that uses Facebook auth?

Because logging in was associated with Facebook, the log out got associated as well? As you said, context scramble. I think this was the point of the author; it's a bit too easy to mix up logging in and logging in with.

rapala··on Senators skip classified briefing on NSA snooping to catch flights home
Is there any chance that the people would ever vote for the multitude of these positions? There's probably (I'm not a US citizen) hundreds of federal bureaus. The people can't even bother to vote in the current federal elections.

Also, would the people even know better? Who even knows what the director of the FBI really does, what is the concrete executive power that he or she wields?

rapala··on Why does your API still use HTTP Basic Auth?
By my reading, the spec is not that clear about it. It does say that

A user agent that wishes to authenticate itself with an origin server--usually, but not necessarily, after receiving a 401 (Unauthorized) --

implying, imo, that no prior 401 response is needed. On the other hand, the spec also says

A client SHOULD assume that all paths at or deeper than the depth of the last symbolic element in the path field of the Request-URI also are within the protection space specified by the Basic realm value of the current challenge. A client MAY preemptively send the corresponding Authorization header with requests for resources in that space without receipt of another challenge from the server.

which would imply that at least one 401 response should be received before sending credentials.

Of course the most important part of the spec is this:

The Basic authentication scheme is not a secure method of user authentication, nor does it in any way protect the entity, which is transmitted in cleartext across the physical network used as the carrier.

rapala··on Thesis Hatement
They may also get funding based on graduations. PhD students are also fuel for the research in universities, and possible future researchers themselves.
rapala··on Escape from Callback Hell
So your whole program just crashes because the prime server was not responding? I think that changes the semantics of isPrime quite a bit.
rapala··on Escape from Callback Hell
Of course it's different. What if the IO fails?
rapala··on Monads for Normal Programmers
Associativity is very important in the case of IO. It guarantees that both

  (print a; print b;)print c;
and

  print a; (print b; print c;)
output abc.
rapala··on The Meditations of Marcus Aurelius
Because another god seems to be offering a better deal. I think that the point of the quote is that one should not care about the unjust good. Why would I want to be "welcomed" by a god that does not care about my pursuit of good life but only about devotion?
rapala··on The Meditations of Marcus Aurelius
Why should one worship a god that can't tolerate a pagan man that nevertheless lived a good life? If a god wants the man to be virtuous, why can't the man expect the same from the god?
rapala··on AT&T Will Force Your Data Plan For Your Unlocked Out-of-Contract "Smart" Phone
Have you red your original contract? Is this something covered in it?
rapala··on Dependency Injection is a Virtue
To me it seems that you (in your code example) have just split the function in two. Two thirds of the parameters are given to the constructor and the last one to the method. It might be what your application needs, but it seems arbitrary taken out of context.

In some other language one could implement this with a function returning a function and it would be about the same as declaring the fields in your example final:

  (defn publisher [repository clock]
    (fn [id]
      (publish repository id (now clock))))
rapala··on The 2nd Amendment should protect the Internet, not your AK47
My question was sincere. I'm quite sure that some share of the guns would be voluntarily handed over. I was after a estimate on this share.

"Collecting all the guns in the US won't be an easy task."

Definitely not, but I would think that to be something an oppressive government would try to do. In that case, the police might not ask nicely.

rapala··on The 2nd Amendment should protect the Internet, not your AK47
"Had Europeans had as many guns as their American counterparts would Hitler have conquered Europe?"

Um...yes. http://en.wikipedia.org/wiki/Invasion_of_Poland http://en.wikipedia.org/wiki/German_invasion_of_Denmark_(194... The number of privately owned guns had absolutely nothing to do with it.

rapala··on The 2nd Amendment should protect the Internet, not your AK47
When the police starts going door to door, collecting guns, how many you think would be left from the 300M?
rapala··on Cable companies aren’t “forcing” people into piracy
Do without.

Season not sold.

Watch something else.

Season not sold.

Play cards.

Season not sold.

It's not just about illegal downloading, it's about content providers not even trying to meet temporal demand.

By the way, I don't even have a TV. Liked your ad hominem though.

rapala··on Cable companies aren’t “forcing” people into piracy
So I'm in the market, looking for the next season of my favorite show not yet aired here in Finland. Clearly I can't watch it from the TV. Netflix does not offer the show in here in Finland. What options do I have?

Legitimate content providers have failed in a game called free market. Last time I heard free market was quite popular in the USA.

rapala··on Jail Looms for Man Who Revealed AT&T Leaked iPad User E-Mails
Depends on the document and jurisdiction. If I remember correctly, some levels of military classifications here in Finland require you to not read the document and return it to the officials. Of course the one who left the document would also get reprimanded at least.

Using someones password without permission is as illegal whether you shoulder surfed it, cracked it or red it from a post-it note.

rapala··on Jail Looms for Man Who Revealed AT&T Leaked iPad User E-Mails
I guess this is exactly the thing that the court must decide on: whether guessing that code can be considered as a circumvention of security measures or not.
rapala··on A Practical Optional Type System for Clojure
So the classic version works in a lazy fashion, for example with infinite structures? Keep in mind that Clojure is a strict language by default.
rapala··on Oracle knew about critical Java flaws since April
Interesting, I was under the impression that most of the time the exploit was known before the patch release. But of course the patch gives away everything. Live an' learn.
rapala··on Oracle knew about critical Java flaws since April
Why can't the sysadmin wait for a week and let the patches accumulate?
← PreviousPage 4 of 6Next →