Search Results: "ghe"

15 April 2007

Russell Coker: failure probability and clusters

When running a high-availability cluster of two nodes it will generally be configured such that if one node fails then the other runs. Some common operation (such as accessing a shared storage device or pinging a router) will be used by the surviving node to determine that the other node is dead and that it's not merely a networking problem. Therefore if you lose one node then the system keeps operating until you lose another.

When you run a three-node cluster the general configuration is that a majority of nodes is required. So if the cluster is partitioned then one node on it's own will shut down all services while two nodes that can talk to each other will continue operating as normal. This means that to lose the cluster you need to lose all inter-node communication or have two nodes fail.

If the probability of a node surviving for the time interval required to repair a node that's already died is N (where N is a number between 0 and 1 - 1 means 100% chance of success and 0 means it is certain to fail) then for a two node cluster the probability of the second node surviving long enough for a dead node to be fixed is N. For a three node cluster the probability that both the surviving two nodes will survive is N^2. This is significantly less, therefore a three node cluster is more likely to experience a critical second failure than a two node cluster.

For a four node cluster you need three active nodes to have quorum. Therefore the probability that a second node won't fail is N^3 - even worse again!

For a five node cluster you can lose two nodes without losing the cluster. If you have already lost a node the probability that you won't lose another two is N^4+(1-N)*N^3*4. As long as N is greater than 0.8 the probability of keeping three nodes out of four is greater than the probability of a single node not failing.

To see the probabilities of four and five node clusters experiencing a catastrophic failure after one node has died run the following shell script for different values of N (0.9 and 0.99 are reasonable values to try). You might hope that the probability of a second node remaining online while the first node is being repaired is significantly higher than 0.9, however when you consider that the first node's failure might have been partially caused by the ambient temperature, power supply problems, vibration, or other factors that affect multiple nodes I don't think it's impossible for the probability to be as low as 0.9.
echo $N^4+\(1-$N\)*$N^3*4 bc -l ; echo $N^3   bc -l
So it seems that if reliability is your aim in having a cluster then your options are two nodes (if you can be certain of avoiding split-brain) or five nodes. Six nodes is not a good option as the probability of losing three nodes out of six is greater than the probability of losing three nodes out of five. Seven and nine node clusters would also be reasonable options.

But it's not surprising that a google search for "five node" cluster high-availability gives about 1/10 the number of results as a search for "four node" cluster high-availability. Most people in the computer industry like powers of two more than they like maths.

14 April 2007

Ben Hutchings: ACCU Conference

