Jaldhar Vyas: Motivation for Dummies

Since I didn't find a similar tool for Linux, I've hacked together a tiny tool
to do BPM counting. The usual stuff: tap any key with the music to get a BPM
estimation. There is no music analysis done.
To achieve better results, my tool uses an exponentially weighted average. It
also computes a confidence interval. So if the song changes tempo (and quite
some jazz songs do) or doesn't keep the tempo constantly (live music with human
drummers often shows some tempo drift. It's just the drum computers that keep
their speed very well...) - the tool can handle that quite well, while also
not being overly sensitive to tapping errors (as you can see in the image).I figure there might be even better estimation tricks (e.g. doing some error
detection and removing them), but this one was just very simple to implement.
And by looking at the graph and the error interval it's quite easy to check
that you didn't any recent mistakes and the result is okay.The Python code is about 158 lines SLOC, and a small UI description generated
with Glade. It's built with PyGTK and uses Cairo for the plots, so it should be
very platform independant and even run on Windows.Download will be available sometime when I get around to clean it up a little.
There is for example still the code in there to compute plain averages, which
can't handle songs with multiple tempos at all.[Update: it now also has a tiny 'flasher' icon that will show you the current
tempo estimation. This is great for checking the quality of the result - if it
keeps on flashing in sync with the music after you've stopped tapping, it's
good. I was also pointed to GNU GTick
which is a full featured metronome application and also has a tap button.]
I like high gas prices, though. I want the prices to go much higher.
Every time the prices go up, there are more cyclists on the road, and
the air gets a bit clearer.
If it were $10/litre, then almost noone would drive. We'd all be on
bicycles. Then it we be so much safer to be on a bike.
I can't wait for the day.
I currently use Ubuntu Linux, on a standalone laptop it has no Internet connection. I occasionally carry flash memory drives between this machine and the Macs that I use for network surfing and graphics; but I trust my family jewels only to Linux.More seriously, I found his comments about about multi-core computers to be very interesting:
I might as well flame a bit about my personal unhappiness with the current trend toward multicore architecture. To me, it looks more or less like the hardware designers have run out of ideas, and that they re trying to pass the blame for the future demise of Moore s Law to the software writers by giving us machines that work faster only on a few key benchmarks! I won t be surprised at all if the whole multithreading idea turns out to be a flop, worse than the “Itanium” approach that was supposed to be so terrific until it turned out that the wished-for compilers were basically impossible to write. Let me put it this way: During the past 50 years, I ve written well over a thousand programs, many of which have substantial size. I can t think of even five of those programs that would have been enhanced noticeably by parallelism or multithreading. Surely, for example, multiple processors are no help to TeX…. I know that important applications for parallelism exist rendering graphics, breaking codes, scanning images, simulating physical and biological processes, etc. But all these applications require dedicated code and special-purpose techniques, which will need to be changed substantially every few years.This is a very interesting issue, because it raises the question of what next-generation CPU’s need to do in order to be successful. Given that it is no longer possible to just double the clock frequency every 18 months, should CPU architects just start doubling the number of cores every 18 months instead? Or should they try to concentrate a lot more computing power into an individual core, and optimize for a fast and dense interconnect between the CPU’s? The latter is much more difficult, and the advantage of doing the first is that it’s really easy for marketing types to use some cheesy benchmark such as SPECint to help sell the chip, but then people find out that it’s not very useful in real life. Why? Because programmers have proven that they have a huge amount of trouble writing programs that take advantage of these very large multicore computers. Ultimately, I suspect that we will need a radically different way of programming in order to take advantage of these systems, and perhaps a totally new programming language before we will be able to use them. Professor Knuth is highly dubious that the later approach will work, and while I hope he’s wrong (since I suspect the hardware designers are starting to run out of ideas, so it’s time software engineers started doing some innovating), he’s a pretty smart guy, and he may well be right. Of course, another question is whether what would we do with all of that computing power? Whatever happened to the predictions that computers would be able to support voice or visual recognition? And of course, what about the power and cooling issues for these super-high-powered chips? All I can say is, the next couple of years is going to be interesting, as we try to sort out all of these issues.
Lessons learned today:



