Search Results: "ag"

29 August 2006

Aigars Mahinovs: Die C

I am not a good coder. In my mind a coder is determined by how much he loves C (or, in clinical cases, assembler). I hate C and avoid it whenever I can, because I am always off-by-one, and often even in more then one place, which make debugging even more .. fun. :( Currently I am coding an application that is centred around use of artificial neural networks (more precisely a multilayer perceptron). The NN part must be done in C for speed and memory usage (imagine adding and multiplying hundreds of millions of floating values just for one operation .. and having to do that for 10 000 times for training .. while holding the whole data set in RAM, because you access every single value of it every second). With that in mind I engineered my system in such a way that the C part can be reduced to a couple simple operations that I can adapt from examples of the NN library. And still I barely wrote those pieces. Working with MySQL in C is pure pain, for example. The rest of the system is in Python and I must say that Python is a godsend by itself, without even comparing it to C. I am now so used to Python when I was debugging my C program, I automatically wrote a chunk of Python into it and was very surprised when it did not work. With that in mind, to ease the pain for further generations of neural network researchers, I will (someday) find some time and write Python wrappers for the nice and cool Lightweight Neural Network C library that I am currently using here. BTW: I found that SourceForge is packed full with great software projects, but it is very hard to find those projects in Google. Morale - seeking for good free software? wajig (or apt-get) it! then sourceforge it! then freshmeat it! and only then google it.

Rodrigo Gallardo: hello-world.deb

Hi there! Ever since I learned about free sotfware, I’ve always intended to give something back to the projects I’m benefitting from. But I had always allowed something or other to get between me and my good intentions. And then DebConf came to us. And I just so loved the people there and the way they work and play together that I finally got over my excuses and got working. And so, this place is born. I intend to leave here a trace of how I’ll get to be a real free software advocate, developer and community member. I don’t expect this to be a nice path. There’s much to learn, much to do, much to overcome. Outside and (most importantly) inside myself. Hence the name of the place. This is my bleeding edge. The one with the bruises and scars. I will dig in. See you on the other side.

BTW. I want to thank Gunnar for inviting me to the planet. I’ll do my best to stop whining.

28 August 2006

Jordi Mallach: Thank you for the problem report you have sent regarding Debian.

Our user manuals encourage all newcomers to the Free Software community to file bugs when they find incorrections and bugs in a package. Of course, there's always some people who take it too far (!). Get prepared, DeFuBu challengers!

Matthew Garrett

I resigned from Debian today.

It wasn't actually any one thing. But over the past few weeks (months? Years?) it's become clear to me that Debian doesn't really seem to know who or what it's for. Arguments erupt over whether something is a deeply held principle or an accident of phrasing on the website; whether we should release more often or less often; whether free software is more important than our users having functional hardware. And, depressingly, these debates generally seem to turn into pedantic point scoring and insults and yes, I'm probably as guilty as many others in this respect. But it's got to the point where social interaction with Debian-the-distribution makes me want to stab people, even though I've just spent a lovely weekend with Debian-the-people. Perhaps worse, I occasionally find mails I've sent that make me want to stab me.

So it's got to the point where I find myself reading things written by people I respect, and deciding that I'd be generally happier if I didn't read them. I could just unsubscribe from all the mailing lists, except that part of the fun of being involved in Debian was being part of a community. I don't want my only form of communication with the rest of the project to be limited to bug reports, especially when I find the development IRC channels as bad as the mailing lists.

It's interesting to compare Debian to Ubuntu in this respect, though the different ages of the projects make it difficult to draw any firm conclusions. The fairly rigidly enforced Ubuntu code of conduct probably helps a great deal in ensuring that discussions mostly remain technical. The distinction between core-dev and MOTU is a pretty explicit acknowledgment that not all developers are equal and some are possibly more worth listening to than others. And, at the end of the day, having one person who can make arbitrary decisions and whose word is effectively law probably helps in many cases.

There's a balance to be struck between organisational freedom and organisational effectiveness. I'm not convinced that Debian has that balance right as far as forming a working community goes. In that respect, Ubuntu's an experiment - does a more rigid structure and a greater willingness to enforce certain social standards result in a more workable community? In a few years, we ought to have an answer. I look forward to finding out.

Alexander Schmehl: Note to myself:

When moving packages from one package to an other, take special care for proper Replaces: and Conflicts: lines. Oh... and when finally testing the upgrades, don't waste your time testing it with plain dpkg on the command line. It will fail. You'll need to test it with apt-get or aptitude directly.

Simon Richter: Paging Ultravox

For the BSP marathon, I'm going to join the Austrian crowd in Vienna. I just got the train tickets, now I wonder whether there are going to be power outlets on the train.

Simon Richter: T-Online sucks, again.

Our server has not been reachable from inside T-Online today. The reason is that they seem to inflate TTL on DNS entries to reduce load on their servers. This field is there for a reason. People might decide to tune it when they expect changes, for example when moving services to another machine, like I did today. And will do again next week for some of the domains, as this is only a temporary home (in fact, it is a dd'ed image from the old machine running as a Xen instance on a spare IP now, to make the migration easier.

Martin-Éric Racine: On entrepreneurship and Tallinn

Lars mentions in the same article that he is thinking about starting a business and that Tallinn is nice. I agree. Now, what if we combined both statements? Not surprisingly, other Finns had the same idea, including former collegues of Lars and I, who took advantage of Estonia's outstandingly welcoming taxation laws, of Tallinn's luxurious variety of restaurants and coffee shops, of Estonia's comparatively more affordable cost of living and of the omnipresent country-wide wireless network. Given this, is it any surprise that I keep on spending more and more time there? Now, if someone on Toompea could only take a hint and realize that a qu b cois kegi r gib eesti keelt natukane and who has been living for more than 8 years in the neighboring country very much is a local and ought to be equally welcome to immigrate as any EU national...

Lars Wirzenius: Random thoughts: Thoughts, random

These thoughts are somewhat more random than usual. I have an urge to start a business. This is going to require reduction in my Debian commitments. To begin with, I'll unsubscribe from -devel and -project, and probably -vote. I hope I won't need to drop any packages. Who knows, not reading the might even re-motivate me on doing Debian stuff. I might even start taking the new Python policy seriously and disregard that it seems to make everyone stupid. Tallinn, Estonia, is pretty. Or at least the Old Town is, I haven't visited anything else. The two Italian cats I met in Tallinn were very pretty, too. Coming up with names for programs and companies is quite difficult at times. I want something that Google can easily find; I don't want to repeat the SeX mistake again. My photography hobby is rather dormant. It's so dormant, I can't even justify buying a new camera. This doesn't motivate me to work on Lodju, my photo organizer, unfortunately. It'd be cool to find someone who would really like to work on it. There's a few basic decisions I've made that prevent me from jumping on the F-Spot bandwagon. It's raining. It's finally raining. This summer is finally complete. Just in time for autumn. "Getting Things Done" might actually work for me. It feels weird, though, to seriously read self-help books where the author keeps reminding the reader on every second page about his twenty years of management consulting experience. If it had been a web page, I'd have closed the tab. I need to seriously think about having more fun. All work and no play makes liw a raving, raging, violent lunatic.

Martin-Éric Racine: GNOME Network Manager annoyances

Having recently gotten around buying a WIFI card for the old ThinkPad 240x that my friend Marcus gave me and installed Dapper on it, I began to look for a simple method for selecting wireless Access Points. Someone on #ubuntu recommended network-manager, which I promptly installed. Well... The NM version in Dapper wouldn't even cooperate with a common 8139too Ethernet card! First, it would correctly fetch the IP from the router, but then the network-manager-gnome applet would keep on spinning and only stop after resetting the IP to some 169.254.0.0 private network meant for Bluetooth and other similar networked consumer devices. I then cautiously upgraded to Edgy, just enough packages to get a newer network-manager daemon and a 2.6.17 kernel, then tried again. Ah! It at least finally retained the dynamic IP whenever using the 8139too Ethernet card, but it still refused to connect to a wireless network whenever I switch to the DWL-G650 card. Hmm... Just to check that the Atheros driver (AR5212 chipset appearing as ath0) was correctly loaded, I did a test by opening a terminal and manually setting the ESSID to the nearest Internet caf 's AP, using iwconfig, then launching dhclient3. Look, ma! It works! Inspecting the logs revealed that connecting to a non-encrypted network with network-manager systematically fails, because NM bombards the Access Point with wpasupplicant, then sits there wondering why the AP doesn't request authentication, thus eventually reporting a failure to associate with the AP. How do we fix this? Any Network Manager developer who is reading this that would care to comment?

Erich Schubert: Ajax is devolution

Ajax isn't progress, it's actually a step back. Most people have been happy to actually use some sane advanced language for doing web sites. There is Java, JSP, PHP, Ruby, Python, Perl, ... And then there is Ajax. One of the main components is JavaScript. That language most of us would have loved to forget. Forever. Ajax brings you back into the dark ages of internet development, with browser incompatibilities, it features memory leaks, and many Ajax apps (such as live.com) will run unbearably slow on older computers. Such as my 1.8 GHz P4M laptop. If they work at all - live.com just shows "Loading..." for me right now. Have you ever looked at some of the actual Ajax code? This isn't the future, this is the dark ages coming back! [MJ Ray replies that I didn't mention accessibility issues with Ajax. That's true; I'm aware of them, but this post focuses on Ajax doing away with all the advances in programming languages and software engineering... The in-accessibility of Ajax stuff is worth an own blog post sometime]

Biella Coleman: New Look

Thanks to the help of Jason of Vermont, my blog has a new look. Not sure who actually goes to original blog pages anymore, given RSS, but at least it saves me some pain and angst when I visit my own site.

Simon Richter: Xen and rootkits

The big disadvantage with the way I'm doing backups, namely by creating a snapshot outside of the system, playing back the journal and then writing that out, is that it leaves me with some files always being broken, plus it "feels" wrong. I am thinking about a way to tell the kernel from the outside to quiesce the filesystems so I can do a snapshot, and then resume. Obviously, I wouldn't tell it when I am going to do a rootkit scan, and I'm becoming inareasingly convinced that no self-respecting rootkit would leave complete removal instructions as journal entries in the filesystem unless it also controlled the kernel, which it doesn't in a Xen environment (because the kernel and initramfs come from outside).

Axel Beckert: Goodbye Woody, Welcome Sarge (Penultimate Part)

Since security support for Woody ceased recently, and with Kazehakase I’ve found a reasonable successor in Sarge for Galeon 1.2.x, I’ve dist-upgraded my 10 years old Pentium I ThinkPad bijou to Sarge this weekend. Even the XFree86 4, which made so much hassles in Woody by not regcognising nor configuring the graphics card correctly, worked fine from scratch. Well, at least after installing xfonts-base and xfonts-75dpi — the -transcoded versions somehow gave only the error message “default font ‘fixed’ not found”. So goodbye Galeon, goodbye GNU Emacs 20, goodbye XFree86 3.3. I hope, I won’t miss you. Only my desktop gsa at home still runs Woody, but will be dist-upgraded soon, too. What though still stayed on my laptop from Woody is Siag Office, since there is no adequate replacement for such a nice office suite with such a low resource footprint. But it has also an impact on the talks I hold. I held all talks with a patched version of lynx (e.g. with LSS support) as presentation tool on that laptop because initially I didn’t get X running on that box. What started as a makeshift became my hallmark… But I didn’t manage to get Sarge’s lynx patched so that it gives me the same output as my old version did. So either I would have to reoptimise the layout of my talks for a new lynx version or just start with something new. Madduck recently showed me python-docutils, which he uses for presentations. Maybe I’ll use that although I have a severe aversion against Python. So it may also be that I’ll stick with WML, but get some new ideas from python-docutils how to use HTML for presentations. Update: Found out that the interesting part of his presentation technic wasn’t python-docutils but S5: A Simple Standards-Based Slide Show System which in entirely written in XHTML, CSS and JavaScript. S5 is really cool stuff, one of the first cases of useful use of JavaScript, and will surely be used for my next presentation — with Debian Sarge and Kazehakase on a Pentium I ThinkPad. ;-)

