Search Results: "ina"

30 May 2007

David Welton: Simple item-based collaborative filtering with Rails

I suspect there is room for improvements with this, since it is really simplistic, and I certainly am not an expert in the subject. But it works ok for small numbers of items:
def Pair.from_items(items)
  Pair.transaction do
    res = []
    all = items.reject    i  i.name == ""  .collect    i 
            i.name.downcase  .sort
    all.collect    i  ([i]*all.length).zip(all)  .each    i  
            i.each  j  res << j   
    res = res.each    i  i.sort!  .uniq.reject    p  
            p[0] == p[1]  
    res.each do  pair 
      p = Pair.find(:first, :conditions => 
                            ['val1 = ? and val2 = ?', 
                             pair[0], pair[1]])
      p  = Pair.new(:val1 => pair[0], :val2 => pair[1],
                     :num => 0)
      p.num += 1
      p.save!
    end
  end
end
Basically what happens is that for a list of items [A, B, C, D], it calculates and inserts into the database that A and B have been purchased/rated/viewed/whatevered together once. Same for A and C, A and D, B and C, and so on. After accumulating enough of these pairs, you can query the datbase for an item - B for instance - and see what it's been purchased with the most times, and recommend that to people who have shown an interest in B. When someone purchases a group of items togehter, you call Pair.from_items(the_items) and it takes care of inserting the various combinations.

Joey Hess: atari

The Atari 130XE was my first computer. Not the first computer I used, but close. I got it around 1986, when I was in 4th grade. My dad and I bought it at some store, probably Sears. I paid part of the money for it, and he paid part. I think he planned to use it for word processing, since he also got the one piece of commercial software I ever had for it, AtariWriter Plus. We also picked up one game for it, some kind of space battle thing on a cartridge, with a special controller, and a huge, clunky trackball. That game never worked (maybe it was for some other model of Atari?), so I was stuck with playing with programming in BASIC. The Atari had a nice manual that made this very fun to learn. At some point in here, I think in the first year I had it, disaster struck. I had a cup of OJ at the computer and it fell onto the keyboard. I didn't know that you could just toss a computer in a sink and take it out and blow-dry it and it'd be fine, so I did nothing. Until keys began to not work, and others to repeat over and over. Not sure if the OJ etched the circuit board, or just gummed up the connections, but the Atari was out of operation. A bit later, I'm not sure how long, "I" wrote to someone at Atari's offices in Sunnyvale, CA, asking if I could get it fixed, and "I" sent it out there and miracuously they sent back a completely new Atari. I knew it was new, because it was much cleaner than the one I sent out. I'm not sure why I remember doing this, since it seems likely it was really my parents writing the letters and doing the shipping. I am still grateful to that unnamed person at Atari, who may have known at the time he was at the last days of the company's heyday, and sent that replacement to an already out of date and out of warantee machine. The several years after I got it back were probably my most productive on the Atari. I wrote a lot of games and other programs. Often I'd see some program on another computer, like the original Tetris, or Lode Runner on a C64, and write up my own clone on the Atari. I did a lot of semi-original stuff too. I was a pretty horrible programmer, by the way. I remember whaling at code over and over, pretty much at random, until I randomly found something that sort of worked. Well, hey, it was just BASIC.. At one point I found a book at the library about Atari game programming. It had one thing that blew me away; some weird ATASCII characters that if entered just right, in the middle of a BASIC program, would let you redefine the Atari's character set, so you could use characters for sprite based graphics. That was some precompiled assembly code, and while I used it, I had no idea how to change it, or write anything like it. By the time I learned what assembly was and started looking for an Atari Assembler, it was too late to buy one. Anyway, the key thing was that, if I didn't write the software, I didn't have any software. Especially a few years later there was no chance of even buying any, and without a modem, I wasn't tied into any BBS scene. The Atari was its own little island, with its own little colony of unique programs growing up without fear of competition. That, and the lack of an assembler to get really low-level (though I did plenty of PEEKs and POKEs), defined my early programming time, and have probably defined where I went and what I did since. I remember when this ended. My dad got a second computer, a 286 laptop, and I started getting ahold of programs from friends at school and putting them on it. At one point I got ahold of Battle Chess, and I realized that here was a game that I couldn't hope to replicate myself on the Atari. For the first time I compared my attempts on the Atari to the wider world, and found them wanting. The last program I wrote for the Atari was in 1992, when I lent it to Mary Calhoun to use as a display in the waiting room of her office and wrote a program to handle that. This is also the only program that has my name on it, and even a copyright notice. By then I had moved on and was clearly trying to do programs that were more like the stuff I was seeing on the PC.

