Monthly Archives: April 2013

Open link in new tab using jquery

To open a link in new tab, using Jquery, use window.open and pass the url

 

PHP Date format

This is my list of useful date formats in PHP for my own reference, I update it whenever I come across to new ones, so that I don’t need to search for it on web.

To get the Day of a date

To get a date in this format

22 April 2013

To get, Jul 18

Adding no of days to a PHP date, In this example we are adding 2 days to a PHP date

 

 

 

 

 

 

Useful git resources

List of useful git resources, that I have come across.

37 single’s

https://37s.backpackit.com/pub/1465067

Git refcard on DZone

http://refcardz.dzone.com/refcardz/getting-started-git?uid=835453&nid=21049&token=08354531112134474811f
Git – the simple guide

http://rogerdudler.github.com/git-guide/

Git reference

http://gitref.org/creating/

Getting started about version control

http://git-scm.com/book/en/Getting-Started-About-Version-Control

Git in 15 minutes

try.github.com

Add other useful resources known to you in the comment below 🙂

 

Install FriendsApp on Ubuntu 12.10 & 13.04

To install FriendsApp on Ubuntu 12.10, follow these commands

It is much easier to install on Ubuntu 13.04, just use this one line command

 

Get current page title, url and meta description using JQuery

To get the title of current page, there is a one line of JQuery code

To read the meta description of current, use following code

To get the url of current page