Rocking the blogosphere

Archive for the 'Yahoo' Category

Yod.el

Yod.el (love the name!) is a Yahoo! Messenger client for Emacs.

http://marti.textdriven.com/yodel/

I tried it and it works well, but somehow doing IM in Emacs seems clunky. This may seem blasphemous to some, but perhaps some things are best not done in Emacs.

Popularity: 9% [?]

Last day at Yahoo

After 5 years and two great teams (Yahoo! Personals and the Tiger Team), I’m moving on from Yahoo. The feeling is hard to describe. Naturally in 5 years, you get really comfortable with a place and you get to know a lot of people. In the last week, though, it’s been particularly striking to me to realize how many people have had an impact on me and vice-versa. Five years. Five years of triumphs, celebrations, hard work, stressful times, learning, video games (Halo 1!), and friendships.

OK, there are some things I won’t miss. Like trying to park my car in the morning and gcc 2.95. But then there are a lot of other things and people that I will miss.

Where am I going? After a brief vacation (this weekend!), I will start at VMware on Monday. You’ll be hearing about that shortly…

Popularity: 6% [?]

Accessing the Yahoo Web Search API from MzScheme

A bit of Scheme code that I was dorking around with a long time ago and never got around to posting. This probably only works in MzScheme since it uses implementation-specific APIs to do HTTP.

Here’s an example of using it:

marc@tbird:~/projects/scheme$ mzscheme
Welcome to MzScheme version 352, Copyright (c) 2004-2006 PLT Scheme Inc.
> (load "yahoo-web-search.scm")
> (for-each-result
        (lambda(x)
                (let ((result (result->struct x)))
                        (printf "~s~n" (result-url result))))
        "query=coroutines")
"http://en.wikipedia.org/wiki/Coroutine"
"http://msdn.microsoft.com/msdnmag/issues/03/09/CoroutinesinNET/default.aspx"
"http://www.sidhe.org/~dan/blog/archives/000178.html"
"http://lua-users.org/wiki/CoroutinesTutorial"
"http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/300019"
"http://www.chiark.greenend.org.uk/~sgtatham/coroutines.html"
"http://www.python.org/dev/peps/pep-0342/"
"http://www.softpanorama.org/Scripting/pipes.shtml"
"http://c2.com/cgi-bin/wiki?CoRoutine"
"http://cs.hubfs.net/forums/ShowThread.aspx?PostID=676"
(# # # # # # # # # #)

I’m no Scheme expert so this code is probably not particularly smart or readable, but maybe it will inspire somebody…

Popularity: 11% [?]

Unique software development gig

In case, the 5 of you that read my blog are looking for a software engineering gig, we’ve got several positions available in my group. This is a unique opportunity in that you’d be working with a “Tiger Team” of guys who work on projects all over the company.

If you’re interested, please email your resume to msabramo {at} yahoo(.)com

(Read the article)

Popularity: 5% [?]

New del.icio.us Firefox extension

 Glad to see stuff like this, since I worked on this new version of the Del.icio.us Firefox extension.

 http://www.techcrunch.com/2007/04/05/if-you-dont-use-delicious-you-will-now/

The above link has 1411 diggs and counting - pretty cool.

Popularity: 9% [?]

Yahoo! digs Panama

Nice to see some good news for a change.

 Forbes.com: Yahoo! Digs Panama

Popularity: 5% [?]

Common Lisp libraries for Yahoo! APIs

I was reading some essays about Common Lisp and came across a few interesting libraries for accessing some of Yahoo’s Web Services APIs:

In the case of cl-delicious, it was a little harder to install (into SBCL on my Ubuntu Edgy system), as the author’s site has a bzipped file instead of the gzipped file that ASDF-Install expects.

~/.sbcl/site$ wget http://jarrodkoehler.com/cl-delicious/cl-delicious-0.1.tar.bz2
~/.sbcl/site$ tar -xjf cl-delicious-0.1.tar.bz2
~/.sbcl/site$ cd ../systems
~/.sbcl/systems$ ln -s ~/.sbcl/site/cl-delicious/cl-delicious.asd .

Now, at this point, I was running the current SBCL version from the Ubuntu Edgy repository and this version of SBCL seems to have a slight problem with the cl-delicious.asd file so I had to do:

~/.sbcl/systems$ vim cl-delicious.asd .     # Remove the line with LICENSE

It seems that upgrading to the release version of SBCL from the SBCL web site (1.0.2 as of this writing) also solves the problem and is perhaps a preferable solution.

and then

~/.sbcl/systems$ sbcl

or if you prefer, fire up Emacs and SLIME.

and then

CL-USER> (asdf:operate 'asdf:load-op 'cl-delicious)
...(a bazillion messages about loading and registering)...

and now you’re ready to do stuff, as shown in the cl-delicious page:

CL-USER> (in-package :cl-delicious)
#<PACKAGE "CL-DELICIOUS">
CL-USER> (defparameter *du*
           (make-instance 'delicious-user
                          :username "user"
                          :password "password"))
*DU*
CL-DELICIOUS> (recent-posts *du* :count "2")
(#S(POST
    :HREF "http://www.cs.indiana.edu/dfried_celebration.html"
    :DESCRIPTION "Daniel P Friedman: A Celebration"
    :EXTENDED NIL
    :HASH "9821f03f10279cad407aa8b2e5c2bef1"
    :OTHERS NIL
    :TAG "programming video"
    :TIME "2007-02-22T23:06:22Z")
 #S(POST
    :HREF "http://www.math.gatech.edu/~cain/textbooks/onlinebooks.html"
    :DESCRIPTION "Online texts"
    :EXTENDED NIL
    :HASH "79b0c74c3d2941dbd57ac922b471e781"
    :OTHERS NIL
    :TAG "math books"
    :TIME "2007-02-22T20:50:26Z"))

It was easier to install cl-yahoo.

CL-USER> (asdf-install:install 'cl-yahoo)

However, I ran into problems getting Web search to work:

CL-USER> (asdf:oos 'asdf:load-op :cl-yahoo)
NIL
CL-USER> (use-package :cl-yahoo)
T
CL-USER> (ysearch :web :query "lisp" :type 'any :results 2)

XML parser encountered eof before end of entity.
   [Condition of type S-XML:XML-PARSER-ERROR]                                                                                  

Restarts:
 0: [ABORT] Return to SLIME’s top level.
 1: [TERMINATE-THREAD] Terminate this thread (#)                                               

Backtrace:
  0: (S-XML::RESOLVE-ENTITY
      #<SB-SYS:FD-STREAM for “a constant string” {B477469}> >
      “invalid value: uri - http://api.search.yahoo.com/WebSearchService/V1/webSearch?”
      #<HASH-TABLE :TEST EQUAL :COUNT 6 {B47C031}>
      “appid=cl-yahoo&query=lisp&type=any&results=2&start=3&adult_ok=1</Message>^M
     ^M
     <!– ws02.search.scd.yahoo.com uncompressed Sat Mar  3 16:16:03 PST 2007 –>                                         >
     “)
  1: (S-XML::PARSE-TEXT
      #<SB-SYS:FD-STREAM for “a constant string” {B477469}>
…

I guess I’ll email the author about that.

Popularity: 9% [?]

Next Page »