Search Results: "ag"

3 January 2007

Simon Huggins: Best feed readers

I think I need to change the way I read RSS/ATOM feeds. At the moment I run a local planet partly because I'm a control freak and it meant that when Planet Debian was down I could still read those feeds and partly because I want to add other people's feeds to it and want to read them all in the same place. This is mostly fine apart from planet's "feature" of ignoring the dates in feeds and occasional either broken feeds or broken parsing causing me to see literal HTML in the generated page. Until recently I didn't have any further problems but a while back I added a very verbose machine generated feed which it would be nice to be able to look at separately. Planet doesn't cope well with this; this feed's entries tend to push interesting ones off so either I have to tell planet to generate a huge page (including much stuff I've already read) or setup separate planet configs. It also just feels inefficient for me to have all the stuff I've already read at the bottom of the page and to be loading any linked images (well ok, getting a 304 Not Modified hopefully) every time I want to look at my planet page. So I think I want a standalone reader or possibly to use an independent service like the google reader or bloglines. Though am I still a control freak so the former sounds better for me. I just tried liferea (from unstable, 1.0.27) and was clicking around and it segfaulted. Not exactly a glowing recommendation. It'd be neat if there was one that presented posts a bit like planet does - all expanded ready for reading one after the other in date order - so all I have to do is read and scroll and things get marked as read. It'd be really neat if I could then mark things as unread or file them some how. Dear lazyweb, does something like this exist? love and kisses, huggie

Russell Coker: Xen shared storage

disk = [ 'phy:/dev/vg/xen1,hda,w', 'phy:/dev/vg/xen1-swap,hdb,w', 'phy:/dev/vg/xen1-drbd,hdc,w', 'phy:/dev/vg/san,hdd,w!' ]

For some work that I am doing I am trying to simulate a cluster that uses fiber channel SAN storage (among other things). The above is the disk line I'm using for one of my cluster nodes, hda and hdb are the root and swap disks for a cluster node, hdc is a DRBD store (DRBD allows a RAID-1 to be run across the cluster nodes via TCP), and hdd is a SAN volume. The important thing to note is the "w!" mode for the device, this means write access is granted even in situations whre Xen thinks it's unwise (IE it's being used by another Xen node or is mounted on the dom0). I've briefly tested this by making a filesystem on /dev/hdd on one node, copying data to it, then umounting it and mounting it on another node to read the data.

There are some filesystems that support having multiple nodes mounting the same device at the same time, these include CXFS, GFS, and probably some others. It would be possible to run one of those filesystems across nodes of a Xen cluster. However that isn't my aim at this time. I merely want to have one active node mount the filesystem while the others are on standby.

One thing that needs to be solved for Xen clusters is fencing. When a node of a cluster is misbehaving it needs to be denied access to the hardware in case it recovers some hours later and starts writing to a device that is now being used by another node. AFAIK the only way of doing this is via the xm destroy command. Probably the only way of doing this is to have a cluster node ssh to the dom0 and then run a setuid program that calls xm destroy.

Russell Coker: multiple ethernet devices in Xen

It seems that no-one has documented what needs to be done to correctly run multiple Ethernet devices (with one always being eth0 and the other always being eth1) in a Linux Xen configuration (or if it is documented then google wouldn't find it for me).

vif = [ 'mac=00:16:3e:00:01:01', 'mac=00:16:3e:00:02:01, bridge=xenbr1' ]

Firstly I use a vif line such as the above in the Xen configuration. This means that there is one ethernet device with the hardware address of 00:16:3e:00:01:01 and another with the address of 00:16:3e:00:02:01. I just updated this section, the 00:16:3e prefix has officially been allocated to the Xen project for virtual machines. Therefore on your Xen installation you can do whatever you like with MAC addresses in that range without risk of competing with real hardware. The Xen code uses random MAC addresses in that range if you let it.

I have two bridge devices, xenbr0 and xenbr1. I only need to specify one as Xen can figure the other out.

Now when my domU's boot they assign ethernet device names from the range eth0 to eth8. If there is only one virtual Ethernet device then it is always eth0 and things are easy. But for multiple devices I need to rename the interfaces.

eth0 mac 00:16:3e:00:01:01
eth1 mac 00:16:3e:00:02:01

This is done through the ifrename program (package name ifrename in Debian). I create a file named /etc/iftab with the above contents and then early in the boot process (before the interfaces are brought up) the devices will be renamed.

In the Red Hat model you edit the files such as /etc/sysconfig/networking/devices/ifcfg-eth0 and change the line that starts with HWADDR to cause a device rename on boot.

Update: the original version of this post used MAC addresses with a prefix of 00:00:00, the officially allocated prefix for Xen is 00:16:3e which I now use. Thanks to the person who commented about this.

Amaya Rodrigo: My health is back

After five weeks of medical leave, taking so many pills in the morning that it was scary, antibiotics, painkillers that made my sight blurry, pain, weakness, loosing 12 kilos... I am back at work! The dist-upgrade was absolutely wonderful :)

Even though I am feeling pretty well, I still sometimes feel that I am not yet 100% recovered, but my strenght is coming back and I am feelling full with energy and optimism. My slight OCD is also much much better, and and I am more focused, happier, and letting go of old grudges. 

After a nice meal on new year's luch, I even think my (otherwise non-existant) relationship with a good part of my family can be somewhat fixed. At least we were able to treat each other in a respectful manner for many hours, in a relaxed, smily climate. And I have a 15 year old cousin, Mar a, that I had not seen in ten years and that has turned out to be a real swetheart! How much I would like her to get involved with computers! ;)

It is still hard to adjust to the noise at my office, the human company, and I forgot all the root passwords! That's a cool one :)
Thank The Flying Spahetthi Monster (without the meatballs) for encrypted partitions on usb keys with ssh keys, and ssh-agent.

/me loads the old-transition-nmu-machine-gun and looks around.


Also note that Droidy was kind enough to update the TheDebianChoirOfComplaints, with the new performances: Hamburg and St. Petersburg. Both are really worth seeing, and I am working on getting the lyrics for both of them. Volunteers?

Evan Prodromou: 12 Niv se CCXV

Maj, Amita June and I took a ride up to San Francisco to see our friends Jack and Tricia in China Basin. Jack started wikiHow, and we've become friends over the last year or so as we're both learning about growing big wikis bigger. We had good lunch from Specialties and talked about their recent trip to Oahu. Then we raced back to Mountain View in time to have dinner at Chevys with my brother Andy, sister-in-law Pam, their two daughters, my parents and Pam's mother Midge. A big party, but we managed to get along, even with 3 girls under 4 years old around. Maj had a cranberry margarita bigger than her head, and Amita June ate her complimentary ice-cream cone all by herself. tags:

I support advertising on Wikipedia Mike Linksvayer has a great follow-up on my discussion in Journal/11 Niv se CCXV about advertising in Wikipedia. He notes quite astutely that a $100M/year budget, based on Web advertising, would put the Wikimedia Foundation ahead of almost any other non-profit organization in the world. $100M is a mind-boggling sum of money to leave uncollected. Think that number's gotta be off by a couple of digits? Mike points out that "In 2005 the Mozilla Foundation and Mozilla Corporation combined had revenue from all sources of $52.9M." Could Wikipedia get something on the same order of magnitude? Almost certainly. Among other things, he suggests that contributors to the current Wikimedia fundraising drive add a simple comment to their donations: "I support advertising on Wikipedia." Great idea! tags:

l33t So, I got a notice from Aeroplan, Air Canada's frequent-flier-miles program, that with all the travel I'd done in 2006, I'd almost be eligible for their Elite benefits level. I'd done 24,341 miles of travel last year -- mostly with trips to California, Portland and Copenhagen -- and the elite threshold was 25K. Today I was reviewing my 2006 flying record and realized that I wasn't credited for one leg of one flight to the West Coast, so I called up and got the miles. Starting in March, I'm gonna be in the the l33t crowd at Aeroplan. Rad! tags:

Felipe Augusto van de Wiel: 2 Jan 2007

Happy New Year! Happy 2007!

And a really happy one!
After the cloud of ideas and subjects on the last post, giving the clear idea that I should keep this blog more up-to-date, here is an important note that is missing (including old news that I should had post but didn't, sorry for that). I'm aware that a few people are interested in how the Debian NM process evolves from person to person, on my last update on that topic, I told you that I was recommended to the DAM by my AM. Almost three months later (2006-11-18) Myon (Christoph Berg, Front Desk Member) couldn't find my final report, he pinged my AM and one week later everything was fine again and I got approved to the next step: DAMnation. On the Christmas' evening I got a nice gift from Joerg, DAM approval. Yesterday (2007-01-02) I got the nice e-mail with the subject: New Debian maintainer Felipe Augusto van de Wiel (Thanks to James Troup, aka, elmo). The entire process took me 8 months and 10 days. I would like to say thanks to everybody that helped me pass thru this experience: Otavio Salvador (my advocate and mentor), Christian Perrier and Luk Claes (Mentors and Uploaders), Clément Stenac (my AM), Christoph Berg (Front Desk), Joerg Jaspert and James Troup (DAMs). They are directly involved in my NM process, but they were not alone, thanks for every single person that helped me with tips and hints, that took some time to teach me and all the people behind different projects in Debian (I really start naming everybody but then I realize that it got very large for Planet): Debian Brasil, Debian Volatile (aba, zobel, sgran), Release Team, Debian Women, Debian i18n Task Force and Debian l10n Brazilian Portuguese, Debian Weekly News Team, buildd.net project, Alioth admins and staff, Debian Installer Team, Debian Kernel Team, Debian Mentors, DebConf Team, OFTC Staff, Debian QA Team, Debian Doc Team, Debian WWW Team, Debian Admin Team (DSA)! People, you know who you are, thank you VERY much! You can check my Status Page to see more details about my NM process and more information about the acronyms used on this post. Now, Brazil has 17 Debian Developers (not counting the one that already retired). :-)

2 January 2007

Alexis Sukrieh: etch is ready for the laptop

Yes, I can tell you, if you have a laptop and want to power it with GNU/Linux, dont run too fast towards Ubuntu’s mirrors, give Debian etch 4.0 a try. It rocks baby. I’ve just installed it on an Asus W3 and a Sony Vaio SZ and the result is amazing. Everything works, even the damned suspend-to-ram thing works out-of-the box on the Asus laptop (not to mention it’s the first time I manage to suspend that laptop in that mode). Congratulations to the Debian-Installer team, you’ve made a great job guys: I wanted to have a 100% encrypted partition for my laptop and had nothing to do but telling d-i so. The graphical interface rocks too, maybe a little issue with synaptic touchpads though but that’s not that a problem as you can use the keyboard bindings at any time. That’s why I like Debian, you can raise your voice as much as you like when the release is not out in time, it just does not matter, because when it’s out, you know that quality is there. So be patient and enjoy the pleasure of the sexiest distro ever: Debian “etch” 4.0

MJ Ray: Debian: Fun with no builder 2

Sven Mueller commented:
"There is a better solution for building packages if you don't have a local unstable machine up. Use pbuilder (w/ or w/o the pdebuild "frontend"). I had refrained from setting up pbuilder for quite a while, and was amazed how easy it was when I eventually did. The only "problem" is that you probably want to make sure that at least "debian/rules clean" works even under Debian/stable. But I personally like to keep my packages buildable under stable anyway (since I usually use backports of them on production systems)."
I tried pbuilder at first and it failed because of the aforementioned debootstrap stable/unstable difference. After I read up on debootstrap, I didn't really see what pbuilder added to the system besides more tarball processing, so I didn't bother trying it again after debootstrap worked. Am I missing out on anything important? Mark Brown commented:
"pbuilder provides management of the chroot environments (you can have several set up and it'll let you choose between and update them) and a convenient front end for building packages in a chroot (you can just point it at a package and say "go build this in a chroot")."
I'm probably being dense, but I still don't see a benefit. A chroot is more-or-less just a tree on the disk so I can have several set up anyway, updating them is just running update inside the chroot and I just mv the package into the chroot and say "go in that chroot and build this". Maybe pbuilder just isn't beneficial for me.

MJ Ray: Debian: Society

Another problematic meme is the idea that no-one need tolerate anyone - even those who are tolerant (known as the Rabid Right meme). When someone has no tolerance for others (for example, flaming people who expect any attempt at fairness, or who follow different social interaction patterns) then they have no place in a community such as Debian. They should clear off to some hard-hierarchy project - it's not like there's any shortage of Rabid Right hackers in this world. </sarcasm> For what it's worth, I believe life should be fair (idealism) and life is not fair (pragmatism). It is possible for those two beliefs to coexist. Expulsion could be fair, but (IIRC) every expulsion proposed so far would have been unfair and based on personal issues, rather than repeated offences: we may be reaching the point where a fair expulsion could happen. It seems a shame none of those who hold them are willing to use the smaller penalties in a Non-Discriminatory way. The "can't take their job away" meme seems more myth than meme, but it does need sorting out in the few places where it occurs. I doubt it will happen under this DPL.

Wouter Verhelst: EU council bullshitting about streaming media

There's been some fuss lately about the EU council, who's streaming some stuff online, in Windows Media format. There is no Linux support, because, they claim,
We cannot support Linux in a legal way
Which obviously is a load of crap. There is no need to require DRM or anything on council meetings, so there is also no need to require Windows Media or any other closed protocol. Hence, using open standards (such as Ogg) would be more than sufficient. Meaning, this petition asks for the right thing.

Thijs Kinkhorst: On Cross Site Request Forgeries

Web applications suffer from a lot of security issues. This may be attributed in part to the ease of use of the most popular web scripting language, but I think the most important cause is that it's inherently easier to exploit web applications. They run in a browser that will run JavaScript code that has access to login data when any small piece of information hasn't been explicitly sanitised. While one would not recognise copy-pasting rm -rf / from a web page into a terminal as a security issue, when a web application user clicks a malicious link it is, because these links can be obscured in various ways. A relatively new issue is the Cross Site Request Forgery (CSRF/XSRF). In short: a malicious site has a hidden form that POSTs to the web application. If the user presses some harmless-looking button, it will be submitted to the original web application which then accepts it because the user has the right cookie. There have been lots of web applications that have introduced some kind of shield against CSRF, mostly it boils down to the form having a random string inserted which is checked upon form submission. I do not think that this is sufficient: it will fend off the most simple attacks, but an attacker investing a little more time can use things like AJAX to request the form from the remote website, get the random string out of it and put it into the malicious form. Won't this kind of "protection" only provide a false sense of security? Is there a technique that web application developers can use to to thoroughly prevent CSRF with their app?

Paul Wise: 2 Jan 2007

[RV Heraclitus SE Asia voyage: blog photos] Arrived at Ko Phuket a few days ago, I'm off the ship and at a hotel. In Bintan, we saw an interesting looking resort with plenty of coconut trees, logs and other stuff floating in the harbour, a snake oil merchant (with a live cobra), barges and transformer ferries, pouring rain and bad drainage. We left Bintan, went south for Selat Durian, then north past Singapore Straits, into the infamous Straits of Malacca and north past Malaysia and to the tourist island of Phuket. Along the way, we saw the coals of sunset, massive jellyfish in the dark green water, huge queues of massive ships covering the horizon as we passed the entrance to the Straits of Singapore, lights from Singapore in the distance, the pirate-free Straits of Malacca, where many large cargo and other ships passed us, the fleet of lights/boats that sprung up as if from nowhere some 50 miles off Phukey, the last sunrise on the ship (in a bay near Phuket) and an awesome NYE party on the ship. Leaving the Heraclitus has been hard, I'm gonna miss that black and red ship and the awesome crew who got us the 3000 or so nautical miles from Cairns to Phuket. Now it is time to visit some Thai Linux developers and return to Australia.

Evan Prodromou: 11 Niv se CCXV

What a great day it was in the Bay Area today -- just beautiful. It's Rose Bowl weather, of course -- Nature blesses California on the day of the Rose Bowl, just so people in the rest of the USA say, "Damn those Californians and their great weather!" Still, there's something so rejuvenating every year around the 10th-11th of Niv se. I wonder what it is? Oh, and: no, we don't have the Rose Bowl in northern California. It's just one of the few times of year that San Franciscans are happy to share the state with their southern neighbors. tags:

Fruitcake So, there's a comedy tradition around the holidays that marks the crappiest possible gift you can get for Christmas as a fruitcake. This is stupid; fruitcake is delicious. Candied fruit + nuts + cake + rum = hooray for fruitcake. My parents got a couple of fruitcakes for Christmas, and they tasted great. I've been noshing on them a bit at a time all week. Great stuff! Rumtastic. Anyone who says otherwise is full of malarkey. In conclusion, fruitcake is delicious and Carthage must be destroyed. tags:

New Year's Eve Maj, Amita June and I had a hard New Year's Eve. Our friends Earl and Sue have an NYE party in Walnut Creek every year, and a lot of our friends from Pigdog Journal are there every year. We had planned to have a room at the nearby Embassy Suites, and have friends over before the party to see Amita June (who needs to be asleep by New York midnight, i.e. 9PM PST). But Maj is feeling really sick -- flu-y and nauseous -- and we had to cancel this pre-event. Bad feelings about this; we've missed seeing this group of friends a few times since the baby was born, and some of them have never met her. Eventually, we all managed to go to Earl and Sue's party together, then left early so Amita could get to sleep. A pretty good solution all around. I got to see a lot of old friends, including Sam and Shannon who just announced that she's blogging for two now. (Congrats!) Tjames was there with his ladyfriend Robyn, which was really nice. They made out a lot, which makes me pretty happy. We saw Dan, Johnny, Randy, Dave, and of course Earl and Sue themselves. A really good party. tags:

All is quiet I had a pretty mild shom-pan-yah hangover this morning, so we were fully able to go see friends Zach and Wendy in El Cerrito for brunch. We hit delicious Picante off of Gilman Street, which is a massive Mexican restaurant, near the Berkeley Gourmet Ghetto and showing some of the foodie-ism of the weird East Bay scene. I had a really good plate of chilaquiles, and Maj had some huevos rancheros and made a pretty good dent in them -- the first food she's really eaten in a few days. Amita June got a great quesadilla with queso fresco that tasted really good. Then, everyone was ready for a nap, so we said goodbye and cut the visit short by heading back to Los Altos Hills. tags:

Ads on Wikipedia So, there's been quite a dust-up on Wikimedia Foundation lists about their recent fund-raising drive. The WMF is having its annual fundraising drive (and, if you can, please help with a donation), and the Virgin Group's charity organization, Virgin Unite, set up a matching fund a few days ago so that all donations to the WMF were effectively doubled. All fine so far, right? But a small logo in the donations notice -- seen by non-logged-in users on every page of every WMF site -- was considered by many Wikipedians and other WMF editors as dangerously close to the line on advertising -- or over it. There have been several prominent users who have left the project because of it. I'm not sympathetic with these folks; in fact, I'm in solid opposition. I think that Wikipedia's huge amount of Web traffic is a resource that the Foundation is squandering. Traffic like Wikipedia's is worth tens of millions if not hundreds of millions of dollars in ad revenue per year. That's money that could go to disseminate free (libre and gratis) paperback pocket encyclopedias to millions of schools and millions of children, in their own language, around the world. It's irresponsible to abuse that opportunity. Brion Vibber's defense of the logo on the Wikimedia Foundation's mailing list is really interesting and instructive. tags:

Dirk Eddelbuettel: And another New Year's Day 5k run in Lincoln Park

For the fifth time in a row, I started yet another year with 5k race by participating in the 22th New Year's Day 5k at the lakefront. The race had decent conditions. Chicago is currently having unusually mild weather, which is an extra bonus. It was well over 50 degrees yesterday, but a little cooler around fourty this morning, and unfortunately overcast. And luckily fairly little wind as it can be unplesant at the lake. Following some mild training runs both Saturday and Sunday, I took it relatively easy and finished around 20:15 or 20:20 -- I forgot to stop the Garmin at the finish, and the official results are not yet published. Not a bad time given that I haven't really trained since the last marathon.

1 January 2007

Russell Coker: installing Xen domU on Debian Etch

I have just been installing a Xen domU on Debian Etch. I'll blog about installing dom0 later when I have a test system that I can re-install on (my production Xen machines have the dom0 set up already). The following documents a basic Xen domU (virtual machine) installation that has an IP address in the 10.0.0.0/8 private network address space and masquerades outbound network data. It is as general as possible.

lvcreate -n xen1 -L 2G /dev/vg

Firstly use the above command to create a block device for the domU, this can be a regular file but a LVM block device gives better performance. The above command is for a LV named xen1 on an LVM Volume Group named vg.

mke2fs -j /dev/vg/xen1

Then create the filesystem with the above command.

mount /dev/vg/xen1 /mnt/tmp
mount -o loop /tmp/debian-testing-i386-netinst.iso /mnt/cd
cd /mnt/tmp
debootstrap etch . file:///mnt/cd/
chroot . bin/bash
vi /etc/apt/sources.list
/etc/hosts /etc/hostname
apt-get update
apt-get install libc6-xen
linux-image-xen-686 openssh-server
apt-get dist-upgrade

Then perform the basic Debian install with the above commands. Make sure that you change to the correct directory before running the debootstrap command. The /etc/hosts and /etc/hostname files need to be edited to have the correct contents for the Xen image (the default is an empty /etc/hosts and /etc/hostname has the name of the parent machine). The file /etc/apt/sources.list needs to have the appropriate configuration for the version of Debian you use and for your preferred mirror. libc6-xen is needed to stop a large number of kernel warning messages on boot. It's a little bit of work before you get the virtual machine working on the network so it's best to do these commands (and other package installs) before the following steps. After the above type exit to leave the chroot and run umount /mnt/tmp.

lvcreate -n xen1-swap -L 128M /dev/vg
mkswap /dev/vg/xen1-swap

Create a swap device with the above commands.

auto xenbr0
iface xenbr0 inet static
pre-up brctl addbr xenbr0
post-down brctl delbr xenbr0
post-up iptables -t nat -F
post-up iptables -t nat -A POSTROUTING -o eth0 -s 10.1.0.0/24 -j MASQUERADE
address 10.1.0.1
netmask 255.255.255.0
bridge_fd 0
bridge_hello 0
bridge_stp off

Add the above to /etc/network/interfaces and use the command ifup xenbr0 to enable it. Note that this masquerades all outbound data from the machine that has a source address in the 10.1.0.0/24 range.

net.ipv4.conf.default.forwarding=1

Put the above in /etc/sysctl.conf, run sysctl -p and echo 1 > /proc/sys/net/ipv4/conf/all/forwarding to enable it.

cp /boot/initrd.img-2.6.18-3-xen-686 /boot/xen-initrd-18-3.gz

Set up an initial initrd (actually initramfs) for the domU with a command such as the above. Once the Xen domU is working you can create the initrd from within it which gives a smaller image.

kernel = "/boot/vmlinuz-2.6.18-3-xen-686"
ramdisk = "/boot/xen-initrd-18-3.gz"
memory = 64
name = "xen1"
vif = [ '' ]
disk = [ 'phy:/dev/vg/xen1,hda,w', 'phy:/dev/vg/xen1-swap,hdb,w' ]
root = "/dev/hda ro"
extra = "2 selinux=1 enforcing=0"

The above is a sample Xen config file that can go in /etc/xen/xen1. Note that this will discover an appropriate bridge device by default, if you only plan to have one bridge then it's quite safe, if you want multiple bridges then things will be a little more complex. Also note that there are two block devices created as /dev/hda and /dev/hdb, obviously if we wanted to have a dozen block devices then we would want to make them separate partitions with a virtual partition table. But in most cases a domU will be a simple install and won't need more than two block devices.

xm create -c xen1

Now start the Xen domU with the above command. The -c option means to take the Xen console (use ^] to detach). After that you can login as root at the Xen console with no password, now is a good time to set the password.

Run the command apt-get install udev, this could not be done in the chroot before as it might mess up the dom0 environment. Edit /etc/inittab and disable gettys on tty2 to tty6, I don't know if it's possible to use them (the default and only option for xen console commands is tty1) and in any case you would not want 6, saving a few getty processes will save some memory.

Now you should have a basically functional Xen domU. Of course a pre-requisite for this is having a machine with a working dom0 installation. But the dom0 part is easier (and I will document it in a future blog post).

Steve Kemp: All the pigs are all lined up

I am slowly recovering from a very hectic New Year Eve celebration in Edinburgh. I was surrounded by a several visiting schoolfriends of my girlfriend, and we even managed to meet up with a couple of visiting Canadians - the ex-girlfriend of an online friend and her cousin (both freshly arrived only a day or two ago). Edinburgh weather was appalling, to the extent that the outdoor street party was cancelled - and several large trees were blown over in Leith. The girls and myself spent the night walking around far too much before settling into a local pub and hearing the bells. Now that I’m recovered I’ve just released a new version of xen-shell which allows you to control a number of xen instances rather than just the one. I’m still not a nice person though.

Gon ri Le Bouder: Azilis pictures

Some pictures of the miss :)