I've been meaning to attend the ACCU Conference for some years and finally decided to pay my own way for a couple of days this year. It was an opportunity to hear world experts on C++ and other programming topics and to a smaller extent to meet and socialise with other professional programmers. I attended the following sessions: Keynote: Improving Collaboration in Open Source Projects, Mark Shuttleworth This was a somewhat surprising choice of speaker and subject since I think most attendees work on proprietary software, but I think any sensible developer in the proprietary world will try to build on free libraries under non-copyleft licences, where appropriate. Mark talked about governance and leadership in "open source" projects (actually praising Debian for having a clear constitution) and about the need for good communication between projects, for example about release schedules. He seems to have accepted that Launchpad cannot be a single hub, and called for standard formats for, for example, exchanging information about related bugs between bug trackers. But it doesn't sound like he's ready to take the lead on that. Choose your Poison: Exceptions or Error Codes, Andrei Alexandrescu Andrei looked at the strengths and weaknesses of various error reporting mechanisms in C++ and introduced a technique for making error handling more flexible. Normally a function is designed either to indicate errors through its return value or to throw an exception on error. If a function returns an error indicator, it's easy for callers to ignore it. If it throws an exception on error, then a caller that provokes errors more often than the called function's author anticipated pays a high cost in processing time for those errors. Andrei's solution involves a class template Likely<typename T> whose instances hold either a return value of type T or an exception. A function that can fail has a specialisation of this template as its return type. The caller can check for failure if it knows how to handle it, or it can ignore it - in which case the conversion to T or the destructor will throw the exception. This is clever but doesn't seem to be entirely satisfactory. The destructor which throws does first check that no exception is already being processed, avoiding collision of the two exceptions and consequent abrupt termination of the program, but this can result in errors being unexpectedly ignored. Introduction to Component-Level Testing, John Lakos A marathon 3-hour talk on designing and testing software, particularly C++ programs (the subject of his well-known book) as a set of well-defined components. Lakos first defined these components as being "physical" i.e. sets of source files - normally a header file defining an interface, an implementation file, and a test driver file. They may also include metadata for the build system. He talked about the value of reusable components (as if this wasn't obvious!) and the risk of introducing circular dependencies - which essentially turn many components into one and reduce reusability - if we fail to keep track of dependencies. Software built out of components can be viewed as a hierarchy or stack defined by dependencies. In a large system, components with similar dependencies and dependents can be grouped together into packages or package groups to simplify a view of these dependencies. He explained that the test driver's dependencies count just as much as the implementation's, because we cannot reasonably test a component until we have tested its dependencies. Test drivers should also be written to avoid depending on environmental settings and configuration, so far as possible. Finally, and perhaps most importantly, he spent a long time talking about how to construct test cases and test data. I might try to summarise this in a later entry if anyone's interested. The Appliance of Science: Things in Computer Science that every practitioner should know, Andrei Alexandrescu Andrei began by complaining that OpenOffice Impress was even worse than PowerPoint, but being able to use Linux (specifically Ubuntu) more than made up for the pain. He briefly presented four key ideas that he believes programmers should understand and be ready to make use of: Writing for ACCU (BoF) I think I've been convinced to write an article about standardisation of multithreading in C++. C++ Threads, Lawrence Crowl Crowl gave an overview (similar to this) of the extensive work that's been done on standardisation of multithreading in the C++ language and library. This is one of the most important features in C++0x due to the increased parallelism mentioned above. The current semantics of multithreaded programs are not standardised, resulting in subtle but potentially serious differences between current C++ implementations that support multiple threads, and in the need for assembly-language code in programs that use lockless synchronisation. Much of this is also relevant to C and is being considered by the C standard committee. C++0x Initialisation: Lists and a Uniform Syntax, Bjarne Stroustrup Stroustrup recapped the 4 forms of syntax for initialising objects in C++, some inherited from C and some necessarily invented for C++, none of which are entirely generic. He noted the lack of a simple syntax to initialise the elements of containers, which violates the general principle that class types should have the same status as built-in types in C++. He then introduced a new initialiser syntax that he and others have defined for C++0x, which is a brace-enclosed comma-separated list of values, similar to that used for arrays and C-style structures (aggregates). Container types can define a constructor with a parameter of type const std::initializer_list<T> & and when constructed with this new form of initialiser they will receive this wrapper for a constant array of element values. For types that do not, the values in the list are treated as arguments to some other constructor, if one matches. Otherwise, for compatibility, this may be treated as aggregate initialisation. C++ Standard Library report, Alisdair Meredith There was far too much information here for me to even begin to summarise. Suffice to say there are lots of good things coming bu the library committee will have its work cut out to get them all properly specified in time for the Committe Draft coming late this year.
I also met old friends and new, put faces to names from newsgroups and books, and got too little sleep.

Adam Rosi-Kessel: Google Reader is the Solution

I was a long-time hold-out user of standalone RSS aggregators (SharpReader for Windows and Straw on GNU/Linux, both of which have been somewhat stagnant over the last couple of years). I’ve finally thrown in the towel and switched to Google Reader. It was a great decision. The key factor is mobility. I check email and blogs from my personalGoogle Mobile Image laptop; our kitchen computer; my office workstation; and, perhaps most significantly for Google Reader, from my cell phone. The Google Reader cell phone app is quite good (handy “keyboard” shortcuts, efficient presentation), and allows me to catch up during time that is difficult to use for other purposes: waiting for the train, standing in line at Starbucks, on the elevator. The only real downside is the lack of offline support (although I don’t think it would take a rocket scientist to create it), but this is far outweighed by the mobile functionality. As “access anywhere” becomes more important than “offline access,” I predict we’ll see more users of all applications make this sort of switch.

12 April 2007

Russell Coker: presentations about SE Linux

I have just read the Presentation Zen blog post about PowerPoint.

One of the interesting suggestions was that it's not effective to present the same information twice, so you don't have notes covering what you say. Having a diagram that gives the same information is effective though because it gives a different way of analyzing the data. I looked at a couple of sets of slides that I have written and noticed that the ratio of text slides to diagram slides was 6:1 and 3:1 in favor of text, and that wasn't counting the first and last slides that have the title of the talk and a set of URLs respectively.

So it seems that I need more and better diagrams. I'll include most of the diagrams I use in my current SE Linux talks in this post with some ideas on how to improve them. I would appreciate any suggestions that may be offered (either through blog comments or email).

The above diagram shows how the SE Linux identity limits the roles that may be selected, and how the role limits the domains that may be entered. Therefore the identity controls what the user may do and in this example the identity "root" means that the user has little access to the machine (a Play Machine configuration). I think that the above is reasonably effective and have been using it for a few years. I have considered a more complex diagram with the "staff_r" role included as well and possibly including the way that "newrole" can be used to change between roles. So I could have the above as slide #1 about identities and roles with a more detailed diagram following to replace a page of text about role transition.

The above diagram shows the domain transitions used in a typical system boot and login process. It includes the names of the types and a summary of the relevant policy rules used to implement the transitions. I also have another diagram that I have used which is the same but without the file types and policy. In the past I have never used both in the one talk - just used one of the two and had text to describe the information content of the other. To make greater use of diagrams I could start with the simple diagram and then have the following slide have all the detail.

