Search Results: "agi"

21 September 2007

Holger Levsen: Democracy as you knew it is over

A new law is being made in germany, which will make consentual sex between minors a crime, which has to be punished with four years of prison at least, plus ending up in a sexual offenders database for life. I, for one, do not welcome our new taliban overlords.

These two articles explain the situation in full detail (in german).

In other news, it's 102 days until all electronic communication in germany (as in the EU) will be logged for half a year. (Until a terrorist attack happens which was planned for more than half a year...) This includes all emails sent, the location data of all mobile phones, every webpage visited and so on. From everybody. If you are in Berlin tomorrow, go demonstrate. I, for one, do not welcome George Orwells lack of imagination, 1984 looks really pale today. (But it's still a good read.)

My next blog post shall take place in teletubby land again and shall feature smileys as well. Sigh.

Eddy Petrișor: software for managing finances

Dear lazyweb,

I decided to track our (mine and my fince 's) expenses more closely and I am in search of some software for this task.

The requirements for the software:
I have never used such software before, so I am a total noob in this area. Please be gentile if I might have naively described the problem.

Thanks in advance!

19 September 2007

Martin F. Krafft: Archiving web pages

Every now and then I encounter a web page which I'd like to archive for later purposes, e.g. because I can see that it might be related to my research, or simply because I want to keep the information until eternity. I know of three ways to achieve this, but each of them has drawbacks: So, dear lazyweb, how do you do it? I am aware that it'll be trivial to hack up a little script which uses wget to obtain page and dependencies, create a file with stamp data and produce a frameset to put this data above the actual file, but before I spend time implementing the wheel, I'd like to make sure it doesn't yet exist. NP: The Flower Kings: Paradox Hotel Update: Michael Stevens pointed me to furl.net, but I need a solution that I can use offline. Part of the reason that I want to archive web pages is because I don't want to come back in a couple of months and find a webpage removed, a server dead, or a site like furl.net discontinued. J rg Jaspert introduced me to Scrapbook, a Firefox extension I'll have to check out. However, even before looking at it: I really want files or directories on the filesystem, so that I can check them into version control and have them archived and replicated. I don't trust any data to Firefox or any of its extensions, or anything under ~/.mozilla. This is also the reason why I Slogger doesn't cut the mustard for me. Matej Cepl wants me to use konqueror to archive them. I don't want to install hundreds of megabytes for this feature, nor can I imagine that this feature will be much different or less cumbersome than Firefox's ability to save pages. I hate the mouse. Thanks for all your comments, regardless! Update: Just found this post about archiving stuff like digg/delicious.

Romain Francoise: In an expression of the inexpressible

One year ago today:
FOR IMMEDIATE RELEASE

19th September, 2006 -- Dunc-Tank.org is pleased to announce its first fund-raising experiment: collecting donations to help Debian GNU/Linux 4.0, codenamed etch, be released on schedule on the 4th of December, 2006.

Dunc-Tank.org aims to support Debian's efforts to meet its release schedule for etch by financially supporting the volunteers working on managing the release process, allowing them to devote their full attention to that task. [...]

Wouter Verhelst: NBD 2.9.7

Earlier today, I release NBD 2.9.7, containing a few fixes for segfaulting bugs, and some new features: one by Mike Snitzer to implement support for better handling of dead connections (which has been requested by a number of users for eons); one by myself to allow for running shell script snippets at connect/disconnect time, which should be helpful for the LTSP people (they now have an inetd-based wrapper written in shell, which seems like such a waste). Source can be found on sourceforge.net, packages have been uploaded to Debian and are even installed by now; these also fix some outstanding packaging-related bugs. Enjoy!

18 September 2007

Clint Adams: The magic of rule 9

Wow, Ian Jackson is on crack. Tollef, little monkeys think FreeSynd is good enough.

17 September 2007

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.

16 September 2007

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?

15 September 2007

Romain Francoise: Shared links for 2007-09-15

Christian Perrier: RWC: South Africa-England

After Argentina-France on the first day, that one was planned to be one of the few big matches of first round. Of course, after the game won by South Africa (36-0), that seems pretty silly to say... The Springboks were definitely better than England, in all parts of the game. What stunned me, particularly after watching South Africa live , is their complete control on the game, which is a great improvement over their match against Samoa. South Africa scored three tries all of them great examples or organized attacks by the rear lines. Two tries for JP Pietersen, after 3 by Habana on first game: the South-African wing players rock. Despite this, the player of the game was definitely Jason Du Preez, the scrum half (hope this is the correct term in English) who organised all attacks from RSA. England was missing too many key players (several injured) to be able to be a menace for South Africa. They never were really dangerous, except maybe when the magic Jason Robinson has the ball in his hands (what a player!). I was particularly disappointed by their center back players, and even more particularly by Farrel. Ditto for Andy Gomarsall as scrum half. So, South Africa is now probably qualified with two quite easy games against USA and Tonga. England will have to fight to qualify and noone can tell if Samoa or Tonga can surprise them. Watching Samoa-Tonga on Sunday will be interesting and Samoa-England or Tonga-England are already key matches. A great rugby week-end is about to begin, again. Today, Wales-Australia is the match of the day, for sure, with wales playing home (some matches are not in France, but in Cardiff and Edinburgh). New Zealand-Portugal will be...interesting, though the only incertainty is the number of scored tries. And finally, Ireland-Georgia is of some interest for the French. Tomorrow, France could have hard times against Namibia. Of course, the challenge here is winning *and* scoring the bonus point. That match is 5 days before a key France-Ireland, so the challenge is also not wasting too much energy. Of course, tomorrow's top match for me is Samoa-Tonga while I whileprobably skip Fidji-Canada (too bad, I haven't seen those playing yet). BTW, if someone has a recording of the most intense match as of now (Japan-Fidji), I'd be delighted. Rugbystiquement v tre,