David Welton: One Year of Rails, on_idle plugin

I've been using Rails for about a year, and I am, in general, quite satisfied. It really is a big step forward in terms of web programming, and I've found the whole experience very enjoyable. In a year I've managed to crank out a number of sites in my spare time (in between various other activities such as the occasional bike ride and Hecl hacking): As promised, one of my goals is to shift a bit towards producing open source software as a side effect of revenue generating work. The first small result of that is the on_idle plugin I packaged up for Rails. It's the code that Stuff To Do uses to tell whether people are active or not. Installing it should be as simple as:
./script/plugin install http://svn.dedasys.com/public/on_idle
It's just a few lines of Javascript code that are wrapped up in a way that makes it trivial to use from Rails views:
def on_idle(timeout, options, wakeoptions)
<%= on_idle(600,  :url =>   :action => 'notify_idle'  ,
                  :url =>   :action => 'notify_wake'  ) %>
Let me know if there is anything I should fix/change/improve. If this plugin works out, I will post, in short order, a plugin that improves the default Rails drag and drop functionality.

Marc 'Zugschlus' Haber: About bugs that have been filed a long time ago

I recently had an issue where a remote host would frequently run out of memory after a number of processes had been invoked from remote. I looked in the wrong direction first, but finally found out that each process invocation leaves two sshd processes hanging around, which are eventually exhausting the memory on the box. Next step was finding out what happened for the sshd processes not to properly terminate. Eventually, I remembered that the incoming ssh connections were not invoked directly, but via a third host with “proxycommand ssh other-host socket %h %p”. Looking on other-host quickly showed a number of socket processes being around, and killing them made the sshds on the low-memory host vanish as well. Short-term remedy was therefore to set ClientAliveInterval in the low-memory host’s sshd configuration. I then searched for reasons why ClientAliveInterval is not set by default at least in Debian’s sshd configuration. I didn’t find a reason and proceeded to file a wishlist bug request againnst openesh-server for this option to be set by default. Before filing this bug, I routinely visited the BTS, just to find out that the bug was already filed. By me. One year and 285 days ago. And that the openssh maintainer(s) didn’t even bother to reply to it yet. Guys, this is a textbook example how to discourage people from filing Bugs against your packages. Please, give them at least the appreciation of a short ACK if you don’t get around to fixing the bugs in reasonably short time. Having a bug rot away uncommented and unfixed in the BTS for two years is simpy not acceptable. Yes, that goes even for a wishlist bug.

