Search Results: "agi"

13 April 2007

Sam Hocevar: shlib-with-non-pic-code: have inline assembly and PIC mix well

Perhaps the most accessible documentation on what PIC code is and how an ELF dynamic linker works is John Levine s Linkers and Loaders (and it has amazing sketches, too!). The Gentoo documentation also has an Introduction to Position Independent Code. I d like to give a few hints on how to fix the shlib-with-non-pic-code lintian error caused by inline assembly on the i386 and amd64 platforms, as well as build errors that may occur due to inline assembly being used. I m not going to cover the trivial all objects were not built using gcc s -fPIC flag problem. It usually requires a fix to the build system, not to the code. gcc can t find a register (i386) PIC on i386 uses a register to store the GOT (global offset table) address. This register is usually %ebx, making it unavailable for use by inline assembly (and also restricting the compiler's register usage when compiling C or C++ code). So the following perfectly valid code will not build with the -fPIC flag:
 void cpuid(uint32_t op, uint32_t reg[4])
  
    asm volatile("cpuid"
                 : "=a"(reg[0]), "=b"(reg[1]), "=c"(reg[2]), "=d"(reg[3])
                 : "a"(op)
                 : "cc");
  
Using -fPIC, gcc will say something around the lines of error: can't find a register in class BREG while reloading asm . Several things need to be done to fix this: And here is the PIC-compliant version:
 void cpuid(uint32_t op, uint32_t reg[4])
  
    asm volatile("pushl %%ebx      \n\t" /* save %ebx */
                 "cpuid            \n\t"
                 "movl %%ebx, %1   \n\t" /* save what cpuid just put in %ebx */
                 "popl %%ebx       \n\t" /* restore the old %ebx */
                 : "=a"(reg[0]), "=r"(reg[1]), "=c"(reg[2]), "=d"(reg[3])
                 : "a"(op)
                 : "cc");
  
using variables from assembly code (i386) Directly using variables from inline assembly always creates non-PIC code even if -fPIC is being used. There are at least three strategies to consider when trying to fix this. Here is an example of PIC-incompatible code:
 extern uint32_t sym1, sym2, sym3;
 
 void store_in_symbols(uint32_t x)
  
     asm volatile("movl %0, sym1   \n\t"
                  /* ... */
                  "movl %0, sym2   \n\t"
                  /* ... */
                  "movl %0, sym3   \n\t"
                  : : "r"(x));
  
The first strategy is to pass the variable through the usual gcc inline assembly syntax. This is not always possible because there might be a shortage of registers, but here is what it looks like:
 extern uint32_t sym1, sym2, sym3;
 
 void store_in_symbols(uint32_t x)
  
     asm volatile("movl %3, %0   \n\t"
                  /* ... */
                  "movl %3, %1   \n\t"
                  /* ... */
                  "movl %3, %2   \n\t"
                  : "=r"(sym1), "=r"(sym2), "=r"(sym3) : "r"(x));
  
If there are too many variables and not enough registers, one can use the second strategy: put all required variables (or addresses) in a table, thus requiring only one extra register:
 extern uint32_t sym1, sym2, sym3;
 
 void store_in_symbols(uint32_t x)
  
     uint32_t tab[3];
     asm volatile("movl %1, (%0)   \n\t"
                  /* ... */
                  "movl %1, 4(%0)  \n\t"
                  /* ... */
                  "movl %1, 8(%0)  \n\t"
                  : : "r"(tab), "r"(x));
     sym1 = tab[0];
     sym2 = tab[1];
     sym3 = tab[2];
  
If the second method happens to be unsuitable because variable types differ too much, there is a third, more complicated strategy: retrieve the GOT address using some linker-specific magic, then use @GOT addressing to access variables:
 extern uint32_t sym1, sym2, sym3;
 
 void store_in_symbols(uint32_t x)
  
     uint32_t got;
     asm volatile("call get_got                               \n\t"
                  "get_got:                                   \n\t"
                  "popl %0                                    \n\t"
                  "addl $_GLOBAL_OFFSET_TABLE_ - get_got, %0  \n\t"
                  : "=r"(got));
     /* ... */
     asm volatile("pushl %%ebx                \n\t" /* save ebx */
                  "movl sym1@GOT(%0), %%ebx   \n\t" /* retrieve sym1 address */
                  "movl %1,( %%ebx)           \n\t"
                  /* ... */
                  "movl sym2@GOT(%0), %%ebx   \n\t" /* retrieve sym2 address */
                  "movl %1, (%%ebx)           \n\t"
                  /* ... */
                  "movl sym3@GOT(%0), %%ebx   \n\t" /* retrieve sym3 address */
                  "movl %1, (%%ebx)           \n\t"
                  "popl %%ebx                 \n\t" /* restore ebx */
                  : : "r"(got), "r"(x));
  
It is of course possible to merge the two above asm statements into one. However the performance implications of the GOT address retrieval should not be overlooked, especially if the assembly code takes place inside a critical loop, which means the loop might have to be unrolled and the GOT address retrieval done outside the loop. Note also that _GLOBAL_OFFSET_TABLE_ is ELF-specific. On BSD and a.out systems you should use __GLOBAL_OFFSET_TABLE_. I am not aware of a way to do the same on Darwin / Mac OS X, which is a shame because it is the only widespread i386 platform where shared objects cannot be non-PIC. gcc silently generates non-PIC code (amd64) The amd64 architecture has the same problem as i386 when trying to access variables from assembly code. However, the solution is a lot easier: the GOT address can always be retrieved from the special %rip register. This is called rip-relative addressing:
 extern uint32_t sym1, sym2, sym3;
 
 void store_in_symbols(uint32_t x)
  
     asm volatile("pushl %%rax                       \n\t" /* save rax */
                  "movq sym1@GOTPCREL(%rip), %%rax   \n\t" /* retrieve sym1 address */
                  "movl %0,(%%rax)                   \n\t"
                  /* ... */
                  "movq sym2@GOTPCREL(%rip), %%rax   \n\t" /* retrieve sym2 address */
                  "movl %0,(%%rax)                   \n\t"
                  /* ... */
                  "movq sym3@GOTPCREL(%rip), %%rax   \n\t" /* retrieve sym3 address */
                  "movl %0,(%%rax)                   \n\t"
                  "popl %%rax                        \n\t" /* restore rax */
                  : : "r"(x));
  
amd64 also has more registers than i386, which makes the first discussed technique less prone to register shortage. Why bother? Good question. Currently many shared libraries simply disable entire chunks of inline assembly on the amd64 architecture. Whether these routines bring any performance benefit compared to the C alternative is uncertain, but without being able to build the code there is no way to tell. Even fewer developers care about i386, because this architecture can handle non-PIC shared objects quite fine (but then they are no longer really shared). I am in favour of making all shared objects PIC-friendly (ie. not necessarily build them as PIC if there is a valid reason not to, but at least don t make it too difficult to build PIC versions) because that makes it easier to port the code to Darwin. I also believe the memory gain and especially the cache gain when using real shared libraries is underestimated.

Erich Schubert: Init followup

Gunnar Wolf commented on my recent series of init script posts. Thanks for the feedback.The thing is that I've been doing a lot of Debian stuff these days (such as our GSoC coordination, and lots of stuff you saw in this blog). But I shouldn't... instead I should be trying to finally get my diploma thesis done.I had my exams last july. If I had been focused, I could have been finished with my degree last christmas. Now it will likely by this fall. :-( All that is remaining is my final thesis. It should be written in 6 months, but I still havn't submitted my topic yet. So if you are wondering what took me 8 months already: I investigated two topics, but they didn't work out. Then I started researching for my 'current' topic, and I have a vision for it, but I still havn't managed to convince my professor (which of course is largely due to me not being able to convey this idea, and that the topic is in information management and representation, where it's probaly often hard to find a solid theoretical part. I have examples I'd like to do, and I hope they are actually convincing, but I have no idea how to 'prove' something here; it's too much about social aspects and human perception I guess, and I'm not really qualified or capable to do solid research in that field.)(And as you can probably imagine, I'm pretty fed up with studying now. A year ago, I'd have considered to go for a PhD afterwards, but now I just want to get out, and work on my projects.)Anyway, I got distracted. Back to the init topic.I already posted this link: Init Hackfest, as well as a pointer to the initscripts-ng mailing list. I'd really like to get this topic on it's way for lenny. So please, join this effort. While I'd like to push it, I shouldn't; on contrary, I should suspend my Debian efforts.As for your (Gunnar) suggestion on how to handle multiple inits: what's wrong with just including multiple init scripts in one package? They are not particularly large and compress well. A single init script package might already be bigger than all the init scripts.The problem is more on how to write these init scripts; by the time we're done with this project, we might actually have hit 1000 init scripts. Yes; I didn't just make up this number: packages.debian.org has 890 hits for /etc/init.d; the init-like scripts in /etc/dbus-1/event.d not included. So if just want to add support to 5 alternate init systems, this means we would need to write 5000 new init scripts. Ouch. So we maybe should convert them to 1000 meta-init-scripts instead, and generate the 6000 real init scripts from them.Please join the discussion, and lets get this project going, despite having to face such scaringly high numbers...

12 April 2007

Erich Schubert: System init - part #3

Today's post (previous parts) tries to show what benefits other init systems can offer.I'm picking 'minit' as an example; not because it's the ultimate solution or anything, but because I happen to know it quite well. I used to be the package maintainer for some time, and I've also used it on an embedded system (where it was a perfect match). However, it's not very distribution-friendly; it's great when you can invest some time into configuring it (such as when building an embedded system) but not when it should ideally work automatically out of the box. The Debian package is still there, but it's orphaned. Still it's well written, clean code; there shouldn't be any bigger bugs in there.The first thing to notice is that minit is tiny. It's statically linked, but only about 6.5 kb. Regular init is 86 kb plus some libraries (despite actually not doing much during init!). This makes it very well-suited for embedding.But now for the benefits of minit over regular init:1. Service monitoring. This is the biggest point: minit will keep an eye on the services and restart them when needed. (Another thing very useful in embedded situations, btw.)Minit doesn't use the start/stop paradigm of sysv/shell-style-init. Instead it has a "run" script for every service. If a service is flagged as 'respawn', it will automatically be restarted when the run script quits; therefore the applications should not background themselves. This offers some benefits, for example the init process will be notified by the kernel of a termination, and can immediately respawn the service; in contrast to other monitoring systems suchas monit it doesn't rely on 'busy polling'.2. Dependency handling. Minit handles startup dependencies. If a service lists another service as a dependency, it will bring that service up first.3. Parallel startup. Unless an ordering is given via dependencies, minit will start the services in parallel.4. Control apps. In minit, you don't start a service by running some random shell script. Instead you call "msvc -u servicename", which will signal minit to bring up the service (and it's dependencies). This would (there currently is no policy for minit) be especially useful in SELinux, but it also allows to e.g. give a user the permission of running "sudo msvc -u" without introducing a huge security hole, since this cannot be used to execute arbitrary scripts. "msvc" can also be used to check if a service is up. (Another benefit for embedded systems, since that removes the need for pid files, which then need a ram (writeable) filesystem)I'll also give an example for a minit service:A service is represented by a directory in /etc/minit which can contain various files. I'm going to look at getty/1 example; which will bring up a console login on the first terminal. There are three files: If the service would need it, there could also be a file called "depends" listing service dependencies.This allows minit to start the getty with no overhead. There is no shell script being executed or anything (note: sysvinit also does this for gettys, but it's not being used much for other services).Of course minit isn't perfect. I've already said that it isn't particularly distribution friendly. This is because it uses a lot of magic files (e.g. an empty file named 'respawn' to flag a service as needing to be respawned), and it's configuration files aren't easy to handle automatically. The often frowned-upon 'symlink farms' of sysv-shell-style init are much better here.Another thing that is missing from minit is an automatic rollback of dependencies. If we told minit to bring up service 'a', which lists dependencies 'b' and 'c', minit will bring these three up. If we tell it to shutdown 'a', it will however not shutdown 'b' or 'c'. And unfortunately, even if we shutdown 'b', it won't shutdown 'a'. If you want a more complex dependency handling (or things such as runlevels), you need to do this externally. (An example is my 'enitdir' app, it adds runlevel support to minit, and allows switching of runlevels by replacing a symlink; Services are added and removed from runlevels by adding a symlink to the service into the runlevels directory. By using dnotify, this also takes virtually no CPU time.)Minit also lacks a differentiation between a 'started' and a 'running' service. It has support for 'sync' services, such as e.g. mounting a filesystem. It will wait for this operation to complete before it starts services depending on it. However, there are services that will continue to run, while not being instantly available when the exec() was called. Sometimes it would be nice if a service could go into a 'started' state, then do some cleanup work, and then when actually running the real service signal minit that it's now 'running'.As a last malus, minit won't print progress messages to the console. A minit boot is pretty much silent, directing it's output to some logging processes. There are good reasons for this (since services are started in parallel!), but it makes debugging harder, and users might be wondering what their system is actually doing (though some users prefer to see a colored 'busy' bar)...I guess this concludes this series of blog posts. Maybe someone can follow up with some details on upstart (which seems to be the most promising init replacement)? I hope to have given an impression on where there is room for improvement in our current init to one or the other. Now we just need some people to actually work on a better support for other inits in Debian...

11 April 2007

Stefano Zacchiroli: post etch frenzy

Post-Etch Frenzy: Ocamlnet 2.2.7 in Unstable Ok ok, ..., I admit it, I'm yet another victim of the post-release frenzy: right now I'm uploading to unstable the long overdue packages of Ocamlnet, 2.2.x series. Since the former upload to experimental there were 3 micro releases (now we are at 2.2.7), which also added support for the apache connector for CGIs (which unfortunately doesn't yet build cleanly with Debian's apache2 :-/ I'll have a look at it in the near future). In the meantime the post-etch madness continues: with the help of other fellow DDs from the Debian OCaml Task Force (thanks for your help Ralf!) I'm working on the packaging of the beta of OCaml 3.10.0. Expect an upload to experimental in the next few days. All this is tiresome though, enough for today, time for some good old sci-fi book ...

8 April 2007

Erich Schubert: Chinese hacking activities

Most of the time when I lookup the IP addresses used in FTP and SSH scans, they belong to some network in china. And apparently the last two times when the Asus website was modified (this time exploiting another unpatched vulnerability in Microsoft Internet Explorer, with .ani files), they were loading exploit code from certain servers in China. Well, I guess you just cannot trust their regime; if it isn't actively encouraging the hacking activities, it at least completely fails to do something about them (you might recall that China tries to censor much of the Internet, but apparently they aren't able to firewall off hackers going out?). It's hard to tell what their motivations are. I guess it's military interests (i.e. having points of attack in case of a war) combined with industrial espionage. To me this means, that I can't really trust developers from China, and that I better double-check their code. While I don't assume them to be bad guys, you never know what their government might force them to do. Sorry about that.

7 April 2007

Erich Schubert: Hello Planet GNOME!

I've been added to Planet GNOME (thanks jdub!), and this post is just to say hello! I havn't been a large GNOME contributor so far (I was the Debian maintainer for Galeon some years ago, thats about it), but I recently started a small DBus related project (for exploring the DBus APIs of programs), dbus-inspector, which is now hosted in the GNOME subversion repository. Other GNOME-related projects I'm thinking of: I'd like to say thank you for all the great work you did. Having been a Galeon power user, I'm by now quite convinced of the "keep it simple" approach, and I have the impression that not having so many options means that I get more work done (since I don't waste time playing around with infinite options). Thanks for that. And for providing me with a pretty and unobtrusive work environment for the last 8 years or so.

Eddy Petrișor: Thanks...

The answer to my previous question is "to be". That happened thanks to a bunch of people, in no particular order:
Updates:

6 April 2007

Russell Coker: Mac vs PC

For a few months I have been spending a lot of time using a Mac running OS/X for 40 hours a week. Recently a discussion started at a client site as to whether Macs or PCs should be used for future desktop machines.

The Apple hardware is very slick, everything fits together nicely and works well. For example my Apple monitor connects to my Mac via a single cable that supplies power, USB, and the video signal. My USB keyboard and mouse connect to my monitor. So my Mac has only three cables connected to it, power, Ethernet, and the monitor cable. The same thing on a PC would require an additional USB cable going to the PC and an additional power cable going to the monitor.

That is just one trivial example of how Macs are slick.

The advantage of a PC is that installing Linux is much easier and better supported (the vast majority of Linux users have PCs). The benefits of slick hardware are greatly diminished if it's only partly supported in terms of drivers and/or getting answers to technical questions on the net.

Another issue is that of software compatibility. When doing Linux work having a desktop machine that runs X is a significant benefit - even if all your work is text based. The Apple X server that I have installed never worked properly and it's a hack like the various Windows X servers. To make things worse the current versions of OpenOffice for Mac use X and therefore don't work for me - I've been told that the next version of OpenOffice will fix this.

Then there's the issue of price. For a Mac you would want to have a machine with an Intel CPU which means a recent and expensive machine. For a PC the benefits of a 64bit machine over an old P3 or P4 are very small. For all the work I do a refurbished IBM or Compaq P3 machine would provide all the performance I require, have better software compatability than a Mac, and cost only $120 for a machine.

Also I imagine that some common and cheap PC expansions (such as KVM switches) would cost a lot more for a Mac.

You can run Linux on a Mac, but what's the point? You lose some of the hardware features so the Mac becomes an expensive PC that's not entirely compatible. I'd rather have a P3 PC on my desktop than the latest Mac.

But I wouldn't rule out recommending a Mac to other people. People who have no-one to help them run Linux are best advised to use a Mac. Of course Windows isn't viable due to security problems.

5 April 2007

Mario Iseli: See you in Edinburgh!

Some minutes ago I saw the mail of Joerg Jaspert announcing food and accomodation sponsorship for all who applied in time. I applied at the end of december, exactly at the day where pentabarf was installed and announced on debian-devel-announce, so I will attend. Together with Daniel Baumann I already bought the flight (but I paid my one on my own since I earn a bit money), I will attend Debconf7 from 16th to 24th of June. I think you can’t imagine how happy I am right now and so I would like to say THANK YOU to all sponsors and the Debconf team who organizes all that stuff! I’m looking forward to see as many of you as possible in Edi :)

