Author: Prabhu Balakrishnan
-
7 Cool CSS Tricks for Responsive design
If you have old sites built with tables running, then its time to wake up and convert those pages to “responsive”. The share of mobile browsers is catching up and is almost 40% to desktops and also Google penalizing sites which are not responsive yet. If you happen to use firefox, you can have a…
-
Fix -> Xbox 360 display works but no audio?
So after a long 6 month vacation, came home hooked up HDMI cable to TV and started my xbox and noticed something wierd. Display was corrupted, had to fix the resolution but no audio . This is what i did to fix the problem. Go to settings > console > display discovery > disable (prompts…
-
Beginners Word2vec Tutorial on large Text corpus
Word2vec when run on large text corpus, automatically captures relationships and similarities in text data. For example, if you ask Germany capital, it will say Berlin. Word2vec generates vectors for each word and a simple cosine of the vector, shows how close two words are. I will be using hillary emails text corpus from kaggle…
-
Shell command remove empty lines in a text file
You can remove empty lines on a fly using “sed” in a shell. This is how sed ‘/^$/d’ input.txt > output.txt Input: and by but Output: and by but
-
Fast perl shell script to remove stopwords from text corpus.
If you are looking to remove certain words from a file1 with list of stopwords from file2 (one per line), use this perl script in the command line. #!/usr/bin/env perl -w # usage: script.pl words text >newfile use English; # poor man’s argument handler open(WORDS, shift @ARGV) || die “failed to open words file: $!”;…
-
EzyTheme – Fluid responsive free wordpress theme
I built this beautiful fluid responsive theme using grid model of Purecss. I am giving away this theme FREE for wordpress lovers. This theme is incredibly powerful with simple things and gives you total control on colors, text and even different font. The theme will fit nicely to blogs, corporate or business sites, which needs…
-
How to integrate PureCSS menu into WordPress
Pure.CSS is a popular css framework but the challenge is to integrate into wordpress. I will show you how to convert a wordpress navi menu into pureCSS multi level type menu (http://purecss.io/menus/). In PureCSS you can create a dropdown multilevel simple menu using this html code. You have to add this line to kickstart pure…
-
Screenshots using Firefox and Xvfb in Amazon EC2
Running a screenshot server in Amazon linux can be little tricky in EC2 but not impossible. I managed to install headless server Xvfb, Firefox in Amazon EC2 and it worked great. I wrote a quick shell script to capture screenshots from list of URLs stored in a file. I have to admit that compiling Xvfb,…
-
How to scan documents using laptop video camera?
I have been such a lazy user of scanners. I really hate pulling up a scanner everytime to scan small documents, then to scan, copy and email, such a tedious work for me. These days there are cameras everywhere in mobile phones, computers and laptops. Even there are apps to use video camera as scanner.…
-
Denoising stained images using kmeans clustering
Lets take a look on how we remove stains in noisy stains in grayscale images. Kaggle has competition on denoising dirty documents https://www.kaggle.com/c/denoising-dirty-documents. Although the the performance of k-means is just average, we will understand here quality of predictions. First we train a set of 144 clean png images (images are uneven dimensions so…