Thursday, May 14th, 2009

Monadic Parser in JavaScript

Category: JavaScript, Utility

Jens Schmidt pointed us to an interesting project by “Mu Dynamics Research Labs” called p4js: p4js is a monadic parser library that provides the basic monadic operators return and bind The announcement blog post explains some of the motivations behind the project: After exploring Haskell for some time, I find myself often adopting functional concepts Read the rest…

Posted by Ben Galbraith at 10:32 am

3.9 rating from 27 votes

Wednesday, May 6th, 2009

SoundManager 2: Cool New Flash 9 Features

Category: Flash, JavaScript, Sound, Video

Scott Schiller has updated his popular SoundManager 2 library to include new functionality made possible by Flash 9, such as: * Full-screen MPEG-4 video (HE-AAC/H.264) and audio support * “MultiShot” play (layered/chorusing effects) * Waveform/frequency spectrum data * Peak (L/R channel volume) data * Audio buffering state/event handling In addition, SoundManager 2 now includes improved Read the rest…

Posted by Ben Galbraith at 8:00 am

4.6 rating from 35 votes

Tuesday, May 5th, 2009

A Better Javascript Memoizer

Category: JavaScript, Performance

We have covered memoizers in the past, but John Hann has posted on a nice implementation that takes advantage of closures, arity, and recursion — 3 concepts/features that Javascript was meant to use. It leads to this generic version: < View plain text > javascript // memoize: a general-purpose function to enable a function to Read the rest…

Posted by Dion Almaer at 5:16 am

3.9 rating from 35 votes

Monday, May 4th, 2009

Extension wars – NoScript vs. AdBlockPlus

Category: JavaScript, Security

One of the dirtiest secrets of the Internet is that it runs on ads for monetization. All of us who surf the web and use systems had lots and lots of free lunches because of advertisements being shown on web sites. The only difference to TV is that they are less obtrusive and you can Read the rest…

Posted by Chris Heilmann at 11:04 am

3.1 rating from 31 votes

Rico 3.0 now runs on multiple libraries; LiveGrid with a jQuery theme for example?

Category: JavaScript, Library

Ah Rico. It was a big shot when Ajax jumped on the scene and Bill Scott was lashing up the accordion landscape. Now time has moved on, and Bill keeps feeding us with usability goodness, but what about Rico? Well, Matt Brown is now on the case and has an early preview of Rico 3.0 Read the rest…

Posted by Dion Almaer at 7:04 am

3.9 rating from 29 votes

No love for the module pattern?

Category: JavaScript

There was a cheer when Doug showed people that the module pattern could nicely give you somewhat “private” access in JavaScript. At least, the Java folk definitely cheered. Jonathan Snook on the other hand has no love for the module pattern and, after using it for some time, now avoids it: Avoiding the Module Pattern Read the rest…

Posted by Dion Almaer at 6:22 am

2.6 rating from 38 votes

Friday, May 1st, 2009

Deep Leap: Teasing John Resig

Category: Fun, Games, JavaScript

John has been working on a very fun scrabble typing game called Deep Leap and although he hasn’t finished it yet, people found it (John, time to learn about .htaccess ? ;) Just to tease him a little more and get the word out before it is finished, check it out!

Posted by Dion Almaer at 4:33 pm

2.8 rating from 54 votes

Francisco Tolmasky Starts Blogging and Jump-starts Profiling

Category: Cappuccino, Debugging, JavaScript, WebKit

It’s no secret that we’re mightily impressed with the fine work of the 280 North crew, what with 280 Slides, Cappuccino, Atlas, working with SOFA to make Aristo free for other projects to use, and that whole Objective-J thing which we’ll never use but we love nonetheless. ;-) Francisco Tolmasky, one-third of the team, started Read the rest…

Posted by Ben Galbraith at 1:08 pm

3.4 rating from 20 votes

Thursday, April 30th, 2009

YQL execute now allows you to convert scraped data with server side JavaScript