The above diagram simply displays the MCS security model with ellipses representing processes and rectangles representing files.

The above diagram shows a simplified version of the MMCS policy. With MMCS each process has a range with the low level representing the minimum category set of files to which it is permitted to write and the high level representing the files that it may read and write. So to write to a file with the "HR" category the process must have a low level that's no higher than "HR" and a high level that is equal or greater than "HR". The full set of combinations of two categories with low and high levels means 10 different levels of access for processes which makes for a complex diagram. I need something other than plain text for this but the above diagram is overly complex and a full set is even more so. Maybe a table with process contexts on one axis, file contexts on another and access granted being one of "R", "RW" or nothing?

I also have a MLS diagram in the same manner, but I now think it's too awful to put on my blog. Any suggestions on how to effectively design a diagram for MLS? For those of you who don't know how MLS works the basic concept is that every process has an "Effective Clearance" (AKA low level) which determines what it can write, it can't write to anything below that because it might have read data from a file at it's own level and it can't read from a level higher than it's own level. MLS also uses a high level for ranged processes and filesystem objects (but that's when it gets really complex).

This last one is what I consider my most effective diagram. It shows the benefits of SE Linux in confining daemons in a clear and effective manner. Any suggestions for improvement (apart from fixing the varying text size which is due to a bug in Dia) would be appreciated.

The above diagrams are all on my SE Linux talks page, along with the Dia files that were used to create them. They may be used freely for non-commercial purposes.

If anyone has some SE Linux diagrams that they would like to share then please let me know, either through a blog comment, email, or a blog post syndicated on Planet SE Linux.

11 April 2007

Simon Richter: automake for the win

I wonder what on Flying Spaghetti Monster's green earth compels people to write their own build systems for no good reason. And yet, you still can do worse: you can adapt someone else's system to the point where it works for you. Which is why busybox shows "kernel source is at (path to busybox source)" when beginning to compile. And the pain only grows from there.

6 April 2007

Antti-Juhani Kaijanaho: Christopher Anvil: Cantor s War

I’ve been reading Baen’s collections of Christopher Anvil’s classic sf stories. In general, I’ve found them excellent; I thoroughly enjoyed the Free Library book Interstellar Patrol; and I’ve enjoyed all the stories of Interstellar Patrol II: The Federation of Humanity that I’ve read so far – with the exception of one. I agree completely with Alex Kasman of MathFiction: In my opinion, this story is slanderous and the author should be ashamed. I have very little to add to his review, and I won’t repeat his points here. I recommend reading the whole of Kasman’s review. On my first reading I totally missed that Dr. Phipps had been identified as a mathematician; I couldn’t believe my eyes when I went back and checked. A mathematician of the future, who is that ignorant of elemental set theory? The stuff is hammered down the throat of every mathematics freshman everywhere. It might be possible to graduate with that sort of ignorance, and I might accept it from a scientist who is not a mathematician, but to get a maths doctorate? No way. Fine, so we suspend disbelief on that point. The good Doctor is a professional imbecile. When he uses his faulty understanding of Cantor’s Theorem to suggest a plan of attack against the bad guys, I expected it to fail, naturally. I expected the bad guys to somehow diagonalize themselves additional warships, and so prove that their number is actually uncountable, when the good guys have just a countably infinite set of ships. But did we get this? No. Go read Kasman’s review, and the Anvil reissues. But by heavens, if you are educated in higher maths, skip Cantor’s War.

5 April 2007

Evan Prodromou: 14 Germinal CCXV

Snow, beautiful snow! We've got tons of snow coming out of the sky today. It's big and thick, what they call fourrure de li vre (rabbit fur) in Quebec. It's hard to believe we are having snow this late in the season (halfway into Germinal!), but it's kind of nice to have some snow. Especially since the United Nations report saying that Canada will lose its snow cover by 2100. Snow, please snow. tags:

JFS So, I'm one of those idiots who uses the IBM Journaled File System 2 (JFS2) as his root partition. Why? Because I've tried all the different journalling filesystems for Linux (reiserfs, ext3, xfs, jfs) and JFS is the one that works for me. It just seems to be the low-profile, clean, nicely-working FS. Unfortunately, I've been tracking Feisty Fawn for the last couple of weeks, and somewhere in there the JFS utility package, jfsutils, got uninstalled. Who knows why? But when I rebooted my machine today to try out a new kernel, my root partition came up in read-only mode -- because the system couldn't check the partition, because fsck.jfs couldn't be found. The fix, of course, would be to boot a live CD, chroot to the hard disk, and apt-get install the jfsutils. I typically use Finnix for this and other rescue/recovery projects, but in this situation Finnix failed me. My main computer is a honkin' amd64, and the x86 Finnix disk didn't want to let me chroot and run any amd64 binaries (like the stuff I needed to apt-get install jfsutils). So I ended up downloading and burning a Feisty live CD, dicking around with boot parameters for a while (noapic nolapic nosplash nonothing...), and finally got to a nice, friendly Gnome terminal. I mounted the hard drive using the Nautilus tools, and then tried to chroot to it -- D'OH! Permission denied. Took me a while to figure out that Nautilus mounts drives noexec by default. Once I got that working, I got jfsutils installed and was able to boot my machine again. Yay. Moral of the story: figure out a way to make packages that are crucial to you crucial to your package manager, too. Oh, and Finnix needs an amd64 build. tags:

YULblog YULblog meetup tonight at the Quincaillerie. YULblog is our local Montreal monthly blogging get-together. It's pretty fun, and has the highest female-to-male ratio of any technology event in Montreal. Which is great. I have a ton of work to do tonight (since I spent the afternoon dicking around with live CDs), but I'm going out anyways. YULblog comes but once a month, after all. tags:

N hours later Good time, that! I walked down rue Rachel to the Quincaillerie this evening around 9PM through a storm that was like being in a snowfight with Borribles. Thud thud thud! Big chunks of snow. But the Q. was pretty hoppin' for a snowy night in April, and I got to see Robin, Steve, Niko, Patrick and others. It was a fun time; the snow made it all the more special. tags:

4 April 2007

Russell Coker: cheap big TFT monitor

I just received the latest Dell advert, they are offering a 22 inch monitor with 1680x1050 resolution for $499 including delivery! This is a great deal, I've got the same model of monitor at home (I paid $750 for it almost six months ago) and have been totally satisfied. The same monitor with a $499 price is amazing value.

In the past I blogged about the benefits of larger monitors for software development. Now these benefits are available to most computer users in first-world countries.

Now that 1680x1050 is commonly available I expect to see higher resolution monitors dropping in price, at the $800 and $1200 price-points there will need to be something better than that.

The next development will be new software to take advantage of this. One thing that I have heard of is a window manager that splits the display into two halves (in this case they would be 840x1050 resolution). The benefit of having this configuration (according to the people who use it) is that for maximising a window will make it take half the physical screen. This means that you could have a debugger in one half of the screen and your application in the other, to "maximise" the application would not occlude the debugger. Or you could have a web browser and a MUA each using half a screen.

Of course the same result could be achieved by getting two physical displays, but this requires a graphics card that supports "twin-head" operation, and the purchase price of two displays (which will add up to more than $500).

Splitting a screen into two virtual displays is not something that would suit my working patterns. For a lot of my work I just have a screen filled with as many Xterms as will fit. For the GUI stuff I am happy to manually resize things. Maybe a KDE addition that would allow one "Desktop" to be split while another isn't would work.

A final impediment to splitting the screen is that 840 pixels is not enough to correctly display all web sites (many of which are designed for 1024x768). Maybe if I had a split desktop with an icon on the title-bar of the window to unsplit it for one particular window then it would work.

Another use for a large display is virtualisation. I previously blogged about how to use Xephyr to run multiple X sessions on one display, as Xen is now supported in all Linux distributions and KVM and other
virtualisation technologies are also being developed there should be a lot of demand to have multiple virtual machine GUI displays on one desktop (although you could probably do this by manually sizing the windows).

These are just some wild ideas, I have no plans to write the code for any of them, so it'll be a matter of whatever is desired by the people who write the code or pay them. But one thing is certain, the low prices of such monitors will drive new research into how to use them effectively. New technology to effectively use large displays will then drive demand for even larger displays (as will the people who just want to get something better and more expansive than their neighbours). I wonder when we will get to the stage when people are satisfied. For basic office applications commodity PC hardware has far surpassed what is needed for people to do their work.

2 April 2007

Mike Hommey: Google Keywords - Mar 2007

“google keywords” - being the top search !
“ca passe” - a passe pas
“i’ve got married” - congratulations
“blitzer blog” - not here
“how to gzip vmdk files without powering off vm” - wow, that’s courageous
“cat and mice codes” - is it related to spaghetti code ?
“php script rm *.*” - what are you expecting to do ?
“should i use ubuntu or debian” - debian !
“why sucks is not scientifically correct” - yes, why ?
“drop laptop crash” - try and tell me what happens
“ext3rminator” - work in progress

29 March 2007

Russell Coker: questions regarding SE Linux

I just received a question about SE Linux via email. As I don't want to post private messages containing material that's globally useful I'll answer through my blog:

> other than strict and targeted policies......other policies like
> RBAC, MCS, Type Enforcement are also there....how are these policies
> implemented

The two main policies are the strict policy and the targeted policy. The strict policy is the earliest and was originally known as the sample policy (but was given the name "strict" after targeted was developed).

The strict policy aims to give minimal privileges to all daemons. The targeted policy aims to restrict the programs that are most vulnerable (network facing daemons) and not restrict other programs (for ease of use). There is currently work in progress on combining those policies so the person who compiles the policy can determine which features of strict they desire.

RBAC means Role Based Access Control. The strict policy assigns users to roles and the role then limits the set of domains that can be entered. For example the user_r role does not permit the sysadm_t domain so a user who is only permitted to enter the user_r role can not perform sys-admin tasks. Like many terms RBAC is used in different manners, some people consider that it means direct control by role (EG role user_r can not write to /dev/hda), while SE Linux has a more indirect use of roles (role user_r can not run programs in domain sysadm_t or any other domain that allows writing to type fixed_disk_device_t - the type for /dev/hda). You may consider that the strict policy supports RBAC depending on which definition of the term you use.

Generally the targeted policy is not considered to support RBAC, although if you consider a role to merely be a container for a set of accesses that are permitted then a SE Linux domain could be considered a in the RBAC sense. I don't think of targeted policy as being a RBAC implementation because all user sessions run in the domain unconfined_t which has no restriction. I think that to be considered RBAC a system must confine user logins.

Type enforcement is the primary access control mechanism for SE Linux. Every object that a process may access (including other processes) has a type assigned to it. The type of a process is known as a domain. The system has a policy database which for every combination of domain, type, and object class (which is one of dir, file, blk_file, etc - all the different types of object that a process may access) specifies whether the action is permitted or denied (default deny) and whether it is audited (default is to audit all denied operations and not audit permitted operations).

MCS is a confidentiality protection mechanism where each file has a set of categories assigned to it. The set may be empty, may contain all 1024 categories, or any sub-set. Each process has a set of categories that determines which files it may access. File access is granted if Unix permissions allow it, if the domain-type model allows it, and if MCS allows it (on an MCS system). I have just had an article on MCS published in Linux Journal.

MCS is an optional feature for people compiling Linux from source or for distribution vendors. For Red Hat Enterprise Linux, Fedora, and Debian the decision was made to include it, so the strict and targeted policies for those distributions include MCS.

There is another policy known as MLS. This is a policy build that comprises the strict policy plus Multi-Level Security. Multi-Level Security aims to give the highest confidentiality protection and comply with the LSPP (Labeled Security Protection Profile - roughly comparable to B1) Common Criteria certification. It would be possible to build a targeted policy with MLS but that wouldn't make sense - why have the highest protection of confidentiality with anything less than the highest protection of integrity?

As for how the policies are implemented, I'm not about to write a tutorial on policy writing for a blog post, I'm sure that someone will post a link to a Tresys or Fedora web page in the comments. ;)

