Search Results: "ag"

17 September 2007

Colin Watson: Encodings in man-db

I've spent some quality upstream time lately with man-db. Specifically, I've been upgrading its locale support. I recently published a pre-release, man-db 2.5.0-pre2, mainly for translators, but other people may be interested in having a look at it as well. I hope to release 2.5.0 quite soon so that all of this can land in Debian. Firstly, man-db now supports creating and using databases for per-locale hierarchies of manual pages, not just English. This means that apropos and whatis can now display information about localised manual pages. Secondly, I've been working on the transition to UTF-8 manual pages. Now, modulo some hacks, groff can't yet deal with Unicode input; some possible input characters are reserved for its internal use which makes full 32-bit input difficult to do properly until that's fixed. However, with a few exceptions, manual pages generally just need the subset of Unicode that corresponds to their language's usual legacy character set, so for now it's good enough to just recode on the fly from UTF-8 to some appropriate 8-bit character set and use groff's support for that. man-db has actually supported doing this kind of thing for a while, but it's been difficult to use since it only applies to /usr/share/man/ll_CC.UTF-8/ directories, while manual pages usually aren't country-specific. So, man-db 2.5.0 supports using /usr/share/man/ll.UTF-8/ instead, which is a bit more appropriate. Also, following a discussion with Adam Borowski, man-db can now try decoding manual pages as UTF-8 and fall back to 8-bit encodings even in directories without an explicit encoding tag; if this fails for some reason, you can put a '\" -*- coding: UTF-8 -*- line at the top of the page. I'm still debating whether Debian policy should recommend installing UTF-8 manual pages in /usr/share/man/ll.UTF-8/ or just in /usr/share/man/ll/. Initially I was very strongly in favour of an encoding declaration, but now that man-db can do a pretty good job of guesswork I'm coming round to Adam Borowski's position that people should be able to forget about character sets with UTF-8. Opinions here would be welcome. One thing I haven't moved on is that any design that assumes that the encoding of manual pages on the filesystem has anything to do with the user's locale is demonstrably incorrect and broken; I'm not going to use LC_CTYPE for anything except output. However, maybe "UTF-8 or the usual legacy encoding provided that the latter is not typically confused for the former" is a good enough specification, and that still has the desirable property of not requiring a flag day. I'll try to come down from the fence before unleashing this code on the world.

Miriam Ruiz: Storing data in $HOME directory

When packaging games, one of the operations I often have to do to the source code is modifying it so that it uses absolute file and directory names instead of relative ones. When coders develop for Windows, or when they develop their games to be able to play them from their home directory, they just would go that way and won’t care about it, but when the idea is installing the files in the system, the Filesystem Hierarchy Standard (FHS) must be respected, and thus things will need to be place in their proper directories. For read-only files, this is not a big deal, all that has to be done is replacing the relative file name in the file opening commands with the absolute one, doing fopen(”/usr/share/games/package/dir/file”) instead of fopen(”dir/file”). I usually prefer to do it like fopen(DATADIR “/dir/file”) and set DATADIR from the Makefile, with a -DDATADIR=\”/usr/share/games/package\” switch added to the CFLAGS, and maybe also setting it inside the code if it’s not previously defined (#ifndef and so). There are some files and directories in which doing this is not possible, because they want read-write permissions. This files include saving the configuration, hiscores, new levels created with the game editor, game saves and so. They might be moved to some directory under “/var/lib/”, and create a new group en the system so that it’s writable, and so on. I don’t like that approach a single bit. I prefer to move all tthat data to the user’s directory. This is not as straightforward as it was for read-only data, but it’s not really that difficult anyway. It would be more or less like:
#ifndef _WIN32
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <limits.h>
#include <pwd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#endif
#ifndef _WIN32
char file[PATH_MAX];
char *home;
struct passwd *passwd;
if (!getuid()   !(home = getenv("HOME"))) 
passwd = getpwuid (getuid());
home=passwd->pw_dir;
if (!home) 
fprintf(stderr, "$HOME is not defined.n");
exit(-1)
 
 
if (strlen(home) > PATH_MAX - sizeof("/.package/settings.ini")) 
fprintf(stderr, "$HOME is excessively long.n");
exit(-1)
 
snprintf(file, sizeof(file), "%s/.package", home);
mkdir(file, S_IRWXU   S_IRWXG   S_IROTH   S_IXOTH) == 0;
strncat(file, "/settings.ini", sizeof(file)-1);
#else
char file[21];
snprintf(file, sizeof(file), "./Data/settings.ini");
#endif
FILE *f = fopen(file, "w");
Sometimes you also need that the files are already created, you can check if they already exist with stat(), and then acting accordingly, either creating them from your C code, or maybe triggering a system() shell call whith whatever is needed.
struct stat stat_buf;
stat(file, &stat_buf);
if (stat(file, &stat_buf) == -1) 
int settings_fd = creat(file, O_WRONLY);
close(settings_fd);
 
NOTE: I’ve updated the code to add some suggestions. Thanks to Gon ri Le Bouder and Nico Golde.

Santiago Ruano Rincon: Debian in Villa de Leyva, Debian everywhere

Debian fossil Fossils from the Mesozoic and Cretaceous Eras abound in Villa de Leyva, a beautiful colonial town of Colombia. There are so many fossils that even they are used in the walls of a house: Villa_de_Leyva_Pared_1 Villa de Leyva is a town full of swilrs and nice shapes, and a good place for a Debian Conference ;)

