Search Results: "ms"

20 May 2007

Enrico Zini: openbox

Openbox Reading that keeping X in 3D mode tends to use more power convinced me to finally drop compiz. Back to metacity, I found it unusable. I've always used Super+Right mouse drag to resize windows, and metacity refuses to do that. I haven't found a way to resize windows with it other than dragging the super-thin, impossible-to-catch window corners or using the keyboard. I had a look at debtags search x11::window-manager (I found x11::window-manager using debtags tagsearch window) and picked openbox. Quite light, standardards-compliant, it seems to handle everything as it should (gnome panel, popups, fullscreen applications, name it). It has a very simple configuration dialog, just like metacity. Unlike metacity, it also has a configuration file in which I can tweak those things that are not in the configuration dialog. And it supports much more of those than metacity does. So, here are three use cases that weren't covered by metacity (or compiz, in case of RaiseLower) and are now fully covered by openbox: And also, the fan of my laptop is not on all the time anymore. Updates:

Steve Kemp: I have finally found my place in everything

Sorry to everybody on Planet Debian who have been forced to see a lot of older posts of mine. I switched from Typo to Mephisto - another Ruby on Rails blog. The reason? Typo seems to suck memory like a .. big sucky thing. Posting a new comment would take the system-load on my VM up to 2, which is not acceptible. I'm prepared to suffer a little with my decision to never install, host, or admin a PHP-based application, but not that much. Mephisto seems nice, although the importing of old posts was a little fraught with peril. Thankfully the system, when used with Mongrel and an Apache proxy seems fast, stable and not too memory intensive. The only thing that didn't happen properly was the closing of comments on all the older entries. Comments on new entries appeared to be correct in the sense that they should be automatically disabled after 7 days. Here's how I fixed that:
skx@skx:~$ script/console production
1
2
3
Article.find(:all).each do  a 
 a.update_attribute :comment_age, -1
end

Steve Kemp: Tell you, might not believe it, but

I would like to have a simple way of mirroring a webpage, including any referenced .css, .js, and images. owever to complicated matters I wish to mandate that the file will be saved as index.html regardless of what it was originally called. This appears to rule wget out, as the -output=index.html option trumps the -page-requisites flag (which is used to download images, etc which are referenced.) Is there a simple tool which will download a single webpage, save it to a user-defined local filename and also download referenced images/css files/javascript files? (Rewriting the file to make them work too) Using Perl I could pull down the page, and I guess I could parse the HTML manually but that seems non-trivial but I d imagine there is a tool out there to do the job. So far I ve looked at curl, httrack, and wget. If I m missing the obvious solution please point me at it .. (Yes, this is so that I can take snapshots of links added to my bookmark server.)

Steve Kemp: Time is like a fuse, short and burning fast,

Disjointed: Busy weekend: A brief trip to Glasgow, a lot of rat-lovin and a few minutes to hack on CFEngine package automation. I discovered insane performance problems with running Ruby on Rails applications under libapache2-mod-fastcgi so I switched to Apache2, mod_proxy & mongrel. The process wasn t as painless as I d expected so I might write it up shortly. In other rails-news: I can t get typo running on Etch. Migration from wordpress 2 fails in strange ways. Help?! In other news xmms on my AMD64 machine, reading /home/mp3 over an NFS share locks up every couple of days. Not sure if this is an AMD64 bit problem, or if the NFS usage is responsible. I should investigate. (The GUI is visible and responsible; but hitting next , play , etc, result in no action. I usually have to kill it then restart.)

Steve Kemp: Change my pitch up

6 weeks since my last post here, which I guess sums up how busy I am with things, primarily off-line but with a reasonable amount of development work coming out too. Thanks to Radu Spineanu xen-shell made it into the archive, and work has restarted on a multi-dom0 Xen control panel. So far there is a node daemon, a central server, and a shell-based admin tool, all written in Ruby. Coming soon a web-based control panel, implemented in Ruby on Rails. Exciting times.

Steve Kemp: While we live according to race, colour, or creed

I m back from Vienna (Ask Alfie for picture(s) of me wearing my partner s hat ..!) with a new need to update my killfile. I use procmail to filter my mail, and my current setup looks like this:
# If the sender is in the killfile then drop the mail into killfile
:0:
# grep for it in the killfile
* ? grep -i  formail -rtzxTo:  $HOME/.procmail_killfile
/dev/null
This invokes formmail to get the sender of each incoming message and then drops the mail into /dev/null if the message is from somebody whos email address is contained in ~/.procmail_killfile there are two problems with this approach: Any improved recipes are greatfully received. And that s all I m going to say about Debian communications for today.

