Posts Tagged ‘Linux’

Fix for Eclipse SDK 3.x libmozjs bug.

Thursday, June 26th, 2008

I believe the following two URL’s are exactly the same bug as I’ve experienced.
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/121413
https://lists.ubuntu.com/archives/ubuntu-mozillateam-bugs/2007-June/016597.html

Symptoms: Eclipse completely dies on you when you open a web browser or one is opened for you. It also happens if you go to the web browser settings page.

Failed possible solutions: Recompiling everything. It looked like a weird linking problem to me so I went for the traditional response, recompile. This wasted a lot of CPU time but gained me nothing.

Solution: Surprisingly I’ve yet to see this anywhere else on the Internet. The problem seems to be somewhere within the ~/.mozilla/eclipse/ directory, if you remove it completely then it’s replaced and everything starts working fine again. I haven’t gone deeper into it to find out what’s actually causing this or if there’s a better solution. However, I don’t think I missed anything in that directory and Eclipse is working perfectly again.

Conclusion

I know this set me back a few hours in work figuring it out, I know that there are a lot of Eclipse developers out there who may benefit from this as well.

This must be quite a complex bug as nobody on IRC seemed to know what to do. Hopefully this guide will help other people with problems.

Comments welcome.

Kind regards, Robert.

What to do when Audacity won’t let you export/save as (blank dialog box).

Tuesday, May 20th, 2008

It would logically follow that if I’ve had this problem others must also have had it or be having it on a regular basis now. Unfortunately I don’t know how to trigger the problem and so I’m unable to provide you with a picture.

Versions: Caught in 1.3.4 and 1.3.5, haven’t tested anything else.

Symptoms: CPU usage climbs to 100% and when you click ‘export’ or ’save as’ you get a standard export/save dialog box but without a path or any files/directories shown. It refuses to let you search or manually input a path.

Possible related problem: I had this problem last immediately after the same project had got stuck while loading the audio into the memory. The issues might be related but I can’t see any reason to suspect that myself.

Solution: It’s not that hard but it took me a little while to work it out. Make a small edit and save, this seems to work every time. If it doesn’t then save and restart Audacity.

What doesn’t work: I tried all the normal tricks.

  • # killall audacity
  • # killall -9 audacity
  • Moving the files around
  • Renaming them
  • Manually comparing the .aup with other .aup’s and trying to fix.

Diagnosis: Bug, probably a stomach one. I honestly can’t see where the problem is, I’ve tried looking for it but don’t have the time to do full strace’s and all the rest of that fun stuff. Let’s hope the audacity team manage to find it and fix it. After all, Audacity is a brilliant tool even if it does lack a few things.

Kind regards, Robert.

The iPlayer

Thursday, April 3rd, 2008

I think most people who’ve been following the iPlayer in any depth have noticed that it’s not really delivering. It has some good sides, but there are a fair few things that I’d like to take issue with.

BBC iPlayer main page

I would not say it’s been a complete waste of money, it hasn’t. It provides videos to anyone within a certain part of the desktop market’s spectrum. So, what’s bad about it? Primarily, you may not download the videos if you’re on anything other than Windows. Isn’t this government backing of a monopoly? Annoyingly the online viewing is only available for 6 days, and even if you do find that old XP disk you’ll only be able to keep the videos for 30 days. So much for asking your neighbours to download a year’s worth of East Enders for you while you’re off on that gap year in Tibet.

BBC iPlayer shows it’s true colours.

So, if you use Linux and you’re away from a computer for more than 7 days, tough.

It does provide some good quality video, the screen shot above shows a similar quality to what you’ll generally get. How much of a good thing is this though? If we dub this ‘high definition’, where’s the standard definition or low definition version for those of us on slower and more expensive connections?

Whatever codec they’re using (I haven’t researched, maybe someone can fill me in) seems to be quite high on the bandwidth usage. They also don’t seem to be using the standard method of scaling videos; normally videos will scale nicely to full screen on any of my computers (on youtube and the like), iPlayer doesn’t. I get skips, jumps, hops and judders if I try to full screen it. I’ve tested it on this machine (1.7GHz, 1GB), my other laptop (1.6GHz, 2GB), and my dad’s media machine (2x 2.6GHz, 2GB). All had problems.

It also has a habit of killing itself out of the blue. This generally manifests itself in one of several ways:

  • ‘There has been a problem playing this video…’ This tends to happen when you walk away for a while and then come back.
  • ‘Undefined undefined undefined’ This has only ever happened once, but I presume heavier users get it more often.
  • The jitters. This is when suddenly everything goes jittery, something like a deliberate echo 0.5s after and at the same volume.
  • The express joo-jars. An apt nickname for when it goes into super fast mode and does something weird with the sound.

BBC iPlayer dies!

BBC iPlayer dies again!

In general it behaves, but I’ve noticed a few other distinct problems:

  • Incomplete uploads. An absolute curse, generally it will finish just before the bit which finalises the whole program.
  • Time delay. For some reason they seem to forget to upload half the days programs for a while, perfectly OK until you want to watch one which is missing.

All in all though, it’s not all bad. I’ll try a comparison with a competitor, ITV’s catchup.

Downloads: [BBC] Yes, only Windows and for 30 days. [ITV] No, or invisible.

Video quality: High, sharp and generally smooth. Nasty.

Adverts: None, just a channel trailer at the beginning. Lots.

Requirements: Flash and a browser. Internet Explorer, a ‘patched’ Windows Media Player, ActiveX.

Speed: Fast. Slow to start with then seems to be buffered and OK.

Watching live: No known mechanism. Possible, reasonable quality.

At the end of the day, does it let me watch Dr Who? Yes, therefore it can’t be all bad.

Kind regards, Robert.

Adding Skype, 7zip and CamStudio to Chute Stick (USB Rescue Stick)

Saturday, March 22nd, 2008

http://www.robertsmall.org/wiki/index.php5?title=Chute_Stick#The_Software

Just a quick blog to say that I’ve added a few things to Chute Stick. I’ll thin down the number of packages as soon as possible, but we’re still well within the 1GB memory stick so I can spend time doing that later.

I’ve added all versions of Skype. Skype provides a reasonably secure method of getting a message to someone; it also permeates firewalls better than most viruses. I added 7zip as it seems to be a good free alternative to WinZip, the 7zip compression itself is remarkable. In some of my experiments with it I’ve experienced almost 50% smaller files than standard zip (using `zip -9`). Because of this excellent compression I’ve included a copy of p7zip (the *nix port). CamStudio may seem like a strange choice, but it does offer a way for you to quickly record a video of how to do something, this could be essential if you’re unable to tutor someone face to face but need them to (for example) administer a box for you. I’ve debated if a Linux desktop recorder is needed, but if you have ssh you can probably do most administration through that.

Well, that’s all so far, I’m snowed under with work at the moment so I was just popping this through. Most of the additions have been related to things I’ve needed for work over the last few days. I will be blogging about some other things (mostly work related) soon, when I escape anyway!

Kind regards, Robert.

http://www.robertsmall.org/wiki/index.php5?title=Chute_Stick#The_Software

A quick update on Chute Stick (USB Emergency Disk).

Wednesday, February 27th, 2008

Just to mention that I’ve now released a list of the software I currently have on my pen drive.

 http://www.robertsmall.org/wiki/index.php5?title=Chute_Stick#The_Software

I will provide more information on each item in the near future including versions and links. I expect a few of you are thinking of cloning my setup until I release a script.

Kind regards, Robert

USB Rescue/Emergency Stick (Parachute on a stick)

Wednesday, February 27th, 2008

Some of you will already know about this little project that I’ve been working on. Basically I’m producing a USB memory stick with all the things which I think it needs. Quoting the wiki page:

http://www.robertsmall.org/wiki/index.php5?title=Chute_Stick

If you’re in a situation where you only have one memory stick, what’d you want on it? If baggage handling lose all your bags and you just have the encrypted hard drive in your jacket pocket and the memory stick round your neck, what do you want on the stick?

You’re stranded on an island (or somewhere with a really poor internet connection) and you want to acquisition a computer for your own uses, what do you want on your stick? Someone else on the island wants you to fix their computer, what do you want on the stick?

In general, what do you want on a memory stick when you don’t trust or want to use your internet connection? This is what the Chute Stick project is meant to provide.

Although there are many different situations where this may be of use and some of them wont require most of the software provided this is meant to be an ‘in any event evacuation plan’. I know a lot of you have already contacted me about this and so there probably wont be that many comment; however, there are several things which I’d love to be posted here:

  • Situations where you might need a rescue stick.
  • Software suggestions/requests.
  • Things to stay away from.
  • Suggestions for replacement software, I know I may not have picked the right stuff all the time.
  • Suggestions about ways of packaging or unpacking software.
  • Ways to make things more accessible to more people.

Of course you could just tell me I’m doing something useful!

Which brings me to another point, what am I doing? Well I don’t intend to distribute too much software, I’d prefer to write a script which downloads and updates software to a memory stick for you. Much of the software I’m looking at is either not free/libre and so I don’t expect to be able to do more than provide a script to get the end user to download and use the software correctly. If anyone is familiar with the gentoo ebuild context they’ll understand more of what I mean, my script wouldn’t require pre-built packages but do it’s own work.

The wiki page is: http://www.robertsmall.org/wiki/index.php5?title=Chute_Stick

Kind regards, Robert.

BottleCap becomes Windows friendly. (0.0.6-rc5)

Monday, December 31st, 2007

Another BottleCap release candidate, this one is Windows compatible out of the box. Just remember to edit bcsettings.py. Get the update and please report any bugs here.

Kind regards, Robert.

Boxingday BottleCap release! (0.0.6-rc4)

Wednesday, December 26th, 2007

I’ve just uploaded another RC. I advise updating as it has a few bugfixes, especially if you’re on windows. Tonnes of work to make pylint happy and adding of docstrings, expect another release soon as I change and add things. I still have to fix the clones module but I’ve made the highlight ban code actually work.

Have fun, stay safe, and feel free to tell me if there’s anything wrong, remember to check the official channel for updates! irc.v8d.org #BottleCap

Kindest regards at this festive season, Robert Small.

BottleCap has another RC - 0.0.6-rc3.

Tuesday, December 18th, 2007

I’ve released some more code, it provides a few new features:

  • HTTP update checking (now threaded)
  • timed unbanning and a *better* way of banning
  • it has the beginnings of the new correction script
  • a few other minor changes

I’ll leave it as such, do join the channel (irc.v8d.org #BottleCap) and ask more questions. Since rc1 I’ve added a few little things to allow windows to function better with BottleCap, I’ve not yet given it a full testing, let’s hope it all works soon.

Kind regards, Robert.

A short passage on BottleCap (Modular script-pack for XChat).

Sunday, December 9th, 2007

People often ask me why I wrote BottleCap, this normally comes immediately after asking what BottleCap is. I might as well answer both. BottleCap is a small modular Python script designed to replace or create a few features I found either partially or completely lacking in XChat. It was primarily designed for Linux but should work on any OS providing it has XChat and python. It provides a fair few things and is in slow development. Some of the features are:

  • Spelling and grammar correction
  • Toaster pop-ups
  • Highlight handling
  • Auto-away and auto-return
  • Automatic invite handling
  • Regexp banning.

It’s a useful script and to my knowledge there are no ways to exploit it. I’ve mainly written it on request or as I’ve needed it, the regexp banning module is in direct result of an attack levied at a channel I’m op’d in. The attack used stupidly easy to spot nicknames which were rather hard to ban, a regexp did the job wonderfully.

Spelling and grammar correction is mainly to help me when I’m reading certain channels I moderate which are mostly used by children, it takes the strain off reading and deciding what they’re talking about!

There’s more information on this page (http://www.v8d.org/wiki/index.php?title=BottleCap) and please as in #BottleCap on irc.v8d.org for a copy and help getting it working.

If you’ve used BottleCap, or use BottleCap now, please post, I’d love to have a few ‘BottleCap changed my life!’ comments. Any suggestions would be great too.

Kind regards, Robert.