4 April 2007

Arnaud Vandyck: libhibernate-java Take 2

As I already wrote (it was the take 1), I'm working on packaging Hibernate (then Spring, then Jboss, then Jonas but dont' tell, it's the secret plan!). The first step has been done, #386100 (ITP: c3p0) is pending. I uploaded it to experimental because it needed a method in javax.management that is only in gcj experimental. The next step is to package cglib (#386101). I discover cglib embed asm in its jar and change the package name of the classes. The tool used to do that is called jarjar from Tonic Systems. So I have to package it first (#417591). I'm not sure it's a very good idea and I started a discussion in the cglib forum... and one of the developers already answered... FLOSS is too cool ;-). I'll try to see if it's possible to package both jars (one with asm, the other one without it). read more

3 April 2007

Martin F. Krafft: Any indication?

Christian, if that website is any indication of the train's operation, I am not sure whether your post is good or bad news. A PHP script generating Javascript, which then replaces a DOM object with a Flash object, without any alternative information whatsoever? Is that train real, or maybe just a figment of someone's imagination? No, wait, someone's idea of instructions to replace a real train with a video screen showing a really fast train? Or just a really crap PR team and web designer? I found it amusing that all I get is a blank page while the title actually advertises "French Excellence" :) PS: I hate Flash. NP: Emerson, Lake & Palmer / Welcome Back my Friends to the Show that never Ends