> there r some packages of linux in which some changes has been made
> to support linux......for eg:- coreutils, findutils

That is correct. Every program that launches a process on behalf of a user at a different privilege user (EG /bin/login, sshd and crond) and every program that creates files for processes running in different domains (EG logrotate creating new log files for multiple daemons) needs to be modified to support SE Linux. Also ls and ps were modified to show SE Linux contexts as well as the obvious programs in coreutils.

> 'Z' is the new thing that have been added to most of the
> utilities......wherever I search I get the changes made only in few
> utilities like ps, mv, cp, ls
>
> Can u help me by giving all the changes made in each of the utilities.....

Unfortunately I can't. This has been identified as an issue and there is currently work in progress to determine the best way of managing this.

23 March 2007

Uwe Hermann: Measuring the energy consumption of everything you own

Voltcraft Energy Check 3000 Inspired by this post from Lars Wirzenius, I recently bought an electricity meter (or energy meter) and measured the energy consumption of everything I could find in my flat. I did not yet perform any long-term tests, i.e. measuring the average consumption over multiple days or so, only some quick ad-hoc checks. I just recorded the number of watts the respective device used when powered on. Here are the results: Kitchen stuff: Computer stuff: By removing all devices which draw more than 0 watts in stand-by mode, I was able to reduce the overall (useless) energy consumption (and costs!) quite a bit. I also replaced a bunch of 40 W and 60 W lightbulbs with energy saving lightbulbs which are equally bright, but only consume 8 W or 12 W respectively. On the long run you can save quite some amount of energy (and money) with them. They do cost a little bit more than normal lightbulbs, but save lots of electricity costs and they also last a lot longer (8000-15000 hours vs. 1000 hours according to Wikipedia).