29 May 2007

Jos Parrella: Axesstel, Inc.: FOAD

Yesterday I wrote in Planet Debian requesting information on how to copy binary files to a Linux-based Axesstel modem. Meanwhile, I wrote Axesstel Customer Service with a friendly thank you for making a great product and kindly asking them for pointers. I’ve had some degree of satisfaction when writing to the Customer Services of several enterprises, and I really hoped this would be another one. 48 hours later, they replied with this message: Dear Customer,
First, thank you very much for purchasing Axesstel product and your kind feedback.
Unfortunately, we cannot released requested information because it is against security policy. We hope for your understanding.
Also, we recommend that you refrain yourself from accessing internal commands of the unit because it may violated service agreement enforced by your local service provider.
Once again, thank you for your understanding.
Axesstel Support So, if you have an Axesstel modem or if you are interested on having a free OS in your Axesstel, you may join the Laxative project in BerliOS or just make some noise in your blog, webpages or mailing lists with your Axesstel-related projects. If you happen to work at a place where you export your Security Policy to any aspect of your relationship with your customesr and where you tell them to refrain themselves of trying to improve your products for free, please read on about Open Source Hardware and its business models. It might be the time to start sharing information and sleeping without guilt :)

Cameron Dale: May-28-2007: Start of Coding / New Release

The start has finally arrived, today is officially the first day of coding for the 2007 Google Summer of Code. To commemorate this occasion, I have prepared the next release (the second so far) of the software package I am writing for it, DebTorrent. You can download it from the Alioth project. Some of the changes in this release are: You can read detailed instructions for how to download using it in the README file, but the basic idea for using DebTorrent as part of an update is to: This is still an alpha release, but at least it has some more functionality than the previous one. Feel free to test it, but keep in mind that at this early stage most of the torrents will be unseeded.

Steve McIntyre: 21 again!