16 September 2007

Brice Goglin: Debian X.org notes - MGA driver gets RandR 1.2 too

Now that David pushed X.org 7.3 to unstable, experimental is available again for release candidates. So I just pushed xserver-xorg-video-mga 1.9.99. This is the first release candidate of the MGA driver with RandR 1.2 support. For the record, it means enabling/disabling/resizing/moving outputs dynamically. If you're planning to test it, you might want to read the upstream announce first. Tilman Sauerbeck did a very good job, but he doesn't have all kinds of board to test this. At least, the dual DVI G550 is known to not work. It might be good to report problems, either to us or directly to Tilman (IRC might be faster than reporting a bug...). As usual, you might want to refer to this and this to update your xorg.conf for RandR 1.2, and also this post if the server doesn't choose the right mode by default.
(Permanent link) 

Romain Francoise: Shared links for 2007-09-16

Patrick Winnertz: Mass Filling Bugs No.2

As I wrote last week to debian-devel@l.d.o I started the again a mass bug filling against all packages which fails to build twice and three times in a row. Furthermore we checked this time if the package content has changed between the builds. Today I completed these bug reports finally :). I wrote today about ~400 bug reports against several packages. Some packages which are very well known are: All failures concering doublebuild or three time build issues are filled with Severity: Important and all bugs against packages which have a different content after the builds are filled with Severity: Serious. Please fix all of them as soon as possible ;) (To fix this issues is a release goal for lenny ;-)) To view all bug reports please have a look here and here.

Clint Adams: Herding databases

I can never remember this BTS URL: oldbdb

Enrico Zini: new-in-testing

Finding what was new in testing today I played too much with sources.list and aptitude lost track of what packages are new and what was already in the system. The place to recover this kind of information is the debian-testing-changes mailing list archive: new packages are those that say "(not in testing)" in the "previous" column. Thank you dato for pointing me at it.

Uwe Hermann: Updated Miro (previously Democracy Player) packages in Debian unstable

