Tuesday, 22 January 2013

SublimeCodeIntel not working - "Info: processing `PHP': Please wait..."

If after installing SublimeCodeIntel, you don't get any noticeable results and your log file (~/.codeintel/codeintel.log) looks something like this..
Info: processing `PHP': Please wait...
Info: processing `PHP': Please wait...
Info: processing `PHP': Please wait...
Info: processing `PHP': Please wait...
...it's likely that Code Intel wasn't compiled properly when you installed it using Package Control. The reason for this is that there's a build script that's fired off after you install the plugin and if for whatever reason, you don't have the required pre-requisite packages required to build it on your machine, you'll be left with a broken installation. To fix this (at least on Ubuntu, it's likely to be the same on Debian for e.g), run the following command to install the missing required packages before reinstalling SublimeCodeIntel.
sudo apt-get install python-dev libpcre3-dev build-essential
Now simply reinstall SublimeCodeIntel and you should find the plugin now springs into action! Enjoy :)

Monday, 7 January 2013

Rounded corners in Internet Explorer with jQuery UI

Unfortunately older versions of Internet Explorer do not work with the jQuery method of using CSS3 to create rounded corners. To make this work we'll use a fall-back library called CSS3 Pie (http://css3pie.com/) to inject this functionality into the browser when displaying in IE.

Simply download CSS3Pie and extract the PIE.htc behaviour file somewhere on the same domain (important) and reference it like I've shown below. The below example presumes it's located in your current path, but you might want change this to suit your environment.


<style type="text/css">
  .ui-corner-all, .ui-corner-top, .ui-corner-bottom, .ui-corner-left, .ui-corner-right, .ui-corner-tr, .ui-corner-tl, .ui-corner-br, .ui-corner-bl {
    behavior: url(PIE.htc);
    position: relative;
    z-index: 0;
  }
  .ui-corner-all { border-radius: 4px; }
  .ui-corner-top { border-radius: 4px 4px 0 0; }
  .ui-corner-bottom { border-radius: 0 0 4px 4px; }
  .ui-corner-right { border-radius: 0 4px 4px 0; }
  .ui-corner-left { border-radius: 4px 0 0 4px; }
  .ui-widget-shadow { border-radius: 5px; }
  .ui-corner-tr { border-radius: 0 4px 0 0; }
  .ui-corner-tl { border-radius: 4px 0 0 0; }
  .ui-corner-br { border-radius: 0 0 4px 0; }
  .ui-corner-bl { border-radius: 0 0 0 4px; }
</style>

Once again, I hope this helps somebody!

Tuesday, 12 June 2012

How to stop drive caching if you have over 2GB RAM under Linux


This is especially helpful for people who have large amount of RAM and don't want any drive caching at all.

The Linux kernel provides a tweakable setting that controls how often the swap file is used, called 'swappiness'. A swappiness setting of zero means caching to disk will be avoided unless absolutely necessary (i.e, if you run out of memory), while a swappiness setting of 100 means that programs will be swapped to disk almost instantly.

Ubuntu for example, comes with a default value of 60, meaning that the swap file will be used fairly often if the memory usage is around half of your RAM. You can check your own system's swappiness value by running:

cat /proc/sys/vm/swappiness
60

As I have 8 GB of RAM, I'd like to turn that down to 10 or 15. The swap file will then only be used when my RAM usage is around 80 or 90 percent. To change the system swappiness value, open /etc/sysctl.conf as root. Then, change or add this line to the file:

vm.swappiness = 10

Reboot for the change to take effect!

Friday, 27 April 2012

Google Music HTML5 audio not working in Chromium?

Just a heads-up to anybody struggling to get the experimental HTML5 audio feature (in labs) in Google Music working running under Linux...

In Ubuntu at least, you need to replace the package chromium-codecs-ffmpeg with chromium-codecs-ffmpeg-extra by doing the following...


sudo apt-get install chromium-codecs-ffmpeg-extra


...Restart chromium and viola!

Hope this helps somebody :)

Wednesday, 18 April 2012

Using 'Catch All' to track and stop email spam

A friend of mine (Leslie I'anson) recently came up with a novel way of tracking and stopping spam if you own your own domain.


Simply create a 'Catch All' rule to forward all mail addressed to your domain to a single mailbox then give out a unique email address to every new service you sign up for.  This address should be relevant to the service you're using it for, e.g: facebook@mydomain.com so that you can identify it in future.


Wednesday, 23 February 2011

Javascript support not working in Netbeans 6.9 on Ubuntu 10.10?


Just a quick post to help anyone having issues getting Javascript support in NetBeans 6.9 working under Ubuntu. You need to enable the 'NetBeans Update Center' in plugin settings and run a full update. Once you've done that, you'll find it's all working again.

Sunday, 16 January 2011

XBMC File Cleaner 1.3.5 Released


Version 1.3.5 has now been added to the offical repository and brings the following changes...
  • Deletion based on episode/movie rating
  • Ability to move to holding folder instead of deleting the show altogether
  • Many bug fixes
That's all for now, a few feature requests to go and I'll be moving onto a new project.

Enjoy!
Drew