Advogato blog for elduderinohttp://www.advogato.org/person/elduderino/
Advogato blog for elduderinoen-usmod_virguleMon, 3 Aug 2015 00:31:12 GMTTue, 17 Jun 2003 03:31:14 GMT17 Jun 2003http://www.advogato.org/person/elduderino/diary.html?start=11
http://www.advogato.org/person/elduderino/diary.html?start=11<b>last minute cram session</b>
<p> <p> to fully appreciate <a href="http://developer.apple.com/wwdc/" >wwdc</a> next week, i started learning as much cocoa as i can. i played around briefly a year ago when i wrote a menubar biff. that was before i switched from ssh/mutt to imap/mail.app.
<p> <p> i'm reading one book, "building cocoa applications", through o'reilly's safari online library. it's not bad since it doesn't gratuitously hand-hold (or maybe i just skim very well). after that i have a dead-tree copy of "cocoa programming".
<p> <p> not sure how much cocoa programming i'll do in the future, but i've got a subsidized ticket to wwdc and nothing better to do.
<p> <p> anyone else going? let's meet up some night -- drinks are on me.Sun, 15 Jun 2003 01:24:00 GMT15 Jun 2003http://www.advogato.org/person/elduderino/diary.html?start=10
http://www.advogato.org/person/elduderino/diary.html?start=10<b>"not back on it, joe, still on it."</b>
<p> <p>
i'm not quite ready to give up on lisp. python was a nice diversion but it just lacks something. i played around with some lisp macros the other day and it all just made sense.
<p>
what's missing? i need to figure out the allegro socket implementation in openmcl. i think i was just missing (finish-output ...) last time. then, once openmcl-0.14 is finished, i need to start playing with processes.
<p>
it's all coming together... kinda.
<p> Sat, 17 May 2003 03:32:38 GMT17 May 2003http://www.advogato.org/person/elduderino/diary.html?start=9
http://www.advogato.org/person/elduderino/diary.html?start=9<b>dear lisp,</b>
<p> i miss your elegance. my new love <i>python</i> may be more practical, but it could never approach your beauty.
<p> it's the little things i miss -- the return of a function being the value of the last expression, the non-destructive functional-style paradigm, and most importantly the predictable syntax.
<p> will i ever be satisfied?Thu, 15 May 2003 20:40:52 GMT15 May 2003http://www.advogato.org/person/elduderino/diary.html?start=8
http://www.advogato.org/person/elduderino/diary.html?start=8<b>dear lisp,</b>
<p> <p> it's not you. it's me. i still love you. i'll never forget you. maybe someday i'll come back. but for now, i found another. her name is...
python
<p> <p> one more post about my bookmarks app. i've mentioned it so much, you'd think it was something more important than it actually is.
<p> <p> i rewrote it, one last time, as an exercise to learn python. the big advantage python has over lisp (for me) was available libraries and documentation. please don't flame me -- i know lisp's many advantages! you have to admit though, that there is a great need for a standard set of APIs for sockets, regex, etc across ALL the various lisps.
<p> <p> maybe arc will be the answer to my lisp frustrations?Mon, 5 May 2003 19:48:06 GMT5 May 2003http://www.advogato.org/person/elduderino/diary.html?start=7
http://www.advogato.org/person/elduderino/diary.html?start=7<b>safari</b>
<p> i switched to safari from chimera/camino. i hacked the binary to send the google search box to my bookmarks/keyword server. unless the google box is a sponsored deal, i imagine they'll add keyword features to it in future versions.
<p> <b>lisp</b>
<p> my love affair with lisp continues. i rewrote my bookmark parsing code from chimera format to safari. at first the safari plist seemed overly verbose, but it maps well to lisp lists and hashs.
<p> it's nice to iteratively develop code. come up with a theory, code it quickly, revise theory, recode it, etc. much faster than it would have taken me to figure out my first malloc() in c.
<p> <b>music</b>
<p> over the last couple of months, i bought .5Tb of disk space and ripped my entire cd collection (1200+) to raw aiff files. then wrote a script that will keep that in sync with an mp3 (320kbps currently) version of that tree. then i sync 90% of that to my 120G empeg player using rsync.
<p> hopefully i'll never have to rip those cds again. once i figure out enough applescript to automate encoding to AAC using quicktime, i'll do that. then use those files for my ipod.
<p> i plan to write scripts that will automate playlist-&gt;cdr creation using itunes. instead of burning the mp3, it'll find the original aiff file and use that.Sat, 11 Jan 2003 23:37:55 GMT11 Jan 2003http://www.advogato.org/person/elduderino/diary.html?start=6
http://www.advogato.org/person/elduderino/diary.html?start=6<b>lsp</b>
<p> <p> i found out that chimera (and mozilla presumably) has built-in support for keywords and bookmarks that take arguments. i can create a bookmark (eg. "http://www.google.com/search?q=%s"), assign it to a keyword ("gs") and then type "gs sheep pr0n" and it'll do the <a href="http://www.google.com/search?q=sheep+pr0n" >right thing</a>.
<p> <p> knowing that, i ripped out all the redirect code in my bookmarks server and re-wrote the "top" half using lemonodor's <a href="http://lemonodor.com/archives/000128.html" >lisp server pages (lsp)</a> package. i'm pretty happy with this <i>(final?)</i> version. especially now that my bookmarks package isn't doing any pretty-printing, that's all left to the lsp.
<p> <p> got some package weirdness going on, but i think it's just me not fully understanding packages and compilation. maybe just need some properly placed (eval-when ..) forms.
<p> <p> now.. on to the next project.
Mon, 6 Jan 2003 02:19:30 GMT6 Jan 2003http://www.advogato.org/person/elduderino/diary.html?start=5
http://www.advogato.org/person/elduderino/diary.html?start=5<b>upgrade?</b>
<p> <p> is it technically an upgrade when no new functionality is added?
<p> <p> i found an <a href="http://homepage.mac.com/svc/xml-rpc-openmcl.html" >xml package</a> that works with openmcl. with that, i rewrote the bottom half of my bookmarks code to parse an xml tree instead of regexp'ing a file. i feel a lot better about it. i plan to clean up some of code that interfaces with paserve so i can have more interesting and consistent html output. maybe a quick template hack?
<p> <p> i find myself using my interface to load even one bookmark instead of using the dropdown bookmarks menu. still quicker for me to type than use the mouse, i guess.
<p> <p> <b><a href="http://srfi.schemers.org/" >SRFI</a> for lisp?</b>
<p> <p> perhaps this has been discussed to death and i'll get flamed.. but i think there needs to be a mechanism for standardizing (lower case "s") some interfaces (sockets, ffi, regexp). perhaps allegro's sockets and kmr's uffi could be the basis for the first two?
<p> <p> maybe there should also be a mechanism for deprecating parts of the spec? i don't know enough to suggest any. but i'm sure there's some cruft in there somewhere.
Sat, 4 Jan 2003 06:09:48 GMT4 Jan 2003http://www.advogato.org/person/elduderino/diary.html?start=4
http://www.advogato.org/person/elduderino/diary.html?start=4<b>chimera keywords</b>
<p> ported my friend's php-based keyword server to lisp and hooked it into portable allegroserve. from the location field in chimera, i can enter things like "gs foo" and it'll redirect to a google search for "foo". similarly for google groups, google images, yahoo! yellow pages, whois etc. one annoyance -- it won't allow "." in a keyword so i have to encode/decode it.
<p> then i hooked it into my bookmarks app. it can now parse chimera's bookmarks.xml, so my bookmarks are always in sync. with keywords, i can set the current bookmark folder and then load the next N urls. i'm still using applescript to talk to the browser, so the web server needs to be on the same machine. i'll convert it to javascript later; perhaps opening a small console.
<p> i cheated and used regexps to parse the bookmarks file. i gave up (admittedly too fast) in frustration after failing to get any of the xml packages listed in the cliki to work with openmcl.
<p> still planning to rewrite it all now that i have a bit more lisp experience. fun fun!Wed, 1 Jan 2003 00:30:44 GMT1 Jan 2003http://www.advogato.org/person/elduderino/diary.html?start=3
http://www.advogato.org/person/elduderino/diary.html?start=3<b>bookmarks.lisp</b>
<p> added regexps to my bookmarks program using cl-ppcre. today was my first "test-run" using this with chimera instead of omniweb and its built-in facility. even though it shows me sites that haven't been updated, it still works better for me. i like loading a dozen sites at once and then popping through them quickly.
<p> now to throw it all away and start over using clos.. then importing/exporting from various browser formats. that way i can just use my browser to categorize and order them.
Tue, 31 Dec 2002 00:33:05 GMT31 Dec 2002http://www.advogato.org/person/elduderino/diary.html?start=2
http://www.advogato.org/person/elduderino/diary.html?start=2<b>i love lisp</b><br>
<i>(with big ol' flowery hearts as dots for my i's)</i>
<p> <p> hacked together a simple bookmark app to replace my dependence on omniweb's bookmark facility. it's shelling out to osascript since i don't know if i can invoke applescript directly from openmcl.
<p> <p> mine doesn't actually check for changes yet. it just sends the next N bookmarks from some folder to my default browser (chimera). later i'll add code to check for updated bookmarks -- something that will grok frames better than omniweb. enough of my bookmarks change on a daily basis that it's not a big deal.
<p> <p> sure, i could have written this in a dozen other languages, but i <i>enjoyed</i> writing it in lisp.