Search Results: "spa"

13 September 2006

Simon Richter: Compressor generators

In a project, I need two "blobs" compressed; the first one is the usual mix of ARM code, Thumb code and data, the second is a piece of firmware to be uploaded into an FPGA. Both of these show obvious signs of redundancy (the ARM condition code "always" appears quite often, and FPGA blobs have a lot of zeros). So I thought that it might be an interesting idea to use the extra knowledge we have to build a better compressor. The easy answer, of course, would be zlib and a static table that emphasizes on the typical distribution of ARM code, however that is still quite suboptimal, for example we know that the heightened probability for the "always" condition code is only given in the condition code field, so we have to look at words, which is not very zlib-ish. Also, the redundancy goes further. Except for very few exceptions, registers are a lot more likely to be used as source operands if they had been a destination operand since the last unconditional jump that was not a forward branch. That much intelligence comes at the price of making the decompressor pretty complex, though, which I'd like to avoid. One of the main reasons for actually thinking about this stuff is that zlib's inflate code is too big for the 16kB space I have, and compiling it in Thumb mode leads to an ICE. So complex decompression code is pretty much a non-option. Almost the same thing goes for the FPGA data. The gzipped data is still more than 50% of the uncompressed size, so I believe there is room for improvement here as well. Being able to use the same decompressor is a bonus, of course, but as long as the decompressor itself compresses well, a minor issue.

12 September 2006

Uwe Hermann: Democracy Player 0.9.0 - one step closer to world do... a very cool Internet video/podcast application

Democracy Player 0.9 screenshot Democracy Player 0.9.0 has been released yesterday, which has been announced in quite a number of places already, e.g. Boing Boing. It's available for Mac, Windows, and Linux; if you're on Debian unstable the installation is as simple as apt-get install democracyplayer (I uploaded the new packages yesterday, they should have reached all mirrors by now). If you want to know what this is all about, but you're reluctant to install yet another program, check out this screencast (MOV, 37MB) which shows the basic functionality and user interface and discusses some of the new features... I think you'll like it. You can use it for all kinds of video blogs and podcasts, it'll download and play almost anything with an RSS feed.

Paul van Tilburg: Homepage Update

Next to upgrading my journal software I have also replaced the software powering my normal homepage. I used to use Hobix for that, but I have replaced it with Webgen. Don’t get me wrong, both are good pieces of software, but Hobix is just nicer for writing a journal and Webgen for generating webpages from simple formatted content. But in the end, both produce nice static HTML pages! :-) Note that my normal homepage is emptier than it used to be, but given the low threshold to add something I am sure more will come soon. I also updated my style a bit to synchronize the look of the pages produced by both frameworks, but it was quite trivial in the end.

Jaldhar Vyas: Earlier Attempt To Map Out Regional Espa a Founders As Locations Alter. Faro Explains Lapse.


Faro points out that the map of Spain in my previous post is obsolete. A more uptodate version can be found here. From that link I also discovered that calling Extremadura a province is wrong. It is an "Autonomous Community" which consists of two provinces: Badajoz and Cáceres. The latter is where the place we were staying, Casar de Cáceres, is located.

11 September 2006

Jon Dowland: Debconf localteam meeting

the outside of the teviot
This weekend gone I was up in Edinburgh for the debconf7 localteam local meeting. This was a mammoth 2½ hour meeting with a fair degree of parallel discussion going on. The minutes are up now. I used my iRiver's built-in dictaphone to record the meeting and this has proven very helpful writing up the minutes. I am actually quite suprised at both the quality of the result and the fact it's battery survived recording, encoding and writing to disk the whole affair, with plenty of capacity to spare. The file came to 70MB. Apart from the meeting, we got to visit the proposed venue and Neil, Phil and myself sampled some possible accomodation. There was generally a very positive feeling about things: Neil (who has attended a Debconf before: I haven't) seemed very happy/relieved when he saw the Hostel I was staying in and everyone was agreed that the Teviot was a fantastic venue (although networking and power should be fun). Oh and there was lots of beer :) Kate came up on the sunday and met us for some coffee before we went off and had a lovely meal at David Bann vegetarian restaurant. There are some photos of the weekend up on flickr, or at least there will be, when I've finished uploading :)

