Search Results: "storm"

18 January 2007

MJ Ray: Is this storm coming for you?

One of the bad things about moving to live in the west country is that we are now on the front line of any storms that leave the Atlantic for England. To make matters worse, we are on a hillside and some idiot put the boiler vent facing into the prevailing wind, so I have to relight it at least once each bad storm. Today's storm is the worst yet. Average wind speed is reported by TV as 35mph, gusting over 70. Anything that wasn't bolted down or very very heavy and hadn't already been blown away has now gone. I keep going out quickly to do things like add weights to the bin or wedge one of the garden tables against the fence, but I don't feel like fixing my bicycle and riding to town along the coast today. On the first trip out, as I was checking the roof for damage, one of the neighbours' six-foot fence panels flew off. On the second trip... well, this used to be a fence on the other side of the path by our back wall: Photo of no fence Now it's just a concrete post surrounded by debris. If this is part of the storm heading for Erich Schubert then I think Munich has done the right thing.

Thijs Kinkhorst: On government crisis response

I'm here at university centre de Uithof. The government is advising against any travel due to a 10-11 Bft storm passing over the country. Earlier today, a tall crane collapsed onto one of the university buildings here, leaving luckily only a couple of people wounded. Since there's food and heating here, I'll just stay for now. The Ministery of Interior is boasting about its new initiative: a crisis website meant for situations where normal government websites cannot keep up with the high load: www.crisis.nl. According to the ministery, this website can handle "10 milion of visits per 5 minutes". The website performs very badly, being more down than up. A closer inspection seems that the site is using some content management system based on cold fusion. The website is also illustrated with nice pictures. I wonder where the ministery has sourced its advice. What about serving simple, static HTML pages (perhaps generated from some CMS)? How about not creating a lot more load with superfluous illustrations? Just a few ideas.

Erich Schubert: A major storm is heading our way, according to weather forecasts

This is the first time I can remember, that the university is recommending to not hold lectures and go home early. They are expecting the ministerials to formally close the university, like they did with schools at noon. This will be the strongest storm we've had in years, apparently (well, others have been similarly strong I think, but not as big). It's now 15:18, and when I look out of the window it's still surprisingly quiet. The trees are moving, but only slightly. But it's the wind protected side of the building. The university warning email said that they expect public transport - and Munich has a huge public transport system - to stop service at 18:00 "the latest". Guess I won't be able to go dancing tonight then. It would start at 19:00, and I need about 30-40 Minutes by subway to go there. I guess they will shut down subway to make sure noone gets stuck in the tunnels if there is a power loss. Such huge storms are a threat to power supply. [Update: 21:08 you can tell now it's a storm, but it's not bad here. But all train traffic is stopped in bavaria, grounding a few hundred people who didn't make it home in time. They've been taken care of. In Munich, busses and the subway are supposedly still in service. I went to go dancing, but there was a note on the door it's closed tonight; same for the karate training of a friend. From what I heard in the radio there were only few fatalities so far and limited damage, but we havn't reached the peak of the hurricane yet. Few reports of blackouts in some small towns. Schools remain closed tomorrow.] [Update: 19. Jan, noon - trains apparently still aren't back to schedule everywhere, but the system is recovering. Not many major damages reported in the media and not many fatalities. It's still windy. IMHO it was "typically german" how we handled the hurricane, urging people to stay at home and not risk much...]

16 January 2007

Evan Prodromou: 25 Niv se CCXV

Early this morning we finally had some snow here in Montreal. And now it's coming down like crazy. It's been flurrying all day, and we have about 20cm of snow out on the ground now. My second cousin Micaela came in from Toronto today on the Viarail line. Micaela is 25 and just finished her honors year in university in Melbourne. Now she's taking a little while off for a trip around the world before settling back down for a master's degree in art curatorship. Her father and my father are cousins, and although we don't get to see our Australian family that often, we stay in close touch for holidays and big events. It's nice to know they're down there. I had a crazy time getting downtown to the train station to pick her up, though. The snow was thick in the air and on the ground -- I don't think the snowplows were ready for this storm. They've been unimportant for most of the winter, so I assume they were used as traffic barriers or temporary police cars or something. In any event, getting around Centre-ville today in a car was pretty crap. Once we got home and got settled, though, it was nice to get out in the snow. Micaela has only been in snow once before -- in Italy, of all places -- and was pretty awestruck by the weather. So we piled Amita June onto her sled and walked through Parc LaFontaine down to L'Anecdote, a good diner in our neighbourhood. Amita loooovved being on the sled in the snow -- she was giggling the whole way. tags:

12 January 2007

Eddy Petrișor: TDebs - some hours later

... and some brainstorming to think/rethink/remember ideas discussed in Extremadura, and now there is another proposal for tdeb implemenation on the wiki.

Comments, ideas are welcome.

Now I am off to bed.

4 January 2007

Russell Coker: monitors for developers

Michael Davies recently blogged that all developers should have big screens. This news has been around for a while, the most publicity for the idea came from Microsoft Research where they did a study showing that for certain tasks a 50% performance increase could be gained from a larger monitor.

If you consider that a good software developer will get paid about $100K and it's widely regarded that in a corporate environment the entire costs for a worker (including management, office space, etc) is double their base salary then you consider each developer to be worth $200K per annum. Therefore larger and more monitors could potentially give a benefit in excess of $100K per annum (we assume that the value provided by the developer is greater than their salary - apart from the dot-com boom that's usually the case).

It's quite obvious that you can get a really great monitor configuration for significantly less than $100K and that it will remain quite current for significantly more than a year (monitor technology advances comparatively slowly so a good monitor should last at least four years).

Some time ago I researched this matter for a client. I convinced all the managers in my area, I convinced a bunch of colleagues to buy bigger monitors for their homes (and bought one myself), but unfortunately senior management saw it as a waste of money. I was trying to convince them that people who were being paid >$100,000 should be each assigned a $400 monitor. Sadly they believed that spending the equivalent of less than a day's wages per employee was not justified.

