Search Results: "tats"

2 October 2007

Michal Čihař: Too much spam in Ukolovnik demo

Looking at the web stats, I noticed, that quite a lot of people find something relevant to "environmental" on my pages. As I was not aware of anything related here, I tried that in Google. To my surprise all results are in demo for Ukolovnik. Well I do not want to add any anti spam technique to this simple tool as it will be usually password protected. And this is exactly what I did with demo for now. So if you want to use it, you need to login with user demo and password demo. I hope this will prevent spammers from using this demo, otherwise I would probably have to close it.

26 September 2007

Raphaël Hertzog: DSA needs a leader

Seriously. Now that we have been using the request tracker for quite some time, it’s even more obvious that the DSA team is not up to its task. Use login “guest” and password “readonly” if you want to check the RT tickets linked in this article. The facts Note that myself and Matt do not have the needed rights to fix most of the tickets, so we provided help on a best-effort basis. Otherwise we would have done more. The communication problem It’s a multi-level problem. Each of the members has some problems with one or more other members. Joey’s behavior has been part of the recurring problems mentioned: he doesn’t use the RT, doesn’t read the DSA email alias and doesn’t follow the DSA IRC channel but he still does stuff very regularly without reporting anything and obviously problems happen. Ryan and James tried to impose him a rule to document what he does, without success apparently. On the other side, as far as I know, Ryan and James also don’t impose themselves to document everything in a central changelog. Joey has refused to provide me an explanation for his behavior. He just reminded me that he holds grudges against James and Ryan because as ftpmasters they didn’t cooperate well with him while he was stable release manager. In general, outside of all personal griefs that they might have, the DSA members do not communicate very much (at least not on their own official channels). Some examples have already been given concerning the request tracker, but it’s not much more effective on IRC. Most of the traffic on the channel is made up by local admins fixing the problems themselves without any intervention by any DSA. I also use the channel to regularly ping some DSA about simple issues and/or stuff that they usually handle. It used to work somewhat but lately fil has been busy (with the kernel summit and other conferences) and I simply got no answer at all… for example I pinged elmo, neuro and fil several times in the last weeks in the hope that they handle the tickets of the security team (#150, #157, #164) without results. There’s room for improvement. The leadership problem The team has no designated leader and every time that there’s a decision to take, they are blocked. Joey wouldn’t communicate and give his opinion, Ryan is extremely requiring and perfectionist, there’s not much room for compromise… A long time ago in a galaxy far, far away, Joey and elmo were friends. It’s even Joey who gave root rights to elmo. Nowadays, it’s rather James that is sort-of leading the team but he’s fed up of the situation and hasn’t managed to get out of this mess. He refuses to take drastic measures by himself because he’s not clearly the leader and doesn’t solicit a decision of the Debian leader (or the project) because he believes that the DSA team is not under the scope of the constitution! This can’t last any further. We’ll have to do something about it. Stay tuned.

21 September 2007

Russell Coker: Multiple DNS Names

There are many situations where multiple DNS names for a single IP address that runs a single service are useful. One common example is with business web servers that have both www.example.com and example.com being active, so whichever a customer hits they will get the right content (the last thing you want is for a potential customer to make some trivial mistake and then give up). Having both DNS names be equal and separate is common. One example of this is the way http://planet.ubuntulinux.org/ and http://planet.ubuntu.com/ both have the same content, it seems to me that planet.ubuntu.com is the more official name as the wiki for adding yourself to the Planet is wiki.ubuntu.com. Another example of this is the way http://planet.debian.org/ and http://planet.debian.net/ both have the same content. So far this month I have had 337 referrals to my blog from planet.debian.org and 147 from planet.debian.net. So even though I can’t find any official reason for preferring one over another the fact that more than 2/3 of the referrals from that planet come from the planet.debian.org address indicates that most people regard it as the canonical one. In times past there was no problem with such things, it was quite routine to have web servers with multiple names and no-one cared about this (until of course one name went away and a portion of the user-base had broken links). Now there are three main problems with having two names visible:

  1. Confusion for users. When a post on thedebianuser.org referred to my post about Planet Ubuntu it used a different URL to the one I had used. I was briefly worried that I had missed half (or more) of the content by getting my links from the wrong blog - but it turned out that the same content was on both addresses.

  2. More confusing web stats for the people who run sites that are referenced (primarily the bloggers in the case of a Planet installation). This also means a lower ranking as the counts are split. In my Webalizer logs planet.debian.org is in position #5 and planet.debian.net is in position #14. If they were combined they would get position #3. One thing to keep in mind is that the number of hits that you get has some impact on the content. If someone sees repeated large amounts of traffic coming from planet.debian.org then they are likely to write more content that appeals to those users.

  3. Problems with sites that have strange security policies. Some bloggers configure their servers to only serve images if the referrer field in the HTTP protocol has an acceptable value (to prevent bandwidth theft by unethical people who link to their pictures). My approach to this problem is reactive (I rename the picture to break the links when it happens) because I have not had it happen often enough to do anything else. But I can understand why some people want to do more. If we assume that an increasing number of bloggers do this, it would be good to not make things difficult for them by having the smallest possible number of referrer URLs. It would suck for the readers to find that planet.debian.org has the pictures but planet.debian.net doesn’t.

The solution to this is simple, one name should redirect to the other. Having something like the following in the Apache virtual host configuration (or the .htaccess) file for the least preferred name should redirect all access to the other name. RewriteCond % REQUEST_URI ^(.*$) [NC]
RewriteRule . http://planet.example.com/%1 [R=301,L] In my posts last night I omitted the URLs for the Planet Searches from the email version (by not making them human readable). Here they are:

18 September 2007

Lucas Nussbaum: Better Debian RC bugs graphs

if you like to monitor the number of RC bugs, you are probably annoyed by the graph on http://bugs.debian.org/release-critical/. The graph starts in 2003, making it impossible to read short-time changes. There’s a bug about that: #431299: RC bug status graph timescale is too long. And I provided a patch a few months ago, but it hasn’t been included yet. So, in the meantime, you can use my private copy (generated daily): Also, if you like graphs, Yves-Alexis Perez (aka Corsac) generates cool graphs about Debian: And if you want to have all the interesting graphs on the same page, you can use this page.

12 September 2007

Steve Kemp: Your love is like bad medicine

I think I'm about ready to start running my SMTP proxy/filter for people now. I've got two users setup and it seems to be holding up just fine. I've managed to remove the need to manually create things, so I'm capable of adding new domains on the fly. For my personal mail handling yesterday was the first day I've received over 10,000 messages. These are the stats from yesterday showing what happens at SMTP-time:
Total Mails    : 13302
Total SPAM     : 12620 (bounced back)
Total Accepted : 682
Spam Percentage: 94.87%
So I've dropped 95% of incoming mail at SMTP time, which is a big win. Of the mail which was actually delivered I'd guess that pyzor, razor, and spambayes marked a further 50% of it as spam. So my proxy needs to do better ... but it's pretty impressive. TODO: Find people to run as guinea pigs, register a domain, profit.

10 September 2007

Joerg Jaspert: Stats pron

Joey started a stats pron meme, so lets join, with stats from packages.debian.org AKA puccini.debian.org, which I am the local-admin for. This machine has
2007
Unique visitors 4952207
Total visits 8572139
Total pageviews 43332086
Total bandwidth (apache only) 783.28 GB
Additional traffic due to robots 53328963 pageviews adding 265.73 GB traffic
Looking at the other statistics April and May had a few percent more visitors, but other than that its pretty stable with around 600k unique visitors per month. We do not resolve IPs to hostnames due to the huge amount of useless traffic and load this would generate, so no statistics about the countries. But we do have some other stats. Like a Robot/Spider statistic. It looks like we had about 151 different spiders on our site, a few listed below.
Yahoois the most active spider, making some 97.54 GB of traffic
Googlebotfollows on second place, responsible for 43.92 GB
MSNBotcaused about 21.52 GB traffic
Python-urllibis used by multiple bots and they all made up 43.29 GB traffic
Next interesting point is that of Operating systems.
Linuxis of course the most used one, 48.1% of our visitors told us they use it.
Windowsonly on place 2, with 40.5%.
MacOSall kinds of MacOS add up to 2.5%.
There are various others in the list, but none with more than 1%. Like Sun Solaris which was used for about 63k hits (compare it to Linux with 32 378 942 hits). 5423 users did want us to believe they use CPM, another 76 tried that with VMS. Of course we are interested in more details for the 48.1% Linux users, here they are:
Debian1539753722.8 %
Ubuntu905001413.4 %
Suse5426350.8 %
Red Hat1072400.1 %
Mandriva (or Mandrake)1665450.2 %
Fedora6232420.9 %
Centos699980.1 %
GNU Linux (Unknown or unspecified distribution)64217319.5 %
Windows is boring, more than 33% are using the XP crap, all BSD version together, including that GNU/kFreeBSD variant have 0.1% all together. Browsers? Of course people do use lots of different browsers. The main browsers, if you ignore all the various versions, are Firefox with 44.7%, (shudder) MSIE with 17.7% and Mozilla with 14.6%. Konqueror is far behind with only about 8.5%, other browsers like Opera (3.4%) and Epiphany (1.5%) are even less used. One browser identification is interesting, namely Debian APT, which seems to be the “Fetch Changelog” function of aptitude. It generated about 200k hits (0.1%). Next point - from where do we get most people to our site? That are people not having any kind of referer information, 65%. The second place here goes to - yes, direct links from various people. Of course our search interface has most hits here, the rest is from some 80k different pages linking to us. Most of those seem to be upstream pages telling their users where to get a Debian package from (most are named something that fits “/software/download” or “is like sf/freshmeat” schema). Interestingly the links the BTS provides in their package overview going to packages.debian.org aren’t used all that much. Only about 30k hits in the whole year 2007 with the BTS as referrer. Only after all those individual links we have search engines giving us hits. That may be partly due to the fact that we did use robots.txt to block them (at least those that are good net citizens) for a long time from indexing our site. Final words: YES, I do know that the stats are likely to be wrong in any size you want them to be wrong. Yes, one cant really trust the User-Agent string, its too easy to change it. Yes, its easy to filter out referer, etc, etc, etc, but IMO its still nice to look at such things, it gives at least a little feeling for what we do burn all those CPU cycles. These stats are based on about 4.5GB of compressed apache logs from the last few months, it took some 14 hours to process the logfiles. Luckily future updates now happen once an hour and take only a minute or two… Ohh, you say Joeys meme was about mail stats? Damn. Ok, short text: 305k mails rejected in the last 7 days while we allowed 1097 mails to pass. For the yearly overview that means some 9.3million rejected and 73k accepted mails (that rate should get better, decreasing the accepted count, with the new etch setup we have now). Of course this isn’t as impressing as lists.debian.org mailstats are. :)

