Search Results: "mckinstry"

22 November 2008

Alastair McKinstry: Bringing the Brompton to the UK

Brompton S2L bike
On turning forty, some buy a Ferrari: I got a Brompton bike. A bit more practical (have you seen Galway's roads?), but still fun. I've spent a fair bit abroad this year (ten weeks away on various conferences and working weeks, not including numerous visits to Dublin), lamenting the easy transport while i'm visiting some nice cities. So, the Brompton. I got the S2L model, the lighest 'standard' model, and the Brompton bag for carrying it aboard planes. I also got the lighter cover and saddle bag, but that has not been as useful as I thought it would be for travelling by train. The Brompton bag, at 2.4 Kg is recommended for planes; its 5 mm padded nylon, quite study (and you can pack socks, etc around the bike, allowing a little extra carrying).

read more »

Tags , ,

20 November 2008

Alastair McKinstry: One of Those Codes

--3177-- VALGRIND INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - exiting
--3177-- si_code=80;  Faulting address: 0x0;  sp: 0x402A9FD40
valgrind: the 'impossible' happened:
   Killed by fatal signal
   ==3177==    at 0x3801FDEA: unlinkBlock (m_mallocfree.c:190)
   ==3177==    by 0x38020CAE: vgPlain_arena_malloc (m_mallocfree.c:1055)
   ==3177==    by 0x38035516: vgPlain_cli_malloc (replacemalloc_core.c:101)
   ==3177==    by 0x380022F5: vgMemCheck_malloc (mc_malloc_wrappers.c:182)
   ==3177==    by 0x38035BA7: do_client_request (scheduler.c:1158)
   ==3177==    by 0x380372B1: vgPlain_scheduler (scheduler.c:869)
   ==3177==    by 0x38051B59: run_a_thread_NORETURN (syswrap-linux.c:87)
This code has already killed one debugger (Intel DB) and sent strace into an infinite loop of segfaults. <Sigh />. Tags , ,

18 November 2008

Alastair McKinstry: Hubble open for Business

Just as life was getting frantically busy, and as catdynamics predicted, Hubble is back open for business with a Supplemental Call for Observing Proposals. So an idea I bounced off my supervisor has rebounded with a deadline attached. Fun predicted. Tags , ,

1 October 2008

Alastair McKinstry: The Night Sessions, by Ken MacLeod

"Are you saved ?"
"yes"
"Are you prepared to die ?"
The Night Sessions, Ken MacLeod's latest novel is set in the near future, after the "faith" (or oil) wars, when religion is barely tolerated by political society, distained and tainted; and the police and state have a policy of 'official non-cognisance' of religious activities. It's a police thriller, where the victims are, apparently, being killed for their religious beliefs.

read more »

Tags ,

22 June 2008

Christian Perrier: Console stuff not a secret, just neglected

Marc, from my experience, there is no 'secret' in the console-tools/kbd migration work. Just low involvment of all parties. I have watched the work on console handling stuff in Debian for a few years now, and my conclusion is just that nearly nobody cares about it now. I do maintain console-data that provides console fonts and keymaps. I took it over slowly from Alastair McKinstry (the console-tools maintainer mentioned in Marc's blog entry) because that involved maintaining localization of keymap names....that are used and visible in the installer. Ideas to switch the installer to console-setup and related tools are floating around. Just not achieved...because of lack of motivated manpower. Progress was made because of Anton Zinoviev and Colin Watson's work, but the project is currently hosed on a quite critical choice: About console-tools being installed by default: this is the consequence of it being Important while kbd is Extra. I think it should be up to kbd maintainers to push the change up. But this brings us back to the initial remark: indeed, now nobody cares about console handling, particularly when it comes at handling non-English environments. Those who still use the console in Linux environments apparently all do it with US keyboards and an English locale. For sure, kbd is more maintained than console-tools so, at least, we should switch to it. Funnily, our installer (even the graphical version) *still* relies on console keymaps during the installation process and, therefore, we rely on mostly unmaintained stuff here (people who think that I maintain console-data are plain wrong: I just keep it surviving...:-))

10 June 2008

Alastair McKinstry: Little Endian problems

#include <stdio.h>
#include <sys/types.h>
int main(int argc, char *argv[])
 
#ifdef LITTLE_ENDIAN
	printf("Little Endian defined\n");
#endif
 
On Linux/x86, this prints outputs little-endian. Unfortunately it also does so on the IBM BlueGene (Linux, GNU Libc), which is, by default, big-endian. (Thanks to my colleague Honore Tapamo for discovering this). It turns out that this is due to <sys/types.h> including <endian.h>, which has:
#define __LITTLE_ENDIAN 1234
#define __BIG_ENDIAN    4321
#define __PDP_ENDIAN    3412
/* This file defines  __BYTE_ORDER' for the particular machine.  */
#include <bits/endian.h>
   #ifdef  __USE_BSD
   # define LITTLE_ENDIAN  __LITTLE_ENDIAN
   # define BIG_ENDIAN     __BIG_ENDIAN
   # define PDP_ENDIAN     __PDP_ENDIAN
   # define BYTE_ORDER     __BYTE_ORDER
   #endif
   
   #if __BYTE_ORDER == __LITTLE_ENDIAN
   # define __LONG_LONG_PAIR(HI, LO) LO, HI
   #elif __BYTE_ORDER == __BIG_ENDIAN
   # define __LONG_LONG_PAIR(HI, LO) HI, LO
   #endif
We're working on a code at the moment that has LITTLE_ENDIAN defined in Makefiles on Little-Endian architectures. This all needs to be changed to something like IS_LITTLE_ENDIAN to avoid this issue. POSIX requires that all symbols beginning with an underscore, followed by a Capital letter or another underscore, are reserved for "the system". Unfortunately the reverse does not appear to be true, and this then is a collision with a symbol that programmers thought was unique to the code being defined in system headers but with different meaning. Is there a standard for detecting byte order? There doesn't appear to be in POSIX. Linux / libc provides __BYTE_ORDER but what other Operating Systems does this work on ? Tags , , , , ,

6 May 2008

Alastair McKinstry: IPv6 would save 300 Megawatts ?

An interesting discussion appeared over on the NANOG mailing list, based on the article, Up to 300 Megawatt Worth of Keepalive Messages to be Saved by IPv6? This points to an original study by Haverinin, Siren and Eronen at Nokia that shows how much energy is used via "keepalive" messages sent in VoIP, Instant Messaging and other systems, in order to satisfy NAT. In order to maintain connectivity through a NAT router these systems need to keep sending messages to stop the NAT router closing the connections. With IPv6 this would no longer be necessary. It turns out the power requirements are quite significant. There is good work happening elsewhere in Linux and elsewhere in IT, to minimise the amount of energy wasted, such as the Less Watts project. But perhaps its worth doing an audit of the protocols we use, to see what energy savings we can use? Tags , , ,

2 May 2008

Alastair McKinstry: CO2 reconsidered

Just up on arxiv.org this week appeared Warming the early Earth - CO2 considered, by von Paris et al. Just a preprint, and i'm working through its 53 pages now, put its likely to put the cat among the pidgeons:
Abstract: Despite a fainter Sun, the surface of the early Earth was mostly ice-free. Proposed solutions to this so-called "faint young Sun problem" have usually involved higher amounts of greenhouse gases than present in the modern-day atmosphere. However, geological evidence seemed to indicate that the atmospheric CO2 concentrations during the Archaean and Proterozoic were far too low to keep the surface from freezing. With a radiative-convective model including new, updated thermal absorption coefficients, we found that the amount of CO2 necessary to obtain 273 K at the surface is reduced up to an order of magnitude compared to previous studies. For the late Archaean and early Proterozoic period of the Earth, we calculate that CO2 partial pressures of only about 2.9 mb are required to keep its surface from freezing which is compatible with the amount inferred from sediment studies. This conclusion was not significantly changed when we varied model parameters such as relative humidity or surface albedo, obtaining CO2 partial pressures for the late Archaean between 1.5 and 5.5 mb. Thus, the contradiction between sediment data and model results disappears.
The suspected composition of the eary Earth (the Archean, when life is believed to have started, 3.8 to 2.5 billion years ago), has alternated between CO2 and other reducing gases, such as methane. Originally CO2 was thought to be the main greenhouse gas, making life possible. However the high CO2 levels required were a problem; high CO2 levels would have created siderite (FeCO3) in the top layers of soil as iron interacted with CO2 in the oxygen-free air. Since then methane has top billing as the greenhouse gas responsible, with significant hydrogen levels a possibility. Over time, methane has come out on top. And thats what I wrote when I did my literature review for my PhD. Now I'm tidying it up a bit, and that section may be in for a rewrite. But what does it mean for our Climate change models of today? Tags , ,

30 April 2008

Alastair McKinstry: Solar Panels

Solar panelss on the South side of the house
So, the solar panels are now installed, and heating. We're getting the water in the tank heated to around 50 C on these grey days; (there is also an electric immersion coil to heat to 60 degC as necessary, at night-rate electricity). They heat a 300L tank in the utility. The panels are grant-aided by Sustainable Energy Ireland, and we reckon they'll pay for themselves in 5-8 years, depending on water usage with three kids. Time now to see what the actual savings are. Tags , , , ,

3 April 2008

Alastair McKinstry: OOXML: Time to defend standards

After the April fools joke that wasn't, the hangovers have cleared and OOXML has passed. Unless it is successfully appealed, it will become standard in 2 months. Thankfully, it is being appealed. If you can, lobby your national standards authority to appeal and stop this. All around the blogosphere, people have been slating ISO for passing this. While a lot of irregularities happened to pass it, for which the ISO should be ashamed, we need to be aware of one thing: ISO is on the good side, folks: we want standards. Most people who are involved in ISO, want good standards. Microsoft don't. Those on ISO committees felt worldly wise about corporate lobbying: they'd seen it before. They were used to companies lobbying them to rubberstamp their technology as an international standard. But Microsoft were playing a different game. They don't want standards. They already have their monopoly. They don't even want their formats to be standarised. They want to be able to change them every release, and force another sale of Office 2010,etc. What they want to do is trash the idea of standards, and they're succeeding. ISO was used to being the battleground, the referee. Instead it was the target, and didn't know how to cope. This battle is like the Celts fighting the Romans. Used to cattle-raids-as-warfare, they hole up and defend themselves when the Romans come marching in, and expect the Romans to give up in a day or two when their 'cattle raid' fails. Instead the Romans dig in for the long siege, and win, while the Celts look on puzzled, and lose. We need to retake ISO and defend it. I set up the iso-codes project within Debian several years ago to minimize the number of country and language lists out there. Now with OOXML it appears we have to also track the Microsoft list, and incompatabilities, as OOXML requires it. Ditto with DrawingML instead of SVG, and a wholew host of other standards. Standards committee work is hard and boring. But if we don't get involved theres a lot of boring coding ahead, just tracking Microsoft. Time to join the National standards committees, somehow. Or should we lobby ISO to join as an international body? Tags , , ,

7 February 2008

Alastair McKinstry: Oops. pyblosxom strikes again.

So, those on Planet Debian may have noticed, I've moved my blog into git, which went fine. And 'git-cloned' it on the laptop for editing, which worked. And then 'git-checkout' on the server. Which didn't. Bang. All the modified times were updated. The solution, it appears, it "metadate". Which I'm implementing ASAP. UPDATE: The code for the plugin is not at the URL pointed to in sourceforge, but google says its here. Tags , ,

Alastair McKinstry: Fun Filenames

Ok, some interesting output from a build script of a nameless code I'm working on:
...
scanning lib[10].a ...
scanning lib[11].a ...
scanning lib[12].a ...
scanning lib[13].a ...
scanning lib[14].a ...
scanning lib[15].a ...
pgf90 -Wl,--start-group ./master.o -L. -l[1] -l[2] -l[3] -l[4] -l[5] -l[6] -l[7] -l[8] -l[9] -l[10] -l[11] -l[12] -l[13] -l[14] -l[15] -Wl,--end-group -llapack -lblas
./lib[2].a(cprep1.o)(.text+0x181d): In function  cprep1':
...
Next time, think of someone trying to find these interesting files. People using regexps, ok ? What do these 'libraries' contain, anyway ? Tags , ,

Alastair McKinstry: Preprocessor abuse : chapter 2 of lots.

Those who program C are used to seeing function / subroutine definitions in header files. Not so in Fortran, there people use the C pre-processor to put Header files in subroutine definitions. Don't try this at home, folks. Again, names changed to protect the afflicted ...
subroutine  funmame( param1,
	      param2, param3,
#ifdef FOO32
	     foo, bar,
#endif
	      param7, param8, 
#include "basarg.h"
	     )
Remarkably, basarg.h included:
	C Comment.
	param5, param6,
#ifdef SOMETHING
        param10, param20,
#endif
There were in fact dozens of parameters in basarg.h.. And even a higher.h that included basarg.h but had more parameters ... Tags , , ,

Alastair McKinstry: Comment-free code

Often looking through old code you find yourself wishing for more comments, or even more correct comments. Rarely, less comments. But looking at some code I'm debugging at the moment at work I found the following bizarre idiom (details changed to protect the afflicted) ...
#ifdef DOC
C  Some fortran comments.
C  Yes, ordinary comments, nothing fancy like preprocessor directives, but if you want
C  your code without a paragraph explaining what it does, you can just preprocess it
C  and remove it.
C 
C Perhaps they'd expected that their fellow developers would write essays in the
C source code that would make it hard to follow, but then, you'd still need to edit
C the full source code to debug and develop it, right?
C
#endif
Tags , , ,

Alastair McKinstry: Plan ahead.

Bollards being built in Dublin
Some workmen in Dublin, adding bollards to the Irish Financial Services Centre. Thanks to John Murphy for this photo. (P.S. For the confused, the Bollards are fixed, not removable. Their job appears to be to prevent people from parking where the van is ...) Tags

Alastair McKinstry: Back from Holidays

Chocolate lion Cormac and Caoimhe at a patisserie with Chocolate lion in Concarneau, Brittany
So, I'm back from Holidays, to find we now have a new Government in Ireland. (An unexpected choice of government, of which more later.) We were camping in Fouesnant, in Brittany; Family & Friends might like to see the holiday snaps here). Camping in France went well. With three children aged 7, 4 and 2, there is only so much you can expect from a family holiday. Like it or not, you have to mind the toddler fairly consistently, and the older kids would like your full attention too. This is a holiday ''for'' the kids; plan also a break ''from'' the kids later (a long-weekend, with kids at grandparents, for example). This was our first time camping abroad, and its well recommended. While we went touring with a camper van with the two older children two years ago, this is different in that we were at the campsite for almost two weeks: the kids got to meet and play with others in a way they couldn't before. Also, there were good facilities at the site in Fouesnant, and the swimming pools in particular were appreciated (Caveat emptor though: there were no lifeguards or supervision. We went off-peak, and there were apparently two accidents in the time we were there: a broken kneecap and chin when people came down the slides too soon after others and collided). It was the first time the children (a) had pocket money to spend, and (b) were able to walk to a (campsite) shop to spend it. Lessons were learnt in the finiteness of pocket money, especially by Caoimhe :-(. The weather was fairly good: two wet days (though not overly so, compared to what we're used to in Galway); enough to give the 'authentic camping experience'. And for the children especially, just warm enough. Long drives South were not an option with young kids, and we wanted to see Carnac and Brittany in general. We went touring to two places: Mont St. Michel, on the way down, Carnac, and locally around Quimper and Concarneau. At seven, Cormac is beginning to be old enough to enjoy this, but Sadhbh at 2 is too young, and easily aggravated. Caoimhe can appreciate some of it, such as the well recommended Breton museum in Quimper, seeing the local costumes and clothing is just her style at the moment. We're looking forward to going back when the kids are older, or we can enjoy touring on our own. The camp site is dominated by English / Dutch / Irish. It is still term-time in Britain and Ireland, which meant the children on the site was full of 2-4 year-olds, with a shortage of playmates for Cormac. Next time, synchronise with English school times, etc. We went during Cormacs term-time because it was much cheaper (1000 Euro) than high-season. If Cormac was having difficulty in school things would have been different, as it is, we had no qualms in doing so. Things will probably be different next year with Caoimhe also in school at the same time, and we would go later. Suffice it to say I think synchonisation of school timetables is a bad idea, as it has led to these huge price differentials and parents taking their kids from school. As a friend with experience of the French school system points out, they've spent the last 40 years desynchronising their timetables ... So would we go again, or buy our own tents, etc? possibly. The brochure for next year arrived already, with large discounts for booking early ... Tags , , , , , ,

Alastair McKinstry: Climate Challenge

So its the holidays. Have you played Climate Challenge yet? (via Micheal Bernstein at antipope.org). Tags ,

Alastair McKinstry: Christmas Logic

So, Christmas started at 4.30 AM this morning. After persuading the kids it was a false alarm (literally), we all managed to stay in bed again 'til 5. Then the chaos struck. Photos for the family available soon. But, its the children who turned out (surprise) to be less sleep deprived. Presents of new clothes and finger paints don't mix: who'd have thunk it? And in the afternoon, as the adults tried to sleep off the feasting, the kids notice that Santa is now at home asleep, not looking at who's naughty or nice ... Tags , ,

Alastair McKinstry: New domain name under Jabber?

I've changed the domain name of my blog, etc. from scealnetworks.com to sceal.ie for various reasons: its shorter, I'm doing almost no networking work these days, and I've (personally) no intention of becoming an multi-national corporation in the near future. Still got the old domain, though, and heres the question: does anyone know if its possbile to redirect Jabber XMPP IM from one domain to another (e.g. in a 301-style redirect?) And also, here's a new Technorati Profile. Tags , ,

Alastair McKinstry: The Curse of Oil

Jaldhar Vyas points to the rogues gallery of oil producing states and argues that Neoconservatism is good, well at least it gets rid of the dictators such as Saddam Hussein while it grabs the oil. As he ightly points out, we are researching new alternative energy sources, and just as importantly (or even more importantly) energy conservation. But we have been doing this for decades. Sooner or later we have to realize that the "Oil Crisis" isn't due to a shortage of energy sources: its due to deliberate politics to make us dependent on oil. Peak Oil is "only" a crisis for us consumers, dependent on oil to drive our cars, heat our houses, and supply our food. For oil companies, it means (1) they are shipping oil at a greater rate than ever before, (2) at higher demand than ever before, and (3) in circumstances where pesky politics like OPEC can't interfere and try and moderate the price down (I'm not arguing OPEC or cartels are good; its just that its long-term 'maximize the benefit for the oil producing nations' strategy interferes with oil companies shorter-term profit maximization). For the Oil Companies, its a good thing. In this context we have to see our current dependence on oil as the result of deliberate policy by the oil companies. The small filip that USanian governments have done towards alternative energy, such as funding Hydrogen fuel-cell research, nuclear power, etc. are so long-term, and so small in scale, that they have to be seen as deliberately not solving the problem. Thinking that research into alternative sources is good is gpoing to save us (disclaimer: as a scientist I think research is a good thing :-)) is missing the real problem. Its politics: the oil companies have simply been better at politics than the strugging alternatives; we need to recognize this, and fight for alternatives. When oil prices reach $100/barrel, and we struggle to pay rising food and energy bills, its because other have deliberately caused the crisis. Oil has often been called a Curse because of the effects 'Oil Wealth' have caused so many countries. They are not co-incidentally dictatorships; Saddam Hussein remained in power in Iraq for so long because it benefitted the West (see the weapons supplies to Iraq in the so-called "Iran-Contra" affair, for example). Ditto Saudi Arabia, remaining 'friends' of the USA despite its ties to 911. Overthrowing Saddam Hussein was about consolidating even more power in the Gulf than America had previously, not democracy. What was planned for Iraq was democracy in name only: all real power was already neutralised, with decisions to US benefit cemented in place before the parliament met: non-negotiable contracts already signed giving US companies control. This is straight imperialism, and cannot be considered democracy or a good thing. Tags , ,

Next.

Previous.