Search Results: "mats"

7 April 2009

Alastair McKinstry: Debian Meteorology

I've added a Debian Meteorology section to the DebianScience page on Debian Wiki. The aim is to add the free and open-source meteorology packages I currently maintain and work on at ICHEC to Debian. So far I've packaged CDO (Climate Data Operators), and am working on EMOSLIB, an interpolation library. Enrico Zini is packaging GRIB API. Other interesting packages include the OASIS coupler and the VISIT visualization software, and adding support for meteorology data formats to /etc/magic, with desktop icons and mime filetypes, etc. Tasks to investigate include (1) What other software are people interested in, and (2) getting added to Debian pure blends in Alioth. Tags , , ,

17 March 2009

Russell Coker: Lobbying for Free Software

I am not aware of any Linux Users Group (LUG) being active in informing it s members of how the policies of the various political parties compare with regard to free software and the other issues that are of interest to most members. I believe that this is a grave mistake. Shortly before an election there are many social groups that send lists of questions to all the parties. They ask about the policies the parties have in regard to the issues that they care about, and helpfully mention the number of members that will receive the response. This of course doesn t mean that every member of the group in question will cast their vote in the same way, merely that they will take note of the answers. The committee members of the parties in question will then decide how to answer the questions and whether policy should be tweaked to allow answers that the lobby groups will like. So this process not only helps members of a group make informed voting decisions related to issues that they care about, but it also helps political parties choose policies that are least offensive to the group in question. Here is a draft of a list of questions that I think should be asked of all political parties on behalf of Linux users:

  1. It is important for all citizens to access all government data without being forced to buy new software or hardware, open standards allow everyone to access the data with free software. Do you support the use of open standards for data on government web sites and other forms of electronic communication between government agencies and citizens?

  2. For long term archival of records it is important that file formats remain readable. The only effective way of doing this is to use open file formats that are implemented in free software. Do you support mandating that all data submitted to government agencies (by citizens or corporations) be in open file formats wherever possible?

  3. In these difficult economic times there is a great interest in keeping jobs in the country instead of sending money overseas. To what extent do you support the use of free software that is installed and managed by locals (keeping the money in the economy) instead of importing software at great taxpayer expense?

  4. Commercial software has a limited support period, after that time has elapsed there is no further support and systems become increasingly unreliable. Do you support mandating that all systems relating to the emergency services run on free software to allow quality long-term support by local citizens?

  5. There has been a lot of concern recently about the spread of child-porn. The best available evidence shows that insecure home PCs that run Trojan Horse programs are a key part of distributing it and other illegal material. Do you support the introduction of government programs to train parents in installing one of the more secure free operating systems on their home PC to protect their children?

This is just a rough draft. Obviously there needs to be local differences (EG don t use point 3 in the US because MS brings money into the US economy). Does anyone have any suggestions for other questions?

12 March 2009

Russ Allbery: Policy 3.8.1 and Lintian 2.2.8

I've just uploaded Policy 3.8.1.0 with the first batch of post-lenny changes. There isn't anything that earth-shattering in this set, but I'm hoping that we'll be able to get a lot more done during the squeeze release cycle. Policy has well over a hundred open bugs, quite a few of which we should be able to resolve. I also uploaded Lintian 2.2.8, which is synchronized against Policy 3.8.1 and also reverts some changes around install-menu due to a reverted change in debhelper 7.2.5, and fixes diagnosis of diversions. The last few versions of Lintian have all been a little bit buggy due mostly to the current pace of change. Hopefully this version will have fewer unexpected problems. Here is the summary of normative Policy changes, taken from upgrading-checklist.txt.gz in the debian-policy package.

11 March 2009

Adeodato Sim : python-dateutil

It seems python-dateutil is the Python module that can bring some sanity to time handling in Python. I ve finally found a module that can these two tasks: For the first item I was using mx.DateTime, but it seems dateutil s parser is very good too. The second item has been bugging me for a long time. You have the datetime module in the standard library providing nice object-oriented interfaces to date and time, but what good it is if you can t even use it to print a date in RFC822 format! At least now it s possible:
  from datetime import datetime
  from dateutil.tz import gettz
  print datetime.now(tz=gettz()).strftime('... %z %Z')