If I was in a management position I would allocate an amount of money for each developer to spend on hardware or conferences at their own discretion. I would make that amont of money a percentage of the salary of each employee, and I would also allow them to assign some of their share to a colleague if they had a good reason for it (EG if a new hire needed something expensive that would exceed their budget for the first year). I think that people who are good programmers are in the best position to judge what can best be done to improve their own productivity, and that allowing them to make their own choices is good for morale.

On a more technical level I have a problem with getting a big monitor. I do most of my work on a laptop because I travel a lot. I don't travel as much as I did while living in Europe but still do a lot of coding in many strange places. I started writing my Postal benchmark in the hotel restaurant of a Bastion hotel in Utrecht during one of the worst recorded storms in Europe (the restaurant had huge windows and it was inspirational for coding). I wrote the first version of my ZCAV benchmark in Denver airport while waiting for a friend.

What I need is a good way of moving open windows from my laptop to a big external display and then back again. I don't want to logout before moving my machine. With a Macintosh this is quite possible (I'm using a OS/X machine while working for a client and the only thing that has impressed me is the monitor support). With Linux things aren't so easy, it's supposed to be possible but I haven't heard any unqualified success stories yet.

I guess I could try setting up XDMCP between my laptop and a desktop machine with some big displays and logout before moving.

Any suggestions?

29 December 2006

Evan Prodromou: 8 Niv se CCXV

We had a great day on the coast yesterday, just the three of us -- Maj, me, and Amita June. We drove over Highway 92 from my parents' place in Los Altos Hills, a pretty steep and winding highway, down to Half Moon Bay on the peninsula's coastline. We were going to head up to Montara Beach, one of my favorite places in the Bay Area, but it's a bit of a drive and we had plans to be back in Mountain View for dinner. So instead we turned off at the nearest coastal access -- Venice Beach, right in HMB -- and parked for a little beach time. Unfortunately, the strong winds and storms that we've had in the Bay Area this week have also caused higher-than-normal surf. We couldn't actually get to the beach from our parking lot -- Frenchman's Creek was blocking the staircase down to the sand. We think it might have been diverted by the high surf and winds. Anyways, we had to walk about 20 minutes out of the way to actually get down to the beach. Which was, of course, fantastic. I don't think there's anything quite like a Costanoan beach on a December day. The Bay Area's Pacific coast is quite unfairly ignored by most visitors, but a drive down scenic Highway 1 from SF to Santa Cruz can give a really good idea of what most of coastal Northern California is like -- from Santa Barbara up to Eureka. Venice Beach has nice yellow sand, Amita June loved running through the sand in bare feet. We chased seagulls (Amita tried to talk chicken-language to them: "bok bok bok!") and kicked around a soccer ball we'd brought. The surf has been exceptionally high, and it was probably pretty reckless to do, but the tide was going out, so we took off our shoes and dipped our feet in at the top of the sand. Amita loved seeing the waves come in, and running away when they got close. After a lot of playing and a little bit of a tantrum when we decided to leave, we all headed to lunch at the Distillery in Moss Beach. The Distillery is a California historical site -- an old speakeasy, built on the peninsula's coast in the 1920s when Canadian rum-runners would drop off their wares under these remote cliffs. It's kind of hard to find -- down some teensy residential streets on the ocean cliffs -- but it's a local landmark. The view was excellent and the food was great -- I had a big tub of steamers, and Maj had a really good plate of seaweed-wrapped prawns. The only problem was the wait -- we got there just as the lunch rush was starting, and didn't leave until after 3PM. That would have been nice for a romantic lunch for two, but with a one-year-old you're on a pretty tight schedule. Back over the Coast Range and down again to the introspective Bay, we took long naps then headed over to brother Andy's house for turkey soup and some family time. I dunno if there's any kind of tired like sun-and-wind tired from the beach. tags:

19 December 2006

Paul Wise: 18 Dec 2006

