Search Results: "edd"

22 February 2007

Eddy Petrișor: Useful and unknown feature of apt

Note: this feature was at least unknown to me.

If you have a local mirror and one which is further, you will most surely have the local mirror listed first in your /etc/apt/sources.list so that apt tries to download first from the local mirror. Nothing new here.

Add a laptop to that mix and moving frequently to another place, let's say office at work, where the link to the second mirror is waaay faster than the one to your home local mirror.

How do you make updates/installations via the most speedy connection, no matter if you are at work or near the local mirror at home?

Simple (if you count simple something I had to figure out in 1 months or so - to quote partially aj :-); apt will use that mirror if you comment out the lines that point to your local mirror and will use those without the need to run update.

Are you getting my drift? So, how does that add up? Throw in there laptop-net and its feature to replace files depending on profile and you got it all almost sorted out (you'll have to make a restore feature based on the $ PROFILE /before-deselect hook).

So, to conclude, here are the instructions:
Now you should be able to always install from the fastest mirror at all times.

21 February 2007

Erich Schubert: Dojo WTF?

From Dojo Toolkit (a very powerful AJAX toolkit), but should probably go to The Daily WTF...
_getAdjustedDay: function(/*Date*/dateObj)
  //summary: used to adjust date.getDay() values to the new values based on the current first day of the week value
  var days = [0,1,2,3,4,5,6];
  if(this.weekStartsOn>0) 
    for(var i=0;i<this.weekStartsOn;i++) 
      days.unshift(days.pop());
     
   
  return days[dateObj.getDay()]; // Number: 0..6 where 0=Sunday
 
That code is inefficient and stupid on so many levels. For example the if statement... you might be aware that 0 < 0 is false. Yep. I'd prefer something along the lines of
  return (dateObj.getDay() - this.weekStartsOn) % 7;
No arrays were abused during the making of this function. I always thought PHP programmers were the worst, but apparently some JavaScript "coderz" are up to par.

Dirk Eddelbuettel: littler 0.0.10 released

Another bug fix release -- this time triggered by Detlef's problems to build r (pronounced littler) on SUSE/OpenSUSE. Jeff also added better rng initialization fixing problems I noticed with tempfile(), added checks for the upcoming R 2.5.0, and made tests in tests/ use a path of ../r. Lastly, we added a short segment on the upcoming, err, shall I say 'cousin' Rscript that will be released with R 2.5.0. As usual, everything is in our svn archive, on my r page, and in the local directory here. A fresh package is in Debian's incoming queue, and Jeff's littler page at Vanderbilt should reflect the new release soon too.

Eddy Petri&#537;or: TDebs - still brainstorming

This is about TDebs.

Raphael Hertzog raised an important point about tdebs and mirror usage. Not sure how to deal with that yet.

OTOH, silent tdebs' selection doesn't sound bad at all. Thanks Filipus.


More info on TDebs issues: http://wiki.debian.org/I18n/TranslationDataDistribution

Eddy Petri&#537;or: tdebs - archive layout (updated)

(Some updates, see at the bottom).

Today I have moved the wiki page for TranslationDebs under i18n/TranslationDebs, since it seemed to be a more proper place.

I also read again my proposal, made some corrections and gave the layout proposal some thought. I realised that both compatible layout proposal and the incompatible layout proposal have disadvantages and/or are somewhat inconsistent with the current way the archive and apt work.

So I went on and added yet another proposal which should be some middle ground between the previous ones. Now I am not sure if this new one has any real benefits as opposed to the previous ones and I am not sure if I am still on the right track.

Now I need some help. I suggest interested people to look at the proposals and their advantages before answering the questions below.


So the questions are:
  1. which of the following archive layouts seems to be the "right" format?
    • f.d.o/debian/dists/DIST/SECT/l10n/LANG/
    • f.d.o/debian/dists/l10n/DIST/SECT/LANG/
    • f.d.o/debian/dists/DIST/l10n/LANG/SECT/
  2. Do we want a binary-$ARCH level at the end of this path? Is the lack of it an inconsistency? Do we want l10n material to be treated so differently? Do we consider the LANG some kind of replacement for $ARCH? Is there any or a significant part of l10n material that is arch dependent?
  3. Do we want to have a compatibility layer for older dpkg/apt, i.e do we want both an empty Packages and a Translations file in there?
  4. Which of the following looks the best for translation selection ? (note that the change of format leads one way or the other to incompatibilities)
    • deb-tdeb-$LANG http://ftp.debian.org/debian/ etch main
    • tdeb-$LANG http://ftp.debian.org/debian/ etch main
    • deb http://ftp.debian.org/debian/ etch main/l10n/$LANG
    • deb http://ftp.debian.org/debian/ etch l10n/$LANG/main/
  5. Does the package naming needs some rethinking since the current proposal doesn't allow translation installations to be installed via current dpkg implementation?
Update (20070221-1): Filipus Klutiero suggested that it would be nice not to need to add something in /etc/apt/sources.list . I agree, this is a very good idea. There was no suggestion how to do this, but I thought maybe /etc/default/locale can be used for translation selection via a new variable in there. I'll add this to the wiki page, too.

20 February 2007

Eddy Petri&#537;or: Bastian's dillema

Bastian, what about using sshfs (needs fuse)?

And thanks for the tip!

Eddy Petri&#537;or: I wonder ...

... if these stats do something special about those acceleration keys. Of course, these don't make much sense in Debian context, but maybe these stats and others (KDE, Debian, GNOME etc.) could be integrated into a gettext-devel-tools package upstream so we avoid redundant work.

http://tortoisesvn.net/translation_devel_gui

19 February 2007

Jonathan McDowell: The UK rail network sucks

I've been ill; I had the flu (first time I've ever actually had to take a day off work). And then I spent a week working from Portstewart. Which was a bit odd, as Katherine's living in furnished rented accomodation which means the decor is completely not us (we've always lived in unfurnished places before). Anyway. I went down to London Saturday week ago, and of course there was no direct train from Norwich because Network Rail like to screw over people travelling on weekends. And then I came back from Stansted yesterday and there were no trains from Stansted. So I end up on a replacement bus service to Cambridge (where I'm supposed to pick up a train to Norwich). And the moron driver goes to Audley End (fair enough, we knew it would stop there), reaches J9 of the M11 and decides to go southbound rather than over the junction towards Cambridge. So we end up practically back at Stansted - at J8 he comes off the M11 and rejoins northbound, then drives up to J11 before coming off. I'm not a Cambridge resident, but I'm sure this isn't a sensible route, even factoring in that I don't think you can go northbound at J9. 3 hours of travelling time. I'd have been better on the bus, but I just missed it and the next one wasn't for another 2 hours. And then there's pricing. I'm going to a wedding in Glasgow next month. It was £50 cheaper to fly than take the train (and even given check in times I suspect will be significantly faster). I'm considering a meeting in Manchester at the start of April and flying is cheaper than the train (again by over £50) and in fact given the timings would mean I could actually do it in a day rather than having to sort out accomodation. Flying is even cheaper than driving it seems, and probably faster or at least equal given check in times. I know I'm supposed to be flying less, but it's hard. Give me a viable rail network that's actually competitive on pricing (I'm not even talking about walk on pricing, I'm trying to book in advance with known travel dates/times) and has a decent schedule and I'll use it!

Eddy Petri&#537;or: I hope they don't see this

Now this is interesting, it seems that there is little spam with a subject pretending to be an answer.

BTW, I don't understand where the percentages come for, judging by the nuber shown, they don't make sense...

And in case you are wondering, this is mnenhy.

17 February 2007

Dirk Eddelbuettel: Dianne Reeves

We saw Dianne Reeves (wikipedia) earlier at the CSO. Looking the what I wrote in 2003 in one of the earliest entries here, I notice that she is touring with the same (excellent) band composed of Peter Martin (acoustic and electric piano), Reuben Rogers (acoustic and electric bass) and Greg Hutchinson on drums. This may explain some of the coherence on stage... Anyway, wonderful concert, wonderful artist and definitely highly recommended as a live performer.

16 February 2007

Eddy Petri&#537;or: n?gettext usuall assumptions and problems

For those who care about i18n and especially to those that don't care, a mail that I wrote to the Wormux-dev mailing list might provide some insight on the regular issues that plague badly i18n-ed applications.

This is mostly not developers' fault, but the fact that many don't know the real capabilities of gettext.

The post is here.

13 February 2007

Eddy Petri&#537;or: yet another disguised rant or how you won't run GDB remotely

I tried for the whole day to understand how I can debug remotely an application in a qemu machine.

Why would I want that?
The closest I could get was to start by hand qemu with the guest qemu serial port set on a tcp socket, start gdbserver on (guest) /dev/ttyS0 and try to start gdb remotely on that socket opened by qemu. This resulted, as expected in some errors...

Now, after reading all kinds of threads on the net, reading qemu's docs and gdb's docs, I gave up, I am installing X in the qemu machine.

BTW, I couldn't find a way to tell DDD to connect to a socket to debug :-/.


Of course, any help and advices would be mostly appreciated.

12 February 2007

Adrian von Bidder: I Love The Press

I wonder how much a piece from queen victoria's wedding cake would fetch on ebay...

Russell Coker: John Howard is bizarre

Our despicable prime minister said "I think that would just encourage those who wanted completely to destabilise and destroy Iraq, and create chaos and victory for the terrorists to hang on and hope for (an) Obama victory".

That statement is wrong in many ways, firstly the US (with Australian help) has destabilised and destroyed Iraq already. Claiming that removing US troops at this stage will do any further harm is unproven (and except for the Kurdish area extremely unlikely). Trying to link a presidential candidate with a terrorist organisation is the worst type of dirty politics.

Texas Republican senator John Cornyn requested that the Australian government stay out of US politics. It sounds like a reasonable request. But I wonder whether John Cornyn got involved when the US ambassador spoke out against the leader of the Labor party at the last Australian Federal election...

Senator Obama suggested that if John Howard wants to criticise his policies in Iraq then he should first send another 20,000 Australian troops (there are currently 140,000 US troops compared to 1,400 Australians). According to the CIA World Fact Book Australia has a population of 20.3M while the US has a population of 298.4M. If the ratio of serving soldiers was to match the populations then Australia would have 9,500 troops in Iraq. If Australia was to be a full military partner of the US (but scaled down due to the smaller population) and therefore had troops in South Korea, Japan, and Germany then the number of Australian troops committed might be closer to the 20,000 number cited.

But this is no criticism of Senator Obama. For a number that was made up to demonstrate his point that Australia is not pulling it's weight in Iraq it's a quite reasonable estimate.

The US Democrat Senator Ron Wyden correctly described Howard's comment as "bizarre". This may become a catch-phrase for the Howard regime (as the Bush regime is described as a "miserable failure").

Johnny seems to think that it's in his best interests to send Australians to fight a war that has no benefit for Australia (or the US for that matter), but he doesn't have the guts to do it properly. Fortunately for him the Bush regime understands his position and allows him to send a token force to demonstrate support without the risk of any significant number of casualties or having to conscript soldiers.

This mutual meddling in elections is a demonstration of the way Bush and Howard conspire against the interests of the Australian and US citizens. Both countries need governments that look after the interests of their citizens at home and let the UN take a larger role in world issues.

9 February 2007

Ross Burton: GUADEC 2007 Pre-Call for Papers

I plan on announcing the GUADEC 2007 Call for Papers in the next day or so, so I want everyone to put their thinking caps on and consider giving a talk this summer. There are several topics I'd like to see a good set of talks on:

7 February 2007

Simon Richter: It's that time of the year again

I'm going to be at this year's "embedded world" trade fair, probably on Wednesday. If you want to swap keys or drink beer, contact me.

Stefano Zacchiroli: vim-script news

vim-scripts maintenance Mixed research meeting in which universities get in touch with big companies are fun, especially at the end, when the planning phase is reached and different, often conflicting, interests show up: academic fellows pulling the blanket from one side (trying to postpone deadlines, planning paper submissions, ...) and industry hard-workers pulling it to the opposite site (which results when, press releases, ...) But the mutual presentations at the beginning of those meetings are sooooo boring, especially when you (as an academic) have to listen at the company presentation: buzzwords, organizational charts, quadrillions of $ invested in R&D in the last years, bla bla bla. What's better to occupy that time slots than Debian hacking? So this morning I proudly uploaded a new version of vim-scripts (7.0.5) which is itself proud to be the version with the longest changelog entry in the package history (49 lines). Among the most notable changes you can find: Enjoy vim-scripts now!

Eddy Petri&#537;or: Debian Live HOWTO

In order to make a Debian Live image these are the steps you have to make (as root):

Really, no lies! just make sure you replace $ DIST , $ PACKLIST and $ MIRROR .



DIST can be etch or sid. I didn't try sarge.
PACKLIST is one of the ones in /usr/share/make-live/lists/ or you can make your own and place it there.

By default, these are available:

ls /usr/share/make-live/lists/
gnome kde kde-extra-i18n minimal x11
gnome-core kde-core kde-full minimal-net x11-core
gnome-full kde-core-i18n kde-full-i18n standard xfce
gnustep kde-extra kde-i18n standard-i18n

MIRROR is easy and it can be a local mirror

6 February 2007

Eddy Petri&#537;or: Google Video restrictions?

"We're sorry, but the provider of this video has not authorized Google to display this video in your location."

This is what I got when I clicked on one of the videos on the first page at video.google.com.

Are they implementing restrictions like they do for China? Digital split anyone?


And in case you are asking, this is the URL: http://video.google.com/videoplay?docid=-4240715483782231113

3 February 2007

Eddy Petri&#537;or: kvm, qemu and qemuctl

Junichi, qemuctl provides a nice control panel that contains, among others, a save state button and a resume state button.

As a nice addition you could use qemu-launcher.

Not sure how kvm plays with qemu-launcher and qemuctl, but I guess it can be changed anyway.

Next.

Previous.