Posts by Dave.

Charles HTTP Monitor

Here’s a handy tool when developing for web services/amfphp/flash remoting making it a breeze to see what is actually be transferred. Check it out here: http://www.charlesproxy.com

Charles is an HTTP proxy / HTTP monitor / Reverse Proxy that enables a developer to view all of the HTTP traffic between their machine and the Internet. This includes requests, responses and the HTTP headers (which contain the cookies and caching information). Charles can act as a man-in-the-middle for HTTP/SSL communication, enabling you to debug the content of your HTTPS sessions.Charles simulates modem speeds by effectively throttling your bandwidth and introducing latency, so that you can experience an entire website as a modem user might (bandwidth simulator).Charles is especially useful for Adobe Flash developers as you can view the contents of LoadVariables, LoadMovie and XML loads. Charles also has native support for Flash Remoting (AMF0 and AMF3). More about Charles and Flash. Charles is also useful for XML development in web browsers, such as AJAX (Asynchronous Javascript and XML) and XMLHTTP, as it enables you to see the actual XML that is flowing between the client and the server. Charles natively supports JSONJSON-RPC and SOAP; displaying each in a simplified tree format for easy viewing and debugging.

Play Next FLV

Don’t know why this is always a hassle, but here is a simple way to play .flv’s one after another (actionscript 3.0). The NetStatusEvent.COMPLETE is oddly inconsistent.

ns.addEventListener(NetStatusEvent.NET_STATUS, detectEnd);

function detectEnd(myevent:NetStatusEvent):void {

switch (myevent.info.code) {

case “NetStream.Play.Stop”:

trace(”stop”);

//play video

ns.play(”video/vide.flv”);

break;

}

}

Another Reason I hate ie6

I recently had a ie6 that only broke when using digest authentication, all other browsers worked fine. Hence, yet another ie6 specific hack…

From Apache:

The Digest authentication implementation in previous Internet Explorer for Windows versions (5 and 6) had issues, namely that GET requests with a query string were not RFC compliant. There are a few ways to work around this issue.

The first way is to use POST requests instead of GET requests to pass data to your program. This method is the simplest approach if your application can work with this limitation.

Since version 2.0.51 Apache also provides a workaround in the AuthDigestEnableQueryStringHack environment variable. If AuthDigestEnableQueryStringHack is set for the request, Apache will take steps to work around the MSIE bug and remove the query string from the digest comparison. Using this method would look similar to the following.

Using Digest Authentication with MSIE:

BrowserMatch "MSIE" AuthDigestEnableQueryStringHack=On

This workaround is not necessary for MSIE 7, though enabling it does not cause any compatibility issues or significant overhead.

See the <a href="http://httpd.apache.org/docs/2.0/mod/mod_setenvif.html#browsermatch">BrowserMatch</a> directive for more details on conditionally setting environment variables

Edward Tufte on the iPhone UI

Video here: Edward Tuft on the iPhone UI

My favorite line: computer administrative debris

Interface design and the iPhone

“The iPhone platform elegantly solves the design problem of small screens by greatly
intensifying the information resolution of each displayed page. Small screens, as on
traditional cell phones, show very little information per screen, which in turn leads
to deep hierarchies of stacked-up thin information–too often leaving users with
“Where am I?” puzzles. Better to have users looking over material adjacent in space
rather than stacked in time. To do so requires increasing the information resolution of the screen by the hardware
(higher resolution screens) and by screen design (eliminating screen-hogging
computer administrative debris, and distributing information adjacent in space).”

s3 backup + mySql dump

These two open source scripts are very useful when combined with cron:

s3 Tools : http://sourceforge.net/projects/s3tools/

OpenSource tools to access Amazon S3 file storage. s3cmd - unix-like tools to manipulate stored files from the command line, s3fuse - driver to mount the S3 storage locally.

and

automysqlbackup : http://sourceforge.net/projects/automysqlbackup/

A script to take daily, weekly and monthly backups of your MySQL databases using mysqldump. Features - Backup mutiple databases - Single backup file or to a seperate file for each DB - Compress backup files - Backup remote servers

2D ActionScript 3.0 Physics Engine

2D ActionScript 3.0 Physics Engine

 

APE (Actionscript Physics Engine) is a free AS3 open source 2D physics engine for use in Flash and Flex, released under the MIT License. APE by Alec Cove

2D Multi-Physics Simulation Application

This thing is more fun than Gears of War. Heck, it even has Mochi as an element

http://www.octaveengine.com/en/

” OE-CAKE! is demonstration software for 2D-based multi-physics simulation. 
In a way similar to drawing images using paint software, users create objects and can see them move according to the laws of physics. This software supports various physical materials with real life properties such as fluids, gases, rigid (hard) objects and elasticity (soft) objects as building blocks. Users can combine these objects to create and play with more complex objects and mechanisms such as cars, gears and moving dolls. Users can also attach pictures and photos to objects and change their shape, break them apart, or melt them. ”

Social Reputation Design Pattern Described by Yahoo

 

Reputation Design Pattern

“A person participating in a social structure expects to develop a reputation and hopes for insight into the reputations of others, but each designed model of participation and reputation embodies its own set of biases and incentive structures. Balancing these forces determines in large measure the success or failure of a social system.”

google via shell

I love this “shell” interface to google.

http://goosh.org/

Cubescape

isometric fun:http://www.themaninblue.com/experiment/Cubescape/