Search Results: "sf"

11 May 2007

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 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

9 May 2007

Simon Richter: Whee, it works.

The dirty work is done, and I have successfully built a busybox that links against uClibc. what is so special about that, you ask? Well, the toolchain I used is the emdebian ARM cross compiler, and the uClibc was built with dpkg-buildpackage, converted to a cross -dev package using dpkg-cross and then installed with dpkg. So the final step, providing a compiler alias, is a two line shell script away. You can use uClibc by either passing the -uclibc command line option to the compiler (in all stages), or by invoking the compiler using the arm-linux-uclibc-gcc alias. I am thinking about uClibc++ as well, however that will require additional tuning.

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. :)

8 May 2007

Cameron Dale: May-08-2007

The first release is complete. You may now download debtorrent version 0.1.0 from the alioth project file list. Some notes: Here's the changelog:

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...

Joey Hess: re: online shopping

Pete Nuttall rants about how online shopping sucks. I agree that it has problems, but the core ones are perhaps not the problems he identified. Pete argues that while "in a real shop, you hand them their goods and they carry it away", fulfilling an order is much harder for online retailers. It is, but it can also be much easier for a shopper, especially if you want to buy something not available locally. But a real benefit of online shopping is that delivery happens asynchronously; that you don't have to hand the customer their product on their way out the door. This lets my sister find native plants on her property, put them up for sale, and only dig them up when she gets an order. It lets Cafe press and many smaller outfits create customised products on demand. It lets me shop at 2 am. Asynchronousity is good. Pete thinks that needing to have a paypal account is a problem, comparing it to needing to open a new bank account to make a purchase. Of course, this ignores the fact that once you get the account, you won't want to buy from many online merchants who don't accept paypal. As someone who's worked on credit card processing backends for random online merchants, I know that I don't want to give my credit card account to a random merchant if I can avoid it. This, coupled with the ease of use of not needing to enter all my purchase information every time, means I'll chose a merchant who accepts paypal over one who doesn't, nearly every time. The real problem is that both online shopping and payment promote centralisation. There's a pull toward centralising as much shopping as possible in one mega-site, because customers come to trust that site, and understand how it works. That's why there is only one amazon, and only one ebay (effectively). Handling payment is even more centralised, with just a few credit card companies and paypal. And I think that the problem underlying that is that our model of payment is all wrong. It's based on money immediately changing hands, with an overlay of a promise of payment; it should instead be based simply on a binding promise of payment. A merchant expects to get money transfered to their account as soon as the credit card processing goes through. That money really comes from the credit card company, based on a customer's promise that they will pay back that credit. The customer indicates this promise in the most stupid way possible: By entering a sequence of numbers that only they are supposed to know, but that is not unique to that purchase. As I've said before, it should be technically possible to kick out the credit card middlemen, and make payment much simpler and secure by changing the buyer's promise of payment into a legally binding, unique, cryprographically signed message that's sent directly to the merchant. But for this to happen, we'd have to change the model of payment, so that merchants don't expect to get money immediately, but instead asynchronously (the same as they ship things out asynchronously). Even harder, we'd have to somehow interest companies in supporting that. Since companies almost always prefer making money by promoting centralised systems, I don't have much hope of this happening anytime soon.

6 May 2007

Antti-Juhani Kaijanaho: Serendipity breaks an important Internet standard and is proud of it

Originally posted on 2006-04-16. Clarification 2006-04-19: The misfeature discussed below applies to feeds only, as far as I know, not to regular HTML serving. Update 2007-05-06: I have just learned that the option in question is Activate strict RFC2616 RSS-Feed compliance. I have no idea when it was added. While investigating (wearing my hat as the Planet Haskell editor/technician) John Goerzen’s Planet floods, I stumbled on a very strange misfeature in Serendipity. A HTTP/1.1 client can ask a server to send a file over only if the file has been modified since some date. What Serendipity does is send only those entries dated after the provided timestamp. Now, this might seem like a triviality, but it isn’t. The HTTP/1.1 feature is there to make proxy caching work. It is very important for caching that the file sent is the same, regardless whether the request is “since this timestamp”, or a regular request. Serendipity’s behaviour breaks this very important caching invariant! What’s more is that Serendipity’s developers seem rather proud of this misfeature. While the feature this misuse of HTTP/1.1 is intended to create is certainly useful, it should be implemented as a separate mechanism, and not by misusing HTTP/1.1 caching! (A separate protocol is probably necessary, perhaps specifying a URI query syntax for this is enough; obviously, one needs to get the aggregators to support this.) Serendipity will apparently have a configuration option to fix this, but it will be off by default. Serendipity users, upgrade (as soon as it is possible) and mark that option On, to remain compatible with the rest of the Internet.

