Search Results: "Andrew Pollock"

16 August 2007

Andrew Pollock: [tech] Hidden gems in the GNU C Library

I should really read the GNU C Library documentation. Even if only 10% of it sinks in, I'll be that much the wiser for it. Today's (re)discovery: libSegfault.so I actually found this with a co-worker a few months ago, and promptly forgot all about it until he reminded me today whilst I was lamenting about Cfengine segfaulting on me. Here's a lovely self-illustrating example:
apollock@icarus:~$ sudo chmod a+x /lib/libSegFault.so
apollock@icarus:~$ /lib/libSegFault.so
Segmentation fault
apollock@icarus:~$ # Aww
apollock@icarus:~$ LD_PRELOAD=/lib/libSegFault.so /lib/libSegFault.so
*** Segmentation fault
Register dump:
 EAX: 80003f00   EBX: b7ff1ff4   ECX: 00000000   EDX: 00000000
 ESI: bf88b97c   EDI: 800008b0   EBP: 00000000   ESP: bf88b974
 EIP: 00000001   EFLAGS: 00010282
 CS: 0073   DS: 007b   ES: 007b   FS: 0000   GS: 0033   SS: 007b
 Trap: 0000000e   Error: 00000004   OldMask: 00000000
 ESP/signal: bf88b974   CR2: 00000001
Backtrace:
/lib/libSegFault.so[0xb7fd004f]
[0xffffe420]
Memory map:
80000000-80003000 r-xp 00000000 08:02 8589       /lib/libSegFault.so
80003000-80005000 rwxp 00002000 08:02 8589       /lib/libSegFault.so
80005000-80026000 rwxp 80005000 00:00 0          [heap]
b7e61000-b7e6b000 r-xp 00000000 08:02 6254       /lib/libgcc_s.so.1
b7e6b000-b7e6c000 rwxp 00009000 08:02 6254       /lib/libgcc_s.so.1
b7e6c000-b7e6d000 rwxp b7e6c000 00:00 0
b7e6d000-b7faf000 r-xp 00000000 08:02 8572       /lib/libc-2.6.so
b7faf000-b7fb0000 r-xp 00141000 08:02 8572       /lib/libc-2.6.so
b7fb0000-b7fb2000 rwxp 00142000 08:02 8572       /lib/libc-2.6.so
b7fb2000-b7fb5000 rwxp b7fb2000 00:00 0
b7fce000-b7fd1000 r-xp 00000000 08:02 8589       /lib/libSegFault.so
b7fd1000-b7fd3000 rwxp 00002000 08:02 8589       /lib/libSegFault.so
b7fd3000-b7fd5000 rwxp b7fd3000 00:00 0
b7fd5000-b7ff1000 r-xp 00000000 08:02 8569       /lib/ld-2.6.so
b7ff1000-b7ff3000 rwxp 0001b000 08:02 8569       /lib/ld-2.6.so
bf879000-bf88f000 rw-p bf879000 00:00 0          [stack]
ffffe000-fffff000 r-xp 00000000 00:00 0          [vdso]
Segmentation fault
This is somewhat similar to Tridge's segv_handler, which used to be what I reached for in these sort of situations, but that was a bit fiddly to get set up. This is significantly easier, and already installed as standard. Of course, interpreting the output is left as an exercise for the reader. Update Or you can just use catchsegv(1)

15 August 2007

Andrew Pollock: [life] Latest due date...

September 17.

10 August 2007

Andrew Pollock: [opinion] Amazon Marketplace is less crap

After my venting yesterday I received an email from an Amazon employee who reads Planet Debian, and he pointed me at http://www.amazon.com/gp/help/customer/display.html?nodeId=537868, which covers how to make a claim. I've no idea how one is supposed to directly find that page, as it didn't jump out at me when I went looking. I've filed a claim, we'll see what happens...

Andrew Pollock: [geek] Woot!

Got my Linux Fund credit card today. I've been wanting one ever since I moved to the US, but they haven't been accepting applications for a long time. I don't know how the various credit card companies decide what limit they're going to offer people (beyond credit score). Some companies have given me thousands, others only a few hundred. I'd sworn off applying for any more cards just for the heck of it, but hey, this one's got Tux on it!

9 August 2007

