Search Results: "mak"

20 May 2007

Steve Kemp: Will you lead me to your armchair

Assume I m using mutt for my mailclient and that I have all my mail stored beneath ~/Maildir. Is there a simple way of limiting an index to only those folders containing New messages? I know that I can use the index_format to display something like N next to folders containing new messages but I cannot seem to limit the display to just those ones. (At any given time I ll have something like 30+ mailboxes with unread messages, if not more.) My current mutt looks something like this, which shows that I have 24 folders with unread messages but it doesnt make it easy to tell which they are:
..
269       4096 May 11 22:49   ~/Maildir/.spam/
270       4096 May 11 23:36   ~/Maildir/.spam.bayes/
271       4096 May 11 22:49 N ~/Maildir/.spam.image/
272       4096 May 11 22:49   ~/Maildir/.spam.pyzor/
273       4096 May 11 22:49   ~/Maildir/.spam.razor/
274       4096 May 11 22:49   ~/Maildir/.spam.request/
275       4096 May 11 23:27   ~/Maildir/.spam.unsure/
276       4096 May 11 22:54   ~/Maildir/.steve_org_uk/
277       4096 May 11 22:49   ~/Maildir/.syswear_com/
..
-- Mutt: Mailboxes [24]

Steve Kemp: If you despise that throwaway feeling

After far far too long in the making I m ready with a demo of my new site. The demo is mostly complete, and 90% of the code is hooked up. There are some bits missing, and some gaps in functionality. I m working on this about 45-90 minutes a day at the moment, and that isn t likely to increase any time soon. Probably not everybodies cup of tea, but after running Livejournal Valentine matching sites for a few years I ve had the ambition of running an online dating site. And this is a nice small niche with only weak compitition Anyway I hope a few people sign up and play around whilst things are developed more.

Steve Kemp: He was in a bind 'cos he was way behind

My girlfriend who was returned from hospital on Friday learnt a couple of days later that she d managed to suffer a fractured skull. Apart from that shocking news I ve been doing little. Lots of travelling, lots of tidying up /bin, little else. One new toy is release which will allow me to easily release projects. The idea is you run /bin/release inside a project directory and it will: Very simple, almost trivially so, but it has a lot nicer than having to do all the bits manually. (sample .release file.) I had a piece of code for triggering new freshmeat announcements working a while back but it was a little too fragile when it came to reading the ChangeLog files I use so I ve killed it for the moment. (Probably $EDITOR fresmeat.tmp & would be a better idea anyway!) Connectivity is bad right now, since I m in the middle of changing home ISP, but hopefully that will be resolved in the next week or two. (Switching from Telewest/Virgin -> Sky for people in the UK who might care.)

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.

Benjamin Mako Hill: Free Culture Talk Recording

As I mentioned previously, I was graciously given the opportunity to speak the crowd at the Free Software Foundation's Members Meeting in March about some of my work and activism around Free Culture. In front of what was probably the friendliest audience possible, I compared the free software and free culture movements and explained why I think that free culture movement may be off track -- and, of course, what we as a community might be able to do about it. If you listen to it, please try to forgive my faults as a speaker. The message I tried to convey is what I think is one the most important tactical issues facing free culture. If this talk dwells a little too long on free software and the lessons we might take from that world, please consider my audience. You can listen to the talk here:

19 May 2007

Evan Prodromou: 29 Flor al CCXV

Busy day yesterday; the first day of RoCoCoCamp, and the first day seeing a lot of friends and friendly faces from out of town. I was out of bed at 6AM yesterday. I stopped at St. Viateur Bagel on Mont Royal and got 10 dozen bagels -- enough for our expected crowd. I got to SAT at about 8AM, just in time to start the coffee machines. The big percolators I rented for the event require about an hour to make coffee, so if people were going to be coming in at 9AM, I really wanted to get them started by 8. Alain Bernardeau from computation.to got there soon after, and set up the spare computers his organization is lending us. Brandon Sanders, Mark Dilley and Nathan R also came in early, looking for work to do. I got them all into the job of setting up the food for breakfast. By 9AM we were trucking along, and I figured I'd go try a cup of joe, which should be ready. But all I got from the carafe was cold water. The percolators draw so much current that they'd blown a circuit. Guillaume, the SAT tech, and I tried about 8 different ways to keep them running, but nothing worked. Finally he put them on the 220V industrial circuit, which they didn't blow. Awesome, but at 9:30AM, with almost everyone there, we had no expectation of coffee for another hour. Yikes! But by the time people started filtering into the circle for starting the event proper, coffee was rolling and I was much relieved. Our facilitator, Deborah Hartmann, gave a great bilingual introduction to Open Space Technology and got the ball rolling. I always have a moment of dread during the beginning of a Open Space event: what if this is the time that Open Space doesn't work? But it did, again, which is great. The first session I went to was Zach Copley's, about consensus-supporting software features. Brandon Sanders had some great cases from AboutUs's adult content policy. We shared a lot of Wikitravel's culture, too. I also stopped in to talk about Wikitravel:RDF with Reini Urban, who was demoing Semantic MediaWiki. It's a neat project, and it's a different tack than I've taken with Wikitravel. I'd like to see the two approaches harmonized at some time in the future. Lunch came quickly, and we had far too much to eat. I spent a lot of time talking to Simon Law about possibly using Open Space in some way for BarCampMontreal. I think it's a good idea -- it's growing to a point where our current format is straining under the load. We also talked about ubiquitous wikis and the cool browser Amaya, where Web pages are in edit mode by default. It's a good idea. After lunch I had a chance to hang out with Earle Martin of Open Guides and talk about wiki and the geospatial web. Mark Jarowski of Wikevent was there, and together we've decided to hammer out a RDF vocabulary for exchanging RDF data about business listings. It's the kind of productive talk I like having. I also spent some time with Jack Herrick talking about wiki entrepreneurship. Jack had a prepared presentation about wikiHow's business experience, which was really great, and provided a great case study for talking about commercialization of wikis in general. With Angela Beesley and Ray King around us, we had most of the interesting wiki content businesses represented. Pretty neat. It was a really productive first day, but by the time we got around to 5PM I was exhausted. Maj, Zach, Mark, Niko and I all went to our new house at 4690 rue Pontiac to meet Allegra and their two daughters, No ma and baby Anoushka. We got pizza and had beers and sat on our new couch and had a good old time. Technorati's rocococamp tag shows a lot of other positive responses on the Web: Matt Forsythe's sketches from RoCoCoCamp, NathanR's continuing paranoia, CITIZENShift (which quotes me, when I was talking about wiki entrepreneurship), and Patrick Tanguay.
 
