Search Results: "ah"

26 February 2010

Dirk Eddelbuettel: R and Sudoku solvers: Plus ca change...

Christian Robert blogged about a particularly heavy-handed solution to last Sunday's Sudoku puzzle in Le Monde. That had my symapthy as I like evolutionary computing methods, and his chart is rather pretty. From there, this spread on to the REvolutions blogs where David Smith riffed on it, and showed the acual puzzle. That didn't stop things as Christian blogged once more about it, this time welcoming his post-doc Robin Ryder who posts a heavy analysis on all this that is a little much for me at this time of day. But what everybody seems to be forgetting is that R has had a Sudoku solver for years, thanks to the sudoku package by David Brahm and Greg Snow which was first posted four years ago. What comes around, goes around. With that, and about one minute of Emacs editing to get the Le Monde puzzle into the required ascii-art form, all we need to do is this:
R> library(sudoku)
R> s <- readSudoku("/tmp/sudoku.txt")
R> s
      [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9]
 [1,]    8    0    0    0    0    1    2    0    0
 [2,]    0    7    5    0    0    0    0    0    0
 [3,]    0    0    0    0    5    0    0    6    4
 [4,]    0    0    7    0    0    0    0    0    6
 [5,]    9    0    0    7    0    0    0    0    0
 [6,]    5    2    0    0    0    9    0    4    7
 [7,]    2    3    1    0    0    0    0    0    0
 [8,]    0    0    6    0    2    0    1    0    9
 [9,]    0    0    0    0    0    0    0    0    0
R> system.time(solveSudoku(s))
      [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9]
 [1,]    8    4    9    6    7    1    2    5    3
 [2,]    6    7    5    2    4    3    9    1    8
 [3,]    3    1    2    9    5    8    7    6    4
 [4,]    1    8    7    4    3    2    5    9    6
 [5,]    9    6    4    7    8    5    3    2    1
 [6,]    5    2    3    1    6    9    8    4    7
 [7,]    2    3    1    8    9    4    6    7    5
 [8,]    4    5    6    3    2    7    1    8    9
 [9,]    7    9    8    5    1    6    4    3    2
   user  system elapsed
  5.288   0.004   5.951
R>
That took all of five seconds while my computer was also compiling a particularly resource-hungry C++ package.... Just in case we needed another illustration that it is hard to navigate the riches and wonders that is CRAN...

23 February 2010

Adnan Hodzic: Jahorina

Every winter I just get incredibly damp and depressed Wilt Well this year, I ve found an ultimate remedy + stress reliever since I m all jumpy around DebConf11 decision coming around this Saturday Fingers Crossed So to whoever has the same problem during winter take your board/skies (whatever your fix is) and hit the mountains! This weekend I went to Bosnian Olympic mountain Jahorina; couple of days later stress free, depression free and ready for new challenges, in the meantime I ll let pictures talk for themselves Wink
My friend and I
Black and white in colors
Ready to go down the slope
Camera can t display this beauty
Notice how close the clouds are
This image is my current wallpaper
On our way to sky Smile
Road to our cottage
Our little cozy cottage
Board ninja

20 February 2010

John Goerzen: Is the Roman Emperor Still Your God?

