Latest Post

Error: No input file specified.

While trying to run a codeigniter app the other day I came across this error just after I had finished uploading the files and making the ne...

Saturday, December 27, 2014

By Example: How to Create, Modify and Delete Scheduled Tasks from the DOS Command Line

Create ‘Task 1’ to run C:\folder1\folder2\task1.bat at 11 PM everyday:

 

SchTasks /Create /SC DAILY /TN “Task 1” /TR “C:\folder1\folder2\task1.bat” /ST 23:00

 

Modify ‘Task 1’ to run at 11.45 pm instead:

 

SchTasks /Change /TN “Task 1” /ST 23:45 

 

 

Delete the task named ‘Task 1’:

 

SchTasks /Delete /TN “Task 1” 

 

Read more from Microsoft's Documentation

Thursday, March 27, 2014

Miss the old [blink] tag?, i found a solution from stack overflow

Still remember the tag, well i was reading up on something the other day and came across someone who has a cross browser fix that works in IE, Chrome, FF, well at least when i tested it did. See code snipet below:


The HTML

[span class="blink_me"]This Will Blink[/span]

The JQuery

function blinker() {
    $('.blink_me').fadeOut(500);
    $('.blink_me').fadeIn(500);
}

setInterval(blinker, 1000);
Hope this helps someone out there!

Stackoverflow article: http://stackoverflow.com/questions/16344354/how-to-make-blinking-flashing-text-with-css3
JSFiddle: http://jsfiddle.net/umz8t/458/

Wednesday, January 29, 2014

MYSQL - Generate a random number

Syntax:

SELECT FLOOR(RAND() * ( MAX - MIN  + 1)) + MIN 

This will generate a number between  MIN and MAX inclusive.

Example usage:

Say we want to generate a random number between 1 and 10 we would say:

SELECT FLOOR(RAND() * (10 - 1 + 1)) + 1 

i.e.

SELECT FLOOR(RAND() * 10) + 1 

Hope this helps someone.


Chitika Ads