Pages

Showing posts with label google. Show all posts
Showing posts with label google. Show all posts

Friday, September 10, 2010

Google Chrome: Home and Bookmarks buttons

Many users, using Google Chrome, have noticed that it has no Home and Bookmarks button.




For bookmarks it has bookmark bar, but it's not good if you have too many bookmarks to manage. How can you get those buttons.

Getting home button is very easy. Just go to chrome settings: Click "Option" under

















Just check "Show Home button on the toolbar" and you are done.
To see specific page as home page instead of your recent sites thumbnails, select open this page, and enter whichever page you like to see.

To add bookmark button you have to use command switch of chome --bookmark-menu.
It will get your bookmark button when you open chrome next time.

(i.e.) "C:\Documents and Settings\Administrator\Local Settings\Application Data\Google\Chrome\Application\chrome.exe" --bookmark-menu

If you don't know how to do this, then you can alternatively do the following.
Close all open chrome instances.
Right click chrome shortcut, and go to property.
In target, just append  --bookmark-menu. 
Now when you open chrome, you'll get bookmark button.



Monday, September 6, 2010

✆ (Phi) mark in GMail




Actually, it's a google lab called "Sender Time Zone". ✆ (Phi) mark is the timezone symbol. It will be displayed in green or red. If the time in sender timezone is day time (business hours), then it will be displayed in green indicating that you can contact him. Otherwise it is displayed in red indicating that you should mail him instead of calling.

Wednesday, August 25, 2010

Google Translate without API

Google translate is a great tool, and every one knows it well. [http://translate.google.com]

Here is how you can use it in .Net programatically without using Google API:



  Function Translate(ByVal WordToTranslate As String) As String
    Dim wc As New System.Net.WebClient
    wc.Proxy.Credentials = Net.CredentialCache.DefaultCredentials
    Dim url As String = String.Format("http://www.google.com/" & _
                        "translate_t?hl=en&ie=UTF8&text={0}&" & _
                        "langpair=en|de", WordToTranslate)
    Dim result As String = wc.DownloadString(url)
    result = result.Substring(result.IndexOf("id=result_box") + 22)
    result = result.Substring(0, result.IndexOf("</div"))
    result = result.Substring(result.IndexOf(">") + 1)
    While result.IndexOf("<") = 0
      result = result.Substring(result.IndexOf("<"))
      result = result.Substring(result.IndexOf(">") + 1)
    End While
     TranslatedOutput As String = result.Substring(0, result.IndexOf("<"))

    Return TranslatedOutput
  End Function



This code translates English - German. What you have to do is -  just change the highlighted langpair or change the code to pass it as parameter.

Here is the list of language codes.
  • Arabic – ar
  • Bulgarian – bg
  • Chinese (Simplified) – zh-CN
  • Chinese (Traditional) – zh-TW (only available as a destination language)
  • Croatian – hr
  • Czech – cs
  • Danish – da
  • Dutch – nl
  • English – en
  • Finnish – fi
  • French – fr
  • German – de
  • Greek – el
  • Hindi – hi
  • Italian – it
  • Japanese – ja
  • Korean – ko
  • Norweigan – no
  • Polish – pl
  • Portuguese – pt
  • Romanian – ro
  • Russian – ru
  • Spanish – es
  • Swedish – sv