Better HN
topnewbestaskshowjobs
Log inSign up

blameless

22 karma · joined Aug 25, 2011 (15y ago) · 10 submissions

Submissions

comment 12y ago · link · parent

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.

comment 12y ago · link · parent

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.

3.

Chrome leaks saved passwords like GTalk chat incedent

2 points · by blameless · 13y ago · discuss

comment 13y ago · link · parent

I also always change the SSH port to 9922. I haven't seen any failed login attempts so far.

comment 13y ago · link · parent

Oh, that's embarrassing.

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

6.

Gotye - Somebody That I Used to Know - Old School Computer Remix(youtube.com ↗)

3 points · by blameless · 14y ago · discuss

comment 14y ago · link · parent

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);
  }

comment 15y ago · link · parent

Don't forget you also have to pay something like $0.10 for 1GB of outgoing traffic.

comment 15y ago · link · parent

"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.