In ancient Rome, the Imperial cult was the worship of the Roman emperor as a god. It came to be at roughly the same time as Christianity. In the cult of the emperor, Caesar was revered as a deity. According to Harvey Cox, This was what we might today call a civil religion it had its holidays, processions, and holy sites throughout the empire. Adherence to it was required of all of the emperor s subjects, wherever they lived and whatever other deities they also worshiped. It was the religious and ideological mucilage that held the far-flung empire together. Perhaps you see where this is going. There was a certain group that found the imperial cult, well, repugnant. They felt their own goals bringing their god s peace and justice to the world were incompatible with this sort of devotion to a human institution, and the very institution that had killed their leader at that. Their reaction went like this:
Regarding worship of the emperor, Christians responded with an unequivocal no. They claimed that Jesus Christ was God s kyrios ( anointed one in Greek), but since kyrios was one of the titles attributed to Caesar, they refused to participate in the imperial cult. They were willing to pray for the emperor and for his health, but they stubbornly refused to pray to him or offer ritual tribute. They recognized that one could not be a follower of Jesus while also honoring a rival to the loyalty their faith in him and his Kingdom required; therefore, not even one pinch of incense on the imperial altar. This defiance of the political religion of the empire, which led their critics to brand them subversive, landed many of them in arenas with salivating lions. Harvey Cox in The Future of Faith
Now, you may be wondering, why am I asking if anyone still worships the emperor of a long-extinct empire? I maintain that this practice is still alive and well, just under a different name. I have been interested in some of the debates about American institutions that choose to perform neither the national anthem nor the pledge of allegiance. Many of these institutions are Mennonite, and their reason for not participating in these two particular acts mirrors that of the early Christians refusing to worship Caesar: namely, their goal is to bring about God s peaceful and just kingdom on earth, and no country, no human institution at all, can ever command greater loyalty than that cause. Moreover, the American national anthem is a particularly violent one, celebrating the taking of life right there at the beginning. Not completely compatible with the ethics of a church trying to bring about a more peaceful world, right? It is from that basis that many Mennonites, and our institutions, do not perform the national anthem or say the pledge of allegiance. For myself, when the national anthem is being performed, I will stand out of respect for those around me for whom the moment is important, but I do not sing. I am deeply appreciative that the United States, like many other countries, makes it legal to do this. I am heartened by the fact that I do not risk a confrontation with the lions over my religious stance today. Goshen College, a Mennonite institution, recently decided to go back on a century of history (which goes back farther than the anthem itself, which was only adopted in 1931) and will now be performing the anthem, followed by a prayer, before select sporting events. And by so doing, they fail both to act in accordance with the way of Christ, and to be a patriot. They fail to act for peace and justice by playing an anthem that supports and glorifies war and violence. And they fail to be patriotic. Patriotism and nationalism are different things. It s easy to be nationalistic to get up there and sing a song that everyone wants you to sing. It is far more difficult to be patriotic. Being patriotic in the United States means using the freedoms we have to improve our country. Goshen ought to use its freedom to not observe the national anthem as a way to try to draw a line in the sand against violence, to suggest that our anthem fails to adequately recognize the character of the American people and who we want to be, and to suggest a better alternative. After all, those people who are venerated today as patriots anyone from Martin Luther to Thomas Jefferson to Martin Luther King stood up to their fallible human governments to seek positive change. Instead of a route both religious and patriotic, Goshen College has chosen one that is neither. I am deeply disappointed that 300 phone calls have apparently cowed their leadership. What have we come to when our ancestors braved the lions, and we give up our principles over the fear of bad publicity? Ah, Goshen, perhaps you are thinking that you could spare a few pinches of incense for Caesar after all?

18 February 2010

Andrew Pollock: [life] Kitchen renovations started

Sarah got a call from the contractor on the weekend, saying he wanted to make a start on the kitchen demolition on Wednesday. So we've moved everything from the kitchen into the living room (fridge and stove included), and they started work today. Boy, did they start! It's all gone already. All of the cabinets, and the existing lighting, and the fan. Here's how it looked last night: Diagonal view from the breakfast nook View back in the opposite direction View from the doorway Another view of the breakfast nook Unfortunately there's no working lights any more, so I couldn't take photos of how things look tonight. I'll have to try and get some in the morning before the contractor gets here. It's sounding like it's going to take longer than one and a half weeks, so we're going to be eating out for a while (or cooking with the microwave in the living room). Conveniently (depending on how you want to look at it given the temperature there) I have a work trip to New York next week, and Sarah's going to come along for a few days as well, so that'll help kill some time. I think our next immediate need is to decide on what colour to paint the walls. Some light shade of green is a current contender.

16 February 2010

Jan Dittberner: New hardware for my server at home