22 March 2007

Russell Coker: power saving

Adrian von Bidder made an interesting post in response to my post about Spanish wind power. He correctly points out that power sources that have seasonal variations and which may vary during the course of a day can not be used as the sole power source.

The ideal design would be to have wind power stations that are designed to have a peak power that is greater than the expected use for the country. Then when wind power is slightly below peak the entire use for the country could still be satisfied.

There are a number of power sources that can quickly ramp up, this includes hydro-electric and gas-fired power stations. Such forms of power generation could be used as backup for when wind and solar power are limited. Incidentally one thing to note about Solar power is that it is most effective during the day in summer - which is when there is the highest demand for electricity to run cooling systems. There is also an option for having the sun heat up rocks which can be used for generating electricity at night or at periods of peak demand. So eventually we could have all our energy needs supplied by solar and wind power.

If wind power was designed to exceed the demand at windy times there are a number of ways that it could be used. The first thing to do is to implement billing systems that vary the cost according to the supply. This information could be provided to customers via X10 (or a similar technology). Home appliances could take note of this information and perform power-hungry operations when it's cheap. Your freezer could cool itself to -30C when electricity is cheap and allow the temperature to rise to -5C when it's expensive. You could program your washing machine to start when electricity becomes cheap - usually a few hours delay before starting the washing is no inconvenience.

