Search Results: "ean"

11 May 2007

Thijs Kinkhorst: SquirrelMail 1.4.10a released

Yesterday we released version 1.4.10a of SquirrelMail. It fixes mostly small-time bugs and glitches, and a security bug in the HTML filter. While the 1.4 branch is getting very solid, the HTML filter remains the main point of sorrow. The problem is that we receive incoming HTML in a mail message, and then need to transform that into HTML that's safe to present to the user. This is done by stripping out anything that could cause trouble. You wouldn't believe which degenerated content is still parsed by some browsers, so this is a never ending fight. A proper solution would be to white list what is allowed. This essentially means implementing a full HTML parser that parses the incoming mail and only accepts things known to be good. Co-developer Marc Groot Koerkamp has done good work towards this already, but it's no simple feat and not quite finished yet. So we'll have to keep patching up the current filter for a while I'm afraid.

Evan Prodromou: 20 Flor al CCXV

Another beautiful day here in Paradise. Montreal is fantastic in the late Spring/early Summer -- it's a great time to be here in the city. Yesterday, Amita June and I went to Parc Jean Drapeau, the beautiful park on an island in the St. Lawrence, the former site of Expo 67. We played at the (really cool) new playground, ran around in the grass, and looked at the river rushing by. Today I rolled out a new table-of-contents layout on Wikitravel; you can see an example on our page about France. It's the culmination of about 11 months of debate and compromise amongst Wikitravellers, me, Maj, Internet Brands, and pretty much everyone else under the sun. It took a looong time, but we eventually got something that most people could live with and (shock!) some people actually liked. It wasn't easy, and my earlier unilateral decisions about it were so upsetting to people that it produced our current Wikitravel:Technical infrastructure policy. It's been great to finally reach some closure on this particular issue, since it was such a source of learning for me. tags:

RoCoCo -- one week and counting We've got about one week before RoCoCoCamp starts. It's going to be pretty exciting; we've had a lot of responses and the list of participants is growing strong. But there are still a lot of infrastructure things to be done -- I'm going to be really impressed if we get them all done before next Friday. I'm getting more and more amazed that the folks in Portland (Oregon) manage to put on RecentChangesCamp there. It's pretty hard to do a three-day unconference. tags:

Kanren So, I've just finished re-reading The Reasoned Schemer, the sequel to The Little Schemer and The Seasoned Schemer by Daniel P. Friedman and Matthias Felleisen. Reasoned is a really nice introduction into what seems to be a classic compulsion for Scheme freaks: re-implementing the logic language Prolog more-or-less in Scheme. The little language that unfolds in Reasoned is elegant, simple, and best of all, extremely Scheme-y. There's a really long digression into binary mathematics and deriving bitwise operations for arithmetical functions, which all seems to be the long way around the block since it's unlikely that users of their system would use anything but the math system built into the host language, Scheme. The implementation in TRS is laid out at the back of the book. It's a learning version of a bigger project, called Kanren. I've been fiddling with the system, which has re-inspired my dream of creating a declarative language framework for Web applications. I'd like to see what Web programming in Kanren would be like... I'll see how it goes. tags:

Domains Another way I spent my time today was that we've finally gotten around to transferring the wikitravel.org/.net/.com domains to IB. IB's owned the site for a while, but we've never really had a reason to switch the domains over, so it's gone undone for a long time. And I'm kind of glad. It sucks transferring domains between registrars. wikitravel.org was on Joker. which used to be my registrar of choice, but which has been superseded by Godaddy. Transferring a single domain took 6 Web forms (on two different sites), 3 security codes, and 4 email confirmations. Thankfully, this also gave me a chance to transfer over my speculative domains phonojournalist.com (for telephone photos) and phrygiancap.org, for general freedom issues. I like the phrygian cap, what can I say? All right, so I have a lot of domains that I'm unlikely to ever exploit. If that's so wrong, I don't want to be right. tags:

10 May 2007

Martin Michlmayr: GCC 4.3 related build problems: missing #include

