Search Results: "ean"

29 May 2007

Eddy Petrișor: po compendiums, just wait a little

It seems that my idea caught Javier's attention and he is already asking to use the scripts for Spanish.

As I have said before, those scripts will work for all languages in due time. Currently, as a test, they are running (or they should starting from tomorrow morning) only for the po material for the languages fr, de, ro and vi.

I intent to make compendiums for po-debconf material, po material[*] separately and another one made from all of them.

Stay tuned. Of course, a proper annoucement on debian-i18n@l.d.o will be done when I'll have something pretty ok.

Meanwhile, unpatient souls can take a peak at the current results

(I just enabled es, just for fun; es is broken, too?!? - or maybe the scripts are doing something wrong :-P - curious people can check, the logs are available.)


[*] which is more tricky since there is a need to merge fr_FR with fr/fr_CA with fr, de_DE with de, de_AT with de... and so on, but zh_TW does not have a zh to be merged with. Also the ll_CC strings should have higher precedence than ll strings.

28 May 2007

Eric Dorland: The Ghost of Browser Past

Even though Iceweasel has been a reality since November, it seems that there is still some backlash about the rename. Thanks very much to Andrew for jumping to my defense (and also for organizing dinner the last time I was in Mountain View, it was a fun evening). Nothing he said was fundamentally incorrect, but it doesn't paint the full picture.

Once upon a time (somewhere around Firefox 0.9) we happily shipped the fox hugging the globe icon. Then it was pointed out the copyright license on that piece of artwork wasn't DFSG free (and probably wouldn't be free under any reasonable free software or even open content license), so we removed it and used the plain globe icon they shipped in the tarball instead. Eventually the Mozilla Foundation asked us to remove mozilla- from the package name (it was mozilla-firefox at the time) which we did, and the issue of the icon and trademark came up. After explaining why we couldn't ship the icon they gave us permission to continue to use the name. They said they would periodically check up to make sure we weren't shipping crap that would harm the brand. This seemed a fairly good compromise and we accepted.

This situation persisted for a year or so, in both Debian and Ubuntu, but then the Mozilla Corporation (who was now in possession of the trademarks) insisted we couldn't use the name without the non-free logo. They also wanted to approve any changes made before they were uploaded. They are certainly within their rights to do this, but to hear Mr. Fowler tell it we were on a crusade to purge the name from the distro. We were not, we were content with the status quo. I also must take exception with Mr. Fowler stating: "They've persisted, despite the best efforts of the Mozilla project team to engage with the Debian packagers to resolve the situation." I think from the discussion we were trying our best to reach some sort of compromise and the Mozilla side seemed firmly entrenched in their position, not offering us a lot of alternatives. The non-free nature of the logo and the unprecedented "control-freak" review process didn't leave us with a lot of alternatives.

Ubuntu does ship the officially branded version of the Firefox, but they have a weaker set of freedom guidelines than Debian. Whether you think that is good or bad is personal choice, but one of the reasons I like Debian so much is its commitment to free software, even if that means not everything is as easy or expedient as one would like.

With respect to the new name and icon, this is again a matter of personal taste. I do tend to think "Iceweasel" doesn't have that much sex appeal but it was a popular choice and had the benefit of having already been used to refer to a potential name fork of Firefox. And BTW this is really only a name fork, the amount of changes we've actually put in to the tree (beyond renaming ones) are minimal. In fact the last time it was checked, our patches were a strict subset of the patches Ubuntu uses in their Firefox package. So Iceweasel is in fact functionally identical to Firefox with what I like to think are some minor improvements from upstream.

As to your other points, I will admit to being poorly-socialized, but I think most who have met me wouldn't call me self-obsessed, egotistical or a moron.

I think Debian is developing a bit of a bias against it where we're assumed to be a bunch of crazy Free software nuts, and the presumption is anytime we act against the grain we're the ones being unreasonable despite any evidence to the contrary. I don't know how we can fight this perception, but I think we should.

