Chris Tate-Davies

An archive of helpful tit bits of information for development, and probably some stuff that is incomplete, wrong or boring…

Showing hidden files on Mac OS

Learning MacOS recently, and couldn’t find some hidden files, i.e. .htaccess To fix this, easy. Open Terminal, and paste the following in (both lines together), and press enter. Done. defaults write com.apple.finder AppleShowAllFiles TRUE killall Finder To reverse the operation and re-hide them, change TRUE to FALSE.

iPhone iOS 4.2+ no longer automounting in Ubuntu

I had this problem, which meant my iPhone no longer automatically mounted in Ubuntu 10.10. I had recently upgraded the iOS to 4.3.1 and this turned out to be the cause of the issue. So, to fix it: Click on the System menu, then Administration and Software Sources. You’ll have to enter you administrator password. The [...]

Creating a copied branch in SVN

To create a new branch in SVN, its very simple. svn copy <source> <destination> -m <message> This will copy the SVN in the source folder, into a new branch under <destination>. Very simple. More, in depth information can be found here: http://svnbook.red-bean.com/en/1.5/svn.branchmerge.using.html#svn.branchmerge.using.create

Discovery Enchilada Recipe

I need these all the time as I seem to have a problem remembering the amount of water to use… Ingredients 1tbsp oil. 500g minced beef. 1 Discovery Enchilada Kit. 200ml water. 50g Cheddar cheese, grated. Instructions Pre-heat oven to 200°C. Heat oil in a pan and fry mince until browned. Add sachet of spice [...]

How to use Nano on Unix-like systems

Nano is a basic text only text editor in Unix. It has no real GUI as such, and there is very little mouse interaction. But this makes it very useful, especially when SSHing to your web server. Here are some basic commands for you. Opening Nano to edit a file is as simple as Nano [...]

Accessing /var/www/ as normal user

Some useful linux commands to help with editing web pages on a server: To give access to others to my www folder (so I don’t have to login as sudo): chmod 2775 . -R To show the groups for the selected user: groups <username> groups www-data To add the www-data user to the local user’s [...]

Stupid Microsoft error messages

Why is it that the Microsoft developers have an inability to get their systems and processes to output a meaningful error message now and again? I mean, is it really that hard? I try to stay away from company slagging, but Microsoft, really…? I have recently bought an XBox 360 and I think its great. [...]

How to use mysqldump

Using mysqldump to back up a database If you want to make a super quick backup of a MySQL database, the best tool for the job is the native mysqldump. Its also a command line utility, so you can use it from a telnet or SSH connection, etc… The basic command structure of mysqldump is: [...]

Zend_Db – Performing a LIKE search

When performing a simple SQL search using Zend_Db_Select, $select->where(‘name = ?’, ‘chris’); But what if you want to do a LIKE search? $select->where(‘name LIKE ?’, ‘chris%’); Simples.

Linux – CHMOD 777

Just a note, when you update the permissions of a file: chmod +777 somefile.txt This change will only last as long as the session is logged in, i.e. once you reboot, it will revert back to what the permissions were.

« go backkeep looking »
  • Chris Tate-Davies

    Hello there. This is my little "repository" on the world wide web. Its for nothing more than documenting things that I might need again in the future. You could describe it as an extension to my memory.

    Also an online collaboration of my thoughts through the day. I'll try to keep the real random stuff out and keep the blog on course.

    Thanks for stopping by... Hope you find what you're looking for...

  • Tags