Ideally home power generation from solar and wind sources would be used. There is significant loss in the power lines that lead from power plants to the consumer, so there are efficiency benefits in generating power locally. A wind turbine for a home will give highly variable amounts of power, and the electricity use of a home also varies a lot. So batteries to store the power are required. When you have local battery storage you could use your batteries to power your home when electricity is expensive and use mains power when it's cheap. Also if it was possible to feed power back to the main grid then home battery systems could be used to help power the main grid at expensive times (if the electricity company reimburses you for putting power back in the grid then you want such reimbursement to be done at the highest rate).

Adrian also mentioned turning devices off when leaving home. It is common practice in hotels that when entering your room you will insert your key in a holder by the door which acts as a master switch for all lights and some other electrical devices (such as the TV).

This same idea could be adopted for home use, not based on key storage (although this would be an option) but instead on a switch near the front door. Push a button and all lights turn off as do human-focussed appliances such as the TV and DVD player turn off (not the VCR), etc. There could also be a night option which would turn off the TV, DVD player, and most lights. Obviously at night you want bedroom and bathroom lights to still work but many things can be turned off.

This is all possible with today's technology, small changes to usage patterns, and spending a little more money on technology. Currently you can get a basic solar power system for your house for about $10,000. That isn't much when you spend $300,000 or more buying the house!

20 March 2007

Erich Schubert: Microsoft Linux sales strategy

Microsofts view of Linux users, and how to convince them of Windows. I don't like linking to Microsoft stuff, and especially not to Microsoft FUD (the flash presentation of theirs will in turn try to bring you to their "get the facts" wrong site...) However, for Linux evangelists it's a good opportunity to see Microsofts strategy at attacking Linux, and where we should improve to counter their claims (e.g. with respect to mangeability). It's also nice to see that they actually feel oblieged to counter SAMBA and other Linux technology, and that especially in the networking part they have little to claim to be superior. And also for Samba all they claim is "higher value because of better integration and manageability". And I definitely have to agree that management of a larger Linux network isn't easy, and we could do with some better tools. (And especially tools to do tools for network management; we have different requirements, and there are good tools, but they are either hard to roll out and customize - cfengine -, or too primitive to be of use to many - webmin etc.) Still the average Linux administrator does manage a significantly higher number of servers than a Windows admin, so their claim actually is incorrect. And it's totally absurd they claim to be better in security with Exchange. Maybe better than their older crap, but I still would never ever trust a Microsoft system for Email... just remember all those bad email vacation notices etc. Microsoft delivers... So: know your "enemy"s tactics.

16 March 2007

Erich Schubert: Google Summer of Code

The Google Summer of Code is in preparation again. I'll be available as mentor for the Debian project again in 2007. If you are interested in the summer of code, hurry up: Yes, about one week left to write and send in your proposal! I'm interested in SELinux and Debtags related projects mostly. Maybe some init stuff or infrastructure, too. But there might be better mentors available for that. Just make a good proposal! SummerOfCode2007 in the Debian wiki, where some ideas are posted. But it'll probably give you higher scores if you come up with something on your own. You might also want to read Planet Debian or the DPL vote platforms for some ideas on things to work on. And of course you can discuss them in our IRC channel or on the mailing lists, there is nothing to be kept secret! Anyway, make sure you write a good proposal. We don't like copy&paste jobs. We want students who are serious about contributing to Debian, the opensource world and about learning how development on this scale works. That want to become an important member of the community. It's about you and the community, not so much about the project or the donation to Debian (we aren't good at spending money anyway, being a volunteer project).

9 March 2007

Edd Dumbill: My preview of the O'Reilly Emerging Technology Conference 2007