Steve Kemp: I should be so lucky

Recently the topic of spam on the Debian lists was revisited. I laugh at somebody who recieves 200 spam messages a day. Here's my stats for yesterday:
                                          Total Mails    : 6399
                                          Total SPAM     : 6077
                                          Total Accepted : 322
                                          Spam Percentage: 94.97%
That's 6077 mails rejected at SMTP time via my filters, and only 322 mails accepted. The breakdown of the spam rejected looks like this:
                                  Plugin      Count
--------------------------------------------------------------
                                   dnsbl       3755
                             hosts_allow        724
                             greylisting        661
                       check_earlytalker        303
                          check_spamhelo        238
             require_resolvable_fromhost        219
                           virus::clamav         79
                         check_badrcptto         75
                       check_badmailfrom         23
--------------------------------------------------------------

6 September 2007

Mark Brown: How many Debian users?

Some people at DebConf 7 were (like Mario) wondering how many users Debian has. They realised that while we have a distributed mirror network we do have all installed systems use security.debian.org by default and we do have control over that. Since apt will only download files when they have been changed we can make a minimal estimate by looking at the number of downloads of the release files while they remain unchanged. Obviously, this will only be a minimum - for example, some users won’t have network access, some users will use caching proxies or local mirrors - but it’s a start. Unfortunately I can’t actually remember the numbers they came up with but perhaps someone could enlighten us.

