Integrating Google Enterprise search in Opera and Firefox

July 4th, 2008

Ministry Of Sound - Bigger Than Big (Original Vocal Mix)

At work we have a Google Mini search appliance. Now they say that 70% of IT projects are destined for failure, however I’m not sure what their definition of failure is, but the Google Mini is firmly in my 30% camp, and I’m hoping to extend it to all of our global offices with Google Search Appliances building one consolodated enterprise search platform.

Now, one of the more enterprising developers at work developed an xpi for Firefox so that Firefox users could search against our Google Mini direct from their browsers. That was cool, I guess, but in Opera I can simply add a search engine and then search direct from my address bar. I can do that right now by going to the address bar and typing g < search term > to search against Google.

Now, to add a Google Enterprise appliance to Opera is very easy. First, go to your search home page and do a dummy search. A results page will appear with a likely very long URL. Copy that URL.

Now go to Tools > Preferences, then click on Add.

Opera Search Engine addition

Enter an appropriate name, and a keyword that you will remember that also is not being used (feel free to delete any unused ones to free up keywords, such as ’s’ for ’search’) and finally paste your results URL. Now look through your URL for q=whatever your search term was and change it to q=%s leaving the rest of the URL in place, so it might look something like this:

https://search.companyname.tld:443/search?q=%s&site=All&btnG=Search&entqr=0&ud=1&sort=date%3AD%3AL%3Ad1&output=xml_no_dtd&oe=UTF-8&ie=UTF-8&client=default_frontend&proxystylesheet=default_frontend

And that’s it. Go to your address bar and enter < keyword > < search term > (e.g. esg *.doc) and press enter. You’ll be taken straight to the results page of your Google Enterprise Search appliance.

To do this in Firefox is a bit more involved: Go to a search results page and bookmark it, you might like to organise the bookmark into a subfolder in your bookmarks menu. Then edit the bookmark, you might need to click on a “More” button to show the options you need to edit. As above, find your search term and replace it with %s. Then give the bookmark a keyword. That’s it! Test your keyword and some search terms directly in your Firefox address bar to see if it works.

The great news is that you can do this with practically any search engine. Let’s say you have an intranet with a search function that returns URL’s like http://intranet.companyname.tld/search.php?=searchterm, simply change the URL to http://intranet.companyname.tld/search.php?=%s and give it a keyword. Et Voila! You can now instantly search direct from the address bar.

Article Tags>> | | | |

Resourcefulness in the Datacentre

June 28th, 2008

Sting & Eric Clapton - It’s Probably Me

There are times when working in a server room where there is an equipment need that you simply cannot justify in either a business or common sense way. We recently had a project to move all of our fibre optic based equipment to the same rack cabinet, where we could seperate and secure the delicate fibre optic from the network, management network, and power cables.

Unfortunately, most equipment out there is for splicing, which is not what we want. We want a simple way to secure slack and ensure correct bend radius specs are adhered to. We went through a few potential vendors of cable management gear trying to find the best fibre management equipment for our realistically simple needs, and each of them had products, but in the few hundreds of US dollars. To make sure some fibre optic cable bends correctly. Yeah, just let that sink in for a while.

The other problem is that the non-technical people with control of the company purse strings did not consider this a critical expenditure, no matter how often we pointed out that fibre is extremely delicate, very expensive and also the most used equipment at present. And, should it fail, productivity will come to a screaming halt. Subsequently we won’t put out products on time, and people won’t get paid. “It is not a critical expense. My shoes/affair/drug-habit is a critical expense!” *sigh*

Today I went to my favourite hardware store: Mitre 10 Mega, and while buying other stuff for the new house I browsed around to see if anything inspired me. There’s actually a wide variety of options to suit this requirement, including large door handles, surface drainage, pulley wheels etc I eventually settled on some plain wheels, 150mm with a 38mm hub width.

Cutting off the rubber wheels reveals some concave hubs - perfect for keeping fibre in place, and at about the perfect size for a gentle bend radius that is well beyond the minimum spec, while not being too big for the rack cabinet for which it is intended. And the best thing: NZD$22 for two. If your mounting method allowed, you could potentially buy one wheel, cut it in half on a bandsaw (or similar) and use it like that to manage the bends.