I was honoured to be on the ETech 07 programme committee. Alas, I can't get there this year due to the very enjoyable reason of recent parenthood. Nevertheless, here are some of the talks I'd earmarked to attend.
Creating Addictive User Experiences (Kathy Sierra)Is it possible to say too many good things about Kathy Sierra? Any project or product built with attention to her advice about empowering users gets a huge head start to popularity and success. I was fortunate enough to spend a day with Kathy last year on a training course, and it was great to see the passion and commitment from her writing runs through her as a person, even behind the scenes.Applied Web Heresies (Avi Bryant)I'd go to this one out of insatiable curiosity. I believe that web conventions enable rapid application design (c.f. REST in Rails) but here's an argument that not following them also reaps rewards. Attend this talk prepared for involvement. I've never met a Squeaker without attitude.
Making Offline Web Applications a Reality (Zimbra)A short product talk, but taking web apps offline is an area to watch. Even if you don't think offline is that important to you, many of the same principles apply to application mobility. Take that key app data off onto your phone, watch or memory stick.Collective Intelligence, Indeterminacy, and the Illusion of Control (Charles Armstrong)More user-facing stuff. How do you give a user of a large nondeterministic piece of social software the idea that they're in control? This is an important topic to me: note how many pieces of social software fall by the wayside right away. For some, it's lack of utility, but that's influenced too by the degree of engagement and control a user feels.
No Program Left Behind: Liberating TV from the Tyranny of the Ephemeral (Tom Loosemore)There is no good reason not to listen to Tom Loosemore. Especially when he feels strongly about something. The idea of this talk is a "vision of a cheap consumer device sitting under your TV that will capture, store, and share all TV, forever." The TV industry sure needs its visionaries.
Patterns: From Fabrics to Fabrication (Dale Dougherty)Dale was responsible for getting my XML career off the ground, and you can find him at work behind some of the smartest things O'Reilly's done over the years. Make magazine was one of those, and now he's moving on to Craft. Design patterns for, er, real designs.RFID Guardian: A Personal Platform for RFID Privacy Management (Melanie Rieback)
Jamming bad RFIDs. Having just taken delivery of an RFID-enabled passport, this is starting to come home to me.Super Ninja Privacy Techniques for Web App Developers (Marc Hedlund)Despite the cute title, lots of good stuff here. Expectnation is going to end up with a truck load of user registrations, and their privacy is important to me. I imagine there'll be some good debate in the Q&A session for this talk.JavaScript: It's Happening All Over Again! (James A. Duncan)I've recently got the JS bug, thanks to JQuery. It's actually a fun and malleable language to work in. I'd go to this talk looking for fellow travellers and hints, though I'm a bit skeptical about Zimki itself.

5 March 2007

Russell Coker: last beard post

On Tuesday the 23rd of January I shaved off my beard after spending 107 days growing it, see above for the final beard pic. It was an interesting experiment and it's something that I recommend trying, but I couldn't keep it.

Having a beard is more effort than being clean-shaven. Eating is more difficult when you are trying to keep your beard out of your food. If you get the full beard (as I did) then the moustache at the sides of your mouth will get into your food (particularly bad for ice-cream). I guess that the benefit of having a waxed moustache would be that the wax would keep it out of the way of the food - the waxed moustache wasn't just an issue of style!

Madduck suggests that when you drink Guinness you "push your lips past the head and draw up only the dark stuff". Of course that won't work if you have a moustache as you don't want a moustache that's soaked in beer!

Immediately after cutting off my beard I didn't shave for almost a week and experienced much less discomfort than I had preveiously experienced when not shaving for that period. I think that having been used to having a beard an amount of hair that would previously annoy me is not noticable. Also it
seems that the hair was initially softer after I cut off the beard. Maybe shaving somehow makes the hair grow tougher.

When I had the beard I thought that I hadn't adjusted my body image to match, as every time I looked in the mirror I felt surprised to see it. Once it was gone my new look initially seemed more odd to me than my previous appearance, and it took me a number of weeks to get used to not having a beard.






When shaving off my beard I decided to do it in stages, firstly I did a "goatee" cut and then just a moustache. The moustache is a little lop-sided, but I was in a hurry and didn't plan to keep it for long.

2 March 2007

Meike Reichle: Off to Chemnitz

In about half an hour I'll leave for Chemnitz in order to attend the Chemnitzer Linux-Tage 2007. I am very much looking forward to going there. Ever since the LinuxTag left Karlsruhe, the CLT are my favourite Linux event within Germany. Because of this I registered even two talks this year, one in the beginners section and of course the inevitable social talk. ;-) They're both new, so this CLT will feature two premieres. Giving new talks basically means that anything is possible. Very high rock and roll factor! New talks always have the highest risc for "accidents" but also they're usually most fun, because there's still some room (or need) for improvisation left. This is probably also why I tend to lose interest in a talk once I've given it a few times. Though, the BOFH one is of course a golden oldie! PS: Tolimar is a copycat!

Biella Coleman: On Edmonton, Place, and State of Mind