Mario Iseli: Call for Debian stats

Hello World :-) While reading planet.ubuntu.com I notified especially the post from Christer Edwards, “Call for Ubuntu stats”. Especially the following two questions seem very interesting to me: Does anyone have an idea? I don’t see a way how we can calculate that, the mirrors are decentral, Debian doesn’t force it’s user to register somewhere. Nevertheless, some numbers (no matter if really precise) would be very interesting. Please send comments or get in contact with me by E-Mail. Thanks and regards,

29 August 2007

Russell Coker: The Silly BMW 745h

BMW has released a new prototype hydrogen powered car. The bmwworld.com web page about it claims the cruising range is 190 miles. Added to the 400-mile range of the normal fuel tank, the 745h can go 600 miles between fill-ups. The first issue is that 10 miles are not accounted for (maybe it finishes the 190 miles of hydrogen power at the top of a hill). But more seriously the hydrogen needed to drive for 190 miles would take as much space as petrol needed to drive for 646 miles (hydrogen needs 3.4* the volume to store an equivalent amount of energy). I wonder if that BMW has any space left in the boot/trunk? Now we have some green bloggers praising BMW. An internal combustion engine that burns hydrogen will not give no emissions other than water vapour, it will produce some nitrogen oxides. The processes to produce hydrogen for fuel all consume unreasonable amounts of energy (more than is required to charge a plug-in hybrid). BMW demonstrates their level of interest by giving the cars to some celebrities. This gets some PR but no analysis of the performance. They also introduce the prototype based on one of the most expensive models (the 745) which you almost never see on the roads. If they produced a 318 or 520 that ran on hydrogen it would demonstrate some level of interest in getting this working for the mass market. If BMW wanted to make their cars more environmentally friendly they would start by adopting some of the technology from the Prius. Rumour has it that part of Toyota’s plan to make money from Prius development is in licensing the technology that they patent. A couple of years ago I test drove a BMW 316 and a Prius. The Prius was very quiet and gave a smooth ride (you might call these luxury features), and also gave decent performance (it’s widely regarded that luxury cars should perform well - pity the BMW 316 is a slug). In Australia the concept of “badge engineering” of cars is well established. When government subsidies favoured large manufacturing runs the Ford Laser and Mazda 323 were essentially the same car. Maybe BMW could adopt this concept and sell a re-badged Prius i-tech with a few extra luxury features as a BMW 4 series (it’s a much better car than the 3 series BMW). Finally bmwworld.com has an amusing FAQ about hydrogen power, here are some of the mistakes that they make:
  1. They say “About 45 billion kilograms (50 million tons) [of hydrogen] is produced every year enough hydrogen to fuel 250 million fuel cell cars“, but only if the average fuel-cell car uses 180Kg of fuel per year. According to Wikipedia hydrogen has slightly more than 3* the energy density per mass than petrol, so 180Kg of fuel would be equivalent to 540L of petrol per year. The Australian Bureau of Statistics states that in 1996 the average annual distance travelled by car (it’s not clear whether this is per car or per person) was 14,600Km while among the countries listed the lowest was Japan with 10,130. When efficiently using hydrogen in a Prius (that is quoted as using 5.4L of petrol per 100Km) you might expect that 540/5.4*100=10,000Km could be travelled on the 180Kg of hydrogen. So the FAQ claim that 250M cars could be powered by the current hydrogen production would only apply if the cars are of Prius efficiency and driven the typical distances of Japanese drivers, or the cars were 46% more efficient than the Prius and driven in the Australian manner. Of course in the US things are even worse with 17,862Km being the average distance driven which means that their hypothetical fuel-cell car would need to be 78% more efficient than a Prius.

  2. They state that “the majority of merchant hydrogen is produced by a process called steam methane reforming“. Why not just run cars on methane then? Anything that burns can be used to fuel cars, and methane has a much higher boiling point than hydrogen so it would be easier to store and transport (see the Wikipedia page on methane).

  3. In regard to hydrogen production they say “about 95% of the total global hydrogen production is captive meaning it is used at the site where it is produced“, that is of course because it’s difficult and expensive to transport hydrogen.

  4. The final amusing fact is that it is noted that most hydrogen comes from fossil-fuels. What problem are they trying to solve here? Hydrogen isn’t going to help the environment if it comes from fossil fuels, it will be more expensive than other fuels. Apart from getting government grant money for BMW it doesn’t seem to do any good.

26 August 2007

Russell Coker: Solar Hot Water - Not Expensive

The Australian has a new Environment writer named Matthew Warren who has a history of doing PR work for the coal industry. This has the potential for insightful articles based on knowledge of what the industry is doing or for PR work for the coal industry masquerading as journalism. Unfortunately it seems like the latter is what we are getting. Matthew’s latest effort is an article claiming a $6.5 billion cost to home-owners because of an “effective ban” on electric hot water systems that Labor might impose. Unfortunately he doesn’t clearly state what an effective ban is, but does note that apartments are exempt. The specific claim that is used as the basis for the article is that solar hot-water systems cost $2,800 more than electric systems, and that after the solar hot-water rebate ($1,000) the additional cost would be $650,000,000 per annum, and that a period of 10 years would be required to replace all hot-water systems thus giving a cost of $6,500,000,000. So I presume that he expects that there would be 650,000,000/1,800 hot water systems installed per year which would be about 361,111. According to the Australian Bureau of Statistics there were 6,744,800 households in Australia in 2003. Matthew’s article states that about 40% of homes can have gas hot-water systems fitted that comply with the proposed new regulations, given that and the exemption for apartment buildings let’s assume for the sake of discussion that 50% of homes would require a solar hot-water system. Assuming that each household has a separate hot-water system that means that for these claims to hole we need an average expected lifetime for a hot water system of 6,744,800/2/361,111 = about 9.3 years. If the currently installed hot-water systems are expected to be replaced in 9.3 years then we can expect that hot water systems tend to survive for an average of about 18.6 years. I wonder if that number is correct (some google searching didn’t turn up an answer). One of the disadvantages of old-fashioned media is that they tend not to include calculations or cite sources adequately so we can’t easily verify or disprove their claims, I wonder if this is deliberate… Matthew admits that using a solar hot water system can be expected to save households $300 per annum in electricity expenses, I presume that this is based on current energy prices and that the savings can therefore be expected to increase as energy prices increase (we have a lack of water which is increasing the cost of producing electricity from coal). Let’s assume for the sake of discussion that the typical home-owner has a mortgage, the Commonwealth Bank is currently advertising mortgages with a rate of just over 8%, the way things work is that there are various criteria for getting a discount rate which most borrowers can meet so the result will be slightly below 8%. If a solar hot water system costs $1,800 extra to install and the money comes from a mortgage then every year it will cost the home owner about 8% of $1,800 which is about $144 (a saving of $156 per annum). If the solar hot water system saves the home owner $300 per annum then at any interest rate below 300/1800 (16.66%) they will make money. If there was no government subsidy and the entire $2,800 extra was paid by the home owner then at 8% interest it will cost $224 per annum (a saving of $76 per annum) and the interest rate would need to increase to 300/2800 = 10.7% to make it break even. So for solar hot water to not save the home-owner money we need to have a significant increase in interest rates (which incidentally would bankrupt many home owners), AND to have electricity prices remain the same (which would require even more of our tax money to be spent on supporting the coal industry). Finally Matthew complains that the solar hot-water rebate could cost the government $4 billion over the course of the scheme (the next 10 years). This sounds like a lot of money until you think about the 9 billion dollars a year that the government spends on subsidies for the coal, oil, and gas industries! On the current course the government would spend 90 billion dollars of our tax money subsidising polluting industries that cause climate change, but Matthew opposes spending 4 billion subsidising technology that prevents pollution and reduces climate change.

25 August 2007

Lior Kaplan: Bug triaging on various packages

In the end of the my last post, I’ve offered to package maintainers who need help with bug triaging to contact me. While no mails arrived, I decided to take a more active approach. Baruch Even referred me to “Status of Maintainer’s packages, ports and bugs“, from which I could find quite easily the maintainers who have a lot of bugs. After a few manual processing and checks, an offer of help mail was sent to the maintainers of openssh, cvs, grub, cupsys, apt, dpkg, bind9, postfix, util-linux, file, xmms, wine, xorg, xorg-server, xterm, iceweasel, aptitude and emacs21. Although only a few answered the mail, I think I got enough “work” to do. I’ve agreed about the goals for a bug triage for aptitude and ice weasl,dove,ape with their maintainers. I’m pleased with the openoffice.org triage method I used, although I got some comments and suggestions from people which I’d like to apply. I’ll try to use some of Ana Guerrero’s scripts for this end. Wish my luck (:

17 August 2007

Erich Schubert: Skype problems aren't solved, but just worked around?

Skype seems slowly to recover from yesterdays blackout.However, it doesn't look to me as if they've actually solved the problem. I assume they've just added a workaround (e.g. maybe using DNS to locate good servers?) that help recovering. At least when enough people download the new version.If you look at the graphs at Njanjan.to and 85qm.de, then they still look far from healthy.I'm not talking about the mere numbers - Skype reports about 3 Million users connected, which would mean 1 out of 3 regular users is back. But I'm talking about the shape of the curve. During regular operations, the curve used to be smooth. Which is easy to explain: by some million users going online and offline indepentenly, it all smoothens out. The curve goes up when people start working in a densely populated area and goes down when they go to bed. But if you look at the graphs for the past few hours parts of the Skype P2P network still appear to get disconnected and reconnected. They cerainly didn't flip a switch and people could connect again. The service still appears to be going up and down.To me, that indicates that they actually didn't solve the problem, but just found a way to make the problems not take down the whole network, while parts still drop off now and then.Just my guesses, though. And Skype will not tell the truth either, you bet. (You might want to skim over the presentation "Silver Needle In The Skype" [PDF], about the inner workings of Skype, their obfuscation technologies and how far they go at hiding what their software is actually doing)P.S. I've read in a blog that Skype might right now only allow one connection per IP. That would even more support the rumors that they're actually trying to defend against an attack on their network (and using the IP limit to slow down the attacks?)P.P.S. Another interesting note: the Skype stats on the Skype website report 5.5 Million connected users - my Skype client reports 3.7 Million. Which number is correct?

16 August 2007

Julien Danjou: Debian archive rebuild for nostrip finished

rebuildd BD So after rebuilding the whole archive with octave and rebuildd during 8 days, here are the results. Some stats: Direct side effect: a lot of packages updated with more fixes thans the nostrip ones: triggering a rebuild is also triggering DD's work. ;-) I'll do a rebuild in some weeks to check if fixed packages are really fixed and to rebuild packages that FTBFS and wil be fixed at that time. And thanks to Mike Hommey for this idea.

10 August 2007

Russell Coker: Microsoft Hires University Drop-Out for Recruiting Campaign

news.com.au reports that MS has hired former Miss Australia Erin McNaught to sex up the computer industry’s geeky image and describes her as a “University Drop-Out” (later in the article it’s revealed that she deferred her course so she might end up completing it). Hiring her is supposed to demonstrate that IT careers have “gone from geek to chic”. There are lots of more professional ways of demonstrating that idea. One way is to compare the median income of IT people ($54,422 according to payscale.com) to the median for the Australian population ($13,200 to $20,000 for females and $31,200 to $41,600 for males in 2006 according to the ABS) which clearly indicates that IT people get paid more than most Australians. Another way is to use adverts such as the Apple adverts for Mac vs PC, and Novell adverts for Linux vs Mac vs PC. Note how the female Linux character in the Novell adverts is cool and cute while still keeping all her clothes on. Yet another possibility would be to find some cute female MS employees and get them to do the promotion. MS is one of the largest IT companies in the world and has a large presence in Australia, surely they have enough female employees that they can find someone to do this promotion who isn’t famous for wearing a bikini! Hiring a model who is famous for swim-suit work to promote the computer industry isn’t going to affect the career choices of any but the least talented male students and if anything will scare off female students (who are already under-represented in the computer industry). The fact that the news.com.au story included a set of pictures of hew in swim-suits and lingerie with the title Erin McNaughty really says it all. It seems to me that Danni Ashe (wikipedia link) is better qualified for the MS job - after all she has even been recognised by the Guinness book of records for her work in sexing up the computer industry. Unlike Erin she has created web sites herself and started a very successful online business. Surely if being famous for wearing bikinis makes Erin suitable then being famous for wearing no clothes at all makes Danni even more suitable! :-# But seriously, has anyone ever hired the Chippendales (wikipedia) to advertise in the computer industry? There is a reason why that sort of thing doesn’t happen, and the same reason would apply to hiring an ex miss-Australia. Updated to fix a bad link.

6 August 2007

Russell Coker: Housing Prices

The Sydney Morning Herald has an article about pre-fabricated houses from Ikea and suggests that they could solve the housing price problems. The article states that in the UK the pre-fab houses would be more than 25% cheaper than regular houses in the UK. Let’s assume for the sake of discussion that the introduction of Ikea pre-fabricated houses in the Australian market (which they currently don’t plan to do) will reduce house prices by 25%. This won’t solve the problem. According to the Australian Bureau of Statistics in 2006 the median income for males was $600-799 and for females was $250-399. A couple who are both at the high-end of that scale would gross $1200 per week, this would possibly allow them to pay $1600 per month towards a mortgage, if they were in the middle of that scale then they would gross $1000 per week which might allow paying $1000 per month towards a mortgage. With current interest rates that would make any mortgage greater than $200K unreasonably difficult for a couple at the high end of the median income range to repay and a mortgage greater than $120K would be unreasonably difficult for a couple in the middle of the range. The ABS median house prices show that the cheapest places to buy houses in 2005 were Adelaide, Hobart, and Darwin with median prices of $208K, $209K, and $216K respectively. So a couple who are both at the high end of the median income range can only afford to buy a house in the three cheapest cities in Australia (which are also not densly populated). The two largest cities are Sydney and Melbourne which had median house prices of $363K and $300K respectively, they would not be affordable to a couple who are anywhere near the median income - not even with a 25% reduction in price! I believe that people on a median income should be able to afford a median prices house - the majority of Australian families should be able to afford the majority of houses! The above analysis only covers families wanting to purchase a house with two incomes. The “traditional” Australian idea of having the man earn the majority of all the money that is required while his wife looks after the children (which is a bad thing for other reasons) is obviously dead. A man who earns 50% more than the median income will have trouble paying for a house while supporting children if his wife doesn’t also work. It is generally accepted that anyone who doesn’t purchase a house before having children will never own a house. It seems strange that the major political parties talk about wanting to support families and to support “the Aussie battler”, but won’t do anything serious about house prices (which is the most significant issue for such people). Giving a first home owners grant of $7000 (which is less than 3% of the required money). One possible way of alleviating this problem would be to remove Negative Gearing (or at least modifying it to encourage construction rather than buying existing properties). Then the price of properties that are rented out would reflect the rent value instead of being significantly over-priced. Another possibility would be to make public transport more efficient and with a wider scope. The desirability of a location is to a large extent determined by how much time/money/effort is required to get to the centre of the nearest city for work. Making the mass public transport support larger numbers of people (by larger and more frequent trains, trams, and buses), have shorter journeys (by a more frequent service to reduce waiting and express and connecting services where possible), and more routes (by building new train or tram lines every time a new major road is built) would significantly increase the desirability of properties that are further from the centre of cities. That would decrease the market pressure on prices of properties that are a currently 30 minutes or one hour travel from the centre. It would also be a significant benefit if people who currently spend 30 minutes commuting could spend only 20. If public transport was improved and negative gearing was abolished then I expect that there would be increased demand for new houses that are further away from city centres, and that pre-fabricated houses would make a significant difference in the price. But while the majority of the value of a house is contained in the land that it rests on I can’t see that making a difference.

3 August 2007

Russell Coker: Popular Posts

I’ve just reviewed my web stats from last month. Here are what appear to be the most popular posts:
  1. Committing Data to Disk - about how RPM and DPKG don’t use fsync() the way I believe that they should. Surprisingly popular (more than twice as popular as #2), maybe the developers of both RPM forks and dpkg were repeatedly checking for comments.

  2. Terrorism Foolishness - found by StumbleUpon.com and got lots of traffic from there. More than twice as popular as #3.

  3. Prius vs Small Non-Hybrid Car - a little contentious as some Prius owners think I should compare the Prius to a Camry. I will visit a Toyota dealer soon to investigate this matter in more depth. Note that this is a post from June that was one of the most popular reads for July!

  4. Tevion MP4 Player Model M6 - a Review - review of an MP4 player that didn’t satisfy me.

  5. Installing Xen DomU on Debian Etch - from January but still getting read!

  6. A Support Guide to Xen

  7. Buying a Laptop From Another Country

  8. Xen and Heartbeat - another from June.

It seems that most readers of my blog come from Planet Debian. So the above seems like an indication of what people on that planet want to read.

Uwe Hermann: RAID5 + dm-crypt + LVM + ext3 Debian install and benchmarks

OK, so I've setup a RAID5 at home because I'm getting tired of failed disk drives and data losses. Some notes: Some stats from bonnie++ if anybody cares:
Version  1.03       ------Sequential Output------ --Sequential Input- --Random-
                    -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
bonsai           2G 26727  72 39426  19 16690   7 28725  65 34164   7 215.3   0
                    ------Sequential Create------ --------Random Create--------
                    -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                 16 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++
bonsai,2G,26727,72,39426,19,16690,7,28725,65,34164,7,215.3,0,16,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++
(Now, if I only knew what all those figures mean ;-) No, neither the software RAID5, nor the dm-crypt layer nor LVM cause any measurable performance degradation whatsoever (from my subjective feeling). I don't care enough to measure anything. The CPU is idling all the time. Power consumption is rather high (partly due to the mainboard and CPU, but also because of the disks + fans) and the system is pretty loud, which both sucks on the long run. I plan an ultra-silent, ultra-low-power RAID5 with 2.5" disks attached via USB to a (silent, low-power) NSLU2 for later.

27 July 2007

Uwe Hermann: Testing stuff with QEMU - Part 3: Debian GNU/kFreeBSD

Debian GNU/kFreeBSD screenshot 1
Note: This article is part of my Testing stuff with QEMU series.
From the Debian GNU/kFreeBSD port page:
Debian GNU/kFreeBSD is a port that consists of GNU userland using the GNU C library on top of FreeBSD's kernel, coupled with the regular Debian package set.
Q: Why would anybody want to do that?
A: Why not? [1] So, after we have talked about that, let's start:
  1. Install QEMU:
    apt-get install qemu
  2. Download the latest Debian GNU/kFreeBSD installer ISO image (either for i386 or amd64):
    wget http://glibc-bsd.alioth.debian.org/install-cd/kfreebsd-i386/20070313/debian-20070313-kfreebsd-i386-install.iso
  3. Create a QEMU image which will hold the Debian GNU/kFreeBSD (i386) installation:
    qemu-img create -f qcow2 qemu_kfreebsd_i386.img 5G
  4. Boot directly from the ISO image and install Debian into the QEMU image:
    qemu -boot d -cdrom debian-20070313-kfreebsd-i386-install.iso -hda qemu_kfreebsd_i386.img
  5. The FreeBSD installer will now start. For more detailed instructions see the Installing Debian GNU/kFreeBSD manual.
    First you can choose between an "Express" or "Custom" install (I used "Express").
  6. Next you end up in the partitioning tool. Type "a" to use the entire (QEMU) disk for the installation (the disk is called "ad0", not "hda" as on Linux). Type "q" to quit the partitioning tool.
  7. You are now asked which boot manager to use. For QEMU you should use "BootMgr", the default FreeBSD boot manager. If you install on real hardware you can also use GRUB; in that case choose "None" here (see the manual for more information), but note that the installer does not install or configure GRUB for you! You should do that beforehand!
  8. Next up: The disklabel editor. Here you'll create a partition ("slice" in FreeBSD-speak) for the root filesystem and a swap partition.
    Press "c" to create a new slice (will be called "ad0s1"), enter "4GB", choose "FS" (filesystem), and enter "/" for the root filesystem. Per default the UFS2 file system will be used. To create the swap partition, press "c" again, enter "1023MB", and select "swap". The new slice is called "ad0s1b". Press "q" to quit.
  9. Choose "minimal" when asked which distribution to install.
  10. Installation media dialog: select "CD/DVD" and "acd0" (for QEMU's ATAPI/IDE CD-ROM drive).
  11. The installation will now begin, and after a while you're asked to switch to console 3 using ALT-F3. Do it.
  12. You'll have to answer a bunch of questions: geographic area + city you're in (for timezone), whether you want to participate in the Debian popularity contest, whether module-init-tools should load additional drivers (no, so press ENTER three times). The installation will soon be finished.
At the end you must select "No" as you're told to do, then reboot via "Exit Install". You can then shutdown QEMU.
  1. Restart QEMU with the newly installed Debian GNU/kFreeBSD:
    qemu -hda qemu_kfreebsd_i386.img
    Debian GNU/kFreeBSD screenshot 2
  2. Press enter at the FreeBSD boot manager prompt, then login as root (there's no password).
  3. First things first: Set up a root password:
    passwd
  4. Now let's fix networking, update the system and install a bunch of packages:
    nano /etc/network/interfaces
    Yes, there's no vi, not even a symlink to nano! Uncomment the two "ed0" lines ("ed0" is the equivalent to "eth0" on Linux, I guess).
    /etc/init.d/networking restart
    apt-get update && apt-get dist-upgrade
    apt-get install vim xorg icewm xterm
  5. You can fix your console keymap using the kbdcontrol package (just select your keymap from the menu):
    apt-get install kbdcontrol
  6. Finally, let's fix X11 and start it. But first we create a new user, as we don't want to run X11 as root:
    adduser uwe
    vi /etc/X11/xorg.conf
    The mouse device is "/dev/psm0", the protocol "PS/2", and the graphics driver should be "vesa":
  Section "InputDevice"
      Option "Device" "/dev/psm0"
      Option "Protocol" "PS/2"
  [...]
  Section "Device"
      Driver "vesa"
    
  • That's about it. Login as "uwe" (or whatever your username is) and start X11:
    startx
  • Wasn't all that hard, eh? Now, if you've got some spare time, head over to the Debian GNU/kFreeBSD wiki page and help improving this port ;-) You should probably start with reading the PORTING guide. Both kfrebsd-i386 and kfreebsd-amd64 seem to be reasonably stable already (and more than 70% of the whole Debian archive builds fine on these architectures, see kfreebsd-i386_stats and kfreebsd-amd64_stats). I'll quite likely install kfreebsd-amd64 on one of my boxes soonish and start using it, maybe I'll even find some time to fix/patch/port some packages... [1] More elaborate answer(s) and reasons are available in the Debian wiki.

    24 July 2007

    Martin F. Krafft: A user-space filesystem for mail labeling

    I am still looking for a solution that allows me to tag my mails similar to what Gmail offers. Having thought about this for quite a bit now, I can see three solutions, implemented at different levels in the mail flow: as filesystem, patch to the IMAP server (Dovecot), or patch to mutt. Since this post is about the filesystem, I'll concentrate on that, but I'll also touch upon the other two solutions briefly.
    A bit of theory First, let's dig into the theory and requirements for a bit. Instead of sorting mails into folders (one mail can only ever live in one folder), I want to tag my mails, such that a single message can have multiple tags and hence be relevant to multiple categories. If you want to think in terms of folders, then a single message could be attached to multiple folders, e.g. via hard links. This is what Mairix approximates. The problem with this approach is that simple operations, such as deleting a message (removing it from the enclosing folder) or marking it as read (renaming the file) only affect the message in the current folder, not its duplicates/clones in the other folders. So it's best to stay with a single file per message and to associate tags with it. Here, two approaches seem plausible: (a) extracting tags from the individual message files, and (b) storing tags/message pairs in a separate database. I have a gut feeling that (a) is the better approach, especially since the files we're dealing with all have the same format. And in fact, there is a semi-standard header for email messages to store such tags: X-Label. One more paragraph of theory: instead of simple tags, like Gmail provides, I want hierarchical tags, for instance:
    X-Label: Debian::pkg::mdadm
    X-Label: Debian::popcon, PhD::Debian::stats
    
    Hierarchical tags work similar to folders in that any message tagged as Debian::pkg::mdadm also belongs to the Debian::pkg and Debian categories. No rocket science.
    mutt Now it would probably be trivial to hack mutt and add a new layer of I mentioned earlier that this could be implemented in various places, and I'll start at the highest level, with mutt, the mail reader. For quite a while now, mutt provides search operators for the X-Label header, such that you can search or limit your mailbox e.g. like so: ~y \\<PhD::Debian\\> ~y \\<popcon\\>. The problem with this approach is that it reuses existing functionality, which I need on a regular basis: searching and limiting. Furthermore, I think this approach is hackish and brittle and exposes too much of the underlying workings. filters, which would be used in addition to the user-specified limit. On a high-level, the user would set a tag expression, like PhD::Debian ::popcon, and may additionally choose to limit the display of messages to those sent from the debian.org domain: ~f debian.org$. mutt would then assemble the pieces and apply the filter (~y \\<PhD::Debian\\> ~y \\<popcon\\>) ~f debian.org$ to the current view. With a reasonable user interface to specify or pick labels, as well as a simple label editor, this would almost cut the mustard. Thanks to the header_cache patch (which also indexes the X-Label header), mutt fares reasonably well on Maildirs with thousands of messages (well, not always), and binding keys like s (save) and d (delete) to appropriate actions to add and remove labels determined from the destination or the current tags filter, would make mutt a force to be reckoned with.
    Dovecot Unfortunately, implementing this in mutt would mean that I'd be bound to the mail reader forever (and I like to pretend that's not the case, haha!). An alternative would be to implement this on the IMAP server, which already provides IMAP folders which are not necessarily bound to physical, filesystem folders and can intercept all commands that manipulate messages or their status. But while in theory this works fine, it'll break when offline tools, such as offlineimap come into play, as those (need to) instantiate every message they download, which brings us right back to the problem with duplicate/cloned files discussed before.
    A filesystem idea Trying to stay independent of the tools I use, I started playing with the idea of implementing mail message tagging at the filesystem level, using Fuse. The user would run a daemon process against a given Maildir holding all mail (the base store) and export a virtual directory hierarchy in which tags become Maildirs, backed by a cache of X-Label:filename pairs.
    • the root folder contains one Maildir dor every tag present in all messages in the base store.
    • each of those Maildirs, in addition to the new/cur/tmp directories, provides a subdirectory for every tag minus the ones already in the path, recursively. Navigating to /PhD/Debian::pkg would result in a logical-AND query for all messages tagged PhD (and thus PhD::*) and Debian::pkg. I am not sure how to implement OR and NOT queries yet.
    • every Maildir in the entire hierarchy contains the messages satisfying the query inherent in the path.
    • the special directory /INCOMING can be used to write messages to the hierarchy in such a way that the cache gets updated. Alternatively, one could register inotify hooks with the kernel on the base store and let others write to it as usual.
    • the special directory /::UNTAGGED might enumerate all messages without any tags.
    The virtual directory hierarchy should also export the familiar filesystem semantics:
    • creating a file automatically adds the tags encoded in the file's path.
    • copying, linking, and symlinking a file within the hierarchy are all equivalent and cause the tag associated with the destination to be added to the file.
    • copying, linking, and symlinking into the hierarchy should probably result in an error, unless the source is clearly an RFC822 message.
    • mkdir creates a new tag in the cache, but without any files associated with it.
    • rmdir removes tags without any associated files.
    • rm on a file removes a tag from a file. rm -r on a directory removes the associated tag from all files (and the cache).
    • moving files is equivalent to copy-remove, but needs to be atomic.
    Unlike tagfs, which uses an external SQLite database for tags, this filesystem should not use an external database for tags, but rather a run-time cache. That way, tags can be propagated to other machines with IMAP synchronisation tools. Initially, I thought such a fileystem could even be deployed "underneath" the IMAP server, but then we obviously run into the same problems with offline tools as before. Potentially, such a filesystem could be incredibly powerful as it could do its work for any user agent directly dealing with Maildirs (such as mutt), and it could also be used as basis for an IMAP server which is only ever accessed synchronously (in online vs. offline mode). In the latter case, one would have to ensure that filenames don't change across IMAP operations, or use the message IDs instead from the start. But as good as it may sound, getting it to work right will require quite some attention, I think. Especially guaranteeing filesystem atomicity, as required for Maildirs, might be impossible through the Fuse layer.
    The sad end Unfortunately, I don't have the time to implement any of the above, but if I did, I would probably try to patch mutt first, even though such a patch may not make it into the upstream source any time soon. The filesystem idea sounds cooler and cleaner, but it does not yet support OR/NOT queries, and it will be quite a task to implement and debug. On the other hand, dealing with Maildirs of several thousand messages in mutt is a bit of a pain if those Maildirs are being updated externally (e.g. mail is delivered to them). At least the idea is out now. If you are interested and want to work on this, please let me know so that I can link you up with other interested people. And if you have any other input, please let me know. And no, I don't really want to install emacs to read my mail. NP: Dream Theater: Train of Thought Update: I've created a mailing list for public discussion of this topic, so please subscribe if you're interested. Thomas Viemann suggested to use IMAP flags for the task, as these are standardised. However, I see two show-stoppers here: first, I am not sure whether it would be possible to set those flags from procmail on delivery (sieve can supposedly do it, but I consider sieve not adequate for my needs). And second, offline tools, such as offlineimap, which map IMAP folders to filesystem Maildirs, would have exactly the same problem with representing affiliation of a single message with multiple tags. You can read up on the discussion in the archives of the offlineimap mailing list, and soon the new mailtags list. Martin Scholl had the idea to extend dbmail with the concepts of virtual folders (or stored searches). Naturally, as database-backed mail system, it would be trivial and fast to implement, but this approach bears two problems for me: first, it also falls short with respect to offline tools (see above), and second it would require me to replace my entire mail infrastructure. I am not even considering the implications of using a database for mail storage.

    Next.

    Previous.