Andrew Pollock: [opinion] Amazon Marketplace is crap

I ordered a book on June 26. It never arrived. It appears that Amazon doesn't want to get involved with such disputes at all, and tells you contact the seller. It doesn't tell you what to do if the seller never gets back to you...

Andrew Pollock: [debian] And the winner is...

Gustavo Franco with madison-lite Screw writing something, what I had in mind was something exactly like madison anyway. Pity I didn't think to just use it. Duh. Now if only the repository in question didn't have such an incredibly shite layout, I could achieve what I want to achieve without having to have multiple config files and multiple runs of madison-lite with multiple configuration files.

8 August 2007

Andrew Pollock: [life] It's a small world

I just had one of my former employees connect to me on LinkedIn, and I've always wondered if one of my tenants was related to him, because they shared the same surname. Looking at the former employee's network in LinkedIn, I'd say the answer is yes, given they're in each others networks.

MJ Ray: SPI Elections: Corrections

Well, yesterday I asked
"WTF? There seem to be some 30 or 40 voters who really dislike me, but didn't tell me that straight, preferring to be silent then vote me down. Are you cowards, or what?"
Not the most polite of questions(!), but it's what I was wondering at the time. I had some good replies in the comments and a reply by Pingback that I didn't like, but it turned out to be a very educational reply in the end. A comment from Filipus Klutiero included:
"Sometimes, it's not really possible to explain a bad opinion of someone, because we forget the reasons for that opinion. However, if you think that voting based on reputation is a bad idea, you probably can't understand these "cowards"."
I've mentioned before that I don't seem to fit the debian developers stereotype, so I guess it's not surprising if I don't understand them sometimes. If reputation is always going to be such a big factor, one problem I need to overcome in debian and SPI is that some other participants do make crap up about me. You can usually spot it by phrases like "seems to think" (there are not that many mind-readers out there), but eventually, mud sticks. How to overcome this? Patiently post corrections, or is that futile? Here are posts from Andrew Pollock and Matt Palmer which I think are wrong on several points:- First off, I haven't decided to call anyone cowards - it was a question, albeit a bit "nasty, british and short". The underlying sentiment was continued disappointment and puzzlement at why voters behave like that in a non-secret vote, not rage. It was not really an "outburst," coming a week after the results. I'm not unhappy with the results - I've congratulated the winners by several methods, including the last post, although I mentioned my mixed feelings. Isn't that usual? I think very few non-elected candidates express unbridled joy about the experience. After all, it's not an easy decision to stand, but I did it for two main reasons: shortage of other candidates I really liked, at the time I chose to stand (as I mentioned in my platform); and for practical experience of how Condorcet behaves. I'm not rabid - I've even written against the Rabid Right recently - and I'm not rabidly anti-Google. I had polite chats with various people from Sun, Microsoft and Google at debconf - I don't like those companies, but I don't feel a need to tell their workers that at every point. I think reasons to like and dislike Sun and Microsoft are old and well-known, but a few years ago, I got so bored of explaining why I don't agree that Google is God's Gift to our communities that I posted a FAQ-ish page about it, which I update as I look at its new developments. Let's politely disagree, until Google fix the bugs which brought me to that view. Andrew Pollock's point about debian-legal is vague and maybe fair comment. It's not often a fun or popular thing. But "precious ego"? Ha! Yes, a guy who humiliates himself with cheap stunts for environmental protests is clearly very precious about his ego(!) (Sorry if that's rude, but I find it hilarious.) I don't mind people having different opinions, but it would be nice if their opinions about me were mostly based on reality, instead of misunderstandings. One fair point from Matt Palmer's post and also, I discovered eventually, from Antti-Juhani Kaijanaho's site, is that SPI's elections apparently are meant to be secret, as far as I can tell from the starts of Article Five and Article Seven of the SPI by-laws. I tend to value practice more than theory and the current voting practice is merely confidential, not secret. I think that's part of why I didn't understand the approach taken by some voters - they were treating it as a secret ballot. That's fine and now that I realise it's meant to be secret, I've suggested making it a secret ballot. (2007-08-08: 1 comment)

Andrew Pollock: [opinion] Everybody hates Mark