(Oh, sure, that simple task can be done directly with the time module. But if you re dealing with HTML templates, you really want to pass date objects around, and let the templates print them one or more times in whatever format they need, including %z or %Z. And with dateutil you can use any timezone, of course, not just the current one.) The dateutil module also offers interfaces to do relative time calculations (what date will it be in 47 days?), and some stuff for recurrence rules. Check it out!

1 March 2009

Julian Andres Klode: debimg update - creating images


Much happened since the last time I wrote about debimg. The project is now registered on Alioth and has a mailing list. On the code side, there have also been several changes. First of all, the repository module has been merged into the master branch. This was the first step towards the creation of the image building, which happened today by introducing the image module. The code should be treated as Beta quality, but the project as a whole is Alpha, because the application utilizing debimg.core is still missing. As always, I hereby encourage to try out debimg, have a look at the examples, and help to develop it. Patches should be sent to the mailing list, created with git format-patch, and its usual settings (eg. prefixed with eg. [PATCH 1/2] ). The patches should be inline and validate in pyflakes and using pep8.py. See the README for some more recommendations. Because NEW seems to be really busy at the moment (and doko uploaded python2.6 and python3.1), I m not uploading the current state as 0.1.0~a1 to experimental, but wait until NEW is smaller (maybe it will be 0.1.0~b1 then). What is wanted/planned?
  • Compatibility configuration formats
    • (debimg.config.simple_cdd) A reimplementation of simple-cdd using debimg. This probably needs to wait until there is a module for dealing with the installer, but I want to implement an application to support simple-cdd configuration files.
    • (debimg.config.debian_cd) There could be an implementation of debian-cd s configuration format. This would allow people to easily try out debimg. We can only support a subset, though.
  • New configuration formats
    • (debimg.config.yaml) Debimg s native configuration format. This is the only one supported by the graphical frontends. Where possible, configuration between compatibility formats and this format will be provided.
  • Graphical Frontends:
    • (debimg.frontend.gtk2) The graphical GTK+ frontend for inexperienced users who just want to create their own disk.
    • (debimg.frontend.qt4) The graphical frontend written in QT4.
  • Text frontends
    • (debimg.frontend.text) The basic command-line frontend.
    • (debimg.ubuntu.frontend.text) A script to build Ubuntu images, which could be used to build the official Ubuntu Images. This requires interaction with the germinate tool for dependency resolution, and more. It s also not flexible enough for building custom images.
Requirements for 0.1 Beta
  • Implement at least one configuration format and the build frontend.
  • Have at least one external contributor.
More Changes Julian Andres Klode (6):
  • debimg/core/files: When creating a file object allow filename as source
  • debimg/core/resolver.py: Introduce Package.fullname, Package.component
  • debimg/core/repository.py: Merge the repository module.
  • debimg/core/resolver.py: Improve handling of certain dependency types
  • debimg/core/repository.py: Allow Repository.add_group to take a distro parameter
  • debimg/core/image.py: Introduce the image module.
Posted in Debian, debimg, Ubuntu

26 February 2009

Michal Čihař: Fun with software catalogues

Recently, I made available information about Gammu and Wammu in machine readable formats (currently DOAP and PAD). In order to fully use advantage of PAD, I decided to push both Gammu and Wammu to some PAD enabled sites I found. At least it should give it a bit more visibility in Windows world. When I started looking for these sites, I was surprised that there is so much of them. Yes it is quite easy to setup such site as ASP provides PHP scripts to make such site, but I expected that people would be a bit sane and would not start 1001th software catalogue. But anyway, let's submit my software there to spread the world a bit ;-). The important site (at least as far as I remember them from times when I was using Windows) like Tucows or cnet downloads, have some lengthy review process, what is okay for me. But more funny are random small sites, where you immediately get 5/5 stars or sticker 100% Vista Compatible. Who cares, let's see if it will really attract some users.

11 February 2009

Enrico Zini: DDE, Debian Data Export

