Archive for the 'Open Source' Category

SOLVED: No sound after login on Ubuntu Eee PC / Ubuntu Linux

Sunday, June 6th, 2010

I’ve posted twice recently about my problems following an upgrade of Ubuntu Netbook Remix to Lucid Lynx (10.04).  In short, I upgraded both the BIOS of the netbook (an Asus Eee PC 1008HA) and upgraded Ubuntu from 9.10 (Karmic Koala) to 10.04 (Lucid Lynx).  Once I did this the sound would disappear after the first time I logged in following each boot, and only work properly if I logged out and in again.

One kind commenter (thank you “ThrasherC”) suggested a solution to a similar problem.  I haven’t followed the story of the bug report and probably don’t know enough about Linux to understand it so I’m not taking responsibility for anyone else doing this. This is a statement of what I did, not advice :)

  1. Open a new terminal
  2. Issue command “sudo gedit /etc/pulse/default.pa”
  3. Find the line that says “load-module module-device-restore” and creplaceomment it out by adding a hash at the start so it reads “#load-module module-device-restore”
  4. Restart

Hope this helps someone – be that you, or me in the future.

No Sound After Upgrading Asus EeePC to Ubuntu 10.04 (Lucid Lynx)

Friday, May 7th, 2010

Right, at the weekend I upgraded my Asus Eee PC (1008HA for those of you interested) to Ubuntu 10.04 LTS – Lucid Lynx from the previous version, 9.10.  Everything seemed fine (I think).

Update: The problem described in this post has subsequently been investigated and solved.

On Monday or Tuesday night I then upgraded the BIOS to see if it would fix the fact that the wireless was shite when I was using Ubuntu.  (Incidentially either the BIOS or OS upgrade seems to have fixed the probelms I had connecting to one specific router)

I didn’t notice a problem at the time because I’m dual booting Windows XP and was using that, but when I booted into Ubuntu again on Thursday night, the audio didn’t seem to be working.  I quickly discovered that the sound did indeed work at the login screen, but once I logged in there was nothing (including no welcome sound).  The audio/volume functions on the Fn keys also now do nothing (though brightness ones still work!)

I think the sound was fine following the Ubuntu upgrade, but I’m not sure, so I think the BIOS upgrade has ballsed it up.  Which is a pain.  It looks like I’ll have to try reverting the BIOS and/or Ubuntu to a previous version.  Watch this space…

HTC Desire: WANT!!

Wednesday, April 21st, 2010

I realise I haven’t written anything here in a while but I thought recent developments warranted a post.  Basically my mobile phone contract with Vodafone is up for renewal.  My contract expires at the end of May and I’m already into my "eligible for upgrade" period.

I have decided on a phone. I want an Android phone. I simply MUST have an HTC Desire. So much that I already want to start writing apps for it!

Things looked good at the start of April when it was available on T-Mobile for £15/month and £129 up front for 24 months.  This came with 300 minutes, unlimited texts (they say 300 but you get a choice of flexible booster free and mine would go on unlimited texts)  and "unlimited" (1GB) data.  This is much better than what I’m currently paying Vodafone £30 a month for!!

Unfortunately while the plan is still available on T-Mobile the price of the phone was hiked to £191 fairly quickly.  It’s still a very competitive contract, and still better than what Vodafone were offering, but I was already nervous about taking out a contract on a network known (to me) mostly for shit signal, based partly on my experience with them about 6 years ago, so I went to do more research.

I’ve spent a lot of time researching the best deals from all networks (except O2 who don’t stock it yet, but I’ve found ways round that) from at least a dozen retailers.  Really it would be a waste if I kept this information to myself and didn’t share what I’d found out with the world (or the 3 random people who happen to stumble on this blog over the next year and probably don’t even speak English).

Anyway, to got a long story short(er), I’m going to post a summary of what I’ve found over the next couple of days. Keep your eyes peeled.

Solved: WP Recent Posts: “Post-Plugin Library missing”

Tuesday, August 5th, 2008

Some of you may have noticed the above message appearing where my recent posts should have been for the last week or two.  It turns out the “Post-Plugin Library missing” message can be fixed by downloading the latest copy of the Post-Plugin Library (shocking, I know).

I can’t remember if I upgraded WordPress or the Recent Posts plugin or both, but I’m guessing it was an upgrade to the Recent Post plugin that caused the problem. The new version requires a “Post-Plugin library” (written by the same guy).

(more…)

nerd. links – LDAP Browser

Tuesday, July 1st, 2008

Had a bitch of a day today in work, with an application I was playing with refusing to play with Active Directory (largely because I’ve never used LDAP before and couldn’t figure out the weird bloody syntax).

So I’d really like to offer a quick thank you to Jarek Gawor for developing (and releasing) his LDAP Browser/Editor which let me double check that I was connecting to the right server/port and play with the settings enough that I eventually got it sussed. Great wee Java tool.

Screenshot of LDAP Browser/Editor

Big PHP Niggle

Friday, June 20th, 2008

I need a quick bitch.

I love PHP. It’s everywhere. All my sites are written in it. My CMS is written in it. My blog engines, WordPress and b2evolution, are written in it. It’s free. It runs on any platform. Hosts all support it. With PHP 5 they’ve even done a lot of work on PHP4′s main downfall – lack of OOP support.

One thing really pisses me off though – it’s totally inconsistent.  Consider these two functions:

  1. strstr — Find first occurrence of a string
  2. in_array — Checks if a value exists in an array

Take a close look. See the signatures?

string strstr ( string $haystack , mixed $needle [, bool $before_needle ] )
bool in_array ( mixed $needle , array $haystack [, bool $strict ] )

In in_array the first parameter is what you’re looking for and the second is what you’re looking in (more or less consistent with preg_match).  In strstr (and its derivatives) this order is reversed. Who on Earth let that slip through? I’m yet to find a free text editor that will tell you which parameters a given function expects (Dreamweaver does a decent job but it’s bloody expensive for a text editor!) the way Visual Studio does for C#, which I use a lot in work.  Given that situation, you’d expect consistency in this sort of thing.  Apparently not so. Instead, every time I want to use one of these functions I have to do a quick Google to bring me to the PHP manual page to tell me which order the parameters come in.

Of course they can’t even fix that without breaking backwards compatibility either, so we’re probably stuck with it.  Bloody marvellous!

Firefox 3 – Initial Impressions

Thursday, June 19th, 2008

I haven’t come across anything truly groundbreaking in Firefox 3, possibly because I’ve become accustomed to much of the feature set through the Betas and RCs, but there are one or two improvements that are quite useful (as well as a couple of regressions unfortunately).

Wee Niggles

First the bad. When you view Page Info from the context menu it doesn’t give a link to the CSS file in the Media tab any more. I was sure it was there in 2 and a quick google confirmed this. This really sucks – I can’t see why they’ve taken it out.

Secondly, when I was looking through the options to try and return the aforementioned CSS links, I discovered Firefox had decided it was going to automatically download any future updates when they were discovered (I promptly switched the option to “Ask me…”). Bad Firefox.

Magic Address Bar

The good is good though. It doesn’t seem like it at first, but to my mind the biggest improvement of all is the address bar. Sure they’ve added a “Most Visited” folder to your bookmarks toolbar which (shockingly, given the title) contains a list of the sites you visit most frequently, but the address bar has some great, if not immediately obvious, usability improvements.

(more…)

Solved: New WAMP Install Won’t Parse PHP

Wednesday, May 7th, 2008

I spent ages trying to figure out why my new installation of WAMP Server 2 wouldn’t parse my PHP and was spitting it out exactly as-is in the source file. I hoked around in the VirtualHost configuration, because the PHPMyAdmin that comes with WAMP Server was working fine so it had to be something wrong in the VirtualHost that I just configured that was stopping .php files being sent to the PHP parser, yes? No.

As it turns out, it’s much simpler than that. Apache was sending the file to PHP to be parsed, but PHP was ignoring my code. Why? WAMP Server 2 comes with “short open tags” turned off (this may be a general PHP or PHP 5 thing, though not sure). Click WAMP -> PHP -> php.ini to edit the aforementioned file and find the line:

short_open_tag = Off

Replace Off with On et voila.

The ‘more correct’ though long-winded solution is to replace all your <? opening tags with <?php if you’re really keen (though that’ll also mean replacing <?= with <? echo). Me, I think I like my short tags.

WordPress / Fantastico Server Move

Wednesday, May 7th, 2008

I recently moved this site to a new host because of ongoing problems with my previous hosts. Thanks to some intermittent database errors I’d decided it would be prudent to do my first backup in some time at the start of last week. By the end of that week they’d deleted my account, so I suppose I should be grateful their database server was so f**ked. Nevertheless, the move caused a few issues when my new hosts told me the complete backup I uploaded to them was corrupt. I can only assume (because some backups were corrupt and others weren’t) that it was due either to encrypting the archives using AES in Winzip or decrypting them in 7zip.

Anyway, that meant manually creating the accounts, setting up the mail accounts and subdomains in them, extracting the root folders (public_html, mail etc) individually and manually importing the SQL backup. Everything was relatively painless (if dull) however Fantastico wouldn’t recognise my WordPress installations (I had two). To persuade Fantastico that there really were a couple of WordPress blogs I had to do two things:

  1. Extract the \.fantasticodata\WordPress files from the zip (in this case it was called nerd.steveferson.com| ) and upload it to the same location in the FTP server. Of course that bar | made Windows barf, so you’d need to rename it (e.g. using an underscore instead) and replace the bar after uploading it via the FTP client (FileZilla didn’t seem to have a problem doing this).
  2. I think this is might be because the blog’s in the root of a subdomain, but I also had to upload a file called installed_in_root.php from \.fantasticodata to that location on the server.

Once I did this, Fantastico picked up the blog and allowed me to upgrade WordPress to 2.5.1 – no hassle.

What’re you lookin’ at?

Tuesday, April 29th, 2008

Well I thought it was interesting so here’s the top 10 posts on nerd. by number of views (based on the last 500 page hits courtesy of Statcounter.com).

  1. Review: Why the Netgear WG311 v3 Sucks (72)
    Slightly dodgy network card that Netgear don’t seem that fussed about fixing. Bad on XP, it got worse on Vista (see number 4).
  2. Playing iPod Video on Your TV (45)
    Seems to be a lot of people looking for instructions for the iPod Classic. Here’s a tip: sell it.
  3. Server application unavailable: installing IIS on .NET 2.0 (44)
    Seems to be a common problem. Sadly Microsoft’s error message is about as relevant as ever.
  4. Installing Vista (AKA More Netgear WG311 Misery) (31)
    Even more messed up. Thank goodness for Linksys!
  5. Thunderbird/Outlook/Google Calendar Integration (25)
    How to integrate your Thunderbird calendar at home with your Outlook in work, via Google Calendar.
  6. Orange Answerphone (Voicemail) Number for PAYG (23)
    Such a simple problem. Who knew it would be so hard to find?
  7. Stop Monitor.exe Hogging CPU (20)
    Why can’t people just give you a standard installation instead of trying to do everything for you? Help sounds good, until their useful tools start killing your PC.
  8. How to run IIS Web Server in Windows XP Home (20)
    Microsoft’s official line is it can’t be done, but it’s not that tricky.
  9. Making Firefox Scroll With Syanptics TouchPad (19)
    Discovering the solution to making Firefox scroll on my Acer Aspire laptop.
  10. NAS or Home Server (17)
    I deliberate over whether I can justify spending the extra to build or buy a home server before eventually deciding that a Linkstation Live will meet my needs for less than half the price.