Search Results: "ag"

10 April 2006

Edd Dumbill: Catching up

Most of my energy recently has been devoted to organising things for XTech 2006, now just over a month away. Here are some XTech-related snippets: MacBook  My new computer has arrived, an Apple MacBook Pro. I know I wrote some time ago about how disappointing it was for free software advocates to be using a non-free OS, and I am rather sad about this in some ways. I'll be writing in the near future about my impressions of the platform, and reasons for buying this machine. Writing My latest piece on Debian has been published over at O'Reilly, Installing Software on Debian. We've been a little slow getting through the publication of these, so I'll try and hurry the next few along. Rails Rails continues to impress. I wish I had more time than I do to use it, as it feels so right to work with. With Matt Biddulph I'll be teaching a day on Rails at XTech 2006. In the meantime, I highly recommend Chad Fowler's Rails Recipes, it covers the most common requirements from real-world web applications. Oh, and I'm scheduled to attend RailsConf this June. My paper was (not too surprisingly) declined for the conference, but Matt's was accepted.

Enrico Zini: What package is eating up my disk space?

My 5Gb /usr partition is full. What do I have installed that's eating up all the space? Let's see:
#!/usr/bin/ruby
# pkgsizestat - Display the installed size of packages in a filesystem
#
# Copyright (C) 2006  Enrico Zini <enrico@debian.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
# Display the installed size of packages in the given filesystem
# Defaults to /usr if non specified
#
# Usually used as "./pkgsizestat /usr   sort -nr   less" to see what packages
# are filling up your /usr partition
dev = File.stat(ARGV[0]   "/usr").dev
def pkgsize(name, dev)
      size = 0
      IO.foreach(name)    line 
              begin
                      st = File.stat(line.chomp)
                      if (st.file? && st.dev == dev)
                              size += st.size
                      end
              rescue
              end
       
      return size
end
Dir.glob("/var/lib/dpkg/info/*.list").each    file 
      puts "%d %s" % [pkgsize(file, dev), file.gsub(/.+?\/([^\/]+)\.list/, '\1')]
 
Neat little useful ruby script. Ruby is nice in making scripts short clean and compact. Now I need a shorter version of the GPL :) Update: Florian Ragwitz suggests to use dpigs(1) from debian-goodies instead. What my script does that dpigs doesn't do, however, is counting only those files provided by the packages that reside in the given partition. I could for example use my script to see what's filling up the root ('/') partition when /usr is mounted elsewhere, and I find out that the top package is not openclipart-svg, but linux-image-2.6.15-1-686. Update: htom sent an updated version to sum all sizes and show only up to a certain size:
dev = File.stat(ARGV[0]   "/usr").dev
def pkgsize(name, dev)
      size = 0
      IO.foreach(name)    line 
              begin
                      st = File.stat(line.chomp)
                      if (st.file? && st.dev == dev)
                              size += st.size
                      end
              rescue
              end
       
      return size
end
pkgs =  
Dir.glob("/var/lib/dpkg/info/*.list").each    file 
  pkgs[pkgsize(file, dev)] = file.gsub(/.+?\/([^\/]+)\.list/, '\1')
 
pkgs = pkgs.sort
pkgs.reverse!
to_size = 1024**3 # show up to 1 GB
size = 0
pkgs.each do  a 
  size += a[0]
  puts "%d %d %s" % [a[0], size, a[1]]
  break if size >= to_size
end
Ralph Amissah posted a different variant:
# [License part omitted]
dev=File.stat(ARGV[0]   "/usr").dev
def pkgsize(name, dev)
  size=0
  IO.foreach(name) do  line 
    begin
      st=File.stat(line.chomp)
      if (st.file? && st.dev == dev)
        size += st.size
      end
    rescue
    end
  end
  return size
end
def space(file,dev)
  "%d %s" % [pkgsize(file,dev),file.gsub(/.+?\/([^\/]+)\.list/,'\1')]
end
@used=Array.new
Dir.glob("/var/lib/dpkg/info/*.list").sort.each do  file 
  x=Array.new
  x << space(file,dev).split(/\s+/)
  p [x[0][0].to_i,x[0][1]]
  @used << [x[0][0].to_i,x[0][1]]
end
#p @used.sort.each    x  p x  
@used.sort.each    x  puts "# x[0]  # x[1] "  
#redirect to file?
Thank you everyone for the nice feedback!

Simon Richter: Good I got a calendar