wanted a data type, got ex:i8'Turning on debugging showed the response type was indeed ex:i8, which isn't one of the types that Frontier::Client supports.
<?xml version="1.0" encoding="UTF-8"?>
<methodResponse xmlns:ex="http://ws.apache.org/xmlrpc/namespaces/extensions">
<params>
<param>
<value>
<ex:i8>161</ex:i8>
</value>
</param>
</params>
</methodResponse>
Searching through the code shows Frontier::Client is a wrapper around
Frontier::RPC2 and the error message happens at the following
section:
elsif ($scalars $tag )
$expat-> 'rpc_text' = "";
push @ $expat-> 'rpc_state' , 'cdata';
else
Frontier::RPC2::die($expat, "wanted a data type, got \ $tag'\n");
So we can see that it's looking up the tag into a hash called
%scalars to see if the type is a scalar type, otherwise throws
the error we saw. Looking at the top, we can see this hash:
%scalars = (
'base64' => 1,
'boolean' => 1,
'dateTime.iso8601' => 1,
'double' => 1,
'int' => 1,
'i4' => 1,
'string' => 1,
);
So, if we could add ex:i8 to this scalar, we could fix the
problem. We could fix the module, but that would require every user of
the script to patch their copy of the module. The alternative is to
inject something into that hash across module boundaries, which we can
do by just refering to the hash by it's complete name including the
package name. We can use:
$Frontier::RPC2::scalars 'ex:i8' = 1;Now when we run the script, everything works. It's not nice and it's dependent on Frontier::RPC2 not changing. but it allows us to get on with our script.
Last night, my flatmate asked the question of whether it is
possible to do anything in a selfless way, or whether everything
one does can be traced back to one s own interests. I am not fit
for these kinds of philosophical arguments anymore, so we pursued
another topic instead.
Today I am sitting on a Swiss flight and am being bombarded by
commercials on the stationary television screens they use for
safety instructions and the onboard entertainment.
Swisscom purchased advertising
space, and there they proudly let us know, in German, English, and
French that 1 million kids in Switzerland jump for joy as Swisscom
brings free Internet access to their schools. Simply so.
(sic).
When I read this, I first though: why the heck are Swiss schools
still in need of Internet connections? Why do we tolerate an
economy or situation in which the Internet isn t ubiquitous
yet?
And then, my mind suddenly made the connection to last night s
discussion on selflessness: even though Swisscom is trying to
communicate that they re being selflessly good by providing access
to the school s, they obviously aren t, or they wouldn t be using
the factoid for advertising.
The curious aspect is that I wouldn t normally have absorbed
their message or linked it to last night s discussion. The reason
that I did is because of the gross errors in their English
translation.
The German einfach so , which I think they translated wrongly,
suggests that they did something without any particular reason. I
am not a native English speaker, but simply so doesn t exist, and
it (thus) doesn t have that meaning.
Dear Swisscom, and all other companies who think that English is
hip, or who actually want to reach out beyond the borders of
four-language-Switzerland: consider employing someone who can speak
the language to help with your marketing. Even if you want to let
the world think that what you do is without commerical
interests.
NP:
The Flower Kings: Unfold the Future
Update: initially, I criticised Swisscom for
using jumping for joy , which makes no sense to me. Apparently,
however, it s an idiom. I should have checked, especially since I
am criticising the use of a language non-native to me. Thanks to
the various people who wrote in for kindly pointing out my
mistake.
When I got in to my hotel room last night, it was brightly
illuminated and the TV was on with music and a message to greet me.
The first thing I did was turn it off, along with most of the
lights.
Later, I asked at the reception when they turn on the lights. I
was expecting them to have a central switch for each room that the
receptionist could flip when the guest finished checking in and has
started to make way towards the room.
Not so. The guy behind the desk told me that housekeeping sets
it all up.
So my lights have been on and the TV blasting for the entire
afternoon and evening. That did not make me feel at home. It made
me cross.
NP:
The Pineapple Thief: 8 Days Later
Debian wants to release in september. This target is already becoming difficult to reach, though the Release Team would like to try to do an extra effort to reach it.
History has shown that as long as testing migration is not frozen, many maintainers don't care much. Even during the freeze 'small' bug fixes are uploaded that sometimes break a lot and can delay the release quite a bit.
Currently build-essential packages are frozen, though 13 of these have new uploads in unstable...
We do want to finish 2 major transitions: python 2.4 -> 2.5 and perl 5.8 -> 5.10 before also freezing the non essential toolchain. The first one is reaching an end, though some build failures on arm and a flaky alpha buildd are not helpful in that regard.
Note that during a freeze fixes for release critical bugs, release goal bugs, documentation issues as well as translation bugs should still be fine if they have a low impact. Please do send unblock requests for those to the Release Team.
Considering all the above I do hope that maintainers start to realise that requesting freeze exceptions (exceptions to the above guidelines) should not be done lightly and start preparing for a release.
I’m off for vacation for just a week without any internet access (Oh my good, I will hate my inbox). This break will give me some time for my wife and my daughter before my second daughter will arrive in this world which is scheduled for mid june.deb file:/home/ftp/debian unstable main contrib non-free deb file:/home/ftp/debian-multimedia/ unstable mainWith a file URL, apt-get doesn’t need to download any packages, and thus doesn’t need to cache anything in /var/cache/apt/archives. No need to keep it empty, it just is empty. In a related post, Andrew Pollock suggests adding DPkg::Post-Invoke “apt-get clean”; ; to /etc/apt/apt.conf. That would be fine if you ONLY ever ran “apt-get update ; apt-get dist-upgrade”. It’s not fine if you run “apt-get -d” to download packages first, then install a few packages with “apt-get install package”, and then run “apt-get dist-upgrade”. If you try that, then the DPKG::Post-Invoke rule will clean out /var/cache/apt/archives when you install the individual package(s). When you then run the dist-upgrade, apt-get will have to download all the packages again. Better just to get into the habit of running apt-get clean or autoclean occasionally when you want to reclaim some disk space. Syndicated from Craig Sanders' Errata: Miscellaneous Thoughts Keeping apt archives empty…or not.
As mentioned a few weeks ago,
I had submitted two entries as possible topics for this year's version of the
Google Summer of Code. And lo and behold, the response was
very, very good and both applications were slotted!
For the topic 'create a PostgreSQL package for R that uses the standard DBI interface', a number of
interested students contacted me, and a total of three applications were submitted. And while the R
Foundation was only able to allocate four topics among a number of really good applications, Sameer
Prayaga was our pick for this topic. It would be nice to fill this gap among the existing database
connection methods for R, and I feel that Sameer can pull this off.
For the second topic of 'create a cran2deb tool for converting CRAN sources into Debian package' which
I had submitted within Debian, Charles Blundell wrote an excellent application. In a way, this
topic is a '2.0' version of our previous attempts of a 'top-down' set of tools in the pkg-bioc
project on Alioth. This time, we will try something smaller, maybe more modular and lighter and
see how far we get there if we try it 'bottom-up'.
And as we are currently in the community bonding phase, say Hi to Sameer or Charles when you come
across them these days.
Lastly, I'd like to thank everybody who submitted an entry at Debian or R, or who contacted me about
one of the topics I posted. The respone was very humbling, many of you were imminently qualified
and seemingly very motivated -- but even Google's pockets can only pay for a finite number of
projects. Sorry if yours did not get picked.