Category: Examples, JavaScript, Yahoo!

I am a big fan of YQL, a terribly easy and fuss-free way to access APIs and mix data retrieved from them in a simple, SQL style language. Say for example you want photos of Paris,France from Flickr that are licensed with Creative Commons attribution, you can do this with a single command: < View Read the rest…

Posted by Chris Heilmann at 9:28 am

4 rating from 30 votes

Tuesday, April 28th, 2009

vice-versa: the noble act of getting the best of all browsers

Category: JavaScript

Andrea Giammarchi has a vision to have the best of all browsers available to him in JavaScript land. He has created vice versa as a project to explore this ideal and incredibly hard vision to attain: Studying the DOM, which is notoriously a mess, I often “travel” between the MDC and the MSDN to solve Read the rest…

Posted by Dion Almaer at 6:18 am

2.8 rating from 42 votes

Monday, April 27th, 2009

CiteDrag: Cool library that groks the new drag and drop model

Category: HTML, JavaScript, Library

Elijah Grey has a very cool new script CiteDrag that “adds automatically citation (ie. blockquotes, text quotes, ect.) to any dragged content off of the website which is using the script. CiteDrag requires no additional setup other than include the script somewhere on your website.” I just dragged that above text from my blog post Read the rest…

Posted by Dion Almaer at 8:21 am

2.7 rating from 10 votes

Friday, April 24th, 2009

Blackberry Storm using Raphael (SVG/VML) and SoundManager

Category: JavaScript, jQuery, Showcase, SVG

Brad Neuberg pointed me to a Blackberry Storm site that uses Raphael, jQuery, and SoundManager to offer an SVG / VML (for IE) experience. < View plain text > HTML <script src=""></script> <script src="/js/soundmanager2-nodebug-jsmin.js"></script> <script src="/js/raphael-min.js"></script> <script src="/js/trig-min.js"></script>

Posted by Dion Almaer at 6:48 am

3 rating from 30 votes

Thursday, April 23rd, 2009

myPatterns: XPath / RegEx for JS Objects

Category: JavaScript, Library

Nic Volanschi pointed us to myPatterns: myPatterns is a new library adding custom notations for data structures in JS (and also C). It’s really useful for writing elegant programs using general pattern matching. To explain myPatterns, let’s introduce a standard JavaScript object: < View plain text > js {   name: { firstname: "John", lastname: Read the rest…

Posted by Ben Galbraith at 8:00 am

2.6 rating from 38 votes

How many ways can you iterate over an array in JavaScript?

Category: JavaScript, Tip

Myk is one of the nicest chaps that I have had the pleasure to sit closely to in Mozilla building “S”. He has a nice little tip on the many syntaxes that you can use to iterate over arrays in various JavaScript implementations and standards. Some folks had some interesting points on the various approaches: Read the rest…

Posted by Dion Almaer at 4:29 am

3.5 rating from 45 votes

Wednesday, April 22nd, 2009

Dynamically Generated PDFs… with JavaScript?

Category: JavaScript

In the “it-had-to-be-done-at-some-point” category, we give you James Hall’s latest project: I have started working on jsPDF, an entirely Javascript-based PDF generator. Currently the demo serves up the generated PDF as a Data URI, but it could be used on the server side or within browser extensions. It currently only supports simple text, but I’m Read the rest…

Posted by Ben Galbraith at 9:30 am

4.5 rating from 66 votes

Tuesday, April 21st, 2009

Persevere’s JavaScriptDB: Impressive JSON Performance

Category: Database, JavaScript, JSON

Kris Zyp recently posted about an intriguing new chapter in the application persistence space: The latest beta of Persevere features a new native object storage engine called JavaScriptDB that provides high-end scalability and performance. Persevere now outperforms the common PHP and MySQL combination for accessing data via HTTP by about 40% and outperforms CouchDB by Read the rest…

Posted by Ben Galbraith at 1:00 pm

4.6 rating from 51 votes