Romain Francoise: Bank holiday ponderings

In the French-dubbed version of Tomorrow Never Dies, the on-board computer in James Bond's BMW speaks with a German accent.

I'm sure that there's some fundamental truth about European politics there, but it escapes me.

Steve Kemp: Another red letter day

It has been a busy week. Mostly I've been working on new templates and functionality for the dating site but also I've setup a few new internal services for the home network: On top of that I've been experimenting with IPv6, and getting the hang of doing interesting things with Ruby.

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! :)

27 May 2007

Michal Čihař: IMAP utils are completely clean of adware

I never knew, that someone would certify few lines of Python code, but Softpedia did so:
   Your product "IMAP utils 0.2" has been tested by the Softpedia labs and
   found to be completely clean of adware/spyware components.
   We are impressed with the quality of your product and encourage you to
   keep this high standards in the future.
   To assure our visitors that "IMAP utils 0.2" is clean, we have granted
   it with the "100% FREE" Softpedia award. Moreover, to let your users
   know about this certification, you may display this award on your
   website, on software boxes or inside your product.
I still wonder why simplest "product" I ever released is getting so much publicity…

Alastair McKinstry: Darkness reduces Crime?

Thanks to Apparent Brightness for this snippet:
In the northern Swedish town of vertorne , a dispute between the local council and its electricity distributor has meant that the town has had no streetlighting for many months now (TV programme in Swedish about the controversy here). Today Swedish television and other media report that since the streetlights were switched off, thefts and burglaries have halved. Maybe the thieves are afraid of the dark , says council boss Arne Honkamaa. On the other hand, maybe it s being able to see the night sky that s reducing crime.
Tags ,

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 , ,

25 May 2007

Ross Burton: Wanted: Non-European Tasks Users

I've added a hot new feature to Tasks, so that you can specify a priority and group when creating a task instead of having to create and then edit it. It works like this:
Some Task
Create a task with the summary Some Task
+ Some Task
! Some Task
Create a high priority task with the summary Some Task
- Some Task
Create a low priority task with the summary Some Task
! @Work Some Task
Create a high priority task in the Work category with the summary Some Task
Now, I've tried to be i18n-aware, and use GLib's UTF-8 functions to manipulate the string, but I'd like someone to check this. Can a non-English speaker test this out with some interesting locales, specifically with UTF-8 characters which contain ASCII whitespace in their byte representation such as 0x20. Thanks! Update: thanks to Simon for pointing out that my paranoia is unfounded, UTF-8 was designed to stop this sort of problem. However, people checking this code works would still be useful! NP: Music Is Rotted One Note, Squarepusher

Biella Coleman: Pricefull and Priceless

$ 5000 medical bill (that insurance won’t pay for)
$ 450 water bill in Puerto Rico
$ 150 library fine for one lost book that normally costs under 20 dollars Anxiety and rage from dealing with these ludicrous bills: priceless. Ok seriously I am now dealing with these three things and it has been really really really unpleasant. I sometimes wonder if I was once a bad as* Roman tax collector by the name of Biella Plebius and now, reincarnated as Biella Coleman, I am suffering the karmic consequences of extorting people in the 3rd century A.D. Other times I take a lighter approach to all of this and console myself that if nothing else, I am learning a lot. For example, as I had mentioned awhile back, Blue Cross Blue Shield Horizon of New Jersey is stalling and denying health insurance bills for my mole surgery. Because I had a pre-existing clause in my contract, they are trying to squirrel out of it. However, since I never had a pre-existing issue with moles, I am pretty sure they are required to pony up the cash but getting them to do this has been a Herculean, no Sisyphean task. Since it was clear they were not going to pay if I alone was applying pressure, I was about to file a claim in Special Civil court (the bill is too high for small claims court) but I wanted to see if I had any other options. So hours and hours after diligent web research, I finally found on lawyers.com that I can file a complaint against my health insurance via the Department of Banking and Insurance. I am amazed that NO ONE in the doctor’s office, including those whose only job is to deal with health insurance, had a clue about this option. And even when you go to the Dept of Insurance website it is not totally obvious that you can file a complaint (it is under the “file for assistance” category). But once I got in touch with them, they have been incredibly helpful. Now, my detailed complaint letter is with them, and some other documentation and apparently they have an investigator on the case. I am not sure if this route will be enough pressure to get the job done but at least by the time this is over, I will be in the greater NY area so that I can move to the court option. The take away lesson here is that if you are having any trouble with claims and health insurance, do do do do file a complaint with your state Department of Banking and Insurance. This is a great first option to use.

