tclogo



HotelsCombined.com

Pages

Archives

Categories


Recent Postings

Recent Comments

Feeds

RSS2 feed

Links

Most Popular Posts

Archive for November 2007

Changing memory setting to show photos

Friday, 23rd November 2007 1:28pm
Early this week I had an interesting situation whereby some of the photos in my photo gallery stopped showing and instead started showing the alternate text.


To display photos in my photo gallery I use Php's imagecreatefromjpeg gd function because that enables me to create thumbnails on the fly and then on clicking the thumbnail I get the enlarged version which I can set to whatever size fits the page.


I realised that all the photos that were not showing were from the 7.2 Megapixel camera (a Sony W55)and all the photos from the 4.0 and 5.0 Megapixel camera's were showing. To solve the problem I had to increase the 'memory_limit' setting found in the Resource Limits section of the php.ini file.


I still don't understand why the photos showed for a little while and then suddenly stopped especially as there had been no changes to the php.ini file

delicious delicious | digg digg

Category: Php | Comments : 0

Checking whats running

Monday, 19th November 2007 10:36pm
One of the tools that I have found very useful when it comes to troubleshooting my Windows XP systems is What's Running.


This tool has a familiar interface similar to Windows Explorer and you can check processes, services, modules, IP-connections and also drivers.


Its also possible to use the tool to control your system by starting and stopping services and processes and also easy to configure startup programs.


The feature I like most is taking a snapshot of the system and saving it for later comparison especially when something is not working properly. So you can compare a snapshot when everything is working fine to a snapshot when there is a problem and that comparison may shed some light on what the problem is.


The only other tool that I know of that comes close to this is Process Explorer which I wrote about sometime last year.

delicious delicious | digg digg

Category: Windows | Comments : 0