![Phone from gallery.hd.com [Photo of Phone]](http://mjr.towers.org.uk/writing/reflections/attachments/mopho.jpg)
My communications connection
I'm going travelling this summer.
I don't know what internet connection I'll
have (if any) but I'm pretty sure I'll have
fairly cheap SMS access from my phone.
Maybe even MMS.
So, I want to use one of the
mobile micropublishers to try to avoid
sending international SMSes to
lots of people.
Facebook
doesn't look good - it gives a shortcode
(which would cost me extra to use and I
don't know whether it works while roaming),
has no number for SMS that I found and
it looks like O2 is the only UK carrier it
knows - bizarre.
LiveJournal
has mobile access but
the FAQ
makes it look like it's only for paying users.
If I was sure it was going to work, I might
pay and support the GPL'd codebase.
Jaiku
is cost-free and gives an SMS number,
but is joining the
Goolag
and I don't
see how to download their Java applet.
Twitter
is cost-free, gives an SMS number
and looks like it plays nice with Jabber
(which is already on my phone),
so that looks good but I found
some complaints about whether SMSes get through.
20six
is a German-based cost-free service which
takes SMS and email (which is also on
my phone), so that also looks good,
but there are some old doubts about whether
it will stay cost-free.
Is there a service you'd recommend?
Just to not confuse readers from Planet Debian, the mentioned baby is not Miriam Ruiz. Sorry. :)
baby is leavingP.S.: Tiny bits changed after some nagging from baby. ;)
flying over the big sea
heading for some place I wish her good luck
and that she will come back soon
to my open arms

Next.