After some stability problems and an unresolvable PCI IRQ problem with my Debian server at home (Internet gateway, mail, PostgreSQL, LDAP and NFS server and test system), I decided to get a new mainboard and wireless card last week. I did some research to get hardware that is properly supported and where I can use the rest of my current components. I had So I had to find a mainboard with at least 2 DDR2 DIMM sockets, an AM2 compatible CPU socket in ATX format with SATA ports at least one IDE Port, a Gigabit ethernet port (serving NFS home directories) and at least 2 PCI slots (one for the wireless card) that is well supported by the current Debian Squeeze Linux kernel. As I had some issues with the previous board's nvidia SATA chipset I wanted to get something else that is AHCI compatible. After some research I decided to buy a Gigabyte GA-MA74GM-S2H (rev. 3.0) which is available for a good price and fits all my criteria (2 DDR2 DIMM slots, 6 SATA ports, an RTL8169 based Gigabit ethernet ports, 2 PCI slots, ...). The mainboard uses an AMD 740G + SB710 Chipset. It has an integrated graphics chipset which I don't really need because I run the machine as a headless system. As I use the server as a wireless access point I need a wireless network adapter that supports AP mode. There are not many chipsets that are properly supported in AP mode and allow good data rates so I decided to get an Atheros ath9k based card, because I don't need non-free firmware like with broadcom based cards and could find some affordable hardware. The previous was a Netgear WG311 ath5k card that had issues that it lost its connection under more than minimum load and could only be reanimated by a system reboot. I looked at the Linux Wireless pages and found out that D-Link has a matching adapter the DWL-G520. Unfortunatelly they don't tell about the used chipset (as almost all other vendors too) and write about possibly changing hardware at the product sheet. To be sure I looked at their Windows driver's .inf files and found nothing indicating that there are any non Atheros variants of the card. I also ordered two Fantec MR-35 SATA mobile racks for more comfort when one of the RAID1 discs crashes (had 2 crashes last year) and a 12" chassis fan to keep the system cool. Today the package arrived and after unpacking and putting everything together I started the system (with keyboard and a display attached) to see how it works. All hardware was automatically detected by the current Debian Squeeze system and I only had to remove the entries for the old onboard network adapter and the old wireless adapter from /etc/udev/rules.d/70-persistent-net.rules and fix the device names for the new network cards. I added a new stanza for the Intel ethernet adapter in /etc/network/interfaces and setup a set of ferm rules to have a working firewall (thanks to Formorer for the suggestion to use ferm). After this was finished everything worked fine so far and I put the machine at its normal place without keyboard and display. To verify that the stability situation had really improved, I copied some huge files over the network (both wired and wireless and in both
directions). Afterwards I did a bonnie++ benchmark to test the SATA and hard drive reliability. Everything went well and I'm happy with my investment.

15 February 2010

William Pitcock: Healthy Menu for Slim with Diet Software

sofwarediet285
Want a healthy diet, but difficulty determining diet have much less heart disease and diabetes, now do not need to be confused. The problem currently existing software can determine which food or menu with us. This tool was created Muhammad Burhanuddin SI students majoring in the College information systems Information Management and Computer Engineering (STIKOM). Pemuda Surabaya original was inspired by his desire to want to get the ideal body weight. He then sought a reference from a variety of books on diet and sehata the ideal body shape. From the book, he then designed a program for determining menu diet with computerized systems. Yes at first it was because I found it difficult to lose weight and see the number of experts in determining the diet for patients with certain diseases, he said on the red building STIKOM Surabaya, Jalan Kedung Baruk, Thursday (15/10/2009). During the decisive finishing diet program, she had difficulty in the verification phase of the rule which took one month of a total of four months of completion of the program is the final project. This 21 year young man said this program can ciptaanya to help digunakanahli nutrition diet suitable for the patient. At first nutritionist to determine the menu of resus a patient s blood type that has gone through laboratory tests. Then determine the disease
patients suffered until finally obtained the results of a diet, he said.

William Pitcock: How to Fight Lazy For Sports

OLAHRAGA(getactivechallenge)-DALAM Everyone knows that exercise can heal the body. But why only a few people who routinely perform the activity? Ask yourself. The answer is, maybe you less motivated to do so. A survey ever conducted to find out why people rarely do sports. The survey involving 15,000 women from 25 countries showed that although nearly half of them know that exercise is very important for health, but less than 25 percent of it done. Why? More than two-thirds of respondents said that they would exercise more often if the gym was fun. So far, they consider it as a routine or demand to stay healthy so feel burdened. Although the facts say so, but it is unfortunate if people take sport as a less desirable activity. If you are not motivated to do the morning run, bike or fitness, try these few tips that may improve your mood for a workout without having to feel it as a demand or load. 1. Participate In A Club
Come in a club full of adventure and can arrange your sporting activity each week. Find information from friends or open the website that provides these facilities. 2. Involve Friends
If you are interested in joining a club, you can do sports with your friends or beloved. Sport activities together can evoke passion and spirit to not realize that you are really doing is exercise, not just recreation. 3. Try New Types
Trying something new will make you feel to have new experiences and unexpected. Make your muscles work with the new type of sport and do not usually very good for your body. 4. Make A Game
You would be very interested in an adventure or a game. Making sport like games is a good idea. Make activities as the game ran find treasure limited time, and you will feel more happy and challenged. 5. Back to Boyhood
Do you remember when as a child running around all day without feeling tired and bored? It feels good right? That s what you should do now. Create a day where you can be reunited with friends and do sports or play activities you usually do in childhood. Rollerblading in the park to play or jump rope can be very enjoyable. 6. Give Credits For Yourself
If you ve managed to do sports, try giving a gift to yourself. Watching the film series, enjoying a plate of spaghetti or relax at the spa can be temoat rewards you deserve for successfully achieving exercise goals. Most people who do not enjoy the sport has a very dense activity and also because they are not used to doing. But if once you find that it is a routine exercise that is enjoyable, you will begin to enjoy it. Without realizing it, you also have to do two things at once is fun, physical exercise and psychological. Good luck.

