wkhtmltopdf repeat on subsequent pages
wkhtmltopdf has a bug as a result of a webkit bug. This means that the nice css styles for table printing don’t work in wkhtmltopdf. Fortunately for us, wkhtmltopdf can…
MSSQL Connection Woes
My life. I installed MSSQL 2008 Evaluation for testing of a new product. Great. But after 180 days it expired. I was told I could upgrade it to MSSQL 2012…
Mounting HTML folder in Centos VirtualBox
I have a particular Linux set up I need to test something on, but I use a Mac, so I use VirtualBox with a Linux VM for the testing. So,…
Setting up CentOS with no X Window Manager
For a nice VM I needed a Linux server, but no need for a GUI, so went for CentOS. Installed fine, but no networking. How do I install that? Turns…
MSSQL IF (multiple fields > one value)
In MySQL I use IF(value,then,else) quite often, but in a new project I am doing I need to do the same in MSSQL. SELECT field1, field2, IF(field3 = '1', 'Started',…
MySQL Administration (Remote Access)
So, once you’re all set up and running, you may want to give users access from the outside world. This is clearly an entry point for hackers and script kiddies,…
Git, trying to ignore a database config
If you are trying to ignore a file and git is mucking you about, it may be because the file you are trying to ignore is already in the repository,…
CSS not loading, Firebug states ‘Aborted’
Had some CSS that worked in Chrome, but not Firefox or Opera. Firebug reported this: Turns out, that my media atributes were incorrect, media="screen print" will not work in FF…
Stop directory browsing/listing with htaccess
Using Apache you can stop directory listing with this line in your .htaccess Options -Indexes Basically it says stop access for folders without and index (index.html, index.php, etc)
Chrome Conditional CSS
Before you say it, I know there are better ways of streamlining your CSS based on the browser, but this is good to ‘know’ @media screen and (-webkit-min-device-pixel-ratio:0) { .element_class…
wkhtmltopdf has a bug as a result of a webkit bug. This means that the nice css styles for table printing don’t work in wkhtmltopdf. Fortunately for us, wkhtmltopdf can…
MSSQL Connection Woes
My life. I installed MSSQL 2008 Evaluation for testing of a new product. Great. But after 180 days it expired. I was told I could upgrade it to MSSQL 2012…
Mounting HTML folder in Centos VirtualBox
I have a particular Linux set up I need to test something on, but I use a Mac, so I use VirtualBox with a Linux VM for the testing. So,…
Setting up CentOS with no X Window Manager
For a nice VM I needed a Linux server, but no need for a GUI, so went for CentOS. Installed fine, but no networking. How do I install that? Turns…
MSSQL IF (multiple fields > one value)
In MySQL I use IF(value,then,else) quite often, but in a new project I am doing I need to do the same in MSSQL. SELECT field1, field2, IF(field3 = '1', 'Started',…
MySQL Administration (Remote Access)
So, once you’re all set up and running, you may want to give users access from the outside world. This is clearly an entry point for hackers and script kiddies,…
Git, trying to ignore a database config
If you are trying to ignore a file and git is mucking you about, it may be because the file you are trying to ignore is already in the repository,…
CSS not loading, Firebug states ‘Aborted’
Had some CSS that worked in Chrome, but not Firefox or Opera. Firebug reported this: Turns out, that my media atributes were incorrect, media="screen print" will not work in FF…
Stop directory browsing/listing with htaccess
Using Apache you can stop directory listing with this line in your .htaccess Options -Indexes Basically it says stop access for folders without and index (index.html, index.php, etc)
Chrome Conditional CSS
Before you say it, I know there are better ways of streamlining your CSS based on the browser, but this is good to ‘know’ @media screen and (-webkit-min-device-pixel-ratio:0) { .element_class…