The next two months are going to be quite stressful, but hopefully also enjoyable. The kick-off is the Debian Embedded work session in Extremadura over the Easter weekend (my demoscene friends will hopefully forgive me skipping this year's Breakpoint), shortly thereafter followed by moving my stuff to a new flat (which allows some differentiation between sleeping and living room, whee!), then there is LinuxTag, which I'm not entirely sure I will fit into my schedule, then DebConf, shortly thereafter followed by the Wave-Gothic-Meeting and what happens then I have no idea yet. Probably madness.

Ross Burton: Sound Juicer "Come Back Stronger Than A Powered-up Pacman" 2.14.2

Sound Juicer "Come Back Stronger Than A Powered-up Pacman" 2.14.2 is out. Tarballs are available on burtonini.com, or from the GNOME FTP servers. Just a few bug fixes: The 2.14.x series of Sound Juicer releases is dedicated to Iain Holmes, who said he loved the Kaiser Chiefs. Or was it loathed, I can't recall. Anyway, the long and never-ending series of 2.14.x releases are dedicated to him. NP: DJ TeeBee live at The Breezeblock

Andrew Pollock: [tech] Getting the CD-RW in a D610 to work with Linux 2.6.16

I recently bit the bullet and left the relative comfort of a moderately patched 2.6.12 kernel, and went for the standard Debian packaged 2.6.16 package. The main issue so far was that my (SATA) CD-RW device went AWOL. A lot of googling revealing similar stories for other people, with the dreaded WARNING: ATAPI is disabled, device ignored. turning up a lot. The solution is actually mentioned in the 2.6.16 changelog, however to put it simply: On the next boot, lo and behold, the CD-RW is back reporting for duty. I need to scope out suspending next.

Robert Collins: 9 Apr 2006

I did a talk at the SLUG codefest last weekend the slids are here in Openoffice 2 format.

9 April 2006

Joachim Breitner: Wanted: Code Deleter

The recent removal of the “wpasupplicant as a roaming daemon” mode caused a lot of bug reports from people like me who need a complex wireless setup, i.e. several different networks defined in /etc/network/interfaces and a daemon that automatically brings the interface up and down upon availability of one of these networks, and guessnet to decide which network from /e/n/i to use. This setup worked very nice with wpasupplicant+ifplugd+guessnet, but now it does not any more.In the following discussion on pkg-wpa-devel mailing list, I argued in favor of reducing wpasupplicant to do just that: Providing WPA support. Analogous to the wired roaming support (please read my post for a in depth justification), and to continue to have one /e/n/i entry per location (and not device), we then need to create a separate daemon, e.g. “wifiroamd”, that will do this:The functionality is all there already, in wpasupplicant, tested and proven good. What needs to be done is to remove all non-roaming-code and create this wifiroamd. So if anyone is looking for a nice project, or likes to delete code, or for any other reason interested, please step forward and help us out here.BTW, in all these consideration, I think of /e/n/i as “network” definition, not device or interface definitions. If that’s a very uncommon PoV, I invite you to discuss that, either here, or my mail, or on the pkg-wpa-devel list.

Dirk Eddelbuettel: Race That' Good For Life 2006

Participated in the 25th annual Race That's Good for Life 5k race in Oak Park this morning, just as I had in 2003, 2004 and 2005. Near ideal conditions: sunny, no wind, temperatures in the 40s. I was afraid my legs were a little too tired: I had some rest after the Shamrock Shuffle last weekend but did a 12 miler after work on Thursday and 9 miles with two Boston-bound friends at Waterfall Glen -- 'hilly' territory for around here in Chicagoland -- yesterday morning. So while I didn't feel all that fresh, I also managed to run a pretty silly race of a way-too-fast first mile at 5:50 followed by 6:44 and 6:40 to average a pace of 6:19 minutes/mile with which I broke 20 minutes for the first time ever: 19:36. That's 50 seconds faster than last year, which was already a PR. Now I'm ready for a nap ;-)

Erich Schubert: New Microsoft Innovations: froogle.live.com and googlescholar.live.com

Whoa, Microsoft announced two new innovative services for their famous live.com website (you know, live.com is like, a top brand already, you know). They'll add a product search engine [google.com] and a scientific search engine [google.com]. Not that any of these hadn't been done [product search engine list] numerous [citeseer] times [DBLP] before. And apparently it takes them until september to actually launch the first of these (no ETA given for renaming shopping.msn.com to live.com and ajaxifying it). That's so "me too", what they are doing. I would laugh if Google would launch an Ajax-version of their services just before Microsoft is done with theirs. I mean, Google has Ajax experts. Not that Ajax would improve the user experience much for search pages. I wonder if Microsoft could hold their shipping date of Vista if they wouldn't try to copy Google at the same time. And making game consoles. And mice.

Andrew Pollock: [life] Movie of the year