Keith Packard: TeleMetrum v0.2 testing

Test Flying TeleMetrum v0.2 Bdale and I got a chance to test fly the new version (0.2) of our TeleMetrum flight computers. Bdale flew with the Albuquerque Rocket Society down in New Mexico while I flew near home with Oregon Rocketry during our February model launch. I flew my Dynastar Grappler which I have modified to create a large payload bay out of a foot of the original body tube: I cut a sled out of plywood and mounted the TeleMetrum on one side, and a small 110mAh battery on the back: The field we use for model launches is surrounded by tall fir trees, so we tend to stick to reasonably small motors. This time, I loaded up an Aerotech 24mm E18 motor and trimmed the delay down to about 5 seconds as this rocket uses simple motor ejection. This flight didn t exercise the new ejection circuitry. In any case, the flight was perfect, telemetry worked all the way down to the ground using just a 1/4 wave whip antenna on the receiver. Here s the data recorded in the on-board eeprom: The maximum reported altitude was 186m, velocity was 49m/s and acceleration was 53m/s . As expected, the GPS loses tracking during boost, but rapidly re-acquires near apogee and tracks the rocket all the way back to the ground. The flight track can be viewed in Google Earth. Needless to say, both Bdale and I are extremely pleased with the performance of the new hardware.

14 February 2010

Jaldhar Vyas: This is Bad News...For Obama

You did it!. The results are in and Barbie is going to become a Computer Engineer. Though I should note that in the vote amongst girls who are members of barbie.com, TV Anchor got the most votes. Bah!

10 February 2010

Aigars Mahinovs: USB 3D Sound

Want a sound card? Want a cleared sound that is not contaminated by electromagnetic interference in you computer s case? Want that all to work in Linux? I did. So I got me one of theseUSB sound cards. It arrived today in a tiny padded envelope. USB sound card And it works with Linux. Just plug and play. PulseAudio makes it all trivial. The device ID as reported by lsusb is 0c76:1607 JMTek, LLC. The text on the back of the device says Model HY544 USB 3D Sound Pnp FC CE Made in China .

9 February 2010

Aigars Mahinovs: Debug and optimization do NOT mix!

This has robbed me of several days of my life, so I want to bring Google juice this this problem. IF you have a Pylons or TurboGears application or anything else that uses the fantastic EvalException WSGI middleware for web debugging of you web program and have the following symptom: * on a crash the traceback page shows up, but it has no css style and no images
* http://127.0.0.1:5000/_debug/media/plus.jpg returns a 404 (where 127.0.0.1:5000 is the path of your application) with Nothing could be found to match _debug The problem that you are facing in this case is the enviroment variable PYTHONOPTIMIZE or apache_wsgi option WSGIPythonOptimize. Unset them both or you debug environment will not work!

Francois Marier: Excluding files from git archive exports using gitattributes

git archive provides an easy way of producing a tarball directly from a project's git branch.

For example, this is what we use to build the Mahara tarballs:
git archive --format=tar --prefix=mahara-$ VERSION / $ RELEASETAG bzip2 -9 > $ CURRENTDIR /mahara-$ RELEASE .tar.bz2
If you do this however, you end up with the entire contents of the git branch, including potentially undesirable files like .gitignore.

There is an easy, though not very well-documented, way of specifying files to exclude from such exports: gitattributes.

This is what the Mahara .gitattributes file looks like:
/test export-ignore
.gitattributes export-ignore
.gitignore export-ignore
With this file in the root directory of our repository, tarballs we generate using git archive no longer contain the selenium tests or the git config files.

