Toggen Blog
Tech tips
Articles
Latest
Note to self Regarding Printing Photos to a HP Officejet Pro 8500A
I have been attempting to print 4" x 6" photos from my Fedora 15 install and the images (which I have edited with GIMP) have terrible pixelated edges near any fine detail where I have selected the surrounding region and filled with another colour. I was printing to...
PHP FileInfo
Trying to get PHP to return the file type of an xcf image and it stubbornly refused to return what I wanted. Still can't get it to output image/x-xcf but I'm starting to think the compiled in magic data base of PHP doesn't include it and I haven't successfully loaded...
How to Troubleshoot Cron Scripts
It works from the command line. Why doesn't it work in Cron? ...insert head scratching here... Firstly run your cron job often so you can get some output. Use common sense here, obviously if the cron scripts takes 5 minutes to run then you would bump up the frequency...
Taking Screenshots of a Website in Linux
They said "James we need someone to check a website and make sure everything is OK over the weekend". Hmm OK... I'd rather not be tied to a laptop or hang around home so why not send an email with a screenshot to my Android HTC Desire. Search, search, search: And then...
seLinux – Mordac the Preventer of Information Services
The Problem: I was trying to do a mkdir using php in a cakephp file upload script and I got an error: 2011-10-18 21:55:48 Warning: Warning (2): mkdir() [http://php.net/function.mkdir]: No such file or directory in [/home/user/public_html/mapdb-dev/app_controller.php,...
CakePHP change a view to have an image upload field in it
# add array('type'=>'file') to the Form->create method < ?php echo $this->Form->create('Map', array('type'=>'file'));?> < ?php __('Add Map'); ?> < ?php # most fields are just normal automagic text/numeric/boolean fields echo $this->Form->input('name'); echo...
