Browse Author

bandertron

Robots.txt Tutorial

Robots.txt Tutorial
Robots.txt Tutorial

IMPORTANT: be very careful when playing about with your robots.txt, its very easy to block off your entire site without realising!…

Covered in this post:

What is a Robots.txt?

A Robots.txt is a file used by  webmaster  to advise spiders and bots (e.g. googlebot)  where in the website they are allowed to crawl. The robots.txt is stored in a website’s root folder, for example:  http://www.domain.com/robots.txt

Enabling Short Tags in PHP

php short tag
enabling php short tag tutorial

In this tutorial we look at how you enable short tags in PHP. Short Tags or short_open_tag as it is know in PHP.ini allows you the option to use short style opening tags for PHP code blocks e.g. <? instead of <?php.

To enable this feature on your server open PHP.ini file (this should be somewhere in your PHP install folder e.g.  /bin/php/phpx.x.x/php.ini) and change the short_open_tag setting to:

short_open_tag=On

MySQL – SELECT * FROM table WHERE date = TODAY

mySQL SELECT WHERE date = today
mySQL SELECT WHERE date = today

The Quick answer is:

SELECT * FROM myTable WHERE DATE(myDate) = DATE(NOW())

I was tearing my hair out trying to figure this the other morning and its really quite simple. I thought i may have use a day month year match or possibly use PHP but thankfully the guys at MySQL included this nice DATE() function which means you don’t have to worry about the hours, minutes and seconds being different. Simples!
MySQL DATE / TIME Functions

The functions used in thie MySQL query are:

CSS: Horizontal Centering Jumps in Firefox

This is one of those situation i think most developers find themselves running into somewhere down the line. You’ve created you CSS template using margin:0 auto and everything looks great in the different versions of IE, Firefox, Oprea, Safari etc but for some reason your centering starts to jump all over the place when you click between various pages in Firefox. What’s going on here then?…

The answer is quite simply, some browsers like Firefox don’t display vertical scroll bars unless required and as a result your template’s centering begins to jump around (16px to be exact) when you navigate between a page that has a height that requires scrollbars and one that doesn’t. Its obvious now, i hear you cry! Don’t worry, i did the same… Doh!

Mozilla Bespin – aka Code in the Clouds

Mozilla Bespin – aka Code in the Clouds

Mozilla labs are currently experimenting with a new online code editor they are developing called Bespin.

Bespin, also know as ‘Code in the Clouds’, uses HTML 5 to provide an online code editor environment for developers to code, store and share projects they are working on. Put simply, the concept is code and access from any machine, similar to Google Documents I guess.

I’ve been having a little play around to see what all the fuss is about and i must admit i like the idea. However, there’s a LONG way to go until we can hangup our Notepad, Vim or Dreamweaver boots.

Google Launches Chrome Browser

Google Chrome Browser

This evening Google released a BETA version of they’re open source browser ‘Chrome‘.

The browser has speed, security and a stable browsing experience as core features. I’ve only had a quick play but I must admit I like what I see so far and of course, most importantly, my site renders perfect in it! :)

The browser is based around Googles Webkit browser engine and powered by Google Gears. It also features there own JavaScript virtual machine ‘V8‘ to help handle todays more powerful web applications and make the development of them easier.

Radiohead Videos

Radiohead Videos

As I’m a big fan of Radiohead and their videos I’ve put together a selection of them for you all to marvel at. If you have never heard of Radiohead or not seen any of their videos, click play NOW!…

Radiohead – House Of Cards

This is Radiohead’s latest video ‘House of Cards’ which is of the album In Rainbows. This video was made without cameras or lights and uses the 3D capture technology – Geometric Informatics and Velodyne LIDAR. Pretty mad but stunning stuff. Theres a video on the making of it which is also worth a watch.

Funny Squirrels

Squirrels / Squirrel Adverts

A collection of funny squirrel clips and everything that is squirrel:

Air Vigorsol squirrel advert:

 

The classic Carling Black label advert (1989:)

The more recent Carlsberg football squirrel advert:

Bud light squirrel commercial: (what is it with Squirrels and alcohol adverts?

Drunk / Pissed Squirrel

Triumph The Insult Comedy Dog

Triumph The Insult Comedy Dog

Triumph ‘The Comedy Insult Dog’ attends the premier night of Star Wars – Attack Of The Clones, interviewing the die hard fans.

This was the first Triumph clip i saw and it has to be my favourite. ROTFLMAO at the Dragon Master, Darth Vader rip and the female genitalier joke. Triumph we salute you.

 

 

Triumph at the Westminster Dog Show. I’ve got a feeling this was one of the first things Triumph’s did, how they didn’t get arrested or something i have no idea!

 

How to display .htaccess in CuteFTP

How to view htaccess in CuteFTP?
How to view .htaccess in CuteFTP?

This tutorial provides a step by step guide on how set-up CuteFTP to display your .htaccess file.

By default CuteFTP’s filtering system can hide the htaccess so it doesn\’t appear within the list of files on your server. I have know idea why this is exactly but I’m guessing CuteFTP is just trying to protect the configuration file from accidental mishaps.

You have two ways to enable the viewing of htaccess in CuteFTP:

Method One: Apply ‘On-The-Fly’ Server Side Filtering

  1. Right click in root folder:
  2. Select Filter
    CuteFTP Filter Option