If you start playing with this feature however, make sure you commit the .gitattributes file to your repository before running git archive. Otherwise the settings will not be picked up by git archive.

8 February 2010

Jan Hauke Rahm: Running again

Finally, I got my notebook working again. It seems a full Gnome installation isn t exactly what my old MacBook needed. So it lay around for weeks, or rather months now, not being used for anything remotely relevant to anything. After all I then decided to get rid of Gnome at least on the notebook and instead installed LXDE what can I say? It s amazing. Removing all the stuff I don t need anyways on this system (even the pbuilder/cowbuilder stuff is gone) made it really fast again. I m happy now and the vacation can come with my notebook at hand, since it s running again. Yet that s actually not what I wanted to write about. After a three week break due to illness (and, I admit, bad weather although it still is pretty snowy and icy outside) I m back on the track. And it wasn t even that bad. Of course I m not back on the level I had before but at least it s about 5.5 km in 35 minutes. For a beginner who just had a forced break from training, I m quite satisfied with myself. So, I m running again. Yay!

Olivier Berger: Working on standard forge exchange format

As part of COCLICO, we re working on an exchange format for forges, that should help dump, restore, export and import from different software forges. There are various use cases for this, like moving a project from one forge to another, but also as backup/restore feature for forge admins. More about the rationale here. We d like this format to be a standard some day, so it should have good properties so that it s generic enough and at the same time easy to adopt. Thus it would be relatively easy to contribute new exporters or importers to an framework (for which we ll implement basic core tools), while having a long-lasting format that can still be used in the future. A lot of work ahead of us, and this is just a short notice in case you re interested and you d like to know more ;) Stay tuned, and if interested, join discussions@planetforge.org to discuss this topic. P.S.: yes, it s a rebirth of CoopX, somehow (see the coopx tag in my blog for more details)

7 February 2010

Martin F. Krafft: Optimise Google

I had previously sought alternative, innovative search engines, but none of the proposed options made me particularly happy. About a year ago, I came across DuckDuckGo, and today, I ve been using DDG as my primary search provider for exactly 10 months. The reasons why I switched included I am aware that DuckDuckGo is index-based itself, using the Yahoo API, which, in turns means that DuckDuckGo may already be using Bing data. Sounds a bit like out of the frying pan into the fire, unfortunately. I am still investigating better search solutions, sticking with DuckDuckGo meanwhile. Unfortunately, DuckDuckGo doesn t quite cut the mustard at all times, forcing me to go to Google instead. For this reason I am glad to find that the CustomizeGoogle Firefox extension has not been discontinued, but simply renamed to OptimizeGoogle. This extension allows me to anonymise my identity towards Google, remove click tracking (which Google doesn t want you to know about and hence hide with JavaScript), hide ads, and customise a slew of other aspects of the giant s search engine. It alleviates some of the aforementioned concerns, but not all. Maybe it s time to rethink the way I use the web and lower my search needs. If you are using Firefox, try it out! If you re still using Internet Exploder, you should not, and instead upgrade to Firefox. Users of other browsers might find similar functionality for their application, or might want to switch as well. NP: Tunng: Comments from the Inner Chorus

Ben Armstrong: Eee PC care at 2 years