Christian Perrier: Samba week

Last week has been mostly dedicated to samba, again. After last week's hurry dealing with 3 security announcements, the announcements were published by the security team. This was a not-so-simple process as even sarge was affected by the security issues and, to make things less simple, only two of them. I also slightly messed up in uploads to the security upload queues which added more work to Noah Meyerhans to deal with them. Anyway, we still were pretty happy of the result. However, immediately after the packages hit unstable and etch, a few problem arised: Dealing with all these bugs was time consuming but finally convinced me to re-subscribe to a few upstream mailing lists...which is slowly taking samba out of the "maintenance mode" we adopted last years. I hope we'll be able to sustain the load. Anyway, we already succeeded during that week in helping upstream to investigate some issues in their recent release. More samba uploads will soon come, so if you use samba, please update your systems regularly.

Kartik Mistry: 3 years

* I just realized that I have completed 3 years in Magnet on 10th May. I have seen people coming, staying and living like they were never been part of team! /me thanks himself for keeping faith :)

Neil Williams: DD upstream

I've been wondering if it is worth packages.d.o indicating if the DD is also (one of) the
upstream developer(s) of their maintained (non-native?) packages. I'd expect that it may help bug reporters to know this, with regard to where to file certain bug reports or just be useful information generally. It could help by indicating whether a quick release is possible and whether patches will migrate upstream automatically.

debian/copyright isn't sufficient for this because there isn't necessarily a match between the upstream and Debian email addresses, but maybe it's yet another field for debian/control.

Just idle musings really.

19 May 2007

Julien Valroff: New 16:10 wide screen

acer-al2002w.jpgI have purchased a new screen, and I have chosen an Acer AL2002W, mainly because of its low price. It is a 20″ wide screen, with a native resolution of 1680×1050 @60Hz. For now, it seems to be good value for money, and working with this screen is very confortable (I previously used a standard 4:3 17″ screen at 1280×1024). While configuring Xorg was painless (with both free nv and proprietary nvidia drivers), I still haven’t managed to get the framebuffer working with the native resolution of the screen. As vesafb doesn’t seem to be able to use a 1680×1050 resolution (hwinfo --framebuffer only gives 4:3 modes), I have tried to patch my kernel with vesafb-tng, which haven’t yield better results. While nvidiafb allows me to get a 1680×1050 framebuffer, it conflicts with proprietary nvidia driver, preventing it from being loaded. With the free nv driver, I can’t have the display centered both in console and in X (they both use the same mode, and the screen is able to stroe user modes at the condition the new display information habe 1Khz difference for horizontal frequency or 1Hz for vertical frequency or the syn signal polarities are different from the default modes). By the way, I have noticed that two of my laptops have the same Intel 915 video chipset, and one only is able to have a 1280×800 framebuffer (using the undocumented vga=0x362 code). I can’t understand the reason of this difference.

Wouter Verhelst: Updating Debian/m68k patches for gcc 4.2

In a perfect world, software would work perfectly. Unfortunately... well, you know the drill. Since GCC 4.2 is upcoming, our resident GCC guy doko asked me to find someone to have a look at updating the Debian patches for GCC 4.1 so that they'd apply. Since I need to learn about GCC anyway for the Debian/ColdFire project (which nobody seems to be working on except for me), I started looking into it myself. The procedure is simple enough: uncomment lines in debian/rules.patch, and fix those m68k-specific patches that break. The first one was easy. debian/patches/m68k-gc.dpatch has been integrated upstream, so is no longer necessary. The second one was slightly more involved. But only slightly so; the patch tried to change libffi/src/m68k/sysv.S, which had received some three extra lines that conditionally add a .note.GNU-stack section. These three lines weren't there at first; but the .S file was otherwise entirely unchanged, so fixing this was rather easy. The next one is, uh, pretty hard. gcc/config/m68k/m68k.md is a file of 7k LOC in the GCC-specific "RTL" pseudo-assembly language, which I'm not at all familiar with. Yet, anyway. As a bonus, the first hunk in this file which fails to apply does so because that bit of this code has been changed rather significantly from GCC 4.1 to 4.2. Meaning:
  1. I need to figure out how this RTL code works
  2. I need to figure out what this particular RTL code block does
  3. I need to figure out what the point of this particular patch was
  4. I need to figure out how to write a patch (in RTL) which semantically does the same thing as what the original patch was doing. Without breaking the changes between 4.1 and 4.2