Miro screenshot FYI, my new Miro packages (formerly known as Democracy Player) have now reached unstable. After lots of ugly, ugly trouble with even getting a successful build (boost/python/dbus related, you don't want to know) the packages are back in shape now, with tons of fixed (or no longer reproducible) bugs and lots of upstream impovements and new features. If you reported a bug against Democracy Player, please try the latest Miro package and check if it still occurs, thanks! The upgrade should be seamless, your existing config and videos will be migrated from ~/.democracyplayer to ~/.miro automatically upon the first start of Miro. Some of the new/fixed things in this release include:

Mark Brown: Spam backscatter

Over the past couple of weeks I’ve started getting messages like this from the SourceForge:
Your membership in the mailing list whatever has been disabled due to excessive bounces The last bounce received from you was dated 15-Sep-2007.
It’s true - the systems that handle my mail do generate a number of SMTP time rejects for open posting SourceForge lists. My mail server does SMTP time rejection of some spam and these lists don’t appear to have much in the way of spam filtering. It’s a bit depressing since the main problem appears to be limited filtering on the SourceForge side which renders the lists in question rather difficult to read but it’s unsurprising given the nature of the service.

Christian Perrier: RWC: Rugby spirit

An interesting story that give some idea of what makes rugby somewhat different from many other (even professional) sports: yesterday, after their defeat agains New Zealand, "Os Lobos" of Portugal got their revenge by beating the All Blacks....at soccer. Indeed, after the match, while warming down at Gerland's stadium, the two teams improvised a soccer match which the portuguese won by 3-1. Then both teams went to the All Blacks changing room and shared some beers in the traditional "third half" of a rugby match. Would anyone imagine this during the soccer world cup?

Russell Coker: iRiver H320 and Liquid

Recently my iRiver [1] H320 had some milk based drink spilt on it. I’m not sure what the drink was (I discovered it when my iRiver stopped working and the drink was dry) but it smelled like coffee or hot chocolate when I washed it off (I considered tasting it but decided that knowing exactly which drink had damaged my iRiver probably wouldn’t help me fix it). The initial problem was that no buttons other than the play button (which is also used to turn it on) worked. When I first discovered this I had no way of hitting the reset button so my iRiver played until the battery ran flat. I tried to disassemble it by removing the five tiny phillips-head screws from the sides, but that didn’t make any part of it loose. I tried using a small amount of force on the front piece of plastic and broke two of the clips that hold it in place while getting another two loose without breaking (but there were still at least four clips to go). Then I realised that the problem was that the keys were physically sticking and that maybe if I washed the keypad out I might get it to work. So I spent some time in a cycle of dripping water into my iRiver, pressing the buttons to get some of the nasty stuff dissolved, and then using a towel to soak up some of the water with milk or whatever. After repeating this for a while the buttons all seemed to work well apart from the play button which kept registering presses when I wasn’t touching it. This meant that it always automatically turned on and then played a song in a stuttering manner as the play button is also the pause button and it paused and played as rapidly as it could. Finally I left it in the sun to dry for a few hours, which seemed to do some good. The play button mostly works now. Also it seems quite easy to get water between the front layer of protective plastic and the layer behind (which actually houses the keypad). So I have several large drops of water spread out between the layers which move around as I squeeze it. I think that if I get that dried out before algae can grow then everything will be fine.

Christian Perrier: RWC: Stunning Georgia

We watched either parts or the entire three matches yesterday. So, long report..:-) The day began with the most unbalanced game of this world cup, featuring New Zealand, world's top rugby team, against Portugal, ranked 22nd. Rugby in Portugal is played by about 4200 people only, in less than 50 clubs. All players are amateur but one (Gon alvo Uva, playing in Montpellier, France), being dentists, students, etc...and coming to RWC during their holidays. The result (108-13 and 16 tries) was expected but the feeling when Portugal scored a try was great, with the 40,000 attendees in Lyon supporting Portugal. Personnally, I had great time chatting on IRC with Miguel Figueiredo, one of the leaders of the portuguese l10n team in Debian, during the match. We watched Wales-Australia (20-32) during the evening. That game was obviously the key match of this pool, with the winner very probably finishing 1st in the pool. Wales playing in Millenium Stadium in Cardiff is always astonishing and show how much the Welsh people love this sport. During 1st half, Australia strongly dominated and logically lead 25-3 with 3 tries. Berrick Barnes, their new fly half (Stephen Larkham injured), is a very promising player and, imho, the match's MVP (even after being severely bashed by Gareth Thomas on Australia's first try). After half time, the Welsh team courageously fought and came back to 13-25, menacing Australia which was more hesitating. Unfortunately, Australia scored a try after a big mistake by Stephen Jones. So, even with good play by Wales and another try by the incredible wing player Shane Williams, Australia logically won this game. Again, a southern hemisphere team dominated a northern hemisphere one. This is probably what will happen during this entire WC and I bet that New Zealand, Australia and South Africa will end up in semi-finals, quite probably along with Argentina, unless France does a miracle and ends up 1st in their pool. I think that Australia is slightly weaker than NZ and RSA, though. So, my current bet is NZ-RSA for the final (this can happen, given their respective track to the final and given that they certainly will end up first of their respective pools). Finally, we watched the second half of Ireland-Georgia (14-10). *That* was quite a surprise. Ireland was very close to lose this game with Georgian forwards crushing them repeatedly at the end of the match and nearly scoring a try that would have made them win. Everybody was waiting for Georgia to swell after their strong 1st half (3-7) but they managed to fight until the last second, supported by Bordeaux 40,000 attendees (minus a few thousands of Irish supporters, of course). So, while the initial question was whether Ireland would score a bonus point, the final question became about them to *win* the match. This gives even more credit to Argentina's victory last Tuesday. Full standing ovation for Georgia at the end of the match. Today is again a busy day. I'll probably skip Fidji-Canada (which happens at the same time than France-Namibia) but certainly won't miss Samoa-Tonga and, of course, France-Namibia. Samoa have to win to keep their chances of qualifying (they can beat England, really) and, well, France has of course to win *and* score a bonus point. In this world cup where to so-called "small" teams are not that small, everything can happen and France is anything but safe, ehre.

Theodore Ts'o: Whack the Gopher

I recently came across three very well written and very thoughtful blog postings by Rick Cook (author of the Wiz Zumwalt Wizardry series):
  1. Copyrights, Whack-the-Gopher, and SFWA — Why I Quit
  2. The Economics of Theft: Son of Whack the Gopher
  3. WHACK THE GOPHER III: The Return of the Mutant Grandson
The incident which kicked off these postings was an informal DMCA takedown notice posted by the Vice President of the Science Fiction Writers of America, Dr. Andrew Burt which was created by a process only slightly more sophisticated than using word search for “Asimov” and “Silverberg”. Unfortunately, this takedown notice erroneously included a junior high school teacher’s list of 300+ recommended books (which naturally contained the strings “Issac Asimov” and “Robert Silverberg”, an on-line published science-fiction magazine that referenced the science fiction author Isaac Asimov in a review, and a creative-commons licensed science fiction novel which had been deliberately published on the web for free distribution, and for which the author had explicitly forbidden the SFWA from taking any action on behalf of his books. The entire incident was wonderfully filled with irony — from the fact that an organization of writers who purport to write about what the future might bring given scientific and technological advances could so totally fail to get the Internet or understand that such a campaign might cause them to alienate their readers and fan base, to the the fact that Doctor Andrew Burt, Ph.D. is a professor in computer science at the University of Denver with a research interest in copyright and electronic piracy, could so incompetently foul up a DMCA takedown request and not understand that “grep” might result in false positives that would require human checking (”Andrew? Your alma mater is calling; they would like their degree back…”) One good thing that has come out of this whole mess is that it has been, as junior high school teacher Nick Singer put it, “a teachable moment”, and an opportunity for people to reflect about issues of copyright, the rights of authors, ebooks, and the Internet. This is a hard problem; I very strongly believe that (at the same time) “Art wants to be free; Artists want to be paid” (to use a phrased coined by a friend of mine, Jesse Vincent (blog here), to the point that I’ve been willing to put my money where my mouth is. So far the solutions for achieving this are nowhere near perfect, but they are certainly better than sending out shotgun DMCA takedown requests. In any case, Rick Cook’s thoughts on the subject are a worthy contribution to the subject. He says he’s going to do one more article on his blog proposing an economic solution to this problem; I can’t wait to see what he has to say on the subject.

MJ Ray: Tour of Britain

ToB Taunton BannerJust a quick reminder that the BBC’s only Tour of Britain highlights show is on BBC 2 at 12:30 today (Astra 2D at 28 east, the same satellite as Sky UK+IE, but no subscription required). Official listings say this is highlights of the final stage but hopefully it will cover the other stages too. Hopefully, live coverage will get better next year, either online as cyclingfans editor Pete predicts or on TV.

15 September 2007

Biella Coleman: Save the Arecibo Observatory

There are many amazing things in Puerto Rico and one of them is the technologically (and I would add, aesthetically) stunning Arecibo Observatory, which was featured prominently in the Jodi Foster movie, Contact. Due to massive funding cuts, its future is threatened. This is a site of great scientific and cultural importance for PR, so I really hope they manage to find the funding that will make it survive far into the future. There is a facebook group
(by the name of “Do NOT close the Arecibo Observatory: Earth’s largest radiotelescope”) opposing the closure but I don’t yet know of any other site for halting the cuts. I will post one once I do. And if we lose the observatory, we might sadly lose another fine creature, the mysterious chupacabra who apparently was first called into his goat sucking action thanks to the great observatory of ours, which does send signals to find alien life. So sans Arecibo, we lose a great scientific instrument and may lose the beloved mascot of goat terror, the Chupacabra :(

Romain Francoise: Shared links for 2007-09-15

MJ Ray: US Satellite TV Worse Than Europe

Satellite TV commented:
"Wow, all that seems pretty complex to me. The U.S is so much more simple, we just chose Dish Network or DirecTV or some kind of cable and call it a day. Then again I don't know if thats a bad or a good thing."
That's a bad thing. Look at the situation: In the US, there seems to be very little free-to-air (FTA) satellite TV for most of the country, except PBS and religious channels. The main US FTA FAQ answers "Should I drop cable/Dish/DirecTV and switch to FTA?" with "Probably not." I'd say "Probably yes" to similar questions in Europe, as long as you aren't dependent on one of the few incompatible pay-TV channels. Channels like MTV, Nick, TVEi and DW are all pay-TV in the US, but FTA in Europe. But if you're in the US, look on the bright side: Canada seems even more behind on this. In Europe, you can still call whatever satellite broadcaster (such as Canal Satellite, Premiere or even Sky) and get a system installed if you choose, but you can also install your own. That's what my FAQ is about: giving people in "the land of the free TV" some starting info on how to do that. Some broadcaster-supplied systems only really work well with one broadcaster's "approved" channels (Sky are particularly bad for that), are more expensive to upgrade than standard systems and don't give viewers the equipment to repair it when it breaks, which encourages them to keep paying the broadcaster's agents. Some of those agents do some pretty dishonest tricks when installing dishes, such as putting them far higher up than necessary, to discourage viewers from fixing it themselves and to advertise satellite TV to the neighbours. It's pretty easy to install a standard satellite system... if you can put up a wall bracket and tune in a video, you can probably do it. Alternatively, there are independent installers who will do it for you, who might seem like they charge more than the broadcaster's agents, but remember that a good one won't keep charging you every month or try to sell stuff to you forevermore!

MJ Ray: Reader Comments on Theora Herd Needs a Stairlift

I had an anonymous comment on the last post which claimed:-
"Theora support has low priority in free software projects because it's simply a bad codec. It has been marketed as "patent-free" but it's questionable how true that is. The patents over trivial functionality probably cover it too, and on the other hand the real "inventiveness" and validity of the more actively enforced patents covering better codecs is also questionable. The main reason Theora users are unlikely to be sued is that limiting free alternatives to such low-quality codecs already ensures they're not a competitive threat. If you want better free software encoding try FFmpeg or MEncoder with x264. The patent threats over that are more aggressive, but moving to Theora is not a good way to avoid them."
I'm not inclined to believe this for various reasons. In particular, I've seen good Theora results (higher quality for smaller file size than most), I've not heard of any credible patent threat to Theora and this claim was made anonymously (why?). Is anyone willing to support the above claims with their name? Alex Hudson commented:
"Tangentially related to your Ogg woes, the issue of software patents came up recently on the WhatWG discussions for a new HTML tag called 'video': http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2007-June/011981.html Whether or not Apple's excuse is reasonable (submarine patents made more unlikely by existing licensing pools? Not sure about that argument....), it does seem Ogg faces an uphill struggle when you'd think supporting it is effectively no cost."
(2007-09-17: 3 comments)

Nico Golde: accept the GPL on software install?

Gunnar wrote that he recently had to explicitly accept the GPL via some dialog box when doing an OpenOffice installation on windows and users are also prompted with the license agreement on the first start of the application.

Why should someone want this?
Are you also FREE to refuse this and still use the software? I mean the GPL is about distributing the software, not using it, so wtf?

Next.

Previous.