Matt's Blog - RSS ImageRSS Feed - Feedburner ImageFeedburner Feed

Apr 26 2010 19:49

Ubuntu On Lenovo Thinkpad X201 (Blank Screen Problem)Just got myself one of these and had a few problems getting Ubuntu to even boot from a USB stick on it. Although it sounded like everything was going smoothly the screen was blank for some reason.

A quick google about brought up this bug:

Launchpad Bug Report

The solution to the problem is in comment #8 on there. Basically you need to use the following boot option to get the display working correctly

xforcevesa i915.modeset=0
Just stick this in at the bootloader and it should be fine. When Ubuntu is fully installed just put the same line into /etc/default/grub to make the change permanent.

Category: Linux Tags : Ubuntu, Blank Screen, ThinkpadComments: (0)
Bookmark and Share

Apr 08 2010 18:32

Risizing An Image With PHPI came across this PHP class today that is great for resizing images. It is extremely easy to use and quite a small class. The class file can be downloaded here:

SimpleImage.php

A quick example usage to show how simple it is...

include('SimpleImage.php');
$image = new SimpleImage();
$image->load('picture.jpg');
$image->resize(250,400);
$image->save('picture2.jpg');

The last time I had to do some image resizing with PHP was a number of years ago and I seem to remember it being a lot more complicated than this.

Thanks to White Hat Web Design for making this little class and making it available.

Category: Web Development Tags : PHP, Image, ResizingComments: (0)
Bookmark and Share

Jan 29 2010 20:10

OpenWRT default blocking of ICMPI have been setting up an OpenWRT router at home specifically because I wanted to use it as an end point for a NP++ Source Code between home and the office.

To be able to configure your tunnels IPv4 end point (ie the IP address of the router on your home network) the IP address you are setting needs to be pingable. First this was a bit of a pain as I needed to set up my BT Router so put the Linksys in the DMZ. After messing with that for a bit it was all working.

Despite everything being set up correctly I still wasn't able to ping my home IP. After a bit of digging on the net I discovered that OpenWRT blocks all ICMP traffic by default which is a bit of a pain in the arse really.

Anyway, here is the config change that you need to make to /etc/config/firewall to enable all ICMP traffic through the firewall:

config rule

option proto ICMP
option target ACCEPT

Category: Research Tags : OpenWRT, ICMP, ConfigsComments: (0)
Bookmark and Share

Jan 21 2010 13:53

NP++ Code On SourceforgeI have started up a project on sourceforge to host the np++ code. There are a couple of releases of the module along with the modified version of radvd that is needed. The mapping advertisement daemon is on there as well as the wireshark dissectors.

The project can be found here for anyone that is interested in looking at the code:

NP++ On Sourceforge

All of the code is now hosted on the sourceforge svn server so that is also browsable on there.

Category: Research Tags : NP++, Sourceforge, SVNComments: (0)
Bookmark and Share

Jan 14 2010 18:38

Remove Quick Create From All Modules In SugarcrmIf you need to remove the Quick Create view from every module as I recently needed to it is quite simple to do. First of all create the following file:

custom/include/MVC/View/views/view.sidequickcreate.php
Then all you need to do is copy the following code in:

class ViewSidequickcreate extends SugarView
{
function display()
{
return '';
}
}

Go to the admin section and perform a "Quick Repair and Rebuild" and Quick Create should have disappeared from every module.

Category: SugarCRM Development Tags : Quick CreateComments: (0)
Bookmark and Share

Evolution Systems Blogs

Matthew Jakeman - CTO

Archives By Month