Clint Adams: In the rain or in the snow, got the got the funky flow

In the sack: An orangeishness, more unnatural than Tang. Wet: A plasticness of sorts. The touch: Neutral. The feel: Limoncello, lemon jello, the tropical stuff the gigolette put in her radiator, I'm sailing away, set an open course for the virgin sea I've got to be free, free to face the life that's ahead of me, zug-zug, you're the captain. The magic of our lives: , the skunk over here will bring you luck, the pump over here comes with a truck. Final verdict: Needs more enervation.

Erich Schubert: Ubuntu gets AppArmor support

Ubuntu got AppArmor support. This is bad news. AppArmor is a weak design. IMHO it gives the users a false impression of security, while leaving too much open to bypass security. But the biggest problem IMHO is that noone at Ubuntu seems to be working on their SELinux support. All I've seen is Ubuntu users breaking their system to a point where they didn't know how to fix it in the attempt to install their SELinux packages. The packages are mostly a 1:1 copy of the Debian packages I guess, but for example their new 'upstart' init-replacement likely isn't capable of actually starting a SELinux enabled system. Oh, and Debian didn't include the relevant package in any 'stable' release, Ubuntu had it in 'universe' since 'warty'. Right now, feisty will include the package, though it reportedly can't be installed. In the example used in the blog, evince is maybe protected from exploits by bad PDF files, but if you do a cp /usr/bin/evince /tmp and run that copy, all the protection is gone. A symlink might already be sufficient! So AppArmor is heavily relying on the user playing nicely. You might want to read this Article at LWN about AppArmor and why it's having a hard time getting into Linux mainline and "Security Anti-Pattern: Path based access control" in Joshua Brindle's "SecurityBlog" for a detailed article on the weaknesses in AppArmors approach. And their constant claim of being easier to use than SELinux isn't true either: the 'learning' mode itself will only generate you an incomplete policy. It's about as much as you can achieve in SELinux by transforming audit errors to allow rules using the "audit2allow" tool. Maybe even less; for example when an application accesses a font file, SELinux audit2allow will generate a rule that allows access to all font files (since they have the same type). This doesn't rely on any directory globbing magic, but because there is a type for font files. I expect that future versions of audit2allow will actually recommend which interfaces to add instead of just listing raw allow statements. AppArmors 'abstractions' seems to match what is called 'interfaces' in SELinux, except that interfaces in the SELinux reference policy are well documented and much more extensive. The 'abstractions' offered look like an early, incomplete version of the old NSA policy to me, before this was restructured to become the 'reference policy'. Interaction between processes also seems to be completely ignored by AppArmor. So it seems to me that "preventing evince from trashing your home directory when opening a malicious PDF file" is pretty much all you can do with AppArmor? But again, this isn't so much about bashing AppArmor or Ubuntu. I'm just disappointed that noone at Ubuntu seems to work on the more sound and solid SELinux. Most of SELinux is already in Ubuntu (inherited by their Debian roots), but it's lacking some integration work and such. Ubuntu is often said to be more agile than Debian and better at adopting new technologies, but in my experience, this often is limited to 'visual' stuff. If Debian were better at recruiting new people (for example in the SELinux section, we also seriously lack manpower), I'd probably be annoyed by Ubuntu 'trying to be first with all the pretty stuff' (yes, saying this would not be fair, that's why I'm putting it in quotes). Right now I'm mostly happy that they 'divert' many newbies off Debian and to their huge forums. Although it occasionally means I need to help an Ubuntu user to fix his system when he doesn't get any help there.

