Sunday, December 9, 2012

Snipping Tool: Windows 7 built in screen capture tool

What do you do when you want to capture a screen shot, part of it or some window on windows machine? Don’t you press “Print Screen” button on a key board then do paste into mspaint and do the required capture, highlight or marking? If you have a windows 7 and you still do it this way only, then let me tell you ‘You live in stone era’.  Don’t you know about Snipping Tool?
 
Snipping tool is a free and simple screen capturing tool which comes built in with windows 7. This is another good built tool in Windows 7.

For opening Snipping tool, 
Click windows button and start typing “snipping tool” > You will see “Snipping tool”  under Programs. > Right click on it and select ‘Pin to Start Menu‘ or ‘Pin toTask Bar’ so that you can find it immediately when you need it.


Snipping Tool

When you want to take a snap of something, open a corresponding window and open this tool. There are three simple menus :








New Options

New : Select what you want to capture

     Free Form Snip: Capture free area of any shape.
    Rectangular Snip: Capture rectangular area.
    Window Snip: Capture an open window.
    Full Screen Snip: Captures full screen.
 
Cancel :  Use this if you want to minimize Snipping tool. Particularly when you want to capture different window than currently opened one.
 
Options : Use this to edit some preferences. 

Snip Editing
Once you have captured the snap, this tool opens your snip and provides you options to Save it, Get a new one, Edit it with colorful pens, Highlight area and an Eraser to undo pen and highlight editing.


 One Extra tip, not related to Snipping tool :
“You can take a snap of some window by opening that window and  “Alt + Print Screen” then paste into mspaint !!”

Sunday, December 2, 2012

Free Personal Source and Version Control Solution: Use SVN over Dropbox.

   Want to use some source control and version control tool for your personal use? And don’t want to use public repositories github? And also want to save your all source over a safe, reliable and sharable cloud? Then simplest and free solution is to use SVN, a very good version control tool, and save your SVN repository over your Dropbox account which will save your source over a safer cloud.

   For doing this download and install SVN tortoise client and Dropbox application on your machine. I hope you have an account on Dropbox : a file hosting service operated by Dropbox, Inc. that offers cloud storage, file synchronization, and client software(description copied from Wikipedia). Dropbox takes care of storage, safety, backup and sync for you.

   Once you have installed Dropbox and configured your account, you will be able to see your Dropbox folder on C:\Users\[YourUsername]\Dropbox. By default it syncs all of your Dropbox folders but you can select the folders to be synced from 

Dropbox > Preferences > Advanced > Selective sync.

   Now you are ready to create SVN repository over Dropbox. You just need to follow following simple steps:

1. Go to Dropbox folder, Create a new Folder, it’s your repository so name it accordingly. Right click on this new folder and select
 
Tortoise SVN > Create Repository here
 
Then you will see a dialog saying Repository Created as shown here..
2. Click on ‘Create folder structure’ to create trunk/branches/tags structure inside this new repository.


3. Bang!! Your repository with folder structure is ready now. Click ‘Start Repobrowser’  for opening repo-browser. Remember don’t ever ever ever modify this folder(your repository folder) of your own.  As this folder is SVN repository, it’s structure and data inside it is meant for SVN only.

4. Now you need to add your source code to your own SVN repository.  For that do this :

Right click on your workspace folder > TortoiseSVN >  import > give URL of a folder under trunk (you can copy URL of trunk from repo-browser and add required folder name to it after ‘/’ ) into ‘URL of repository’ > Ok. 

5. You have added your workspace to repository but it’s not versioned yet on your machine. For that right click on workspace folder and SVN Checkout the new imported folder from repository.

6. Once you have mapped your workspace to your local SVN repository, you can use your workspace and commit files as you were committing to standard SVN repository. Those files will just be committed to local repository.

  But don’t be curious about where these files go inside repository folder on your local machine, leave it to the SVN. Also don’t do any modifications to this repository folder. SVN takes care of everything.

7. Now your source code is inside your Dropbox folder that you should mark for sync from your machine if you are using selective sync. If you do manual sync of your Dropbox then keep good practice to sync this repository folder to Dropbox whenever you do any commit or changes that you must do from repo-browser only. Also keep in mind that this folder on Dropbox should also never be modified manually.

     You also can share this Dropbox folder to your teammates through Dropbox share and your teammates can use this folder directly as SVN repository. 

Thursday, November 22, 2012

How to listen music on mono bluetooth headset on android phone.

    Mono bluetooth headsets have single stream connections, so you can't stream music on them.  But Nokia phones have option to play music via bluetooth which can play music directly on even mono bluetooth headsets.
A2DP bluetooth headsets are dual stream so music can be directly played on them.


     But if you have mono bluetooth headset and android phone you can't listen music on it but only can make and receive calls. You are stuck :( 
But don't worry, there are few apps on android market which enable you to listen music on mono bluetooth  headset.



