HNHacker News
TopNewBestAskShowJobs

mmj

13 karma · joined December 22, 2008

submissionscomments
mmj··on Ask HN: What do you think makes a good teacher?
Being able to relate with the student.

For instance after I learn a language and am trying to teach someone else the language I just can't see why the person is having trouble learning a certain concept of the language. It all seems so simple to me since I've already learned this language and it's hard for me to be able to empathize with the learner.

mmj··on Measuring download speed by embedding a GIF inside a JavaScript comment

  PS This system measured my connection speed as 20Mbps. Which is about 5x too large.
  
  
  GET /inet/ent_logon/Logon?redirectjsp=true HTTP/1.1
  
  HTTP/1.x 200 OK
  Content-Encoding: gzip
---

The page is gziped.

mmj··on Interner Explorer RC1: Not bad for a Microsoft browser. But kinda creaky
I remove the search bar in Firefox and just use the address bar for searches. It searches Google and if the result is popular enough it goes directly to that page.
mmj··on IE 8 Release candidate available for download (does load faster than Firefox)
Does load faster the Firefox? O rly?

Firefox 3.1b2 opens in a fraction of the time IE8rc1 opens, on first start and on re-open.

mmj··on "Must have advanced knowledge of Web 3.0"
http://www.google.com/search?q=web+78.0
mmj··on Ask HN: What programming language should I teach my little brother?
Yeah, PHP isn't an excellent language but it does do one thing and do it well. Just 99% of examples or scripts you find are absolutley horrible. Seriously, I've seen blog posts on PHP from IBM which contain bad programming practices.
mmj··on Google's Microsoft-esque landgrab for IE's market share
I see it every now and again.
mmj··on jQuery 1.3 ßeta
Yes, but even better would be to use jQuery's excellent JSONP method.
mmj··on jQuery 1.3 ßeta
http://www.json.org/json2.js

// In the third stage we use the eval function to compile the text into a

// JavaScript structure. The '{' operator is subject to a syntactic ambiguity

// in JavaScript: it can begin a block or an object literal. We wrap the text

// in parens to eliminate the ambiguity.

mmj··on jQuery 1.3 ßeta
You don't have to eval xml.
mmj··on jQuery 1.3 ßeta
That is a pretty niche feature, I personally wouldn't do something like that.

Check out getResponseHeader() if you are so inclined.

As for the errors, there are many ways to check for "ajax" errors, for one thing you can check the status or statusText property.