In November 2007, we bought two of the first Eee PC netbooks available in North America: the model 4G in pearl white, one for me, and one for my wife. My plan was to start the Debian Eee PC project and get Debian working on them both which, thanks to the work of everyone on the team, has been a great success. Fast forward to February 2010, and they are still serving us well. Here is a list of hardware enhancements and issues over the past two years of continuous use: Battery life Asus claims 3.5hrs for the model 4G, though I don t think we ever experienced anything better than 2.5 hrs with wifi in operation. Today, I m down to something short of 2 hrs. If you consider the Lithium ion battery article on Wikipedia to be accurate, it is typical to permanently lose 20% capacity per year, so this sounds about right for the age of the battery. Touchpad The touchpad itself is fine. The buttons are not. They are hard to push and prone to become less responsive after a while, or to fail entirely. I now really have to bear down hard on my left button to make it work. Because the buttons are soldered to the motherboard, they would be hard to replace. Configuring the synaptics driver for tap-to-click is an acceptable workaround. Also, one of the first purchases we made was the Logitech VX Nano, one for each Eee, so most of the time now, we use our mice, falling back to the touchpad only when using a mouse is inconvenient due to space constraints (e.g. on the bus). Keyboard After two years of continuous use, both of our keyboards needed replacing. Some of the keys had been pounded flat and needed surgery (rubber springs sliced out of a scavenged Acer netbook keyboard and grafted on) to make them usable again. And aesthetically, the keyboards have really suffered, with a good percentage of the markings on the keycaps partially or completely eroded off. Fortunately, for $3 plus $10 shipping each, new keyboards can be ordered from a Chinese e-Bay seller. But with the new keyboards, there is still the problem with excessive flex in the keyboard making some keys less responsive than others. I m considering trying this hack to solve the problem. Display I have no complaints about the matte finish displays of either Eee. Both have stood up well. People tell me they don t care for a 7 display, but I find it bright, crisp and easy to get along with, so long as you maximize windows and increase font size as needed (e.g. for reading PDF books and magazines). When I really need the extra real estate, I just hook up an external monitor. Fan Some people complain about the noise of the fan, from the otherwise silent 4G (due to the lack of a hard drive) and seek ways to limit the amount of time the fan runs. We ve never had that problem. However, if any plastic bits break off inside the Eee, they will eventually find their way to your fan and get wedged. This has happened twice: once in my wife s Eee, and once in mine. Disassembly of the Eee to clear the blockage and get the fan running again was relatively painless both times. Plastic bits About those plastic bits: In my wife s case, I think the bit was some extruded plastic from the molding that had broken off. In my case, it was a deteriorating plastic post which was holding the hinge in place. More about this later. Sound Unfortunately, the integrated sound seems to be particularly sensitive to heat. During both fan failures, sound cut out. On my wife s system, it never fully recovered, and now only works on alternate Tuesdays, whereas on mine, after I unwedged the fan and brought the heat down, sound has functioned properly ever since. (Update: see my comments below on power adapters for an alternate theory about what killed sound.) We are waiting now for the delivery of a cheap ($1.42 including shipping, again from China) 3D Sound USB device which is reported to work on Linux. While some users complain about hum with this device, we re cautiously optimistic that on the Eee it won t be an issue. If it is, oh well, a buck and a half is a small gamble. Display hinge The plastic posts that hold the anchors for the machine screws for the hinge are fragile. Three out of four of these posts in my Eee have shattered, leaving the left hinge to float freely. For the past two days I was distressed about how I could fix this. Based on some helpful suggestions from #eeepc @ irc.freenode.net, I had worked out a plan to rebuild one of the posts with two-part epoxy, sand it and the fractured stub of the post, and use cyanoacrylate glue to affix it to the case. It sounded like fiddly work for which I didn t hold much hope of success. But this morning, I realized that the plastic in the bottom of the case was still sound, and that I could drop a screw into that hole, and with pliers, line up the anchor on the other side. This appears to work! I ll handle that hinge with care, but it should do me until I eventually repurpose the machine to some daily use that is less stressful on the hinge than daily travel on the bus. SSD and SDHC Some people were initially worried that the limited write life an SSD meant that you needed to take special measures to avoid its premature death, which I have always regarded as a myth. Our 4G SSDs each have no swap space, and ext3 filesystems. At the two year point, there are no problems. I expect our SSDs to outlast the other components. We did, however, eventually find the 4G to be a bit on the small side. We now each have Kingston 4G micro-SDHC cards for a bit of extra capacity for large media files and for some extra space for the apt cache. I recently priced the Lexan version of this card at $19 for a two-pack at Wal-mart, and these seem to work in the model 4G just as well (which seems to be an issue with this model not all SDHC cards work). Memory We found the 512M that came with the 4G somewhat constraining. Without any swap space (so we could maximize the space available on the small SSD) we decided our systems really needed a memory upgrade. At the time, 2G didn t seem overly expensive (though I no longer remember the exact price) so we splurged on 2G for each system, even though that was probably more than we needed. Power adapter When I first wrote this article, I forgot to mention the power adapter. The model 4G uses an unusual 9.5V power adapter for which it is hard to find a generic replacement. This unit is prone to fail in two places: in rare cases, (one out of 6 units that I have in some way assisted with: 3 of them mine, 3 belonging to others,) it will break at the wall plug end. The plug swivels into the unit for easy storage, but this adds a point of failure. More commonly, (in 3 out of six of the units,) the wires at the netbook plug end will fray due to stress on the non-angled cord, leading either to no connect, or to a short. In fact, since in the case of my wife s adapter, the netbook end of the cable shorted, making the cable heat up and the system spontaneously shut down after a little while, we can t say for sure whether the overheating of the Eee took out integrated sound, or whether this short did. On the one hand, I know for certain my own system, which never suffered a short, has responded to overheating by making the sound flaky, but it has never taken out sound completely. On the other hand, shorting the power cable can t be very good for the Eee, so who knows, maybe that s what ultimately killed my wife s Eee s sound. This is where it helps to have soldering skills, or a friend who can do the repair for you. In my case, it was the latter. While I was waiting for a replacement adapter I had ordered, we also found on eeeuser.com part#s for replacement plugs and sleeves from Digikey, total cost $20 including shipping, 10 pieces each. Cutting off the bad plugs on three units and attaching the new was a quick, straightforward operation, and succeeded in two out of three cases. Having carefully checked the failed repair, we deduced that the failure in that unit was at the wall end, and we judged there was nothing further we could do to try to save it. Even the unit that had previously shorted was returned to perfect health and has been in operation trouble-free ever since. Conclusion After over two years of continuous use, the model 4G has held up well for a $400 system. We definitely feel we have received our money s worth of value over that time. All of the problems we ve experienced so far have been fixable at very little expense, and we expect them to last at least another year before we seriously consider replacing them. In the next several months, I plan to order a high capacity 8-cell 10400mAh battery for my own system so that I can enjoy a 5-6 hr run time. The purchase will be roughly $55 including shipping, the most expensive purchase for my system to date, but still well worth it to extend the 4G s lifespan for another year or more.

