Friday, May 09, 2008
Platypus Genome Found Fittingly Strange - washingtonpost.com
Platypus Genome Found Fittingly Strange - washingtonpost.com: "There are genes for egg laying -- evidence of its reptilian roots. Genes for making milk, which the platypus does in mammalian style despite not having nipples. Genes for making snake venom, which the animal stores in its legs. And there are five times as many sex-determining chromosomes as scientists know what to do with."
Wednesday, May 07, 2008
15 Philadelphia Officers Removed After Taped Beating
I like the viewer "discretion" part. I guess they want to make sure you don't let your kids riot over such things!
MyFox Philadelphia | 15 Philadelphia Officers Removed After Taped Beating: "Fox Exclusive Video: Chase Ends Violently (Viewer Discretion Advised)
Slideshow:"
MyFox Philadelphia | 15 Philadelphia Officers Removed After Taped Beating: "Fox Exclusive Video: Chase Ends Violently (Viewer Discretion Advised)
Slideshow:"
Thursday, March 27, 2008
Technology Review: Weather Engineering in China
Technology Review: Weather Engineering in China: "peasant farmers. . .on call to blast away at clouds with 7,113 anti-aircraft guns and 4,991 rocket launchers."
Thursday, February 28, 2008
Record-High Ratio of Americans in Prison - washingtonpost.com
"One in nine black men age 20 to 34 is behind bars. For black women age 35 to 39, the figure is one in 100, compared with one in 355 white women in the same age group."
Yeah, there's no such thing as racism in US society anymore. How could there be--all the blacks are in prison!!
Record-High Ratio of Americans in Prison - washingtonpost.com
Yeah, there's no such thing as racism in US society anymore. How could there be--all the blacks are in prison!!
Record-High Ratio of Americans in Prison - washingtonpost.com
Friday, February 08, 2008
AJAX: Accidental (appearance of) cross site scripting caused great confusion.
So, I've working on an AJAX application and the thing works great for 99.9% of my users. Occasionally, a user reports that they click "save" and nothing happens. The "save" in this case is a link that will use AJAX to send the data entered to my server and then the part of the page the user is changing updates after the server successfully updates the DB.
Now, usually, when someone tells me that "nothing happens" I get a little condescending. It's rarely the case that "nothing" happens. Rather, something does happen that, if the user would describe accurately, I might be able to use to analyze and resolve the problem.
In this case, however, I witnessed the problem myself when a recent user shared his screen with me. Sure enough, nothing was happening. I immediately started debugging using FireBug in FireFox. The problem was the same for this user, regardless of which browser and, so far, regardless of which computer he used.
My debugging revealed a greater mystery. Javascript stopped processing every time right where I use the open() method of XMLHTTPRequest (XMLHTTPRequest.open() or, as many libraries do it, xhr.open()). This is even inside of a try/catch section and basically, NOTHING happens.
So, after a few days of dazed confusion, I remembered something that happened when I was still developing my application. If my AJAX call called a domain that was not the same as the domain the web page sits on, NOTHING would happen. No error, no warning, no AJAX call, no nothing. So, I got to thinking about how it might be possible that, for some users on my application, the AJAX call is going out to the wrong domain or something like that.
Finally, a colleague suggested trying, on my own computer, hitting the AJAX thingy while surfing at our domain without the WWW in the address. I tried it. I went to http://mydomain.com and clicked "save" and NOTHING happened. I changed the address in my address bar to http://www.mydomain.com and that fixed it.
Just thought I'd share and save others the trouble.
UPDATE: I use JSMX for my Ajax stuff. It turns out that this problem wouldn't have been so silent if I had noticed and changed the error handler thrown by the open() method. The original developer set up one case as completely silent--interpreting it as an incompatible browser. Without the try/catch, Firefox says "Uncaught exception: Permission denied to call method XMLHttpRequest.open()" when the cross-site scripting is attempted.
Now, usually, when someone tells me that "nothing happens" I get a little condescending. It's rarely the case that "nothing" happens. Rather, something does happen that, if the user would describe accurately, I might be able to use to analyze and resolve the problem.
In this case, however, I witnessed the problem myself when a recent user shared his screen with me. Sure enough, nothing was happening. I immediately started debugging using FireBug in FireFox. The problem was the same for this user, regardless of which browser and, so far, regardless of which computer he used.
My debugging revealed a greater mystery. Javascript stopped processing every time right where I use the open() method of XMLHTTPRequest (XMLHTTPRequest.open() or, as many libraries do it, xhr.open()). This is even inside of a try/catch section and basically, NOTHING happens.
So, after a few days of dazed confusion, I remembered something that happened when I was still developing my application. If my AJAX call called a domain that was not the same as the domain the web page sits on, NOTHING would happen. No error, no warning, no AJAX call, no nothing. So, I got to thinking about how it might be possible that, for some users on my application, the AJAX call is going out to the wrong domain or something like that.
Finally, a colleague suggested trying, on my own computer, hitting the AJAX thingy while surfing at our domain without the WWW in the address. I tried it. I went to http://mydomain.com and clicked "save" and NOTHING happened. I changed the address in my address bar to http://www.mydomain.com and that fixed it.
Just thought I'd share and save others the trouble.
UPDATE: I use JSMX for my Ajax stuff. It turns out that this problem wouldn't have been so silent if I had noticed and changed the error handler thrown by the open() method. The original developer set up one case as completely silent--interpreting it as an incompatible browser. Without the try/catch, Firefox says "Uncaught exception: Permission denied to call method XMLHttpRequest.open()" when the cross-site scripting is attempted.
Thursday, November 08, 2007
Being Overweight Isn't All Bad, Study Says - washingtonpost.com
Being Overweight Isn't All Bad, Study Says - washingtonpost.com: "data from decades of federal surveys concluded that people who were overweight -- but not obese -- had lower overall mortality rates than those of normal weight."
Thursday, September 27, 2007
14886 Days till I die (if I'm lucky)
A colleague introduced me to this blog post today. I have placed a non-repeating appointment in my Google calendar for the day I die and will see, on a regular basis, how much time I have left to get my shit together and have a good time:
Conceptual Trends and Current Topics
Conceptual Trends and Current Topics
Subscribe to:
Posts (Atom)
