Nov 28 2011

For me it didn’t seem very intuitive to find out what packages were installed when I tried removing the phpUnderControl PEAR channel (I trialled it but preferred Jenkins). This tutorial has nothing personal against phpUnderControl, it just happened to be the package I was removing at the time… All I got was:

$ sudo pear channel-delete phpuc
Channel "pear.phpundercontrol.org" has installed packages, cannot delete
$

Oh ok… maybe I should try:

$ pear list pear.phpundercontrol.org
parsePackageName(): invalid package name "pear.phpundercontrol.org" in "pear.phpundercontrol.org"
$

Hmmf… after a bit of facepalming I finally discovered that `pear help ` existed, and the correct syntax to find installed packages for a channel is:

$ pear list -c phpuc
Installed packages, channel pear.phpundercontrol.org:
=====================================================
Package         Version State
phpUnderControl 1.0.0   stable
$ sudo pear uninstall phpuc/phpUnderControl
uninstall ok: channel://pear.phpundercontrol.org/phpUnderControl-1.0.0
$ sudo pear channel-delete phpuc
Channel "pear.phpundercontrol.org" deleted
$

PEAR 0, James 1.

Nov 26 2011

I hardly have time to play video games these days, but the few times between Freyja running me round, the dog licking me to death, and the odd bit of open source contributions, I like to play good games that I can engage in, but not have to pour my whole life into playing. Unfortunately due to my lifestyle, this rules out a multitude of games I’d like to play (or at least check out), such as MMORPGs that generally require a subscription – of which £5 a month normally I can’t even justify. Recently the only times the 360 has been powered up is when friends have come over and we’ve had a bit of a Call of Duty shoot-up. This review does come over a year after the original release, but I’m still only part way through playing it.

Nevertheless, when I do have some spare time I love sitting down and playing Fallout: New Vegas. I loved Fallout 3 and played it for hours. In fact I was still playing it when Hannah went into labour with Freyja and still loved it. I still haven’t played it as much as I’d like to and there’s still so much to explore and discover in the game, even though I’ve already completed it.

Fallout: New Vegas does not disappoint me. From the word go it was already better – the character creation sequence is 5 minutes or so rather than the lengthy drawn-out character creation process in Fallout 3. Much improved – thank you Bethesda for letting us just get on with playing the game.

You start the game dead (as good a place as any I guess?) and if you’re used to Fallout 3 everything will be pretty familiar. There are new additions such as temporary skill magazines (which confused me at first – why are my skills disappearing after a while? Don’t fret though, the permanent skill books are still there, but even harder to find!), and the ability to play in Hardcore mode. I’m not hardcore, so I didn’t do this, but from what I hear it makes you have to eat and drink and sleep just like a real person would have to do amongst other things. I can see that getting annoying after a while, but I suppose for those with plenty of time on their hands can become all part of the challenge. Good to see it’s optional though!

There are some monsters which make a comeback (such as the practically invincible-to-a-new-player Radscorpions – why are they so hard to kill?!) and some new breeds and varieties that will shake things up a bit. The whole storyline is obviously based around New Vegas and I spent quite some time not being anywhere near New Vegas, but trying to get there without being slain instantly by an angry swarm of Deathclaws at Quarry junction. Nevertheless the story takes a real engaging turn when you get to New Vegas and has been really gripping, typical of Bethesda games.

Overall I think the game is slightly more difficult (and I’m playing it in “casual” mode, where food/water/sleep etc. are not a strict requirement!) than Fallout 3. The storyline is just as strong strong, but disappointingly there are very few graphical improvements on Fallout 3. As soon as I complete this, I’ll be onto Skyrim to take in the delights of the new engine and the next TES game. However judging from my progress in New Vegas so far, I don’t think that’ll be for another year or two yet!

My overall rating for F:NV? I’d give Fallout 3 a 9 our of 10 and this is probably a 8 out of 10 due to only minor improvements, and much of the same stuff.

Nov 22 2011

I recently upgraded to Eclipse PDT Indigo. It was exciting and stuff. The download size has also been completely slashed – from approx 120mb to 89.2mb, so that makes me happy. It was remarkably easy to install and import my existing projects and stuff (I started a new workspace, rather than re-using the existing one). My first problem I ran into was trying to install the Mylyn Context Connector (that gives you task-focused Navigator view etc.), it was moaning about org.eclipse.cvs.feature.group being missing. The solution, although not immediately obvious, is to actually add the Indigo Update site… which is not included in the default PDT install (!). I think this is one of the reasons the PDT Indigo download is much smaller though…

  • Help > Install New Software…
  • Enter “http://download.eclipse.org/releases/indigo” into the “Work with:” box
  • Hit enter… wait while it downloads
  • Once it’s downloaded, go back up to the “Work with:” box and choose “Mylyn for Eclipse 3.5, 3.6 and 3.7 – http://download.eclipse.org/mylyn/releases/latest”
  • Select “Mylyn Context Connector: Eclipse IDE”  from the package list
  • Do a little dance
I really wish Eclipse would make installing packages easier. It’s such hassle having to know the update sites for things left right and centre.

Nov 21 2011

For some time now I’ve had a problem in Avant Window Navigator where Eclipse and Outlook (don’t ask…) were appearing as separate icons. The first answer here was pretty much the solution. I use the built-in awn launcher editor to manually add my launchers. However this means you cannot specify extra hidden fields such as how to match the Windows up. Thankfully this wasn’t too complex. I went into ~/.local/share/applications and created two files with these contents:

outlook.desktop:
[Desktop Entry]
Categories=Office
Encoding=UTF-8
Exec="/home/james/bin/outlook.sh"
Hidden=true
Icon=/home/james/.icons/outlook.png
Name=Microsoft Office Outlook 2007
StartupWMClass=OUTLOOK.EXE
Type=Application

eclipse-php.desktop
[Desktop Entry]
Categories=Programming
Encoding=UTF-8
Exec="/opt/eclipse-php/eclipse-php"
Hidden=true
Icon=/opt/eclipse-php/eclipse.png
Name=Eclipse for PHP Developers
StartupWMClass=Eclipse for PHP Developers
Type=Application

The important part is the “StartupWMClass“, which (annoyingly) cannot be specified in the awn launcher configuration. To get the correct StartupWMClass value for your application, in a terminal write:

$ xprop | grep WM_CLASS
WM_CLASS(STRING) = "OUTLOOK.EXE", "Wine"
$

Then click on the window you are trying to find the StartupWMClass of. The one you want to use is the first one returned, OUTLOOK.EXE in this case. Then all you need to do is open ~/.local/share/applications in Nautilus, and drag the .desktop file down into awn where the “+” sign appears. BOOM! Now my little yellow blips appear next to the original launcher and means I don’t keep opening multiple instances of Outlook/Eclipse by mistake!

Oct 5 2011

this is so how’s the android voice recognition work on writing a blog sites and I really hated on my phone. I’ve noticed the long sentences take a while to process this thing apple stock. and I still haven’t figured out how to do area jamaica. do androids credit I’ve noticed that I’m in love so there is quite a lot of background noise. this isn’t going to well so I’m going to hang out. I hope apple theory is better than this.