Isaac Clerencia: Wanna work in Spain?

Hi there! My company is looking for people with Perl and Unix (preferably Debian) administration skills to continue working on eBox, a free software thingie we’re developing (check out the web to learn about it). Fluency in English is also required. Being an EU citizen would be great to avoid immigration hassles, although I guess we would be able to make it work otherwise. The job offer would be for one year, with high chances of extending it for more time if you’re willing to do so. You would have to come and live in Zaragoza, Spain. Zaragoza is a 600000 inhabitants city in northern Spain, between Madrid and Barcelona. We can help you find housing, or you can even share my flat with me if you dare (five minutes walk to our office), for a reasonable rent (below 15% of your wage for sure). You would be working with 12 young people (around 26 years old), all of us free software enthusiasts. We play in snow (yeah, we also have sunny summers), have nice decorations in our office, hang out together, … If you’re interested send me a CV to isaac@warp.es and feel free to ask for more information via e-mail. Best regards

Joachim Breitner: BIOS vs Linux created Partition Table

While trying to introduce Linux at the SOS Hermann Gmeiner International College in Tema, Ghana, I encounted a very strange problem. Here are the results, I spare you the list of things I tried to find out:The BIOS on the Gateway PCs they use here, with the id bf86510A.15A.0066.P13, will freeze when it encounters a disk with a linux created partition table. It will do so before even deciding what to boot, so you can't boot from CD then. It does not matter if the orignal MBR is on it, or the one created by Window's fixmbr, or lilo -M, or install-mbr, or grub. Changing the partition table using Windows XP (diskpart in the recovery console) will make the BIOS boot nicely. This only happens with the hard model drive that came with the PCs, after replacing it with a different model any partition table is ok.The only way to keep working with the hard drive is to power the computer without the hard drive attached, wait until it is done detecting it (for example wait until the BIOS complais about the lack of harddrives), then plug it in while the computer is running. Of course, the hardware is not meant to be used this way, and it might destroy everything, so don't try this at home (unless you have to). For me it was the only way, since when I know boot from a CD (Windows Installation Disk, Knoppix, FAI-Installation CD, anything that does not rely on BIOS information regarding the hard disks), the hard drive can be used just fine...So how did I get Linux on it in the end? One can say I tricked the BIOS: I made the automatic Linux installation add another, unused and small partition at the end. After the installation is done and I can't boot regulary any more, I use the mentioned power trick to boot the Recovery Console of a Windows XP installation CD, to delete the unused partition with diskpart. This makes Windows write the table, and thus make the BIOS happy. Unfortunately, this kills grub, so I have to boot any Linux boot CD, chroot into my installed system and run grub-install...If anyone has encountered similar problems before and maybe found a nicer solution, which maybe could bring me back the "A" in "Fully Automatic Installation", or at least frees me from the need to make IDE hot-pluggable, I'd be grateful.

Christine Spang: drinking from a fire hose

Fire truck on top of MIT's Great Dome A closer view of the firetruck days of class survived: 3.5
psets handed in: 1
non-pset assignments completed: 1
great dome hacks viewed: 1 I didn’t even catch the September 11th tribute part of it until I saw the flag in Killian Court. Apparently MIT firehose-mentality is taking over my brain. Flag at Half Mast in Killian Court There are some great pictures of East Campus’s (the dorm I live in) orientation rush also. Having been here all summer and then having had a week and a half of orientation and greek rush before starting classes, the first couple real days have been a little slap-in-the-face boggling. Oh, the party is so over.

Steve Kemp: You ll not know how you ve betrayed me

Registering “debianadmin.com” will not make me love you. But I’ll turn a blind eye if it means that you’ll stop spamming debianhelp.co.uk everywhere …
If nothing else this shows that rel=”nofollow” was worth adding to my sites, even if it is a horrible hack.

10 September 2006

Andree Leidenfrost: Vista rocks, AIGLX/Compiz is so, so

Nothing like the above to get a bit of an audience, I guess... ;-)

