Search Results: "sto"

18 September 2007

Andrew Pollock: [tech] Double drive failure

In other news, it seems that two out of the four drives in the RAID-10 array for the SAN that provides all of the storage for my MythTV installation have decided to fail. I noticed that the array was acting a bit weird and there were a pile of errors reading from one drive yesterday, so I booted it out of the array. This afternoon, I unplugged it, and was going through Seagate's online RMA procedure, when I noticed another drive had failed as well. Miraculously, it seems to have been the one drive that could fail without any data loss. So I'm hoping the two remaining drives were in a different batch or something, otherwise I'm going to have a really bad time really soon.

Adrian von Bidder: Glowbulb jokes

That SCO managed to postpone the trial in SCO vs. Novell by trying to get Chapter 11 protection one more time is old news by now. It just occurs to me that the continuation of glowbulb jokes by SCO is now “How many lawyers do you need to file for bankruptcy” (paraphrasing PJ.) In SCO's case it seems to be “As many as you can pay, and then some more.”

17 September 2007

MJ Ray: Current Issues / Re: Absurdities of Recycling

And now, making things more complicated, the main Weston recycling centre (off Herluin Way) is going to close at 4.30pm from 1st October.  If you work full-time, forget about recycling card or plastic on a week-day! Source: Mercury

Yet more mixed messages on whether the new Conservative council supports recycling!

MJ Ray: Run on the Bank

For one UK bank, "innovation" has included funding long-term home loans mostly with short-term inter-bank loans. So, the increased costs of obtaining inter-bank loans during a credit crisis caused Northern Rock to obtain support from the central bank, the Bank of England. Once that became public knowledge, as it must, it started a predictable run on the bank, as described in Guardian Unlimited: Between Rock and a hard place - savers besiege bank. Savings are leaving at a rate of almost a billion pounds (1.6bn euro?) each day just now. In turn, that makes the bank's loans-to-savings ratio even more extreme, which then worries more savers and we're into a feedback loop, with queues growing out of the bank's doors, customer sit-ins [BBC West] and other unsettling side-effects. Northern Rock is a former member-owned building society which demutalised (converted to a shareholder-owned bank) in 1997. In just ten years, it has become committed to a business model which seems to scare many of its savers. Would it have done that if it was still controlled by its savers and borrowers? Is this exodus of savings going to be matched by loan customers moving away too? Will any of these customers return to the mutual and co-operative sector? It now seems sort of academic whether Northern Rock is on the list of online banks that work with free software, as commentators suggest it may be taken over soon. 2007-09-18 Update: the UK government has guaranteed all deposits in the dodgy bank. This is a bad thing, as explained on niq's soapbox: Race to the bottom.

Steve McIntyre: Remaining Debconf T-shirts on the way

At/after Debconf it transpired that various people didn't get the T-shirts they should: attendees who left before the Ts were released by customs in the UK, and volunteers and orga team who didn't fit in the small allocation that we had printed up-front. In the weeks since then, we've got more shirts printed thanks to Gunnar and Gaby. I've just sent out (almost) the last of them this weekend to people all over the world, and I'll be hand-delivering the last couple next month. A small number of people also asked for extra Ts if they could pay for them, and I'm emailing them now to confirm what the cost is. UPDATE: Sorry, maybe I wasn't clear enough in the above. We have had more Debconf Ts made for people, but they asked ages ago either at Debconf or shortly afterwards. I'm not planning on getting any more printed for people that ask now. Sorry, it's too late.

Ross Burton: Sound Juicer "The Best Blue Is Through The Trees" 2.20.0

Sound Juicer "The Best Blue Is Through The Trees" 2.20.0 is out. Tarballs are available on burtonini.com, or from the GNOME FTP servers. Also thanks to the tireless translation team: Djihed Afifi (ar), Ihar Hrachyshka (be), Alexander Shopov (bg), Runa Bhattacharjee (bn_IN), Jordi Mallach (ca), Ask Hjorth Larsen (da), Hendrik Richter (de), Tshewang Norbu (dz), Kostas Papadimas (el), David Lodge (en_GB), Jorge Gonz lez (es), Ivar Smolin (et), I aki Larra aga Murgoitio (eu), Ilkka Tuohela (fi), Christophe Benz (fr), Ignacio Casal Quinteiro (gl), Ankit Patel (gu), Eyal Mamo (he), Gabor Kelemen (hu), Francesco Marletta (it), Takeshi AIHANA (ja), Young-Ho Cha (ko), Erdal Ronahi (ku), ygimantas Beru ka (lt), Raivis Dejus (lv), Arangel Angov (mk), Kjartan Maraas (nb), Wouter Bolsterlee (nl), Tomasz Dominikowski (pl), Og Maciel (pt_BR), Duarte Loreto (pt), Mugurel Tudor (ro), Nickolay V. Shmyrev (ru), Danishka Navin (si), Matic gur (sl), Elian Myftiu (sq), (sr), Daniel Nylander (sv), Dr.T.Vasudevan (ta), Theppitak Karoonboonyanan (th), Baris Cicek (tr), Maxim Dziumanenko (uk), Clytie Siddall (vi), Funda Wang (zh_CN), Chao-Hsiung Liao (zh_HK, zh_TW).

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.