13 September 2007

Jan Wagner: debian-cyconet-archive-keyring

If you experience the following error:

W: GPG error: ftp://ftp.cyconet.org etch-backports Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 8B78E5581BCDFF8C You may fix it with something like:

# aptitude -t etch-backports install debian-cyconet-archive-keyring , , ,

Simon Richter: So much for plans

I need to learn about posting plans. As was to be expected, this didn't work out the way I wanted to. Step one of my plan was rearranging everything so I could work without the laptop, which means moving the Pegasos back into my room. Since I still need it as a DSL router until I find a better solution, and there is no cable between the modem and my room, I thought about using the wireless network for that (the AP is right next to the modem). So I switched off VLAN mode everywhere (the AP cannot mix tagged and untagged traffic on one port, and the modem cannot do VLAN tagging either), and plugged a zd1201 USB network adapter into the Pegasos. Worked so far with an Ad-Hoc network, now let's make it talk to the AP. Fire up wpa_suppos^H^Hlicant, see the mess. After some googling I found out the problem: the zd1201 Linux driver does not support WPA. As my flatmate might need the network tonight and cables around the place are bad for moving in, I shall make it work in the most ugly way imaginable: with WEP. This means: if you drive by my place and crack one of the networks with WEP, you only risk a 50% chance of ending up in my honeypot. I wonder if I should write a shell script that occasionally "negotiates" a new key with the AP by setting it over SNMP.

12 September 2007

Erich Schubert: Gnuplot grep

For my diploma thesis (on clustering of high dimensional data, especially correlation clustering, i.e. clustering data by properties such as data correlation) I needed an easy way to filter out data from CSV files as used by gnuplot (actually, they are whitespace-separated).I hacked together a small tool that would allow me to easily 'grep' out certain parts of the datasets. If you know of a similar tool, please send me an email to erich AT debian DOT org.Currently, the tool allows you to do commands such as:
gpgrep "1~5$" "1200"  out/3d-2lin-noise.variances
to select ('grep') all sets where the first column ends with a 5 (regular expression match) and where the first column is less than 199.The tool is still in early development. Syntax may change, and I guess I'll add some more filters. But you get the idea. Focus is on a very compact syntax.A future filter I'm considering would e.g. select 20 random rows (with a fixed seed value, so it's reproduceable!) for sampling and a modulo-match to select e.g. every 7th row.Maybe I'll also add some output processing later, such as averaging values, calculating variances and mean deviations, stripping away columns (but you can do that in Gnuplot already). I don't want to overdo it though - it's just meant as a mini filter you can add to script output visualization. It's not meant to replace a full statistics toolkit.So if you know of a simple tool that can do that already, please tell me.P.S. a few people have pointed out awk. Yes, it can do most of this. One thing I also need, and I'm not sure on how to do that the easiest way in awk is to preserve 'blocking'. That is empty lines. Because the data set
1 1
2 2
1 2 2 1 are two lines with two points each in gnuplot, not one with four points. I guess you could just do a "/^$/ print ", though... hmm... looks like I finally have to learn awk. So far I've always been refusing to learn awk, I was happy with sed, perl and python...

Simon Richter: 8-)

