Posts Tagged ‘google’

Switch search to google scholar bookmarklet

Monday, March 25th, 2013

I upgraded to Safari 6 and was happy to see the search bar gone and keyword search directly in the address bar. However I was annoyed to see that when searching you don’t see the full google url but just the query keywords. This nullified my previous hack to switch a google search to a google scholar search.

Instead here’s a little bookmarklet to switch a google search to a google scholar search:


javascript:(function(){window.location.href=window.location.href.replace("search?", "scholar?");})()

Just paste that into you address bar and create a bookmark for it. Then any time you do a normal google search, you can switch it to a google scholar search by hitting the bookmark.

source

Make each title in LaTeX bibliography references link to google search of that title

Thursday, August 2nd, 2012

When ever I’m reading a new paper I’m constantly looking up the articles referenced in the bibliography. Sometimes bibliographies have links or urls but there so often dead or domain restricted. Instead, my modus operandi is to just google search the title and click on the first PDF that comes up in the results.

To cut down on the steps I thought it would be nice if the PDF of the article I’m reading already had the google search set up for me. Then the title in the reference could be a link to a google search of itself.

Here’s a bibtex .bst function that can be modded into the acmsiggraph.bst file. Just replace:


FUNCTION {format.title}
{ title empty$
    { "" }
    { title "t" change.case$ }
  if$
}

with:


INTEGERS{ l }
FUNCTION{ string.length }
{ 
  #1 'l := 
  {duplicate$ duplicate$ #1 l substring$ = not}
    {l #1 + 'l :=}
  while$
  pop$ l
}

STRINGS{replace find text}
INTEGERS{find_length}
FUNCTION{find.replace}
{ 'replace :=
  'find :=
  'text :=
  find string.length 'find_length :=
  ""
    { text empty$ not }
    { text #1 find_length substring$ find =
        { 
          replace *
          text #1 find_length + global.max$ substring$ 'text :=
        }   
        { text #1 #1 substring$ *
          text #2 global.max$ substring$ 'text :=
        }         
      if$       
    }         
  while$    
}         


FUNCTION {google}
{ duplicate$ empty$
    { pop$ "" }
    { "{\href{http://www.google.com/search?q=" swap$ duplicate$ " " "+"
    find.replace "}" "" find.replace "{" "" find.replace "\" "" find.replace
    "$" "" find.replace "^" "" find.replace swap$ "}{" swap$ "}}" * * * *}
  if$
}

FUNCTION {format.title}
{ title empty$
    { "" }
    { title "t" change.case$ google}
  if$
}

I’m reposting all my papers with these links:
Check it out

Update: You may want to be sure to set up your external links to be non-colored:


\hypersetup{colorlinks,linkcolor=blue,urlcolor=}

Switch Google web search to scholar search

Friday, May 11th, 2012

Google removed “Scholar” from the drop down list of choices when searching the web. I had become very used to searching for something, either from the main google page or my browsers address bar and then switching the search to google scholar. Now I would have to first go to scholar.google.com and retype the search query or copy and paste the query.

Finally instead I found the way to quickly change the URL at the top of the web search to switch it to a scholar search. If this is your web search url:


http://www.google.com/search?hl=en&client=safari&rls=en&q=Fast+Automatic+Skinning+Transformations&oq=Fast+Automatic+Skinning+Transformations&aq=f&aqi=p-p1&aql=&gs_l=serp.3..35i39.2032.2203.0.2388.2.2.0.0.0.0.70.124.2.2.0...0.0.wzP9uU0hsCc

just replace search with scholar


http://www.google.com/scholar?hl=en&client=safari&rls=en&q=Fast+Automatic+Skinning+Transformations&oq=Fast+Automatic+Skinning+Transformations&aq=f&aqi=p-p1&aql=&gs_l=serp.3..35i39.2032.2203.0.2388.2.2.0.0.0.0.70.124.2.2.0...0.0.wzP9uU0hsCc

Death Instinct

Sunday, August 28th, 2011

septermber

mixed fem google images search

Sunday, July 18th, 2010

I was mindlessly searching on google for “mixed fem”, as in “Mixed Finite Elements Method”, and when I switched to searching images I was surprised by the results:
screen shot of searching mixed fem on google images
Textbook covers, heat maps, marijuana and semi-nude wrestling. See for yourself!

Two thousand results on google for “How to turn off google buzz” only three days after release

Monday, February 22nd, 2010

2010 results for how to turn off google buzz three days after release

Only three days after its release (one day after google’s “skip this ad” on gmail), I searched for “How to turn of google buzz” (in quotes) and found about 2010 pages containing that quote.

How to turn off google buzz

Thursday, February 11th, 2010

Sure this is all over the web but why not make it extra clear. Scroll to the bottom of your gmail home page and in small print you fill find “turn off buzz”:
turn off google buzz in gmail screenshot

Find this in quotes #1

Sunday, December 27th, 2009

“felt good to david byrne”

Retrieve current user’s full name, Mac OS X

Saturday, December 5th, 2009

osascript is a command that allows you to execute applescript via the command line and in script. Here’s a short command that retrieves the current users full name.


osascript -e "long user name of (system info)"

Anyone know how to do this in pure bash/unix tools?

Update: Gmail Notifier corrupted my osascript so now I have to send the bogus errors to /dev/null like this:


osascript -e "long user name of (system info)" 2>/dev/null

Update:
Here’s another way I found the long user name:


system_profiler  | grep "User Name:" | sed "s/^      User Name: \([^(]*\) (.*/\1/g"

Update: On linux consider using this:


getent passwd $USER | cut -d ":" -f 5 

Google images game: high score

Monday, October 26th, 2009

I will try to implement a current high score or high scores feature to the Google images game, but in the mean time I will post screenshots here. Here’s the first known “Hard” solution found for the “Nouns” game:


Google images game first hard solution


Try to beat this score!

Leave a comment below or contact me with a screen shot of your high score.