Thoom Technologies

Month

July 2011

4 posts

“The engineering challenges in providing read-after-write consistency in a smaller geographical area are greatly magnified when that area is expanded. The fundamental physical limitation is the speed of light, which takes at least 16 milliseconds to cross the US coast-to-coast (that’s in a vacuum – it takes at least four times as long over the internet due to the latency introduced by routers and switches along the way).” —

Read-After-Write Consistency in Amazon S3

» It’s amazing that we have technologies that are limited by the speed of light. Who’d have thunk?

Jul 28, 20111 note
#aws #s3
Jul 26, 2011
#ios subscriptions
Deleting object properties in Javascript → foohack.com

» I was looking for the proper way to delete an object property in Javascript and came upon this nice example. I figured it was worth sharing. I’ve also included a similar way of handling it in PHP.

var obj = {asdf:'foo',bar:'baz'};
obj.asdf = undefined;
for ( var i in obj ) {
 console.log(i,obj[i]);
}
// outputs:
// asdf undefined
// bar baz

var obj = {asdf:'foo',bar:'baz'};
delete obj.asdf;
for ( var i in obj ) {
 console.log(i,obj[i]);
}
// outputs:
// bar baz

Using an array in PHP (just for reference) the code would look like:

$obj = array('asdf' => 'foo', 'bar' => 'baz');
$obj['asdf'] = null;
foreach ( $obj as $key => $val ) {
 echo "$key $val"; 
}
// outputs:
// asdf 
// bar baz

$obj = array('asdf' => 'foo', 'bar' => 'baz');
unset($obj['asdf']);
foreach ( $obj as $key => $val ) {
 echo "$key $val"; 
}
// outputs:
// bar baz
Jul 22, 20112 notes
#php #javascript
“You think you’re going well with your web development until you go and try your site out on Internet Explorer, then you discover just how much work you have still to do.” —

Fix for IE using an AJAX/DHTML driven upload progress monitor

» After spending the last several months working mostly on backend code (MySQL, PHP, etc), I’ve started doing more JS work, mostly cross-domain XHR. I found this quote in my research and it has never been more apt.

The way Microsoft works continues to baffle me. It’s as though they look at key pieces of functionality and decide to kick against the industry and come up with some new way of forcing developers to support them independently.

In our case, I now have to support the XDomainRequest object and all of it’s limitations. This meant that in addition to building out support for XDR in Javascript, I also had to update several key server-side pieces to support its extremely rudimentary GET/POST methods.

Jul 15, 2011
#xdomainrequest #internet explorer sucks.
Next page →
2012 2013
  • January
  • February
  • March
  • April 3
  • May 2
  • June
  • July
  • August
  • September
  • October
  • November
  • December
2011 2012 2013
  • January 3
  • February
  • March 3
  • April 2
  • May
  • June
  • July
  • August
  • September 1
  • October 1
  • November
  • December
2010 2011 2012
  • January
  • February
  • March
  • April
  • May
  • June 4
  • July 4
  • August 12
  • September
  • October 3
  • November
  • December 1
2010 2011
  • January
  • February
  • March
  • April 3
  • May 1
  • June 1
  • July
  • August 1
  • September 1
  • October 1
  • November
  • December