In GCC 4.3 the C++ header dependencies have been cleaned up. In the past, compilation would often be quite slow because including a simple header would indirectly include a lot of other headers, even if they were not needed to compile the current code. Many headers have now been cleaned up with the result that compilation is quicker. The downside is that programmers cannot rely on indirect inclusion of headers they may need anymore. Instead, everything that is needed has to be directly referenced with an #include. Typical errors look like these:
error: 'find' is not a member of 'std'
error: 'exit' was not declared in this scope
Below is a table showing which header needs to be included for a number of common functions:
Functions and definesHeader
find, for_each, sortalgorithm
isalnum, touppercctype
INT_MIN, RAND_MAXclimits
printfcstdio
atoi, free, randcstdlib
EXIT_FAILUREcstdlib
auto_ptrmemory
fd_set, mode_tsys/types.h
typeidtypeinfo

Arnaud Vandyck: fop 0.93 in Debian

I've uploaded fop 0.93 in Debian. As it's a new upstream, it'd take some time (or could be rejected if I messed up!). In the mean time, you can add these lines to your /etc/apt/sources.list:

#avdyk@people
deb http://people.debian.org/~avdyk/debian/ ./
deb-src http://people.debian.org/~avdyk/debian/ ./

With these lines, you'll be able to get libxmlgraphics-commons-java (which is needed by fop). This is a new lib so it's not yet in the archive, that's why you could have problems to install fop at the moment: #423196. read more

Martin Michlmayr: GCC 4.3: common build failures

Even though GCC 4.2 has seen many delays and still hasn't been released (although it's finally getting close), a lot of development has already been done on trunk for the release of GCC 4.3. I started testing 4.3 in March and in addition to finding and reporting compiler issues I have filed bugs on packages that fail to build with GCC 4.3. The idea is to give people an advance warning and to be ready for GCC 4.3 when it will be released. We have almost 500 bugs related to GCC 4.3 already, mostly due to a clean-up of C++ headers in GCC that has exposed sloppy programming in many programs. Fortunately, these bugs are easy to fix. As I'm finding common mistakes in packages, I will document these problems and way to make sure a program is ready for GCC 4.3. Common problems

Martin F. Krafft: Drying ducks

Thanks, pixie, you made my day:
my very own duck towel
Now if only I could shower all by myself, I'd try it immediately. Or rather: I can shower alright, but still need someone to wrap my casted arms in plastic. And believe me, showering through plastic bags is really unsatisfying. Eleven days to go. Then those bloody things come off. I am looking forward that shower on 21 May even a bit more than I have at times craved the clean wetness during prolonged expeditions in the Alps or Asia. Now I am sure you didn't need to know all that. NP: Explosions in the Sky: The Earth is Not a Cold Dead Place

Martin Zobel-Helas: Packages considered for 4.0r1

As there are currently four persons working on the next stable release (Dann Frazier, Luk Claes, Julien Danjou and me), we decided to track all issues for the next stable release (4.0r1) also in the Debian BTS. So if you would like to look what we currently consider for 4.0r1, have a look here. Before adding a bug (eg. with the command bts user debian-release@lists.debian.org . usertag 420759 + SRM) please contact the stable release team first, or even better, let the stable release team add your bug there on their own. Also, not all uploaded packages to proposed-updates will automatically considered for the next stable release. Update: With “contact the stable release team first” i do mean, please send requests to debian-release@lists.d.o, not contacting release team members in private over IRC or direct eMail. And NO, h01ger, cellphone is also not an option!!!1!!!elf!!!!

9 May 2007

Anthony Towns: Torrenting the Debian Archive

