Linux, Apache, Nginx, MySQL, Javascript and PHP

Export selected data from SQL Server to a tab file with bcp
Microsoft SQL Server

Export selected data from SQL Server to a tab file with bcp

This post is a follow up to yesterday’s post titled "Export data from SQL Server

PHP Quick Tip: use __DIR__ instead of dirname(__FILE__) from PHP 5.3
PHP

PHP Quick Tip: use __DIR__ instead of dirname(__FILE__) from PHP 5.3

The traditional way of getting the directory the current file is in with PHP is to use dirname(__FILE__).

Web Developer Form Filler plugin for Google Chrome
Applications

Web Developer Form Filler plugin for Google Chrome

I need to test web forms a fair bit, and there’s also a particular online registration website that I

MySQL SQL_SELECT_LIMIT
MySql

MySQL SQL_SELECT_LIMIT

I came across a MySQL setting recently called SQL_SELECT_LIMIT which limits the maximum number of rows returned from
Find the index of an item in a Javascript array
Javascript

Find the index of an item in a Javascript array

Javascript 1.6 introduced the Array.indexOf() function. Javascript 1.6 is available in Firefox from version 1.5 and current versions of Chrome, Safari

jQuery Superfish Menus Plug-in and Caching the menu
Javascript

jQuery Superfish Menus Plug-in and Caching the menu

My last jQuery post looked at the Superfish plug-in showing how easy

Applications

Internet Explorer 7 issues with jQuery animation and position:relative

Internet Explorer 7 can have issues with rendering jQuery animations if some of the properties that are to be animated have
jQuery Facebox dialog with opaque background
Javascript

jQuery Facebox dialog with opaque background

A few months ago I posted how to make the web page behind a jQuery Facebox inline popup grey

PHP

PHP’s heredoc strings

PHP has heredoc syntax similar to other programming and scripting languages which allow multi line strings containing variables to

parseInt(’08’) returns 0 with Javascript
Javascript

parseInt(’08’) returns 0 with Javascript

I came across a rather interesting problem with the Javascript parseInt() function a couple of days ago; if the

Different home page and sub pages with SilverStripe
SilverStripe

Different home page and sub pages with SilverStripe

The SilverStripe CMS makes it very easy to have a slightly different layouts between pages by creating another page

Notepad++ fails to update
Applications

Notepad++ fails to update

Notepad++ is a feature rich Windows Notepad replacement. It contains an automatic package update feature in more recent versions

MySQL table is marked as crashed and should be repaired
MySql

MySQL table is marked as crashed and should be repaired

How do you fix the error when running a query on a MySQL table and get the following error: &

PHP

Using PHP’s glob() function to find files in a directory

A couple of weeks ago I posted how to read through a directory with PHP using the opendir() readdir()

Amazon’s Kindle DX
Miscellaneous Postings

Amazon’s Kindle DX

I got an email in my inbox yesterday about the new Amazon Kindle DX with Global Wireless which looks pretty
BootStrapDotNetAsssitantExtension error in Firefox
Applications

BootStrapDotNetAsssitantExtension error in Firefox

Microsoft Windows installs a .NET Framework Assistant for Firefox which cannot be removed from the Firefox add-ons menu and

Using find to locate all zero length files
Linux/Unix/BSD Quick Tips

Using find to locate all zero length files

A little while ago I posted how to use the Linux/Unix/OSX find command to 

Discard mail with exim4 using :blackhole:
Email Servers

Discard mail with exim4 using :blackhole:

The most obvious way to discard mail to a particular alias with the exim4 mail server is to send

1 4 5 6 7 8 50