Evan Prodromou: 15 Flor al CCXV

Today is my one-year blogging anniversary. I started this blog on Journal/15 Flor al CCXIV, kind of trepidatiously and with ambiguous intentions. Now, a year later, I feel much more confident in the format and clear in my purpose. I've varied between an almost maniacally consistent one-post-per-day regimen to a more impressionistic, when-I-feel-like-it once-a-week schedule. I'll admit that I'm happier with the more frequent update schedule; I feel like I deliver more to the reader that way. I think the main thing I've enjoyed from having this blog has been the personal satisfaction in frequent and informal writings on my own schedule and to my own whim. Working with wikis makes a lot of my life about careful collaboration and consensus gathering, and having a place where I can speak out with my own voice on my own thoughts is really refreshing... and addictive. Most of all, I've enjoyed how having this blog has connected me with new people, and with friends I already had, in new and different ways. This year of blogging has been contemporaneous with a deepening of my connection with the Montreal technology community, and I can't help but think there's some causation involved. I think that my blogging is bringing me into a common medium and a common language with a group of people I want to spend time with. I've had some side effects I didn't anticipate, either. My family has started reading this blog, which means they know how I'm doing and what I'm up to more often than when I do once-a-week phone calls. And my more extended family -- aunts, uncles, cousins -- also read regularly. I can only wonder what they think about my complaints over various, say, Scheme module formats, but they seem to like it, too. Even Maj's mother reads it (hi Rita!). I think that m-c's 10 reasons to blog really hold true for me; it's good reading with a year's perspective behind me. I'm looking forward to the next year and what it has in store. tags:

Great day It was actually a great day for a blogiversary. Last night, Maj went out with her friend Sam for Sam's birthday, so this morning Amita June had a very quiet breakfast and then went out to Best Buy to do some shopping. I just bought a Canon MP600 printer, and toner cartridges weren't included in the package, so I had to go buy more. (Later, while configuring the printer, I found the toner packages in the bottom of the box. D'oh!) Amita fell asleep on the way home, so I just dropped her in bed. Maj and I walked through a brisk but sunny Montreal weekend afternoon down to the me dia offices, where Creacamp was already in full swing. There were lots of old friends and new ones, and the offices were light and airy and nicely connected. There was a talk by Guylaine Couture about her painted books, and by Luce Beaulieu about her awesome codesigner business, POSCH. Both really interesting. Of course my favourite talk was Anne-Marie's, about her great video series Music Spins the World (or La musique spin le monde). It's an incredible first-person series about her travel adventures with various rockstars to obscure and dangerous parts of the globe. A-M is becoming quite the rock diva, but I'm glad she's staying down-to-earth about it. You can check her work on 33mag.tv. Tonight I had a great time, too. Alex Roberts and Jon Phillips of Creative Commons are in town for the awesome Libre Graphics Meeting being held at the cole Polytechnique this weekend. The event seems great -- bringing together developers from all the great Open Source/Open Content graphics projects together in one room to talk. Jon and Alex met me and Niko at Concordia to see the Montreal premiere of the Helvetica movie. Helvetica is a great documentary about the history of this ubiquitous, unassuming font that epitomizes the modernist view of typography and design. The movie gives Helvetica a personality all its own, and in the process explicates the history of graphic design over the last fifty year. It also introduces us to a rogue's gallery of design and typography legends, all of whom are amusingly and passionately opinionated about design in general and Helvetica in particular. It has that characteristic of great documentaries: it illuminates the camera obscura of global culture through the pinhole of its narrow subject, a single font. Incredible. After the movie the four of us went to La Banquise, the landmark 24-hour poutine parlour right near my house. Alex and Jon indulged deeply in the local specialty -- they each got poutines with lots of bacon and ground beef -- and we all chatted about San Francisco, Web culture, Creative Commons and the cast of characters that surround it. A great, fun time. tags:

4 May 2007

Russell Coker: school rating

The web site http://au.ratemyteachers.com/ allows Australian students to rate their teachers. Ratings are anonymous and give teachers a score out of 5 as well as allowing students to comment on teachers. The Sydney Morning Herald has an article about the site that describes the actions that the NSW Department of Education and the NSW Teachers Federation are taking to block the site. The solution to this however is really quite simple. There needs to be a formal method for students to rate their teachers which will be used when it comes time to give pay rises to good teachers and dismiss or transfer to non-teaching duties the teachers who can’t do their job. I encourage students to submit essays and debate topics about the anonymous news-papers published in the Soviet Union and other repressive states, why they were necessary (because criticism of the government was prohibited) and why they were morally right (a system with no method of correction will inevitably do bad things). Then teachers will have a choice of supporting the actions of the Soviet Union or the use of ratemyteacher.com, it will be interesting to see which option they choose. I think that it’s most likely that they will take the hypocritical path and support anonymous newspapers in the Soviet Union while attacking such free speech in supposedly free countries. It’s interesting that an article on the failures of Mentone Grammar has just been published. Maybe if Mentone had been listed on the ratemyteachers.com site the Taylor’s would not have made the mistake of sending their son there. Or maybe if the Mentone senior staff had been reading that site they would have been able to correct the problems before they became cause for a legal dispute.

MJ Ray: Software Patents: To search or not?

I thought the idea was that we shouldn't search for invalid patents, because ignorant infringement is punished less severely than wilful infringement? Joe Buck replied:
"Well, yes, there's the matter of triple damages for "willful infringement". That only kicks in once a court has found you liable, but it's an issue. There's been a change in the last few days though; a recent US Supreme Court decision should lead to a very large number of software patents getting tossed (though unfortunately they would have to be challenged one by one). My take: free software developers shouldn't go searching for bad patents. But people like the EFF and the SFLC should, the better to get those bad patents tossed."

3 May 2007

Ian Murdock: Come see me at CommunityOne next week

I’ll be making my first big appearance as a Sun employee next Monday at CommunityOne in San Francisco (this is the day before JavaOne). In addition to participating in the keynote with Tim O’Reilly, Rich Green, and Tim Bray, I’ve put together a track called Linux vs. Solaris? designed to show that the gap between Linux and Solaris isn’t as wide as one might think:
All too often, technologies are pitted against each other in the popular imagination, and Linux and Solaris are no exception—”Linux vs. Solaris” certainly does make a catchy soundbyte. Despite the juxtaposition, Linux and Solaris have much in common—both are open source, have common ancestry, and are similar enough that both users and developers can move back and forth between them with comparative ease. The “vs.” mentality is caused as much by lack of understanding of the “other side” as anything else. In this track, we will focus on the similarities between Linux and Solaris rather than the differences, the goal being to increase understanding of Solaris among Linux users and developers and vice versa. Where we discuss differences, these differences will be expressed in terms of “how we can learn from each other”. We will also discuss the migration up the stack of developer platforms and address the question, “Do operating systems still matter?” The ultimate goal of the track is to change the conversation: Not Linux vs. Solaris, but open vs. closed.
The track includes four sessions. I’ll kick things off by answering the burning question: “What’s a Linux guy doing at Sun?” Next, Jeff Bailey of Canonical and Bart Smaalders of Sun will take us “inside the sausage factory” to show how Ubuntu and Solaris, respectively, get made. Next, Don Kretsch of Sun and Joe Little of Stanford will show us Solaris Express Developer Edition and Nexenta, two very different takes on OpenSolaris. And last but certainly not least, Josh Berkus, Robert Lor, Harpreet Singh, Tim Bray, and Greg Luck will highlight why the OS still very much matters even as software development moves up the stack. Of course, there are a number of other great tracks as well. If operating systems are your bag, you should also check out the OpenSolaris track. Fortunately, my times don’t overlap with Ben Rockwood’s introduction to OpenSolaris, nor will I have to miss the opportunity to see the amazing Bryan Cantrill, Adam Leventhal, and Mike Shapiro educate, entertain, and gesticulate wildly! If you’re in San Francisco or the Bay area or are already planning to be at JavaOne, you should definitely plan to attend CommunityOne too. Register today! (P.S. - It’s free!)

Martín Ferrari: Feisty Fawn

Last Saturday, I went with many friends to the local installment of FLISOL, a big install fest done across Latin America on the same day. It was a nice event, seeing a lot of people from the local community helping newbies to install their first GNU/Linux. Most of the installations were -not surprisingly- Ubuntus. I was very surprised of Feisty: the installer is really simple and powerful for desktop users, and once installed, there are a lot of things that I'd really like to see in Debian. But, everything cames with a price. Don't ever try to install it without enough RAM (the site says 256MiB). The graphical installer won't even boot (OOM killer kills the machine for you). If you download the alternate CD, which uses d-i, it will seem to work, but you'll notice a system which is a trashing hell: for starters, the restricted modules are kept in a tmpfs, eating over 30MiB of RAM! I tried unsuccessfully to trim it a little to make it work on a old laptop of a friend (only 64MiB of RAM), removing the tmpfs, killing daemons and stuff... But not even xfce will run on it: when I opened a terminal the whole X session will crash instantly. So now, I'm starting a etch install on it. It will involve some work to make a end-user-friendly desktop, but I'm confident there is a way of making it work. Ubuntu just works in most cases, but when it doesn't, it's much more difficult to tweak. YMMV.

Erich Schubert: Magic numbers

When reading this number
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
I thought it was the fingerprint of a GPG key.The first time I came across it, it was encoded in a puzzle; not a particularly difficult one (what key is inbetween of F8 and F10 on your keyboard?).Turns out that this number can be used to decrypt most HD-DVDs produced so far.No, you can't really think you have a copyright on this number? You could have it as a registered trademark, I guess. But I think everybody will be using it to refer to you. :-)From a crypto point of view, it was just a matter of time until this number leaked out. And in fact, the HD-DVD encryption was designed to handle this cases (but it wasn't used correctly). Face it: cryptographers have been telling you right from the beginning that your encryption will be broken by it's very nature (remember: you are shipping decryption keys worldwide in your HD-DVD player devices).[Update: others thought it might be an IPv6 address maybe?][Update #2: Google thinks there are about 300k pages with this number. Maybe we can stop this meme now? :-)][Update #3: it was pointed out to me that nobody claimed to have copyright on this number, but that it is a device to cirumvent encryption and thus violates the DMCA. And that this is similar to distributing magic markers that could be used to 'crack' a famous CD protection used by Sony some time ago...]