0x21, that is. I've had a great few days off work, taking a couple of extra vacation days off to extend the 3-day Bank Holiday weekend to a lovely 5-day weekend. Yay! A couple of days at the Cambridge Beer Festival, followed by a friend's stag do on Saturday (he's getting married next weekend) then a BBQ and party yesterday (no, not the OMGWTFBBQ!) and finally today on my birthday Dad and I went to the Aviation museum at Duxford and got close-up with lots of aeroplanes, including a clamber through one of the original Concordes. Cool! Back to work tomorrow... :-(

Evan Prodromou: 8 Prairial CCXV

So, I forgot to mention that I had a great evening last Thursday. In the afternoon, Niko and I met with Marie-Claude Doyon to talk about a new project we're working on. I think it's going to be pretty fun. That evening, I met up with Eugene Eric Kim and Seb Paquet at La ka, which was really great. I brought Niko along because we were having fun and thought it would be good to take a walk along av. Mont-Royal. It was great hanging out with EEK and Seb. There's something about talking to people who are as deep into wiki as I am that's really satisfying. It happens too seldom in my life -- just around conferences, really. Eugene got a shot of the four of us together. tags:

Gymnophobia i.never.nu sounds a lot like "I'm never nude". I'm just saying. tags:

28 May 2007

Lars Wirzenius: Random hacks: Static website, with translations, using IkiWiki

One of my current projects involves setting up a website that is translated to at least two languages. For various reasons I wanted to use IkiWiki as the backend, even though the site is static, and does not need the wiki functionality. IkiWiki is, in principle, a wiki engine, but with a difference: it is run off-line, and creates a set of static HTML pages, rather than running every time a page is accessed. This makes it suitable for static websites. For the translation, I wanted to have the following setup: Each page is available in each language, so the pages are named foo.xx.html, with xx being the ISO language code. This also allows HTTP content negotiation to work, if the client asks for the page without the .html suffix. IkiWiki itself does not currently have support for translations. Doing translations by manually editing each page in each language is tiresome and error prone. I wanted to use the gettext approach, where the translations are maintained using .po files. The po4a tool makes this possible: it supports many file formats. English is declared as the original language for this project: all other languages are generated via po4a from the English ones. The page content gets put into foo.xx.mdwn. po4a generates all other language files than English, and these are then fed as input to IkiWiki, which generates the HTML. In summary and horrible ad hoc pseudo-notation:
  • po4a: foo.en.mdwn -> foo.pot
  • cp: foo.pot -> foo.xx.po
  • $EDITOR: update translation in foo.xx.po
  • po4a: foo.en.mdwn + foo.xx.po -> foo.xx.mdwn
  • IkiWiki: foo.*.mdwn -> foo.*.html
This works pretty well, but only for the part of the page that gets put into the content section in the IkiWiki page template (<TMPL_VAR CONTENT>). The page design we have calls for a couple of elements with translatable content outside the content: a logo and a menu/navigation bar. To deal with these, I made a little IkiWiki plugin. The plugin sets a couple of Perl HTML::Template variables, LANG and BASENAME, based on the input file name. If the input name is foo.en.mdwn, the variable get set to en and foo, respectively. The IkiWiki page template then uses the variables to load the right logo for the language of the page being generated. The navigation bar needs further work. Unfortunately, the po4a tools have trouble with the IkiWiki page templates, and can't extract just the menu entries. I ended up doing the navigation bar translation directly in the page template, since it is only a few words anyway.
<li><a href="index.<TMPL_VAR LANG>.html">
<TMPL_IF EN>Home
<TMPL_ELSE FI>Etusivu
</TMPL_IF></a></li>
The "this page in other languages" part of the navigation part looks like this:
<li><a href="<TMPL_VAR BASENAME>.fi.html">suomeksi</a></li>
I made the plugin (my first Perl ever!) available in case anyone else finds it useful. Note that the plugin isn't of much help if you want to maintain a translated wiki, since this all need some Makefile magic to make things smooth. I'm not sure the Makefile is at all optimal, though. We haven't yet gone public with the website, so this setup of mine may well get improvements still.

Christoph Berg: M&ouml;nchengladbach

To also announce it here, I've moved to M nchengladbach to work at credativ, along with several other DDs, Postgresql, and other open source folks. So far work has been pretty cool, and I'm fairly sure it will stay that way. I've been mostly inactive lately because I didn't have internet access at home yet. In fact, I officially still don't, but my provider is so "nice" to let me connect to the DSL line, login in, and then tell me via http that username/password were wrong. But, at this point, port 53/udp is open :) Ganneff was so kind to set up an openvpn gateway for me and forward 22/tcp to my server, so I can ssh, and tunnel everything else I like via that. Sorry to my NMs for any delays lately, I hope to catch up this week. On a different note, I'm playing with ikiwiki and converting my blog, so please excuse if that causes flooding on planet.debian.org (which I of course hope to avoid by keeping the old timestamps, mmmv).

Miriam Ruiz: FoF in Debian!

Frets on Fire is, according to the Wikipedia, a music video game, a clone of the Guitar Hero video games, in which the player emulates playing a guitar with the keyboard of their computer. The keyboard is also meant to be picked up like a guitar in order to play, with one hand pressing the fret buttons and another pressing the pick buttons. There is support for joysticks however, meaning that the Guitar Hero controllers can be used as well. The game also includes a tutorial and a built-in song editor. The source code written for the game is written in Python, and released under the GNU General Public License. The game included some non-DFSG-free song files and some internal fonts which needed to be replaced in order for the game to enter Debian repositories. There’s a pack of new songs made by Carlos Viola Iborra and released under a free license. Thanks Carlos! This package of songs has entered the repositories too and is called fretsonfire-songs-sectoid. The original songs that were included in the game, made by Tommi Inkil , will probably be included in the non-free repositories soon, as a package called fretsonfire-songs-inkila. I’d like to thank the developers of FoF, Sami Ky stil , Joonas Kerttula and Tommi Inkil , for their full cooperation during all this process. You’re great, guys! :)

Andrew Pollock: [tech] LVM, you've done it again

