Quick Tips

Quick little tips about stuff

This section contains short little posts and links to other websites with "quick tips" that don't really need a whole post about them. In some cases they more or less replicate what is in online documentation but are used to bring attention to little known functions etc that my regular readers may not know about; or for quick personal reference.

Post sort order: Post Date (Newest First) | Post Date (Oldest First) | Alphabetical | Date Updated

Which version of CentOS or RHEL is running?

Posted in Linux/Unix/BSD and Quick Tips -

The uname -a command will tell you which kernel version of Linux is running but doesn't give you any information about the distribution or distro version number. This quick tip shows how to do this for CentOS / Red Hat Enterprise Linux.

Literal tab character on the command line on Linux BASH

Posted in Linux/Unix/BSD and Quick Tips -

So you need to put a tab on the command line when using BASH on Linux, Mac, BSD? How to do it? The tab character is usually used for command completion etc so typing in a tab won't render one on the command line.

Change the timezone on CentOS

Posted in Linux/Unix/BSD and Quick Tips -

I recently needed to set up a CentOS 5 box and completely forgot how to set the timezone. There's apparantly a nice easy text GUI for doing it in RHEL but I couldn't find the same thing on the CentOS box so here's how to do it. It should also work for most Linux systems.

Using find to locate all zero length files

Posted in Linux/Unix/BSD and Quick Tips -

A little while ago I posted how to use the Linux/Unix/OSX find command to locate files bigger or smaller than a particular size but didn't cover how to find zero length files. This is shown here.

How to refresh the projects file tree in NetBeans

Posted in Applications and Quick Tips -

This issue has been bugging me for a while and I just worked out how to solve it: if you're using NetBeans and add some files to the project outside NetBeans (like copying and pasting in Finder/Explorer) then they don't show up in the list of files in the projects tree view.

PHP Quick Tip: Check if URL aware fopen wrappers are enabled

Posted in PHP and Quick Tips -

PHP supports opening remote URLs (e.g. http://www.example.com/something.htmnl) using the fopen and similar functions. It is possible to disable this function in the PHP configuration so this quick tip shows how to check if it is possible to open remote URLs.

Fix "the operation can't be completed because you don't have permission to access some of the items" error on OSX

Posted in OSX and Quick Tips -

I run my webserver and file server from a virtual machine with the files shared using Samba (yes, now that I'm running on OSX I should really share the files with NFS but that's for another day). When trying to copy files from the Mac to the Samba share I was getting the error message "The operation can't be completed because you don't have permission to access some of the items".

Netbeans Quick Tip: Syntax Highlighting and File Extensions

Posted in Quick Tips -

If you have some random file name extension (such as .ss for SilverStripe templates) which Netbeans doesn't know about, it's easy to configure it to use the correct syntax highlighting.

OSX Quick Tip: Show all files in the Finder including dot files

Posted in OSX and Quick Tips -

The default behavior of the Finder on OSX is to hide UNIX files such as /usr /var etc and dot files (e.g. .htaccess). This quick tip shows how to enable (or disable) showing these files.