Alastair McKinstry: Jets seen from a Brown Dwarf Star

Artists impression of Jets from Brown Dwarf
Outflows have been discovered from a Brown Dwarf star, 2MASS1207-3932, the lightest yet. Found by Emma Whelan and Tom Ray of DIAS and others , using the ESO's Very Large Telescope (VLT), this is the first time that Jets have been seen from an astronomical object as small as this. The Brown Dwarf is 2MASS1207-3932, a 24-Jupiter mass 'near star'. Jets of material are a common feature in astrophysics, seen from Galaxies and young stars, but this is the first time they have been seen in something this small. It opens the possibility of similar outflows from smaller objects, such as giant planets. The brown dwarf 2MASS1207-3932 is full of surprises. Its companion, a 5 Jupiter-mass giant, was the first confirmed exoplanet for which astronomers could obtain an image, thereby opening a new field of research - the direct detection of alien worlds. It was then later found that the brown dwarf has a disc surrounding it, not unlike very young stars. Tags , ,

24 May 2007

Nico Golde: creating (dynamic) function call graphs

I am currently writing a general purpose shared library for acpi (more on that soon).
I was interested in having a function call graph especially to see if the interface looks somehow clean and to include it in the documentation of the library. Of course I wanted to do it with open source tools. There are several tools for static call graphs but if you want dynamic call graphs you have to use additional features of your compiler to generate a graph based on code during runtime.