The good thing about having kept a blog these last few years, is I have a searchable record of hardware changes. Recently, I noticed a few disk errors on caesar, and I was wondering how old that disk was. I disk some searching, and found via this post that the disk in it was a hand-me-down from when I decommissioned daedalus Mk I. One of the reasons I decommissioned it when I did, was the RAID-1 was exhibiting some strange errors during resynchronisation, and I didn't want to leave the country leaving behind an ageing problematic server with my stuff on it. I'd previously been unable to fault either 120 Gb disk under some light testing with badblocks, so I just reused them, and so around October 2005, I put the larger disk in caesar. So this disk has seen a fair bit of use, originally in daedalus, and then in caesar for another 20 months. It's allowed to fail, it's served me well. Anyway, so I bought a 750 Gb drive a couple of weeks ago, because one thing that I've wanted to do with caesar was do remote backups of daedalus, and there just wasn't enough space to do that, so I went for as big as I could find, and essentially repeated the same trick as last time, to upsize:
  1. Power down, attach new disk as a slave
  2. Boot into single user mode
  3. Unmount everything, remount root read-only
  4. sfdisk -d /dev/hda sfdisk /dev/hdb to copy the partition table (I use a root, swap, LVM, three partition layout)
  5. dd if=/dev/hda1 of=/dev/hdb1 bs=1M to copy the root filesystem to the new disk
  6. mkswap /dev/hdb2 to put the swap signature on what will become the new swap device
  7. cfdisk /dev/hdb and blow away the third partition and recreate it using all of the available space (there's probably a programmatic way of doing this, but hey, it's not exactly hard to do in cfdisk either)
  8. pvcreate /dev/hdb3 to put an LVM signature on the new LVM physical volume
  9. vgextend base /dev/hdb3 to tell LVM there's two disks in the volume group for the time being
  10. Remount the root filesystem read-write
  11. rm /boot/grub/device.map and run /usr/sbin/grub-install /dev/hdb to install GRUB in the MBR of what will become the new boot disk
  12. Power down, swap the disks around so that the new disk is now primary and the old disk is now the slave
  13. Boot into single user mode again, unmount everything except root
  14. pvmove /dev/hdb3 /dev/hda3 to relocate all of the allocated physical extents off the old disk onto the new one
  15. Twiddle thumbs for a couple of hours. Admire artwork on computer's motherboard (did you know Compaq EVO's have a picture of a car on their motherboards? A map of Texas?)
  16. vgreduce base /dev/hdb3 to take the old disk out of the volume group
  17. pvremove /dev/hdb3 to remove the LVM signature from the old disk
  18. Power down and remove the old disk
  19. Reboot into multi-user mode and profit from all the additional free physical extents
I absolutely love how I can do this with LVM, with a minimum of fuss. Last time I did this, I had a kernel panic during the pvmove, but that didn't even stop it, I just rebooted and reran the pvmove and it carried on from the last checkpoint. No such excitement this time. I'm sure Solaris' ZFS does all of this with substantially less manual steps, but hey, I like my Linux :-)

Jordi Mallach: Four more years

1:00 AM. Val ncia celebrates with big fireworks, and drivers sound their horns along Blasco Ib nez. People are happy; we will have our urban F1 circuit after all. Our city will continue growing and becoming the very best of Europe. Our land will continue to be developed, and finally becoming the new C te d'Azur, for the great benefit of a few. The slow but unstoppable process of degrading a culture to something that can be admired by tourists during Fallas just reached a new milestone. Welcome to my ex-country. The land of golf, sailing and open-wheel racing.

27 May 2007

Jos Parrella: Recent political issues, travelling to DC and emdevs hacking

