Search Results: "ms"

16 February 2011

David Welton: Rails Application Templates

Thanks to some friends on twitter, I recently discovered RailsWizard which is a very handy way of generating new Rails applications with the "right" things included. I liked what it did a lot, so I took the generated file and saved it as a github gist: https://gist.github.com/829521
Which provides me with a very handy starting place for new Rails projects. This is a great way to get some of the housekeeping out of the way before we start: ensure we're using jQuery, add some gems that I always use like exception_notifier and will_paginate, and so on.

David Welton: The UnderPerformingStocks.com sale - halfway in

A few weeks ago, I had an "out-there" idea to try creating and selling a site at the same time. So far, it's not exactly raking in a major amount of cash: www.underperformingstocks.com is For Sale on Flippa! At $100 with a couple of bids, it doesn't look like I'll be able to retire on it! That said, I haven't spent a great deal of time on it, and part of the idea of the experiment was to limit the amount of time the 'new idea' would distract me from other things. I did hope to receive a few more "audience requests" in terms of what to build on Flippa.com, though. Hopefully, things will heat up a bit during the final two weeks of the auction, but I don't think "flipping" web sites is really a business I want to be in. It's been fun to see how much you can build with how little, though, what with all the widgets and API's out there these days. Since I'm a coder at heart, I also released some Ruby code that utlizes Google's stock screener API: https://github.com/davidw/google-screener - it's under the Apache license, and is kind of neat to play around with, I think, and is what I use to fetch information for the site.

Michal Čihař: SF.net has back git email notifications

As I have complained quite loudly in this blog, I think it's fair to post a status update again. Yesterday the emails started suddenly to work. So the major reason for my complains is gone. What I still don't like that this issue was not at all communicated to project admins. It stopped to work, what was sort of announced in blog post. It started to work again without any announcement and last status update in blog still claims they do not work. At least for direct question, we've received reply that they have intentionally re-enabled this service.

Filed under: English Phpmyadmin 0 comments Flattr this!

Kartik Mistry: Nexenta is hiring!

* It is always fantastic being with Kernel, Device Drivers, File Systems and Network Protocol and yeah, Illumos, NCP and NexentaStor! So, if you re around or in St. Petersburg, Krasnodar or Northen Boston (or even somewhere else too) read below :) we re hiring! From, John Goerzen s recent post,
Oh, and if you d like to work for us, you should probably be sending me an email. No, I m not going to list the address here on this blog post. If you can t figure it out, I don t want to hear from you

Gunnar Wolf: Responsible biking: We are not exempt from the traffic rules!

