News for hackers. Stuff that matters.

blameless

Re:Code faster with Intellij IDEA live templates on Saturday January 18, 2014 @12:40PM (#7081525)
I've been using these for years in Visual Studio.

My most commonly used one is "prop" which generates an automatic property in C#: "public string Name { get; set; }". I type "prop", then hit tab, string is selected and I can change it to any type I want, hit tab again, I can now change the name of the property, hit enter and I'm done Takes 1.5 seconds.

Re:Digital Ocean vs. Linode on Wednesday January 08, 2014 @02:12AM (#7022195)
I've been using Linode for years. I signed up when they offered free $100 credit. After my free year of Amazon AWS ran out, I went to Linode "until the $100 credit runs out". I ended up staying until this day.

I've been meaning to switch to DigitalOcean because it's twice as cheap but it's too much hassle to switch all domains, etc. so I've stuck with Linode.

I've never had to deal with Linode support which I guess is a good thing. DigitalOcean support is also great.

My credit card was stolen from Linode (I only ever used it to pay for Linode and Amazon). Luckily it was blocked by my bank automatically. Because of this, I will never call Linode rock-solid, secure or trusted.

Chrome leaks saved passwords like GTalk chat incedent

My friend cleared the cache in Google Chrome and now he has access to another person's saved passwords. This person has never used my friend's computer.He asked me what's up and I remembered a similar incedent with Google Talk a few days ago.Has this happened to anyone else?

( Read More... | no comments | 2 points | on HN )
Re:Securing a Linux Server on Saturday September 14, 2013 @04:18AM (#6385034)
I also always change the SSH port to 9922. I haven't seen any failed login attempts so far.
Re:Google's April's Fools day joke on Monday April 01, 2013 @05:20AM (#5472130)
Oh, that's embarrassing.

You meant http://www.google.com/nose

I'm unable to reproduce the results. Balance is always negative. What's wrong with my code?

  // for a graph
  var balances = [];

  // constants
  var winnings =  1, 
      losses   = -1, 
      epsilon  = 0.05;

  function play(probOfWinning) {
      return Math.random() < probOfWinning ? winnings : losses;
  }

  for (var experiment = 0; experiment < 100; experiment++) {
      var balance = 0;
      for (var flip = 0; flip < 1000000; flip++) {
          if (flip % 3 == 0) { // game A
              balance += play(0.5 - epsilon);
          } else { // game B
              balance += Math.round(balance) % 3 == 0 ? play(1/10 - epsilon)
                                                      : play(3/4  - epsilon)
          }
      }
      balances.push(balance);
  }
Re:Reality of budget VPS services on Sunday October 23, 2011 @01:09PM (#3146609)
Don't forget you also have to pay something like $0.10 for 1GB of outgoing traffic.
Re:Tool causes Apache web server to freeze on Thursday August 25, 2011 @05:13AM (#2924278)
"A previously unknown flaw in the code for processing byte range headers allows version 2.2.x of the Apache Web Server to be crippled from a single PC."

It was pointed out in 2007 http://seclists.org/bugtraq/2007/Jan/83

It also affects Apache 1.3.