David Nusinow: &lt; MadCoder&gt; wow gravity is spamming us

Brice already mentioned it, but I've uploaded Xorg 7.3 to unstable this afternoon. This includes Xserver version 1.4, which has improvements all over the place, perhaps most notably by including input hotplugging (via HAL) and many improvements in EXA, the next generation 2D driver acceleration architecture.

Now that this is uploaded, I'll be ripping out large parts of the xorg.conf generation script. All the various improvements over the past few releases have made it possible to do this, and for lenny, if all goes according to plan, we won't have to generate a xorg.conf for installs at all. You can still use one (and many people will want one to customize their settings in some way) but for the most part people shouldn't have to bother with them. I'll be spending a lot of my time over the next few months tightening this stuff up so that a lot of the little things really work the way they should, and now that we have the updated server available I'll be able to actively work on these things in Debian so you'll be able to see the results quickly.

On a side note, I went to Software Freedom Day yesterday. I heard ari give a talk on the Gimp. At the last minute I almost gave a lightning talk on where X.org is headed, but they ran out of time. It would have been kind of weird though, since the talks were on things like software patents, free culture, and miro (formerly democracy-player) rather than the nuts and bolts sorts of things that I'm more comfortable with.

16 September 2007

Steve McIntyre: Remaining Debconf T-shirts on the way

At/after Debconf it transpired that various people didn't get the T-shirts they should: attendees who left before the Ts were released by customs in the UK, and volunteers and orga team who didn't fit in the small allocation that we had printed up-front. In the weeks since then, we've got more shirts printed thanks to Gunnar and Gaby. I've just sent out (almost) the last of them this weekend to people all over the world, and I'll be hand-delivering the last couple next month. A small number of people also asked for extra Ts if they could pay for them, and I'm emailing them now to confirm what the cost is.

Joey Hess: yay, rising applachia