The first variant I tried was using egypt a small perl script to generate a dot file. Dot (today included into graphviz? is a tool originally developed at AT&T to generate hierarchical or layered drawings of directed graphs.

So what is needed?
First install software (here on a Debian systen, egypt is not included in Debian):
$ aptitude install graphviz graphicsmagick (+ download egypt from the homepage)

Compile your software using gcc with the option -dr to dump an RTL file of the source.
Most of gcc's work is done in an intermediate representation of your code, called register transfer language (RTL). This pretty much describes the instructions in plain text and is inspired by LISP lists.
Ok, here we go:
$ gcc -dr list.c libacpi.c test.c
This generates three RTL files, for every source file one. Depending on the gcc version the names may vary, here the names are libacpi.c.00.expand list.c.00.expand and test.c.00.expand.

Now use egypt to create a dot file (I don't want one for test.c now):
$ egypt libacpi.c.00.expand list.c.00.expand dot -Gsize=100,100 -Grankdir=LR -Tps -o graph.ps
Egypt will create dot-output and by piping it to dot with -Tps -o graph.ps you get the resulting graph as a ps file. -Grankdir is used to generate a graph which runs from the left to the right, default is up-down which looks a bit strange.

Now convert the ps file into a png:
$ gm convert graph.ps graph.png
The result looks like this (looks cool huh? :-)):



The second variant I tested is a bit different and in my opinion the resulting graph looks a bit better.
The gcc commandline switch -finstrument-functions allows easy creations of call-graphs for C/C++ (script languages used but I haven't tried).
You need to compile every file with the -finstrument-functions switch. Then gcc places a call to the functions __cyg_profile_func_enter upon entering a function and __cyg_profile_func_exit on leaving a function.

Compile your sources with -g and -finstrumental-functions:
$ gcc -g -finstrumental-functions list.c libacpi.c test.c -o test
Now you need to get some source code by Sebastian Krahmer (SuSE):
$ wget http://www.suse.de/~krahmer/instrumental/instrumental.tgz && tar xvfz instrumental.tgz && cd instrumental
Compile a shared object file:
$ cc -fPIC -c instrumental.c && ld -Bshareable instrumental.o -o inst.so
This generates a shared object file you can preload with LD_PRELOAD
$ LD_PRELOAD=./inst.so test
.....

Now you will find a log.inst.dot.<pid> and log.inst.ascii.<pid> in /tmp (path can be modified in instrumental.c).
The first file is a dot file you can now create a ps and a png file with but you need to attach a closing bracket at the end of the file since the package is not
able to intercept exit() or aborts. echo ' ' >> log.inst.dot.<pid>
$ dot -Gsize=15,20 -Grankdir=LR -Tps -o graph.ps log.inst.dot.<pid> && gm convert graph.ps graph.png
The result looks like:


PDF file which scales a bit better

The other file represents the call graph in ascii:
~ [1000 1000 1000] -- main (0x8049ea4)
~ [1000 1000 1000] -- check_acpi_support (0x8048984)
~ [1000 1000 1000] -- get_acpi_version (0x8048782)
~ [1000 1000 1000] -- get_acpi_content (0x80486b4)
~ [1000 1000 1000] -- scan_acpi_value (0x8048837)
~ [1000 1000 1000] -- init_acpi_batt (0x80489d6)
~ [1000 1000 1000] -- dir_list (0x804a447)
~ [1000 1000 1000] -- new_list (0x804a23c)
~ [1000 1000 1000] -- append_node (0x804a309)
~ [1000 1000 1000] -- append_node (0x804a309)
~ [1000 1000 1000] -- read_acpi_battinfo (0x80497d3)
~ [1000 1000 1000] -- get_acpi_content (0x80486b4)
....

So both methods work but the first seems to be more useful if you want a graph for a specific file, not a specific program since you get an RTL file for each source file and you don't need all to create the dot file. The second method however looks better but has the limitation that you actually need to run the program (but that's dynamic and not static) and you can't (correct me if I miss something) create graphs for single files.

Have fun creating graphs for your favorite software and have a look into Sebastian Krahmers paper http://www.suse.de/~krahmer/instrumental/instrumental.pdf and http://www.ibm.com/developerworks/library/l-graphvis/. He also created a graph for openssh http://www.suse.de/~krahmer/ossh4.6.pdf.

Biella Coleman: Proportional Registration

Though I am not all that fond of Karl Fogel’s so called “cozy” San Francisco heater(because it does not work), I am more fond of his ideas on copyright. And I think his recent modest proposal that calls for a shorter term period for copyright and proportional registration is a good one. I agree with 90% of it although I am not sure that all types of creations are “created” equal in so far as I would be more comfortable with having software under a shorter term and books under a slightly longer one.

Neil Williams: Functional cross-building chroot, based on pbuilder

The pbuilder-based chroot script (empdebuild) in Emdebian SVN is now functional - that is it can run from a directory created by emsource, patch the Debian source using emdebian-patch files ( = emdebianising the package), get the build dependencies and install them, run emdebuild to cross-build the package and copy the updated patches, build log, .changes, .dsc and .deb files out to a nominal location before cleaning up the chroot. Only the basic pbuilder options and setup is supported and some values that can be configured for pbuilder are calculated automatically by empdebuild.

The embootstrap script that creates the chroot used by empdebuild needs some more work before this can be released as part of emdebian-tools 0.2.2 and there is no support (yet) for installing the cross-dependencies required for some packages. I'll be experimenting with Gyrosgeier's debian/xcontrol idea to specify these Build-Cross-Depends: using information already gathered on an ad-hoc basis. xcontrol files can then be committed to Emdebian SVN as patches. The pbuilder code is sufficiently flexible that the same code that parses debian/control for Build-Depends can be adapted to parse debian/xcontrol for Build-Cross-Depends.

In theory, empdebuild can become the basis of a cross-buildd, significantly improving the rate at which packages can be emdebianised.

The script does, currently, have to use apt pinning to retain the Emdebian toolchains because of problems with gcc-4.2 on arm.

(And yes, I do realise that emdebuild and empdebuild are very similar names but then so are debuild and pdebuild upon which the respective Emdebian scripts are based.)


http://buildd.emdebian.org/svn/browser/current/host/trunk/emdebian-tools/trunk/pbuilder

John Goerzen: Debian Developers 7 Years Ago

Today while looking for something else, I stumbled across a DVD with the "last archive" of my old personal website. On it were a number of photos from the 2000 Annual Linux Conference in Atlanta, and the Debian developers that were there. These were posted in public for several years.

I've now posted all of them on flickr, preserving the original captions.

Here's the obligatory sample:

20001018-01-06.jpg

That's Joey Hess, using what I think was his Vaio. Most acrobatic keyboardist ever. Probably the only person that could write Perl with one hand comfortably.

What else can you see? The best of show award that Debian won that is now in my basement due to a complicated series of events, the Debian machines that were being shown off at the show, Sean Perry and Manoj, the photo with long-term corrupted caption, and of course, numerous shots of Branden.

I know the size stinks. It was scanned at a web resolution for 2000. I do still have the negatives somewhere and will post the rest of them, in higher res, when I find them.

Click here to view the full set.

Adam Rosi-Kessel: Christopher Hitchens vs. God

Christopher Hitchens goes to war against religion–on a recent episode of Radio Open Source: “Religion does not say that there is a mystery. Religion says there is an answer to a mystery.” It’s an interesting observation, but, I think, wrong. For a hyper-rationalist, Hitchens resorts to a lot of irrational attacks. If nothing else, his caustic approach is probably not winning many converts. Although he refuses to admit it, I think his problem is really with fundamentalists, not with religion. By taking such a polemical approach, though, he is probably selling more books. Check out his appearance on the show, as well as the follow-up on a later show (and comments). Radio Open Source is a rare example of a successful melding of old and new media. Often traditional media efforts to create a web-based “community” around an existing show fall flat. Open Source was started as a multimedia show, though, and maybe that’s why it works.

23 May 2007

Romain Francoise: Snap popups considered stupid

Funny statistic: 100% of the web users I polled hate Snap popups with a vengeance. (You can turn them off via a cookie.)

Evan Prodromou: 3 Prairial CCXV

I just finished reading Ben Yoskowitz's Top 10 reasons to join a startup, and I feel like I have to say something. As an experienced programmer, I think of a startup as an abusive relationship. Most technology startups I've been in have been run by charismatic sociopaths with no actual management or technology experience. They make wild, ignorant, unfounded promises to employees, investors and potential customers, then get increasingly anxious and unpleasant as their unsupportable predictions of schedule and market share don't come through. Employees end up working 80-hour weeks, typically for low or no pay and worthless stock options that never pay out. Guilty that living the "startup lifestyle" (work from home, come in late, have fun) has caused schedule or feature slips, they push themselves too hard at work, to the detriment of their health and home life. It doesn't help you much get another job later. Most startups don't succeed, which means that you end up with 1, 2 or 3 years of space on your r sum consumed by a made-up company name that no one has ever heard of and whose phone line has been disconnected. If people have heard of the name, they'll associate it with failure ("Oh, yeah, wasn't that the company that spent all that money and went nowhere?"). On top of all that, the tech experience of working in a startup is usually pretty bad. The engineers are typically unexperienced -- just out of school, or close to it -- and they waste a lot of time and effort trying to reinvent the wheel. The idea that you're changing the world encourages this kind of bad engineering. You end up cutting a lot of corners and developing a lot of bad habits that you have to unlearn later on. Schedule pressures make you drop important engineering steps like analysis, design, unit tests, documentation. That is, if you even knew you were supposed to do them in the first place. It takes a lot of experience in this kind of pressure-cooker environment to come out of a startup sane, healthy, and wealthy. The vast majority of people end up with broken relationships, poor mental and physical health, and not much in the way of money to show for their efforts. tags:

Wikiclock in the news So, Niko, Hugh, Mike and Leoben Richardson all blogged about the Wikiclock. As far as I know, no MSM coverage yet, but it should be coming down the pipe any day. I talked to Niko tonight, and he said that he saw Hugh at La ka, and Hugh was updating the wikiclock. They traded off updating all afternoon. Sigh. It's actually quite addictive. tags:

Transit strike We've got a transit strike on in Montreal (see the CBC for deetz). It's a pretty heinous problem -- the maintenance workers are asking for X% pay increases over Y years with blah blah blah pension and fie fo fum and... Whatever. The city is refusing to budge, which makes our mayor, G rald Tremblay, officially a hypocritical idiot. Tremblay has been wagging fingers at provincial, federal and international figures for years about sticking to the Kyoto protocol, but when the hard decisions had to be made, he was willing to shut down Montr al's transit system... in summer... after one of the warmest winters in history. You can blame both sides on this issue, but when it comes down to it the union's job is to get the best deal it can for its workers, and Tremblay's job is to keep the Montreal M tro running. Someone's not doing his job. The city spends millions trying to get commuters out of their cars and into the public transit system. And all that work's out the window, now. Despite the public call for more people to rollerblade to work (riiiiiiiight), traffic is way up and auto use is way up. That means air quality is going to go down, and our city can go from being an environmental leader to an environmental mistake. I'm glad to hear that the Quebec government is stepping in to break up the fight, but I hope it doesn't take too long. tags:

Calling graphic designers: Universal edit button One of the interesting movements to come out of RoCoCoCamp this weekend is the idea of a universal wiki edit button. This would be an icon similar to the RSS radio-wave icon that's become ubiquitous for indicating an RSS feed. The UWEB would symbolize that the current page can be edited. Folks at AboutUs.org have taken the lead on this effort, which could be really interesting. Getting a universally-understood sign for "edit this page" would greatly help with acceptance of the wiki way by the general public. I don't think it'd have to be limited to wikis; any page that could be edited (e.g., on a CMS) could also have the UWEB. I highly encourage skilled graphic designers who want to take a crack at designing the Next Big Icon to look at the UWEB effort and give it a try. tags:

22 May 2007

Steve Kemp: Long journeys wear me out but

I was suprised to see Michal iha suggesting that memcached wasn't helping his site enough. I've been a huge fan of Danga's Memcached for the past year or two. I'm using it very heavily upon the Debian Administration website, and also upon my new dating site. There are, of course, issues with making sure you flush the cache when things are updated, but I've got a good pair of test suites for that now :) With a nice singleton accessor I can use the code as easily as:
1
2
3
4
5
6
7
8
9
10
11
sub recent_users
 
    my $cache   = Singleton::Memcache->instance();
    my $results = $cache->get( "recent_users" );
    return( $results ) if ( $results );

    # fetch from database
    
    $cache->set( "recent_users", $results );
    return( $results );
 
Obvious once you've done it a few times, but right now I can feel the difference if I disable the cache upon either of the sites. Page loadtime just drops. I guess the effectiveness depends upon the site you're using, and how often things can be usefully cached. I know that for my uses I tend to have large items which would be expensive to fetch which occur on every page (such as "currently online users", or "recent weblogs".) That probably means I benefit more than others, still I've become so enamoured of the project I feel the need to pimp it a little!

Next.

Previous.