Aug 312011
 

A small note in the “in case I need this again” category.

I’m writ­ing a Sinatra app and want to add Twit­ter OAu­th for sign­ing in. A good way to do this appears to be with the omniauth gem but I ran into an issue. require 'oa-oauth' is the doc­u­mented way to require the right gem, but the error I was get­ting was ‘require’: no such file to load — oa-oau­th (Load­Er­ror), des­pite hav­ing installed the gem. I use RVM to con­trol the Ruby envir­on­ment, so also checked I’d installed the gem with the RVM ver­sion set to the ver­sion of Ruby I was using (1.9.2). Hunt­ing around I found a par­tial answer on the issues list. Par­tial, because the answers there did­n’t help, but the sug­ges­tion to try bundle show omniauth did. Bundle came back with Could not find gem ‘omni­au­th’ in the cur­rent bundle.

The answer turned out to be to edit the Gem­file to add gem omniauth to it, then run­ning bundle install. After that, bundle show omniauth found the gem, and require 'oa-oauth' in my Ruby app worked as well.

Aug 232011
 

I came across this weird prob­lem recently, where my Tungle account (tungle.me/laurenwood) was only syn­chron­iz­ing some of the events on my Google cal­en­dar. I checked they were set to the right cal­en­dar (yes), marked as busy (yes), and still could­n’t find the answer. 

This is an issue that quite a few people have had. Appar­ently what’s going on is that Google cal­en­dar sup­ports three types of avail­ab­il­ity for events: free, busy, and tent­at­ive. In the UI on the browser and on the Android they only show the free (avail­able) and busy. BUT, when you cre­ate an event on the Android cal­en­dar, it’s assigned the “tent­at­ive” status. I have no idea why, since I added those events to the cal­en­dar myself, they’re not invit­a­tions that I still have to accept or decline. And the fact that there appears to be no way to change the status once the event has been cre­ated just makes it worse. I tried chan­ging the status manu­ally to “busy” in both the browser and the Android cal­en­dar app but that did­n’t work. The only thing that did work was to delete the event and recre­ate on the desktop.

For­tu­nately tungle imple­men­ted a fix — you can choose to mark the sup­posedly tent­at­ive appoint­ments as “busy”. Here’s hop­ing any oth­er apps I may wish to sync with my Google cal­en­dar also imple­ment this feature.

May 232011
 

Some­how I missed the news about Google’s Pro­ject Oxy­gen earli­er this year. This was a large pro­ject that meas­ured what skills the most effect­ive man­agers at Google use, and the pit­falls poor man­agers fall into. As one might expect from Google, the res­ults are but­tressed by a ser­i­ous amount of data: over 10,000 answers about 100 vari­ables. If you work for any­one, or man­age any­one, it’s worth read­ing about, even if what you do isn’t in software. 

What I found inter­est­ing was this quote, from https://www.nytimes.com/2011/03/13/business/13hire.html:

In the Google con­text, we’d always believed that to be a man­ager, par­tic­u­larly on the engin­eer­ing side, you need to be as deep or deep­er a tech­nic­al expert than the people who work for you,” Mr. Bock says. “It turns out that that’s abso­lutely the least import­ant thing. It’s import­ant, but pales in com­par­is­on. Much more import­ant is just mak­ing that con­nec­tion and being accessible.” 

It’s been recog­nised for some time in oth­er busi­nesses that the skills required to be a good man­ager are not neces­sar­ily the same as those needed to do good tech­nic­al work. I’m glad to see the data com­ing from Google to sup­port the notion that good soft­ware pro­ject man­agers do not have to be tech­nic­al enough to be lead developers (although they do need to have enough tech­nic­al skills to know what’s going on).

May 182011
 

That was what we put on the front of the t‑shirts this year, . Some bright spark (I for­get who, sorry, the two days blur togeth­er a bit) poin­ted out that the t‑shirts were green with NV, which was an impress­ive pun, or at least bet­ter than any­thing I could come up with on my own.

As always, the days were full, and this year I made it to the party at the Aca­dem­ic as well, which gave me a chance to chat to dif­fer­ent people. I’m still try­ing to fig­ure out wheth­er I liked the Moose cock­tail the Aca­dem­ic designed for us or not. The food was good, and the candy bar went down well with everyone.

I man­aged to miss the morn­ing key­note (the school run took pri­or­ity), so for me the ses­sions part of the con­fer­ence star­ted with the first pan­el I mod­er­ated: Court­ing Con­tro­versy: Dan­cing with the Dev­il. Rebecca Cole­man, Kazia Mul­lin, and Lor­raine Murphy had everything so well organ­ised that I did­n’t need to do any­thing, I just sat there and watched and listened, pre­pared to help if they needed it (which they did­n’t). They have all sum­mar­ised their takes on the pan­el; there are lots of use­ful hints in there as to how to deal with con­tro­versy (and any­one who allows any sorts of com­ments will). I’m glad I got to listen to this one.

I sat in on the Social Media and Online Defam­a­tion: Keep­ing Out of Court pan­el for a bit, some inter­est­ing inform­a­tion there about the upcom­ing Supreme Court decision on wheth­er link­ing to some­thing libel­lous means that you are con­sidered to have libelled someone your­self, which is a fright­en­ing concept and will def­in­itely have a chilling effect on spread­ing news if it goes the wrong way. Rob Cot­ting­ham has a sum­mary in car­toon form. It was inter­est­ing com­par­ing this pan­el with the court­ing con­tro­versy one; “play it safe” vs “be brave”.

I did­n’t make it to any ses­sions after that on the Fri­day, deal­ing with vari­ous issues or chat­ting with people in the atri­um, but I did make it to the Town­ship 7 winetast­ing, albeit at the end. And then, of course, the party.

The party was fol­lowed by the morn­ing after, being in time to wel­come people to the second day and intro­duce Chris Wilson for his key­note From Dial-up Modems to Post-“Social Media”: A Jour­ney. I enjoyed it, espe­cially when he reminded us all just how fast tech­no­logy has changed and how much of what is avail­able today would have seemed unbe­liev­able 10 or 15 years ago. 

After lunch I mod­er­ated Tim’s Sex, Lies, and Wiki­pe­dia talk, which, of course, did­n’t need much mod­er­a­tion. Tim has­n’t writ­ten up his talk, but a search on “Tim Bray wiki­pe­dia ″ will bring up lots of sum­mar­ies writ­ten by others.

Anthony Mar­co’s Pod­cast­ing with Soul: Try A Little Ten­der­ness was a mix of music and advice on pod­cast­ing. He used the music to show how the same basic mes­sage (or melody) can sound very dif­fer­ent, depend­ing on how it’s presen­ted, and talked about how to get that joy and inspir­a­tion into pod­cast­ing. I found it inter­est­ing, even though I don’t listen to pod­casts, with inspir­a­tion for writ­ten blog­ging as well. 

The last pan­el was Altru­ism vs Nar­ciss­ism: what’s in it for the online review­er? with Mon­ica Miller, Kyrsten Jensen, Nicole Christen, and Mar­ina Antunes. I ended up ask­ing quite a few ques­tions of the pan­el to get more details on inter­est­ing items. The advice can be best summed up as: keep your integ­rity. Don’t say you like it if you don’t, but also don’t be too harsh on small inde­pend­ents. In some cases, just don’t post a pub­lic review, but in most cases, say what you really think (while stress­ing it’s your opin­ion and exper­i­ence, not Uni­ver­sal Truth). The ses­sion was lower energy than lots, since it was get­ting a little late in the day, and Kyrsten had almost lost her voice, but I think people found it interesting.

And that was it! North­ern Voice over for anoth­er year. 

Apr 282011
 

I know a couple of people who are on the pess­im­ist­ic side of the Peak oil hypo­thes­is, and a couple who are equally fer­vent in their optim­ist­ic belief (the idea being that we’ll always find more and/or tech­no­logy will save the day). As is my wont, I’m some­where in the middle, think­ing we’re likely to find more oil and nat­ur­al gas, but that it should still be con­served, at least until we have more pro­gress on the vari­ous replace­ment tech­no­lo­gies. Someone (I for­get who) recom­men­ded I read James Howard Kunst­ler­’s book “The Long Emer­gency” (Amazon US link, Amazon CA link). It’s an inter­est­ing read, albeit a little dated (it was pub­lished in 2006). He tends to skim over some issues such as the import­ance of the trans­ition from lots of oil to little oil, and the writ­ing does tend to the breath­less (although it’s far bet­ter in the book than on his blog). I’d recom­mend at least skim­ming through it if you’re inter­ested in the issues, maybe bor­row it from the loc­al lib­rary as I did.

What the book did accom­plish was to make me think about the con­sequences of a world in which oil is much more expens­ive than it is now. It does­n’t need to be the case that we can­’t find any more; a ser­i­ous insur­rec­tion in Saudi Ara­bia that caused major dis­rup­tions to the flow of oil is not out of the ques­tion these days, and China is using an ever-increas­ing pro­por­tion of the world’s oil, which will auto­mat­ic­ally res­ult in price increases.

Some of the ques­tions are easy to ask: What hap­pens if the cost of ship­ping cheap goods from China trebles, or quin­tuples, or worse? What hap­pens to com­muters when the cost of get­ting to work is mul­ti­plied by 3, or 5, or 10? As the cost of heat­ing goes up, how many more people will die of the cold in unheated, unin­su­lated, houses? What hap­pens to the cost of food (a large factor of the Tunisi­an upris­ing) as the cost of the fuel rises, giv­en that the Green Revolu­tion that saved so many lives depends on cheap pet­ro­leum-based fertilisers?

The price of oil has­n’t gone below $50 per bar­rel for the last 5 years (accord­ing to http://www.oil-price.net/). We don’t know what’s next: it may hov­er around $100 per bar­rel for a while, or leap to a much high­er level; either way there should be at least some dis­cus­sion of what oil is best used for, what we can sub­sti­tute oth­er tech­no­lo­gies for, and an invest­ment in those tech­no­lo­gies before we need them. There are options already for power gen­er­a­tion, even if most of them also have issues, but there seems to be less focus on food and trans­port (both people and goods), and if any­thing, there seems to be an ever-increas­ing use of pet­ro­leum-based plastic mater­i­als. I don’t see much pro­duct­ive dis­cus­sion around these issues — any­one got good point­ers that don’t veer off too much into apo­ca­lyptic fervour?

Apr 272011
 

The next stage in the great pro­ject to migrate back from Debi­an from OpenSol­ar­is: installing Debi­an. Wow, it’s so much easi­er these days! Here are my ran­dom notes from the install. I chose the net­work install option and burned the .iso to a CD. Then I booted from the CD on the boot­load­er (on a Sun Ultra 20, you hold down the F8 key while boot­ing to get to the load­er). Then it was just a mat­ter of pick­ing the options.

First option: graph­ic­al install­a­tion. It’s much easi­er to work on oth­er things and occa­sion­ally glance at the installing sys­tem when there’s a graph­ic­al user inter­face. I was­n’t sure what to use for the domain name, since this com­puter will be used inside the home net­work, so I left it blank for now. I can always change it later. I also picked the easy “one par­ti­tion” option as I saw no need for mul­tiple par­ti­tions. Then, I just let ‘er rip.

These days you get a nice list of pre­defined col­lec­tions to install; I chose the graph­ic­al desktop envir­on­ment (yes, it’s a serv­er that I’ll mostly access via ssh, but why not?), web serv­er, SQL data­base, ssh serv­er. Then it was time to wait and do oth­er things, like noti­cing how it’s rain­ing out­side. Again. April in Van­couver, sigh.

Some time later… Debi­an’s installed, and now I’ve decided to try The Debi­an Way to install Word­Press, rather than installing it by hand as I did last time I set up Word­Press on this box. apt-get update, fol­lowed by apt-get upgrade and apt-get install wordpress installs a bunch of stuff into /usr/share/wordpress, includ­ing a file, wp-config.php, which does­n’t appear in the stock Word­Press install­a­tion. Sure enough, it’s a Debi­an-spe­cif­ic file. Guess I’d bet­ter go and read some doc­u­ment­a­tion. I want to set up sep­ar­ate blogs with sep­ar­ate domain names, not just sep­ar­ate sub-domains, and Word­Press MU does­n’t do that by default. It will be inter­est­ing to see if the Debi­an ver­sion of Word­Press tackles that configuration.

/* ]]> */