My daughter Amy is having a baby tonight or tomorrow. Her contractions are 10 minutes apart so I need to get some PIM accomplished quickly this evening.
The first order of business tonight is to download the IG:Syntax Hiliter for the code snippets I collect. There are many times that I need to locate some PHP or JavaScript code but can't remember where I placed it. For example, when I add an email address to a web page I forget where I keep the JavaScript code to hide email addresses from spam bots. Now I can search my PIM for "email JavaScript" and find the code quickly. The IG:Syntax Highlight plugin highlights code from 14 programming languages.
For example:
-
-
<script>
-
var contact = "John Hesch"
-
var email = "john"
-
var emailHost = "johnhesch.com"
-
document.write("<a style='color:white; border-bottom:white; font-size: 8pt;' href=" + "mail" + "to:" + email + "@" + emailHost+ ">" + contact + "</a>" + ".")
-
</script>
-
I have a dedicated server where I host 4 or 5 of my own web sites plus the web sites of family and friends along with a few paying customers. I also have quite a few pages that I use to admin my radio station. I created a static page called Web Admin and this page will hold all of the links I need to administer my websites and server. I'm tempted to include usernames and passwords but even though my PIM will be password protected I don't trust the web enough to keep sensitive information online.
I created some tags this evening as I entered in some data. There have been some articles written about KZION in the past and I want to keep those even if they become unavailable from the newspaper itself. Since my PIM is for personal use and locked up I can copy the entire article to archive in my PIM without worrying about the copyright.
The last addition to my PIM for today was to create a To Do list. I created a new file called todo.php and added the following code:
-
-
<?php
-
/* File Name: todo.php */
-
include ("wp-blog-header.php");
-
get_header();
-
get_sidebar();
-
?>
-
<br />
-
<div id="content">
-
<div class="post">
-
<?php
-
require_once (ABSPATH . WPINC . '/rss-functions.php');
-
$today = current_time('mysql', 1);
-
if ( $scheduled = $wpdb->get_results("SELECT ID, post_title, post_date_gmt FROM $wpdb->posts WHERE post_status = 'publish' AND post_date_gmt > '$today'") ) :
-
?>
-
<div>
-
<h3><?php _e('To Do List:') ?></h3>
-
<ul>
-
<?php foreach ($scheduled as $post) {
-
if ($post->post_title == '')
-
}
-
?>
-
</ul>
-
</div>
-
<?php endif; ?>
-
</div>
-
</div>
-
<br />
-
<?php get_footer(); ?>
-
This page takes any posts that I have created which are future dated and lists them. When I want to create a new to do item, I just write it up as a post and then future date it for when it's due. I don't plan on using this as a simple to do list like take out the trash or pay a bill. I want a goal/to do list where I can list ideas or goals I want to follow up on or accomplish. When the item comes due it will become a post that will hopefully have the information or results I was looking for.
Well, my daughter is now being admitted and so I'm anxiously waiting the call to head over to the hospital. This will make me a 4 time grandpa!