[RV Heraclitus SE Asia voyage: blog photos] The past few weeks, we changed our route to visit an uninhabited island (aka Ko Pulau Island) said to be "National Geographic, man" by some Americans we met in Kupang. On the way to Ko Pulau Island we saw a large school of pilot whales and dolphins, a humpback or other whale close to shore, a blue starfish and hot water vents nearby on the same mostly dead reef, a flock of birds feasting on a dense school of fish, a manta ray, a bonfire on the beach shared with the kids of Rote (who we swapped roast banannas and coconuts with), a clean hull and renewed sea-sickness. At Ko Pulau Island, we saw a long white beach made of small bead things instead of sand, with surf at either end and reef in between, a green lagoon with islands being eaten away at the base, a monkey-head rock, pink coral, reef fish, sea urchins, various pieces of flotsam washed up on the beach (flip-flops, a light-bulb, bottles, wood, burnie-beans, nautilus shells, a seabird egg, a dead seabird and other crap), sunset over the ocean with golden cirrus in the sky, turtle nests, tracks and hatchlings scurrying off into the water, Indonesian fishermen in need of water and turtle eggs, tidal pools with the occasional crab, ghost crabs darting towards the water, a pandanus stand, a small cave surrounded by discarded turtle eggshells, spinifex, hermit crabs, scrambling lizards, sunburn and other things. Later in our voyage, we saw a big lone flying fish, land looming mountainous on starboard, TNI, gratis reef fish, water buffalo and threatening rain clouds. The next major stop was a bay on the south side of Sumba, black cliffs to port and an eroded hillside to starboard. There, we enjoyed the excellent snorkeling against the cliffs and off the beach, birds calling from the forest, wasps - shiny blue and otherwise, meeting roaming cows in the forest, forest fungi and other sights. We met some fishermen and drove through the forested slopes toward a nearby city. On the way, we visited an Indonesian village and saw their traditional animist temple, ample baby pigs & dogs, tons of kids trying to get in photos, satellite dishes and graves in front of houses. Unfortunately, I crashed once we reached the hotel, missing eating and night life, but I did enjoy the sights from the windows of the cramped 4WD we were in. We headed for the 9.8 knot passage of Selat Sape, complete with eddies, currents, a barracuda and the steep slopes of a silent volcano. Since there, we saw an increasing number of interesting and curious Indonesian vessels, fish traps, the grey shapes of dolphins swimming in the aqua water under the bow, a floating sandal, a school of mahi-mahi jumping out of the water, a misty night, numerous schools of feeding fish, entangled luminescent trails left by dolphins swimming in the phosphorescent water beneath the bow, flashes of lightning in the distance, our first rain since Cairns, the associated storm, Jack the fisherman (a mast hallucination) and other things. Our next stop was Kalimunjava (north of Java, Indonesia), more than half way to Phuket. We spent a week there, watched lightning, collected rain, visited the local school, dived and snorkelled on the magnificant reef with some really nice university students (hi Lely, Dudu, Jaos and others) from Java who were doing a study on the corals and hiked up the steep slopes of the island. From there we ambled past Borneo, towards Bintan, near Singapore, experiencing the first non-calm seas in ages, dolphins in the storm, floating lines of debris, big barges, container ships and megatankers, a fancy, shiny yacht, fishing vessels with 50,000 lights, Rain Drop and it's egg (child of Rain the gecko), amazing cloudscapes at sunrise, throughout the day and at sunset on the way. Amazingly, we met the 8 (Infinity, the new PCRF vessel) one find day in the South China Sea on their way to Bali. Eddie saw them from 5 miles away and knew almost straight away it was them. Michelle came on board and a lone daytime cumi (squid) swam between us as we parted. Before we arrived at Pulau Bintan (near Singapore), we saw seasnakes and a palm tree floating and lots of wind and rain. We will probably arrive in Thailand by January and I'm thinking of passing thru Sydney on the way home, so let so please mail me if you want to meet up.

4 December 2006

Evan Prodromou: 12 Frimaire CCXV

My work permit in Canada expired on December 1 (that's 10 Frimaire for you French Revolutionary Calendar fanatics), so I needed to renew it. It's possible to renew these things by mail, which is worrisome and time-consuming, or even to go into an office in Montreal (near-mythical, crowded, reportedly ineffective). I've never liked doing either, so whenever we have to deal with immigration, our family drives the 50km down to the border with the US. They have a big immigration facility there, and if you drive out of Canada and back in again, they have lots of nice officers in bullet-proof vests to deal with any immigration issues on the spot. It's called "driving around the flagpole" here, but Maj and I try to make a trip out of it when we have to go. So we drove down to Lake Placid in the Adirondacks last Friday morning -- sufficiently distant and different to seem exotic, without being too far away for a weekend trip. Plattsburgh, the nearest American town to us, is, well, kinda boring. We've spent a day in Burlington (Vermont) before, and that was pretty fun, but we wanted to try something different -- so Lake Placid it was. Friday was a crummy day for a drive, though -- there was snow and freezing rain in equal measures, so the roads were a little dangerous. The hood of our car kept building up this several-inches-thick icy-snowy mass that I was afraid would rip off the hood and go careening into the dark, so I kept stopping to chip it off with my handy ice scraper. Once we got down to the Adirondack park, though, the rain was just a regular drizzly non-freezing kind, and we could actually enjoy the scenery. The roads in were remarkably small -- hard to believe that not one but two Winter Olympics were held at this remote location. When we got to town, we took a look around at the main drag -- a single street that fronts onto Mirror Lake and points directly into the Olympic centre. We stopped at the Great Adirondack Brewing Company for a late lunch, and had a nice crabcake and caesar salad with roasted shrimp. Maj is a little squeamish about eating seafood in the mountains -- with good reason, since she's been burnt before -- but we both ate up anyways, and it was real good. Amita June had a grilled-cheese sandwich that came with french fries shaped like little happy faces. Awww. We then went to check into our motel, the Wildwood Inn. I've got a weakness for a certain kind of woodsy mountain motel -- lots of wood paneling and alpine flavor -- and I especially like paying motel prices. The Wildwood was just what I like -- clean, inexpensive ($65/night), and charming, with a nice view from our room out onto Lake Placid proper. It also had a nice big indoor heated pool complex and free WiFi. (On that subject -- why is it that so many motels in North America now have perfectly acceptable free WiFi, but major hotels in big cities charge you $30/night for crummy WiFi with complicated authentication schemes that take half an hour to configure? Is it just because the big hotels charge too much for everything, or is it because they know they can rake business travelers over the coals and it all will go on the expense report? It makes me really mad to pay for WiFi, and it makes me extra-mad that it's usually so complicated and of such poor quality. Anyways.) We took a big nap and went out after dark (4:30PM) to look at the town and get some dinner. Unfortunately, it was still raining big fat cold raindrops all over downtown. The ski season was supposed to start this weekend in the Adirondacks, but with all the rain they canceled opening the runs, and with the bad weather and no skiing the town was pretty empty. Most of the restaurants we passed were closed, and when we eventually got to one, the Black Bear, we were the only people there. The Black Bear turned out to be really nice. They had a good selection of organic vegetables and seafood nicely prepared but not too fancy -- what we Californians call "California cuisine". I dunno what anyone else calls it. Amita liked it because they had a big chalkboard on the wall and she spent most of her time running between our table and the board or drawing big jagged marks on the wall. That night the wind and storm howled outside our motel room -- I dreamed the place was falling down. When we got up in the morning, though, there was a light dusting of snow on the ground outside -- the first one of the season! Maj and Amita June went outside on the motel lawn to play around -- Amita doesn't remember last winter, I don't think, so snow is new all over again for her -- and I went to clear off the car. Then we went downtown to get some breakfast. We shopped for books (I bought James Fenimore Cooper's The Pathfinder) and winter gear (Maj almost but didn't buy some boots) walking up and down the main street in the light snow, then piled into the Soulshine Bagel shop for some bagel sandwiches and coffee. The food was good -- the bagels were thick and doughy, not like the little Montreal bagels I've grown fond of -- but the place only took cash, and we hadn't gotten out any American money yet. Oops. They were nice enough to take our Canadian cash, which earned them a decent tip, and then the three of us walked back to the car in the snow, Amita trying for the first time to catch snowflakes on her tongue. After our nap, we went out with good intentions to go visit the Olympic Centre and get ourselves a little bit of cultural value from the trip, but the early dark and our darker natures drove us instead to the Lake Placid Pub in a residential area right by Mirror Lake. The Pub was great -- really good beers (I liked the 7% Ubu Ale) and fine pub-grub. There was a table of kids next to our table, and they had a little table barbecue on which they were making s'mores. They kept handing Amita their extra graham crackers, which she noshed contentedly. This morning we went to the Saranac Sourdough deli and bakery for an early breakfast. It was right across highway 86 from our motel, and they had great pancakes. I had a big spinach-crab frittata with sourdough rye toast -- really satisfying. We took the long route back to Montreal -- west through Saranac Lake then north up to Malone (New York), a little town on the Salmon River with a big collapsed mill in the middle of downtown. By the time we got down to Malone, all the snow was gone, and it was back to that bitter snowless winter look all over the place. Malone had some nice architecture, but we ducked into the homey Nancy's Village Diner for some lunch. Then out onto the road again, through Chateaugay and Mooers and back to the border after a brief stop at duty-free. Our immigration issues took about an hour -- that was pretty good turnaround -- and we were on autoroute 15 back home to Montreal pretty quick. Not far from the border, though, the snow started coming down hard, and by the time we got to the St. Laurent river it was sticking to the road, making driving a little hazardous. But we managed to get home OK, glad for a nice little weekender. tags:

24 November 2006

Randall Donald: A Year of Pushing

As of yesterday, I have been at my current workplace, Push72, for one year. There have been a few ups and downs along the way and my job has changed somewhat from being strictly a programmer to doing mostly system administration now. The environment reminds me of Stormix where my co-workers became good friends. Here's hoping for another good year!

15 November 2006

Matthew Palmer: Severe Discomfort's "The Joy of UDP"

(For the grammar Nazis out there: no, that apostrophe is not misplaced)
There are times when a connectionless protocol almost doesn't seem worth the hassle. Take, for instance, the troubles of a round-trip communication, using UDP, where the initial request is sent to a secondary IP address on an interface. Your code, on the server, might look like this:
 s = UDPSocket.new
 s.bind('', 12345)
 loop   data, remote = s.recvfrom(65535); s.send(data, 0, remote[3], remote[1]  
This is a pretty simple Ruby fragment which just reflects your UDP packets back at you. It really doesn't get much simpler than that. Connect to this thing from somewhere else (using nc -u remoteip 12345) and you can reflect packets back and forth to your heart's content. Or so you'd think... When talking to a regular IP address, your packets probably look something like this (when viewed using tethereal):
 192.168.0.1 -> 192.168.0.2 UDP Source port: 35716 Destination port: 12345
 192.168.0.2 -> 192.168.0.1 UDP Source port: 12345 Destination port: 35716
Fantastic -- I send a packet, and get one back. In netcat, you see whatever you typed printed back out again. But, what if I add a secondary IP address to the server's interface (ifconfig eth0:1 192.168.0.5, for instance) and try sending packets to that IP address (with nc -u 192.168.0.5 12345)? I get this insanity:
 192.168.0.1 -> 192.168.0.5 UDP Source port: 35772 Destination port: 12345
 192.168.0.2 -> 192.168.0.1 UDP Source port: 12345 Destination port: 35772
And of course, no self-respecting network stack is going to accept a packet back from a totally different IP address, even if it did manage to get the ports right. Hence, the client never sees the return packets, and thinks that the server is snubbing it. What's happening here seems insane, but it's actually just a regular artifact of a connecntionless protocol like UDP. You see, we've bound our socket to the "any" address (the empty string in the call to #bind tells UDPSocket to bind to the "any" address -- no, I don't know why either, it's not a particularly intuitive interface). When we get the packet into our app via #recvfrom, we get no information on what address the packet was actually sent to, only that the OS decided that the packet was for us (yay for encapsulation). The only information we get is where the packet was coming from -- and due to the fact that the kernel keeps no connection-related information around for the socket (the kernel figures it'll hold us to our connectionless pledge), when the time comes for us to send a packet back, we have to explicitly say where we want that packet to go -- that's the remote[3], remote[1] arguments in the #send call. The brain-leakage starts when we work out where to say the packet is coming from. When we send the packet, a source address needs to calculated -- again, the kernel keeps no information on source or destination because we're connectionless. Because our socket is bound to the "any" interface, the OS thinks it has carte blanche to set whatever source address it likes. In Linux, the behaviour appears to be to pick the IP address set on the primary alias for the interface that will be used to send the packet out on. So for the common case (one IP address per physical interface) everything is fine. But those corner cases, gee, they're awfully sharp and pointy... The solution, of course, is to send the packet out through a socket that is bound to the particular address you want to use as the source address -- then the kernel knows what source address you want, and there's no confusion. Seems pretty trivial, right? Surely every sensible network application does that already, right? So obviously Ruby's UDPSocket implementation just sucks. That's what I thought, and I don't blame you if you think so too. But before you raise pitchforks and storm the gem-covered castle, try repeating our little experiment with some other widely-used UDP-based applications, such as net-snmpd or your ntp server. (The NTP server is a little different, in that to trigger the problem you need to start it and then setup the interface alias, for reasons I'll explain later). Both net-snmpd and ntpd exhibit the same behaviour as our trivial UDP echo service -- at least, the versions present in Ubuntu Breezy do, although I can't imagine everyone's suddenly cottoned onto this problem in the last 12 months or so and come out with a rash of fixes. So, basically, everyone seems to be suffering from the same malady. For values of "everyone" that equal "some UDP servers". There's some services that don't seem to have such troubles with alias interfaces -- the Bind DNS server comes immediately to mind, and ntpd works fine if you start the NTP server after you setup the interfaces. Why the difference? These services are clever and bind to each IP address on the system separately, like so:
 $ netstat -lun  grep :53
 udp        0      0 192.168.0.1:53          0.0.0.0:*                          
 udp        0      0 192.168.0.5:53          0.0.0.0:*                          
 udp        0      0 127.0.0.1:53            0.0.0.0:*                          
