[HOWTO] Watch and control thousands of CCTV cams thanks to google!

Just click this simple link there are about 40,000 links to play with!

You can control all of these cams with the controls on the left, zoom pan screen capture everything!

Click here

Popularity: 16% [?]

Posted in HOWTO. 2 Comments »

[HOWTO] Eircom Netopia and DYNDNS.org

I just learned these routers have a hidden option for updating your dyndns account automatically!

You have to us telnet commands to activate it…

Open Telnet and open 192.168.1.254 (default router address)

Now use these commands to setup dyndns:

>configure
>set dynamic-dns option dyndns.org
>set dynamic-dns ddns-host-name myhostname.dyndns.org
>set dynamic-dns ddns-user-name myusername
>set dynamic-dns ddns-user-password myuserpassword
>save
>quit

Restart your router…wait about 2 mins then check the logs for this:

00:00:00:43 TR-069: ACS URL resolved
00:00:00:43 TR-069: Resolving ACS URL - Retry 0
00:00:00:41 DDNS: Hostname updated. good
00:00:00:37 NTP: Update system date & time
00:00:00:37 Daylight Saving Time enabled
00:00:00:32 DDNS: initializing service
00:00:00:32 ipcp: negotiated TCP hdr commpression off

Enjoy!

Popularity: 11% [?]

Posted in HOWTO. 1 Comment »

[HOWTO] Wordpress Child Themes

Here is an easy was to keep your custom edits to the theme php files.

We need to create a child theme that uses the garland core files for the main theme functions as well as and custom code you add, then when you update the theme from within wordpress only the parent theme will get changed, your child theme will remain intact!

first off we create a new folder within the themes dir and give it a name, inside it we put a style.css file. Ive chosen garland-redux for this example as were protecting my garland theme from changes…we still need the original garland-revisited theme folder, so dont go deleting it!

so your directory path will look like this:

wp-content
|_themes
        |_garland-revisited
        |_garland-redux
                       |_style.css

The format for the style.css file is simple, it just tells the child theme where the parent is:

/*
Theme Name: Garland-redux
Theme URI: http://www.pross.org.uk
Description: Testing WordPress Child Themes
Author: Simon Prosser
Author URI:http://www.pross.org.uk
Template: garland-revisited
Version: 1.0
.
This work, like WordPress, is released under GNU General Public License, version 2 (GPL).

http://www.gnu.org/licenses/old-licenses/gpl-2.0.html

.
*/

@import url('../garland-revisited/style.css');

Now go back to the thmes menu of your dashboard and there will be a new theme there ;)
Now you can start customizing! Lets say for example you wanted to edit the header.php. First copy the original header.php from the garland-revisited parent folder and upload it into your fresh child folder, now you can edit it and your changes will never be lost!
DONT make a blank header.php file in the child folder and simply add your changes to it, it WILL override the file from the parent, you have to copy first then edit.

Good Luck!!

Here are some handy links:

the garland-revisited support post: http://www.pross.org.uk/389/garland-revisited-wordpress-theme.html

Template-override: http://wordpress.org/extend/plugins/template-overide/

Popularity: 5% [?]

Posted in HOWTO. Tags: , . 1 Comment »

[HOWTO] Display number of spams stopped since your blog started.

So i wanted to display total number of spam coments blocked by askismet. Checking the the plugins source i found this function which returns the number:

get_option('akismet_spam_count');

Getting the blogs first post date was the tricky bit and required a database query:

$firstpost = $wpdb->get_var("SELECT post_date FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'publish' AND ID >0 LIMIT 1");

The query checks the first post above zero as most people delete post #1.

So the complete code is:

<?php echo get_option('akismet_spam_count'); ?> Spams caught since
< ?php
$firstpost = $wpdb->get_var("SELECT post_date FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'publish' AND ID >0 LIMIT 1");
echo gmdate('M Y',strtotime($firstpost));
?>

the result looks like this:
10253 Spams caught since Jun 2006

Popularity: 7% [?]

Posted in HOWTO. Tags: , , . 1 Comment »