Computing: page 9
Opera has released a new version of their free mobile browser Mini for beta testing. Head on over to mini.opera.com to download it or if you are reading this from your mobile the direct link to the beta is m.opera.com/next. The new version is much improved in many areas. The first thing you will notice is a new sleeker user interface and a “Speed Dial” interface when it first loads up. Read more ⇒
jQuery Using and Manipulating Select Lists
JQuery is a fantastic tool but sometimes its functionality can be obscure or doing it one way might not work in a certain browser (MSIE6 anybody!). I have often found myself trying to remember the best way to work with HTML select lists so I am compiling this list of hints for future use and I hope that you find it useful. All the examples below are written where this represents the select element of the select list. Read more ⇒
Moving to git and setting up InDefero as a web frontend
Most of our development is done on Vista desktops (although I also run Ubuntu of course) and we wanted a web interface for easy browsing of code so I needed to use a pervasive and well supported VCS. After much hunting around and looking at Bazaar, Mercurial and git I decided to go with the latter due to its support in the community. There are still some reservations I have against git, which work well for Linux kernal development but not our day to day web development – the major one being that subversion would allow you to commit and update on a file by file basis where as git versions the entire repository at once as far as I am aware. Read more ⇒
I use most of these commands every day to simplify my terminal interactions with an Ubuntu development box. This is more of a personal reference but thought I would share incase you find it useful. Task Command Get all users on the system for user in `getent passwd | cut -d: -f1`; do id $user; done Delete all .svn or any file name by replacing .svn in the command with your filename Read more ⇒
Samba File Share Over SSH Tunnel
This is not a post about setting up Samba shares. If that is what you are looking for then I can recommend the following book; Using Samba: A File & Print Server for Linux, Unix & Mac OS X. Sometimes you need to be able to access a remote Samba server in a secure manner from a Windows machine. This is a relatively simple procedure on an XP SP3 machine like mine linking into an Ubuntu server pre setup with Samba file sharing. Read more ⇒
Memcached and APC: Two Simple Techniques to Speed up your PHP Webpages
Memcached and APC are two tools that you can install on your server and gain almost instant gratification! APC basically caches executions that you send to a PHP process so that the next time you ask the parser to run your script it only has to look for some pre-chewed opcode in memory rather than parsing your PHP from the disk. APC also has another feature up its sleeve, memory object caching, which allows you to store objects such as results from a database table in memory. Read more ⇒
Installing APC and Memcached for PHP Sessions on Ubuntu and Debi…
Installing APC on Debian or Ubuntu is as simple as: **user@server:/directory/$** sudo apt-get install php-apc Now let us reboot the Apache process to enable our new cache: **user@server:/directory/$** sudo /etc/init.d/apache2 restart APC should now be ready to run on your server. Try running the following command to verify it is setup; you should get something in response like mine: **user@server:/directory/$** php -r ‘phpinfo();’ | grep ‘apc’ apc MMAP File Mask => /tmp/apc. Read more ⇒
I have previously written about Haiku (formerly OpenBeOs) on my blog and I am pleased to say that I revisited this project last night and had a play with the latest nightly builds. It has moved on from the last time I look at it nearly 4 years ago now, but it still has some way to go before it will be a plug and play replacement for the old BeOS 5. Read more ⇒
Using phing for good - Unfuddle Add Repository and SVN Import Ta…
As you may be aware I have recently been playing with the excellent Agavi framework and it introduced me to the interesting phing tool. Phing can be used to automate tasks with build files that are close to interoperable with Apache Ant, which uses XML files to configure builds. The advantage phing has for us PHP users is that it is entirely written in PHP so extending it is as simple as adding a new class. Read more ⇒
Installing APC and Memcached for PHP Sessions on Redhat
Installing APC on Redhat is as simple as: [user@server directory]# yum install php-pecl-apc APC should now be ready to run on your server. Try running the following command to verify it is setup; you should get something in response like mine: [user@server directory]# php -r ‘phpinfo();’ | grep ‘apc’ apc MMAP File Mask => /tmp/apc.s5jA6w apc.cache_by_default => On => On apc.coredump_unmap => Off => Off apc.enable_cli => On => On apc. Read more ⇒