DDE, Debian Data Export After testing the idea and the prototype with my presentation at Fosdem, I'm proud to announce DDE, Debian Data Export. The problem In Debian, we publish all sort of information, using all sorts of data formats (often ad hoc and obscure), in obscure places. Try to think of an application, for example, that wants to access all this information together: A nightmare, uh? The solution DDE is a way to make it simple to publish and download data. The aim is to be able to access all sorts of Debian information without worrying about data formats, protocols and access control, and to make it easy to discover what data is available. DDE exports data as a big virtual tree. You can pick a node in the tree by its URL and download all the data that it contains, in a format of your choice: currently it supports JSON/JSONP, YAML, CSV and Python pickled objects. This means that you can now get Debian data using a trivial HTTP client tool or library, and read it using commonly available decoders: both should be available in almost any programming language nowadays. Since JSON and JSONP are supported, this even includes JavaScript in Ajaxy web pages. DDE is not a competitor to UDD: UDD is about creating a central location where all the data can be accessed, while DDE is about giving people a simple way to access data or subsets of data. In a way, DDE and UDD complete each other: the more data enters UDD, the more data is available for DDE. In turn, DDE gives a simple interface to the most popular and useful UDD queries. The dream Here are some hints at what can be done with this: A call for action You can add data to the DDE tree by just putting a data file in yaml, json or pickle format under ~/.dde (I've written a specific guide to this on the Debian wiki). If you wish to create new and fancy Debian statistics or compute other sorts of data, or if you already maintain tools that generate Debian data, including but not limited to, for example: Then please have a look at http://wiki.debian.org/DDE/StaticData and try to publish your data in ~/.dde on merkel.debian.org. For more complicated cases (like accessing a remote database), it is possible to extend DDE via python plugins. You can get in touch with me if you need to go that way.

6 February 2009

John Goerzen: Microsoft Windows: A Culture of Mediocrity