Tonight Sarah and I went to see Inside Man, and conveniently managed to end our search for a half-decent cinema in the Bay Area at the same time. The AMC Mercado 20 in Santa Clara definitely has the best seating of all the cinemas we've been to so far. Century Cinemas, are so... last century by comparison. Anyway, back to the movie. Bloody excellent. I knew I wanted to see it from the moment I saw a trailer. It reminded me a little of The Thomas Crown Affair, a movie I enjoy for its plot. The movie was littered with hilarious one-liners that cracked up the audience. Denzel Washington was brilliant, and the plot was first-rate. Definitely one to see again, and definitely one to own.

Andrew Pollock: [debian] Jumping on the bandwagon

I'm very pleased to see that aj's been elected as DPL. I look forward to a change in tempo. Congratulations, Anthony.

Andree Leidenfrost: I am a Debian Developer!

Amazing stuff, after almost two years, I've become a Debian Developer! I've certainly learned a lot, met numerous nice people (mostly remotely unfortunately). My password is changed, my gpg key updated - so not long now, until I type the commands to make my first upload, undoubtedly with trembling fingers!

I'd like to thank all the people that were involved in making me a Debian Developer. Specifically, I'd like to thank H ctor for making me co-maintainer of mindi and mondo before I even knew what hit me, Ben for sponsoring me, Matthew for being my AM (We should play pool again one of these days!), and of course Amaya, who has helped in so many ways that I don't even know where to start, so I won't.

Thank you all!

Andrew Pollock: [opinion] An Inconvenient Truth

Al Gore gave a talk on climate change at Google yesterday, and I was fortunate to be able to go and listen to him speak for most of it. On-call duties prevented me from hearing the conclusion, which was probably the best bit. His slide deck was excellent. Overall, he wasn't telling me anything I didn't already know, but he had a lot of facts and figures to back it all up, and yup, the planet's royally fucked. It's really reinforced my desire to be as environmentally conscious as possible while in the US, given that this country is the biggest offender. There's not much more we can directly do at home except try to switch to a green power provider, if one is available. According to the calculator, our household is already significantly below the US national average in terms of carbon dioxide production. I wish Australia would get on board with the Kyoto agreement. Not that in the grand scheme of things, it would make a big difference, but it'd still be nice not to be one of the only two developed countries still with its head in the sand. That said, I am very excited about alternative generation projects such as the so called Tower of Power currently underway in Australia. I'm very inclined to buy shares in that.

8 April 2006

Julien Danjou: Time Management for System Administrators

I just found this book. Amazingly enough, if you read this book, your entire life will be transformed instantly and all of your problems will be fixed. You'll be better looking, too! I should read it...

Wouter Verhelst: Crypto law in Belgium.

I've always thought that I live in a sane country regarding crypto law—or, at least, one not as insane as the US. Apparently I was a bit too optimistic. According to this page, or more specifically, the Belgium-specific bits, you need a special license to be allowed to export cryptography outside of the Benelux. This is in relation to the Wassenaar Arrangement, an international agreement on cryptography laws which allows "public-domain" software, but not necessarily other types of software. If I can assume that the term "public domain" here really refers to software of which the source is freely available, then there is no issue; otherwise, I may be doing something illegal. I guess I'll have to investigate that. Moreover, and this is really a surprise to me, law enforcement officials in Beligum can, after an order of an investigation judge, order me to "make accessible [...] data in the form ordered by the judge", which might involve decryption; or they can also order someone whom they reasonably suspect to have special knowledge of encryption services to give information on "how to get the data at stake in intelligible form"—how to break the algorithm, if that can be done. Failure to comply with this might get me between 6 months and a year of imprisonment and/or a fine between 26 and 20 000 BEF (1EUR = 40.3399 BEF) I had no clue.

Lars Wirzenius: Random thought: Simplicity in web browsers

I like simplicity. I want things to be as simple as is sensible, but no more, and because of this, I tend not to particularly like web browsers. Web browsers are extremely complicated beasts, and to a large degree this is for stupid reasons, like having to support any kind of broken markup. I think the world would be better if web browsers would simply not display pages with broken markup. However, web browsers also have other things that irritate me, even if ever so slightly. For example, there's way too many buttons and other elements in their tool bars. Compare the following four screenshots of Mozilla, Firefox, and Epiphany, with their default configurations in Debian, with the version of Epiphany that I have configured myself.
Mozilla screenshot Mozilla: six real buttons, URL box, throbber, four bookmark buttons, plus widgets for rearranging or otherwise manipulating the toolbars themselves.
Firefox screenshot Firefox: six real buttons, URL box, Google search box, throbber, two bookmark buttons.
Epiphany screenshot Epiphany: nine buttons, throbber, and URL box on a separate line.
Epihany   la liw screenshot Epiphany la liw: four buttons, URL box, throbber.
Now, I admit that I'm a bit of a power user, and don't need quite as much hand-holding as a novice, but still, does anyone need a bookmarks button in the toolbar? People who make bookmarks often will quickly learn to type control-D, and those who do it only rarely don't need a toolbar button, they're happy enough with a menu entry. And why do Firefox and Mozilla need a button called "Latest Builds"? How is that interesting to anyone except Mozilla developers? Me, I prefer my setup. Four buttons plus the URL box. All buttons are easy to hit with the mouse, no need to hunt and seek the right location. Besides simplicity, my configuration saves on vertical space, which is pretty important for us laptop users.