A few days ago, some people in Venezuela were shocked by Mark Shuttleworth’s claims against Hugo Ch vez Government and supporting Mar a Corina Machado, a minor opposition leader in the Country. Today, at 23:59:59, the nationwide open air TV broadcaster RCTV will cease operations. In Venezuela, as in several other countries in the World, the economically profitable portion of the electromagnetic spectrum is State’s property, thus requiring a concession to make use of it. RCTV concession was granted in 1987 for twenty years, and the Government has decided to deny the renewal, which is quite unusual (right-wing governments in the past simply would have shut up the antennas) Of course, RCTV is not a pro-Government channel, accounting between 90 and 100 percent of the airtime with anti Government news and opinions, which is not bad per se, though in Venezuela there’s a law requiring equilibrium in times devoted to political ads. Both situations (Mark’s comments and the Government’s decision) pose the threats of a now common situation in our Country: people taking very valid decisions with somewhat doubtful consequences. In the first case, Mark is using his right to freely write what he likes in his blog but it seems that it has damaged a little bit Ubuntu’s image in Venezuela (not that it’s Mark’s fault, of course) In the second case, the Government is taking a lawful decision, but it has actually raised an important discomfort in the population (polls, which are not always accountable, point out as much as 80% rejection rate), the journalists of other media and most foreign observers, which state that they’re actually closing a TV channel and destroying freedom of speech in the Country. Expressing political POVs is quite critical nowadays in Venezuela. Some famous etiquette bookwriters, such as the one at Emily Post’s, always tend to promote a be honest, be respectful position while listening or expressing your points of views in order to keep a productive attitude. I do think that politics are important: I just think mixing them with practical daily tasks, including FLOSS development and promotion, is becoming obnoxious and dangerous. Cheeseconf On June 15th., I’ll be departing to DC7 in Edimburgh. I’ll stay a night in Frankfurt, probably in a hostel, and then I’ll stay at one of the hostels in EDI. I plan to carry white cheese to the Cheese and Wine BoF, and I’d love any comments on how to transport them without posing a biological threat for Europe. I’ll be carrying a 65 liters backpack. How long will it take for the cheese to become a lifeform? Any special tips and tricks to avoid that? Copying files to embedded devices I’ve been trying to copy some binary files into an Axesstel D800 EvDO modem which runs Linux over a tiny ARM processor on less than 16 MB. of memory. I’m actually trying to get netcat in so I can get more useful stuff such as snmpd in. The modem has telnetd, but it has no zmodem utilities, particularly rz. Neither it has wget, nor ftpd. It has thttpd to serve the administrative webpages, but it can’t process shell CGI programs so I can’t send the file through a CGI form. Any ideas? I would love to read comments from hackers who have already managed their ways into embedded devices such as 802.11 devices with Linux, and any generic ideas on how to provide new firmware images for devices such as this Axesstel modem.

Miriam Ruiz: Debian multiple binary packages: example 2

Some days ago I wrote a small example of creating multiple binary packages from a source where the program was built and installed with autotools. Now I’ve remade the example, starting from a system built directly using a make script, and which doesn’t provide an install target. Even more, it is supposed to get the data from a directory relative to the working directory. This is, in fact, a scheme often found when packaging games. The debian/rules script uses quilt to apply the necessary patches, so that absolute directories are used for the data file.

Julien Valroff: New APRIL member

Thanks to RMS’s call, I have finally sent my subscription fees to become a member of APRIL (the French association for promotion and research in libre computing). I should have done this earlier but postponed my decision without any reason. I hope this will allow me to meet nice people with the same interests.

Andrew Pollock: [tech] Finding out just how hot the linen cupboard is...

