You are here

Tip

Choosing the right PHP version for Windows

Submitted by Druss on Sun, 2011-04-24 12:00

PHP provides a number of different versions for install in Windows. There are versions which are tagged with VC6 and other with VC9. There are also thread-safe and non-thread-safe versions of the installer available for download. After some digging and trial & error fiddlery, my conclusion is that VC9 and non-thread-safe are for the Microsoft IIS webserver while the VC6 and thread-safe installers are for Apache and other non-IIS webservers.

Hope this helps :)

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

Submitted by Druss on Fri, 2011-04-22 09:56

I installed MySQL on my local server today and when I went to access it via mysql_secure_installation to set my root password etc., I ran into the following curious error:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

CentOS: warning: ius-release-1.0-6.ius.el5.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 9cd4953f

Submitted by Druss on Wed, 2011-04-20 23:42

I ran into the following warning while trying to install a package from the IUS third-party repository for CentOS:
warning: ius-release-1.0-6.ius.el5.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 9cd4953f.

CDisplayEx and full screen views

Submitted by Druss on Wed, 2011-04-13 13:25

I'm a big fan of comics and when on Windows, I tend to use CDisplayEx as my preferred reader of choice for .cbr and .cbz files. When on my desktop, I enjoy reading comics in full screen glory. I like each page fitting the entire width of my screen and scroll down the page, if need be, to reach any hidden panels. This allows me to realise the full impact of the art and makes for comfortable viewing.

Closing all message windows in mIRC

Submitted by Druss on Sun, 2011-04-10 01:31

I was up to no good on mIRC earlier today and found my screen full of message and fserv tabs/windows. While it certainly is fun clicking away at each window and closing it manually, that would only be if I had some sick fascination with RSI. A little digging unearthed a few commands that helped alleviate the process:

Recovering an accidentally closed tab in Google Chrome

Submitted by Druss on Fri, 2011-04-01 00:51

I have gotten used to relying on Opera's tab recycle bin feature to reopen closed tabs. However, earlier today, I found myself accidentally closing a tab in Google Chrome, and what's more I had an unfinished forum comment which I had worked on for 20 minutes in said tab. When I saw no recycler icon in the tab bar and no obvious feature in the preferences or options sections, I panicked.

Uninstalling plugins from Eclipse 3.6 (Helios)

Submitted by Druss on Sat, 2011-03-19 01:56

I had to do a clean install of Eclipse today and found myself stuck with a dodgy plug-in (subversive). However, when I went to the Help menu, I did not find any option to uninstall software. IIRC, there was something along the lines of Manage configuration here where you could go to makes changes and uninstall plug-ins.

Episodes to avoid in the Star Trek franchise

Submitted by Druss on Thu, 2011-03-03 22:19

Over the last few months, I have run through the entire list of episodes for Star Treks TNG, DS9 and Voyager. As you can imagine, not all episodes are very good and some are downright insipid. The following are the rules of thumb that I have arrived at when deciding whether to skip an episode:

File renaming using sed and xargs: Prefixing all filenames with a 0 from the commandline

Submitted by Druss on Tue, 2011-01-25 00:56

Earlier today, I wanted to prefix a number of image files on a server with a 0. If this was on my desktop, I would have simply used a graphical tool such as the excellent Métamorphose. However, in this case, only a command-line was available. While Google threw up a number of bash scripts, I was curious to see if this could be done in a cleaner and more concise manner. Following the excellent reference to sed and more Google magicking, I arrived at

Pages

Subscribe to RSS - Tip