6 February 2010

Cyril Brulebois: G-I, part 4

A picture is worth a thousand words: A slightly longer story follows, resuming from the previous episode, where Gtk seemed to be working. Making sure Gtk actually works Since the udebs are quite fat already, I decided to put the contents of the gtk2.0-examples package into a new revision of the new libgtk-x11-udeb package. gtk-demo was running fine (if one forgets that this demo application is really easier to deal with if one uses a window manager), although image handling was broken. Julien and I spent quite some time double-checking that the libpixbufloader-png.so plugin was present; that both previous DirectFB-based udeb and new x11-based udeb were very similar; that configuration was generated properly; we went so far as to include strace in the netboot image, and to check the configuration file was open() d, but the plugin was never to be even looked for. All this resulting in a Unrecognized file format message every time. Josselin, our Messiah, enlightened us: although Gtk was previously using some configuration files to determine which pixbufloader plugin to use, it still continues to access those files but relies on a MIME database in the end. Installing the host s /usr/share/mime/mime.cache database did the trick (we have a proper fix pending), and all of a sudden, we got image support (which is needed for the logo_installer.png displayed on top of every screen, as well as for some icons during the installation, like the final one). Tweaking d-i itself Julien took care of rootskel-gtk. It was mostly about: Another easy step was cdebconf. Mostly: search and destroy on the few bits using DirectFB. An interesting issue we had was that even though a proper cursor theme was installed and made the default, we only had a black cross as X pointer. That s where we learnt it s needed to manually set a cursor for the root window, which can be done this way:
GdkCursor *cursor = gdk_cursor_new(GDK_LEFT_PTR);
gdk_window_set_cursor(gdk_get_default_root_window(), cursor);
gdk_cursor_unref(cursor);
Tweaking gtk2-engines was trivial, just a matter of building against the x11 flavour of Gtk instead of the directfb one. Some substitutions in debian/control and debian/rules, and that was done. Julien also took care of tweaking console-setup so that keyboard-configuration s and console-setup-udeb s postinst scripts call setxkbmap when $DISPLAY is set. Meaning we were able to replace kbd-chooser with console-setup-udeb, leading to a correct setting within X right after having selected the layout! Reverting d-i s r61645 (which disabled Gtk-based d-i images) was trivial (although while looking back, it was probably unnecessary), and after having messed around with the packages lists (there s a lot of local udebs at this point), especially to add some fonts, we managed to get an image which seems to work fine (at least in my VirtualBox environment). I tried Chinese, Japanese, Arabic, and French installations, and all of them seem to work fine (installed systems were bootable after an installation in the selected language) while issues were limited to some rendering or translation glitches, which didn t seem critical at all. Next steps Since there were some iterations, and since the trial-and-error approach was chosen, the first goal is to generate clean patches against all modified packages, and make sure a single walk through all packages in a clean chroot is sufficient to generate a working d-i image again. Once that done, which should probably considered (at least, I hope!) quite a good base already, the idea is to look into the various udebs to see whether there are some parts that could be disabled (maybe introducing a trimmed-down flavour especially for the udeb in some non-flavoured-yet libraries), so as to reduce the size of the resulting image. In the meanwhile, one can fetch the current hand-built netboot image by browsing http://people.debian.org/~kibi/di-x11/. It s only available for amd64, and weights 23MB. There s a sha256sum as well as a detached GPG signature in the same directory.

