Search Results: "az"

4 April 2008

Martin F. Krafft: I am only mad on IRC

In certain geek circles, especially those centred around IRC channels, it seems common practice to refer to each other by nicknames, even during real life meetings. This drives me crazy. I d like the world to know that I am Martin, unless you speak to me on IRC. This also means that I am Martin on mailing lists and any other form of communication, except IRC. Love,
Martin NP: Pulp: Freaks

Martin F. Krafft: Document management system sought

A client of mine seeks a document management system to be run on a Linux machine, and I have no experience in this domain. I am turning to you for help, dear lazyweb, my client will make a donation to a FLOSS project of your choosing in return. I define document management system as an online file storage for OpenOffice.org/Word documents, spreadsheets, PDFs, and pictures. Thus, this is less about content management than about file storage and organisation, aimed at collaboration. The following are the sought features: Do you know of any tool we could deploy? I did come across BFExplorer, but that seems to lack support for tags, direct data access, bulk uploads, multiuser environment, and it s not received updates in more than a year. Suggestions welcome! NP: Pulp: Freaks

3 April 2008

Runa Sandvik: Fancy titles are for jazz musicians

An email saying that Nectarine now has three, new dedicated streams for music is not spam, and it never will be. You can now find one stream for chiptunes, one for oldskool songs, and one for songs only included in a demoscene production. And yes, this is the right time to sign up for Solskogen 2008.

Sune Vuorela: Trying gold

I just felt like trying the new experimental linker gold. It seems to do c++ stuff quite fast. To build it as a debian package, I just took the cvs binutils and the latest debian packaging, removed all the weird archs from the multiarch package and added –enable-gold to configure and built it.

$ ld --version
GNU gold (GNU Binutils for Debian 2.18.50.20080403) 1.4
It seems gold is so much stricter when trying to link something lazy developers have written. Kde3 fails quite heavily with lots of undefined stuff. Like not linking qt when actually using it. kde4 seems to do a bit better - this is where I am blaming gold for the modifications required (all in FindKDE4Internal.cmake): and then kdelibs from kde4 actually builds. I haven’t done any benchmarking, but I have the impression that gold is just so much faster. I wonder when it gets considered stable. And available for all archs.

Stefano Zacchiroli: moving well moved

/me has moved to Paris Well, this is not really an "I'm moving" post, but rather a "I've moved" post: starting from past Tuesday I'm now living in Paris. I will be working as a post-doc in the mancoosi project, which is a wonderful occasion to merge my research work with my free software enthusiasm. I've also submitted a talk proposal about mancoosi for DebConf8, ... it will be a good occasion to chat about it if you are interested. My office is in the PPS lab, which was already quite packed of Debianers, /me is just one more, happy to join the crowd! The first day of shopping in Paris forces me to post a picture on the very same lines of Enrico's "how to freak out a French person". Mine below can be titled how to freak out an inhabitant of Modena: fake balsamic vinegar Here you are: balsamic vinegar flavoured with figs or honey ..., tasty eh? (dedicated to gareuselesinge) PS unfortunately at home I'm still without network connectivity (unless you count poorly working, up 1 random hour per day, stolen wi-fi as connectivity), so I won't be able to work on Debian et al. a lot from home in the next few weeks.

Joachim Breitner: How to make contour lines circles?

Dear lazyweb, I have a question with regard to image manipulation. Given an rectangle image with a continous function on it (in my case, walking distance from a certain point), I can easily draw the contour lines of the function, i.e. for a given distance from the center mark all points that have this distance. This looks very similar to the contour lines of height map. I d like to morph this image now that all these contour lines are circles around the centers, but I don t have a good idea how to do that with a minimum amount of distorting. Any suggestions or pointers to algorithms are welcome.

2 April 2008

Christian Perrier: About ISO

As one of the maintainers of the iso-codes package, I feel somewhat ashamed to carry that name today. I just proposed my fellow co-maintainers that we take some symbolic action as a kind of protest in the next upstream release of iso-codes. As a French citizen, I'm ashamed that my country's standard organisation, AFNOR, finally turned its planned NO vote into an abstention at the very last minute. It would have been the only european NO vote as far as I can see from unofficial records of who voted what. Kudos to Brazil, Canada, Ecuador, India, New Zealand, South Africa, Venezuela. I should add China to this but the current actions in Tibet prevent me from doing that. And I can't really support dictatures like Cuba and Iran. (of course, I'm talking about OOXML becoming a 'standard', you'd have guessed, right?)

Vincent Fourmond: OOXML: Microsoft did win...