This is a giant rant with a small point at the end. So be warned. Earlier this week, I booted up Windows for the first time in a few months. About 2 minutes after it came up, just after I had started up an app, it informed me that it desperately needed to restart because it had applied some updates, and unless I clicked cancel, it would. So I restarted. The Saga Begins Then I opened up the program for my negative scanner. This device has an infrared dust-detection system that is not well supported in SANE. I can insert a 6-frame negative, it will load it in, identify where the 6 frames are, and scan it at 4000 DPI. So anyhow, I opened it up and started scanning. Surprisingly, it was REALLY SLOW. Normally it takes about 3 minutes per frame, and I could tell it wasn t going to do that. It sounded as if the computer couldn t keep up with the scanner. I tried to get Windows to tell me if it was talking to the scanner at USB 2.0 speeds, but this information was nowhere to be found. So I went down under my desk and moved some USB devices to different ports. Got back up from under the desk, and: BLUE SCREEN OF DEATH was there. Reboot. Scanner now works at normal speed. So I started it scanning, then went off to watch the Purdue game with Terah. Came back a little while later, expecting it to be ready for the next negative, only to manage to catch it in the nick of time before it helpfully rebooted my machine again due to yes more updates. So I saved, rebooted, and finally scanning worked after that. Also I disabled automatic installation of updates. A Turn For The Worse A few days later, I was getting expecting a new camcorder, and I was planning to use Windows for video editing. Originally, my hard disk had Windows, a Windows emergency recovery partition, and Linux on it. When I upgraded my motherboard and added a SATA HDD, I moved almost all of Linux to it. So there was now a lot of free space on that original drive, and the recovery partition is useless with the new motherboard anyhow. So I figure: delete that recovery partition, and expand the NTFS partition to take up the whole of the disk. Easy enough, right? So I do this, and much to my annoyance, Windows now refused to boot. It would just hang. No boot menu, no splash screen. Just hang. Linux saw and could access the NTFS partition just fine. So I went hunting for my XP install CD. Finally found it. Boot off the thing. It spends 5 minutes loading drivers for all sorts of things I don t have off the CD, then promptly crashes, saying inaccessible boot device. A hunch or two later and I m twiddling bits in the BIOS to try to get it to see my SATA DVD burner properly. No luck. I finally download the drivers for my chipset from Gigabyte, have to use Wine to extract them, then scrounge up a working floppy to put them on. Reboot. Blue screen again but a different one. Twiddle some more bits in the BIOS. Reboot. Success! Recovery console is mine! I run chkdsk, and fixboot, which everybody in the forums says will fix this. Neither made any difference at all, but the recovery console could see the NTFS partition just fine. Grumble. More googling, and I try testdisk for Linux. It twiddled some bits on the NTFS boot sector and my partition table. Reboot. And UGH. Now Linux won t even boot and Grub won t start. Download Debian live CD. Boot from it. Inspect disk with fdisk. Turns out testdisk just renumbered my partitions. Restore the previous numbering: Windows on partition 2, Linux /boot on partition 5. Save, reboot. Grub is back. Linux boots. Try Windows. And . Still hangs, but this time only after saying that HAL.DLL is missing or corrupt. Reboot into Linux. HAL.DLL is right there where it should be, and at the size it should be. Ponder this for a bit. I then tried looking at boot.ini. On a lark, I wondered if deleting the recovery partition meant that boot.ini no longer considers Windows to be partition 2, even though that s what the partition table says. Change it to partition 1, save. Reboot. SUCCESS IS MINE! WINDOWS BOOTS! Only 4 hours after expanding its partition. I told some friends about this trouble booting. What on earth did you do, John? I expanded the NTFS partition. And the response: Ahh. That ll do it. Expanding a partition is something we do routinely on Linux. Even on running production servers. Even WHILE THEY RE RUNNING. And I never have a problem like this. And even if I did, I wouldn t have to use some tool written FOR A DIFFERENT OS to fix it. Argh. The Problems Multiply A few days later, I got a new Canon Vixia HG20 camcorder. It shoots in AVCHD format 1920 1280@60i, h.264, which is a standard format for hard disk or SD card HD camcorders. I needed some basic video editing software that would let me do simple edits and burn a BDMV or AVCHD disc onto DVD+R formats that Blu-ray players can play, yet are cheap to make. After poking around, I decided to download the free trial of Ulead/Corel VideoStudio Pro X2. The free trial supposedly was the full version of the program, though it quite obviously wasn t after installing it. So I bought the full version and was greeted by about an 800MB download instead of the 120MB full version free trial download. Now here s the thing about VideoStudio Pro X2. IT S CRAP. It has crashed on me at least two dozen times, usually when I click the Play button. Its interface is really clunky. There s no way to mark a start and an end point, and say just delete everything between there, regardless of what clips they re in. The AVCHD disc creator wants to re-encode the entire project, even though it s ALREADY IN AVCHD. Though you can work around that by exporting the entire project to an AVCHD *FILE* which is smart enough not to re-encode it then making a disc from that. The project properties likes to say I m editing 720 480 even when I m editing 1920 1080, and doesn t even have a box for 1920 1080. Though after some Googling, it turns out that the project properties settings are irrelevant anyway. Yay for good design? So after all this crashing, I went out and did some more Googling. I found this lovely quote:
In short, every application I and our Labs tester tried iMovie, Pinnacle Studio, Ulead Video Studio, Sony Vegas and Avid Liquid at best could open but barely play some clips, and more often simply hung or crashed.
So what we have here is a whole culture of mediocrity. Everybody advertises that they work with AVCHD, yet nobody actually WORKS with AVCHD. And this is the format that the industry is rapidly moving to for HD HDV s days are quite numbered.

Lior Kaplan: When Microsoft Office Compatibility Pack fails - use Openoffice.org


When my girlfriend told me her reason for installing openffice.org 3, I was happy about three issues:
  1. She started using free software willingly and knowingly (as opposed to back end software she isn t aware of like Apache for websites).
  2. She did that because the commercial software didn t work for here.
  3. The free software did a job she needed to.