5 February 2010

Andrew Pollock: [life] Dean's Award for Sarah

Sarah got a piece of mail today from USQ, with a very ominous "Do Not Bend" on it. It turns out because she averaged a 6.5 GPA in semester 2, she'd qualified for a special Dean's Award for Outstanding Academic Achievement, and will get a mention on the University's website and in a bunch of newspapers. I'm really proud of her. Unfortunately, she had to withdraw from semester 3 (the Summer semester) study because all of the baby's brain stuff came up right towards the end of semester, and that on top of moving and trying to renovate was just too much for her. She's intending to take Semester 1 off, because the baby's due right around exam time, and then resuming study in Semester 2.

4 February 2010

Andrew Pollock: [geek] On trying to buy a 19 inch rack

The first time we looked at this condo that we ended up buying, I looked at the cupboard under the stairs, and could visualise a small 19 inch rack in the lower part of it, with all of my computer gear in it. When we got structured cabling installed, I had the CAT-6 cabling terminated onto a basic 19 inch patch panel, with the intent of mounting this in a rack. Then it became a case of trying to find a rack. My favourite junk shop, Weird Stuff, didn't have anything that wasn't full height, so I started looking around online. There's certainly a lot of variance in price. I settled on a 26U Intellinet rack from New Tech, because based on the dimensions on the website, it would fit in the space I had in mind. When we assembled it, it became obvious that the dimensions quoted were the inside dimensions and not the outside dimensions, and it was about 4 centimetres too tall. In hindsight, I should have figured that out. 26 x 1.75 is 45.5. This is where I must give a shout out to New Tech. Sarah called them up, explained the situation, and they agreed to take the rack back, and sent us some shipping labels to ship it back. We managed to find a more simple rack, a 20U Middle Atlantic, which arrived today, and was significantly easier to put together. The only downside: no rear mounting holes. I don't think it'll be a huge problem, though. All I'm planning on mounting in the immediate future are the patch panel, some sort of cable management, a Catalyst switch, and a power strip. At some point in the future, once we stop spending money hand over fist, I'll look at getting a rack mountable server to replace the hodge podge of computers I'm currently running. What I wish we'd discovered about two days ago, was the Lack Rack. This would have been perfect (and so much cheaper).

Gunnar Wolf: ber-redundant paperwork

 ber-redundant paperwork
So I finally got off my lazy butt and started the paperwork to get a formal recognition of studies equivalence for a undergraduate studies (Licenciatura en ingenier a de software) via CENEVAL's Acuerdo 286 (licenciatura). Part of the paperwork involves filling the form I photographed and attached to this node. This is the utmost example of ber-redundant paperwork... Where it requires my personal data, some of the fields are:
CURP
Clave nica de Registro Poblacional, Unique Populational Registration Key. This is a string composed by:
  • WOIG: First letter and first vowel after the first letter of my first family name, first letter of my second family name, first letter of my given name
  • 760427: birth date, yymmdd
  • H: Sex (H = male, M = female, I guess)
  • DF: State or federative entity I was born in
  • LSN: First consonant after the first letter of the first and second family name and of the given name
  • 03: Deambiguation digits
So far, so good.
Age
Well, cannot it be deduced from the CURP? It has my full birth date!
Sex
Well, cannot it be deduced from the CURP? It is a specific field in it
Birth date
Man, you already have it literally on top of the field!
Nationality
This tramit is only for Mexicans, so... what's the point?
Birth place
The CURP states already the state or federative entity I was born... But I'll accept this one, as not all states have only one city as DF does
Quite a nice catalog of redundancies. As a cherry on top of the cake, the phone number states I should write my long distance phone code (LADA historically, Larga Distancia Autom tica, Automatic Long Distance) only if I am in any of the states. I can only ask myself why... Anyway... Lets continue filling paperwork. Grah. Hopefully I will be able to get my papers... somewhen in the next half century.

Next.

Previous.