I finally got to hear Rising Applalachia just now (at Java J's). They're about to play a song they wrote last night called "the Shooting Sprout", about this nice little organic food store with the same name hidden in the middle of the strip mall fast food wasteland of Bristol's exit 7. I can happily reocmmend both the band, and the store, which I discovered myself on Friday. :-)

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.

15 September 2007

Chris Lamb: Why does using all the upstream cause lag?

It’s a common story. A housemate starts torrenting some American television series of dubious artistic quality and/or legality, or perhaps starts calling their girlfriend on some fluffy non-free privacy invading spyware and your SSH sessions start to lag. Why does this happen? When the upstream channels become saturated, data must overflow into the modem’s buffers. This causes TCP acknowledgement (ACK) packets originating from your SSH client to be delayed, resulting in an increase in the overall round trip time. This phenomena is usually worse on cable connections as their modems’ buffers are generally larger. Avoiding the problem can be pretty simple — limiting your upstream bandwidth just below its maximum helps, and some smarter solutions involving prioritising ACK packets work even better. Although these are best achieved at your router, a number of applications have their own limiting features: every BitTorrent client will have one, and other tools such as scp (via the ‘-l‘ option) have them too.

14 September 2007

Tollef Fog Heen: Project codenames

I just read Sun's announcement of "Project Hamburg". I am not sure what it is about, but that is not very important in this context. I have worked a bit with Intel lately and gotten introduced into a whole new world of code names such as Mccaslin, Menlow and so on. Up until now, most of them were obscure enough that I thought they were just random names picked from somewhere, but they are, like Sun's names of geographical features, be it towns, cities, rivers or something else. The reason for this naming is, like Sun's, that geographical names can't be trademarked, though in this particular case, Sun supplied a short list of "why Hamburg" with some references to Hamburg's history.

Adeodato Sim : Distortion

In Spain, the voice of Lieutenant Colonel Anton Grubitz, the bad guy in The Lives of Others, is the voice of Ross Geller, from Friends. That is so rude.

Russell Coker: More About Google Earth

I recently wrote about problems with Google Earth [1]. In comments it was pointed out to me that there are some Debian packages of it in contrib. Installing the package ttf-bitstream-vera solved the font problem and running it directly (not through ssh -Y) on a machine with DRI support made it run reasonably fast on a machine with identical hardware to my mother’s. The animation is quite slick when the hardware works, and I have used it a bit. However I’m still disappointed in the program. The animation should be disabled for hardware that doesn’t support it at a reasonable speed (a reasonable default would be to disable animation if the display is :10.0 so that it doesn’t try to do animation over ssh). Also the feature of having movement continue should be disabled if there is any question about the performance. When performance (of scrolling and network access) is good it’s nice to be able to swipe with the mouse and have the scenery slide past until you tell it to stop. When performance is bad it’s annoying to have it keep trying to slide somewhere and make the entire machine run slowly.

Matthew Palmer: Free To Good Home...

Slightly used Leopard main battle tanks. One owner, always garaged, great for soccer mums and men with very small penises.

13 September 2007

Gunnar Wolf: BLOBs in MySQL: Binary Laughable OBjects?!

Bah, MySQL keeps insisting on being a fun way to waste your time.
One of my clients hosts its systems at Dreamhost, a quite nice hosting company, which has... Well, a couple of strange details :-/
Anyway, people who work with databases know that a BLOB (or its equivalent) is the right datatype for storing images or, in general, files, right? After all, BLOB is just an acronym for Binary Large OBject. And if somebody has a BLOB field in the DB and searches on it, most RDBMS-bound programmers will at very least chuckle at a design flaw - BLOBs are just to be stored and retrieved, that's it.
Well, the system I wrote for this client uses a BLOB field - Ok, to be clear: I just declared it as a :binary in the corresponding migration. That should do the trick, and should allow me to keep my system RDBMS-independent, right? So I can still work on my development system using nice-and-trusty PostgreSQL
Anyway... My client said some documents were being corrupted. And that is Not NiceTM... Documents were being truncated at 63Kb. The bug was consistent across the three instances of my system in Dreamhost, but could not be reproduced at my machines - It didn't take too long to find out it must be the DB (and that's partly because I don't really trust MySQL :) ).
Turns out that, in MySQL speak, there are four types of blobs: TINYBLOB, BLOB, MEDIUMBLOB, and LONGBLOB. Forgoodnessake, WHY?! The stupidiest one is the tinyblob: A Binary Large OBject limited to 8 bits (255 characters). Regular blobs are 16 bit long (65535 characters - Aha! That's your 63.99Kb limit!). Mediumblobs are 24 bits (16 million), and longblobs are 32 bits (4000 million). And, of course, the blob datatype is not large at all.
Bah.
Anyway... At least this is an open and known issue already to the Rails people, and I do expect them to change the migration equivalencies to something saner.
Bah again.

12 September 2007

Christian Perrier: RWC: Argentina still there, Italy wakes up

After one day off, we watched Argentina-Georgia yesterday evening. Interesting game because it directly affect France's chances to qualify after Argentina's win on Friday. Argentina had a big disadvantage by playing only 4 days after their historic battle against France. As a logical consequence, they appeared quite tired and very imprecise. On the other hand, Georgia fought very courageously with a strong pack of forwards, encouraged by most of the crowd in Lyon. Finally, Argentina won *and* scored the bonus point by scoring a try in the very last minute (which might become very important to qualify in this pool. Good game even if Argentina was not that impressive, but I still think this is mostly because of the 4-days delay. Today, 3 games were scheduled. We didn't watch USA-Tonga (15-25). USA was slightly favourite for that one but they also were quite tired by playing 4 days only after their battle against England on Saturday. This was the first match for Tonga and obviously the island players were less tired and played a good rugby to win that one. Japan-Fidji (31-35) seems to have been the most uncertain match as of now. I somewhat regret not watching it as these two are among the teams I like watching and 7 tries in the match probably made it very interesting. Tonight, we watched Italy-Romania (24-18). The italians compete with Scotland for the remaining qualifying spot in that pool, if one assumes that New Zealand will obviously win all its matches. So, Italy *had* to win that match. The quality of romanian rugby has decreased in the last 10 years, but they still have a good set of great players, most of them playing...in France (just like one third of the italian team, indeed). The match was quite indecise with italy keeping the ball all first half long, but only leading 8-0 on half time....and being surprised by two romanian tries at the beginning of second half (8-12). After a strong domination of Italy, Romania was logically sanctioned by one expulsion and a penalty try (for successive voluntary faults), but, until the end, Italy was still in danger. They finally made it, which was the most important for them, 4 days after they were sweeped out by the All Blacks. We're now eagerly waiting for *THE* game of this week, England-South Africa in the Stade de France on Friday. Elizabeth found out that a few tickets are still available, but for 253 euros each, we decided to watch it on TV. So, between 21:00 and 23:00UTC that day, don't even think about pinging me on IRC. I still haven't decided who I'll support the most as I'm not a huge fan of either team....but they're still among the best in the world, of course.

Next.

Previous.