2009 Sep 17, 11:12This Javascript Nintendo emulator works amazingly well in Google Chrome. You can play Dr. Mario, Super Mario Bros., Tetris, The Legend of Zelda, etc.
browser javascript nintendo nes game videogame google tetris emulator 2009 Sep 1, 4:39"...what effect does the large-scale structure of the JS output code have on the DEFLATE algorithm of GZIP which is used to serve up compressed script?" Another instance of using knowledge of the
specific file type to get gains in compression. Is there a web proxy running all this at which I can point my phone?
via:kris.kowal performance javascript gzip deflate compression web technical 2009 Aug 31, 4:41"The Morph and the Mandelbrot animation are all real-time ASCII and done via JavaScript code. The "Shark-like" Skylined logo looks like 3D and really cool. I was amazed when I saw it for the first
time." Is this the Skylined that I know? That's some hardcore ASCII animation.
skylined javascript ascii via:waxy animation 2009 Aug 7, 7:03Starting with an English phrase, Translation Party converts back and forth between English and Japanese until the result no longer changes.
humor language google javascript english japanese translation via:waxy 2009 Jun 22, 2:53"Firefox 3.5 performs DNS prefetching. This is a feature by which Firefox proactively performs domain name resolution on both links that the user may choose to follow as well as URLs for items
referenced by the document, including images, CSS, JavaScript, and so forth."
dns firefox mozilla networking performance dns-prefetching technical 2009 Apr 7, 10:45HTML 5 allows websites to register themselves as handlers of particular URI schemes and particular content-types. I think this is great, but I'm surprised it doesn't support POSTing files to allow
for interactions with local content.
html5 url uri protocol reference html standard javascript webbrowser registerProtocolHandler 2009 Mar 25, 10:09Bookmarklet to apply the Yahoo media player to any page that has mp3 links. "Take the player with you. Run my bookmarklet that will simply insert the required javascript into the page."
bookmarklet mp3 javascript music yahoo 2009 Mar 10, 11:26I've seen Yahoo's media player javascript widget around but until I read the dev. instructions I didn't appreciate it. You just include their js file and it finds all your links to mp3s (finer
grained and more explicit control available too), adds them to its playlist, and sticks a simple play/pause button on each link.
mp3 music ajax design yahoo javascript 2009 Feb 5, 8:47Copy of the Netscape Navigator document (the original's long gone) describing the Proxy Auto-Config (PAC) file format and mime-type. Its a javascript file with at least one well known function that,
given a host, returns a string describing which methods are appropriate for a web browser to connect to that host.
javascript pac proxy http reference netscape navigator 2008 Nov 19, 12:58
The text/plain fragment documented in RFC 5147 and described on Erik Wilde's
blog struck my interest and, like the XML fragment, I
wanted to see if I could implement this in IE. In this case there's no XSLT for me to edit so, like my plain/text word wrap bookmarklet I've implemented it as
a bookmarklet. This is only a partial implementation as it doesn't implement the integrity checks.
Check out my text/plain fragment bookmarklet.
text url boring bookmarklet uri plain-text javascript fragment 2008 Nov 13, 10:21"Ever since I read about the incremental updates feature of the PDF file format, I've been patiently waiting for a malicious PDF document with incremental updates to come my way. Thanks to Bojan,
that day has finally arrived."
pdf security javascript exploit malware adobe 2008 Oct 28, 11:23
If you view a plain text document in Internet Explorer 8, for instance the plain text version of Cory Doctorow's book
Little Brother and press F12 to bring up the developer toolbar, you can see that IE simply takes the plain text, sticks it inside a
tag, and renders it. This means that word wrapping isn't supplied and the only line breaks that appear are those in the document. However, since the text document is converted to HTML it means I can implement word wrap myself using a bookmarklet:
javascript:function ww() { var preTag = document.getElementsByTagName('pre')[0]; preTag.style.fontFamily="arial"; preTag.style.wordWrap='break-word'; }; ww();
After adding a favorite and setting the favorite's URL to the previous, I can view plain text documents, and select my Word Wrap favorite to apply word wrap and non-fixed width font.
browser technical ie wordwrap 2008 Oct 13, 2:21Neat geolocation API for web apps: "Mozilla Labs has announced the availability of Geode, an experimental Firefox extension that implements the W3C Geolocation Specification. Geode provides an early
preview of the same location-aware functionality that will be included in both Fennec and Firefox 3.1."
geolocation geo w3c mozilla javascript web 2008 Oct 5, 9:17
Sarah asked me if I knew of a syntax highlighter for the QuickBase formula language which she uses at work. I couldn't find one but thought it might be fun to make a QuickBase Formula syntax highlighter based on the QuickBase help's
description of the formula syntax. Thankfully the language is relatively simple since my skills with ANTLR, the parser generator, are rusty now and I've only
used it previously for personal projects (like Javaish, the ridiculous Java based shell idea I had).
With the help of some great ANTLR examples and an ANTLR cheat
sheet I was able to come up with the grammar that parses the QuickBase Formula syntax and prints out the same formula marked up with HTML SPAN tags and various CSS classes. ANTLR produces the
parser in Java which I wrapped up in an applet, put in a jar, and embedded in an HTML page. The script in that page runs user input through the applet's parser and sticks the output at the bottom
of the page with appropriate CSS rules to highlight and print the formula in a pretty fashion.
What I learned:
- I didn't realize that Java applets are easy to use via script in an HTML page. In the JavaScript I
can simply refer to publicly exposed methods on the applet and run JavaScript strings through them. It makes for a great combination: do the heavy coding in Java and do the UI in HTML. I may end up
doing this again in the future.
- I love ANTLRWorks, the ANTLR IDE, that didn't exist the last time I used ANTLR. It tells you about issues with your grammar as you create it,
lets you easily debug the grammar running it forwards and backwards, display parse trees, and other useful things.
java technical programming quickbase language antlr antlrworks 2008 Aug 29, 10:31Differences between Microsoft's JScript and the ES3 standard with example output from all major browsers on each point.
microsoft development jscript javascript standard reference programming browser ie8 es3 compatibility 2008 Jun 12, 3:24A nice in browser regex tester. Give a sample string and a regex and the matches are highlighted.
regex javascript programming development 2008 May 5, 8:59Its vi in Javascript! Woo! Vi is awesome!
via:callmevlad vi vim development javascript editors 2008 Apr 29, 10:59A browser plugin that does an 'immersive 3d photo gallery' thing. Its neat looking but otherwise not sure how useful it is. However, they also provide an easy to use .js file that lets you easily do
a lite javascript version of their gallery (no 3d but n
free gallery photo tool browser plugin web piclens 3d 2008 Feb 12, 11:23Tantek has created a set of bookmarklets some of which look useful.
bookmarklets bookmark browser extensions javascript tools