My new flatmate just got his keys, and brought an entire box of that excellent Jasmine tea that I couldn't find in any of the "Asia shops" around here. Please imagine a picture of a cat with wide open eyes captioned "I is happy, and very awake" in this space.

11 September 2007

Benjamin Mako Hill: It's Selectric!

/copyrighteous/images/selectricity_logo.png Several months ago, I announced that I'd received a grant from mtvU and Cisco to work on a cool voting technology research project called Selectricity. A project in quotidian democracy, Selectricity attempts to apply some of the best voting technology and election methods research towards every-day decision-making. It takes research I did at the MIT Media Lab and packages it into a real, useful, application. I spent probably half of my time over the last several months managing a team of competent hackers and designers as we've built out the project. Last week, press releases and news stories went out as we launched our first production batch of features and a new design. You can check it out online at:
http://selectricity.org
There is a whole line-up of a groups and organizations, some high profile, that will be using the software in the coming months. There's also half a dozen killer new features that are built and waiting in the wings for a little polish and fanfare. We'll be testing and releasing those in the next couple months. No doubt, I'll be mentioning bits and pieces of my work on the project on my blog here. However, if you want to follow development, you should subscribe to the Selectricity News Blog where more full coverage will take place. You can leave feedback, suggestions, and bugs as comments on the blog or email it to team@selectricity.org. The election method code is already published and we'll be releasing the rest of the code under the AGPLv3 when the license is released by the FSF in the next few weeks.

Russell Coker: Google Earth - Almost a Great Program

My mother just asked me to get Google Earth (link to download page [1]) working on her machine so she can see where my sister [2] lives. So I download all 20 megs of the sucker (of course it had a horrible license agreement that precludes packaging for Debian or any other sane distribution) and ran it (under a different account of course because I don’t trust non-free software). It’s unfortunate that Google weren’t prepared to put in the extra effort of making Debian and RPM packages for it. When I examined the contents of the file there were sym-links from FreeBSD, NetBSD, and OpenBSD to Linux and from amd64 and x86_64 to x86. So much for portability, just assume that everything is an i386 running Linux! The first problem I encountered is that it doesn’t support installing in text mode and demands X access, have the Google people never heard of sys-admins who do their work over low-bandwidth links and don’t use X? What happens if your sys-admin is using a braille terminal? When I enabled X by “ssh -X” I encountered the error below (Error 1). It seems that the installation program was not written with the X11 Security Restrictions in mind and only works with “ssh -Y“. The same applies to actually running the program once it’s installed. Finally it gave me a GNOME error dialogue about the Bitstream Vera Sans font not being installed. If they had made a Debian package then it could have depended on the package that provides the font in question. Now I’m left wondering which package provides it, and whether it’s even available (maybe they depend on non-free fonts). Once I got it working I found it to be incredibly slow on my Pentium-M laptop with 1.5G of RAM. I ran it on a Pentium-D desktop system in a Xen DomU (it’s only 32bit and I couldn’t figure out how to get the AMD64 version of Debian to run i386 programs without a chroot or a Xen instance). But it still wasn’t particularly fast. One problem is that the GUI is not well written, so I drag the Earth to rotate it from the initial view and the Earth moves slowly long after I have released my mouse button. Another is that my X server started using significantly more memory while it was running (and has not returned to it’s previous size). Google Earth is a really neat program that does some nice things. But I’m not going to buy a new Thinkpad to run it, and the experience of running it on a Pentium-D server is not that great either. I’ve just rm’d it from my laptop, I’ll leave it installed on the server but probably won’t run it often. I’ll try installing it on my mother’s computer (Celeron 2.4GHz with 512M of RAM) but I am not expecting it to run well. The machine is still new to her, I replaced her Pentium3 800MHz with 384M of RAM about a week ago. She never found the Pentium3 to be slow (and I don’t think that Google Earth is a good reason for an upgrade).
(more…)