2 May 2007

Cameron Dale: May-02-2007

Well it's been a busy week. Work is truly underway, as I have just about finished the first release of debtorrent. The first step in the process, adding variable-sized pieces the size of each file, has been completed and seems to work properly. I've tested it using a single seed, and with 3 downloaders. All were able to contact each other, and all downloaded the entire archive successfully. The archive I tested it on was stable/contrib/i386, as it is only 112MB. There's just a few more modifications to make to polish the code, and then the 0.1.0 version of debtorrent should be released in the next week. It would be out already, but I've been plagued with a cold for the last week. I had a lengthy discussion with Anthony about the eventual need for some modifications to the apt-ftparchive program to support some of the proposed advanced debtorrent functionality. More investigation is needed on the implications of these changes, which will probably require larger Packages/Release files to be generated, and some extra computation time. To collect information about these changes and their implications, I've created a new wiki page.

Biella Coleman: Blogging Feminism: (Web)Sites of Resistance

Blogging Feminism: (Web)Sites of Resistance
As blogging has more widespread interest, especially vis- -vis electoral politics, feminist activity on the internet has remained marginal to the mainstream. Thus, we were thrilled when Gwendolyn Beetham and Jessica Valenti proposed “Blogging Feminism: (Web)sites of Resistance” as a Scholar and Feminist Online journal topic, as well as a theme for a Barnard Center for Research on Women panel discussion. As Beetham and Valenti point out in their introduction, all too much feminist activity exists in the blogosphere invisibly. This theme runs through many of this journal’s contributions, and is taken up directly by Clancy Ratliff and Tedra Osell in the section entitled “Women and Politics in the Blogosphere.”

Wouter Verhelst: Dear lazyweb,