2 April 2007

Ben Armstrong: Launcher for xjig adds open dialog and file conversion

I have long recognized that to be usable by young kids, xjig really needs a better user interface. So I wrote a launcher, xjig-menu to address the problem. It adds a file open dialog (via zentiy) and support for more file formats (via imagemagick). Update
I have put this script in subversion and added a man page. Check it out:

  $ svn co svn://svn.debian.org/pkg-games/people/synrg/xjig

or browse the repository.

Evan Prodromou: 11 Germinal CCXV

We had a good brunch today. Friends Heather, Damien, Niko, Karine, Sarven, Brigitte and John all came over for some quiche, roasted potatoes, green salad, bread, cheese, wine, beer, asparagus, coffee and papaya. All in all a good time. We'd hoped to walk over to our new house at 4690 rue Pontiac with anyone who wanted to see it. The previous owner was packing the last of his stuff today, and we were supposed to pick up the keys this evening. But we hadn't heard from him by 7PM, so we packed everyone off to home and put the baby to bed. Then he called at 8PM, so I drove over to the new house and had a chat with him while picking up the keys. He had a couple of leftover Bor ale Cuivr es, so we drank them while he showed me around the house. I helped him take the last of his cleaning supplies out to his car, and then I went back inside, to our house. Wow. I just walked around for a little while, turning on and off the lights and looking through the windows and trying to imagine what our life there is going to be like. We're not going to move in for another 2 months, so it seems a little remote. The house felt nice, though. It's on a quiet street in a great neighborhood, and I could tell it was a good place to live. I'm excited to get started with it. tags:

Hey IBM Now that OS/2 has reached its end-of-life, it's time to release as much code as you can out of it under a liberal Open Source license. There are millions of lines of code in OS/2, and I doubt that much of the Microsoft code written in the 80s is still there. IBM talks a mean game about Linux and Open Source (see http://www.ibm.com/linux ), and to a large part they've been pretty true to their word. But having a huge codebase available that could very clearly benefit the Open Source world, and that's not being developed further, is a bad idea. Clear the rights, release the software. Abandonware is a terrible thing to waste. tags:

31 March 2007

Martin F. Krafft: The 5D cinema experience

A little while ago, Aline baited me into visiting the newly opened "shopping paradise" Sihlcity, by inviting me to a 5D cinema screening. That sounded like a worthwhile experience, so I bit the bullet and agreed to accompany her to the mall for a few hours before I finally got to sit down in a cinema chair. Five-dimensional cinema combines the revival of the 3D glasses with moving seats and a combination of scents, wind, and water vapour sprayed into your face. The scents were definitely interesting, especially given the animal animation movie we watched, which would present us with the olefactory sensation of e.g. a rhino's behind. Lovely, can you imagine? Also, wind and water vapour were interesting additions, although they seemed too forced every time. Then there were the moving chairs: when you have ice bears sliding through caves in much the way it happened in Ice Age 2, you'd assume the chairs to sway around; instead, they bounced back and forth and shaking you hard every time they reached the opposite position. It was as if the movie makers wanted to ensure that you don't even think about getting comfortable. The worst aspect of the whole joke was that we got a whoppin' 15 minutes of movie and 10 minutes of a ridiculously stupid quiz show for the CHF 12 (~ 7.50 ) it cost us to "enjoy" the show; and I did actually like the 3D animation on screen and the scents, so it was not too much of an issue to fade out the rocking chairs. But it just stopped. What an amazing rip-off. Never shall I have to go experience this crap again. NP: Magellan / Hundred Year Flood