And after that description you probably ask yourself what was the task? It was quite simple - open a Microsoft 2007 Word document in Hebrew with Microsoft Office 2000. At first, she tried to use the Microsoft Office Compatibility Pack for Word, Excel, and PowerPoint 2007 File Formats . While that Compatibility pack enabled her to open the document, the text wasn t readable (probably becuase it was in Hebrew). She decided to download Openoffice.org version 3, which can open this file format, and after a quick installation it opened the document just fine. So, thank you very much Openoffice.org developers (: Posted in Free software applications, Openoffice.org, Proprietary software, Proud to use free software Tagged: openoffice, Proud to use free software

1 February 2009

Daniel Burrows: A better map of the apt state files

Last week, I posted some diagrams showing where apt and dpkg store their state files. I got a few suggestions about how to simplify them and make them more readable, and here's a tweaked version that includes those changes as well as some of my own. diagram of apt files This image is also available in svg and pdf formats. As before, the SVG probably won't work outside of Inkscape on Linux, and the PDF requires Acrobat Reader to display properly. If anyone knows how to convert Inkscape SVGs to PDFs that work everywhere, I'd be happy to give it a shot. As before, I also made a slightly less flashy version that should be easier on printers, and perhaps easier on the eyes too: simpler diagram of apt files This image is also available in svg and pdf formats.

26 January 2009

Marco d'Itri: A Linux-based alarm clock

That is, my laptop. Since at night I keep it in the same room where I sleep, I figured that I could as well use it as an highly customizable alarm clock. My alarm script uses rtcwake(8) from util-linux-ng to set the RTC alarm clock, suspends the computer and then plays some music at a set volume when it wakes up (if it never wakes up, check your BIOS settings). Since it uses the date(2) command it can parse the alarm time in many formats.
#!/bin/sh -e
# for a random tune, list multiple space-separated files
MUSIC='/home/mp3/The_Velvet_Underground/The_Velvet_Underground_&_Nico/07_Heroin.mp3'
# some days I like different music
DOW="$(date +%u)"
if [ $DOW -eq 6 -o $DOW -eq 7 ]; then
  MUSIC='/home/mp3/The_Velvet_Underground/The_Velvet_Underground_&_Nico/01_Sunday_Morning.mp3'
fi
# choose your favourite music player
player()   mpg123 --random --quiet --control --title "$@"   true;  
#player()   mplayer -loop 0 "$*";  
# play the music at this volume
VOLUME='50%'
# ALSA mixer control used to set and restore the master volume
VOLUMECTL='iface=MIXER,name="Master Playback Volume"'
##############################################################################
# this is more elegant, but it needs rtcwake from util-linux-ng >= 2.14.2
rtcwake_set_alarm()  
  local when="$1"
  local rtc="$2"
  if [ "$rtc" ]; then rtc="--device $rtc"; fi
  local epochtime=$(date --date "$when" +%s)
  [ "$epochtime" ]   return 1
  sudo rtcwake $rtc --mode no --time $epochtime
 
# you can use this function instead if your system lacks a working rtcwake
set_alarm()  
  local when="$1"
  local rtc="$2"
  [ "$rtc" ]   rtc='rtc0'
  local epochtime=$(date --date "$when" +%s)
  [ "$epochtime" ]   return 1
  local alarmfile="/sys/class/rtc/$rtc/wakealarm"
  sudo sh -c "echo 0 > $alarmfile && echo $epochtime > $alarmfile"
 
##############################################################################
if [ "$1" ]; then
  WHEN="$1"
else
  echo "Usage: $0 WHEN"
  exit 1
fi
set_alarm "$WHEN"
# save the volume
oldvolume="$(amixer cget "$VOLUMECTL"   sed -nre '/ : /s/.*=//p')"
amixer -q cset "$VOLUMECTL" $VOLUME
# actually here I run a script which also deals with network interfaces,
# IM and IRC clients and so on
sudo pm-suspend
player $MUSIC
# restore the volume
amixer -q cset "$VOLUMECTL" "$oldvolume"
exit 0

Daniel Burrows: A map of the apt and dpkg state files

Continuing my recent interest in making diagrams of things, this weekend's project was a visual representation of what the global state files of apt and dpkg are, what's stored in them, and how they're manipulated. As before, this includes only the core part of the system (ok, I squeezed aptitude in there too), for the simple reason that I'm not smart enough to include more stuff in the diagram without making it utterly illegible. As it is, it's already pushing the boundaries of how much you can fit on a single page of paper: diagram of apt files This image is also available in svg and pdf formats. Be warned, though, that the SVG might display oddly in anything but Inkscape, and the PDF only displays correctly in Acrobat Reader. If you want to print off a copy without wasting toner, if you don't have a program capable of printing the above, or if gradients offend you, you can also download a simpler version of the diagram: simpler diagram of apt files Also available as an svg file or a pdf file. Unlike the last diagram I produced, this one was made in Inkscape. It took pretty much the whole weekend, most of which time I spent learning features of Inkscape that I didn't end up using. Oh well. I've come to the conclusion that Inkscape is an amazing graphics program and an utterly terrible diagram editor. Although to be fair, it seems to be one of the best, if not the best, diagram editors in Debian; also, if you slog through it and you have more graphical talent than me, the diagrams will look very good. [EDIT]: fixed an oversight in the first version of the diagram (apt-get also writes the extended_states file).

15 January 2009

Roland Mas: Call for translations for GForge

Stuff happens quietly on the GForge front, but after some time we decided we're getting bored with not releasing. Since we seem to have run out of major problems in the codebase, the long-awaited GForge 4.7 release is probably round the corner. And so, since GForge migrated from its own in-house translation system to the more conventional gettext API, I'd like to take the opportunity to issue a call for translations, knowing that potential translators won't be too disturbed by unusual tools and formats. You can grab the current state of the translations from the GForge repository browser. Or, for more long-term involvement, checkout the code through Subversion or through Bzr (my gateway branch is available from bzr.debian.org. Current statistics are as follows: Results as patches to our patch tracker or the gforge-devel ML please. (Note to Debian-related readers: this translation work will be directly useful on Alioth when we upgrade it.)

11 January 2009

Russell Coker: Video Camera for Shared Movies

I have never felt inclined to create content for Youtube due to the low resolution of the display and the fact that only one format is supported (Flash which is totally non-free). The existence of blip.tv has inspired my interest in creating videos for distribution on the net. blip.tv has higher resolution than Youtube and supports multiple formats. Currently the multiple format support is limited to allowing users to upload whatever they want and then Flash (FLV) will be provided for download in addition to the original file(s). So for example I could upload MPEG4 and Quicktime movie files for the same content which would result in three download options (MPG, MOV, and FLV). It would be nice if they could support more formats as the default (maybe support transcoding to OGG), but it s certainly a lot better than Youtube. So the question then is how to create content. One option that I plan to use is Istanbul - the GNOME desktop session recorder [1]. It will record everything that happens on the desktop (or a section of the desktop) to an OGG file while also optionally recording audio input. This allows the creation of tutorials for performing various tasks on the computer. Another option is to do animation, either completely computer generated or by combining a set of JPEG files into an animation file. This doesn t interest me to the degree necessary to make me invest the necessary time. But the most common way of producing video content is via a camera. So the question becomes what camera to get. My current camera is a Sony Cyber-shot DSC-T5 [2]. It is a 5.1 mega-pixel camera with 3* optical zoom and supports 640*480 resolution movies at up to 30 fps. The quality of photos and video that it produces seems to be quite good, I don t have any particular problem with the camera that I want to address by purchasing a new one, so a major aim of buying a new camera was the fact that it s a few years old and something better must be available at a low price! I asked for advice about this on my local LUG mailing list. One piece of advice that was offered by several people was to use a Digital Video camera with Firewire output to record quality video. They spoke about common digital cameras as point and shoot with the acronym P&S - which seems to be used as a term of abuse by people who are really into cameras. If using a DV camera with Firewire support (which is apparently a really important feature) then apparently Kino [4] is the program to use to capture the raw video data. While the advice in regard to a digital video camera sounds good I m not going to take it. Such DV cameras start at about $300 and appear to be physically larger. While a larger camera (with a larger lens) will give better quality pictures and higher frame rates with lower levels of ambient light I am planning to do my serious video recording in a controlled environment with reasonable lighting. Really I m not THAT serious about video recording, so I don t plan to spend $300 or more - I ll accept the lower quality as a trade-off for lower price and greater convenience. I have seen an advert for a camera described as a DC-777 at a good price from DirectBuy.com.au [3]. The camera in question is one that has no reviews anywhere on the net and seems to be a re-badged version of someone else s camera. It initially sounded quite good with 11mega-pixel resolution, but the fine print shows that it has a 7MP CCD and uses interpolation to get a higher resolution. Also the movie capability is 640*480 at 30fps (the same as my Sony). So the benefit of using the DC-777 would be the rotating display which can face the same direction as the lens thus allowing someone who is making a video of themself to see what they are creating. This doesn t seem to be $200 worth of benefit, but the camera might be a reasonable deal for someone who doesn t already have a decent P&S digital camera. Another interesting piece of advice I received from my local LUG was that the amount of time taken to get a good image (which determines the shutter speed on a good camera or the maximum frame rate for video) is determined in part by the size of the elements in the CCD. So with all other things being equal a camera that supports higher resolution will require longer exposure. For my use the benefit of higher resolution photos is often for the purpose of cropping pictures of objects that were too far away to allow completely zooming in. 3* optical zoom (as implemented in my current camera) is a limit when photographing objects that are far away in good light conditions (in poor light it s often a factor of the lens size). In the past when looking at digital cameras I would make the resolution of the picture the prime criteria - with the idea that bigger is better. But now it seems that the smart thing to do is to make optical zoom the prime criteria for general purpose camera use. Also having a larger lens is a significant benefit, but as the overall volume of the camera is going to be roughly proportional to the radius of the lens cubed it can t get that big without some serious compromises on portability. Obviously an SLR [5] offers significant quality benefits. But if you are unwilling to spend so much money a good result can be obtained by what are sometimes called Big Zoom Digital cameras. These are cameras with a body shape that resembles a SLR, they vary in size between the P&S cameras and SLRs, and have fixed lenses that are significantly larger than those of P&S cameras. I gave such a camera to a relative for Christmas and I was very impressed by the quality of pictures and movies that it produced. I chose a Kodak camera with 12* optical zoom which was quite impressive (unfortunately the 15* model had sold out). One of the benefits of a Big Zoom Digital camera over a DSLR is that as there is no option to replace the lens there is also no possibility to get dust inside the camera (which is apparently a problem with SLR cameras). For my own use I plan to stick with my Sony Cybershot. I can t get anything significantly better for an amount of money that I am prepared to spend, and I also don t really want a larger camera. So I think I ll buy a tripod (or maybe two tripods of different sizes), that should deliver a real benefit for my photography without costing much. Update: One thing I forgot to mention is the film speed rating (AKA the ISO number) [6]. A higher ISO number means that the camera can take faster pictures in less light. The Wikipedia page reports that camera manufacturers are permitted to interpret the ISO scheme in several different ways, so they can essentially just make stuff up. Probably the best that can be said for the ISO number is that any camera which advertises it is aimed at more serious users and is therefore likely to be of higher quality. I m sure that if I was to spend $700 or more then I would get a camera with an advertised ISO number that actually means something, but I don t have any plans to ever do that. Matt made a good comment that the quality of the glass matters. For an SLR you can consider the lens quality independently of the quality of the rest of the camera. But for cheap cameras it s just a matter of the entire package.

8 January 2009

Miriam Ruiz: Debian and Ubuntu packages for Calibre, an e-book converter and library management

Some weeks ago I bought myself an e-book reader, Sony Reader PRS 505. It is a really cool gadget, and as I usually read a lot of stuff in my computer, it is somehow an investment in my eyes. I decided on this one because the support for Linux is quite well, through the unofficial Free Software project Calibre. Calibre is primarily an e-book cataloging program: it manages your e-book collection for you, and it is designed around the concept of the logical book (i.e. a single entry in the database that may correspond to ebooks in several formats). It also upports conversion from a dozen different ebook formats to LRF and EPUB. A graphical interface to the conversion software can be accessed easily by just clicking the Convert E-books button. A lot of input formats are supported: MOBI, LIT, PRC, EPUB, ODT, HTML, CBR, CBZ, RTF, TXT, PDF and LRS. After some weeks of work, Martin Pitt and I have finished the packages for Debian and Ubuntu, which are right now waiting in the Debian NEW Queue. You can temporarily get them from here, compiled for Debian SID AMD64, but of course you can build them for your platform, or wait until they enter Debian.

25 December 2008

Matthew Garrett

Christmas is a time to ignore such trifling details as nearly accidently burning the house down, and instead to focus on what's important in life - working out which hoops to jump through to make new hardware useful without installing less convenient operating systems. This year was more straightforward than some, and merely involved attempting to work out how to give people money in return for books that could then be read on my Sony reader thingy. Shockingly enough, the Sony Ebook Store requires a windows app, so not a good start. There's no shortage of sites that sell ebooks in a variety of formats without any platform dependent awkwardness, though - of course, most of them are inconveniently DRMed. And the only DRMed content the Sonys will read is either Sony's own or some encrypted PDFs[1].

Not to worry - the DRMed version of the Mobipocket format is based on a symmetric encryption algorithm from 1991, so finding a way around that isn't much of a problem[2]. The only real issue I had was generating the PID needed to buy one of the damn things in the first place. This 10 character string is generated when you install the Mobipocket reader software, but doing so would again involve Windows.

So here's a trivial C program that generates valid PIDs with working checksums. The PID on its own isn't a secret (given that you can get as many as you want by reinstalling the Windows software), so I can't see any awkward copyright law things going on. And, really, it's just a random string plus a checksum.

CRC code is from SSH, the checksum validation is a reimplementation of code from EBook::Tools::Mobipocket by Zed Pobre. My total creative input was generating a 7 character random string and sticking a dollar sign at the end. Go me.

[1] According to the blurb about the firmware update, though mine still seems to claim that it's not authorised to read DRMed content in the about screen. Possibly it needs keys generating, or something

[2] No, I'm not going to tell you how. The internet exists so you can work these things out without asking me

18 December 2008

Michal Čihař: python-gammu 0.28

New version of python-gammu has been just released. It fixes possible crashes, brings compatibility with Gammu 1.22.0 and adds support for converting to and from vCard/vCalendar/iCalendar formats. Full list of changes: Download from usual place: http://cihar.com/gammu/python/

16 December 2008

David Welton: Tcl -= Ousterhout

It's not really "news" that Dr. John Ousterhout is no longer the Tcl leader, that happened years ago, but it's finally been formalized: http://groups.google.com/group/comp.lang.tcl/browse_thread/thread/99e2693293b3c945/f4932ae01d74f8e1#f4932ae01d74f8e1 And people at large have taken notice, something that doesn't happen with Tcl very often. What I think is actually interesting about it is to consider the governance models for various programming languages. It seems that Tcl is something of an exception to the "benevolent dictator" model prevalent in the world of scripting languages. Python still uses this, with Guido van Rossum being the "BDFL", or Benevolent Dictator For Life). Perl used to, with Larry Wall, although I'm not up to date on what they do now. Ruby has Yukihiro "Matz" Matsumoto. The really big, established, popular languages like C, C++ and Java have committees that run them, although even there, the original development was often by small teams or individuals. What about other languages, like Lua, Erlang, Scala, Clojure, Haskell, OCaml, and so on and so forth? Which governance model is in use? How does it help or hinder the language's growth and adoption?

David Welton: Tcl -= Ousterhout

It's not really "news" that Dr. John Ousterhout is no longer the Tcl leader, that happened years ago, but it's finally been formalized: http://groups.google.com/group/comp.lang.tcl/browse_thread/thread/99e2693293b3c945/f4932ae01d74f8e1#f4932ae01d74f8e1 And people at large have taken notice, something that doesn't happen with Tcl very often. What I think is actually interesting about it is to consider the governance models for various programming languages. It seems that Tcl is something of an exception to the "benevolent dictator" model prevalent in the world of scripting languages. Python still uses this, with Guido van Rossum being the "BDFL", or Benevolent Dictator For Life). Perl used to, with Larry Wall, although I'm not up to date on what they do now. Ruby has Yukihiro "Matz" Matsumoto. The really big, established, popular languages like C, C++ and Java have committees that run them, although even there, the original development was often by small teams or individuals. What about other languages, like Lua, Erlang, Scala, Clojure, Haskell, OCaml, and so on and so forth? Which governance model is in use? How does it help or hinder the language's growth and adoption?

12 December 2008

Biella Coleman: Craft Hackers

Craft Hackers is a panel being held tonight at the New Museum in NYC. Looks craftastic.
Craft Hackers is a panel discussion among artists who use crafting techniques to explore high-tech culture and the relationship between needlework and computer programming. Panelists include Cat Mazza, who translates moving images into stills knit in yarn; Christy Matson, who uses Jacquard Looms (some of the earliest computers) to knit landscape images from computer games; Ben Fino-Radin, whose witty needlepoint sculptures translate the World Wide Web into yarn and plastic, one pixel at a time; and Cody Trepte, whose embroidery of retired computer punch cards rekindles an old-fashioned love affair with the hand of the artist

Next.

Previous.