Strategies for Select Dropdown Lists Placeholder
HTML5 brings us the placeholder attribute using which we can set default text on an input field or a textarea that goes away when you focus in the field and then write something. What about...
View ArticleUsing the Node.js Bcrypt Module to Hash and Safely Store Passwords
Using bcrypt is the proper way to store passwords in your database regardless of whatever language your backend is built in – PHP, Ruby, Python, Node.js, etc. Why ? Here’s the answer. So how do we go...
View ArticleUsing Underscore.string for String Manipulations in JavaScript
Underscore.string is an excellent string manipulation library (or helper) for Javascript that can be used with or without the nifty Underscore.js library. It can be used client side in browsers or...
View ArticleMongoDB Pretty Print Result Objects in Mongo Interactive Shell
This is just a mongodb quick tip in regards to printing the result sets with proper formatting in the mongo interactive shell. Usually when you select documents in a collection using find() in the...
View ArticleUsing Node Version Manager (NVM) to Manage Multiple Node.js Versions
Node Version Manager (NVM) is a neat little bash script that allows you to manage multiple versions of Node.js on the same box. A version manager really helps to test our applications under different...
View ArticleJavaScript Control Input Field Caret Position or Move to End in Textboxes and...
Long title, but then I felt like specifying parts of what I’ll be covering in this post. Anyway, so I’ll start by a not-so-common issue that some of us have encountered, which is, how to move the input...
View ArticleList of Webkit CSS Properties for Mobiles
Just thought of making a list of -webkit (Chrome, Safari) css properties that mostly affects mobile user experience – iOS, Android, etc. -webkit-overflow-scrolling Ever wanted to mimic the native style...
View ArticleWeighted/Biased Random Number Generation with JavaScript based on Probability
First of all what is weighted random ? Let’s say you have a list of items and you want to pick one of them randomly. Doing this seems easy as all that’s required is to write a little function that...
View ArticleBrowser-Side Node.js Style Modules require() and exports with Browserify
Browserify is an excellent tool that lets you use CommonJS modules right in the browser by bundling all of them up into a single large file. If you are well acquainted with Node and it’s way of loading...
View ArticleServe Your JavaScript Files Bundled using Browserify with Node Enchilada
If you’re using Browserify to bundle assets in an Express or Connect application then you may want to consider using node-enchilada middleware to faciliate your bundling process. Installation Install...
View ArticleQuick Tip: Node.js Open URL in User’s Preferred Application/Browser
Using the node-open module you can open files or URLs in the user’s preferred application. For example this piece code will open CSSDeck in the user’s default browser (for me it’s Google Chrome) - You...
View ArticleFast Automatic Browserify Bundling with Beefy
If you’re a browserify user, then beefy might help you bundle your JavaScript file automatically. It is a command line tool that runs a local node server which accepts a path to the JS file (with all...
View ArticleBinary and Red Black Search Tree Implementation in JavaScript
I’m not going to dive deep into what Binary Search Tree is because this tutorial and Wikipedia does an excellent job at that. Instead I’ll mostly dicuss about a neat JS implementation that I came...
View ArticleSimple and Lightweight JavaScript Table/Grid/List Sorter
This is more of a snippet extracted from one of my recent projects where I had to sort a list/grid of div’s. Yeah, I didn’t use tables for tabular data this time, but plain divs, although this snippet...
View ArticleQuick Tip: Fixing Locale Warnings/Notices Issues on Linux Server (or Desktop)
Some locale issues (errors, warnings or notices) might bug you on a linux box (in my case Ubuntu) when executing various commands: $ schroot terminate called after throwing an instance of...
View ArticleExport your Issues and Wikis from Github Repo and Import to Bitbucket...
I just migrated a private repository from github to bitbucket. In this process, moving the entire codebase is not enough especially when you have hundreds of issues and lots of wikis – you need to keep...
View ArticleHTML5 Audio Behaviour and Support in iOS and Android
Few months back I was developing an HTML5 game where I really struggled with adding and playing the different sound/audio effects properly across different browsers and platforms, especially in mobiles...
View ArticleFixing HTML5 Audio Problems in iOS and Android Mobile Browsers to Overcome...
In one of my earlier posts I discussed some of the issues (or limitations) with HTML5 audio support in iOS and Android mobile and tablet platforms. In this article I am going to try to take a look at...
View ArticleSolve Your Game Audio Problems on iOS and Android with Web Audio API
So you made your game or some other app that has multiple sound effects produced by several audio files. It works great on your desktop, laptop, etc. browsers but then you realize that you have some...
View ArticleSend Newsletters or Email Marketing Campaigns via Amazon SES with Sendy (PHP...
Email newsletters is one of the most effective way to execute your marketing campaigns by reaching out directly to your subscribers who are basically your customers, readers, fans/followers or...
View Article