So Mark doesn't like the SPI board election results and has decided to call the largish whack of people who didn't vote for him and tell him ahead of time or something "cowards". Personally, I'm of the school of thought that if you haven't got anything nice to say about someone, don't say anything at all, but, well, here we are... I forgot whether I put him last, but he was certainly ranked towards the back of the pack. Why? I don't like rabid people. Rabidly anything shows a lack of balance to me. Mark's rabidly anti-Google (amongst other things) (sure, I work for them, but I liked them before I went to work there, otherwise I wouldn't have gone to work there) and frankly, it irritates me. Almost as much as someone else I know being rabidly anti-Microsoft/pro-Linux irritates me sometimes. Balance is good, and I'd rather have people on the board that I know, and I know in a positive light, over people that I don't know, or known I don't like. So I ranked my ballot in reverse order of people I knew I didn't like, then people I didn't know, then people I knew, then people I knew I liked. Simple as that. Oh, and I'm not a big fan of debian-legal, or anyone who purports to be an armchair lawyer on that list. Sorry if that damages your precious ego, Mark. Now get back to bashing my employer, Debian UK, and pontificating about what's allowed to be in Debian. (Oh, and I don't object to you having your own opinion, I object to you restating it over and over and over again. But it's your blog, and you're free to portray yourself to others however you please, just bear that in mind when you go standing in elections.)

Andrew Pollock: [life] Oh, baby!

Today we went to see our new obstetrician. Ironically, he was our second preference (our current, third preference, who hasn't been all that endearing anyway, is going to be out on sabbatical when the baby's due). I think we'd already decided we liked him better before we even met him, but he did come across as a bit more calm and less alarmist. That said, he is currently of the opinion that the baby should be delivered at 36 weeks, which is September 14, which is a few weeks earlier than the date we were throwing around, of October 8 (Sarah's Mum and Aunty arrive on October 6). So that's going to make things interesting. We're seeing him again next week, which is after Sarah's had another echo-cardiogram to see if her aneurysm is still stable. The results of that will help firm up the delivery date. He also said that because the 28-32 week mark is when the heart's working the hardest, we're really in the danger zone now. It looks like we won't be going camping next week after all. The doctor didn't think being 6 hours by car away from home was a terribly good idea.

7 August 2007

Andrew Pollock: [debian] Doing random repository things with Python APT?

Dearest Lazyweb, I want to write a program that I can point at a standard repository, and an in-house one, so I can track version differences between common packages. I wanted to write this in Python, so python-apt sprang to mind, however the documentation is somewhat lacking, and none of the examples include retrieving a package list from anything other than the local APT cache. The documentation in libapt-pkg-doc is also rather lacking. So before I go giving up on using a "proper" library for the task, I thought I'd reach out. Love, and sloppy kisses, Andrew

Andrew Pollock: [tech] Squid 2.6 redirector API change pain

So it seems that Squid changed its redirector API with 2.6. This pissed me off no end once I got to the bottom of a problem related to it at work last week. Squid's had redirector functionality since, oh, last century, and it's a really handy feature, if you want to intercept URLs that Squid's handling, and change them to something else. I've used it in a past life at an ISP to force people to use a local mirror for various things, regardless of where they think they want to go. So for the longest time, the API has been documented that an external program, which Squid will attach to the stdin and stdout of, will receive on stdin four words on a line, pertaining to the URL being requested: the IP address/FQDN of the client requesting it, the username of the user, if they've authenticated to the cache, and the HTTP method being used. All good. So we had an in-house redirector script, which used a regex (^(\S+) \S+ \S+ \S+)$) to determine if it should apply any logic to the URL at all, or just output a newline, meaning no redirection should occur. So along comes Squid 2.6, which changes that API. It now passes in five things on stdin. The changelog has an innocuous "Added to the redirectors interface the support for SSL client certificate" entry, so I presume on a good day, that's what is passed in as the fifth word instead of a hyphen. Anyway, our redirector script started not rewriting anything at all, which made some other stuff break spectacularly. It was most fun in one location, where we had four proxy servers behind a load balancer, and two were running Squid 2.5 and two were running Squid 2.6. Yay for non-deterministic behaviour. So once I'd tracked down the problem, I swore a lot, and changed the regex to be ^(\S+) \S+ \S+ \S+( \S+)?$ and proceeded to rant at anyone and everyone within earshot on how messed up this whole situation was. The thing that is irritating me the most is that this seems to have been a fairly poorly communicated change, as best I can determine. It happened between Squid.2.6.STABLE1 and Squid.2.6.STABLE2 (hmm, stable?). I mean, the FAQ hasn't even been updated. This clearly caught out other projects like jesred that provide generic extensible Squid redirectors, looking at #381984. I wonder if SquidGuard in Debian Etch is busted? So, whilst Squid 2.6 (the release that changed this behaviour anyway) is just over 12 months old, if you haven't upgraded yet, and you have custom redirectors, consider this rant a head's up.