Continuing the theme from my previous post – the first and fundamental thing any distro needs to have, and thus the first and fundamental thing to think about disintermediating, is some way of distributing software. That might be burning CDs and sending them out to resellers or OEMs, or having your stuff available for download, whether by putting it up on your own server, hosting it via a dedicated high-reliability provider like akamai, or maintaining a network of mirror sites and keeping them up to date. And, of course, anyone who wants to distribute their own software has to do the exact same thing – which either means doing it themselves, and not being able to take advantage of the scalability the distributor has already made work, or going through the distribution and dealing with the problems that entails, as well as the benefits. In this case, disintermediation and decentralisation are pretty much one and the same thing: and decentralising content distribution is already a well understood problem: that’s what peer-to-peer is all about, and peer-to-peer distribution of, well, distributions is already very successful – at least when it comes to CD (and DVD) images. Which means that just about anyone can create a CD image, and distribute it to the world in exactly the same way a major organisation like Debian or Red Hat would – upload a torrent file, run a seed, and let the magic of BitTorrent do its thing. Scalability is no longer something you need a distribution organisation to manage, instead it’s built directly into the technology itself. Unfortunately BitTorrent is designed for large static images – not something you update on a daily basis. And for better or worse, my preferred distribution (Debian testing, currently lenny) does update that frequently. Fortunately, though, BitTorrent’s an open protocol and has dozens of open source implementations – so last year I was able to propose it as part of the Google Summer of Code, and was lucky enough to get a few responses and a student to work on it. It didn’t get much further than that unfortunately – the student lost internet access not long into the programme (and for most of its duration), and that was pretty much that. So when this year’s SoC rolled around, I didn’t really expect much, and didn’t put the idea up for consideration again, but lo and behold someone came through and asked if it was still possible and if there was any more information, and when I forwarded on some of the mails from the previous year we ended up with a second chance at the project. So far it’s looking pretty good – we’ve had a lot more success at keeping in touch, and thanks to the extended schedule for the SoC this year we’ve been able to do a much better job of keeping on top of what’s going on. So much so, in fact, that there’s a first (alpha) release out before the SoC is officially due to start! Wonderful stuff! What it does at the moment is allow you to take a Packages file (the stuff “apt-get update” downloads, which includes descriptions of all the packages that are available, how they inter-depend, and so forth), and from that information create a usable torrent from which to obtain the packages themselves which can then be used to share and distribute the packages. There are two crucial steps in that: the first is allowing the torrent to work without requiring huge amounts of extra information to be distributed (which would introduce scalability problems of its own, instead of solving them), and the second is that the pieces that make up the torrent are selected in a way that matches the actual packages, so that when you upload a single new package, you are in fact only making a minor change to the torrent, rather than having it (on average) completely redefine half of the torrent (and again introduce scalability problems rather than solve them). There’s more information on the DebTorrent wiki page and Cameron’s blog if you’re interested. Anyway, it’s just an alpha release at the moment, which means while there’s code that does something, it’s not actually all that useful yet. The current plan is to next add some code to make it automatically prioritise packages based on what you’re actually using – so that rather than downloading all the debs it see, it’ll only download the ones you’ve got installed, or maybe only newer versions of the ones you’ve got installed, which should get us pretty close to the point where it’s actually useful for something. The end result, of course, is to build a tool that you can point at a Debian archive, run it on a machine connected to the Internet, and you won’t have to do anything more to have a reliable, scalable and reasonably efficient means of allowing your users to distribute and update their systems. In this case, scalable means that if you end up with as many users as Debian or Ubuntu, your users will have a comparable experience, as if you’d arranged for a similarly comprehensive mirror network, without actually having to do the leg work. And heck, presuming that works, it doesn’t even matter if no one else actually does that – it’s worth it even if it saves Debian or Ubuntu the effort of keeping track of a mirror network by hand. There are interesting possibilities at smaller scales too, of course. :)

Erich Schubert: Munich Lindy Exchange

