GotchaCode

Shifting Blog From WordPress to Bloggers

Gotchacode was earlier hosted on WordPress, But recently i was forced to switched to Bloggers.Here are some of the reasons that are responsible for this shift.


  • WordPress is getting complicated day by day, I like the open source version where you are hosting it on your server, but with wordpress.com its too much of a time waste. 
  • There are thousands and thousands of themes, most of them are useless and you will never find the one theme that could help you with what you want to do.Mine is a tech blog and i needed a theme that would support code syntax highlighting and at the same time look pretty. I am sorry to say but it never happened.
  • You can't use plugins of your own if u are using the free version at wordpress.com. 
Don't take me wrong by reading my rant about WordPress,  I just want to say that WordPress isn't innovating anymore. The infrastructure that once grew it isn't helpful anymore. Moreover when your search everything on Google why not switch to a service that is owned by Google.
But recently Bloggers has undergone huge changes and here are what makes it an excellent choice.
  • First and foremost, the recent upgrade in the dashboard and integration with Google+ makes its a breeze to use.
  • The Dynamic view template is one of cleanest and most innovative of the themes i ever came across in  a blogging service.
  • Effortless integration with the Google Adsense and other money making engines.
  • Blogger is also available in command line mode, with the GoogleCL, so i will never need to go to he loathe and slow web-interface of the WordPress.Agree there are clients for that, but if u are a command line guy, you will probably don't care for it.
  • Scaling: Who gets more hits then Google and who knows to handle traffic better than them. So it is quite an impossibility to face any downtime with it.
At last all i would like to say that Sorry WordPress, you were quite good in the start, but now i don't think i can take the pain of hosting my blog on yours.  

 

Staty- A Command Line Twitter Client.





Here is the screencast of command line twitter client,I use on daily basis for using twitter. It also has some cool features. Don't forget to check them out after watching the video.

Google Play is on!

As expected Google Play has been activated. It is basically a place where you can shop for android apps. The interface looks clean and it has a quite small number of apps as of now.We’ll keep you posted about any further development if any that sprouts up. play-google

Some Intresting Shell Scripts

Here are some shell scripts you will love to try and learn from.

To find all the IP address in /etc directory

find /etc -exec grep '[0-9][0-9]*[.][0-9][0-9]*[.][0-9][0-9]*[.][0-9][0-9]*' {} \;

Another Script
==============

#!/bin/bash
# idelete.sh: Deleting a file by its inode number.

# This is useful when a filename starts with an illegal character,
#+ such as ? or -.

ARGCOUNT=1 # Filename arg must be passed to script.
E_WRONGARGS=70
E_FILE_NOT_EXIST=71
E_CHANGED_MIND=72

if [ $# -ne "$ARGCOUNT" ]
then
echo "Usage: `basename $0` filename"
exit $E_WRONGARGS
fi

if [ ! -e "$1" ]
then
echo "File \""$1"\" does not exist."
exit $E_FILE_NOT_EXIST
fi

inum=`ls -i | grep "$1" | awk '{print $1}'`
# inum = inode (index node) number of file
# -----------------------------------------------------------------------
# Every file has an inode, a record that holds its physical address info.
# -----------------------------------------------------------------------

echo; echo -n "Are you absolutely sure you want to delete \"$1\" (y/n)? "
# The '-v' option to 'rm' also asks this.
read answer
case "$answer" in
[nN]) echo "Changed your mind, huh?"
exit $E_CHANGED_MIND
;;
*) echo "Deleting file \"$1\".";;
esac

find . -inum $inum -exec rm {} \;
# ^^
# Curly brackets are placeholder
#+ for text output by "find."
echo "File "\"$1"\" deleted!"

exit 0