This is very cool, and solves the problem, except that if you add another interface after you start Bind, it doesn't pick up the new address, and you're boned until you restart the daemon. It also increases code complexity a bit, since you need add a select into your request handling loop (instead of just blocking on the #recvfrom call, like I've been doing thus far). Whilst I'm never happy about unnecessary complexity, I'll deal with it where I have to, but the real killer for this application is the "you can't change your interfaces after starting the daemon" rule -- my particular need is to make requests to a virtual service IP address, and restarting my service after each IP address change is going to suck hard. I mentioned ntpd earlier because it has some extra trickery at work. It's list of bound interfaces looks like this:
udp        0      0 10.6.66.6:123           0.0.0.0:*                          
udp        0      0 192.168.250.6:123       0.0.0.0:*                          
udp        0      0 172.14.16.6:123         0.0.0.0:*                          
udp        0      0 172.31.62.1:123         0.0.0.0:*                          
udp        0      0 192.168.37.179:123      0.0.0.0:*                          
udp        0      0 10.64.64.64:123         0.0.0.0:*                          
udp        0      0 127.0.0.1:123           0.0.0.0:*                          
udp        0      0 0.0.0.0:123             0.0.0.0:*                          
It listens to every IP address explicitly plus the "any" interface. I'm not quite sure why, either -- just listening to the specific addresses works for Bind, and if you add an interface alias after starting ntpd, it exhibits exactly the same problem as the trivial UDP echo service, so I don't think that listening on "any" is really gaining it anything. Listening on "any" does make ntpd behave differently to Bind: with Bind, if you send packets to an interface that wasn't available when Bind was started, it just completely ignores you (because it lacks a socket listening for packets to that address), while with ntpd the packets hit the "any" socket and suffer from the wrong-source-address bug. At the moment, my best chance of a solution appears to be to follow Bind and ntpd's lead and hook onto every address, but with the extra twist inspired by ntpd -- listen on the "any" address as well as all of the specific addresses. If I use any packets that arrive on the "any" socket as a trigger to rescan the available addresses (to add any new addresses that have been created since the last scan), that should solve all my problems. Now I only need to make it work (and deal with the insanities that will no doubt result). Wish me luck. The screams of pain and frustration you hear (no matter where you are in the world) are probably mine.

5 November 2006

Stefano Zacchiroli: versioning etc w bzr

Versioning /etc with bzr for fun and profit Since mid October I rented a room to Godog, here in Bologna (erm ... Italy :-)). Living with another DD so far has been utterly fun: our lives proceed normally, but when we occasionally met it's like hack time: brainstorming and implementation of the first hackish ideas that come to mind. The first idea we deemed nice to be implemented has been versioning /etc of our server (which we co-administer) with bzr. The requirements we set forth where:
  1. who is changing stuff should be somehow forced to document and commit its changes;
  2. automatic changes performed by package upgrades should be automatically versioned.
Our current solution consists in a couple of hacks: What's next? Well, Enrico already set forth the idea of an housewarming bug squashing party with all DDs living in the Bologna area. Sounds cool!

4 November 2006

John Goerzen: Desktop Linux Opinions?

I'm brainstorming about ways of setting up Linux desktops machines for people used to Window users on a LAN. It could be any size of LAN.

I'd like people to be able to sit down at any Linux machine on the LAN and log in -- probably use a LDAP directory for that, and NFS-mounted home directories. I wouldn't want to NFS-mount the entire thing for performance reasons.

So, some of the things I'm thinking about are:


23 October 2006

Evan Prodromou: 1 Brumaire CCXV

First day of Brumaire -- the foggy month -- today, and the Montreal weather seems bound and determined to fulfill the promise of that gray name. The day of pomme (apple), which reminds me that we&aposve wanted to go apple-picking in the Autumn since we arrived in Quebec a few years ago. But something seems to push us inside on October and November days. Locals say that the best way to confront Winter is face-first, getting outside and being active in the snow. I&aposm not sure; it&aposs never worked out that way for me. We had snowfall a couple of days ago; in the middle of a rainstorm big wet clumps of snow started falling from the sky. I was working out at the gym around the corner from our house, and people in the weight room went to the windows to watch the snow fall. Halloween is the traditional day for the first snow for Montrealers; more than a week early was kind of fantastical, like a long-odds horse winning a race. tags:

Mo&apos blogging I can&apost say why, but my production has dropped off precipitously on this blog in the last week or so. Partly it&aposs had to do with an increased workload; also, being out of town for two long weekends in wt:Hudson (New York) and wt:Halifax (Nova Scotia) threw me off my pace. And I&aposve felt some pressure to cover these trips and other things going on in my life, which has kept me from writing short sharp posts. But mostly I think it&aposs a case of keeping up a feedback loop for myself. When I&aposve made a blog post, I watch for responses on Technorati or Planet Debian. I add one more thing or one more post. I get in the habit of blogging and then it comes more naturally in short bits and movements. I guess it all comes down to the typical but hard-to-remember suggestion: if you want to do something, you have to do it. tags:

BarCampMontreal Montreal&aposs BarCamp event turned out to be even better than I anticipated. I got up late on Saturday morning and I wasn&apost at the downtown location till quarter to 10. It was held in Fred Ngo&aposs swing dance studio, Cat&aposs Corner, on the power-centre block of 400 Ste.-Catherine. The studio had tables and chairs and a reception area set up, and it turned out to be a great venue -- lots of room and a big feeling because of the mirrors on the walls. I got there just in time to catch Chris Hand of Zeke&aposs Gallery give an excellent talk about collecting art and participating in art culture in Montreal. Not only was it extremely informative, but it charged me up to be more involved in Montreal&aposs art scene. It also set a great tone for the rest of the day -- talks at the event ranged from alternative voting systems to art and research projects to technology surveys to demos of new products and Web sites. It kept the entire thing really fun and refreshing -- different parts of your mind used at different times. I was glad to see that Heather Kelley and Damien had come; I&aposd made a point of inviting them, so it was good to see their faces. They did one of the first presentations, about their upcoming games-and-art event, GAMMA, at SAT on 9 November 2006, straddling the gap between the industry-oriented Montreal International Games Summit and the gamer convention Festival Arcadia, not to be confused with Montreal&aposs other top export, The Arcade Fire. Man, games are hard. Anyways, they demo&aposd a game they&aposre developing for GAMMA in which the gameplay action responds to arbitrary musical input; they&aposve got several teams of developers who are putting together games to fit this criterion. Interesting concept, fun and cool. There were a ton of great discussion, but I think my favorites for the day have to include Hugh McGuire&aposs talk about the excellent Librivox project; Anne Goldenberg&aposs presentation on Wikigraphe, which I&aposd seen before but which continues to boggle; Austin Hill&aposs discussion about raising money and building Zero Knowledge; and Sylvain Carle&aposs talk about successful consulting. The best part of the talks was that I came away feeling smarter and with new projects I wanted to work on. S bastien Pierre&aposs demo of data-mining del.icio.us tags in revealicious made me think hard about wp:data clustering algorithms (something I&aposve wanted to work on for a while). Patrick Tanguay gave a great talk about co-working setups in other cities, with the aim of starting one here in Montreal. As a near-independent worker who&aposs getting tired of his home office, this was a pretty fascinating idea, and I&aposm hoping to follow-up. And Simon Law&aposs talk about Web 2.0&aposs negative influence on Open Source software gave me a lot to chew on for my visit to the Web 2.0 Conference coverage I&aposm doing for Linux World. All in all, I thought the event was the best that BarCamp has to offer. Montreal has such a rich technology and Internet culture, and some of the smartest people in town were at the event. All our major tech sectors were covered, and people interested in hacking, yakking, and entrepreneurship were in a nice balanced attendance. We were all in one room together, which kept up a good atmosphere, and we had only 15 minutes per talk, which kept things well-varied and interesting. If I had any criticisms, it would be merely that I can think of so many people I wish had been there. There are a lot of women involved in Montreal technology and Internet culture who weren&apost in attendance, and Montreal&aposs majority francophone community was underrepresented. But I think those are outreach problems that need to be handled for the next time around. Fred Ngo is already talking about BarCampMontreal2, which may or may not be coordinated with RecentChangesCamp. Yesterday&aposs Montreal Gazette had an article called Geekfest comes to town which featured a photo of Heather and Damien in the print edition. Simon Law got an excellent BarCampMontreal photoset on Flickr, and also invited me out to take photos together (fun). There&aposs a BarCampMontreal post-mortem for those interested in a follow-up discussion. tags:

N Dollars... American! One of the funny things about Canadians is that when they talk about a large amount of money, they suffix the dollar amount with the word American to let you know that it&aposs really a large amount of money. Like, "I just ordered this t-shirt online and it cost me thirty-five dollars... American!" or "He moved to New York and now he&aposs making 85 thousand dollars a year... American!" It&aposs less of a punchline than it used to be -- American dollars used to trade at about 1:1.5 or 1:1.6 to the loonie, but now it&aposs hard to find 1:1.2. Still, Canadians talk about American dollars like D&D players talk about platinum pieces. They&aposre just a qualitatively different currency. I note this because I joked about in previewing Austin Hill&aposs talk at BarCampMontreal, and he did note that they raised $80 million American for Zer0 Knowledge. I had to stifle a laugh during the talk. Austin writes - Hi Evan. Yeah that&aposs funny. I may have mispoke - we raised $55 million american which at the time was important to distinguish because that was $80 million canadian. Just wanted to be clear. Loved your presentation BTW tags:

Project Blackbox Everybody&aposs all abuzz about Sun&aposs innovative design in their new Project Blackbox. It&aposs a datacentre that&aposs built into a big shipping container; whenever you need a datacentre you can just ship one of these blackboxes to wherever you need it. I have to admit that it&aposs an amazing piece of in-your-face metaphor. I mean, when a company is shipping tech jobs overseas, they can make it all the more poignant by actually taking the jobs and putting them in this big shipping container and stenciling "JOBS" on the side and packing it on a cargo ship and sending it off into the sunset. JOBS And you don&apost really use these big containers unless you&aposre shipping something faaar away. If your job is in that box, man, you can just kiss it good-bye, because baby it&aposs gone. Maybe the best way to ship out one of these jobs containers would be to have a big bulldozer that comes through the middle of town, crushing the community infrastructure under its treads, and then picks up the big shipping container full of tech jobs and carries it off to a big ship in the harbour (rolling over some more schools and houses and small businesses) and then sends it off to somewhere crazy and foreign where they keep monkeys as pets as a matter of course. In any case: good job, Sun. I hope this works out great for you. tags:

20 October 2006

Martin F. Krafft: Freeing the primary IP address

I have a machine in Singapore and have been asked to switch it to another IP address (don't ask...). Due to numerous reasons, I do not want to reboot the machine, so I am faced with the task of switching the primary IP address of a remote host via SSH. Fun. In the following remote identifies the remote machine, local the workstation from where the SSH session originates. 1.2.3.150 is the old IP that I have to free, and 1.2.3.200 is the new IP. 1.2.3.129 is the router IP and since it's a /25 network, 1.2.3.128 is the network address. I'll be using the ip command from the iproute package exclusively. ifconfig must DIE! The first step of this endeavour is making sure that traffic to your new IP is not going to be caught by the packet filter. This is simple enough:
remote# ip addr add 1.2.3.200/25 dev eth0
local# nc 1.2.3.200 22
SSH-2.0-OpenSSH_4.3p2 Debian-3~bpo.1
We have thus added a secondary address and verified that it can communicate, at least receive packets on port 22. However, since it is a secondary address, it depends on the primary address and will be removed if you remove the primary from the interface. We thus need to get tricky:
remote# ip addr del 1.2.3.200/25 dev eth0
remote# ip addr add 1.2.3.200/32 dev eth0
Note how we're adding the address with a /32 netmask instead. This makes it independent of the current primary address. Now the fun begins. Close the SSH session and log in to the new IP:
remote# exit
local# ssh root@1.2.3.200
And remove the primary IP; yes, you heard me:
remote# ip route
1.2.3.128/25 dev eth0  proto kernel  scope link  src 1.2.3.150
default via 1.2.3.129 dev eth0
remote# ip addr del 1.2.3.150/25 dev eth0
remote# ip route
default via 1.2.3.129 dev eth0
Gotta love Linux: it saved the default route because it was still reachable from the 1.2.3.200/32 address, and only removed the link-local route. We could stop right here for there is no real reason why this machine should have a link-local route or even know about the network to which it is attached; but we won't... instead, we'll add the new address again (a second time), now with a proper netmask:
remote# ip addr add 1.2.3.200/25 brd 1.2.3.255 dev eth0
remote# ip addr del 1.2.3.200/32 dev eth0
remote# ip route
1.2.3.128/25 dev eth0  proto kernel  scope link  src 1.2.3.200
default via 1.2.3.129 dev eth0
After modifying /etc/network/interfaces, the deed is done. The next time I do this I might consider a safety net of the form:
remote# echo 'ifdown --force eth0; ifup eth0'   at now + 10 minutes
But that would only have been half as fun. Of course it goes without saying that the above comes without warranties, if you try it out, you do so at your own risk. :) NP: Neurosis / The Eye of every Storm Update: It's been proposed to just run:
remote# ip addr del 1.2.3.150/25 dev eth0; \
  ip addr add 1.2.3.200/25 dev eth0; \
  ip route add default via 1.2.3.128
This may well work, especially if run within a screen session (I've had times when the shell did not execute subsequent commands after being cut off from the controlling tty). However, this method does not guard against typoes. Or did you spot the typo in the above set of commands? The method I provided above seems resilient to typos as no command ever affects the current connection.

19 October 2006

Jordi Mallach: Silent home servers

The computer which hosts this host is a venerable Pentium 150Mhz, with 64Mb of physical memory and two decently sized disks. It has been running non-stop mostly without hiccups for several years, and I'm quite happy with it, even if the processing power is so scarce I've been having to tune down some services as Debian has gotten more resource hungry, dist-upgrade after dist-upgrade. Natura is my 2nd oldest Debian install, coming back from Ham, and after a while it became a home server when it was replaced by an Athlon 700Mhz at my father's house. The only hardware incidents are all related to blackouts or storms: two dead disks and one power supply. The CPU died years ago, but I discovered that many months later. I guess it wasn't so necessary. :) It is time to replace natura, though. The components are aging and they have become quite noisy, despite my attempts to cleanup the dust. Lately it is so loud that I can't understand how my dad can actually get work done with that persistent noise in the room. Besides, it'd be good to get just a little bit more of CPU power to do a few things that have been postponed for a while now. I have been looking for offerings in the embedded devices market. I am looking for a device with the following characteristics: I've found that the Thecus YES Box N2100 is one of the most interesting offerings: 2 Gigabit ethernet ports, two internal SATA HD bays, 3 USB ports... but is a bit too expensive: 350 (without disks). tbm also told me to look at some cheaper PowerPC devices, but I forgot the name right now. So, dear Lazyweb, what would you recommend as a natura replacement for a home server?

Jordi Mallach: Silent home servers

The computer which hosts this host is a venerable Pentium 150Mhz, with 64Mb of physical memory and two decently sized disks. It has been running non-stop mostly without hiccups for several years, and I'm quite happy with it, even if the processing power is so scarce I've been having to tune down some services as Debian has gotten more resource hungry, dist-upgrade after dist-upgrade. Natura is my 2nd oldest Debian install, coming back from Ham, and after a while it became a home server when it was replaced by an Athlon 700Mhz at my father's house. The only hardware incidents are all related to blackouts or storms: two dead disks and one power supply. The CPU died years ago, but I discovered that many months later. I guess it wasn't so necessary. :) It is time to replace natura, though. The components are aging and they have become quite noisy, despite my attempts to cleanup the dust. Lately it is so loud that I can't understand how my dad can actually get work done with that persistent noise in the room. Besides, it'd be good to get just a little bit more of CPU power to do a few things that have been postponed for a while now. I have been looking for offerings in the embedded devices market. I am looking for a device with the following characteristics: I've found that the Thecus YES Box N2100 is one of the most interesting offerings: 2 Gigabit ethernet ports, two internal SATA HD bays, 3 USB ports... but is a bit too expensive: 350 (without disks). tbm also told me to look at some cheaper PowerPC devices, but I forgot the name right now. So, dear Lazyweb, what would you recommend as a natura replacement for a home server?