Munich Lindy Exchange 2007Registrations for the Munich Lindy Exchange (20. - 23. September 2007) are open.That will be a Lindy exchange to remember: this is the first Oktoberfest weekend, and of course the Lindy people will rock the Oktoberfest, too (apart from doing all kinds of other fun stuff, of course).(And yes, that means you should plan ahead - flights could become rather expensive during Oktoberfest. :-( )So if you are a Lindy Hop dancer, and want to meet some fun people, come to visit us. You won't be just a tourist, but you'll have "Munich natives" around you to show you all the cool places.Organized by Swing and the city (Christine von Scheidt).

Michal Čihař: python-gammu has asynchronous wrapper

Yesterday I hacked asynchronous wrapper for python-gammu. It is start of progress to make Wammu behave better while talking to phone. My plan is that all operations will go through this asynchronous wrapper and will be completely non blocking to Wammu. This means no progress bar will pop up to front, but entries will appear in window as they are being read. Progress will be of course still shown, but only in status bar. The current code is only first step, next thing which has to be implemented in python-gammu are virtual commands. Those will be used for things like getting all calendar events from phone, so all you will have to do for getting all is enqueue GetAllCalendar event and worker will do all for you including progress reporting. If you want to write own application using this new wrapper, you can look at example which is in sources. It shows all current possibilities, but it will be enhanced in future.

Lars Wirzenius: Quote: Blinkenlites und cursorblinken

While cleaning up the infinite mess that is my home directory, I found the following:
ACHTUNG! ALLES LOOKENSPEEPERS! Das Internet is nicht fuer gefingerclicken und giffengrabben. Ist easy droppenpacket der routers und overloaden der backbone mit der spammen unt der me-tooen. Ist nicht fuer gewerken bei das dumpkopfen. Das musclicken sichtseeren keepen das bandwit-spewin hans in das pockets muss; relaxen und watchen das cursorblinken.
This is, obviously, a play on the old blinkenlite thing, which I also found:
A C H T U N G ! ! ! --Alles Touristen und Non Technischen Lookens Peepers-- Das maschine control is nicht fur Gefingerpoken und Mittengrabben. Oderwise is easy schnappen der Schpriggenwerk, Blownfuse, und Poppencorken mit Spitzensparken. Der Maschine is Diggen by Experten only. Is nicht fur Geverken by das Dummkopfen. Das Rubbernecken und Sightseeren keepen das Cottonpicken Hands in das Pockets. So Relaxen und Watsch das Blinkenlite.
If I ever have an actual machine room, these will go on the wall.

8 May 2007

MJ Ray: Travelling to Debconf7

I've booked my travel to Debconf7. Here are some tips for anyone making the trip over land from England: There are cheap megatrains and megabuses from central Edinburgh to/from Manchester (train, weekdays) and Sheffield Meadowhall (bus, everyday) which give useful connections to points further south, avoiding London. Caledonian Sleeper Bargain Berths are now bookable, but Fridays go quickly (and seem to have gone for 15th). Similarly, there seem to be no cheap tickets left on the train up the Welsh border to Manchester for most useful dates. Find your "magic towns" for train tickets: stations where you can break long journeys to save money. They're often stations with more than one fast train operator, so these are usually old railway towns. For example, mine are Crewe and Derby from Somerset. Sometimes you don't even need to get off the train, but if you do change trains, you might be gambling on delays on the way to that town (if using timed tickets and so on), so allow enough time! Debconf's arrivals day (Saturday 16 June) is the European Day of Action Against Airport Expansion so arriving over land is a damn good idea, even without the CO2 reasons. (Debconf's last day is Pride Scotia - is all the silly scheduling deliberate?) Anyway, I think I'll have a bit of time in Manchester and Derby - anyone got tips on where to eat or what to see?

Martin F. Krafft: Linux pains #517: unregistering network devices

Somehow my network device does not want to recognise that it actually has a carrier. This being Linux (and not Windows), I thus decide to reload the driver, after taking down the network interface:
lapse:~# ip l dev eth0
2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:0a:e4:30:43:16 brd ff:ff:ff:ff:ff:ff
# notice: not UP
lapse:~# rmmod e1000
lapse kernel: unregister_netdevice: waiting for eth0 to become free.
  Usage count = 1
lapse kernel: unregister_netdevice: waiting for eth0 to become free.
  Usage count = 1
[...]
# goes on forever, uninterruptible; thus new shell:
lapse:~# ps u -C rmmod
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root      5624  0.0  0.0   1656   480 pts/2    D+   00:02   0:00 rmmod e1000
As we all well know, state 'D' uninterruptible sleep means: reboot. Especially since I cannot ssh into the box anymore (doh!), and su and sudo just end up in state 'D' as well, if I try them. So, on to reboot. Or wait, that doesn't work as the shutdown process will hang long before the filesystems get unmounted. Great. It's become impossible to argue that Linux is the more stable operating system Update: a few people responded with workarounds, ranging from use of watchdog to automate the reboot (this is my laptop, so it's not really necessary) to various combinations of flags to /sbin/shutdown or the use of sysrq to force the system to reboot without cleaning up or unmounting filesystems essentially the same as pressing the reset button. Ben Hutchings says:
I think this happens when the driver repeatedly attempts to fix an error condition and keeps scheduling future work (retaining a reference to the device) rather than giving up.
I thus ended up filing a bug against the kernel.

Nico Golde: newsbeuter 0.4

Ak just released newsbeuter-0.4.
Now I guess newsbeuter is the most feature-rich RSS reader available for text-mode. Not even raggle has more (AFAIK).

Here are the new features:
The support for extension script rocks, now you write shell scripts which generate output, newsbeuter uses as input for example!

I already uploaded the package to Debian unstable. While the buildds still compile, get it from incoming.

Michael Prokop: grml release candidates

grml 1.0 screenshot As formorer mentioned already we have new release candidates of grml: grml 1.0-rc1 with codename Meilenschwein is available as well as grml-small 0.4-rc1 with codename Springinkerl. We are proud to be able to present a 64bit version of grml as well: grml 64 0.1-rc1 with codename LiveShell which is based on the amd64 port of Debian. New features? Tons of new features. So what are you waiting for? Ah, that the mirrors are getting in sync, right. So grab the ISOs in the meanwhile from the master or the slave or even better use bittorrent (torrents for: grml, grml64 and grml-small) instead. We are waiting for your bug reports. 8-)

Gerfried Fuchs: Birthdaywhisper

Some small impressions of Sunday that made it the happiest of my life: spent the day with a very special person—good indian food for lunch—Spiderman 3 in the afternoon which I enjoyed quite a bit—meeting up with friends in the Metalab, have a nice chat and quick dinner—moved over to B72 for the concert of Grossstadtgeflüster which was absolutely great—received a "Sudoku for Dummies" book from Berk with whom I did Sudokus at lunch at work until he let the company—received a pink-fluffy handbag with matching riveted belt and a mini tartan skirt—received a Mermaid mousepad from Alex—received a Grossstadtgeflüster patch from Raphael.
Hope you don't take the list of some presents as belittling the others. It's just that these meant something special to me, not that I didn't enjoy the others. Some friends were still a bit puzzled about the tickets I bought—they tried to give me the money for it. They weren't aware of the try to at least thank them with them for that they were and are there for me in bad times, giving me support and strength when I need it. And I can say that most of them enjoyed it, even though I was distracted quite a bit... And be sure, this is what you get when you let me do some birthday arrangements on my own. ;)

7 May 2007

Ingo Juergensmann: Ubuntu: the new universal OS?

Well, when Ubuntu started it was said that it aims at the Desktop market. An enhanced Debian distribution for desktop users, so to say. In the meantime Ubuntu released Ubuntu LTS for servers and announced lately Ubuntu Mobile and Embedded Edition.
Apparently Ubuntu becomes a direct opponent to Debian: first the desktop, next the servers and now embedded systems. I wonder when Debian will finally react and make some changes in order to compete with Ubuntu, because Ubuntu is simply that: a competitor.
And a quite successful competitor, I've to admit! I'm recommending Ubuntu instead of Debian now for new Linux users and I'm using Ubuntu on an increasing number of machines (mostly laptops) myself. Such things like packages stuck in new queue for 2 months are driving me away from Debian slowly. I would like to know what the newly elected DPL is going to do about this problem of losing ground to Ubuntu? I'm just curious.... :)