5 August 2007

Andrew Pollock: [tech] I think I've found the one...

I previously thought I'd found the perfect small, low-power system in the Fulong, but that's proving unobtainable outside of China for mere mortals. Then I discovered the Zonbu. Love at first sight (of >= 4 USB ports and PS/2). It's perfect for what I want. The question is, can I readily hack it to run the Linux distro of my choosing? Will ATA over Ethernet suck badly on it? There's only one way to find out...

Andrew Pollock: [opinion] On Kevin Andrews' suspicions of Mohammed Haneef

I've been following this whole Mohammed Haneef thing back in Australia with some interest. The Government seems to have quite the track record for trumpeting some sort of national security thing around an election. First it was Tampa, then it was the children overboard affair, now it's Haneef. I expect this one's backfired a bit. Kevin Andrews keeps coming out and saying it's suspicious how Haneef was trying to skip the country, or it's suspicious how he left as soon as the charges were dropped, instead of sticking around to see how the appeal went. Let's see. If I had a new baby born in another country, that I hadn't seen yet, and I'd been incarcerated for however long it was, I don't think I'd be hanging around to find out the outcome of some bureaucratic bullshit in the country I'm not even a citizen of (but wouldn't mind being able to continue working in). I'd want to go see my new baby. I wonder if Kevin Andrews has any children of his own? We have a track record of having some very cold Immigration ministers. Update It seems I'm not the only one of this opinion.

Andrew Pollock: [life] T minus ~9 weeks and counting...

So, depending on who you talk to, we've got about 9 weeks to go, or maybe 8 weeks. It all depends on whether we can have our way and have a caesarean on the 8th of October. Of course, the baby may have other thoughts on the matter as well... We've had our last planned house guest until Sarah's Mum and Aunty arrive, so we've put the mattress in storage and donated the bed frame to Goodwill. We've acquired a crib (I keep wanting to call it a cot) and a changing table/chest of drawers and put them in place in the baby's room. Last night we bought a car seat. I think the only major item left to get is a stroller. Sarah's pregnancy is still going well. The baby's still extremely active, and has had the hiccups quite a few times in the last week. Apparently that's him trying to breathe. I'm somewhat surprised they don't drown in there trying to do that... Speaking of breathing, our overly cautious obstetrician wanted Sarah to have two shots of steroids, to aid in the baby's lung development "just in case" he was born (or had to be delivered) very early. We felt it was somewhat unnecessary, but thought we'd be kicking ourselves if something happened and we didn't do it. There didn't seem to be any outrageous adverse effects from doing so, so we went along with it. Twice in a week (the second time today) Sarah's had blurry vision followed by a headache, so she called up the hospital today when it happened, and they told her to come in and get checked out. We spent about 4 hours in labor and delivery this afternoon. It turns out the reason they wanted us to come in was because the symptoms could be a sign of preeclampsia. The tests proved otherwise, and they couldn't really offer an explanation for what was going on other than migraines, so they eventually sent us home again. It was nice to get a preview of hospital's labor and delivery ward.

22 July 2007

Andrew Pollock: [life] Best. Ribs. Ever.