I'm currently setting up a drupal-based site. While it's working pretty well and has allowed me to get most things done that I needed doing, there's one remaining issue that would need resolving. I tried asking for suggestions on the drupal support mailniglist and on the #drupal-support channel on freenode, but I haven't received a solution thus far. Hopefully someone reading one of the planets I'm on knows the answer. The site would need to be multilingual. That is to say, not just the interface, but also all static content and some of the nonstatic content would need to be translated in two (at first) languages (perhaps more will follow in the future). Using the i18n drupal module, I have been able to create alternate-language versions of some nodes, and enable a language chooser, allowing a visitor to choose a different content language for the site and seeing the site translated. However, there is one issue that needs to be resolved: the menu. The i18n.module does not create an alternate version of a translated node; rather, it creates a new node. This node then is linked to the original node by way of some extra table that the i18n.module installs. As such, both versions of the same content will have a different node number. To give a concrete example, the Dutch version of the "about" page on the site I'm creating is node/2, whereas the English version is node/10. Since you might want to review the English version of a node even if you request the site in Dutch, you do not unexpectedly get the Dutch version anyway if you request node/10. Since the node number is part of the URL of the node, this makes it impossible to create a link to "the about node, in whatever language is appropriate". The i18n module also comes with a "i18nmenu" module, which allows one to translate a menu item's description using gettext. This works, but it has one fatal flaw: it does not allow to change the target of the link. As a result, and given the above, it's impossible to create a menu item for "the about node in the current language, whatever that means". In an effort trying to work around that issue, I've come up with a number of things. Unfortunately, none of them seem to work to satisfaction. At this point, I'm effectively out of ideas. If anyone has a solution (or can tell me why it isn't possible), I'll gladly hear it, either as a comment on my blog or by mail on w@uter.be.

MJ Ray: Software Patents

james wrote:
"I came across your page. I wanted to suggest adding a link to http://www.FreePatentsOnline.com This is a free patent searching site with PDF downloading, world patent searching, alerts, and other account functions -- all free. It is a great resource for intellectual property professionals, reearchers, students, small businesses, and anyone else who needs such legal or scientific information."
I thought the idea was that we shouldn't search for invalid patents, because ignorant infringement is punished less severely than wilful infringement?

1 May 2007

Simon Law: Party on for Net Freedom


CFP 2007
Originally uploaded by sfllaw.
Tonight, I'm going to be attending an open panel discussion at Computers, Freedom, and Privacy 2007. It's completely open to the public and will be a discussion on freedom on the Internet. There are going to be a number of famous people there, including Whit Diffie, Peter Neumann, Anita Allen, Bruce Schneier, and Ed Viltz. I'm not sure exactly what they're going to be talking about, but I bet it'll be thought-provoking. At around 20:30, I'll be down at the CFP Welcome Party, which is basically a big fundraiser for Creative Commons and EPIC. You've probably heard me mention Creative Commons a few times, because they're a big proponent of having a healthy body of creative work that artists can draw from. Almost all of the art I produce is available under a Creative Commons license, which I've chosen so that you can share, copy, and modify it. So I'm more than happy to socialize with interesting people and to support a good cause. Sounds interesting? You bet! How do you get there? Well, the panel is at Hotel Bonaventure, and starts at 18:30. Details here. Then the welcome party is at 20:30, at Austin's place. Details here. For directions to Austin's house, send me an e-mail. Austin's address is on this flyer. If you're leaving from the Hilton, try these directions. Hope to see you there!

Enrico Zini: recovering-fat-partition

Recovering a corrupted FAT partition A friend has seen his FAT partition in his USB key become unmountable. Here's how I recovered it. Analysis:
  1. Make a dump: dd if=/dev/sdb1 of=partition.img
  2. Have a look. I like mc for this, as it has a nice hex viewer and editor (F3 to view, then F4 for hex view; F2 would then allow hex edit, if needed).
  3. Turns out that the initial part of the partition has been completely overwritten by 0xff bytes. After some point (around block 224), the 0xff bytes end and there seems to be a FAT structure (easy to identify because it contains sequences of increasing 16bit values).
It seems that the damage is only limited to filesystem structures. I should be able to recover most data by regenerating the filesystem data and hoping that at least the second FAT is still intact. Solution:
# Make a copy of the partition
cp partition.img partition1.img
# Reformat it: that gives us the bits of filesystem structures we need
mkdosfs partition1.img
# Graft together the two parts
dd if=partition1.img of=partition2.img count=224
dd if=partition.img of=partition2.img seek=224 skip=224
# Tidy up the result, telling dosfsck to use the 2nd FAT.
dosfsck -rw partition2.img
# Mount and check what's available
mount -o loop,ro partition2.img /mnt
Yo! Everything was there again. When I teach about standard Unix commands, it takes a while for people to realise all the powerful things you can easily do with them.

Next.

Previous.