stefan.grothkopp.com

Relax - This won't hurt. 
Filed under

google

 

Buzzmarklet

I created a bookmarklet to share stuff via google buzz.

Just create a bookmark containing the link in your bookmarks toolbar, visit some site, select some text and click the bookmark.

Here it is:
javascript:(function(){var b="";var t= "";var s="";var d=window.getSelection()+'';if (d.length>0) b="\n\n"+'"'+d+'"'+"\n\n";; s=document.title; window.setTimeout('document.location = "http://www.google.com/reader/link?url='+encodeURIComponent(document.location)+'&title='+encodeURIComponent(document.title)+'&snippet='+encodeURIComponent(b)+'&srcURL=&srcTitle=";',0);})();

Loading mentions Retweet
Filed under  //   bookmarklet   buzz   google   javascript  

Comments [0]

google provides open dns servers now

Google Public DNS IP addresses

The Google Public DNS IP addresses are as follows:

8.8.8.8
8.8.4.4

http://code.google.com/speed/public-dns/docs/using.html

sweet :)

Loading mentions Retweet
Filed under  //   google  

Comments [0]

google.pl - command line google search in a shell with perl

#!/usr/bin/perl
# google.pl - command line tool to search google
#
# Since I wrote goosh.org I get asked all the time if it could be used on the command line.
# Goosh.org is written in Javascript, so the answer is no. But google search in the shell
# is really simple, so I wrote this as an example. Nothing fancy, just a starting point.
#
# 2009 by Stefan Grothkopp, this code is public domain use it as you wish!

use LWP::Simple;
use Term::ANSIColor;

# change this to false for b/w output
$use_color = true;
#result size: large=8, small=4
$result_size = "large";

# unescape unicode characters in" content"
sub unescape {
my($str) = splice(@_);
$str =~ s/\\u(.{4})/chr(hex($1))/eg;
return $str;
}

# number of command line args
$numArgs = $#ARGV + 1;

if($numArgs ==0){
# print usage info if no argument is given
print "Usage:\n";
print "$0 \n";
}
else {
# use first argument as query string
$q = $ARGV[0];
# url encode query string
$q =~ s/([^A-Za-z0-9])/sprintf("%%%02X", ord($1))/seg;

# get json encoded search result from google ajax api
my $content = get("http://ajax.googleapis.com/ajax/services/search/web?v=1.0&start=0&rsz=$result_size&q=$q"); #Get web page in content
die "get failed" if (!defined $content);

# ugly result parsing (did not want to depend on a parser lib for this quick hack)
while($content =~ s/"unescapedUrl":"([^"]*)".*?"titleNoFormatting":"([^"]*)".*?"content":"([^"]*)"//){

# those three data items are extrated, there are more
$title = unescape($2);
$desc = unescape($3);
$url = unescape($1);

# print result
if($use_color){
print colored ['blue'], "$title\n";
print "$desc\n";
print colored ['green'], "$url\n\n";
print color 'reset';
}
else{
print "$title\n$desc\n$url\n\n";
}
}
}

Loading mentions Retweet
Filed under  //   ajax   code   google   linux   open source   perl   shell   unix  

Comments [5]

Google & Design

"Yes, it’s true that a team at Google couldn’t decide between two
blues, so they’re testing 41 shades between each blue to see which one
performs better. I had a recent debate over whether a border should be
3, 4 or 5 pixels wide, and was asked to prove my case. I can’t operate
in an environment like that. "

http://stopdesign.com/archive/2009/03/20/goodbye-google.html

and thats the reason google and it's applications look the way they do.

Loading mentions Retweet
Filed under  //   google   web design  

Comments [0]

Google Squared - the Cuilest search app ever

"I am not sure exactly what Google was trying to prove with the launch
of Squared, but what is apparent to me is that somebody needs to grab
Eric Schmidt by the scruff of his neck and forcibly rub his nose into
this product. NO! We do NOT DO THAT on the INTERNET."
 
http://www.theregister.co.uk/2009/06/08/dziuba_google_squared/

Loading mentions Retweet
Filed under  //   cuil   google sqared   google  

Comments [0]

How google wave was created

Inside the Google Headquarters:
 
Marketing/Finance Guy: Hey we need "live" search, its hot right now!
Tech Guy: Go buy twitter!
MG: Are you crazy we're in a recession, we don't have the money.
TG: Ok I have this old new-way-of-doing-email sideproject, that was
kind of "live".
MG: Great, can you make it even more "live"?
TG: (sarcastic) Well the users could see each other typing.
MG: (exited) Great! Make it so!
TG: (concerned) That would kill our server if we ever released it.
MG: Don't worry we wont release it, just prepare a demo.
TG: And if we eventually release it?
MG: We make it Open Source, so somebody else will run it and their
servers will crash.

Loading mentions Retweet
Filed under  //   google   twitter   wave  

Comments [0]

Google CEO Says Microblogging Coming to Google Search

Everything these days is about Twitter, though. Go to a party--talk about Twitter. Have a blog? Talk about Twitter. Use Twitter? Talk about Twitter. Apparently we can add to that: facing legal pressure over allegedly anti-competitive business practices? Talk about Twitter.

Loading mentions Retweet
Filed under  //   google   twitter  

Comments [0]

Google SEO ad in german newspaper

Philipp Lenssen postet this article about a company boasting their SEO
success in offline world a few days ago
(http://blogoscoped.com/archive/2009-05-02-n44.html).
That's nothing compared to german district Baden-Wüttemberg. They
bought the backside of the german newspaper 'Frankfurter Allgemeine'
today, to run a full-sized ad. They compare the google result count
for 'Innovation aus deutschland' and 'Innovation aus
Baden-Württemberg' (918 to 7.960 results).

   
Click here to download:
Google_SEO_ad_in_german_newspa.zip (2578 KB)

Loading mentions Retweet
Filed under  //   advertisement   google   seo  

Comments [1]

8 jQuery Plugins That Utilize Google APIs

nice stuff to start experimenting with the google-apis:
 
http://www.reynoldsftw.com/2009/03/8-jquery-plugins-that-utilize-google-apis/

Loading mentions Retweet
Filed under  //   code   google   JavaSCript   jquery  

Comments [1]

intelligence and google suggest

googles autocompletion feature tells a lot about the relationship
between language and intelligence:
 

Loading mentions Retweet
Filed under  //   google   picture  

Comments [1]