Amaya Rodrigo: I wish all problems were so easy to solve

Then I look at the destruction these cats have caused. I look at the damage to the really nice dining suite we bought shortly before moving over here. The leather chairs are scratched terribly. The nice wooden table top has scratches in it as well, because they liked to use it as a playground. I was setting the table tonight because we ve got people coming round for dinner (it s been a while), and I saw first hand the extent of the damage. I was so pissed off I could have cried.

If you have a little patience, you can cut their nails either with a cat nail trimmer (5 euros I paid, and that s the best money I ever spent on these cats, aside from neutering) or plain normal human nail clippers.

I have been doing it for Vi and Emacs since they were kittens, and then for Jazz when he replaced Emacs and who had never had his nails trimmed. I even do it for Lola, who is declawed and a very alpha female cat, on her back paw's nails.

Sure, it takes patience, it is best not to do it by force, so wait until they are happily asleep and pet them, then cut one. Get them used to you touching their nails, by making them go out of their claw when you pet them. Do one nail at a time, until they are all used to it and will just let you go through the whole 4 paws at once.

You can google around for techniques, but start reading this. The whole about.com site is filled with great advice for cat owners.

My furniture is still in good shape after two years of cats at home, yes, they love to bite the curtains, they scratch my favourite chair, they drop stuff on the floor and break it, they help me in whatever I am doing (painting, sawing, making the bed...), and they steal cat toys away from me and hide them in secret cat hiding places.

But things are just things, stuff is just stuff, curtains are replaceable, so is furniture. Start trimming their nails the sooner the better, and do not regret these three furry friends found you.

Next.

Previous.