9 September 2007

Christian Perrier: RWC: being in the stadium is magic

Today was the day we had tickets for *the* match of the day between South Africa and Samoa (59-7). Of course, the Springboks won this game after the Samoan players were exhausted of their battle after 60th minute. However, we really enjoyed a great game during 1st half (21-7) with solid play by RSA (without great vista, as usual, but, well, I'm not a Springboks fan) and ultra-solid defense by Samoa. And, well, as long as the Samoans have the ball in their hands, everything can happen, especially with Henry Tuilagi, impressive number 8, which has been acclaimed by the Parc des Princes public when finally quitting the game on 60th minute. Three great moments in the game: South-Africa is however much more organized, of course, and their attacks were terribly devastating sometimes, with Bryan Habana scoring 4 tries. They're however a little bit hesitating with the ball in hands and their defense wasn't *that* impressive. While writing this, I'm watching Scotland-Portugal (56-10) as we came back from the Parc des Princes. This game happens in St-Etienne, my home town. I imagine the noise and feast in town, where we still remember a famous Scotland-Morocco during Soccer WC 1998. Apparently, the Scots like St-Etienne. Apparently, Portugal resisted during about one half and they even scored a try and sometimes endangered Scotland. Good game by the Scots who can hope to qualify for 1/4th finals. Tonight, Ireland-Namibia. If we aren't too much rugbyfied, I'll watch even if the result is quite predictable. Both teams are in France's pool, so watching team will be interesting. And even now, 2h before the game, there are 25.000 Irish people in Bordeaux. Probably interesting noise over there. Another match today, which I didn't watch because we were on our way to the stadium: Wales-Canada (42-17). Canada was leading 12-7 on half-time and even 17-7 on 45th minute. So, well, not very brilliant for the Welsh. Finally, their most experienced players came back (S. Jones, Gareth Tholas and Collin Charvis) and they easily came back and overscored Canada...who never resigned and were very close to score again at the end of the game. Brilliant day and, believe us, watching rugby *in* the stadium is really a great experience (we don't do this often enough...).

Jeff Bailey: End of week 1 in Santa Clara

In Santa Clara and still adjusting. The corporate housing that I'm in is nearly 4 hours by transit to the office according to the magic computers at 511.org. If I walk a mile on this side, and take a Google shuttle from the Caltrain, I should be able to get that down to an hour.

ahahahah, yeah right. I get a ride from Angie in the morning. It takes 15 minutes.

But *people*, c'mon.. This is California, right? Where are the people caring about the environment and hoping into mass-transit? Get out of your shiny Prius' and take a bus somewhere. Oh wait. You can't. Because it takes 4 hours to go 8 miles.

I'm thinking about this as I'm looking at churches and trying to decide if I feel like going to one this morning. I remember when I first joined the Beacon Unitarian Church, it was (as much as anything else) because I could walk to it. From the church, I could visit a half-dozen people who also lived walking distance from the church. How shall I build my community from inside temporary corporate housing in the middle of Santa Clara?

But we're starting to settle in a bit. We've swapped the van we used to drive across the country for a car. We've got a bank account. We've got a GrandCentral phone number which should follow us everywhere, and next we'll get an POBox so that as we move around a bit before settling in we'll at least have a permanent place to receive mail. It turns out that the State of California wants us to retake our written and road tests to move our licenses to here. That should be fun. Do you suppose it's an auto-fail if I yell "Christing fuck, people! Learn to drive!" as I merge onto the freeway? It's become a bit of a regular chant.

Russell Coker: Comparing Debian and Fedora

A common question is how to compare Fedora [1] and Debian [2] in terms of recent updates and support. I think that Fedora Rawhide and Debian/Unstable are fairly equivalent in this regard, new upstream releases get packaged quickly, and support is minimal. They are both aimed at developers only, but it seems that a reasonable number of people are running servers on Debian/Unstable. Fedora releases (previously known as “Fedora Core” and now merely as “Fedora”) can be compared to Debian/Testing. The aim is that Fedora releases every 6 months and each release is supported until a release two versions greater is about to be released (which means that it’s about a year of support). The support however often involves replacing the upstream version of the program used to make a package (EG Fedora Core 5 went from kernel 2.6.15 to kernel 2.6.20). I believe that the delays involved in migrating a package from Debian/Unstable to Debian/Testing as well as the dependency requirements mean that you can get a similar experience running Debian/Testing as you might get from Fedora. Stable releases of Debian are rare and the updates are few in number and small in scope (generally back-porting fixes not packaging new upstream versions). This can be compared to Red Hat Enterprise Linux (RHEL) [3] or CentOS [4] (a free re-compile of RHEL with minor changes). Regarding stability and support (in terms of package updates) I think that Debian/Stable, RHEL, and CentOS are at about the same level. RHEL has some significant benefits in terms of phone support (which is of very high quality). But if you don’t want to pay for phone support then CentOS and Debian/Stable are both good choices. Recently I’ve been rolling out a bunch of CentOS 5 machines for clients who don’t want to pay for RHEL and don’t want to pay for extensive customisation of the installation (a quick kickstart install is what they want). The benefit of Fedora and Debian/Testing over RHEL, CentOS, and Debian/Stable is that they get newer packages sooner. This is significant when using programs such as OpenOffice which have a steady development upstream that provides features that users demand. If you want to try new features then Fedora and Debian/Testing are both options that will work. One reason I had been avoiding serious use of Debian/Testing is that it had no strategy for dealing with security fixes, but it seems that there are now security updates for Testing [5] (I had not realised this until today). References:
  1. http://fedoraproject.org/

  2. http://www.debian.org/

  3. http://www.redhat.com/rhel/

  4. http://www.centos.org/

  5. http://secure-testing-master.debian.net/

8 September 2007

Russell Coker: ISP Password Change by Untrusted People

After dealing with Optus phone support [1] in regard to a routine request for a password change I have been thinking about better ways of managing password changes for a large ISP. The first criteria is that the user must have a password that is difficult to brute-force attack at all times. Changing a password to a supposedly temporary value that can be easily guessed (such as “changeme“) is never acceptable. The next criteria is that the help-desk operator should be trusted as little as possible and it would be ideal if they never knew the password. One possibility that occurred to me is that each bill could have a six-digit pseudo-random number printed on it. This number could be used as an alternate password. When a customer calls up because they lost their password they almost always have their last bill (this is why they print the number for phone support on each bill). The help-desk operator could then push a button on a web based form that makes this pseudo-random number be their new password, thus the help-desk operator would not know the new password and the user would also have it printed out clearly which avoids the confusion from having a password read out in a foreign accent. Another possibility is to have the password change infrastructure integrated with the CTI [2] system, then the help-desk operator could push a button and have the computer dictate the password without the help-desk operator being able to listen in. There will always be corner cases where a help-desk operator has to change the password, but if these are rare because the automated system handles most cases then the potential for damage would be limited. Of course it would also be a really good idea to do some statistical tracking of the number of password change requests performed by each operator and investigate those who do significantly more than average. In the past AOL has experienced a variety of security problems related to trojans [3] which probably would have been discovered by such analysis. Another possible option is that customers with mobile phones could have their new password sent to them by SMS. It’s quick, easy, cheap when done in bulk, and is much harder to intercept than most methods that might be used for transferring passwords. References:

  1. http://etbe.coker.com.au/2007/09/03/optus-password-changeme/

  2. http://en.wikipedia.org/wiki/Computer_telephony_integration

  3. http://www.wired.com/techbiz/it/news/2003/02/57753

Next.

Previous.