I decided to move the old 1-RU Pentium III server (the thing providing all the storage for my MythTV box via ATAoE) from under the bed in the spare room to the linen cupboard. It had a brief stop in the wardrobe in the spare room, but it didn't really help with the noise. Sarah was a concerned about the heat in the linen cupboard, as this is where the patch panel is, so caesar is already in here, along with an Ethernet switch, an ADSL modem, a wireless access point, and the Vonage ATA. There's a lot of DC plug packs generating heat, so it was a reasonable concern. I figured in this day and age, someone must make some sort of USB temperature sensor, and after some searching around, I discovered the DLP-TEMP-G, which seemed to be about the right price, doing what I wanted. I'm going to say the web page was a bit ambiguous, but it was probably just late at night, because I read the bottom as having the option to buy it from Mouser, or via PayPal directly with DLP Design. So I went down the latter path, because I generally prefer to deal directly with the manufacturer. Turns out what I was actually ordering was just a "Test Application", so that email I'd received the day after I placed my order for two units was all I was going to get. I figured this out after a week or so of wondering when it was going to arrive. They were really good about it, and refunded me my $40, even though I'd received said software, and I placed a new order with Mouser for what I really wanted. Now this time, I just didn't read things thoroughly enough, although I'll still say that things were a little ambiguously worded. The page I've linked to above does say "DLP-TEMP-G and 1 DS18B20 sensor $25.00", but when reading datasheet, it goes on about three sensors, and coming with one that isn't soldered on so that you can optionally run a cable between it and the board. I somehow interpreted this as meaning there were two sensors on the board, and one loose. Not the case. The board supports having up to three DS18B20 sensors attached to it, however you please. It comes with one unattached. In hindsight, why would you want two temperature sensors directly on the board? So the moral of this story is I just can't read. Anyway, I got home from Santa Monica last night, and the goods had finally turned up, so I had a play. The DS18B20 just looks like a transistor. I initially ignored it, and just shoved the USB board in caesar, and it happily recognised it
usb 1-1: new full speed USB device using uhci_hcd and address 8
usb 1-1: configuration #1 chosen from 1 choice
drivers/usb/serial/usb-serial.c: USB Serial support registered for FTDI USB Serial Device
ftdi_sio 1-1:1.0: FTDI USB Serial Device converter detected
drivers/usb/serial/ftdi_sio.c: Detected FT232BM
usb 1-1: FTDI USB Serial Device converter now attached to ttyUSB0
usbcore: registered new driver ftdi_sio
drivers/usb/serial/ftdi_sio.c: v1.4.3:USB FTDI Serial Converters Driver
I then fooled around with minicom, and discovered that the little transistor thing I'd been ignoring was indeed the temperature sensor, as I got a reading of zero back (when using this program I found on the 'net). So I went to bed, and this morning did a bit of messing around with the sensor, and with a bit of creative bending, I've got it sitting in the S1 holes without requiring any soldering. It tells me the linen cupboard is about 44 degrees Celsius. Warm, but I don't think it's in any immediate danger of bursting into flames. Wouldn't surprise me if some of the gear in there isn't too keen about the temperature though. At least we won't have to worry about mold. Next step is to convince cacti to graph it, and nagios to monitor it, and we're in business. Here's a little Python program I knocked up to grab the temperature. pyserial is nice. Read on, Macduff!

26 May 2007

Alastair McKinstry: Irish Elections 2007: Now What?

Well, the people have spoken, now the airwaves are full of puzzled politicans and pundits trying to decide what they said. The outcome was a suprise, especially in Galway West (where I live), for which I'm annoyed; as I said before, a poll would have been useful. Niall O'Brolch in, said in the last poll in March to be likely to take a seat, came fairly off the mark, unfortunately. Quick summary: The Irish Parliament (the D il) has 166 seats, so the majority is 83 (I seat goes to the Chair or Ceann Comhairle). In recent years, majorities of one or two seats are normal, so we all wait for the final seats to be decided before really knowing the outcome: The Bookmakers paid out for Bertie Ahern being the next Taoiseach by 9.30 AM yesterday, though technically the numbers could still add up for the alternative, Enda Kenny. We might not know until next week.

read more »

Tags , ,

Jeff Bailey: Going through the inbox

Wow - I'm finally starting to go through my email inbox from when Leif was born and starting to say thanks to folks for their support. I read them all at the time, but it's crazy to go back 3 months and see how many people were cheering for us.

There will be more photos up this weekend. =) Recent things for him include creeping off of his blanket on the floor and rolling from his back to his front in bed. It's amazing how the simplest things are "OMG come see this, quickly!" events. =)

David Welton: Airlines and rand()

Ilenia and I are looking for tickets to go "home" (Eugene, Oregon) this summer. We've had pretty good luck with Lufthansa in the past (as opposed to Air France, which lost a huge bag of my stuff), so we turned to them first to look for flights. I like the page they have for prices/dates, which gives you a nice way to look around for a better price without stabbing randomly at dates: Big long Lufthansa URL However, the maddening thing is that the prices change frequently. Not every day, but often after even 5 minutes! They bounce around up to 100 euro at a time. I understand the theory behind price descrimination, but this is the classic case where the customer ends up feeling like they're being made fun of and goes elsewhere. United, in our case, which offers a cheaper price for the same plane (they're Lufthansa's partner and thus share flights).

Cord Beermann: I'm a criminal

The German parliament changed the law on 25th may 2007.

It's now forbidden to build, program, give, distribute or get software, which can be used to attack computers. that's something i do on a daily basis. (think nmap)

so it is only a question of time that i get caught.

German pressrelease of the CCC

Evan Prodromou: 5 Prairial CCXV