27 August 2006

Clint Adams: Supersize me?

In general, I avoid (inter)national fast food chains. Prior to Friday, I hadn't been in a McDonald's since February 2005. I remember because of Ari's immemorable gesticulation and utterance. It was somewhat of a shock then on Friday when I went to (and ate from) McDonald's, Burger King, and Taco Bell (in that order), all before dinner time. In order to atone for this, I guzzled fresh fruit of the blackberry, plum, and apple varieties, and chased that down with some , , , , , , and, of course, fifteen pounds of . I may have eaten even more on Saturday, and on Sunday my hands became once again stained with the sticky, sweet blood of the ovaries of the blackberry plant. Bless you, ovaries. Blovaries.

Jesus Climent: Thanks, Steve.

We have messed up your house, your backyard, stolen electricity, network and orange juice. Thanks for it. It was nice to meet Debian people again in such a nice environment. This blog entry sponsored by the “Isn’t Jesus cool?” gang.

Uwe Hermann: Testing stuff with QEMU - Part 1: SELinux support in Debian unstable [Update]

Here's a quick HOWTO to get you started with the QEMU emulator, the Debian installer (etch beta 3), and SELinux. If you execute the following steps you'll be left with an SELinux-enabled Debian unstable QEMU image, but not with a complete working and perfectly configured SELinux system. A more detailed article about SELinux will probably follow... Basic Debian unstable install in QEMU:
  1. Install QEMU:
    apt-get install qemu
  2. Download the latest Debian etch installer ISO image (etch beta 3, currently):
    wget http://cdimage.debian.org/cdimage/etch_di_beta3/i386/iso-cd/debian-testing-i386-binary-1.iso
  3. Create a QEMU image which will hold the Debian installation:
    qemu-img create -f qcow /path/to/debian.img 5000M
  4. Boot directly from the ISO image and install Debian into the QEMU image (I won't go into the details of the installation itself; Wolfang Lonien has nice HOWTOs for that: part 1, part 2, video):
    qemu -hda /path/to/debian.img -boot d -cdrom debian-testing-i386-binary-1.iso
  5. After the installation is done, configure the system, tweak /etc/apt/sources.list if needed, and then dist-upgrade to the latest stuff:
    apt-get update && apt-get dist-upgrade
  6. That's about it for the basic Debian install, you can now shutdown the OS and QEMU (type "halt" in the emulated Debian, wait for the shutdown to complete, press CTRL+ALT+2 to switch to the QEMU console, and type "quit").
Creating a QEMU overlay image: QEMU has a nice feature called overlay images which allows you to "clone" an image, where the new (overlay) image will only store the "diffs" to the original one, thus saving lots of space. This also allows you to remove the overlay image at any time and restart from the original image (which is nice for testing stuff which may break).
  1. Create an overlay image based on the previously installed Debian image:
    qemu-img create -b /path/to/debian.img -f qcow /path/to/debian_selinux_overlay.img
  2. Now boot into the new overlay image:
    qemu -hda /path/to/debian_selinux_overlay.img
Basic SELinux setup: SELinux / sestatus screenshot
  1. SELinux wants to label all the files on your system (all inodes actually), so your filesystem(s) need the so-called extended attributes (xattr) and "security labels" (both are kernel options) which most modern file systems now support. For ext3 (for example) you need these config options:
    CONFIG_EXT3_FS=y
    CONFIG_EXT3_FS_XATTR=y
    CONFIG_EXT3_FS_SECURITY=y
    Luckily the Debian kernels are xattr-enabled by default so we don't have to do anything at all here.
  2. Install the basic SELinux packages and the source package of the SELinux reference policy:
    apt-get install checkpolicy policycoreutils selinux-policy-refpolicy-src
  3. I noticed a bug in the current Debian packages (the setfiles utility is in the wrong place, see #384850), but there's a simple workaround:
    ln -s /sbin/setfiles /usr/sbin/setfiles
  4. Now we can (re-)label the file system:
    cd /etc/selinux/refpolicy/src/policy
    make relabel
    This will build the reference policy from source and relabel your file system (this will take a while).
    There might be some warnings (and maybe you'll notice further bugs), but they seem not to be critical.
  5. We can now (almost) enable SELinux, but before we can reboot we need to work around another bug (#384852), otherwise SELinux will not be enabled when we reboot:
    ln -s /etc/selinux/refpolicy/src /etc/selinux/targeted
  6. Now reboot the emulated Debian system, and at the GRUB console add the kernel option selinux=1 to enable SELinux in the kernel (press "e" to edit the boot options).
  7. You'll get tons of SELinux log messages while the system boots, that's normal at this point, don't worry.
    Then you can type "sestatus", which should print some information on the running SELinux system. If it says "SELinux status: disabled" something went wrong.
Congratulations! You now have a QEMU image with minimal SELinux support and you can start playing with it, tweaking the policy, finding and reporting bugs, reading tons of documentation on how SELinux actually works etc. etc. As SELinux is (half?) a release-goal for Debian etch, it would be nice if many people could test it before the release, and this is one method to do so without breaking your production systems. Update: You don't really need user_xattr support for SELinux, only xattr support (for security.selinux xattrs) for the filesystem you use, which is available per default in Debian kernels (thanks Russell Coker).

Wouter Verhelst: Weekend

This blogpost brought to you by the use of Steve's electricity, network connection, and couch. And hospitality, of course. For some reason, I appear to have lost my voice again. I don't know why it is that every time I meet Debian people during a weekend, I lose my voice, but this appears to be what's happening; I lost my voice during the last two FOSDEMs, and again this weekend. Oh well. We had a nice little barbecue last night, with lots and lots of Debian-UK people attending. And some non-UK people, too. Met some people that I hadn't seen since Helsinki and some others that had been at FOSDEM. Plus, obviously, some new faces. Only need to put names to them, now, which I will probably have forgotten by next time I see them. As usual. I was planning on harassing someone into helping me to get my Airport Express to work again, but when I tried it just once to get some useful printk output, it suddenly seemed to work. Strange. Oh well, not as if I care. Watching the F1 race now, let's see what happens after that. Nice start of the race, though, with a spectacular crash of a number of people.

Alexis Sukrieh: The road to Backup Manager 0.8

Now that my Debian packages are in a better shape, I’m focusing on closing as much upstream bugs as I can in the BackupManager source tree. The more I close, the more I think it’s time to freeze the code for targetting a new stable release. I’d like very much to manage to release Backup Manager 0.8 before Debian enter its frozen-prerelase phase; providing a mature version of BM within “etch” would rock.

Russell Coker: Linux on the Desktop

I started using Linux in 1993. I initially used it only in text-mode as I didn't have enough RAM to run XFree86 on my Linux machine. I ran text-mode Linux server machines from 1993 to 1998. In 1998 I purchased my first laptop and installed Linux with KDE on it. I chose KDE because it had the greatest similarity to OS/2 which I had used as my desktop OS prior to that time. At the same time I purchased an identical laptop for my sister and gave her an identical configuration of Linux and KDE.<br /><br />Running a Linux laptop in 1998 was a lot harder for a non-technical person than it is today. There was little compatability with MS file formats and few options for support for Internet connections and third-party hardware and software (most things worked but you needed to know what to do). One advantage of using Linux in this regard is that the remote support options have always been good, I was able to fix my sister's laptop no matter which country she was in and which country I was in. Her laptop kept working for more than 5 years without the need for a reinstall (try that on Windows).<br /><br />It was when VMWare first became available (maybe 2000) that I converted my parents to using Linux. At first they complained a bit about it being different and found VMWare less convenient than the OS/2 <span style="font-style: italic;">Dos box</span> for running their old DOS programs. But eventually they broke their dependence on DOS programs and things ran fairly smoothly. There were occasions when they complained about not having perceived benefits of Windows (such as the supposed ability to plug in random pieces of hardware and have things all work perfectly). The fact that using OS/2 and then Linux has given them 14 years of computer use with no viruses and no trojans tends to get overlooked.<br /><br />Of recent times the only problem that my parents have experienced is when they bought a random cheap printer without asking my advice. The printer in question turned out to not work with Fedora Core 4, but when Fedora Core 5 came out the printer worked. Waiting 6 months for a printer upgrade isn't really a serious problem (the old printer which had worked 6+ years was still going strong).<br /><br />My parents and my sister now have second-hand P3 desktop machines running Fedora. P3 CPUs dissipate significantly less heat than P4 and Athlon CPUs, this significantly reduces the risk of hard drives dying when machines are left on in unairconditioned rooms as well as saving money on electricity. For the typical home user who doesn't play 3D games there is no real need for a CPU that's more powerful than a 1GHz P3. This of course means that there is less need for me to reinstall on newer hardware which also means more reliability.<br /><br />I always find it strange when people claim that Linux isn't ready for the desktop. I provide all the support for three non-technical users of Linux on the desktop and it really doesn't take much work because things just work. Corporate desktops are even easier, in a company you install what people need for their work and don't permit them to do anything different.<br /><br />It seems to me that Linux has been ready for the desktop since 1998.

Next.

Previous.