Bad news for the OpenSource/FreeSoftware community (or whatever you would wish to call it): ISO has just accepted Microsoft's Office Open XML file formats (see the suble alteration compared to a well known concurrent). Great. Even worse for me, it is apparently thanks to the French organization AFNOR. Fantastic. Now, we have two XML "office open document" formats accepted by ISO. That sounds so amazingly stupid that it's hard to believe... Just for information, the OpenDocument format, (the one from OpenOffice) has been accepted by ISO hardly more than a year ago !

Martin F. Krafft: Adding proper IPv6 to my home network

Dear lazyweb: I claim to know quite a bit about the IPv6 theory, but I lack experience. I have a couple of hosts out there which are already properly IPv6-addressable and work, but I don t have a network scenario. Unfortunately, I also don t have a lot of time available for this right now. I was thus wondering if anyone of you knew of a document that explained the Debian way of I know of documents like Juliusz Getting IPv6 connectivity under Linux (linked from the Debian IPv6 project page, and of course the work by Peter Bieringer (with whom I ve worked previously), but I have not found a concise explanation of how to set it all up with minimal hacks on a Debian system. If noone has such a document, I might have to bite the bullet. Ping me if you want to cooperate. Let me know! NP: The Phoenix Foundation: Pegasus Update: From Waikato, Matt Brown sent this howto on 6to4. I sent back a small number of corrections and hope he ll incorporate them soon. On a related note, I am making good progress getting my Debian systems linked up to the future. I used the excellent SixXS tunnel broker to route 2^80 addresses to my home router and set up another tunnel to one of my native IPv6 hosts in the net. I also added 6to4 to two of my servers. This should give me enough for further experimentation, and eventually for netconf testing. I ve been keeping notes and you can expect a document with simple explanations for everything that I did. But before that, I want to get behind some kernel bugs related to netfilter, such as state INVALID matching valid packets in kernel 2.6.24 and before and conntrack failing to treat ICMP replies as RELATED with kernels 2.6.18 and 2.6.22. The latter seems fixed in 2.6.24, which isn t backported yet, but which we can expect to be in Etch-And-A-Half and Debian lenny. Stay tuned

31 March 2008

Marc 'Zugschlus' Haber: Does Debian need the local host name in /etc/hosts for IPv6?

Exim has the habit of trying to find out about its host names and IP addresses when it starts up. This has, in the past, been an issue for the Debian packages, since a Debian system might be on a dial-on-demand modem line with expensive costs and thus should not do unnecessary DNS lookup when the MTA is started. This article tries to describe the issue and which countermeasures debian took, and asks for tips how to solve this in the case of IPv6, where our past measures unfortunately do not directly apply. I’d like to solicit opinions from people who are more experienced than me with Unix, the local resolver library including /etc/hosts and /etc/nsswitch.conf, DNS, and - especially - the customs that apply on a system running IPv6. To avoid the extra DNS lookups, the Exim packages have a Debconf option to configure exim for “minimal DNS usage”, which hardcodes the hostname into Exim’s configuration at package configuration time. This was necessary since - without this option - exim looks up its own host name in the DNS even when a completely local operation is invoked. In some cases, exim still looks up its IP address when a listening daemon starts up. This is why the Debian installer configures 127.0.1.1 (not 127.0.0.1) for the local hostname on installation, yielding /etc/hosts files like
127.0.0.1       localhost
127.0.1.1       myfoo.localdomain   myfoo
# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
However, in the last few weeks I have heard a few cases where exim does IPv6 AAAA lookups when a listening daemon starts up. An strace shows a gethostbyname2 call for AF_INET6, and if we want to continue the line we went in the past, we’d need an IPv6 address for myfoo.localdomain in /etc/hosts as well. I am now wondering how this could be implemented. In IPv4, we have 127.0.0.0/8 available for the local host and could arbitrarily choose 127.0.1.1 to configure the local host name on. In IPv6, there is only ::1, which is a single address. Would it be possible to choose an arbitrary “link local” address on lo, the loopback interface? Or is there any better way? This being said, I consider the entire 127.0.1.1 business a horrible hack which is one of the most ugly things I have ever seen. Do we have a chance to implement this in a more cleaner way, or is it still the way to go for the distribution, where we don’t know zilch about the environment where an installed system is going to be used? This issue leads to people adding their local host name to ::1 in /etc/hosts, which might re-introduce other issues that we experienced in a phase when we did the same for 127.0.0.1, eventually ending up with 127.0.1.1, or to disabling IPv6 altogether, which is a bad thing in a time where IPv6 should be enabled, not disabled. So I’d like to find a clean solution which could then be implemented in whatever part of Debian might be responsible. I tried asking this question in other places, including Usenet, before pestering my Blog to ask the Lazyweb, but obviously the people I asked before do not care for the special environment that a Linux distribution has to take care of. The only answers I got were like “that would be the local administrator’s task to fix” and “this should be taken care of in the local DNS server/setup (maybe even on the local box being installed)”. A quite frustrating experience.

30 March 2008

Joey Hess: out of season

Two yummy things I enjoyed slightly before their season today: Yellow squash and zucchini lightly boiled with corn and sun dried tomatos. Would be boring in summer, but it's amazing now. dpkg triggers, which I've implemented in menu, and have lots of other ideas to use.

29 March 2008

Enrico Zini: OpenStreetMap party at Kaohsiung, Taiwan

OpenStreetMap party at Kaohsiung, Taiwan Apparently, yesterday we had the first OpenStreetMap event in Taiwan! We met in a caf /restaurant equipped with power plug, wireless network and overhead projector and we had a bit of an introduction, chat and lunch. Then we split in groups and exploited the fact that the newly built underground (KMRT) system is still free of charge, to spread around and map around the stations. Finally, we reconvened at someone's house to see how to put the data together, draw roads, tag and upload. Highlights of the day: Technical bits: Issues to address:

Biella Coleman: On Moving to New Places

Last week I went to Puerto Rico to take my so-called spring break to visit my mom. I expected a semi-relaxing visit as her caretaker, Milagro, would be around and I also expected one last visit with my mother before embarking on the difficult process of moving her into a nursing home, which I planed to do over the summer. But a day and a half after I arrived, we brought her to the hospital because she basically had stopped eating and even drinking water and now that she has been released from the hospital, she has been placed in a nursing home. We brought my mom to the hospital because she was malnourished and dehydrated. To admit her was an exercise in managing a fireball of pure fury. Even if she was weak, she mustered every last piece of her energy so as to transform herself from a little old lady to a little old lady of pure Russian terror, unleashing her wrath left and right, not to mention up and down. But well, thanks to her (I think, somewhat calculated) wrath, at least they took her in immediately (despite a truly truly packed packed emergency room). Once inside, it took 4 nurses and her caretaker to put the initial IV in her arm and then they threw in a little haldol to calm her down. We waited nearly a day to find out that her doctor, Dra Nazario ordered a feeding tube without consulting with me or my sister (of course at some point they would need consent). At first I did not want a feeding tube put in her. But after talking with various nurses and other family members in the hospital with parents with Alzheimers, I decided to go for it. It is clear that my mom just does not eat enough and when she does, she eats poorly and I did not want to go through another traumatic visit in the emergency room at some future date to do the same. After her operation and after a few days of getting food, she was conscious but barely so. She did not want to talk, did not seem to be able to talk, and this of course, was heartbreaking because we thought that the operation, 4 days without food, and the really difficult hospital entry did her over. But once she developed slight pneumonia and an UTI, funny enough, she actually came back to life pretty much as she was before the hospital (which is still pretty limited but at least she did not seem any worse and it will be interesting to see what happens after she gets proper nutrition for a few weeks). So in the last 9 days I spent a lot of time in the hospital, more than I have ever spent in one. Let’s face it they are creepy places and exude a low-level, sometimes higher grade level of architectural and atmospheric grossness. The smell is so distinct: part disinfectant, part something that I can only describe as that of pre-death (or pre-rot), a smell that especially lingers for it co-mingles with the palpable sense of anxiety and worry (and tiredness) that family members carry with them. I took my mom to Hospital Pavia, which is supposedly one of the better hospitals in the San Juan metropolitan areas, and like 3 minutes from my house. And generally things were orderly and run well but there were a few times, when I was floored and beyond livid by they way they treated my mother and it is clear that a hospital is only as good as the doctors and the ability of the nurses to carry out their orders correctly. (more…)

Martín Ferrari: Six (more) reasons to hate Java

There are many reasons to hate Java, it's like shooting fish in a barrel. But in the last weeks I found some more, half of them aren't even fault of the standard API (the usual culprit), and I want to share my frustration with the rest of the world. It has no unsigned types Say you want to manage binary protocols, files, etc. You'd like to store and retrieve bytes and words in machine format, of course, but you'll have a hard time finding the right value because you can't have a goddamn unsigned byte! So if you want —for example— to read the length of a string which can be bigger than 127 as a single byte, you'll end doing some aberration like this:
byte strl = foo_retrieve_byte();
int real_strl = strl < 0 ? 256 + strl : strl;
You can't inherit constructors Maybe there's something in the OOP dogma that mandates this, but if I want to define a new exception that does nothing, but allows me to differentiate a custom class of errors, I don't want to explicitly write dummy constructors instead of writing an empty class —which is simpler and cleaner— and have the four standard exception constructors for free. So, you'll have to do this:
public class FooException extends BarException  
	public FooException()   super();  
	public FooException(String s)   super(s);  
	public FooException(Throwable t)   super(t);  
	public FooException(String s, Throwable t)   super(s, t);  
 
Instead of this:
public class FooException extends BarException    
You can't declare destructors Say you've coded a nifty jdbc wrapper that automates most of the boring stuff, like automatically freeing the connection to the connection pool when there was an exception thrown, logs errors and maybe queries, handles auto-commit settings, etc. In the simple case, you'd create an instance, do some work, and then close the connection; if there was an SQL exception, you little class will take care of it and re-throw. BUT, if in the middle of your work in the calling code, you have an unrelated exception, you need to catch it or you'll leak connections, because the wrapper class doesn't have a way of handling this, even if the object gets garbage collected! In the end, I had to write tons of times the same stupid code:
try  
	j = JdbcWrapper.new(foo);
	j.doSelect(bar);
	unrelatedObject.unrelatedMethod();
	j.doUpdate(baz);
  finally  
	j.close();
 
You don't have a sane way of controlling the terminal Most of the time, when dealing with web applications, you won't need this. But when you're doing some serious stuff, you might need to write a CLI application (oh, noes!); and then do some stupid thing like asking the console to stop echoing characters so you can ask for a password. You'd think that the smart guys that designed Java would have devised an portable library to handle this trivial task, but no! Guess what I found when looking at a way of doing this? Some idiot at SUN recommending (and many dummies following) a background thread that spits backspaces faster than the user can write! Of course, SUN will tell you that using Strings is insecure for storing passwords, because they cannot be wiped out like byte arrays. But they fail to mention something as basic as not showing the fucking password in the first place, or something as important as wiping the object after using it: you can't lock memory from Java, so you risk that it could end in some slack in the swap file. No, you can't leave stdin/stdout/stderr fscking alone! When dealing with the previous problem, you say fuck portability and just call stty -echo to do the job. Well, you'll find a little surprise! Even if you don't ask for the process' reader/writer streams, the Runtime class will pipe(2) and dup(2) your child process' standard streams. With this excellent approach you cannot have a child process output stuff to the user, nor even errors; you cannot allow the child process access the tty (stty obviously can't do shit with a piped stdin). And there's no fucking way to tell it to stop crippling your standard streams! The only solution I could find was a very ugly shell hack:
Process p = Runtime.getRuntime().exec(
	new String[] "sh", "-c", "stty echo > /dev/tty < /dev/tty 2>&1" 
);
No, you can't handle signals After doing the previous hack, you find that if you interrupt your process while waiting for user input, your console will remain in noecho state. So the obvious thing is to catch SIGINT and friends and call stty again to restore the console. HA! You will find that there's no standard way of doing that, and if you really need it, you have to resort to undocumented com.sun.* classes which aren't even guaranteed to be present in every JVM. My solution was to set up a shutdown hook, which solved this problem, but would not solve other very common problems that are solved usually with signal handlers. I'm going to DebConf8, edition 2008 of the annual Debian 
       	developers meeting Tags: Planet Lugfi, Planet Debian

28 March 2008

Vincent Fourmond: Thoughts about statsvn

Some time ago, I packaged statsvn, a pretty neat SVN repository analysis tool based on statcvs. To be truthful, I was quite amazed that no one had packaged it before, as I find it quite handy. It is currently in contrib, as it depends on statcvs that depends on libjfreechart-java that currently only works with Sun's java on AMD64 machines (at least, see the bug report). A few comments about it: though it can work fine with remote repositories, it is highly recommended that you either take down the number of -threads, as many repositories out there do not like too many concurrent ssh accesses, or you rsync the whole repository to your local hard drive and work from a checkout of the local copy, as it will burn much less bandwidth and server time. Of course, statistics of this kind are not to be taken too seriously, as they can be seriously biased by commit mistakes for instance, but they give the impression that work is being done, and that is pleasant ;-)...

27 March 2008

Jeff Bailey: It's time to place "Guess the cost!"

So for those of you following along, you'll notice that I've just had surgery in the most expensive place in the world. Luckily for me, Google (my employer) has an amazing set of health care packages, so I haven't had to be concerned with total financial destruction.

But how close would it have come?

That's the game we're about to play! I invite you, dear reader, to make a bid on how much you think the 4 days in hospital including the surgery, will cost.

Here's some info to help you along:

* Two days and one night of angiogram, embolism, general anesthetic, and chapstick cost ~$67,000 (The stick of chapstick was $17, apparently. Gotta love itemised billing.)

* One day of prep to make sure that the above day wouldn't kill me was $750

* A friend of mine at a different hospital had aorta replacement surgery for $250,000. She apparently had a longer hospital stay and a longer surgery, but with fewer surgeons.

* I was in the hospital for 4 days.

* The surgery was ~7 hours long (We think they started at 11, they forgot to phone Angie when they started)

* There were at least 3 surgeons involved, plus physicians assistants, etc.

Winner gets one of (next time I see them, and assuming i'm physically able) one of (their choice):

* Back rub
* Reasonably good glass of nicest port available at reasonably-close-by bar (Let's say not to exceed $25 for the glass)
* Dinner at some vegan-friendly place.

Let the bidding begin! Bidding closes when I receive the bill.

25 March 2008

Wouter Verhelst: Dear lazyweb,

In an effort to improve the performance of nbd-server, I wrote a patch to make it use some common sendfile() implementations (specifically, Linux- and FreeBSD-style sendfile calls). Unfortunately, however, when I test the Linux version (I haven't done tests with the FreeBSD version yet), the server outputs some garbage in fron of the actual data that it needs to send; as a result, obviously the client can't make heads or tails of it, and the connection is dropped. However, when I run it inside gdb, everything is fine. When I call strace over the server, I don't see any obvious errors. I tried using the DODBG version of the server (see the code for details), but that didn't help me. At this point, I'm pretty clueless as to what is going on. If anyone were to give me some hints or pointers, I would be eternally grateful.

24 March 2008

Enrico Zini: Glitches in the Matrix

Glitches in the Matrix Taiwanese license plate over German license plate with K nation code] Korean car with Taiwanese license plate (edited to anonymise it) over EU license plate with (Portuguese??) numbers on the right, and Korea as country code. 'Italian' pasta sold by British supermarked in Taiwan Italian pasta sold by a British supermarket, in Taiwan. Also, "Messicani" is not a kind of Italian pasta. Google for it, and you'll only find it mentioned in British websites.

Enrico Zini: How to freak out a Frenchperson

How to freak out a Frenchperson
Bottles with 'Champagne Soda' label
'Champagne Soda' label close-up 'Champagne Soda' label close-up
'Champagne Soda' label close-up 'Champagne Soda' label close-up
The way to freak out an Italian, instead, is to show them a bottle of "Lambrini" in the UK.

23 March 2008

Enrico Zini: Italian National Anthem

Italian National Anthem Christian mentions that he likes the Italian National Anthem, although not the words. No Italian in their right mind likes the words; luckily we are generally not forced to learn them, so we can allow ourselves to not give a damn about it. Which is our general strategy to deal with all the insanity we get every day. What's the point of a nationalist anthem anyway, when the people who care most about the country are wishing for the Germans to invade us? Anyway, here's my attempt at national anthem lyrics that suck less, for the benefit of those, like Christian, who like the music but not the words.
Fratelli d'Italia
L'Italia s' desta,
Chi cazzo sto Scipio
Che ci han messo in testa.
Non c' la Vittoria
che porge la chioma,
Siam schiavi di Roma
E del Vatican.
Scongiuri alla sorte
Si rischia la morte
Si spera di no.
Noi siamo da secoli
Calpesti, derisi,
Perch siam mafiosi
ladroni e collusi.
Si rischia di nuovo
di aver Berluscone
Dell'emigrazione
Gi l'ora suon .
Scongiuri alla sorte
Si rischia la morte
Si spera di no.
Uniamoci, amiamoci,
l'unione, e l'amore
Ridanno alla gente
Il suo buonumore;
Giuriamo far sesso
sul suolo nat o:
Chiaviamo, perd o,
Chi dice di no?
Scongiuri alla sorte
Si rischia la morte
Si spera di no.
Dall'Alpi a Sicilia
Noi ti condoniamo,
Ogn'uom di Bettino
Ha il core, ha la mano,
I bimbi d'Italia
Fan calcio balilla,
Bastardo chi frulla
Gancin non si pu .
Scongiuri alla sorte
Si rischia la morte
Si spera di no.
I nostri politici
Son tutti venduti:
Si sente dall'Austria
L'odor dei rifiuti.
Lavora in Italia,
Il nero, il Polacco,
In nero, perbacco,
Io lo pagher .

Scongiuri alla sorte
Si rischia la morte
Si spera di no.

Next.

Previous.