Incredible day here in Montreal. The temperature got over 31C today -- about 88 F -- which made for a steamy, jungly day. Remember how I said we had predictions of snow flurries two weeks ago? Things change quickly. Of course, hot weather and high humidity are a recipe for smog. Add on top of that the fact that Montreal is in the middle of a public transit strike, and you've got a serious air quality problem. Fortunately we should have some rain this weekend to shake that out. tags:

EC2 I spent a big part of my day twiddling around getting a nice Ubuntu server running on Amazon Web Services. Amazon's EC2 is an innovative server-provisioning API; beta testers for EC2 can build or tear down servers for any purpose in a few minutes using EC2 and Amazon S3. I wrote a few years ago, in a widely-reproduced email, a reply making fun of Jeff Bezos and Amazon's supposed innovations. But let me be frank: Amazon Web Services are a shithouse crazy idea. I think that Jeff Bezos must have been a complete nutjob to bet the company on these zany technologies; I also think it's brilliant, and it's going to change the way we think about using computers. I included EC2 in Ten Web 2.0 APIs you can really use. I think that decision was really justified. My EC2 instances now run Ubuntu Feisty Fawn; lighty, MySQL and PHP. It seems to be a winning combination; I'm looking forward to using EC2 for a production Web or database server. tags:

rel-edit I mentioned already the great work that AboutUs.org is doing to organize a Universal Wiki Edit Button. I decided to kick in on the machine-readable side and proposed a rel-edit microformat. So far the microformats-discuss mailing list has been pretty positive on the idea, but I'm going to wait a few days before posting a draft on the microformats wiki. tags:

Salt I just finished reading Salt: A World History, a nice non-fiction book by researcher extraordinaire Mark Kurlansky. The book covers this important mineral, its importance to human life, and the many ways to extract it to make it available for us. The book covers mummification in ancient Egypt, salt taxes in China, fish sauce in Vietnam, and Mahatma Gandhi's great salt march in India. It's so comprehensive that it can really make your head spin; but it's also exciting to see world history refracted through these whitish crystals. I think it's a great book, and I'm looking forward to reading Cod: A Biography of the Fish That Changed the World, by the same author. But we just got Everything is Miscellaneous from Amazon this week, so I think I'll be digging through that before I get to Cod. tags:

reCAPTCHA I heard about recaptcha via Hugh's article about same. Brilliant idea; why didn't someone think of this before? (Update: it was about 5 minutes after I posted this that I realized, "Hey! That can't work!" So I went back and re-read the docs on reCAPTCHA again. Now I'm even more impressed.) tags:

I want to ride my I've been thinking of picking up a bicycle for a few weeks now, as the weather has cleared here in town. So today I went up to Garantie Bicycle on rue Marie-Anne and bought the cheapest damn bike they had that wasn't made specifically for pre-pubescent children. Woohoo! The last time I had I bike, I lived in San Francisco. It was a beautiful cherry-red Cannondale hybrid -- with that great fat Cannondale tube, but light enough that I could lift it with one finger. I rode it around SF a lot, and took it out for trail biking on weekends in Marin County and the Peninsula and even the Sierra Nevada. It was a tough bike to ride, but once you got used to it it was a dream to take up hills. But that bike was stolen at Burning Man 2001, during the actual Burn. It's a classic mistake: professional bike thieves go to Burning Man each year to snag bikes left unlocked by tired and idealistic Burners, especially at times when camps are left empty, like during the Burn. To be honest, it was kind of a relief: I'd already moved out of my apartment and was planning a trip around North America, and I didn't have room in my Citro n DS for a bike. Nor in my storage locker at the weird and wonderful Sunshine Storage in Oakland. But it was too nice a bike to throw away or give to one of my no-good friends, who were mostly too short for it anyways. So bicycle theft was the best solution. Sam Phillips had his bike stolen at the same time. The bike thieves left a lot of cheapo bikes around our camp. They liked mine and Sam's, though. Anyways, my new bike was quite inexpensive, and it weighs a metric ton. It's built like you're supposed to drive trains over it. I could never, ever carry it up a steep and muddy hill, and I wouldn't bother. Fortunately for me Montreal is really, really flat, so I don't really need to worry about riding this thing up hills. It will look pretty good with a baby seat on the back, though. tags:

Next.

Previous.