As you know, I very often advocate using the bycicle as the main means of transportation in Mexico City. The city is very apt for biking through it, and contrary to the fears of mostly everybody, the city is neither aggressive nor as dangerous as people say. However, I have seen cyclists which seem to be looking for the best ways to be hit by a car, or to hit a pedestrian. Yesterday, I read this note in La Jornada: The local Environment Secretary calls cyclists to respect vial regulations. Many cyclists assume they are a special case of pedestrians, and zig-zag as they please between the road and the walkway, or just stay in the walkway. That is dangerous, both to pedestrians and to themselves. You might find children, elderly or motion-challenged people on your way. Also, not only will pedestrians only expect other people in the walkway, moving at their pace or slightly more, but cars will also not expect somebody moving at 10-20Km/h. A car driver pulling out of his garage, or crossing a street, will not have enough warning when he sees you, and you are very likely to end up in an accident. Since ~5 years ago, Mexico City is growing a grid of Metrob s and confined troleb s cero emisiones (trolleybus) lanes. Many cyclists use those lanes That is VERY dangerous. Public transport vehicles are large, have a lot of inertia, and will take longer to react to finding you ahead of them. Besides, they can go way faster than a regular bike (~60Km/h for metrob s, ~40Km/h for troleb s), and have to stop every couple of blocks. So, you will be uncomfortable if trailing them, and you will be a liability to ~100 people if you go ahead of them. Besides, it is illegal to drive in the confined lanes if you are not a public, semimassive transport vehicle! Surprisingly many people have argued they prefer riding their bicycles against the traffic I think they prefer staring at Death into its blue, glowing eyes (or into its long, thin whiskers)... By far, most cars that hit a bicycle do so from the side, when crossing a road. And if you arrive at a crossing from the wrong way, the way a driver does not expect you, don't expect the driver to be aware of you. Also, in the much less likely event of a car running into you, would it be better to be hit at 80Km/h (60Km/h of the car plus 20Km/h of your own speed on a full frontal crash), or at 40Km/h (substracting instead of adding)? Yes, some people say that looking at the car will allow you to maneuver How far in advance would you know a car coming from the front will hit you? One second? That's 22 meters at 80Km/h (again, if you realize the 60Km/h car is heading straight to you, at 20Km/h). Too short notice for you to do anything Any maneuver will most likely end in an accident. And the driver would not be so much to blame, as he would not be anticipating you riding against the traffic. Make sure you get seen. By night, always use proper lights (red on the back, white on the front, and reflective material to the sides). Day or night, wear bright, reflective clothes (or over-clothes material). Act in a predictable fashion. Remember you are riding a vehicle and are subject to the same rules any driver is A cyclist is not exempt from driving correctly! Do not jump red lights. Never ride on the walkway. Do your best to enjoy the ride. And ride. Yes, ride, take the streets, enjoy the streets. But don't attempt to drive the traffic out of it The streets belong to us all, and we can all share them. PS I also saw this note in the same paper: Sunday Rides in "Campo Militar N mero Uno". The main military field was open as a park this weekend! I have to make sure it is regularly open I am definitively going there!

Russell Coker: Mplayer, Squeeze, and SE Linux on i386

I ve just updated my SE Linux repository for Squeeze to better support running mplayer on the i386 architecture, below is the APT sources.list line:deb http://www.coker.com.au squeeze selinuxThe first issue is a bug in the compilation of the SDL libraries which makes them request an executable stack (bug #613535). Recompiling the libraries on my system caused this bug to go away, so it must be some issue with the compilation process. I have previously summarised the execstack issue, but we haven t solved this yet [1].The next issue is the fact that the ffmpeg libraries require execmod access (see my previous post for the details of the execmod issue [2]. The execmod issue with ffmpeg is pretty much the same as it was when I first wrote about the issue in 2008 [3]Finally the allow_execmem boolean needs to be set on i386 with the command setsebool -P allow_execmem 1 to allow libGL the access it needs. This is an issue I haven t been able to solve, I don t know why libGL needs write and execute access to memory, I posted to the SE Linux list about this some time ago but didn t get any good answers [4]. Any suggestions would be appreciated.

15 February 2011

Lars Wirzenius: Experiences with SD

For a few months now I've been using SD for tracking bugs in many of my personal projects. SD is a distributed bug tracker, and I believe such systems to be the future, just like distributed version control has become the obviously correct choice. Distributed bug tracking is still in its infancy, and the tools are still developing. However, SD, at least, is already usable, at least for the small kinds of projects as mine are. I have no idea, at least yet, how it scales up to large projects with many developers. Life with SD is similar to life with a DVCS. You have your bug repository, and you make changes there as find bugs, fix them, and so on. When it is suitable and convenient, you synchronise your repository with others. I mainly sync to my server, so that others can sync from that if they wish. (I don't know if anyone does that.) There are several distributed bug trackers. I chose SD because it seemed the most mature one, but also because it does not tie the bug repository with the source code version control tree. This is quite important, I think. If there's a bug in the project's website, then that does not need to be committed to the project's source code. If I work on a bug in a separate code branch, I would like to make any necessary notes about it in a central bug repository for all the branches on my laptop. This is helpful, for example, if I have to back out of my code changes, because I did something stupid, but want to keep the notes I took in the bug repository. SD is not without its weirdness. The command line syntax is a bit un-Unixy, and it requires setting an environment variable to specify the location of the bug repository. (I wrote a little wrapper script to set it: all my branches for project foo are in ~/foo, and the bug repository is in ~/foo/bugs.) It could perhaps also be faster, but it's not exactly slow, either: it is a joy to be able to just run sd ticket close 123 rather than open a web browser, navigate to the right bug, and click close there. Also, once you have a bunch of projects, each with its own bug repository, it becomes an effort to synchronise each of them. I'm hoping mr will someday support SD, but until then I'm using a little wrapper that syncs my SD repositories to my server. I also have a third wrapper that allows me to run an SD command on each repository, so that I can, for example, easily get a list of all open bugs in all projects, which is helpful for my GTD weekly review.

