I recently did a google search for "javascript clone", and noticed there's a lot of confusion about cloning vs. copying out there. Every function called clone() I found was in fact either a shallow or deep copy.
- Premasagar Rose
"Build Your Business, Not Your Billing System Chargify simplifies recurring billing for Web 2.0 and SaaS companies. * Charge your customers' credit cards * Manage recurring subscriptions effortlessly * Achieve PCI compliance instantly * Seamlessly integrate our API into your site * Gain business intelligence from your billing"
- Premasagar Rose
jQuery makes it pretty easy to manipulate client side elements, so it’s not all that often that I think about using something like client side templating to get content loaded into pages. However, recently I have been working on a few apps that had fairly complex list based layouts and it started getting tedious to use manual code to update all the items. Further doing it by hand can be brittle if your layout changes as you have to keep the layout and the update code in sync. Templating can address this problem by letting you use templates that describe your output with ‘holes’ that are filled in with data when the template is processed. Templating is a good solution in a few scenarios: Loading all data from the server especially in rich list displays Adding or updating new items in lists Anywhere you need to add new complex content to the page Anything that requires client side HTML rendering
- Premasagar Rose
Getting Real is the business, design, programming, and marketing philosophies of 37signals, who used the unconventional Getting Real process to launch five successful web-based applications (Basecamp, Campfire, Backpack, Writeboard, Ta-da List), and Ruby on Rails, an open-source web application framework, in just two years with no funding, no debt, and only 7 people. Read the book for free online.
- Premasagar Rose
This plugin generates generic collection classes, that work almost exactly as jQuery does. These collections include all those jQuery functions, that are used to manipulate the collection itself. The supported functions are: add, andSelf, attr, each, end, eq, extend, filter, get, implement, include, index, init, is, map, not, pushStack, setArray, size and slice.
- Premasagar Rose
Once upon a time, all we needed to worry about was reducing Bytes and Requests and playing around with load order to make things faster. Nowadays, we are increasingly impacting one more major component in performance - CPU utilization. Using jQuery and other frameworks that make selecting nodes and DOM manipulation easy can have adverse affects if you’re not careful and follow some simple practices for reducing the work the browser has to do.
- Premasagar Rose
John Resig's JavaScript classical-inheritance-simulating code. Based on implementations employed by Base2 and Prototype. * Creating a constructor is simple (by providing an 'init' method) * To create a new 'class' you extend (sub-class) an existing class * All of the 'classes' inherit from a single ancestor: Class * Access to overridden methods is provided (with their context properly set) E.g. var Person = Class.extend({ init: function(isDancing){ this.dancing = isDancing; }, dance: function(){ return this.dancing; } }); var Ninja = Person.extend({ init: function(){ this._super( false ); }, dance: function(){ // Call the inherited version of dance() return this._super(); }, swingSword: function(){ return true; } });
- Premasagar Rose
a new collaborative community site for video creators to ask questions and offer answers for anything related to video production— cameras, editing, publishing, and more. We think this will be an extremely useful site for the video community at large. We think WTF really sums up how we feel when we’re stuck on with a camera or editing problem. The site is based on the StackOverflow service, so we think it’ll work well.
- Premasagar Rose
FFDirect is a wordpress plugin that will immediately submit your posts to friendfeed the moment they are published. Any images in the article will also be included, as well as links to audio files.
- Premasagar Rose
WebWait is a website timer. Use WebWait to benchmark your website or test the speed of your web connection. Timing is accurate because WebWait pulls down the entire website into your browser, so it takes into account Ajax/Javascript processing and image loading which other tools ignore.
- Premasagar Rose
In this new Web 2.0, mashup world that the Internet has become, a lot of focus has been placed on the use of iframes for embedding third-party content onto a page. Iframes provide a level of security since JavaScript access it limited by domain name, so an iframe containing content from another site cannot access JavaScript on the containing page. This cross-domain restriction goes both ways as the containing page also has no programmatic access to the iframe. In all ways, the containing page and the iframed page are cut off from communication (which has led to the cross-document messaging API in HTML5). The missing piece of intrigue in most discussions surrounding iframes is JavaScript object ownership.
- Premasagar Rose
"Advanced search operators are query words or symbols that perform special actions in Gmail search. These operators allow you to find what you're looking for quickly and accurately. They can also be used to set up filters so you can organize your inbox automatically. Some of the most useful operators are listed below. You can also use advanced search operators by clicking on Show search options beneath the Gmail search box."
- Premasagar Rose
"Newsreaders still feel it is worth a special and rather worrying mention if, for instance, a crime was planned by people ‘over the Internet.’ They don’t bother to mention when criminals use the telephone or the M4, or discuss their dastardly plans ‘over a cup of tea,’ though each of these was new and controversial in their day."
- Premasagar Rose
ccessible data visualization in HTML has always been tricky to achieve, particularly because elements such as images allow only the most basic features for providing textual information to non-visual users. A while back, we wrote an article describing a technique we came up with to use JavaScript to scrape data from an HTML table and generate charts using the HTML 5 Canvas element. The technique is particularly useful because the data for the visualization already exists in the page in structured tabular format, making it accessible to people who browse the web with a screen reader or other assistive technology. We've now rewritten and extended the code behind this technique and packaged it up as a new jQuery plugin called "visualize", which you can download below. The plugin provides a simple method for generating bar, line, area, and pie charts from an HTML table, and allows you to configure them in a variety of ways.
- Premasagar Rose
Real-time feed parsing in the cloud for web-developers "Why build a complex feed fetching and parsing infrastructure when you could just use ours? Superfeedr is Real-time Feed Parsing in the Cloud. Cloud infrastructure: give us urls, and we'll do the rest. Check our documentation. Realtime: By combining different technologies we can notify you of new entries in less than 15 minutes (or it's free) No more polling: Stop wasting your time and resources fetching 'old data', and stop being late when there is new data. Standardization: No more nightmares with gazillions of formats, we will send you strict ATOM, whatever the original feed format is. Multi-channel: receive the notifications by XMPP, on a local JID or your own external JID, or using WebHooks. Cost saving: we will match the cost of your existing system."
- Premasagar Rose
The iPhone supports both landscape and portrait views. You can specify CSS based on viewport orientation which you determine via javascript and update the orient attribute of the body element. Target the browser with body[orient="landscape"] or body[orient="portrait"]
- Premasagar Rose
"Have you ever discovered the perfect icon set, only to find it wasn't available for your particular platform? iConvert solves the problem: With this free tool, you can convert any common icon or image into an icon specifically for your platform. iConvert allows you to convert Windows icons to Mac OS X icons, convert Mac OS X icons to Windows icons, even create your own icons, buddy icons, emoticons, and more. Simply upload a file in one of the supported formats, and iConvert will do the rest."
- Premasagar Rose
"The data set for the map was constructed by adding bounding box data for each constituency to a Dabble DB table, and then joining it with expenses data from another table. The blocks are defined using the bounding box co-ordinates for each MP’s constituency as made available by TheyWorkForYou (specifically, using the getGeometry API call)."
- Premasagar Rose
Supersized: * Resizes images to fill browser while maintaining image dimension ratio * Cycles Images/backgrounds via slideshow with transitions and preloading * Navigation controls allow for pause/play and forward/back
- Premasagar Rose