My plan is to ream out the holes that I have drilled in the spokes, and use them to pass through some velcro cable ties to make sure that the fibre stays on the spools. I’m still undecided on how to affix it to the rack cabinet - either with a nut and bolt or with velcro, of which we have a large boxful.

Expect an update when this is put into production :)

fibre spools in progress

What cost-saving common-sense solutions have you readers ever put in place in a production environment?

Article Tags>>

Getting ahead at work: The beauty of syslogs

June 26th, 2008

Pendulum - 9000 Miles

So yesterday at work while sipping away at my godawful morning coffee, a ticket came into our fault logging system. Reverse DNS lookups, it said, were a little on the slow side. Oh great, I thought, children dying of starvation in third world countries, I’m all out of whiskey, and all this user can obsess about is DNS response times.

So I replicated the fault. Getting more interested, I jumped onto our primary DNS server and checked top and ps, nothing seemed out of the ordinary, so I restarted bind and watched what happened. For about ten seconds, everything behaved properly, then the lookups slowed back down again.

Double Ewe Tee Eff? rm /home/user/rawiri/sarcasm, now I’m interested.

So I tail -f‘ed /var/log/bind9-query.log and I was surprised to see that our ticketing system server was hammering DNS, trying to lookup for the same IP (192.168.0.15 - important to the story) a few thousand times per second. So I jumped onto the ticketing server, which also doubles as a syslog server, and issued a grep -r 192.168.0.15 /var/log/*

This spat up thousands upon thousands of results, from logs stored there by our firewall, sourced from an IP range assigned to our office in Jakarta, trying to get in touch with 192.168.0.15 on port 2048. Something in Jakarta was hammering our firewall, which was logging this on our ticketing server, which was hammering our DNS server trying to figure out who or what 192.168.0.15 is. Cool.

So I jumped onto the two boxes in our Jakarta office (at about 3am their time) and noticed that our Jakartan IT colleague had setup a peered/sibling Squid proxy configuration, which was very cool, however netstat -ap | grep 2048 on both boxes revealed that Squid was doing the dirty on this port. So I went into /etc/squid/ and issued a grep 192.168.0.15 *, the results were amusing:

wccp_router = 192.168.0.15

Back in the day, we had a cisco router on that IP address, and our NZ Squid server was configured to point to it on the wccp protocol to offer some transparency. That router has been gone for several months now, but the squid.conf was never updated to match this. Our Jakartan colleague had inherited our squid.conf file to setup his first proxy, and that was trying to poll the old cisco router. The wccp heartbeats fell into the background chatter of the firewall logs, and it wasn’t until the peered proxy configuration was put in place that things really started hammering away: the secondary proxy would try to heartbeat via the primary proxy, which would also try to heartbeat, resulting in an avalanche of wccp traffic slamming into our firewall.

Disabling that setting on two proxies in Jakarta, and two proxies in NZ, before restarting squid on the lot and voila! DNS in NZ started behaving again.

That was a pretty impressive catch, well I thought at least. But today I caught out a three-way IP conflict that was preventing a VPN from coming up, as well as an nfsmapid issue that was affecting all of our Solaris boxes, all by watching the appropriate logs. Three big catches, two days.

With these outstanding issues sorted, we were able to hammer away at dependant faults and got a lot of stuff resolved and out of our too-hard basket.

Related: To anyone wanting to try out the Octopussy log frontend on Debian - beware! It’s really designed to be a standalone product. If you install it on a server that has Apache configured for multiple services already, you might find that it will break stuff, remove the default site and rewrite your conf files.

Article Tags>> |

A sad day: The passing of George Carlin

June 23rd, 2008

Pendulum - 9000 Miles

Today was a pretty good day at work, with a lot of smaller jobs out of the way and a whole new feel around the office.

I got home to find out that my counter-culture superhero, George Carlin, had died at the age of 71.

Well, that sucks. He was one of my favourite comedians: I have an extensive library of his work, and I was hoping to see him perform on stage before he passed, but alas, it looks like that’s not going to happen now. Yes, I would have even put up with America’s airport security to see George Carlin at work.

George, if I may call you George, sir, this whiskey’s for you.

A waity weight: How to lose weight in 1 easy step

June 20th, 2008

Dirty Vegas - Days Go By

Weight on a chemists scales on the Champs-Elysées in Paris: 118kg
Weight this morning on my calibrated scales: 93.9kg
Average loss: roughly 3kg a month or so.

Diet: Still as awful as ever, with fast food and junk food, however with an increased metabolism I’m eating smaller servings. Ok, I’ll be honest, I have been having something for breakfast every day, no matter what - even McDonald’s, but usually flavoured oatmeal. The point behind breakfast is getting your body chemistry, blood sugar, protein etc levels up and ready for the day. This causes you to average out your intake over the course of the day, or at least it should.

I’ve also been having slightly better dinners and far less alcohol consumption. So I’m not packing my gut with an over-abundance of starch, sugars, empty carbs/cals or fat.

Exercise: Same as always; the walking during my commute to and from work everyday, so.. maybe 3-4km every day. I’m now even more motivated to get back on the bike though, even taking this morning’s unfortunate news into account.

Weight Retention: Seems to be stable, judging by the other readings on my fangdangled scales. This means I can jump on my bike and shed some kilos quite easily in a short time. This, by the way, is the secret behind the claims on those infomercial exercise machines:

lose a billion pounds in 12 days or your money back!

Yeah… if you start exercising, one of the first things to go is water retention - two to three weeks of rapid shedding followed by a steep drop off in loss, which I think is often a big demotivator - because people see diminishing returns and don’t understand why.

Method:
Step One: Learn and embrace techniques to increase your metabolism.

Article Tags>>

Moved house and still no intergeek

June 18th, 2008

Ministry Of Sound - Greg, Jeroenski & Roog - My Mind is Twisted

Well moving house took no time at all - a lot of stuff went to the Salvation Army across the street, I still have a bunch of stuff in the garage to sift through, but on the whole it went like clockwork.

Except, of course, for the internet connection. We got the WiMax antenna down, but the ability to move the ladder from the old place to the new place eludes us, so I have not been able to get onto the new roof and set it up. I’m posting this from work, because there’s a lull in my otherwise flat-out schedule.

So now I’m waiting on my older brother to get his van back from the shop, because I have to move a rack cabinet as well. Then we can get the ladder from the old place, then I can find a sunny moment to jump on the roof and setup the intergeek, and then all will be well in the world.

I have noticed though that I’m not really internet addicted, life goes on without chatting to people in DC or IM. What does suck though is if I’m potting around the house and I have an idea that I’d like to research - it sucks not being able to sit down and google away. I’ve also noticed that I’m a hypocrite: where workmates bemoaning not being able to access work from home would make me roll my eyes and suggest they get a life, I too have noticed that it’s a lot harder to clear out the night-time emails from my northern hemispherean colleagues.

So, hopefully I’ll get the internet connection back up and running sometime this week, then I can do some updates here

Silencing the DL380

June 3rd, 2008

Concord Dawn - Bitch Killer

I have a HP G2 DL380 which I got to replace a handful of rack servers with one box, and compared to its predecessor, the G2 hardware is absolutely sublime. There was something not quite right about beige era Compaq equipment, and so the G1 came off as simply godawful. Anyway, the other day I got my G2 out of storage so that I could set it up for some testing and development work.

Unfortunately the DL380 sounds like an air raid siren, and doesn’t abide by standard ACPI/IPMI, so there was little chance of getting it to shut up in FreeBSD, unless I ran FreeBSD-5.x or maybe 6 plus taking my chances with compat5x.

Instead I’ve thrown on Debian Etch, grabbed the appropriate .deb from HP - you’re looking for hpasm, but their other packages might be of interest for array diagnostics etc. I dropped this into /root and issued the following:

apt-get update
apt-get install snmpd libstdc++2.10-glibc2.2
cd /root
dpkg -i hpasm-7.8.0-100.etch26.i386.deb
hpasm activate

It will fire up and take you through a scripted setup, simply answer as best you can and it will slow those fans down to a pleasant hum. Now you can go on using your DL380 without fearing attack from the Japanese :)

You may also need to add
/opt/compaq/hpasmd/bin/hpasmd activate
to /etc/rc.local or similar to get this to automatically fire up on boot. YMMV.

Article Tags>> |

My hooves!

May 29th, 2008

When I’m walking down the street and there’s someone nearby - maybe a few paces behind me - with heels on, going cloppity cloppity, this runs through my head:

Is it quite necessary to sound like a horse when walking down the street? You can get good looking non-cloppity shoes these days folks, we have the technology!

Article Tags>>

I don’t update enough?

May 27th, 2008

The Chemical Brothers - Galaxy Bounce

I’ve had a few friends (who lurk but don’t comment!) complain to me that I don’t update this blog enough. Well boo.hoo.
:D
At the end of the day I’m a pretty normal guy - I don’t do anything too outrageous on a regular basis and I don’t particularly think my day to day life is that interesting. Like the rest of you, sometimes things just lull along and I autopilot through each day. I don’t want to be blogging about, oh, I dunno, what colour socks I’m wearing today, because it seriously does get that boring.

I could bitch about work, too, but I try to make it a habit of not bitching about direct issues that your superiors or colleagues could find. I do have some rules of success bouncing around in my head that I might note-blog in a day or two…

So yeah, as the tagline says “quality ramblings” not “I was late for work so I’m wearing the same underpants as yesterday LOL and my cat farted when I closed the front door ROFLGARGLE ramblings”

What am I doing at the moment? Well, I’ve got my friend Layla and her sister Ashley lined up to move into my apartment, so that it stays within the circle. I’ll likely have them be custodians of my lounge suite, or I may even sell it to them. I am about to gift a pair of rack servers and a couple of boxes of components to my local Polytechnic as a follow up to the gift of old equipment at work, this will mean I have to move less stuff to the new house, and will get me a bit closer to my half-arsed goal of minimalism.

At work I have a massive laundry list of projects, most of which are held up by a stupid funding freeze. Yes, I understand that finance folk like to feel more important than they are, and I understand from first-hand experience that ALL accountants are insane (to a varying degree) without exception, but putting on a funding freeze for weeks upon weeks only hinders progress and AFFECTS PRODUCTIVITY. And what happens when there is a negative impact on productivity? THE COMPANY EARNS LESS, MORONS!

I have also been fighting uphill on a couple of projects - where some people who shouldn’t be in on the projects in the first place are voicing silly uninformed opinions like “oh we can save a few thousand dollars here…” Yeah… I’m hired and paid to be informed about things that are critically relevant to this project (hence my inclusion on it), you are not, so kindly STFU kthxbai. When my employer was two seperate small companies a decade ago, being thrifty would have made sense and might have been a rewarding and hackish solution path to take. At nearly 900 people globally, it’s time we stopped shoehorning things together and started investing a little bit more, doing things right from the start and getting a superior Return On Investment.

As it turns out, studying Business Computing did get me in the right mindset for Corporate IT. Now I can beat down slimy little Business Analysts and grease up Project Managers with terms like COA, TCO and ROI until common sense, or my version of common sense, prevails. I do loathe having to talk in pseudo-manglement lingo though, going forward with ROI’s of the redefined paradigm in this space in mind to enable the community through synergy.

Wiiware is out. Nothing interesting on that yet. I purchased Zelda: Ocarina of Time on WiiVC though, but I haven’t played it yet - gotta batterise my borrowed wave controller. In the meantime, I’ve been cranking Phantom Hourglass on my DS-Lite and I’m amazed that the control scheme hasn’t reached the Wii. The use of the touchscreen and gestures was an astounding move.

Finally, for shaving, I was roaming around the Wellington CBD looking for a technical manual for Zimbra (which I am trying to figure out to get it to drop in as seamlessly as possible to our existing infrastructure at work) and I noticed that Kirkaldie and Stains had a Crabtree and Evelyn store, which had NONE of the cool men’s shaving products I had heard about. I went into K&S proper and noticed their pathetic little men’s grooming stand, with no DE gear, and one SE blade from a manufacturer that probably hasn’t even heard of themselves.

They had Taylors of Old Bond St though, who for those of you who don’t know, are absolute legends in wetshaving circles. Sandalwood was a bit much at $75 for a wooden pot of soap (considering it’s 15 quid a pop direct from the manufacturer - or roughly NZD$38), and an extra $75 for the matching Sandalwood aftershave. So I grabbed the $35 Lavendar plastic pot, and man does that lather up a storm: Less than half an almond’s worth and I had enough lather for about three shaves. So it’s going to last for an age. At the same time though, I noticed a New Zealand made product: “Scully’s for Men”, made in Bulls. Now Bulls is not too far from my hometown of Levin, so I felt some kind of odd connection to this, like Foxton Fizz soda. So I got it.

Best.shaving.purchase.ever. At the moment I have Nivea for Men Sensitive Skin, and The Bodyshop Arber aftershave balms, and both are a bit much for my face after a shave. Usually I’ll do the cold rinse to close the pores, then go away for five minutes and come back to do the aftershave to reduce or hopefully eliminate the irritation. This magic elixer goes straight on, doesn’t sting, almost 24hrs later the skin on my face feels amazing, it smells like coke bottle lollies and judging by its ingredients, is probably edible, which will be handy for the impending apocolypse.

If you can get this product, I wholeheartedly recommend it. Even at the pricey Kirk’s it was a mere $15. No disrespect to Taylors of Old Bond St, from Lundun Engalund, but it turns out we can do things better right here in little ol NZ.

Of The Heavenly Father

May 15th, 2008

Willy DeVille - It’s Too Late She’s Gone

Buddy Christ!I was at a bar with a couple of friends earlier, and myself and one friend were recalling some jesus jokes from an improv comedy we saw last week. A very odd gentleman had strutted into the bar and was not far away from us waiting for his tipple. He demanded quite loudly that we not take the lord’s name in vain.

Now, I am Catholic by birth and christening/baptism, I’m dirty filthy Presby by indoctrination (Damn you Religious Instruction class at school! Get ‘em young!) I am agnostic (though more atheist leaning) by choice and Buddhist by practice - believe it or not. I do think that if I swung back to Christianity, that it would be more on the terms of the Gospel of Thomas - the kingdom of heaven within etc I’d have my own dialogue with God, no need for the sheep in a flock superstitious nonsense of churches.

My argument is this:
The Old Testament (that is, the book of the Jewish) has a lot of smite, burning bushes and vengefulness. As I recall it has some 80 or so rules above and beyond (and usually mixed with, depending on your denomination) the Ten Commandments. I personally recognise the George Carlin “three commandments” derivative of the Roman Catholic commandments, any other commandment sets are tainted by any of the other Yahweh rules. One of these rules is about not imbibing alcomohol.

Here is a guy preaching to us about not taking the lord’s name in vain, yet he’s sinning, by Jewish standards and at least one Christian denomination’s standards. Twice the ticket to hell, buddy.

Then there’s Jesus. Ok, so we have the holy trinity: The Father, The Son, The Holy Ghost, right? Well, “The Father” implies that he is authoritive over The Son and The Holy Ghost. Jesus, the son, was sent to die for our sins as a physical manifestation serving his father’s divine will, so he’s really a messianistic dead end. And the ghost? Look, he was off getting stoned and would appear centuries later as Slimer in the Ghostbusters franchise.

So our lord is not Jesus, it is Yahweh to the Jewish, Jehovah to the Christians, and Allah to the Muslims. All Abrahamic religions recognise the same god, they merely differ on the messenger (A big shout out to John the Messenger!) Jesus is not the lord for the Jews or the Muslims, the one true lord for all Abrahamic religions is GOD. Joking about Jesus, or flusteringly saying “Jesus Christ!” is not taking the lord’s name in vain, not in the big scheme of things.

Then there’s the whole New Testament conflict with the Old Testament, or at least this one singular conflict: The original book has that rule about not imbibing, the reimagined edition has a superhero who routinely turns water into wine for his crew. He came to save us from our sins by throwing a sinful party?

I was about to go all Kevin Smith level diatribe on this guy, but the Buddhism took over and I STFU and went back to my CC and Dry.

Article Tags>> | |

� Previous Entries