Lucas Nussbaum: Re: please send a patch

It seems that Matthew Palmer misread my blog post as a complaint against developers asking for patches in exchange of pet feature requests. He really should pay more attention, since I gave pet feature requests as an example of case where it would be appropriate to ask for a patch:
Of course, there are cases where it s perfectly reasonable to ask for a patch: when the task is expected to take hours, or when the result is of limited interest to everybody except the demander.
But even then, it s not clear. This morning I got an email from a someone involved in PHP packages maintenance, who said that Bugs Search @ UDD was a great tool, but that he would love to have a way to list all bugs affecting packages with the implemented-in::php debtag.
To produce a working patch for this would probably take him at least an hour. You need to set up a copy of the CGI on alioth, understand the DB structure, dig into the code, etc. If you don t understand SQL and Ruby, it could be a really difficult process. Also, it s probably quite uninteresting for him to do that, since he is unlikely to stick around developing UDD.
Instead, it didn t take me more than 5 minutes to produce a one-liner.
The net result for Debian in that case? 55 minutes saved by a developer. Update:
Torsten Werner wrote an angry reply to my post. It s true that yesterday s episode triggered my blog post, because I felt quite frustrated to have to provide a patch for something that simple, and would have preferred to use the time for a Debian task where I would be more efficient. But I was not particularly angry at that episode, since that s something I ve seen on several occasions. That s also why I did not mention any team in particular.
The feature request I was making was reasonable, and cannot really be considered a pet feature request (though I might be biased with my QA hat on): mentionning in the dak templates used for bug closure that packages removed from Debian can still be found on snapshot.d.o. The fact that he thinks that addressing this himself turns him into a slave raises interesting questions.

Wouter Verhelst: "Please send a patch"

On the gripping hand, Matthew, notice that patches written by someone utterly unfamiliar with the code in question aren't always welcome. While some people don't mind spending several days on something that may or may not be accepted to begin with, it's important to realize that talking about wishlist items before even thinking about possibly writing a patch is more likely to result in the desired behaviour than writing and submitting patches in a fire-and-forget manner. In that light, there are cases where 'please send a patch' can be quite demotivating, and it makes sense as a developer to engage in a discussion about a wishlist item, even if you're not immediately interested in implementing said feature yourself. Such a discussion could lead to either you implementing it, or someone else implementing it, or the other person finally understanding that your vision for the software in question doesn't match theirs, and that they should just find something else to spend their time on. I guess the moral of the story is: as a user with a wishlist item, you should talk to developers, let them know what you think is important, and be prepared to write a patch yourself if needs be and you have the skill. As a developer, you shouldn't interpret every wishlist request as a question to 'please please please implement my pet feature', but as an opportunity to reconsider your views, and possibly implement some nice new feature that you hadn't thought about originally but which you think might be nice, too. If people reply with 'please provide a patch' to each and every wishlist request, they're stupid; even more so than users who think they have anything to demand.

Gerfried Fuchs: Peter Alexander

I guess it won't be very many people reading this blog to know the name, even though he was without any doubt one of the biggest entertainers. Lots of movies, his own TV show, and an enormous amount of albums made him well known far outside the borders of Austria, his home country. Last saturday he died in the age of 84, yesterday was his funeral. This is a special dedication to him. Peter, you will be missed. Servus.