Erich Schubert: Alexa.com wildy inaccurate

I just checked out alexa.com, and was very surprised to see graphs for my blogs domain. (Note: the other stuff in the same domain has even less visitors; alexa says 75% are on the blog) Alexa graph for blog.drinsama.de Apparently, one day beginning of april, drinsama.de made it into the top 100.000 domains at alexa again (happened in january and february, too). This very likely was my blog posting on running MSIE on Linux (whyever you might want to do that...). But their numbers are just absurdly off. They claim my blog has a reach of 20 Mio users. My ModLogAn, which uses the actual access logs, lists a peak of 358 visitors on April 4 (average is around 300 for March, 220 average in April so far). This doesn't include readers on Planet Debian, which is probably the largest share. At alexa, the domain peaked at .6 million pageviews - ModLogAn says 10k. I have, however, lots of referrals from Digg.com, Reddit.com and del.icio.us this month, since they've picked up my MSIE posting. Maybe this will happen again with the Cross-platform virus posting. I do think it has to do with users using the alexa toolbar and similar things (there is a nice firefox extension for showing Google Pagerank and Alexa traffic rating). My personal homepage, which is totall overrated in Google and has had an average of 1000 unique daily visitors in December and January, never made it that highly into alexa. While having three times as many visitors, alexa thinks it's 3-4 times worse. The difference is probably the power users. My personal page doesn't have "power visitors" like my blog.

Jonathan McDowell: Shaving is dull.

I shaved my sides a week or two ago, returning my face to its normal (well, as normal as it gets) goateed self. However I remember why I stopped shaving for winter now. If you shave, you have to do it every day. Otherwise you just look like someone who can't be bothered shaving, and while that might be because it's true, why not just not bother at all? I'm not really convinced about the wisdom in applying a sharp blade to my face early in the morning either. Oh well. I'm sure I'll get used to it again soon enough.

Erich Schubert: Apple's backstab on Windows

Apples latest move - BootCamp - can turn out quiet bad for Microsoft. By allowing users to install Windows XP additionally to OSX on it's newer machines, many people will buy a Mac (because of it's design, and the ability to try out OSX while still having Windows available). They'll install Windows. But one time or another, Windows will fail them, and they boot up their OSX. And eventually notice that it's better, prettier, easier to use. And they'll see the price of buying Windows licenses. If Microsoft doesn't manage to launch Vista before christmas, and offer something relevant for the users with Vista (a prettier UI and a malware detector isn't enough, and noone believes Microsofts security promises anymore), they'll lose quite a bit of the christmas sales. I wonder when Dell and Samsung will start selling PCs with OSX, too, now that it's no longer an either-or decision.

Neil McGovern: Choosing a CMS system

Well, I volunteered at the last SPI board meeting to re-do the SPI website, as it was old and outdated.

So, I posted a message over to spi-private and spi-www asking for ideas.

The main one that came up was using a CMS. Now, I've had a look at various CMSs in the past, and none of them have come up trumps. Also suggested were other options such as using Embperl and svn (which I use for the Debconf site), but this isn't user friendly enough for many people, and a wiki, but I'm not convinced a wiki is the best thing for a static site.

The main issue that I saw with using a CMS for the SPI site is the requirement for it to be truly multilinugual. Unfortunately, this does sort of knock out a SPI Project, Drupal. Another less important issue is the storage engine. Ideally, this should be postgres, as it's another associated project :) Thirdly, the software should be free (as in DFSG, not beer).

So, this leaves a few options. After many hours googling and lots of suggestions from the lists, I had a short list. This leaves one which I've found, Plone. It has issues, but it's the best I've found. Namely, it requires Zope. This means that every time you change it's skin, the entire Zope server requires a restart. Not even a reload, but a full restart. However, it's multilinugal facilities are very good, and it has a nice management interface. It does have lots of plugins that extend it's functionality, which is nice.

One of the problems I'm having at the moment is to get news items to have a 'Effective Date' of 1998, as the management interface only seems to go back to 1999, and I need to put old items on there. I also need to work out how to run it under Apache, and possibly use postgres as a storage engine.

So, all in all, Plone wins the day, due to it's ability to host multilinugal sites, and it having a management interface that doesn't suck.

For those that want a sneak preview, see the testbed, but don't expect it to work perfectly :)

Next.

Previous.