BTMono Off

     BTmono is very simple and light weight application available on android market, which can stream your media over mono bluetooth headset.


     For using this app switch on your phones bluetooth, connect your bluetooth with paired bluetooth headset, open BTmono app and click on ON button then android robot on the screen will put it's one hand up and you are ready to go. Then just play music and it will be streamed to your mono bluetooth headset.
BTMono On








There are two versions of this app available on the market, free version and paid one. The only difference that matters is what happens when you get a call while listening to music. On free version when you drop a call received while listening to music, music resumes on speaker instead of bluetooth headset and that is little embarrassing eeew. While on paid version music resumes on headset when a call is dropped. so it's your call to choose free or paid version of BTmono.
The music quality on bluetooth headset using this app is not up to mark and that's because it's mono headset.  But remember this app is really helpful to utilise your otherwise useless mono bluetooth headset.

Tuesday, October 30, 2012

How to import and sync Facebook friends's birthdays to Android phone.


         You don’t visit Facebook daily, and miss birthdays of friends?  Want your android phone to remind you your friend’s birthdays?  There are lots of application on the market but you don’t need them and believe me these kind of apps run in background and drain phone's battery and resources. So possibly you should import and synchronize your facebook friends's birthdays to your android phone calendar so that you will be up to date with the birth dates.
       Following are simple few simple steps to import and synchronize facebook friends birthdays to your google calendar and then to android phone calendar.


 1.     Go to your facebook account, on home page at upper left corner, below your profile picture, there will be a link called Events. Click on it. It will open your  facebook events calendar that includes birthdays of your friends.


Facebook : Events link

    2.  On events page at upper right corner, there is Today button with settings logo. Click on settings logo and select export from the option, the way shown in picture.

Facebook : Export Events
    3. This will open 'Export Events and Birthdays' pop up.

Facebook :Copy export link 

    4.  Right click on ‘export your friends’ birthdays’ and select copy link option.

Facebook: Copy link
 5.  Now go to google calendar, that you can go by selecting calendar from top most black strip on google home page. Then on calendar at left hand panel click on other calendars option and select Add by URL.


Google Calendar : Add by URL
       

         6. Pop up for entering URL will be opened, paste the copied URL into the textbox for URL and click Add Calendar.


Google Calendar : add calendar by URL
    
   7.  Then the new calendar ‘Friends’ birthdays’ will be added to your other calendars section on google calendar. Select your favorite  color for this calendar if you want. Now you are done with importing you facebook birthdays to google calendar.

Google Calendar : Added Calendar


       
     8.  Now you need to sync your android calendar app to  google calendar. For that open Calendar application on your android phone. Make sure you have enabled Use data packet I mean an internet access.


9. Select options -> More -> Calendars, it should show you Friends’ Birthdays calendar.



 10. Set Synced, Visible to this new Calendar.
Android : set synced and visible
Android : Birthdays showed in Bold

 11. Now phone will sync this calendar from Google calendar to calendar app and friend’s birthdays will be visible on your phone.



Now you can view friends's birthdays and set notifications for them as per your needs.
     
       

Saturday, October 27, 2012

jQuery - Difference between :eq() and :nth-child() selectors.


    In jQuery many times :nth-child(n)  pseudo-class selector is easily confused with :eq(n), even though the two can result in dramatically different matched elements.

   With :nth-child(n), first all children are counted, regardless of what they are, and the specified element is selected only if it matches the selector attached to the pseudo-class. With :eq(n) only the selector attached to the pseudo-class is counted, not limited to children of any other element, and the nth one is selected.

    In other worlds, with :nth-child(n), first all elements those are children are considered and among the children, nth child is considered then it’s checked if it matches the selector which is attached with :nth-child(n). On the other hand with :eq(n) first the attached selector is resolved to set of elements and among those elements nth element is selected independent of considering children or not.


    Also there is another important difference, that is :nth-child() is 1 indexed means indexing count starts with 1 so nth means actual nth one. While :eq() is 0 indexed with indexing starting with 0 so nth element is actually (n+1)th. This is so because jQuery's implementation of :nth-child(n) is strictly derived from the CSS specification and for all other selector expressions including :eq() however, jQuery follows JavaScript's "0-indexed" counting. 

   Let's see following simple example: 


<table>
          <tr><td>Table1-row1</td></tr>
          <tr><td>Table1-row2</td></tr>
          <tr><td>Table1-row3</td></tr>
</table>
<table>
          <tr><td>Table2-row1</td></tr>
          <tr><td>Table2-row2</td></tr>
          <tr><td>Table2-row3</td></tr>
          <tr><td>Table2-row4</td></tr>
</table>

In above tables $(“tr:nth-child(3)”) will select two elements :


         <tr><td>Table1-row3</td></tr>
And

        <tr><td>Table2-row3</td></tr>

While $(“tr:eq(3)”) will select only single element :


        <tr><td>Table2-row1</td></tr>
   
 Please try following fiddle also, run it and click a button to see what it selects. It also shows how :even and nth-child(even) are different.