/music permanent link Comments: 1 Flattr this

Pietro Abate: xen 4 on debian squeeze

It's time to upgrade my xen servers to squeeze. I've already put this off too long and now I've to task to go from etch to squeeze in one long step. In order to avoid problems I just did a first upgrade etch -> lenny and then to squeeze. However, since so much has changed in the meantime, and so much twicking of essential components is needed (such as Xen !), I guess I could have gone directly from etch to squeeze in one go, and fix everthing in the process... Anyway, to late for this kind of considerations.
 
The xen debian wiki is full of invaluable information. Kudos to the xen team for their hard work. To get you started on squeeze you need to install the xen hypervisor. Everything is provided by one package:
aptitude install xen-linux-system-2.6-xen-amd64
This will pull the latest linux kernel and xen-hypervisor to run on dom0 . By default the hypervisor is probably not going to be the default kernel. If you want to change this, you should edit the grub default values :
vi /etc/default/grub
to make sure that the default kernel on dom0 is the xen-hypervisor. This is tricky, because grub let you define a default w.r.t the list of available kernels. so if you install a new kernel, you have to change the default accordingly with the list of kernels in /boot/grub/grub.cfg. It would be nice if I could define the default kernel with a label instead of a number... ( ref #505517 ) Alternatively, as suggested in the wiki, you can just move the xen kernel out of the way ...
mv -i /etc/grub.d/10_linux /etc/grub.d/50_linux
When installing xen related tools, aptitude will also probably install by default rinse and xenwatch. The first one is to boostrap redhat machines and maybe you don't need it. The second one is a GUI and will pull in a lot of X-related dependencies. If we have similar needs, you can just remove what is not needed...
aptitude purge rinse rpm rpm-common
aptitude purge xenwatch
Something that is new, is the new schema for virtual devices. Now all vms will see /dev/xdva1 instead of /dev/sda1 as before. This needs to be changed in the domU as well as in the xen config files (/etc/xen/vm.cfg). One fantastic news is that xen 4 now uses pyGrub. It is not mandatory (so if you want, you can stick with the old configuration file). But if you use pygrub, on the domU you can install whatever kernel you want. Finally, your users will have complete freedom to pick and choose their kernels ! There was a small detail I didn't notice on the debian wiki, that is, if you try to use grub2 in squeeze, it will fail when probing the device#601974 . The workaround described in the wiki is to use xvd a,b,c,... as device names (and not xvd 1,2,3,... ) to make grub happy. Once you have changed then naming schema, grub will be able to see the disks and install the bootloader. Another solution is to install the os-prober from unstable / experimental. It seems a patch is on the works. On newly created images, you can also pass the --scsi parameter to xen-create-image to ignore this problem altogeher... I'm not sure if this will have other implications...
 
The console name is also changes from tty to xhv0 . To get back the console you should add this line in the inittab of all you VMs.
vc:2345:respawn:/sbin/getty 38400 hvc0
A last note is about the merge upstream of the xen patch !! \o/ yeiiii !!

Debian News: volatile archive has been replaced by squeeze-updates

The Debian Volatile archive is discontinued starting with squeeze. It has been replaced by the suite squeeze-updates on the official mirrors. Read the full announcement to know all the details.

14 February 2011

Mark Brown: Updating the kernel on the Nexus S

Building the kernel for the Nexus S is straightforward the kernel is public as one would expect so it s simply a matter of building it using the standard Linux build system (the machine is called herring in the code). There is one gotcha, though the driver for the BCM4329 WiFi controller is a loadable kernel module rather than being built into the image. This means you need to copy it onto the device filesystem separately to flashing the kernel itself if you re only updating the kernel. The procedure I use for this is below it s straightforward but I m posting it here to make it a bit more discoverable. First we make the system partition writable:
adb root
adb remount
Then copy the BCM4329 driver over (the path to the driver here is running from the root of the kernel tree:
adb push drivers/net/wireless/bcm4329/bcm4329.ko /system/modules
Finally, reboot into the bootloader and flash the actual kernel:
adb reboot bootloader
fastboot flash zimage arch/arm/boot/zImage
fastboot reboot
Note that some of these commands may return before the operation they ve started has completed so you may need to wait for the phone at various points. As with updating the main system firmware the above requires an unlocked device which voids your warranty.

Clint Adams: Itamae, itamae

C: Heyward's - Johnson C. C: Rosedale's - downtown O: Gates - 3205 Main
Servicio mesa (21.00) $8.00
Bebidas (21.00) $8.00
Copa salentein (21.00) $27.00
Provoleta (21.00) $24.00
Asado de tira (21.00) $45.00

13 February 2011

Martin-Éric Racine: X.org video driver Geode 2.11.12

Today we published version 2.11.12 of the X.org Geode driver, code-named "Squeezing the Wheezy out of Debian" in honor of the recent Debian stable release. 2.11.12 is yet another minor bug-fixing release, this time featuring yet another EXA fix for the LX component, courtesy of the OLPC team, plus the removal of an obsolete V4L1 include that was preventing the building of the ztv video input component of our driver since Linux kernel 2.6.38 - thanks to the Fedora and Ubuntu teams for spotting this!

Steve McIntyre: Dad ill again

A few years ago, I mentioned my dad's fight with cancer. He survived that, and has carried on for several more years since. He had a replacement hip fitted last year to improve his mobility, and was looking set to enjoy a good long retirement. Until... Just before Christmas symptoms suggested that the cancer had returned, and with a vengeance. Tests confirmed it. We were hoping that Dad would fight on and win through again this time, and I was looking forwards to him being at my wedding this September. But there have been a lot of unexpected complications this time and it's just not going to happen. I spoke to him last on Tuesday this week, but he was delirious at the time. He hasn't really been conscious in any meaningful way since. I'm composing this message in the hospital in Southport where I'm now waiting for my dad to die. We've been told by his doctors that it's not going to be long now, but they said that on Wednesday too. My dad has always been stubborn, always a fighter; we know that this is a fight he can't win, but that isn't stopping him from trying his hardest. At least he's being kept comfortable for his last few days, with plenty of strong painkillers on hand when needed. Please let it end soon.

Steve McIntyre: vmware eats modifier keys

As much for my own reference as anything else... I quite often use vmplayer on my work desktop, and occasionally on my laptop. Other options might work better for other people, but the company have already settled on using vmware on their Linux machines to give users access to Outbreak, Office etc. I try to avoid them as much as possible, but about the only effective option for calendaring at work is Outbreak. *spit*. And on my laptop, I just have a vmplayer setup containing a trivial Windows XP installation for things like Nokia firmware updates. It's more hassle than I can be arsed with to move to something else - the only thing worse than using Windows is installing it, in my experience. In most respects, vmplayer is working OK for me. But: it has one intermittent and really annoying bug. Every now and again, as I switch away from the vmplayer session to another desktop using Ctrl-Alt, then Ctrl-Alt-Cursor, vmplayer eats the state of the X keyboard modifier keys. This makes things interesting after that point: my normal use of emacs, firefox, xterms, mutt (etc.) is fairly heavily dependent on being able to use the Shift and Ctrl keys. This looks like it has been documented as a bug in a number of places over the past few months/years (1, 2, 3, 4, etc.) but there doesn't seem to be a fix coming. However, what I have found out is that there is a workaround: setxkbmap will reset the modifier key state when things have broken. If only I'd been able to find that earlier - I've ended up restarting X or rebooting in the past... :-(

Christian Perrier: Fonts week-end

I spent most of the week-end working in the pkg-fonts team SVN repository and uploading font packages. The main goal was implementing "Build-Depends:fontforge-nox fontforge" to make the build of fonts easier and faster when they're built from FontForge source files. While doing this, I updated a few of these fonts. I also completely revamped the linux-libertine package which was left pending for quite some time in our SVN (after initial work by Rog rio Brito). I also definitely adopted the ttf-sinhala-lklug font package (the only fonts we have for Sinhala language, so far). Finally, I started going through the list of packages that still depend on defoma. I prodded maintainers for several of these, the most outdated ones....to propose adopting the package under the team's umbrella. We'll see what happens. Quite productive week-end, indeed (and I even managed to watch the three 6 nations rugby games, plus running around 30 kilometers...doh).

Evgeni Golov: Mustek PoweMust 1000 USB on Debian Squeeze

Some (long) time ago, I wrote an article how to setup a Mustek PowerMust 1000 USB on Debian Sarge. Since then Etch, Lenny and now Squeeze were released and the machine the UPS was attached to was replaced.Yesterday I have upgraded this machine from Lenny to Squeeze and of course nut has kicked me in the nuts, telling me it can t connect to the UPS.When I replaced the old machine, I had to connect the UPS via USB instead of serial, as the new machine has only one serial port and that one is needed for the serial console to my Sun Netra T1. On Lenny, I was using the megatec_usb driver which seems borked on Squeeze and is superseeded by the blazer_usb one. So here is my nut setup on Squeeze:nut.conf:
MODE=standalone
UPSD_OPTIONS=""
UPSMON_OPTIONS=""
ups.conf:
[powermust]
    driver = blazer_usb
    port = schrank
    vendorid = 0665
    productid = 5161
    desc = "Mustek PowerMust 1000"
Yes, port has to be set, but can be any random string.upsd.conf:
ACL all 0.0.0.0/0
ACL localhost 127.0.0.1/32
ACCEPT localhost
REJECT all
upsmon.conf:
RUN_AS_USER nut
MONITOR powermust@localhost 1 nut nut master
MINSUPPLIES 1
SHUTDOWNCMD "/sbin/shutdown -h +0"
POLLFREQ 5
POLLFREQALERT 5
HOSTSYNC 15
DEADTIME 15
POWERDOWNFLAG /etc/killpower
RBWARNTIME 43200
NOCOMMWARNTIME 300
FINALDELAY 5
upssched.conf:
CMDSCRIPT /upssched-cmd
I hope this helps someone ;)

Andrew Pollock: [life] Zoe at nine months

(The requisite "I have no time any more, it's 10 days late") It certainly feels like 3 months has passed since I last reflected on her development. It feels like forever. As usual, we've managed to do a fair bit in 3 months. She's doing very well. Growing nicely. Still around the 25th percentile for weight, but now up to the 50th percentile for height. We just had to upgrade her from an infant car seat to a "big kid" car seat, because she was maxing it out on height, not weight. She seems to have handled the transition okay, but we haven't done any long car trips since making the change. She's now sitting really well, and pulling herself up into a standing position. She's cruising around on furniture a bit (and sporting various bruises to show for it). She started crawling at six and a half months, and now there's no stopping her. She's into everything. No more teeth have appeared yet. Her top teeth have been looking like they want to do something for ages. I think, given a recent uptick in fussiness, their appearance may be imminent. On the food front, she's eating all sorts of things. We've got a few infant/toddler cookbooks, so we still are predominantly feeding her either a combination of pureed fruits and vegetables, or a few pureed dishes that I've prepared (mainly vegetable stews or risotto). She also enjoys bread, toast and has taken to Vegemite on toast, like a good little Aussie. The other night we ate out at our local Italian restaurant, and she had some garlic bread and some penne pasta with marinara sauce. She's definitely enjoying finger food. We went back to Australia for a couple of weeks recently, and she handled the flights extremely well, and had an absolute ball back in Australia. She'd just started sleeping through the night a few times before we left for the trip, and didn't sleep as well while we were in Australia, but got back into the swing of things in under a week of getting back to the US. She's so much fun at this age. She laughs, she plays. She gets so excited when I get home from work in the evenings. I love her and being a Dad so much. Zoe at 9 months

Next.

Previous.