I'm off to SAT again this morning. Should be a fun one, and I hope to get a little more time to myself before the event starts today. tags:

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

Joey Hess: today is

Today is tilt at windmills day. Alternatively, for Debian developers, it's check your package's Recommends to make sure they're sane[1] day. I did both.
[1] The 'Recommends' field should list packages that would be found together with this one in all but unusual installations.

18 May 2007

Nico Golde: grml-1.0 released



3 1/2 years after mika registered grml.org it's done. Congratulations! HURRAY!!!11!1!!
grml provides more than 2500 software packages! Excluding library stuff, more than 1700 packages remain. We don't ship KDE and OpenOffice, but more than 800 packages which Knoppix does not provide. You'll get sysadmins favourite tools, security- and network-related software, data recovery- and forensic-tools, LaTeX, many editors, shells, and of course many texttools.

grml provides several scripts and utils which make life easier. zsh is configured with the completion mechanism. grml-x is a wrapper for configuring and using the X window system. grml-crypt is a program that provides an easy wrapper arround cryptsetup, mkfs, losetup and mount. grml-vpn is a program to establish encrypted communication channels in a network, and so on...


Grml 1.0 release name Meilenschwein was just released.

I am tired of sitting in front of my PC for today, that's why I just link to the:
release announcement.

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

Russell Coker: SE Linux in Debian

I have now got a Debian Xen domU running the strict SE Linux policy that can boot in enforcing mode. I expect that tomorrow I will have it working with full functionality and that I will be able to run another SE Linux Play Machine in the near future. After getting the strict policy working I want to build a Debian kernel with CONFIG_AUDITSYSCALL and an audit package so that I can audit system calls that an application makes and also so that the auditd can collect the SE Linux log messages. Other people have talked about packaging audit for Debian, hopefully one of them will do it first and save me the effort, but it shouldn’t be too difficult to do if they don’t. Then I need to investigate some options for training people about SE Linux. As I don’t currently have the bandwidth for serving large files I’m thinking of basing some SE Linux training on Xen images from the jailtime.org repository. My rough plan at the moment is to have people download Xen images, run through them while consulting a web page, and ask questions on an IRC channel. I’m not sure what the demand will be for this but some web pages teaching people about SE Linux will be a useful resource even if the IRC based training doesn’t work out. Another thing I want to do is to get PolyInstantiated Directories working in Debian. The pam_namespace.so module needed for this is written for a more recent version of PAM, so I might just work on merging the Debian patches with the latest upstream PAM instead of back-porting the module to the ancient Debian PAM.

Russell Coker: SE Linux in Debian

I have now got a Debian Xen domU running the strict SE Linux policy that can boot in enforcing mode. I expect that tomorrow I will have it working with full functionality and that I will be able to run another SE Linux Play Machine in the near future. After getting the strict policy working I want to build a Debian kernel with CONFIG_AUDITSYSCALL and an audit package so that I can audit system calls that an application makes and also so that the auditd can collect the SE Linux log messages. Other people have talked about packaging audit for Debian, hopefully one of them will do it first and save me the effort, but it shouldn’t be too difficult to do if they don’t. Then I need to investigate some options for training people about SE Linux. As I don’t currently have the bandwidth for serving large files I’m thinking of basing some SE Linux training on Xen images from the jailtime.org repository. My rough plan at the moment is to have people download Xen images, run through them while consulting a web page, and ask questions on an IRC channel. I’m not sure what the demand will be for this but some web pages teaching people about SE Linux will be a useful resource even if the IRC based training doesn’t work out. Another thing I want to do is to get PolyInstantiated Directories working in Debian. The pam_namespace.so module needed for this is written for a more recent version of PAM, so I might just work on merging the Debian patches with the latest upstream PAM instead of back-porting the module to the ancient Debian PAM.

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.

MJ Ray: Installing a complex perl web application

I've been smashing my head against this brick wall for a while and can't decide: is it possible to use MakeMaker or one of the other perl installers to install some modules and some cgi-bin scripts in one action? How? Update: Tincho writes in How to recognise different types of trees from quite a long way away: About installing a complex perl web application
"In a nutshell, if you only want to process modules and CGIs, you can do it with MakeMaker"
Unfortunately, I think I have lots of templates and images, so I guess I really do need to do something sick and twisted if I want to use MakeMaker. Is there some web application that does this already? What's long, red, has four wheels and eats grass?

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

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.

Benjamin Mako Hill: A Disturbing Trend

When I saw the first mutilated Tickle-Me-Elmo, I thought it was slightly funny and worth a quick picture with the camera -- but I didn't give it much thought.
/copyrighteous/images/elmo_truck-small.jpg
Now that it's becoming a trend, I'm beginning to get a little worried.
/copyrighteous/images/elmo_desk-small.jpg

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.