30 March 2007

Simon Richter: uClibc

The mighty uClibc has been repackaged and should be on its way to the NEW queue soon. The most prominent change is that it can now be cross-compiled for a number of architectures using dpkg-buildpackage's -a switch (you might want to install dpkg-cross). There are a few regressions that will have to be sorted out by trial and error, but these only affect architectures no one cares about anyway, like i386. Known bugs: There is probably a lot more that will only crop up when actual other packages are built against it (so far, my shiny new busybox works, but the CFLAGS I had to pass to make that work are illegal in some states). Next up: reintegrating the magic specs file that implements (cpu)-linux-uclibc.

29 March 2007

Arnaud Vandyck: jboss-hibernate in Debian

Today, I first fix debian/copyright file in libjazzy-java as it was rejected by ftp-masters. Then, I started to work on packaging jboss-hibernate in Debian. Marcus Better already filed some ITP's and I'm using them, change the owner when I'm ready to work on a package and upload it. #385569: ITP: jboss-hibernate -- object/relational persistence service for Java The good thing with the way Marcus worked is he filed ITP's and then send 'block' instructions to BTS, so it's easy to see what should be packaged first:

MJ Ray: Google Bugs

A relatively recent addition to the Google range is Google Docs. I'll be testing it shortly, but I see it has already suffered google's usual security/privacy bugs Apart from encouraging the larger Atom feed format, dropping RDF support and unreliable alternatives to its eyetests, Blogger is one of Google's best services. The basic service seems to work in a half-decent manner. Of course, it still has bugs and that let someone post a hoax Google news release Google's search results are still unstable: here's a consultant spotting lots of turbulance in the results. If Google's actions were unfair and harmed your performance, you can't touch them, as kinderstart discovered (but that ruling might be an interesting reference for other ratings sites, so there's a silver lining). The site complains constantly that I don't let it rampage through my browser and I haven't downloaded the latest from Adobe. It's a bit less annoying now that ytplay is available, but it shows that Google doesn't care much for free software support. An interesting twist has been Viacom suing Google for a billion dollars and calling them all sorts of names. (Beware bias in the BBC reporting on this, as BBC just signed up for Google-YouTube [BBC] - is there a monopoly that the BBC won't befriend?) Adwords and adsense looks like some of Google's top mass-market money-makers. I have mixed reports about them, including some of my customers that are happy to use them, and others that get results like this commenter at Problogger which suggests that adsense referrals maybe don't always report accurately. There is also a privacy/trust problem with having one company seeing so much of the world's searches. This was the basis for a recent Ask.com ad campaign (nice idea, shame about the microsite's poor accessibility and various other things - it gave one Google-worker a good laugh and got better commentary from Susan Hallam Communications). Privacy bodies backed Google's step towards allowing user privacy [BBC] but there's more that should be done. That's enough for now. I've got some more positive news which I'll post along with the Docs review.

Matt Brown: My DPL Vote


- - -=-=-=-=-=- Don't Delete Anything Between These Lines =-=-=-=-=-=-=-=-
e0acebd2-71f1-4df8-ae4d-50355ad7aa81
[ 6 ] Choice 1: Wouter Verhelst
[ 6 ] Choice 2: Aigars Mahinovs
[ 3 ] Choice 3: Gustavo Franco
[ 3 ] Choice 4: Sam Hocevar
[ 2 ] Choice 5: Steve McIntyre
[ 4 ] Choice 6: Rapha l Hertzog
[ 1 ] Choice 7: Anthony Towns
[ 6 ] Choice 8: Simon Richter
[ 5 ] Choice 9: None Of The Above
- - -=-=-=-=-=- Don't Delete Anything Between These Lines =-=-=-=-=-=-=-=-
My rationale follows, if you care... I've been pondering how to vote for well over a week, and I'm still not entirely happy that the ballot I've chosen accurately expresses my wishes, but it's the best approximation of them that I can come up with at this time. My dilemma has two parts
  1. I don’t think the current office of the DPL is effective, due to how it is viewed by a significant proportion of the project (if not an outright majority), so regardless of how much I might like the goals and ideas proposed by an individual candidate I’m very pessimistic that being electing as DPL will actually bring those things to pass.
  2. Much of what will make a good DPL is about how a specific set of ideas and goals will be put into action, and how interpersonal relationships between the DPL and various parties will be managed. This comes down to the personal character, experience and leadership skills of the candidate While I can form some level of an opinion about each of these aspects from mailing list archives, and IRC, etc. I don’t really feel comfortable making judgements in these areas until I’ve actually met them in real life. Too many people come across badly in the (severely limited) online communication methods we use, and are actually very decent reasonable people in real life. Out of the candidates, AJ is the only one that I’ve ever actually met and talked to.
Given these problems, my first step in choosing how to vote was to eliminate those candidates who I will rank below NOTA based on their published platforms. I have nothing personal against any of these three people, but given the other possible candidates I think that we’d be better off having another election than just electing one of these three for the sake of it. That leaves five remaining candidates: *yawn* It’s made me tired writing all of that out. Maybe sometime soon I should explain in more detail exactly what parts of Debian’s governance model I think need changing or maybe I need to wait until I’ve achieved a few more technical things and gained enough respect before anyone will listen to my opinions…

Next.

Previous.