Recently, I got a comment on an older blog post on Edmonton that basically agreed with another comment that Edmonton was so not the cat’s meow. Despite the winter and many months later, I guess I still do think it is, although in saying so, it is not I think their assessments are wrong, I think my take has as much to do as what has come before (like NJ, which was not the high point o my life), my experiences here, and what is to come in the future. I tend to like Edmonton because there is enough stuff to do but not too much to do. It is that whole freedom from choice that I like because I often shut down in the face of too much choice. What also colors my experience in a positive light is that generally, Canadian politics, social policy, and way of life, are a step up or two (or maybe three) than that of the United States. So the worst of Canada (if you are even to call Edmonton that, which I would not), in this regard, beats out the best of the United States. And I have lived most of my life in the US so that is my point of comparison. Even if you are living in a fantastic American city, you always face the possibility of struggling in ways that will *never* happen in Canada. It makes for a calmer, less aggressive society. For example, I recently learned that Edmonton has the highest murder rate in Canada, at a whopping …. 36 people per year (population of Edmonton = 1 million). I grew up in a place, Puerto Rico where the yearly murder rate hovers at about 700-800 per year (population = 4 million). And yet people here are freaking out over the high rate of murder, which is a good thing because hopefully they can bring it down but this fact should make the US pause and think about what they are doing up north to keep the murder rate so darn low (and the answer I think is pretty easy to find). But perhaps a lot of my love of the place has as much to do or more with my state of mind. After a grueling year of finishing a dissertation under pressure as I had deadline, and then living in NJ where I was on the job market (which meant spending so much time churning out application after application and then flying around interviews), in addition to flying 7 times in one year to visit my mom, my life here just feels so much more sane than it has been in years. What sealed it all was that right before I moved here in August I was lucky enough to be offered a permanent job (which means this summer I will be moving to NYC to join this department and I will be back to the land of overwhelming choice), so that for the first time in 5 years I did not have to apply for anything in the fall that would guarantee my livelihood for the next academic year. I was not faced with a year of lots of travel (and actually traveling in out out Edmonton is really one of my least favorite things). With that firmly in place, I could just concentrate on things like my work, my friends, brewing kombucha and do things routinely, like exercise, which I had not consistently done for years. There are things about Edmonton that I find totally obnoxious like the cities inability to plow roads leaving a thick glaze of black ice on the roads so that when you drive in the city, you basically are at real risk for an accident (and this is despite a 6.6 BILLION government surplus). There are a tad too many strip malls in the outlaying areas, and of course there is the infamous winter. We are still deep in it. The cold temperatures have been with us steadily for months now and according to folks, there are still two more months to look forward to. The cold and the constant layering of clothes are getting to me a little, although I do appreciate that the cold is just not as cold as one would think with the actual temperatures. The lack of wind, the dry conditions, the cute as chubby-as-anything- bunnies that run through the snow, and the overpowering sun all help to make -6 F much more mild, so it is not as bad as you would or I would think it was. So while I am thrilled to join the department where I am moving too, I will be sad when I leave, though perhaps not as sad as Edmontons “darling” hockey player, Ryan Smith, who was just traded by the Oilers to the NY Islanders. The day he left, he literally was shedding tears at the airport. And I have to say, even though I have no attachment to hockey, I found the pictures endearing because there is nothing like seeing a grown Canadian man cry over hockey! : )

1 March 2007

Adam Rosi-Kessel: Ray Hagins Needs a Higher Pagerank

Celebrity 2.0.

Lars Wirzenius: Debian: Automatic testing wishlist

Joey Hess writes about automated system testing in his anti-platform. That's one of the things that I'd like to work on, some day, when I have some free time again. There's two things I would like to do next in this area. First are improvements to piuparts so divide the tests it does into smaller bits, and to add a plugin framework so that it becomes easy to write new tests. The current piuparts code isn't really well suited for this, but the whole program is only a few hundred lines of code, so even if it had to be rewritten completely from scratch, it shouldn't take more than a couple of weeks of full time work (piuparts development is often slow because you need to run tests on large parts of the archive). The other thing would be to test upgrades not of individual packages, which piuparts does now, but of entire systems, preferably in emulated machines instead of chroots. This would probably need a new tool. The third of these two things would be to start adding automatic tests to packages so that we can test whether they work when they're installed. Ian Jackson did some work on a tool for this, but we need to use the tool. Ideally, we would have a setup where packages get tested automatically, continuously (daily, if possible) and results are reported instantly. At the moment, piuparts results need to be filtered manually, and that's a pain. Adding a "package health indicator" the PTS based on these automatic tests would be cool. We could even have a "Debian big board" web page, with a small square for each package, colored green if it's bug free and passes automatic tests; colored cyan if there's only bugs of severity normal or below, or a problem with some of the automatic tests; colored pink if there's a bug of severity important, or all automatic tests fail; and colored red if there's bugs of severity higher than important. This would give an overview to the health of Debian with a glance.

Next.

Previous.