I tried the freely available (i.e. no Passport account or other crap required) pre-RC1 build of Windows Vista sometime last week. Whilst I didn't delve all that deeply into new stuff that's under the bonnet, I played around with the new Aero GUI a bit. And I must say that I'm somewhat impressed. I thought the Luna style of XP was totally, utterly and completely ridiculous when I first saw it. Compared to that, Aero is quite neat and subtle. I rather like the frosted glass effect of the window title bar, the way windows are stacked at an angle for easy selection, the glowing window buttons and a few other bits and pieces.

I've since wiped that disk and installed Fedora Core 6 Test 2 to have a look at AIGLX/Compiz. I thought I use Fedora since this is where AIGLX originates. I'm not at all excited about XGL because it appears to pretty much require proprietary drivers - not good. (I've actually got a Radeon 9600 which has experimental but AFAICS working 3D acceleration in Xorg from version 7.0). So far, so good. I got the cube thing working, wobbly windows, window and menu shadows, minimise/restore window effects, the 'film' desktop chooser, transparency on move and likely more that I can't recall right now. It's all working and not crashing. The only issue is that it doesn't feel "natural" (for lack of a better word). Maybe it's because there is a bit of a lag when doing something for the first time or after a while, i.e. moving a new and large window or spinning the desktop cube. I certainly think that my Radeon 9600 card should be up to it - after all it spins the cube at break-neck speeds. When doing similar things on OSX or even Vista it feels like this is just what you do; with AIGLX/Compiz it more feels like "Look what I can do!" without that certain matter-of-course-ness. Or, to reveal my age ;-), it feels a bit like early eighties pop music that had just discovered the possibilities of digital synthesizers. (Also, and this can probably be considered a real bug, scrolling in Firefox is dead slow with AIGLX/Compiz.)

Having said all that, I'm surely and truly excited about the possibilities of a vectorised desktop and think it's got oodles of potential. And I'm equally surely and truly appreciating the work people have put into this. I've merely come to realise that the blurred videos on youtube may not necessarily convey the current state of affairs with total accuracy.

Jaldhar Vyas: Debian I18n Meeting

I've spent the last few days in Spain, representing Debian-IN at a meeting on Internationalization sponsored by the government of the province of Extremadura.
Extremadura It has been very productive and informative. Debian should be proud of the attention we pay to internationalization (for the Indian languages at least we are ahead of any other distro and even Microsoft IMO.) If we keep up the effort we can truly deserve to be called the Universal OS.

8 September 2006

David Moreno Garza: damogzito cocktail

How to make a damogzito
Ingredients:
5 parts pride
5 parts ambition
1 part instinct
Method:
Blend at a low speed for 30 seconds. Top it off with a sprinkle of sadness and enjoy!

Username:

Personality cocktail
From Go-Quiz.com

I’m sorry Martin: My life is full of trivialities and memes. :(

Martin F. Krafft: mutt tagging

Dear lazyweb: I love mutt, my faithful mail client for almost a decade now, but I think I've reached its limits. Not that mutt isn't doing fine, it's more my way of organising mail that's no longer working for me. To give a short overview: I receive all mail in a single account and filter messages to folders in a hierarchy. My filter set spans several thousand lines and has been growing for seven years now, the last "refactoring" was in 1999. When browsing mail, I either delete messages (for list mails mostly) or save them to the read folder when I am done with them. The hierarchy is mostly arranged by field of endeavour, and then subdivided into specific topics. For instance, I have =private/dudes/..., =debian/pkg/mdadm, =ul/phd, and =work/clients/.... I currently face two major problems with this approach:
  1. Folders just don't cut it anymore. For instance: with my job, research, and hobby all somewhat connected to Debian, most messages I receive don't belong into one folder any more than they should be in another. What I want is effectively what gmail and several of the GUI clients do: any given message can have a number of tags, and virtual folders act as filters to display only messages with a certain tag.
  2. Having a single sent and read folder for all worked for a while, but it's long been a major pain. What I really want is for sent and received mail to sit right next to each other in all cases, ideally based on tags as well.
I found mutt's X-Label patch (the Debian mutt package includes it), which seems to go in the right direction, but it's not exactly what I want (yet). For my purpose, it adds a selector ~y to use in searches and when limiting the display of a mailbox. Thus, I could implement virtual folders by saving all mail to a single folder (thanks to the header_cache patch), then executing l~ydebian to see all messages tagged debian. The problem with this approach is that it uses a functionality that I already use extensively: limiting. I like the thought of being able to use tags as filter criteria, but I don't want to depend on them. For instance, if looking at all messages with the debian tag, and then filtering those with mdadm in the subject, I currently have to hit l<space>~s mdadm (taking care to preserve the label limit), and I cannot use the simple_search functionality anymore. In the end, what I'd want is to be able to use the folder syntax for tags. Specifically, I think it would be cool to have folders as they are currently, but if you try to change to a folder that does not exist, or prefix the folder with vfolder (=vfolder/debian/mdadm), it would instead display the main folder with the different path components used as label filters. A syntax for logical OR would also be nice. All this should happen without affecting the limit functionality of mutt. I don't think this is currently possible, but before I start to pretend to plan my intent of eventually thinking about what it would take to have a go at coding a patch, I'd welcome your feedback. I can't imagine that I am the only one wanting mutt with tags... NP: Log / Every Time a Bell Rings, an Angel Gets His Wings Update: people have pointed me to Gnus and Mairix. I'll have to check out Gnus, but I wonder whether it can be used the way I do mail: currently, I use offlineimap (my favourite software award 2004-2006) to synchronise my Maildirs across a total of eight machines, so that it does not matter where I read my mail -- it's totally synchronised. I'll give Gnus a whirl soon though. Manoj already showed it (off) to me, and several other Debian developers seem to swear by it, so it can't be all wrong. With respect to Mairix, I know that tool; it basically populates folders with symlinks according to search criteria. One could say it instantiates virtual folders. The problem I have not been able to solve yet is quite simply that operations such as moving messages to other folders then operates on the symlink, which is not what I want, for obvious reasons. Even just using mutt to edit them results in a copy made, so the symlink association is lost. I'd be happy to be shown how to use the tool to make it do what I want. NP: Led Zeppelin / Led Zeppelin I

Evan Prodromou: 22 Fructidor CCXIV

One of the interesting topics that came up during this last summer at various conferences -- dare I call it the Summer of Wiki? -- was the idea that experienced wiki community members need to share our cultural values and community-building experience with new wiki sites and developers. Christoph Sauer coined a term for this effort: Wiki Ohana, based on the Hawaiian concept of wp:ohana, or extended family. I was glad to see that the tireless Mark Dilley has started a new wiki at http://wikiohana.net/ to organize the Ohana effort. I plan on taking some time to work on this site; I think it's going to be crucial for riding the publicity wave that wiki is on right now. tags:

Wikitorial triumphant Last summer, the Los Angeles Times tried an extremely interesting experiment in creating a wikitorial, or wiki-based editorial. The experiment was a notorious disaster: due to excessive abuse and fighting, the Times cancelled the experiment before publishing the results. The entire experience stained wiki's reputation for an entire year. Fast forward to 2006: oh, how times have changed. Ryan Singel of W I R E D magazine put up a 1000-word article about wikis on a wiki at SocialText. He invited the general public to edit the article. The result, which is a reasonably cohesive article on wikis, was published in wired under the title Veni, Vidi, Wiki. It's not the best article in the entire world on wiki, but it's not half bad. Some people have been down on the project -- mostly wiki businesses who felt they didn't get prominent enough coverage -- but I think that the bar was set so low by the LA Times that it's hard not to call getting to publication a success. Looking back, what were the possible factors that made the WIRED article work when the LA Times one didn't?
  • Point of view. The LA Times article was an editorial, while the WIRED article was ostensibly a news story. Editorials are intrinsically opinion-oriented. Wiki can work for expressing personal opinions, but it's not easy, and the result usually isn't a very good read. It's much better as a means for expressing agreed-upon consensus information.
  • Topic. The LA Times decided to use the extremely divisive issue of the war in Iraq as the subject of its editorial. How they expected to have a collaborative editing success with this topic is hard to understand. By concentrating on the wiki method itself, on the other hand, the WIRED article covered a much cooler topic that lent itself better to dispassionate discussion and consensus.
  • Shared goals. The Times tried to reach out to a mass-market audience that was extremely passionate and divided on the topic at hand. The discussion of the Iraq war had already largely degenerated to name-calling and demonization at that point; the people who were participating had more to gain from keeping the other side from getting a say than from getting their own opinion across. For the WIRED article, the audience was experienced wiki community members -- people who know and understand the technology and culture. They had a shared goal with WIRED and with each other -- to spread the word about wiki in a way that's easy to understand. Although Angela Beesley's point and Mike Cannon-Brookes's article correctly note that the increasing commercial interest in wikis did bring some baggage along, I think there was some common ground that participants could reach.
  • Organizational commitment. This, I think, was the key success factor. The LA Times posted their wikitorial as an experiment -- they dipped their toe in the water and pulled back as soon as the going got tough. As far as I know, they had no community management or leadership, and no seasoned wiki community members participating. On the other hand, Ryan Singel's article was hosted on SocialText, and SocialText has made a good business out of teaching companies and organizations the Wiki Way. They've got some of the best wiki minds around on their payroll, and it shows in their ability to manage a wiki project.
Although I think that these experiments are interesting, I don't think they make a very good measurement of whether wiki can work. Obviously, we have thousands of examples that wiki works (see WikiIndex if you need more convincing). I think that people's engagement with a wiki is proportional to their belief in the importance of their own work. If wikis are relegated to a tiny part of a Web site or publication, participants pick up on this de-emphasis and don't put much effort into the project; it's a self-fulfilling prophecy. I think that to be healthy, a wiki needs to be a major part of its parent project, if not the whole thing. That's why, I guess, WikiNews is going to continue to be more relevant and important than one-off wiki article stunts. tags:

Hyperscope I'm psyched to see that Hyperscope has achieved its 1.0 milestone. Hyperscope is the extension of wp:Doug Engelbart's ideas about hypertext and human intelligence augmentation into the technologies of today's World Wide Web. Eugene Eric Kim has been working hard on the project and gave a great demo of the tool at Wikisym in August. Congratulations to EEK and the entire Hyperscope team! tags:

Dirk Eddelbuettel: More Comcast fun

One of the many recurring themes on this blog is the amount of trouble we're having with Comcast. So Ladies and Gentlemen, here is a new one: Having been forced to use the ISP as a smarthost for delivery (as reverse lookup is not provided for residential service), I depend on Comcast to deliver my mail. But look what we just got for attempting help a user on the quantlib-users list:
Reporting-MTA: dns; comcast.net
Arrival-Date: 8 Sep 2006 1:46:30 +0000

Final-Recipient: rfc822;
Action: failed
Status: 5.1.0 MAIL FROM: 550 REPLY:
550-"rejected_because_your_SMTP_server,_204.127.225.94,_is_in_the_Spamcop_RBL.
Diagnostic-Code: smtp; Permanent Failure: Other address status
Last-Attempt-Date: Fri, 8 Sep 2006 01:46:36 -0000
So a benefit of handing over around $500 per annum is that I do not get my mail delivered because the goods folks at sourceforge.net now think ATT Broadband aka Comcast [ to whom the address mail server 204.127.225.94 resolves ] is a spammer. Someone please remind me why I haven't switched to Speakeasy?

7 September 2006

Jeff Bailey: Lunchtime phonecall...

... from [info]auzure_skies. She felt the baby move for the first time today!

This reminds me somewhat of getting married, looking around at the congregation, at Angie, at the Chaplain and wondering at the crazy dress-up party. I imagine this will all feel "real" one day, but for now it's this sort of crazy surrealistic dream.

Perhaps it'll feel more real when we go for the ultrasound. That will hopefully be in the next couple of weeks.

6 September 2006

Uwe Hermann: User-friendly SELinux policy editing in vim or Eclipse (using SLIDE)

SLIDE screenshot
SELinux file in vim After you have installed a minimum SELinux setup in QEMU, you might want to tweak and edit the policy to fit your needs. A nice, graphical method to do so is to use SLIDE, written by Tresys (and released under the terms of the GPL). SLIDE is an Eclipse (>= 3.1) plugin, which you can install easily: Of course, you can also easily use your favourite text-editor to edit the plain policy files (if you use the te.vim file from Thomas Bleher you get syntax highlighting, at least for *.te files). After placing the file in the ~/.vim/syntax directory, add this to your ~/.vimrc:
if has("autocmd")
  filetype plugin on
  augroup te
    autocmd BufRead,BufNewFile          *.te set filetype=te
  augroup END
endif

5 September 2006

Wouter Verhelst: Screamers

Yesterday evening, there was a movie on vt4 called Screamers. Pretty nice movie, that. Some science fiction in which man-made self-replicating AI weapons get out of control into a Frankenstein-esque apocalypse. It was made on a tight budget (which shows at times), but was overall quite good. Sometimes funny, but not silly. Sometimes having a romantic moment, but not so much that it gets meek. Sometimes scary, but not so much that you can't bear it (I once literally zapped away from looking at Sigourney Weaver hopping around spaceships in Alien because I was getting too nervous at what I knew would eventually happen—even before anything did, in fact, happen). Most of all, the movie has a story to tell, and it's one that makes one think about AI: do we want it, or should we be afraid of what we might unleash? There's no answer, and there doesn't need to be one—but it's still a good question.

4 September 2006

John Goerzen: A Haskell solution to Lars' Problem

Thanks to a little glitch in planet, one of Lars' posts from 2004 came to my attention. In it, he proposes a test for language benchmarking:

Read text from the standard input and count the number of times each word occurs. Convert letters to lower case. Order the words according to frequency, words with the same frequency should be ordered in ascending lexicographic order according to character code. Print out the top N words, where N is a decimal number given on the command line. Each output line must contain the count, a space, and the word (in lower case), and end in an ASCII LINE FEED character. Output must contain exactly N such output lines and no other output lines.

A word contains only ASCII letters A through Z and a through z (convert upper case to lower case) and ASCII digits 0 through 9 and is not empty. All other characters separate words and are ignored except to notice word boundaries. Word boundaries only occur at the beginning and end of the file and at non-word characters. You may not assume a maximum length for the word, line, or input file.


He provides a tarball with sample implementations in C, Python, and Shell.

His C code is 183 lines long, Python 57, and Shell 11. The specs for this test seem particularly suited for shell.

I wrote a version in Haskell, commented and formatted approximately the same as his Python version, but using an algorithm more like the shell version. It comes in at 18 lines. Here it is:

import System.Environment
import Data.List
import Data.Char
custwords = filter (/= "") . lines . map (conv . toLower)
    where iswordchar x = isAlphaNum x && isAscii x
          conv x = if iswordchar x then x else '\n'
wordfreq = map (\x -> (head x, length x)) . group . sort
freqsort (w1, c1) (w2, c2) = if c1 == c2
                                 then compare w1 w2
                                 else compare c2 c1
showit (word, count) = show count ++ " " ++ word
main = do args - getArgs
          interact $ unlines . map showit . take (read . head $ args) .
                     sortBy freqsort . wordfreq . custwords

Taking a look at this, one thing that might strike you is the function composition in main. This takes the output from one function and feeds it into the next -- and the Haskell syntactic sugar for this makes it look a lot like pipes in the shell version. The interact call takes, as a parameter, a function that takes a string and returns a string. interact supplies stdin as the input and prints the output to stdout. Note that, since Haskell is lazily, this does not mean buffering up the entire input or output -- it is read and written on demand.

The rest of the functions are also standard in Haskell, and you can find them in the index to the library reference if you want to learn more.

I understand and agree that short code doesn't necessarily mean good code, but I think that Haskell provides a very elegant and expressive solution to many problems -- one that also happens to be remarkably concise.

Updated 9/4: Changed isLower to isAlphaNum to fix a bug, and removed unnecessary Data.Map import

Simon Richter: Xen and viruses

When your only tool is Xen, all operating systems start to look like domUs. At the moment, it is Windows, and my idea at the moment would be to run a Virus scanner in the dom0. The difficulty would be getting a consistent view of the filesystems. I suppose it would be doable to have a device-mapper target that would do an in-memory snapshot and an event log, then the only issue would be interpreting that as a live filesystem (but that's an userspace issue, so solvable without too much hassle), translating block writes to object writes. All that is left to do then is invoke clamav.

Next.

Previous.