Search Results: "ag"

29 October 2006

Jonathan McDowell: Anyone hacking non WinCE phones?

I am familiar with the Xanadux project which is working on porting Linux to various WinCE based smartphones. However I'm not aware of anyone doing the same for Nokia or SonyEricsson phones. Are there no such projects or have I just not found them? I'd have thought phones running Series 60 were likely candidates to have other neat stuff ported. Is this not being done because it's harder to get into Symbian, or is it not being done because Symbian is much more functional than WinCE?

Stefano Zacchiroli: dear old mutt

Dear old Mutt, ... My MUA of choice is Mutt. I've been using it for something like 8 years now and I like it: it's quick, powerful and well integrated with the Unix way of handling mail (e.g. procmail). But we all know that. My feeling today is that sooner or later I will be forced to abandon it. The main reason is that it seems to be a dead product, upstream development is not dead but I fail to see an overall plan for my beloved MUA. Other text based application have understood that they should be integrated in some way with the desktop and/or windowing environment in which they are run: Vim for example is able to deal with the mouse wheel event when run in an xterm or even has developed a GUI which is well integrated with the Gnome session mechanism. Why Mutt is not? Such feelings of today has been originated by Tomboy, a wonderful note taking tool with Wiki-like capabilities, integrated with Gnome. It has a plugin for drag and dropping Evolution mails on notes automatically providing links from the notes to your mailbox: that's ... wow, great! I'm already using Evolution as my organizer and I already have Gaim integrated with it for contacts. I fear the moment I will try it for mails because I'm pretty sure it also has an UI which can be easily used with keyboard without the need of the mouse. Since I'm using all this on my laptop which is always with me (and this means that the argument "Mutt can be used remotely using a 9600 GSM connection" is bogus), it seems I'm running out of arguments for sticking to Mutt. Oh, right, there is the procmail stuff, my last feeble chance of keep on using Mutt ...

Norbert Tretkowski: Linux not ready for the desktop

My girlfriend got a new notebook two months ago. She wasn't happy with Windows, and asked me to install Linux. Unfortunately, the Ubuntu 6.10 installation failed during boot, and presented me a nice busybox shell. A similar problem occured when booting the Debian Etch installation, it couldn't find the CD-ROM drive. Then I remembered that SuSE added some SATA patches from 2.6.19-rc to their OpenSuSE 10.2 Beta1 kernel, so I downloaded and tried that, just to see if it works, but it also failed. Looks like I have to tell my girlfriend that Linux doesn't work on her notebook... Update: No, libata.atapi_enable=1 didn't help, tried that already.

David Welton: Idle Ajax callback for Rails

