Recent submissions

Comment · 11 years ago
It's safe to use "420", the cops don't know man.
Comment · 11 years ago
You don't need to be rich. It costs very little to fund a $30k life insurance policy, which will get your whole body suspended with Cryonics Institute. Alcor is more, $80k for just the head.
Comment · 11 years ago
One difference is flow control. When you call a function, all the arguments are evaluated before being passed into the function. If you want to delay evaluation, you have to wrap the argument values in a function. When you call a macro, the text forms get passed with no evaluation.

Say Clojure forgot to ship with the boolean "or". "or" should evaluate its arguments one at a time (to allow for short circuiting) and return the first non-false value. You could do this with functions, but you have the source-level overhead of manually wrapping everything, and performance overhead of defining and passing an anonymous function for each argument. With a macro, at compile time you just translate the "or" macro into a simpler form that uses "if". This is how Clojure actually implements "or":

    (defmacro or
      "Evaluates exprs one at a time, from left to right. If a form
      returns a logical true value, or returns that value and doesn't
      evaluate any of the other expressions, otherwise it returns the
      value of the last expression. (or) returns nil."
      {:added "1.0"}
      ([] nil)
      ([x] x)
      ([x & next]
          `(let [or# ~x]
             (if or# or# (or ~@next)))))
Comment · 11 years ago
I second the other comments suggesting to at least treat online advice with a grain of salt. That said...

I burned out some years ago and have been struggling with recovery since, depressive thoughts aren't far away but by now I've found coping mechanisms. It's annoying I don't feel I can talk about it with my real ID because I still don't feel like my performance and drive is even 80% what it used to be, and I fear that would impact my future chances of switching jobs if they discovered my inner struggles. But my performance seems to be enough for my coworkers to value me, so I keep going another day. I too almost lost my previous job during the early periods, but at the end of it I was valued again. (I just observe external praise, I never feel it. Whatever.)

I'm anti-big-med for myself, but I won't discourage you from taking them as a lot of people say they help and some even report total elimination of depressive thoughts. I would encourage you to see if extra caffeine helps you at all while you wait, especially as the big drugs tend to take 3-4 weeks before kicking in at all and caffeine seems to have a more immediate effect. How much caffeine do you take per day? If you don't take much, you may want to get a box of 200mg pills and try for 200-600mg per day and see if it helps you at all. Caffeine has some anti-inflammatory properties, and depression is increasingly being recognized as an inflammatory disease, plus caffeine as a stimulant itself can help with the focus. Anecdotally, what cripples me some days is never-ending introspection about my value to the world and my performance. Sometimes taking more caffeine than usual that day will allow me to shut my mind up about itself and think about other things, and that allows me to get things done. (Work, laundry, going to the gym.)

Last year I finally did start feeling like I was recovering a little bit, then my mom unexpectedly died. Expect life to continuously shit on you. But whatever. If you keep on keeping on you'll develop your own coping mechanisms (those that don't die) so even setbacks won't necessarily send you over the edge as you've been there before. Lastly, killing yourself in a nice way would take effort, it's not worth it. Just look forward to sleeping instead. You might also consider getting a pet, or a house plant -- something whose continued existence depends on your existence.

Comment · 11 years ago
Comment · 11 years ago
Anything that even smells like the financial and banking industry is considered shady by a lot of people, not just programmers, after our Great Recession. A necessary evil at best, and for programmers one that pays very well. In any case, it was a good zing.
Comment · 11 years ago
If you have the ability to MitM a high value site like facebook.com without getting caught, I think it's worthwhile to do so regardless simply because you'll get some portion of the users who bypass the warning. In my scheme, the only people who won't see the warning are those who have never visited facebook with that browser before, so they may or may not have an account to login with that you can hijack.
Comment · 11 years ago
I agree in that scenario it's hard to say whether one is more likely to be the true certificate than the other. If we're assuming attacks that aren't targeted towards specific users (e.g. from state actors, or just a corrupt hotel wifi admin, who are attacking whoever happens to be on the network) then we can't say without more details about the network you were connected to on Monday vs. Tuesday. If we're assuming attacks that are targeting you specifically as an individual, perhaps A could be considered slightly more likely than B due to coming first... Visiting the site on Monday leaks the information that you visited the site, so an attacker may believe you will visit that site again. But if the attacker is keeping logs of your traffic habits, they may have just chosen Monday to poison your fresh DNS lookups. So again it looks like we can't say which is more likely.
Comment · 11 years ago
While we're making art style changes, why don't we change the experience for self-signed certs?

When the user first visits an HTTPS page with a self-signed cert, they get the content, and the URL art style has a broken lock or something warning it's not known to be secure. (It's better than raw HTTP but it's not trusted.) With certificate pinning by the browser, the next time the user visits that page, if it's different, then they get the current experience that warns them in big scary text and requires several clicks to get past. There's a question of if it's different in that the server owner upgraded to a paid SSL cert should it show a warning or not, but if there's a way to sign that upgrade with the old cert that the browser can know about there shouldn't be a problem...

Comment · 11 years ago
People enjoy overcoming challenges. (People also like to brag.)
Comment · 11 years ago
Not really, sorry. I had forgotten that the first letter is compared case sensitively as I remembered from Nimrod it was all insensitive. But I still think for nearly all cases in real world code you can instead of using nimgrep be equally served by a case insensitive search on (nimidentifier|nim_identifier) even if it's technically possible to have other variants or a mismatch, which you can grep out as a second step anyway, with the capital N.
Comment · 11 years ago
You must not use grep with regexes very often.
Comment · 11 years ago
Comment · 11 years ago
No, they're not. At least, children in general don't enjoy the full rights of a legal adult person. Traditionally children were viewed as property of the parents, and in many senses that's still true. Read 'adult chimpanzees' if you must.
Comment · 11 years ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton