Search Results: "ghe"

7 December 2006

Roland Mas: Camsync is shaping up

Did I mention a few scripts I'm using to automagically download my digital pictures off the camera and into F-Spot? Yes, I think I did. I probably mentioned a large bunch of largely spaghetti shell-scripts, too. Fearsome. Well, fear no more! I've started a rewrite, a proper one, in Perl. With a configuration file and all. No camera models or file paths hardcoded. Probably faster, too, since I only fork a few gphoto2 processes in total (instead of one for each downloaded picture). Yes, gphoto2. I haven't reimplemented the mass-storage part yet since I mainly use my PTP camera these days. It may happen someday. I decided to call my beginning-of-a-program "Camsync". Then of course I found that this name was already taken for something similar. I'll contact the author of that something and see what happens. In the meantime, all you PTP-only camera owners may want to have a second look at sync-digicams — it's been updated.

John Goerzen: The Climate Crisis

Wow.

We just watched An Inconvenient Truth. Not much in there was new to me, but to see it all presented at once is amazing.

There are vast undisputed scientific facts out there -- for instance, that CO2 content in the atmosphere is higher than it's been ever -- and we can go back 650,000 years. The linkage between that and temperatures is inescapable.

Gore makes a good point: shouldn't we be worried about more than terrorism?

Does the thought of parts of Manhattan, San Francisco, and large parts of Florida going underwater suggest a problem exists?

This really is critical and urgent.

We've already been thinking about it lately as we renovate our house. We're paying a little more now for things like airtight insulation, low-energy lighting, efficient heating. Not only will it save us money in the long run, it will help improve our lives and Jacob's life down the road.

The movie's website is over at climatecrisis.net.

5 December 2006

John Goerzen: Review of VPSLink

Back in June, I wrote about my switch to VPSLink for my virtual private server (VPS) host.

Now it's 6 months later, my initial contract is up, and it's time to consider whether to renew it.

Overall, VPSLink has worked out reasonably well. I have their Link-4 plan, which provides 512MB RAM, 20GB of disk storage, and 500GB of bandwidth for $40/mo (or down to $33/mo if you pay for 12 months in advance).

Reliability and Uptime

VPSLink has been reasonably reliable. I wouldn't say that they have been exceptionally reliable, though.

Some outages:



They have generally responded to support requests in a reasonable amount of time, and support has been approximately as helpful as I'd expect.

Overall, there've been a few issues but, aside from that 8-hour outage in July, nothing especially remarkable.

Automated Tools

VPSLink has a "control panel" where you can reboot, start, or stop your virtual machine. You can see how much bandwidth you've used in a month, your IPs, and billing information.

You can also create support requests and view the status of support requests there. You can also view all correspondence on a given ticket, and add new correspondence to it -- a nice touch that's useful if your email is down because your VPS is down.

The reboot/start/stop facility didn't work during one outage, though.

Resources

The 20GB of disk space is nice to have, though I never used it all. No complaints there.

But the memory setup is rather strange. This may be because VPSLink is using OpenVZ instead of its more popular (and featureful) commercial counterpart Virtuozzo, or something such as Xen.

Those that have used OpenVZ/Virtuozzo know there is a /proc/user_beancounters file in the virtual environment that reports on the limits of resources allocated to your virtual server. VZ lets the server admins regulate the amount of resident RAM, swap, inodes, pending IP connections, amount of virtual RAM, etc, etc. About 3 dozen items in total.

Unlike some companies like JohnCompanies, VPSLink was not willing to make any adjustments to this file for me. For instance, my mail server may need more simultaneous open files than they have by default, but they wouldn't work with me to make reasonable adjustments.

But the larger problem was with regard to RAM. This was particularly annoying. VPSLink does not permit any access to swap, so the 512MB is what you get. But tools like top show the entire memory allocation on the host, and are mostly useless in tracking down your own usage.

You can look at the privvmpages entry in /proc/user_beancounters to get an idea of your current usage, but that's it. There is a script on their wiki that will turn this into a more useful number, but again, it's not the most helpful.

The minute you try to allocate anything past 512MB, your processes start getting killed. According to /proc/user_beancounters, even though my system normally hovers around 70% of that 512MB allocated, I've had 290,567 instances where a process has been refused its request to allocate memory since the last reboot. Such instances usually cause a process to crash.

Other Virtuozzo companies like JohnCompanies will give you "burstable RAM", so if others aren't using their full RAM allocation at the moment that your machine goes over your regular limit, you can go over it to a certain extent. That was very effective at preventing crashes during times of higher than usual memory usage, and I never had trouble with this at JohnCompanies.

I've had a lot of trouble with VPSLink because of these hard, no-exceptions limits. Getting hit by the Google bot at the same time as the MSN bot could raise memory usage enough that processes would start getting killed. Depending on which process it is, it could take down cron, apache, the mail server, whatever. And there is no log of which processes die because of this.

In normal circumstances, this wouldn't pose even a noticeable impact to a server; inactive bits could be swapped out, etc.

I am also suspicious of exactly how OpenVZ calculates memory usage. Since moving to a physical Linux box, my memory usage seems to be much lower than the privvmpages would seem to indicate, even though it's running the exact same code.

So I had some outages on my server that were caused by OpenVZ memory limits, which didn't get listed in the overall outages above.

This problem is the #1 reason I'm leaving VPSLink.

Performance

Overall performance has been acceptable. The CPU speed appears to be reasonable and about as expected.

The disk performance has been more problematic, however. It tends to be rather slow. There have been times when I can type "ls" in a directory with about 10 files and it takes 5-10 seconds to respond. And I wasn't even using "-l".

Now that sort of thing is certainly the exception. But it makes databases -- and websites that rely on databases -- very slow.

The performance measurements over at RealMetrics also show VPSLink as being at the bottom of the pack for disk performance.

Overall

VPSLink is a reasonable value, and if monthly cost is important to you, probably a good choice. Don't expect it to be spotless, though. I would call the overall experience pretty average. Nothing too spectacular in either direction in any respect.

28 November 2006

Matthew Palmer: VLAN adventures

Have you ever had a need for a large number of "real" network interfaces on a Linux box? For security reasons, you don't just want to hook everyone up to a single switch and use virtual interfaces (because it's too easy for one of the connected devices to play silly buggers with his neighbours). Up to a certain point, you can stuff more NICs into a box, and when it fills up you can switch to those outrageously expensive 2- and 4-port NICs. But eventually you're going to run out of space[1] or money. At that point, you need something more interesting. For me, this week, that "more interesting" has been Ethernet VLANs. Linux Journal has a good intro to the technical aspects of how to setup VLANs and Linux. VLANs are some crazy stuff. They're implemented by wrapping a little number around every Ethernet frame indicating which VLAN the packet is "on", and the switch (you need a higher-end device, appropriately configured) makes sure that packets don't roam onto ports they're not meant to be on. For a single switch, this isn't very interesting, and you don't really need an IEEE standard to make it work -- just a lot of little jumpers. However, VLANs are mostly useful on larger networks, which tend to use more than one switch. So you need a way for your VLANs to roam amongst your switches -- hence the packet tagging. You stick the tag onto the packets and fling them off to another switch, and packets coming in with the tag are corraled into their VLAN. Naturally, you don't want end-user devices whacking their own VLAN tags onto packets (untrusted data, and all that), so you define most of your ports as being "untagged". Packets that come in on these ports are treated as regular ethernet frames and tagged with the appropriate VLAN ID, and packets that go out have their VLAN IDs stripped before being sent. (This implies that you can tunnel VLANs in VLANs, and I'm pretty sure that is doable in most switches, modulo some nasty problems that can, and probably will, occur). The ports that aren't designated "untagged" spit out tagged packets -- and this is where my interest lies. Like most every other computer-related standard, Linux can decipher and work with VLAN tags (the 8021q module is what you're looking for). You just load up the module, hook your NIC into the appropriate port on your very expensive switch, define your VLAN tags with vconfig, and suddenly you've got vlanN interfaces, which map to real RJ-45 ports, and you can hang network devices off these and get lots and lots of "real" network interfaces on your Linux router. It's all so simple, right? Nothing ever is, of course. The trials and tribulations I've had over the past two days have included: Thankfully, once all those dramas were done, the whole thing just kind of fell into place, and now I've got a machine which has up to 2048(ish) network interfaces (with huge, glaring caveats on that upper bound, of course). With a bit of luck, the live installation in a couple of days will go smoothly. You can stop sniggering now.
1. In this case, there wasn't a lot of space to begin with, as it's a 1RU box I'm working on, and the 4-port NIC didn't want to place nice with me for some reason anyway.

25 November 2006

Biella Coleman: Play Money by Julian Dibbel

A few months ago I finished Play Money by Julian Dibbel and like his My Tiny Life before it, the writing style is simple yet sumptuous, or I guess just simply sumptuous. Like the travel writings that pre-figured anthropological writing, Dibbel takes us to a far-away exotic land (but only a click or two away) that are populated by a motley crew of wizard (or is lizard)? slayers, gold-diggers, money-makers, and virtual-world-builders. For many, these MMOGsare no strange-lands but are becoming weaved firmly and intimately into the fabric of everyday life, whether as entertainment, sociality, and or for a cadre of folks, as a source of income generation. I think the book has gotten enough coverage that I don’t need to rehearse its content in any detail but the basic story is that Julian embarks on a real world quest in the virtual land of quests to try to make enough money (to be specific make a little more than his monthly salary as a freelance writer) from trading and selling a slew of virtual objects and gold. In taking us along, he gives a compelling entry into the imaginative and morally complex world of these games. And better is that whether you know nothing about them or are a seasoned player, the book has much to offer. One of the reasons I respect Julian Dibbel is because he takes his sweeeet time to churn out a book-length manuscript. In a day and age when there is so much pressure to release quick and often, especially when writing about anything in the so-called virtual plane of existence, he waited nearly 8 years from the publication of his last book on gaming, My Tiny Life before publishing on a considerably higher-tech phenomenon. Following him on his most recent adventure, you learn that he threw himself into a variety of gaming environments persistently and consistently and did at least 3 years of research and writing (at one point in the book he confesses how excruciating writing for him, which is hard to believe as the words slip so nicely off the paper but whatever the extent of his writing angst is, he clearly spends a lot of care in crafting his sentences). And I am starting to think that if more people followed this ethic of long-term immersion, coupled with slow-brewed productive sparsity, we would get higher quality products (Yes, kinda like the Debian release cyclce). Like any good ethnographer, he gives an intimate portrait of life in these worlds of copious play where various types of real world economies have mushroomed apace with new technological developments. That is, he gives us a taste of what it is like, as he cleverly puts it to own unreality. Couched within tales of gaming gone real world economic, are hearty reflections on the place of play in social and economic life, the close resemblance and conceptual affinity between computers and games (and not just computer games, and here he does a fantastic job at explaining the Turing Test), self-doubts about writing in general and in particular about this topic, commodity fetishism, and the changing nature of capitalism in a world of ever-greater abstractions. All of this makes for an enjoyable read that if used in the classroom (which like A Tiny Life, I am sure will become standard for courses on Virtual Worlds) allows you to bring in some good supplemental material whether Edward Castranova’s Synthetic Worlds, Greg Lastowka and Dan Hunter’s The Laws of Virtual Worlds and or older heavy-hitters like Max Weber and Karl Marx. The only topic I think I would have liked to seen included is that of capitalist finance, because there are, I think, some real affinities, phenomenologically and conceptually, between finance capitalism and gaming the virtual game. Otherwise some of my favorite sections were on hackers and the object of the computer, but of course, I am biased that way. So here I leave you with a tasty morsel of something that was sumptuous to ingest: It is this endlessly repeatable collusion of freedom and determinism-the warp and woof of fixed rules and free play, of running code and variable input that sets both games and computers apart, together from the larger universe of information technologies they inhabit…. But only games share the universal machine’s game’s thoroughgoing commitment to the principle of recursion: the chained repetition of simple operations, each building on both the input of the moment and the outcomes of preceding steps. And only games, therefore, come close to capturing that precise mi of unpredictability and inevitability that makes the computer such a powerful simulator of our lived experience of the world. p. 104

23 November 2006

Simon Richter: Aaaaargh

I need to get out of this place. Really, I do not mind a little bit of bureaucracy every now and then, but seriously, if someone asks you whether you have a minute, telling them that the proper way to do this is to look up your consultation hours on the Internet. Most of my experiences with this university are like this. The letter informing me of the tuition fees for next semester begins with "according to 17 of the Bavarian law concerning higher education in conjunction with 2 of the additional regulations on tuition fees, the university collects tuition fees of 500 Euros for the summer semester 2007.". Well, at least they go on promising that the money will be spent enhancing tuition. Honestly. Since this is the only uni in Munich I can attend and I'm not keen on being being cited regulations that prohibit me from taking advanced classes before I did the Java beginner course, I'm looking into other alternatives for getting a degree. Difficulty is that I'm pretty much bound to Munich. Any recommendations?

21 November 2006

Biella Coleman: A spirited debate on the liberal frame of mind

This morning I came across Michael Berube’s response to Jodi Dean’s critique of Berube’s book What’s Liberal about the Liberal Arts?: Classroom Politics and Bias in Higher Education… It is a fascinating interchange worthy of a close read or two but without first-hand knowledge of the book, I hesitate to pledge my allegiance on either side. But I will hopefully to do so. The only thing that surprised me was that there was no mention of the grand master of the critique of liberalism, Stanely Fish… Not sure why but he seems like an obvious place to start. These ppst happened to really captured my attention this morening given I found them after reading the Chronicle of Higher Education piece Input or Intrusion? which examines the recent attacks against scholars deemed as “anti-Israel/pro-Palestine,” including against Nadia Abu El-Haj who happened to be on my dissertation committee… It will be very interesting to see how this all pans out and I am sure many of us are watching closely. And as an added bonus, here is a student’s thoughtful perspective on the Berube book.

19 November 2006

Jos Parrella: Elections in Venezuela

In two weeks (Dec 3rd) there will be presidential elections in Venezuela. This will be the third time where Hugo Chavez, the current President, will be participating in the elections. The first time, in 1998, he won by 62%, then dropped to 59% in 2000 and currently some polls are giving him between 50 and 60 percent of vote intention. Since 1998, we’ve got a very active electoral movement and controversial situations which have raised very diverse opinions about our electoral system. If I recall correctly, in 1998 people voted using optic forms. In that moment, spanish Indra was the company in charge for the machines and most of the technology used in the elections. That was the time where the Supreme Electoral Council depended on the Executive power, i.e., the President. In 1999, Chavez proposed to rewrite the Constitution, and the National Electoral Council became an independent power. This Constitution was approved in two referenda in 1999, where touchscreen machines were used. In 2000, after the new Constitution was approved, new presidential elections were made. The same touchscreen machines were used and we made a transition between Indra and a multinational holding named Smartmatic. In 2004, after two millions and a half of signatures were gathered to recall Chavez presidency, the revocatory referendum was made, using the Smartmatic machines. Almost six million people voted to maintain Chavez in power. Of course, after eight years of the same party in the power, as well as other problems (namely a national strike and a Coup d’Etat in 2002), several ideas arised regarding the legitimacy of the election process.
Today, the National Electoral Council released a flyer in the press, where they try to issue these topics. I must recognize that, being a newbie voter, I was unaware of several of the things they published today. For example, 8 of every 10 venezuelans over 18 are signed for voting in the elections. That’s one of the higher percentages of public awareness about elections in Latin America, higher than, for example, Colombia. That means 16 million people are able to vote, and we’re used to get around 60 percent of participation. We do vote with touchscreen machines, and the results are completely computerized. The military guards all the equipment, and provides security to the randomly elected civilian which work as temporary personnel. Members of every involved party are present in all the election centers, as well as national and international observers. After you’re checked to vote, you have to give your fingerprint in a special biometric device. This is transmitted live, were possible, avoiding two people voting in the same day. After you vote, your finger is marked with silver nitrate, which goes away after two days or so. Of course, you’re only allowed to vote if you don’t have the mark in your fingers. The touchscreen machines prints a paper which you put into the traditional box. After the voting has concluded, more than half of the boxes will be opened and checked against the information in the machine. The boxes subject to this check are randomly selected, as well. A brief thought about the software used in the machines. In 2004 or so, we (the Free Software Community in Venezuela) struggled and made pressure to the National Electoral Council to reveal the code and publish it wide open. This has been achieved until some point, since every interested person or organization is allowed to take a peek at the code. Dozens of organizations have already done so and are impressed by the features that are now present in the code. Before the first vote is registered, the machine prints a zero-vote confirmation, and then subsequently randomizes the order of the votes registered in memory. Only after all the election centers are closed, the machines start transmitting information. This year, three hours past the closing time we’ll have the results. The final and most important, from my point of view, argument held to support our election system is the random queue organization at the election centres. The registry is sorted by ID number, the votes are randomly stored in the memory and the biometric device is used in a per-arrival basis. Therefore, since nobody takes the same time to vote, the queues will be unarranged therefore making it quite difficult to determine a possible vote sequence. This has been certified lately by the European Union, the Organization of American States and other organizations. Whoever wins this election, I’m quite confident about our election system. I just hope that other institutions in our Country start using reliable systems (for example, the national ID office) in order to give at least the feeling of being in a rightful State.

18 November 2006

Riku Voipio: cdbs: empathic maybe

I tried to ask our cats if they felt threatened by CDBS. They didn't seem really worried.

I'm not sure if it is entirely fair to blame CDBS for complex packaging issues. If CDBS was not available, more maintainers would just cook up their own spaghetti packaging scripts. The balance needs to be somewhere between "everyone reinventing the wheel" and "frameworks that are harder to use than the raw stuff". Currently I would recommend only using CDBS for simple packages.

7 November 2006

Steve Langasek: alpha day

As a matter of principle, I try to avoid any conflict of interest between my release manager and alpha porter hats, by e.g. deferring to my co-RM when there's a question of whether a particular compromise should be made to benefit alpha's releasability. Where Dunc Tank is concerned, that means some changes in priorities for bugs to work on, since I'm being paid to try to get etch out in a timely manner, not to keep the alpha port afloat. OTOH, alpha is not the only arch that produces RC bugs needing release team attention, and Dunc Tank only dictates how I spend 40-50 hours of my week -- which means another 20-30 hours a week of Debian work that I can set my own priorities for, right? So the theme ingredient over the weekend was: problems on the alpha port. I'll give myself 4/5 points for presentation, 5/5 points for use of the theme ingredient, and 6/10 points for taste (this plastic computer case needs more salt). And of course, waiting for Debian kernel packages to compile on an LX164 alpha gives one time to do other things too, like following through on the RC bugs that the BTS has wrong version-tracking information for, and preparing an NMU here and there. Less than 200 RC bugs left now, and dropping daily!

5 November 2006

Ben Armstrong: Mythgame player to run native Linux games

I recently started to be aware of a problem in our family. Ever since we configured Mythgame to run Xmame games, we started to ignore native Linux games. This is a shame, because often the quality of such games is much higher, and besides, they are open source, which I strongly believe in. I looked around for help configuring Mythgame to run Linux games, and was unable to find a way to make a game player that would play any Linux game. So I devised the following solution: Step 1: Set up directories for pseudo-roms, command switches and snapshots

mkdir /usr/share/games/roms
mkdir /usr/share/games/switches
mkdir /usr/share/games/snaps

Step 2: Define a player in Mythgame

Player name: Linux
Type: OTHER
Command: %s  cat \ dirname %s\ /../switches/\ basename %s\ 
Rom Path: /usr/share/games/roms
ScreenShots: /usr/share/games/snaps

Step 3: Populate the directories with data

cd /usr/share/games/roms
ln -s /usr/games/oolite
ln -s /usr/games/starvoyager
cd /usr/share/games/snaps
cp ~synrg/snaps/oolite.png .
cp ~synrg/snaps/starvoyager.png .
cd /usr/share/games/switches
touch oolite
echo "-f" >starvoyager

Step 4: In Mythgame, “Scan for Games” Step 5: Play!

1 November 2006

Paul van Tilburg: Debian Ruby Extras Etch To Do

During the past weeks I’ve been drawing up a list with things to be done for the Etch release concerning my work for the Debian/Ruby Extras team. I think it is quite complete now. I hope my fellow team members can help me accomplish these goals: I think the first two items are as good as taken care of. However, the last three points need some more attention the next few weeks.

Zak B. Elep: My Kubuntu Edgy Upgrade Experience

…is yes, rather Edgy. Yesterday:
apt-get --download-only dist-upgrade    # grab pkgs at work
apt-get dist-upgrade                    # go home and do the dist-upgrade
apt-get dselect-upgrade                 # WTF?!? I had a lot of held-back pkgs?!?
                                        # Seems dselect-upgrade is more aggressive...
apt-get install xserver-xorg            # Funny apt-get tried to sneak away
                                        # my xserver-xorg (I lost it after dist-upgrade)
aptitude dist-upgrade                   # Hmmm, perhaps even better than
                                        # dselect-upgrade...
Today: (I ran out of Smart 3G prepaid credits last night :/)
apt-get update                  # Hmmm, apt's rather verbose lately
                                # with locales and stuff
apt-get install kubuntu-desktop # Heh, somehow I figured that was missing...
After all this, I seem to have a completely-upgraded Kubuntu system now (verified by doing dist-,dselect-, upgrade again,) despite the lack of a proper updating tool for Kubuntu (Ubuntu has its own Update Manager.) Still, FWIW I had to go through some hoops along the way (like all those multiple dist-upgrade invocations; I’ve done that before (twice) on the Breezy -> Dapper path, but thrice on Dapper -> Edgy? Just, wow…) but I got to learn some new stuff too (like pairing perlis and elric (my new 3G phone) via Bluetooth on the console. However, if I was in a hurry, I would have just e2mkfs‘d my partitions and started over. But then again, would I have had to move from Dapper to Edgy if I wanted to do that install dance all over again? Granted, the upgrade process needs some improvement: either elevate dist-upgrade’ capabilities to an even higher, godlike status, or make use of a different upgrader (dselect and aptitude does seem to have the upper edge’ compared to apt-get…) I guess there’s still some advantage of me not following the Edgy development process too closely (SoC, getting a new job, and school makes such a busy mix ;) but I’d love to jump back again in Feisty, now that I do have the means to follow development more closely. Update: Looks like the dist-upgrades corrupted my swap partition, preventing me to do hibernates. A mkswap, followed by the subsequent edit in /etc/fstab and a reboot, fixed that. Update 2: Seems hibernate still doesn’t work (although suspend to RAM works absolutely fine.) A look of the resume process seems to show similarities between this bug, but I’ve yet to confirm.

30 October 2006

MJ Ray: The Dunc-Tank: miscalculations and misdescriptions

Wouter Verhelst replies again:
"With all due respect, but I can't shake myself free of the feeling that you're being intentionally obnoxious here." "When I said "[...] these people never had to run a business", that wasn't intended to say that people who run a business "have" to do so, for lack of anything else. I mean, sure, there's choice, but that doesn't mean you can make this choice every day. Does the word "expression" mean anything to you?" "Additionally, the numbers I gave were meant to give people a general idea; while they're roughly accurate for my case, they certainly aren't completely correct in the general case, and were never meant to be." "Please stop putting whatever I say under the microscope like that, thank you very much."
I didn't need a microscope to spot the cracks in those numbers - our right-wing news media repeatedly points out that it's cheaper to do business in the US and casual web browsing finds figures. As I asked elsewhere, the general idea that net pay is less than the bill to the customer is widely known, so why use a detailed breakdown with higher figures to advocate US$6k? If the point is just "the 6k isn't net pay" then just write that. Personally, I think that point is mostly irrelevant, but the misleading breakdown looked like the sort of thing that dunc-tank should be publishing and isn't. As for "these people have never had to run a business" - yes, it's an expression, but it suggests a compulsion which doesn't exist - why use it? If the point is just "these people have never run a business" then just write that. It's shorter and more honest, although probably wrong: you don't need to have run a business to know that the bill to customer isn't the worker's net pay. I can think of many, many possible reasons for misdescribing something that some people choose to do as something they had to do, but I can't think of one I like. At worst, it's insulting to people who don't do their own business administration. "With all due respect" maybe I am being "intentionally obnoxious" about the breakdown and misleading phrasings: I want to discourage people who post comments without any obvious attempt to get their facts straight, or who exaggerate. Both of those take us away from discussing more basic points like: dunc-tank's execution has damaged debian; and dunc-tank is buying from neither an open market nor an openly regulated one.

Ian Murdock: Work Offline : What s the point?

I’ve long wondered what the point of the “Work Offline” option in Firefox is (it’s in the “File” menu). All it really seems to do is take you to a helpful (cough) error screen when you’re working offline that tells you you can’t view the page you’re trying to view till you’re online again. If the page is in the cache, it’ll display it, but that seems to happen only rarely. I jacked my cache up to 4GB, but much to my surprise, that doesn’t appear to result in a noticeably higher cache hit rate. IE has a similar option, but it actually does something. In fact, it’s quite slick. When you add a page as a favorite, you’re given a “Make available offline” option. Once that option is selected, you can click “Customize…”, which launches a wizard that allows you to mark other pages the favorite links to as available offline as well (useful for sites like Slashdot that primarily link to other sites). You can also specify when the page(s) should be synchronized (manually or on a predefined schedule, such as every day at 5am). The Blackberry browser has a similar option too, though I haven’t used it much (most of my offline time tends to be on airplanes, and I’d much rather view the web on my laptop). The Blackberry does have a neat feature IE doesn’t have though, which is if you try to load a page that isn’t available offline, it’ll offer to queue up the request and download it once you’re online again. As with everything on the Blackberry, the page will show up in the universal inbox along with email, SMS, missed calls, etc. No more trying to remember what pages you wanted to load when you were offline or resorting to tricks only a hacker could love. Imagining a feature like this integrated with a Gmail/Google Reader combo that supports offline operation makes my mouth water. As I said in the opening paragraph, I’ve been thinking about this for a long time, but I’ve never actually gotten around to writing about it. What inspired me to do that today? Scrybe, an amazing online productivity suite that has a variety of unique and killer features, including excellent use of AJAX to preserve context as you move around within the application, a novel approach to scheduling across timezones, full integration between the calendar and to-do lists (why don’t more calendar applications do this?), and more. Watch the video for yourself. The most interesting feature from my point of view, though, is the offline support: Simply select “Work Offline”, and everything works, well, offline, no browser extension required. It even appears that changes will be synchronized when you’re online again (i.e., it’s not just a read only copy). The beta isn’t publicly available yet, but I can’t wait to see how they did this. My prediction: If this works as well as it looks, all web applications will eventually work this way. And it’s good to see that some companies are thinking about the offline problem, rather than just assuming ubiquitous Internet connectivity makes the problem go away in the very near future.

MJ Ray: Business: Taxes and Employment

I've written a little lately on the Dunc-Tank (a project to pay some key debian post-holders) and it's drawn some comments about running a business. I've owned businesses for years and there's a lot I don't know, but I've been frankly shocked by some of the comments. Here's two more. I wrote:
Double-taxation seems like something a good accountant should help to avoid - not heard of it being a significant problem often;
Today, I read a comment from Joe Buck:
"Self-employed people or contractors have to pay double Social Security taxes in the US. That's because, for salaried workers, the worker pays half and the employer pays half." "This is one factor contributing to why anyone considering leaving regular work and setting up shop as a contractor in the US needs to bill 2x their regularly hourly salary to wind up with the same standard of living. In addition to higher taxes, there's time between contracts, no paid time off, etc."
That's not double taxes. That's one tax split between two parties. Half plus half is one, not double. If the two parties (employer and employee) are the same (as in self-employment), you're still only paying the one tax. If the business is run half-decent, that tax will be figured into the cost of the worker, even if it's not in their posted gross salary. If the employer part is not widely known, that sounds like government slyness to me. Double-taxation is paying the same tax twice, not paying one tax split between employer and employee. By the way, I'm slightly surprised US contractors need to bill 2*gross. When taking on new contract staff at a UK university, I think the cost was estimated at 1.6*gross, and I think I've already mentioned that the cost for a UK SME seems to be about 1.5*gross. We're told that the US taxes less, so maybe work is much rarer there, or something. Which brings me to when I wrote:
I think running a business is a choice, not something anyone ever "had to" do.
to which Scott Robinson replied:
"That is certainly an odd perspective wrt. the choice of becoming an entrepreneur. Have you only lived in places where employment is guaranteed?"
As far as I know, I've never lived in a place with no jobs at all. Sometimes the jobs are crap and sometimes the terms for joining an existing business are crap (so in my opinion, they might as well not exist), but if you didn't want to run a business, you could avoid it. These are all things you weigh up when making your choice whether or not to run a business. Is there anywhere which forces workers to run businesses?

28 October 2006

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.

24 October 2006

Ian Murdock: LSB Developer Network launched

Last week, the Free Standards Group launched the LSB Developer Network, a community resource for developers building portable Linux applications via the LSB (read the press release and the introduction from LDN editor Martin Streicher). The LSB Developer Network (or LDN for short) aims to provide a well known starting point for developers looking to target the variety of Linux distributions available today without requiring a separate version for each distribution. It is the perfect complement to the LSB, which already provides a “highest common denominator” across the major distributions; and LSB Certification, which allows ISVs to indicate that their products will work with LSB Certified distributions. The big themes of LDN are “decentralized” and “bottom up”—to paraphrase Darrin Thompson, it’s a developer network that’s actually a network. In other words, we’re not taking the usual path of hiring a bunch of people to construct a centralized “network” from the top down—after all, Linux is a fundamentally decentralized phenomenon so shouldn’t a developer network for Linux be decentralized as well? Like the LSB, we see LDN as essential to the ultimate success of the Linux platform, an answer to similar programs for the centralized, proprietary platforms Linux competes with but built using the very techniques that make Linux what it is. Our fundamental belief is that “decentralized” doesn’t have to mean “fragmented”, and LSB and LDN are both key steps toward that end goal. We’re off to a good start too: LDN has the backing of a broad range of Linux platform stakeholders ranging from distribution vendors (Novell, Red Hat, Ubuntu) to OEMs (HP, IBM) and ISVs (MySQL, RealNetworks) to tools and content providers (O’Reilly, SlickEdit). One upcoming feature I’m particularly excited about is the integration of Safari Books Online. Soon, you’ll be able to type, for example, a function name into the LDN search box and get not just results from the link directory but also results from O’Reilly titles and others you know and love. We’re moving rapidly to add community content as well, including man pages and canonical reference documentation; and we’ll be hooking LDN into the LSB database, so you’ll be able to query the status of interfaces too, including whether or not those interfaces are in the LSB and what their status is in each of the major Linux distributions, to help make your applications as portable as possible. If you’re a Linux developer, and particularly if you use del.icio.us to bookmark resources on the web related to software development on Linux, I urge you to contribute to the LSB Developer Network. It’s easy: Simply create an account and link your account to your del.icio.us account (you don’t need to provide your del.icio.us password, just your username), and as you bookmark, tag, and annotate pages, your bookmarks, tags, and annotations will be pulled into the LDN directory. Help us build a developer network for Linux, bottom-up style!

21 October 2006

Jurij Smakov: Useful geek tips

For a while I’ve been looking for something to put under my laptop when using it on the couch or bed (it has vents on the bottom and runs pretty hot). I don’t have any large books, and the original idea to buy a cutting board for this purpose has failed spectacularly. All boards I could find in the nearby stores were either too small, or priced way higher than I was willing to pay. Determined to resolve this fundamental problem, I visited a local Home Depot today, and found an excellent solution: a 1′x1′ marble tile. It works beautifully, and is much more aesthetically pleasing than anything else I could come up with.

Andreas Schuldei: Lazyweb: notebooks

This is the reverse lazyweb: I want to share what I learned, since many have similar considerations.

Some time ago I started to use the c't hotline to inform myself before buying computer stuff. Currently I am looking for a new notebook, since my wife poured tea into her old one and the keyboard stopped working.

So today I talked with one of the notebook experts at c't. My criteria were: "small", "long battery lifetime", "reliable", "good warranty", "excellent keyboard" and "works well with Linux".

He recommended that I should look at business notebooks as they came usually in higher quality and with better warranty. He pointed out a downward trend at Lenovo, which seems to produce lower quality machines nower days. Both warranty and technology seem to get reduced in quality. Asus machines break more often then average and their repair/warranty service is bad and improves only slowly. Dell machines break more frequently but their service is good. Linux compatibility seems good at Fujitsu-Siemens notebooks, which seems to have good service/warranty, too. Keyboards have improved a lot over the last few years and he encountered no bad keyboard at any decently priced notebook nower days.

I remember that joeyh and fabbe independently from each other picked a Fujitsu-Siemens. I will look into their offerings now.

Next.

Previous.