Note: Yes, I know that "universal OS" is somewhat of an urban legend...

David Welton: Google Apps + Domain Registration

I'm impressed. Via Google Apps, I was able to register a domain (squeezedbooks.com - nothing there yet, though) for $10. But it's not just a domain, it comes with email, google calendar, and a bunch of the other google apps thrown in for free. That's a lot of stuff for ten bucks - especially for the large portions of the world where the currencies are appreciating against the dollar. The service does have some drawbacks though.

Gunnar Wolf: Nekkid city!

I did it.
We did it.
The whole lot of us did it.
And we liked it.
In fact, we loved it.
Today, Spencer Tunick held his long awaited session in Mexico City. I signed up a long time ago, yet could not believe this was really going to happen - And man, did it happen!
For those still wondering who is Tunick (lazy you, as with the first link, it becomes just obvious), he is an artist who enjoys gathering large crowds, getting them all naked, and photographing them. Some people (including me, until this morning) erroneously categorize him as a photographer - No way! Out of Tunick's own words, out of many comments I heard and read today (i.e. at El Universal's forum), I can assure you only a participant can feel Tunick's art - A sensation of togetherness, of freedom, of clean enjoyment, throwing out the denial and repression we have regarding ourselves and our society. I was quite skeptical. The Mexican society is well known for being conservative on many issues. Nudism in Mexico is basically something not even talked about. There are a couple of nudist beaches, but they are closely associated with relaxed morals and drug abuse, and are just not safe for, say, women on their own. Nudists are seen as sex-maniacs... And, yes, this is as far as it gets from truth.
As I said, not only did it happen here, but how! We were between 18,000 and 20,000 naked people in the Z calo, Mexico City's main square, the third largest square in the world. The previous attendance record for Tunick's works was at Barcelona, Spain, with 7,000 people. And the surprise is not just the number - I insist, it fills me with joy to recognize a positive change in my country, to recognize we are not that retrograde anymore.
Nadezhda and I were there, as many couples, groups of friends, even families (although, yes, people under 18 were requested not to come - they would be expelled if found). I think the main age group was people in their late 20s, but there were many people from every age group. We met people who travelled from Jalapa, Veracruz (5 hr away), to be here today. I read reports of people coming from Guanajuato (5 hr), Oaxaca (6-7 hr), even Durango (14 hr)! We met near the Z calo at 4:30 AM, as Tunick likes making his work with the early morning light. As you can imagine, and after quite a busy and tiring day, I feel like minced meat... So I'll leave this for now. I expect to come back to the topic in the next couple of days - But anyway: This was amazing. Incredible.