It's our second wedding anniversary on Monday, and because Sarah's not been to Napa Valley yet, and because this is probably the last opportunity to spend a bit of quality time away together before the pitter-patter of little feet, we've lashed out for a nice weekend away. We're staying two nights at the Gaia Napa Valley "hotel". It's really nice, but a lot more like a motel in most respects. I really like the environmentally-conscious initiatives they've taken though. I can highly recommend it, and the day spa attached is also excellent. Oh, and they have free wireless, which whilst surprising given how much they charge for things like in-house movies, is also a bonus. It was good enough to make laptop-based VoIP calls with. Today, we drove around aimlessly after our massages, in search of wine tastings (it was handy having a a ready-made designated driver). It seems the wineries here are all into charging for tastings, which in my opinion is a bit of a deterrent (in some cases) to purchasing. The charge varies between $5 and $15. Some wineries seem to refund the cost of the tasting if you make a purchase (which seems like the way to go in my opinion). We stopped for a late lunch at the Rutherford Grill, where I think I've had the most awesomely delicious rack of barbecue pork ribs I've ever had in this country. I cannot recommend that place enough. Apparently their rotisserie chicken is also to die for. We picked up thirteen bottles of wine in our travels this afternoon, so for the first time in ages, we'll actually have something in the wine rack at home. Tomorrow we're going on the Napa Valley Wine Train, which looks like it'll be fun. So now Sarah can say she's seen Napa.

11 July 2007

Andrew Pollock: [opinion] Wal-Mart: The High Cost of Low Price

We finished watching Wal-Mart: The High Cost of Low Price last night, and, well, this user comment pretty much summed it up. It was a fairly poorly presented, heavily one-sided piece of "documentary" work. A lot of their claims we're really backed up with anything. I've no doubt that Wal-Mart is an evil mega-corporation, and we didn't really shop there much before, and we'll certainly never shop there again, but I would have preferred to have a seen a more balanced, better presented piece than what this had to offer. There were a lot of "Mom and Pop" businesses going "wah wah, Wal-Mart stole my lunch", and frankly, that's capitalism for you, sorry. I can appreciate that the "Mom and Pop" businesses may have provided better conditions for their employees, but that didn't seem to be the focus of those stories, just that various governments provided subsidies for Wal-Mart to come in, and all of the local small businesses had to shut up shop as a result. At no point was there any discussion about sales-tax benefits to the cities that provided incentives for Wal-Mart to move in. So yeah, the movie was an eye opener, even when taken with a large salt-shaker, but it could have been done a lot better. The user comments on IMDb are quite interesting in and of themselves.

Andrew Pollock: [tech] The trials and tribulations of trying to be compliant

Just because I'm a geek, I try to keep my blog standards-compliant. I've managed to keep the HTML compliant for some time now, and tonight I figured out how to embed Google Video the right way (rather than using the "HTML" that it provides) thanks to Flash Satay. So after I managed to maintain HTML compliance and have an embedded video, I thought I'd have another look at RSS feed compliance, because I've noticed that my feeble attempts at embedding video don't seem to make it into the various Planets that aggregate my blog. I cannot, for the life of me, figure out how to placate the Feed Validator with my blog's RSS feed. It seems to get bitter and twisted about embedded HTML, no matter how hard I try to escape the HTML. I've no idea if that's got anything to do with why my embedded videos won't show up on the Planets, but it's as far as I've been able to get with compliant RSS feeds...

Andrew Pollock: [life] Sarah made the news

Last night NBC11 was running a story and an email poll about the impending new legislation requiring that all cats and dogs over 6 months of age be spayed or neutered. Anyway, the legislation seems (surprisingly, in my opinion) divisive within the community. Since Sarah has done a lot of volunteer work at the Palo Alto Animal Services animal shelter in the past, as well as doing a bit of feral cat trap/neuter/release work, she's strongly in favour of the legislation as it'll help reduce the number of unwanted kittens and puppies that get dumped at shelters (or just dumped) every year. Unfortunately, plenty of pet owners seem to feel some need to not have their pet spayed or neutered, even if they have no intention of using the animal to breed, and these people have been kicking up a fair bit of fuss. So, as I was saying, NBC11 ran an email opinion poll, and Sarah wrote in a fairly informed piece about why she felt the way she did, and got an email back this morning for a reporter wanting to interview her, and that happened today. It's funny, Sarah was saying on the way home from work, that in hindsight one of her answers was pretty lame, and sure enough, the one sound bite they decided to use was that one... Oh well, she's had her 30 seconds of fame.

27 June 2007

Andrew Pollock: [life] Phase 2 of E-3 visa application in Dublin complete

Hooray! My passport came back in today's mail. That was pretty quick, and quite a relief. Can't wait to go home.

Next.

Previous.