Junichi Uekawa: Trying out simpleopal again, since my bug was closed.
Trying out simpleopal again, since my bug was closed.
It was January the last time I tried using iax, and
things were in a miserable state.
Trying out simpleopal again, since my bug was closed.
It was January the last time I tried using iax, and
things were in a miserable state.
It may be a non-contact sport according to its rules, but Ultimate is hardly free of injuries. The quick cutting and sprinting have made anterior cruciate ligament tears among women players especially common. JOY CHEN, a 33-year-old software developer in Alameda, Calif., considers herself lucky that herniated disks, a rotator cuff tear and ankle sprains have been the extent of her Ultimate injuries. We hit each other and the ground pretty hard, said Ms. Chen, who discovered Ultimate in college after years as a soccer and tennis player. She played with Stanford University s Superfly, which went on a three-year run as undefeated women s national collegiate champions.Injury goes with the sport as hand and glove and young players tend to wear these injuries as a badge of pride. As much as I adore the sport and there are days I get pretty bummed that I no longer play I think that the UPA and older players should seriously skool the younger generation on the danger of injuries. It is an extreme sport that requires extreme care. Tournaments are usually composed of 4-7 games over the course of 2 days. If that is not demanding enough, the body gets pretty intimate with the the ground while laying out and then there are there all those sprained ankles and broken bones and ligaments from collisions. Today I suffer from bouts of knarly neck pain, for example, which is due in part from playing without taking proper precautions. One of my best friends, who was a stellar player in college, also suffers from pretty devastating back pain. It is an extreme sport that requires extreme care. I say toss out the pride in pain/injuries and in place, instill a healthy sense of fear of the injuries so that people get proper long term and sustained care for their injuries so that they can keep on playing the world s best sport. PS For those that don t know, UF also revolves around an ethical philosophy Spirit of the Game, which unfortunately the article makes no mention of, despite its centrality to the sport.
Last few months since I got my EeePC have been a lot of fun. Playing and tweaking the little bastard is a joy in the end of a busy day. Besides, since I loaded it with the most useful SysAdmin tools, it became a powerful device in my tool belt .
Unfortunately, I ve been stupid enough to drink a glass of orange juice while messing with it. I know, I know! Silly thing to do. I should know better! But life is like that I spilled a few drops over it. Of course, the web is pouring off information on what to do in cases like this, so I ll just summarize what I did:
What seems like eons ago, I ordered one of those SheevaPlug Development Kits. After about six weeks, they got around to shipping it, and then, yesterday, after I assume a tortoise
had piloted it across the country on broken tricycle, it was finally delivered to me.
I booted it up, observed that there was some kind of Ubuntu thing on it, and set myself to correct that problem. Within an hour I
had managed to lock myself out.
Here is something I should have read beforehand.
Thanks to Martin Michlmayr, it is now running Debian
and allowing me to log in.
Here are some steps to follow if you would like to boot Debian off of a USB stick plugged into your Sheevaplug:
setenv mainlineLinux yes
setenv arcNumber 2097
saveenv
reset
setenv bootargs_root 'root=/dev/sda1 rootdelay=10'
setenv bootcmd_usb 'usb start; ext2load usb 0:1 0x0800000 /boot/uInitrd; ext2load usb 0:1 0x400000 /boot/uImage'
setenv bootcmd 'setenv bootargs $(console) $(bootargs_root); run bootcmd_usb; bootm 0x400000 0x0800000'
saveenv
run bootcmd
Update:
A few weeks ago I wrote up a short review of Bernhard Pfaff's nice (but
somewhat dry) Analysis of Integrated and Cointegrated Time Series with R
(2nd ed) on unit root and cointegration modeling with R. This is now online at the Journal of Statistical
Software.
We have had a quite strange couple of days...
Everything was smooth as usual on Thursday. As I posted here, I cycled to Iztacala to give a talk and back, and basically had a good time. We had heard news some days earlier on the radio that the usual seasonal flu was still present by mid-April, while usually it disappeared by early March... But nothing more.
But Friday morning, as I listened to my usual news program, Aristegui repeated over and over that the Health ministry had ordered (in a press conference at 23:00 the previous day) schools of all levels not to hold activities... Quite unusual, but WTF... Got to work as usual, around 9 AM. The first thing I see in the Institute, our Academic Secretary telling us all to finish our most urgent business and head back home, do not pass go, do not collect $200.
And... During the morning it started sinking in. This is a very weird and somehow scary situation. We are facing -as you all must know by now- a previously unknown strain of flu virus (influenza porcina H1N1B, AFAICT). During the past couple of days, we have seen the scenes we wondered about during the past decade, mainly in South East Asia (with SARS and with bird flu): Everybody is scared, nobody really understands what they are scared of, people do stay at home. The streets are eerily quiet, and many people are seen with masks covering nose and mouth.
I must recognize our federal and local governments are acting very well coordinated (for the first time in probably over a decade, since they were from different parties for the first time). This has been clearly labeled as an epidemic (over 1600 sick people reported at hospitals, and over 100 deceased) and has spread to many of our country's states (as well as to other many countries, although it still seems to be controlled there - But we have got reports from the USA, Canada, France, Spain, Israel and New Zealand so far).
I will most probably spend the next full week at home, as my University (as well as all schools and universities in this city and at least the Mexico, Nuevo Le n and San Luis Potos states) will be closed until May 6th. Of course, sports and cultural activities are all suspended as well. Many (most?) bars and restaurants remain closed.
Today, my parents came from neighbouring Cuernavaca (where no alerts have yet been emitted, but will surely follow), and we went out for lunch (to a nice Yucatan food place, chosen partly as it had very little concurrence and because we could sit outdoors. Yes, I must specially thank them for being as imprudent as coming over here, given the generalized scare... I know there was nothing I could do to prevent them from doing so :-)
And... In this strange climate, I can only thank I am not a party-organizer or anything like that, as I'd have had my plans frustrated. Here I sit next to my laptop, in my halfway-re-windowed house, with a still shrink-wrapped book that looks beautiful (La bicicleta: Rito, t cnica y pasi n), eager to open it (Thanks, Nadezhda! :-* ).
Happy birthday to me. Take off the mask, blow 33 candles, put mask back on. Thankfully there is no cake to eat, as it could be messy with the mask on.
previously i threw together a small
hook to make it a bit easier to avoid duplicate work while
maintaining packages, as well as easily keep the BTS up to date
with relevant information.
now i've commonized the code just a bit and have a second hook
which can be used to maintain certian (what i believe to be) good
practices for keeping packages in git. admittedly, it's a bit more
"stick" than "carrot" with respect to streamlining workflows, but i
feel the justifications and the resulting benefits are worth
it.
so the hook does basically two things, either of which can be
customized and/or disabled.
prevent "non-debian" changes on a "debian" branch
assuming that there are seperate branches for "debian" packaging
and for "upstream" development, this hook prevents upstream-style
changes on the debian branches. that is to say changes to files
outside ./debian are not permitted on a "debian" branch, unless of
course you're merging from an upstream branch.
instead, changes to the source in a debian branch should be
managed by quilt-style "feature
patches", or a more advanced branch topology using some kind of
feature branches (topgit or
similar).
prevent changelog modifications from being mixed in with other
commits
this one might be a bit more controversial for some. basically,
the idea is that:
REPO_PATH=/path/to/your/repo.git
HOOK_REPO_PATH=/somewhere/you/want/to/put/it
git clone git://git.debian.org/users/seanius/vcs-hooks/git-hooks.git $HOOK_REPO_PATH
ln -sf $HOOK_REPO_PATH/debian/git-hooks/pre-receive-fileset-fascism.py $REPO_PATH/hooks/pre-receive
the config options for controlling this hook (these are git
config options just like the other hook):
# hooks.debianbranches (default: 'debian-.*')
# a regular expression which indicates which branches are "debian" branches.
# in the context of this hook such branches are not allowed to have changes
# in files outside of the ./debian directory.
# hooks.sacredchangelog (default: True)
# if set to True, debian/changelog can not be changed in a commit that
# also modifies other files. this helps ensure changes that are easily
# merged/cherry-picked/reverted.
examples of the hook in action
rejecting a commit that has an entangled changelog:
rangda[~/debian/php] git push :)
Counting objects: 9, done.
Delta compression using 2 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 442 bytes, done.
Total 5 (delta 4), reused 0 (delta 0)
fileset-fascism rejecting commit 2fab3269b3d9daedd7013a576483a11ccb4cb86a
debian/changelog must be changed seperately from other files.
changed files in this commit:
debian/changelog
debian/control
error: hooks/pre-receive exited with error code 1
To ssh://git.debian.org/git/pkg-php/php.git
! [remote rejected] debian-sid -> debian-sid (pre-receive hook declined)
error: failed to push some refs to 'ssh://git.debian.org/git/pkg-php/php.git'
rejecting a commit that has non ./debian changes:
rangda[~/debian/php] git push :)
Counting objects: 5, done.
Delta compression using 2 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 309 bytes, done.
Total 3 (delta 2), reused 0 (delta 0)
fileset-fascism rejecting commit d96669c0780e33b250af81404e263fc181fe0547
non ./debian changes on a debian branch in this commit.
error: hooks/pre-receive exited with error code 1
To ssh://git.debian.org/git/pkg-php/php.git
! [remote rejected] debian-sid -> debian-sid (pre-receive hook declined)
error: failed to push some refs to 'ssh://git.debian.org/git/pkg-php/php.git'
as always, comments/feedback/suggestions/etc welcome
sub base : Chained('/') PathPart('') CaptureArgs(0) ... sub index : Chained('base') PathPart('') Args(0) ... sub default : Chained('base') PathPart('') Args ...It's a nice and clean syntax that keeps all important information right next to the method it belongs to. However, attributes in perl have a couple of limitations. For one, the interface the perl core provides to use them is horrible and doesn't provide nearly enough information to do a lot of things, but most importantly attributes are just plain strings. That means you will need to parse something like
"Chained('base')" into
(Chained => 'base') yourself to make proper use of them.
While that's easy for the above example, it can be very hard in the
general case because only perl can parse Perl. It's one of the reasons
you can't use Catalyst::Controller::ActionRole to apply
parameterized roles to your action instances, because parsing
parameters out of things like
Does(SomeRole => names => [qw/affe tiger/], answer_re => qr/42/ )
would be awful and wrong.
With Catalyst 5.8 most of the attribute related code has been removed
from the internals. It's now using MooseX::MethodAttributes to do
all the heavy lifting. Also the internals of how actions are
registered have been refactored to make it easier to implement
alternate ways without changing the Catalyst core.
As a proof of concept for this I implemented a new way of declaring
actions that's very similar to how Moose provides it's sugar
functions. You can get it from
github.
With that, the above example looks like this:
action base => (Chained => '/', PathPart => '', CaptureArgs => 0) => sub ... ; action index => (Chained => 'base', PathPart => '', Args => 0 ) => sub ... ; action default => (Chained => 'base', PathPart => '', Args => undef) => sub ... ;It also moves method declaration from compiletime to runtime, making this possible:
for my $action (qw/foo bar baz/) action $action => (Chained => 'somewhere', Args => 0) => sub my ($self, $ctx) = @_; $ctx->stash-> $action = $ctx->model('Foo')->get_stuff($action); ;Admittedly, that's all very ugly, but illustrates well what kind of things we're able to do now. But it doesn't need to be ugly. With Devel::Declare we have a great tool to add our own awesome syntax to perl, similar to how things like MooseX::Method::Signatures, MooseX::MultiMethods and MooseX::Declare do. So how would a declarative syntax for Catalyst controllers look like? I don't know. Ideas include something like this:
under /some/where, action foo ('foo', $id) ...to mean:
sub foo : Chained('/some/where') PathPart('foo') CaptureArgs(1) ...Adding Moose type constraints to this would be interesting, too, and make validation of captures and arguments a lot easier. Multi dispatch similar to MooseX::MultiMethods could be handy as well:
under /some/where action ('foo', Int $id) # find and stash an item by id action ('foo', Str $name) # search items using $name action ('foo', Any $thing) # display error pageSo you see there are a lot of possibilities that should be explored. Unfortunately I have no idea what kind of syntax and features people would like to have, so your feedback on this would be much appreciated. :-)
I was invited to talk about Free Software at yesterday's FLISOL. Yesterday? Aren't FLISOLs organized on Saturday? Well, not this one, for various reasons which I won't quote here. And no, I am not a supporter of the installfests idea, but I went gladly to talk about what is Free Software all about - The philosophy behind Free Software. Besides, the talk was at FES Iztacala, where I worked for four happy years, 1999-2003. I have not been often to Iztacala since 2003 (probably I have visited only three or four times), partly because of the distance (~25Km from home in a straight line, but the city's Northern part is quite poorly communicated). The last time I was there, last October, I went by bike, just to test my endurance and... because I could.
Yesterday, I also did, not to be outdone by my fellow Debianers Christian and Dirk. Think they are so cool because they can run for 43Km? Well, I had my 55Km yesterday, and I was not even in a competition! (yes, yes, running and biking is not the same. So sue me. I just didn't want to stand still and let them walk away with all of the fun!) I took slightly different routes (my route to get there on Nokia Sportstracker and OpenStreetMap trace, my route back on Nokia Sportstracker and OpenStreetMap trace), crossing diagonally Azcapotzalco, a region of the city (delegaci n) I hardly know... The Sourthern of it seems like a continuation of Tacuba to the North, small and not-very-well-communicated prior villages engulfed by our hungry, huge city. The Northern half is a mostly industrial area, with very sparse population, lots of trucks, and streets that are not in the best shape. You can end up feeling lonely in those regions, and I am glad not to have crossed back by night.
And the trip back was interesting as well... Mexico City is home to many more bikers you would expect given its size, and it is very common to find other people doing nice long stretches. In this case, I started cycling quite close to another guy in a white bike more or less when I got to Calzada Camarones. Possibly we had passed each other over and over until after Tlatelolco, arriving to Guerrero, where I approached him at a stoplight:
This
article from the Boston Globe gives an excellent description of what
running
Boston last Monday was like, and why we keep coming back, almost regardless. The writer,
for whom it was the fifth Boston and ninth total, expresses the range of
emotions, expectations, frustrations, excitements, ups, downs, ... all of
which form the challenge of racing a marathon in general, and on this
course on a windy day in particular. And just like she concludes that the
finish of one marathon leads to planning the next, I registered last night for
the Chicago Marathon on October
11, apparently around twelve hours before it sold out.
And so it is with regrets that I have to decline Christian's
invitation to run Cologne with him on October 4. Another time, hopefully.
I've been talking serial consoles with a couple of the other guys at work:
how nice they are to have for machines in the datacenter, how annoying it
is that vPro
serial-over-LAN doesn't seem to be robust (yet?), and how serial
access concentrators are lung-and-kidney expensive (especially when you've
got 50-some racks to outfit).
This discussion, combined with my ongoing embedded-hardware-fascination
lust for a SheevaPlug
appears to have spurred my brain into coming up with a Brilliant Idea: tie
a SheevaPlug to a pile of USB to serial adapters and use that as your
per-rack serial concentrator. Imagine: faffenheimer, a dedicated server
you manage for a customer, and located in rack 27 of your DC, has just crashed, and
you'd like to know WTF has happened rather than just blindly reboot, but
you're in the office 15 minutes away from the DC floor, and the customer's
going to want that machine back up and running pretty quickly.
workstation:~/porn$ ssh rack27.serial rack27:~$ sconsole faffenheimer [screen session attached] [minicom running, shows the horror of a kernel crash dump] [oh look at that, kernel bug] ^A ESC [pgup pgup] [enter] [pgdn pgdn] [enter] ^A >/tmp/faffenheimer-crash-dump ^A d rack27:~$ exit workstation:~/porn$ scp rack27.serial:/tmp/faffenheimer-crash-dump ~ workstation:~/porn$ powercycle rack27 faffenheimerShiny! We got a crash dump in a minute or so (rather than having to take phonecam photos of KVM screens in the DC), never had to leave our comfy seat, and the machine's on it's way back up. We're now free to pursue diagnostic activities on that crash dump at our leisure. 10 minutes later, the downtime for faffenheimer that was automatically set when we ran powercycle runs out and Nagios sends us threatening messages. Hmm, something's gone wrong here. Back into the console...
workstation:~/porn$ ssh rack27.serial rack27:~$ sconsole faffenheimer [screen session attached] [Boot is hung waiting for root password after initrd has bombed] [Type root password] [Oh look, the root MD appears to have come asunder] [clickety-click... fixee fixee] [reboot]The more I think about this, the more I reckon I'm onto a bona fide winner. The sheevaplug is a powerful ARM-based system with USB/ethernet/SD ports that is packaged literally in it's own power supply wall wart -- it's a plastic box with power plug prongs poking out the side. That's all there is to it. The USB to serial adapter things are likely to be a bit more of a pain, but I've played with enough of them by now to not be too scared. So, you plug the Sheeva into a power socket, plug an Ethernet cable and USB hub into the Sheeva, configure things a bit so that the system knows which serial adapter maps to which machine, and you're away. Oh, and the best bit: the Sheeva apparently draws as little as 2W when idle. A whole datacentre's worth of serial goodness for about a server's worth of power. The cost per rack should be somewhere below AU$250, especially in bulk. Let's see if I can convince work to spring for a Sheeva, a USB hub, and a half dozen or so USB to serial adapters to test this whole thing out. Given that the whole thing looks like it'd cost less than AU$250 (plus my R&D time), I can't imagine it'll be too hard a sell to at least give it a go. Watch this space...
so i had a couple videos to
mention and i figured i'd use the chance to write an ikiwiki template to do so. it's not the most
flexible, but it works! current template code, put into
templates/youtube.mdwn:
<div class="youtube">
<object width="445" height="364"
data="http://www.youtube-nocookie.com/v/<TMPL_VAR raw_v>&fs=1&border=1" >
<param name="allowFullScreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="movie"
value="http://www.youtube-nocookie.com/v/<TMPL_VAR raw_v>&fs=1&border=1" />
</object>
</div>
using it:
[[!template id=youtube v="sPq3c5D65hE"]]
gets you:
Finding power and internet to post to a blog while hiking for half a year up
the Appalachian Trail
doesn't seem like a very likely combination, but nowadays some people
manage it in various ways.
I've read and enjoyed three or four books about AT thru-hikes, but blogs
are a more immediate, interactive medium. I've been following with interest
a group who came down with food poisoning as they hiked along the Holston
Mtn. ridge in my "backyard" and look forward to reading about others
as they pass by.
So, I'm aggregating all such blogs I can find for the 2009 season on a page
I call Planet A.T.. It's a nice way to read these
contrasting accounts juxtaposed together in real time.
One includes cell phone photos and fairly frequent updates of a hiker who's
already reached Damascus; another is frequently updated by Blackberry by a
guy I could well have crossed paths with on Roan this week;
another has more infrequent, interesting long essays by a hiker who has
just reached Tennesee; another is a teacher sending educational videos home
to his school. There's even an 86 year old who I understand is the oldest
person
to hike the whole trail -- and is doing it again.
I thought I'd only find a few blogs, but I've now added over a hundred! So
maybe one in ten of all thru-hikers this year have a blog. And the number
of bloggers will presumably dwindle toward twenty-five before they reach
the end in Maine.
Even if I knew about the BrDesktop project for some years, I never really saw it. Then by chance, I stumbled on their webpage, which has beautiful screenshots of a pure blend Debian installer and an understandable download page.
Now, I'm registered for Cologne Marathon. So is No l and probably Ralf Treinen.
Any other DD or Debian contributors wanting to join in? I know that Dirk Eddelbuettel will probably not (btw, nice run at Boston, Dirk)....but others certainly can...and should ! October 4th, 2009 is still far enough for you guys to plan this..:-)
Next.