Enrico Zini: tg-override-sqlobject

Quirks when overriding SQLObject setters Let's suppose you have a User that is, optionally, a member of a Company. In SQLObject you model it somehow like this:
    class Company(SQLObject):
        name = UnicodeCol(length=16, alternateID=True, alternateMethodName="by_name")
        display_name = UnicodeCol(length=255)
    class User(InheritableSQLObject):
        company = ForeignKey("Company", notNull=False, cascade='null')
Then you want to implement a user settings interface that uses a Select box to choose the company of the user. For the Select widget to properly handle the validator for your data, you need to put a number in the first option. As my first option, I want to have the "None" entry, so I decided to use -1 to mean "None". Now, to make it all blend nicely, I overrode the company setter to accept -1 and silently convert it to a None:
    class User(InheritableSQLObject):
        company = ForeignKey("Company", notNull=False, cascade='null')
        def _set_company(self, id):
            "Set the company id, using None if -1 is given"
            if id == -1: id = None
            self._SO_set_company(id)
In the controller, after parsing and validating all the various keyword arguments, I do something like this:
            user.set(**kw)
Now, the overridden method didn't get called. After some investigation, and with the help of NandoFlorestan on IRC, we figured out the following things:
  1. That method needs to be rewritten as _set_companyID:
            def _set_companyID(self, id):
                "Set the company id, using None if -1 is given"
                if id == -1: id = None
                self._SO_set_companyID(id)
    
  2. Methods overridden in that way are alsop called by user.set(**kw), but not by the User(**kw) constructor, so using, for example, a similar override to transparently encrypt passwords would give you plaintext passwords for new users and encrypted passwords after they changed it.

Next.

Previous.