Wish me luck. At least the first two parts are almost finished; after skimming through chapters 12 and 14 of gccint.info, this hugging code almost makes sense to me. (oh, and if that last link doesn't make any sense to you, ask me for my fortune file at debconf) (which is in less than a month! whee! excitement!)

18 May 2007

Ross Burton: I'm Doomed

Srini mailed the list so it's official now: I've just joined the Evolution team as Addressbook Maintainer. I've a terrible feeling this will be the end of me, but I'm sure the journey will be fun! Thanks to Srini for asking me to join the team, it's a great pleasure to be invited to maintain such a high-profile component as Evolution. I've not really touched the code of Evolution itself, focusing more on Evolution Data Server, but that is good because Srini has been focusing more on Evolution so together we should make a good team. My primary goal is to merge and polish the DBus port of EDS. The current plan is to attempt to land the port in time for GNOME 2.20, although disabled by default. Hopefully enough developers will be foolish brave enough to enable it and report any bugs they find, so that we might even be able to enable it by default in GNOME 2.20. This is a tight plan but it might just be achievable. NP: Music City Soul, Beverley Knight

Eddy Petrișor: Debconf7, here I come

Since I never got managed to reemit my credit card, I was forced to reserve my plane ticket to DebConf7 via phone.

The good news is that, this time I was able to find e-car.ro which apparently has some better search engine since I still found some cheaper (not much) flights than I did in January (I have a printout of the flight I thought of initially).

The price now is NOT a lot bigger than the one I found in January. Back then it was about 400 , now I'll have to pay around 425 [*]. Is not the same set of flights, but I don't mind.

So, now I have these flights:
I would have liked to have a wider window at return, between the flights, but, although there was some flight that left from AMS at 13:00, it was not possible to couple with that flight and keep a low fare :-( . So, my visit to Amsterdam must wait for another occasion.

So,
  1. if anybody else will be on any of these flights, I would welcome company.
  2. Helooooo, DebConf
Now I'll just have to have the confirmation mail and go myself to do the payment at e-car. Fortunately e-car is somewhere in the center of Bucharest, in the Roman Plaza (Pia a Roman ).

[*] If this sounds like a contradiction with the previous, is not. Now I found some of the previousely found flights and some new cheaper ones (all "now" prices), but since the booking is done later, all "now" prices are bigger than "January" prices. So if I had done the same booking back in January, I would have payed less; but back then I didn't found the flights I booked now.

MJ Ray: Server setup: Samba

What I learnt this morning while installing Samba so that an out-of-ink Microsoft PC could print on a toner-full laser attached to a GNU/Linux workstation: Firstly, the manual authors seem to prefer to document CUPS. I don't understand why. Surely if one has CUPS installed already, a Microsoft PC can print to it as a network printer without Samba? I installed Samba because I want to print without replacing lpr and breaking things that print from the workstation already. Secondly, if you ytpo smb.conf badly enough, then smbd will sulk. Particularly passwd-related options. To persuade it to give useful error messages, smbd -F -S -i seems the magic combination. If you don't put -i, it decides that you really meant it to daemonise, despite the other options. Thirdly, it doesn't break it if Microsoft Windows puts "unable to connect" or another strange message on its Printers window. I'm not sure what that message really means. Finally and most importantly, if the nobody user is not allowed to print, make sure Samba is sending the print job as a different user that is allowed to print. That's the "guest account" option in the printer config.

Michael Prokop: docbook2odf

docbook2odf is a toolkit that automatically converts DocBook to OASIS OpenDocument (ODF, the ISO standardized format used for texts, spreadsheets and presentations). Conversion is based on a XSLT which makes it easy to convert DocBook->ODF, ODT, ODS and ODP as all these documents are XML based. This piece of software is pretty rocking for example if you write your docs in AsciiDoc and want to provide a document for use within OO:
% cp /usr/share/doc/asciidoc/examples/website/manpage.txt .
% a2x -f odt manpage.txt
% ooffice manpage.odt
Just to get an idea how the result looks like in OpenOffice: Screnshot of docbook2odt result in OpenOffice Just ‘apt-get install docbook2odf’ if you are using Debian/unstable, thanks to the work of formorer we could include the toolchain in the upcoming grml release.

Eddy Petrișor: (Not) Getting Carbide C++ to run on your amd64 Debian Etch. But you get CodeWarrior!

A while ago I decided I wanted to make a couple of nice little apps for my Nokia 6600.
After my successful adventure with pys60 I decided/realized that the Python API does not contain appropriate functions for what I need in my apps, so I decided to setup the development environment for C++ with Carbide C/C++ (the recommended IDE for S60 development for Nokia).

Of course, the IDE is a Windows application and the reason for which Nokia doesn't provide an IDE for Linux (is expected since they are developing maemo and are so into OS) eludes me.
On top of that, I have an Debian Etch amd64 installation[1], so that's more fun.

Fortunately, thanks to Robert Millan and Ove Kaaven, wine is installable from unstable on amd64 and a chroot is not needed[2] anymore.


Now let's see the dependency tree:
Yes, that is all ... summarized. And you can imagine I went though leaps and bounds and wasted a night with this to find out the hard way.

If you don't care about the reasons/story, you can skip to the paragraph where I ran into license issues.

So, first Carbide needs Active Perl. Not any version, but ActivePerl-5.6.1.635. You will find out after you install Carbide c++.

Active Perl, by default, will refuse to install in wine. It relies on some Script Host support.
Good news: it is available on Microsoft's support pages. Bad news: the file is not provided until you go through some crazy scheme[3] to certify you have a genuine Windows installation.

Of course, the genuine stuff failed to work in wine, duh, but having a windows XP OS in qemu was really useful... to try to go further.

Now that I mentioned the Windows XP machine in qemu you might be wondering 'why didn't you installed Carbide c++ in there and start hacking in qemu?' . Well, I wish it was that simple! Believe it or not, the installation in the Windows virtual machine failed in a muuuuch earlier stage it initially did in Wine! It failed in the unpacking phase of the installation, while in Wine that part worked without problems (default config is for Windows XP emulation). Talk about irony!

After a while of trying, I took the risky path (maybe I should install an antivirus, as suggested by wine) and downloaded the kit for the script host stuff from some site on the net (shhh!). Good. I don't remember if I used cabextract or if it worked quite straight forward, but the special configuration entry in Wine Configurator suggests otherwise.

Back to Active-Perl. Now we can try again to install it.

wine msiexec ActivePerl-5.6.1.635-MSWin32-x86.msi

Guess what? The installation failed now, too. After some time of poking, I realised the bastard was looking for mfc42.dll in the installation. There was no word about that in the error message, only in the wine logs there were some hints. No wonder Windows users learn very early to ignore error messages (the error message was plain uninformative).

Where to get mfc42.dll from? The virtual machine! I tried to send them via email, but the link was too slow. Now I realised I could have used winscp, but I didn't thought of that at the time.

The rescue did come this time from M$, but with some effort. It appears that mfc42.dll is by default present on XP, so you only find it for download in some kit (vc6redistsetup_enu.exe) for Windows 9x. That works (lost some time to figure that out, too) since the kit contains a mix of 9x, NT and independent dlls. I think this installation didn't work and I had to cabextract the files by hand and copy them in system32. I registered the mfc42.dll module, after copying it in windows/system32.

wine msiexec /y mfc42.dll

Well, now I have everything installed Carbide should start... Well, no! License issues! I got a message about not having a license for the installation. Ain't that great? I just installed the thing and is the free/handicapped version. What gives? Well, in Carbide C++ 1.2, the Express part of the kit is broken and doesn't install the license file.

So, I installed the professional version since it had a longer trial period, hoping that now I'll be able to see the IDE and start working.

After this, I tried several times to start Carbide itself, but it failed at different points in time. I "just"[4] configured wine for this app to set the order to 'native,builtin' for msvcrt, ole32, oleacc and shdocw and got further.

Hopeless attempts follow....

At this point I got stuck. There was still some error from ole32.dll (apparently), but I couldn't go further.

I tried to install the 1.1 trial version. Got stuck. In any way I couldn't start Carbide c++ :-(( .

GRAND FINALE!

In the end, I also tried the deprecated CodeWarior. Guess what? It installed and ran immediately. Although I am not sure if any of the previous poking had anything to do with it.



[1] I have some packages from unstable
[2] although I had one, I wanted to get rid of it, since gnash started to perform better in the latest versions - still not satisfactory, but OK
[3] some browser plugin WPGInstall.exe, iirc and some app which should send your privat^W^W^Wanalise your system to generate some code that should identify your system as genuine
[4] this also took me some time... start, identify the dll, change the order, restart...

Martín Ferrari: About installing a complex perl web application

Today, MJRay asks how to make MakeMaker (no redundancy!) do what he wants. Incidentally, I faced this issue just yesterday, preparing an application for internal use in my job. As sysadmin, I want all the homebrew software to be Debian-packaged, even if they're not the most policy abiding packages. I was installing some modules for mod_perl2, some utility modules and a couple of scripts. Of course, it also needed accesory files, like images for the web or templates for HTML, and configuration too. After reading the reply to this post, written by Randal Shwartz himself, I got convinced that there wasn't any frigging way to make the thing do it. So my solution was far from ideal, as I wanted to put everything in the Makefile, but it wasn't so ugly, considering that it was only meant for use in a Debian package: In a nutshell, if you only want to process modules and CGIs, you can do it with MakeMaker

17 May 2007

Cord Beermann: Packaging Simple PHP Blog postponed.

We found out that Simple PHP Blog, the software that is used for this Blog, can't be packaged for Debian at the moment, because the License looks like this:

The Simple PHP Blog is released under the GNU Public License.

You are free to use and modify the Simple PHP Blog. All changes
must be uploaded to SourceForge.net under Simple PHP Blog.

Credit must be give to the original author and the Simple PHP Blog
logo graphic must appear on the site and link to the project
on SourceForge.net


So problems are (as far as i understand):



So i tried to explain this politely to Upstream, I hope he honors my request, as i really like this piece of software and want to see it in Debian.

Miriam Ruiz: Ren Py Visual Novel Engine in Debian

Ren’Py is an engine that supports the creation of visual novels and storytelling. I fell in love with it since I first saw it, almost two years ago, and some of my friends know how much work I’ve devoted to that package so that it’s finally in Debian in a proper state, including submitting many patches to upstream. Lots of thanks go to Ana for all her help and support with this package. Ren’Py is designed to make writing complete visual novels as easy as possible. The engine supports, of course, conversations between the two characters, but also images, different transitions between pictures, music and sound, so playing a game can be a complete multimedia experience. The engine itself is based in Python and SDL (in fact, it is based in python-pygame). Anyway, ccording to the manual, you don’t need to know any programming, or be able to program, to use Ren’Py. Even though right now there are a lot of games made with Ren’Py available for downloading, most of them are released pre-compiled (for a certain version of python, including the whole interpreter and libraries in the release), and usually targeted towards Windows (even though Ren’Py is supported on Windows, Mac OS X, and Linux, and can be made to run on other platforms). Of course all the authors of the games are welcome if they want to publish them as Free Software, anyway my plans go towards using the engine for developing educative applications. My only problem is that I need to draw the characters I’ll use throughout the tutorias, which is something I’m not especially good at. I’ve got myself a book on how to draw manga and anime characters, but it’s probably taking a while until I’m proficient enough at that. I’ll try to find someone to help me with that. In fact, it would be great to release a free set of characters that newbie creators of stories could use as a starting point. Lets see if I can find an artist for that. The main drawback I see is that the dependencies might be too much to put the engine in a small embedded portable gadget to be able to play a visual novel anywhere. Who knows, maybe in the future.

Gunnar Wolf: When bad system design leads to pain...

A long time ago, I wrote the system that still manages the Cuerpo Acad mico Historia del Presente group in the Universidad Pedag gica Nacional. Yes, I'm happy a good portion of my project, which took me over a year of work... But I must admit a nice deal of shame as well.
Of course, it comes from not properly understanding the domain data and information volume my system would be working with - and coming up with a stupid way to implement searches. I won't get too much in detail because, even if you had access to the full search facility in the system (no, it's not available for the general public), I would not like a swarm of curious people to make last week's events come back... Anyway, the group works by daily filling in tens or hundreds of articles in the system, and having some interesting search sessions every couple of months.
I knew the performance problem was caused by an inefficient searching mechanism (explicitly, category exclusion is the prime killer). I knew loadavg jumped through the roof, memory usage did so as well... But it was not until some weeks ago we installed the mighty Munin on the machines at UPN that we got this jewel - Thanks, Victor, for putting the graphics somewhere they can be shown! ;-)
So... How much does memory usage increase during searches?

Whoa. The system has 640MB real RAM. It has as well 1GB swap. Don't ask me how the hell it reports it was using ~2GB swap - but still... And how is our load average?

Have you ever seen a (single CPU, Pentium 4 1.7GHz) Linux system with a loadavg of 80?! For those who don't know, loadavg gives you the general status on how many jobs are pending scheduling by the CPU. 1 means that all of the CPU's time during a specified timeframe was used (and, on single-core systems, it's the optimal usage level). On this machine, things start getting uncomfortable at 6 or 7. I had never before seen values even half this large.
Sigh... Well, in my defense, I must say I've warned them about this problem for over two years. My contract with them has long passed - I've repeatedly recommended them to hire somebody to fix it. So far, they have not.

Next.

Previous.