HNHacker News
TopNewBestAskShowJobs

kamkha

167 karma · joined March 18, 2011

submissionscomments
kamkha··on Detect iPad Mini in HTML5?
One user posted a link to this blog post which describes a seemingly quick and easy Javascript detection method: http://konstruktors.com/blog/web-design/4396-detect-ipad-min...

I can't confirm it for myself, but if what the blog post says is true, isn't this an easy method for detection? Though, I can't imagine that all of the people who have deemed it impossible glossed over this.

kamkha··on Detect iPad Mini in HTML5?
Some sites have device-specific designs, and so they present different designs for the iPad 2 and iPhone. Your comment would be applicable if the iPad Mini were indistinguishable from the iPhone and were served designs meant for the iPhone as they have roughly the same pixel density, but as it stands it is indistinguishable from the iPad 2 and thus it would be served a design not meant for its pixel density.
kamkha··on "Third Hand" Languages
If you think CoffeeScript is solely for "young teenagers who have nothing better to do," your arrogance is obviously clouding your vision.
kamkha··on Cracking Passwords on an Intel Celeron CPU
I believe he meant that the machine was usually used as a gateway to his home network, but he repurposed it for the competition.
kamkha··on How to watch the Olympics, live, from the United States
I wouldn't call it spam, but it is worth noting that this is at least the third "how to watch the Olympics" article I've seen on HN in the past day which contains a referral link to some VPS provider.
kamkha··on Google search's new basic calculator
"But a calculator should work like a calculator."

Yes, and no physical calculator I have ever seen would give 500.01 for "500 + 1%".

kamkha··on A syntax comparison across many languages
"Inconvenient" because typing a # requires a modifier key on most keyboard?
kamkha··on Show HN: Filter through all your FB friend's relationships - my weekend project
Thank you for the preview of the app given before connecting with Facebook! I wish more applications which require connection to another service did this.
kamkha··on Salted Password Hashing - Doing it Right
"What prevents the same enumerating attack against the sign up form. Are you going to give them a generic message that the username is invalid when it in fact has been taken?"

There are, more frequently, CAPTCHAs on registration forms.

kamkha··on Have you ever chatted with a hacker within a virus?
Nice try with the jab at Apple—MacBook Pros have a small green light to indicate whether the camera is in use or not.
kamkha··on Help yourself stop rewriting HTML
This looks like a stripped down version of Initializr (http://www.initializr.com). I would look into how Initializr loads Javascript, and jQuery specifically (it tries loading the Google-hosted version first, etc.).
kamkha··on Non-terminating compilation in Java
Here's a block of code that will cause most versions of the Java compiler to hang that doesn't use loops or templates:

  class compilehang {
    public static void main(String[] args) {
      double d = 2.2250738585072012e-308;
      System.out.println("Value: " + d);
    }
  }
From http://www.exploringbinary.com/a-closer-look-at-the-java-2-2...: apparently the constant in the code above causes Java's double value correction loop to oscillate between two values, thus causing the compiler to hang.
kamkha··on Hackers destroy water pump via SCADA abuse
The article mentions that the intrusions involved a security hole in PHPMyAdmin, so, likely neither (unless the attackers just got access to the database through PHPMyAdmin using the default admin password rather than a security hole).
kamkha··on If you're using Ruby trunk, regenerate your keys
While the effects caused by each bug might be on a similar level, I would argue that the fact that this particular bug was never released in a patch (I don't think I've ever seen anyone using Ruby trunk outside of those hacking the Ruby interpreter) makes it less severe.
kamkha··on Facebook detects if you are logged in Gmail
Did you happen to read the comments on the answers?

> Nope it's not that unfortunately. I tried it myself removing all linked accounts. The event above still happens.

kamkha··on World's 1st manned quadcopter flight
Also, it's worth noting that this isn't a quadcopter; it has many more than four rotors.
kamkha··on Get Paul Graham to take you to lunch
> More disclaimer: Paul Graham has nothing to do with this submission.

I would think he has something to do with it, no?

kamkha··on On/Off Switches in User Interfaces
Personally, I can't think of a situation which calls for one of these potentially ambiguous sliders over, say, a checkbox.

The imitation that the author is critiquing is poorly designed in my eyes, but even the iOS original is a bit ambiguous to me. Is the label on the button that of the current state, or of the state that the switch would attain if pressed? It's the former in the iOS control, but I could definitely see people getting confused over that.

On a different note, here's a screenshot of the same iOS slider in a different locale (posted in the comments on the article): http://d.pr/VHZF. Maybe it's the fact that "|" and "O" aren't often used to mean "on" and "off" in my English locale, but that just looks unpleasing to me.

kamkha··on Dropbox for Teams
> Think of it as $13.25 per user per month.

They really should advertise it as such.

kamkha··on Amazon's Profit Plunges 73%
Don't forget Amazon Prime -- Amazon, on average, takes a hit on the shipping costs when you sign up for Prime.
kamkha··on The Economics of Bike Lanes
Same goes for Mass Ave. I don't think I've ever seen the bike lane on either side of Mass Ave not blocked by a pedestrian or parked car every couple of blocks.
kamkha··on Ask HN: Why don't banks take your photograph?
Bank of America does this for newly issued accounts and cards (both debit and credit), too, unless you specifically request a photo-less card.
kamkha··on Ask HN: good startup internal wiki / info repository?
37signals's suite of products (http://37signals.com) is pretty good for what you need. Basecamp can handle the progress/deadlines and questions, and Backpack's a pretty good solution for sharing documents and such internally.
kamkha··on Introducing MotionCAPTCHA: Stop Spam, Draw Shapes
I'm fairly certain that a computer could handle these CAPTCHAs better than I could.
← PreviousPage 2 of 2