I'm working on an application that needs an idle callback (do something after the user has been idle for N seconds). It was pretty easy to hack up once I found some example javascript code (hopefully it works in IE too...):
def on_idle(timeout, options)
  timeout *= 1000
  remote = remote_function(options)
  javascript_tag("
var alarm =  
  remind: function()  
    # remote 
    delete this.timeoutID;
    this.setup(this.ms);
   ,
  setup: function(ms)  
    this.cancel();
    var self = this;
    self.ms = ms;
    this.timeoutID = window.setTimeout(function(msg)  self.remind(); , ms);
   ,
  cancel: function()  
    if(typeof this.timeoutID == \"number\")  
      window.clearTimeout(this.timeoutID);
      delete this.timeoutID;
     
   
 ;
alarm.setup(# timeout );
window.onblur = function()   alarm.setup(# timeout )  ;
window.onfocus = function()   alarm.setup(# timeout )  ;
window.onmousemove = function()   alarm.setup(# timeout )  ;
")
end
I use it like so, after putting it into my application_helper.rb file.
<%= on_idle 600, :url =>   :action => 'on_idle'   %>
It could probably improved by making it take some options to determine which events cause un-idleness and perhaps call a no-longer-idle hook. I'll update this page with those changes should I get around to them. I wonder if there's a good, centralized place to submit these kinds of little hacks to? The Rails trac system seems to be full of spam, indicating that people aren't triaging bugs at all.

Erich Schubert: Link farming, YouTube style

Apparently (unless they already have some spam filters in place; I'm surprised they don't use rel="nofollow") you can turn YouTube into a huge link farm. You won't be able to inject links into non-youtube-sites, but maybe (I didn't test that) it's possible to inject at least a link from every single youtube video page to yours... And it's not even a new thing. I mean, referrer spam is old. Really old. Sure, they might have filters, I havn't tested, but I'm not sure you can reliably filter this unless the "attacker" seriously overdoes it. I'll try it with this blog entry. Maybe I can become a top result for "youtube chad steve" this way? Not that I'd have any benefits from that. (And no, it's not funny if you prove me correct by sabotaging my attemt using the same technique. Be more creative than that, please.)

Joey Hess: on the air

The Mountain Stage show that I attended in Bristol this July is on the air now.

28 October 2006

Wouter Verhelst: Sharing a Developer's room with Ubuntu at the next FOSDEM?

I've been asked whether the Debian project would agree to sharing a Devroom with the Ubuntu folks at the next FOSDEM in Brussels. If you have an opinion on that, please reply to the mail I just sent to the debian-events-eu mailinglist about that subject.

Russell Coker: god on my side


Today I saw the movie God On My Side by Andrew Denton. It's an interesting movie about the televangelist industry in the US. I expected it to be about the shonky frauds who harm people, there was one scene in the start of a televangelist claiming to cure diabeties (a very dangerous claim that often results in serious injury to the victims of such frauds), but mostly it was about serious evangelists and not about the frauds.

What was scary was the level of advocacy of Armageddon. These people seemed very determined to have a great war between the US and Russia (haven't they realised that the USSR doesn't exist any more?). They advocated taking all possible measures to defend Israel (not ruling out the use of nuclear weapons) and didn't want any compromise with Palestine (no land for peace - after all peace gets in the way of Armageddon).

One insightful comment by an evangelist pointed out that many Christians have gone wrong in their advocacy in being based on what they are against rather than what they are for. It's a sad trend that most Christians are not able to express any positive things that they are for and only focus on things that they oppose. On most occasions when they say they are for something it is really a disguise for being against something else, EG supporting Family Values means oppressing homosexuals, preventing freedom of speech (bad language), and banning abortions (even for rape victims).

I am looking forward to the DVD release of this. I'm sure that the out-takes and some further footage post release will be interesting.

Above is the day 21 beard picture.

Simon Richter: Peer pressure, again

Since everyone is doing it these days, I'm writing a wiki. It's a compiler for simple documents, with strictly semantic markup, but with a query language that allows database accesses.

Jeff Bailey: sudo sed -i -e 's/edgy/feisty/g' /etc/apt/sources.list

I don't often post about work, but it's always with some trepidation that I switch my main computers to the new distro.

While I moved from the Distro team to leading the Support team last October, I still retain my Ubuntu core-dev status, and keep current by looking at toolchain issues occasionally and hacking on our SCC ports, ia64 and hppa. This means that not only do I keep my programming sk1llz from getting rusty through disuse, but I also have reason to keep in touch with other members of the distro team who are both work colleagues and friends.

As one of the people who cares the most about glibc in Ubuntu, I try to make sure that I'm running it wherever possible and making sure that I'm likely to find at least the obvious bugs before others.

So last night I pointed my sources.list to feisty.

This morning there were already two updates: base-files, and debootstrap. linux-libc-dev (the kernel headers) will come along shortly after the new kernel doesn't FTBFS. At the beginning of next week, there will be binutils, libc*, and gcc-4.1. And after that, the merge.

This will be the fourth release in a row that I've ridden from the first files uploaded. At times it's been exciting (leaving for a management meeting in Spain with a non-working X or wireless, not to mention broken cell phone and airplane. All of which were solved by the time I got to Mallorca.)

MJ Ray: The Dunc-Tank: Clarifications

Wouter Verhelst kindly replied to my comments on his calculation of Steve's net pay :

"The point wasn't getting a "correct" number; only Steve could produce those, if he wanted to. The point was proving that if you get 6000 for one month of work as a business, then those 6000 aren't what you can spend on your personal life. Whether the exact number is 2400 or 3400 is, thus, totally besides the point." "But, yeah, thanks for the clarification :-)"
I agree that 6000 gross works out as a lower net figure. So what? That's obvious to anyone who works and has noticed their gross pay isn't what they actually get to use, even if these "people have never had to run a business". (And I think running a business is a choice, not something anyone ever "had to" do.) If whether it's 2400 or 3400 net wasn't the point, why use inflated figures to advocate paying 6000 gross? My main point was: Dunc-Tank is not buying in a free market, so how can we tell what the fair rate is? Brian M. Carlson explained the lack of VAT:
"States in the US have either an income tax, a sales tax, or both. In the general case, non-profit corporations are exempt from taxation, as long as they have the proper paperwork. Also, certain essentials, such as necessary foods (cheese, but not soda) are exempt from sales tax where it exists." "Since Steve is almost certainly not a non-profit, he will have to pay income tax to both the state and federal governments; the rate depends on his annual income. He will have to pay FICA (social security) taxes, which are approximately 7% of the income. Any amount over $90,000 is not taxable under FICA."
Thanks for the explanation. I hope it'll help other non-US people. Of course, the actual payment rate is minor to me, compared to the problems of dunc-tank being designed as a market for lemons and being driven through by brinkmanship.

Mike Hommey: When dnsbl is all but helpful

I was preparing security updates for all the Mozilla products in stable and needed some feedback from their security team…
This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
  security@mozilla.org
    SMTP error from remote mail server after RCPT TO:<security @mozilla.org>:
    host dm-mail02.mozilla.org [63.245.208.176]: 554 5.7.1 Service unavailable; Client host [xx.yy.zz.tt] blocked using dnsbl.sorbs.net=127.0.0.10;
+Dynamic IP Addresses See:
    http://www.sorbs.net/lookup.shtml?xx.yy.zz.tt
Damn. And my ISP relay decided to reject my mail. Do we have a relay for DDs in need somewhere ? Update: It seems retrying was enough, there might be a problem with one of my ISP relay servers…

Zak B. Elep: I m too Edgy for this

Right. Ubuntu 6.10 has been out for sometime now. Go dist-upgrade! Or get the DVD image, as I’m doing now via rsync diff-update. It appears that CD images aren’t available at cdimage.ubuntu.com yet, but it doesn’t matter since I had the previous Beta DVD image on hand and I can just do the rsync dance. But I really should take my own advice and dist-upgrade; I haven’t done so since I’ve been pretty much content with Kubuntu Dapper running smoothly between hibernates. I know I will have to dist-upgrade though, since the Ubuntu-PH LoCoTeam will have a Release Party in a couple of weeks, just in time for the arrival of Edgy pressed CDs, and we definitely would want to show off a fresh ,Ed,K,X ubuntu Edgy by then ;) I just need a venue, a time, and a couple of drinks; suggestions, anyone? :)

Christian Perrier: Side effect of the l10n NMU campaign

Today, the l10n NMU campaign had an interesting side effect: I fixed (hopefully correctly) a RC (and security) bug in screen. Indeed, while looking at this package to seek ignored debconf l10n bugs, I went on #395225...which was trivial to fix (upload the new upstream version). Moreover, it seems that I should soon have another RC bug fixed, as webfs also seems to have an RC bug and abandoned l10n bug reports. PS: my first impression about screen (definitely a useful package) is that it is not so actively maintained, though the maintainer is very responsive. He maybe needs help.

Joey Hess: optimising ikiwiki

I'm finally doing some serious optimisation of ikiwiki tonight. It had been feeling a bit slow. So far with one optimisation (making it into a two-pass compiler) I've sped it up about 8x in some cases, though it's probably more like 2x-4x in the general case of rebuilding a wiki from scratch. Incremental builds are also sped up somewhat, though generally much less. Another optimisation changes backlinks calculation from O(N^3) to O(N^2) on the number of pages in the wiki. Of course N^2 still isn't very good, but this is still a serious improvement. Especially when you have thousands of pages. Rebuilding my personal wiki with these optimisations, it builds 9 times faster than before, now taking just 1 minute. Ikiwiki's own wiki rebuilds in 7 seconds instead of 34. Stunning!

Daniel Burrows: Things that Don't Suck and Things that Do

Since I sometimes worry that my blog is turning into a gripelog, I'd like to highlight a very positive experience I recently had with a company. I wanted to buy some decent desk chairs for my apartment, and due to getting a higher-than-average computer desk, I needed chairs that were fairly tall (seats around 30" from the floor).

I finally converged on a lab-stool that I found at office-chairs-discount.com and placed an order for two instances of it. They arrived a few weeks later in boxes with fairly simple assembly instructions. Unfortunately, and here's where it gets interesting, one of the chairs was broken -- the ring of plastic that was supposed to secure the foot-rest to the chair's main support was broken. After I sent an email describing the problem to their support address, they said that all I needed to do was take a picture of the broken part and they'd mail out a replacement. A few weeks later, the replacement arrived and I was able to assemble the second chair. They even were very polite when I bugged them about why the part hadn't arrived when it already had (UPS apparently didn't leave a notice for me). All in all, I was quite impressed with this company and I'd definitely buy from them again if I needed more chairs.


So, now on to less happy things. People with a mathematical background are familiar with the principle of transitivity; basically, this says that if A is less than B and B is less than C, then A is less than C. This isn't just an arcane mathematical property, though; it has important practical consequences. For instance, if you want to quickly find a word in a list of words, having the words in sorted order is a huge benefit. You can do this because, among other things, the "less-than" relationship between words is transitive (without transitivity, even the idea of a "sorted order" is somewhat peculiar).

Why do I mention this? Well, because in C#, the following inequality holds:

"Y-" < "Y'" < "-Y-" < "Y-"

That's right: by default, Microsoft's C# implementation compares strings in a non-transitive manner, contrary to all expectations that any sane programmer would have. This bit me yesterday, when I was trying to sort a rather large array of strings and then perform searches in the array. Words that I knew perfectly well were in the array (I could even see them in the debugger!) weren't being found by the search. Why? Because the list wasn't in sorted order, even after calling Array.Sort() on it. Why? Because (see above) there is no such thing as a sorted order using the default C# comparator!

At first, I hoped this might just be a bug. But in the manual, I found a nice little explanation that the default sort doesn't perform a standard lexicographic comparison, in an attempt to provide a more "human-friendly" sorting. (they give the example of sorting "coop" next to "co-op", which confuses me since those two sort next to each other in any even. But whatever.) Instead, you have to use a method which is confusingly called "CompareOrdinal" instead of "DontSuckCompare".

Of course, after reading this, I guess nothing Microsoft does can really surprise me any more. Interestingly, Mono doesn't seem to have copied this particular "bug" (although I only tested one case with it). I don't know if this is good or bad: after all, it's probably only a matter of time before a piece of software that unintentionally depends on .NET's weird string comparisons comes into being.

Rodrigo Gallardo: Stages

Things come and go. In batches, it seems. Tonight, at exactly the very same time I was filling out my NM application, I received the final, definitive, no self-denial-possible message that my previous life is over. With prejudice. Kind of ruined the moment. Or, maybe it was the other way around and having mustered the courage to apply damped the sorrow. Up and onwards, I guess.

27 October 2006

Joey Hess: DWN items 1

This is the first in a planned series of weekly posts on what's happening in Debian, which I plan to do to help fill the gap left by Martin Schulze no longer writing DWN. I will post these on Fridays with a dwn tag, and while I don't plan to cover everything that's happening in Debian, like I tried to do when I edited DWN, my hope is that if some other people also do this, we'll cover enough to be useful. On to the news items.. mplayer in sid. The mplayer package has had the longest tenure in NEW of any package ever to be uploaded to Debian. But it's finally been accepted into the archive. Depending on the videos you need to play, you may still need non-free codecs from outside Debian, such as Christian Marillat's repository. Congratulations to mplayer's maintainers and to the ftpmasters for resolving the licencing issues that kept mplayer out of Debian for so long. d-i string freeze and release plans. In preparation for the first release candidate of d-i for etch, a string freeze has been going on for the last two weeks, and changes to the installer are limited to bug fixing. Frans Pop posted details and a timeline for RC1. Note that preparations for RC1 have already broken most beta 3 d-i images. alioth move. Alioth has just moved to a new server. Amoung other changes, svn.debian.org moved to the same host as alioth, eliminating some issues caused by splitting them before. archive.progeny.com decomissioned. This significant Debian mirror was turned off on October 22nd, and anyone still using it should switch to a different mirror.

Eric Dorland: A Big AOL to Mike Hommey

Dude, I could not agree with you more.

However, you seem unwilling to take Ubuntu to task over it's decision to use the trademarks. It's not clear to me under what circumstances you can even use the icon, since the copyright file doesn't list what the copying conditions are, in fact it doesn't mention the logo graphic copyrights at all. I think this is a big loss for distributions everywhere. While this would appear to be expedient and make users happy, but it creates more work for the derivers of Ubuntu and it also makes it harder for Ubuntu to derive from Debian. It also sends the message that this sort of thing is alright, that we should just accept upstreams doing this.

Sven Mueller: Re: Wacky ideas #9: rerun maintainer scripts for changes in related packages

Interestingly, Simon Richter write about rerunning maintainer scripts for changes in related packages just when I thought that it would really be nice to get SpamPD (a SMTP-proxy in Perl which scans mails for spam using the Mail::SpamAssassin Perl module) restarted when SpamAssassin gets updated. Or to get spamd (which is part of SpamAssassin) restarted when a plugin is updated, removed or installed. Of course the second one is easier since the plugin package “knows” that SpamAssassin is affected by the change and can thus reload/restart spamd.
One idea I had for this is to create a hierarchy to which an admin or maintainer could add scripts (effectively providing hooks), like this:
/var/lib/dpkg/hooks/<package>/(removal update install)/(pre post)/<hook-package>
Where <hook-package> would be the package installing the hook while <package> is the package for which the action is to be “monitored”.So that I as the SpamPD maintainer could make the spampd package install a script in
/var/lib/dpkg/hooks/spamassassin/update/post/spampd which would get called whenever spamassassin is updated, after the update, to be exact.
An alternative on per-package basis would of course be:
/var/lib/<package>/hooks/(pre post)inst/<hook-package> or /var/lib/spamassassin/hooks/postinst/spampd for the above example. I would be quite intested to hear what other devs think about this.

Next.

Previous.