Skip to content

GIT Video Tutorials – learn Git from experts

GIT-SCM.com tutorials: GIT Casts: GIT 101: GIT & GitHub: text book @ http://git-scm.com/book git flow: http://nvie.com/posts/a-successful-git-branching-model/ using git flow: http://yakiloo.com/getting-started-git-flow/

Continue reading...




Improving performance of Java String methods

Regular expression matching always comes with the cost of pattern matching. In case the pattern is not precompiled then the the expression parsing happens every time the code is invoked. Some of Java String methods use regular expressions e.g. matches(…), replaceFirst(…), replaceAll(…) and split(…). These methods actually use Pattern matching library methods internally however these [...]

Continue reading...




The Zen of Python, by Tim Peters (python -m this)

$ python -m this The Zen of Python, by Tim Peters Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated. Flat is better than nested. Sparse is better than dense. Readability counts. Special cases aren’t special enough to break the rules. Although practicality beats [...]

Continue reading...




Introducing Google Official Blog Reader

Its a simple Google blog news reader. Written in JavaScript, it uses Google’s feed history system to pull feed entries and shows the latest news. Try it here. http://www.hashfold.com/news/ Note: It uses user’s internet to pull the news updates. send me your feedback and ideas to improve the performance and look n feel of the [...]

Continue reading...




Writing Your First DSL using Groovy

Writing Your First DSL using Groovy In this example, we will be writing a DSL to configure the valid values for the columns of a given table. Below is how we write the DSL: Sample.groovy: Schema.groovy: Here is how we call the above Groovy script from Java and execute it: GroovyCaller.java: Output from GroovyCaller.java: {column1=[1, [...]

Continue reading...




Automating Virtual Machine creation using VirtualBox, Vagrant and Puppet

Introduction In this tutorial, I’ll be going through the process of creating Virtual Machine using VirtualBox, Vagrant and Puppet. Lets first understand what these mean and then we can go through the manual process of creating Virtual Machines and then automating everything using Vagrant and Puppet. VirtualBox VirtualBox is a general-purpose full virtualizer for x86 [...]

Continue reading...




comparing ebay and amazon home pages using 3D layout structures

eBay.com view: amazon.com view: ebay: category section floats outside of the view area and rest of the layout area looks perfectly fine. amazon: no floating elements found except the layout width is uneven.

Continue reading...




Facebook Graph Search – some interesting queries

today I got approved by Facebook to use their graph search. I played with it a bit and found it very useful in exploring the unknown/unexplored. here are few of them: 1. Friends of friends who like to dance 2. Friends of my friends who live in San Francisco, California and work at Google 3.  This time, I’m looking for anyone who love playing cricket but is from my [...]

Continue reading...




Amazing Page Architecture – Measuring the thickness of the web pages

disclaimer: i’m not css/html expert. I believe that browsers render web pages in x,y co-ordinates (width, height) however they also keep the z-index. The z-index is somewhat controlled by css code. The performance of the page rendering is also controlled by how deep the content is i.e. depth of the displayable html element. Performance degrades as we [...]

Continue reading...




Getting started with Cassandra on Windows

Running Cassandra on Windows: step by step presentation …follow below steps to successfully setup and run sample test case… 1. Download Cassandra from http://cassandra.apache.org/download/​ 2. unzip under C:\cassandra\apache-cassandra-0.7.8 3. set CASSANDRA_HOME=C:\cassandra\apache-cassandra-0.7.8 and make sure JAVA_HOME​ is already set. 4. modify config/cassandra.yaml   and change all the directories to windows. e.g. ——————————————————————————– data_file_directories: – C:/tools/apache-cassandra-0.7.8/data/data commitlog_directory: C:/tools/apache-cassandra-0.7.8/data/commitlog saved_caches_directory: C:/tools/apache-cassandra-0.7.8/data/saved_caches ——————————————————————————– now create below folders under C:/tools/apache-cassandra-0.7.8/data/:   callouts, bootstrap, staging, saved_caches, commitlog, data [...]

Continue reading...