5 October 2006

Zak B. Elep: Unexpected

There was no power again at the office today (thanks to my boss for sounding me while I was laying in bed ;) so I had a pretty free day today. This is the first of my Unexpected Series of Events (although, in retrospect, this is somewhat expected since we did lose power at the office yesterday, giving credence to Clair’s story…) So I spent a little more time in bed, trying to get sleep; but my Mom got me ony my feet, calling via landline all the way from Daet, which just got its power restored a few days prior. She told me that my Tita Mendy will be arriving tomorrow, and she’ll be carrying some of my things too. That’s the second Unexpected. After that I left the house to deposit my second paycheck from work and payment for my second semester at school. A quick trek back home for lunch, and a few pages of Even Grues Get Full after, I went to Robinsons Place to check mail for free (well, not really free since I usually pay for my cup of Java to have a reason for taking a table.) As I’ve come to expect of freebies, free WiFi in Robinsons is rather limiting, as it appears to only allow HTTP ,S connections (yeah, no Yahoo! even for the unenlightened masses!) The bandwidth, in fairness, is fairly decent, allowing for a good audio or video stream to pass through without much lag (as long as its from HTTP ,S .) However, today’s service was extra crappy, as it appears that the WiFi DHCP server went down, and I couldn’t acquire an IP address. It wasn’t much of a problem for me, though: last weekend allowed me to spend a lot of my time hanging out in the place as it was the only place nearby to have seemingly continuous DC power (the storm that passed over pretty much knocked down normal AC power everywhere,) and also gave me an excuse to explore the WiFi network, letting me know such minutiae as the right IP address block and gateway Robinsons Free WiFi used. Hence, even without DHCP, I was able to configure Perlis to connect via a statically-randomly-chosen-by-magic-255-ball IP address. This wasn’t Unexpected. What was Unexpected was what happened next: as I was surfing the Web, I noticed that the other folks nearby were having difficulties accessing the free WiFi; of course, they didn’t have the information (that I had known by simply being observant) that they needed. Nearest to my table were a couple of Korean-looking foreigners and a doctor-looking guy inquiring each other if they were able to connect. I went near them and asked them about it too. Yeah, my deductions were correct; the foreigners (hello, Emma and Jay) were Korean students learning English, the guy (hello, Charlie Atienza) was a dentist, and all of them couldn’t connect to the Net. Windows was choking up on them, since it could not acquire an IP address. So, needless to say, I came to the rescue, and within a few minutes (which included trying to change the Korean’s locale settings to Engrish, which we eventually gave up, and forcing me to hibernate Kubuntu and booting to Windows just to find the right Network Settings menu, duh) I got them to have a working, albeit laggy, internet. I couldn’t get Charlie’s laptop working though, since it seemed to suffer another problem althogether :/ At any rate, meeting new people over this problem was by itself quite Unexpected, but that wasn’t the only thing: Charlie noticed my Kubuntu desktop earlier and recognized it immediately as open source. It turns out that Charlie have seen FOSS operating systems in action via Knoppix, and he knows Dr. Alvin Marcelo (of CHITS fame) and Eric Pareja, and is also quite involved in bioinformatics too. Small world indeed! =) I guess having no power at the office makes for a good adventure, after all. Well, yesterday was quite an adventure in itself (Clair can tell you all that, and more :P ) Today, however, was pretty much very Unexpected, and indeed I’m thankful that so many surprises come my way. The last Unexpected: I forgot to update my phone number on the calling cards I gave away today. :P Oh well…

14 September 2006

Clint Adams: Love4sale

After consulting with my business manager, my publicist, and my wiccan stormtrooper brigade, I have unilaterally decided to make this limited-time offer. For US$15,000, a lucky donor can request stylesheet changes for arch.debian.org. For US$25,000, an enterprising young individual can get the default ArchZoom theme changed. For a moderate surcharge, the donor may secure anonymity, and I will claim that I am acting randomly in Debian's best interests. Any commissioned changes will be locked in for 3 months or until someone else pays more money. Obviously I have to milk the revenue stream here or this won't be a viable business model and I really don't want to have to call this a failed experiment. To anyone who might be calling this idea the height of corruption, I say this: anyone is welcome to do the same thing. If you care enough, just secure your own contracts and go ahead and change the stylesheet yourself. Of course, if you request access to do so, I will have to oppose it for completely-unrelated reasons, and possibly apply for an injunction to prevent the Alioth admins from making any foolish access changes. After all, interfering with my profit potential is a crime here in America. Get your payments in fast!

12 August 2006

Daniel Burrows: Explaining Network Neutrality

One of the problems with network neutrality is that people outside the technology industry often can't follow the arguments back and forth because of the complexity of the terms involved. On my vacation last week, I found myself discussing this topic with my ~80-year-old grandparents. Now, Grandpa and Grandma have no clue about technology, but they aren't dumb; they are both retired educators and follow current events (especially politics) with a strong interest. In my effort to explain just what the fuss is about, I had a sudden brainstorm and came up with the following analogy, which I post here for anyone who cares to use it:


Imagine that your power company decides that it wanted to open a line of supermarkets. At the same time, it sends out an announcement that supermarkets (due to their refrigeration requirements) are particularly heavy users of the electrical system, and as a result, the power company will add a 15% surcharge to the power bills of any building that it deems to be a supermarket. Of course, the power company's own supermarkets are exempt from this fee. When the existing supermarkets complain, the power company says that they're asking for special treatment and trying to get electricity "for free" and that if they don't like its terms, they should buy their power from someone else.


Obviously this greatly simplifies the technical issues involved, but it's the best illustration of at least one aspect of the problem that I've been able to come up with. I've enabled comments for this post, so feel free to add your own suggestions.

Next.

Previous.