Mike’s Blog

Wordpress Word-Count Plugin

Filed under: Wordpress Plugins by Mike mid-afternoon on Wed, Mar 30, 2005

Here is my first shot at a Wordpress plugin. It will produce a word count for not only posts but comments, trackbacks and a total word count. This plugin is based solely on Nick Momrik’s Post Word Count Plugin. I took Nick’s plugin and tweaked it slightly to output the different counts.

Installation
1. Download Word-Count
2. Change the extension of the saved file from .txt to .php
5. Upload the changed file into your wp-content/plugins/ directory.
6. Activate the plugin on your WP Admin » Plugin Management page by clicking the corresponding “Activate” link under the Action column.

Usage
Place the following functions into your code wherever you want the totals to display:

post_word_count()
comment_word_count()
trackback_word_count()
total_word_count()

You can see it working here.

(Read on …)

Visual Basic 6, Drive Mappings and Windows Explorer

Filed under: Visual Basic by Mike just before lunchtime on

I have created an app with VB6 for work that will launch a CADD application and set all of the necessary settings for a particular client. We have 7 offices and various people switch between offices daily. I have been trying to add the functionality to remap there drives so that they see the files from another office. Simple right? Well kind of, Writing the code to remap drives was reletively simple but there is one catch. In windows explorer looking at the drive description:

sharename on ’server’ (M:)

After remapping the drives the server name will not change, but the contents of that drive will display the correct server information. This is troubling. Even if you try to refresh, close explorer and reopen, or even curse at teh screen it will not change. To make things a little bit more confusing I have another app that only remaps drives and it works correctly. I used the same exact remapping code for both apps. I am sure there are not that many users who will catch onto this and realize that the two are not correct, but I would rather not take that chance.
If anybody out there has any idea as to what could be causing this or how I can go about fixing this please let me know.

(Read on …)

Dan Brown’s Deception Point

Filed under: General by Mike at around evening time on Mon, Mar 28, 2005
Deception Point

I am currently listening to Dan Brown’s Deception Point in my car as I drive to and from work. I have about a 45 minute commute and I was getting bored listening to local radio. I have already read this book and now have chosen to listen to it during my drive. Dan Brown is a genius. Anybody who can hook me into actually reading one of their books is pretty good, but he has hooked me into reading all four of his books. And now I am re-listening to them. I just can’t wait till he writes another book.

Ryan’s Gallery Update

Filed under: General by Mike in the early morning on Sat, Mar 12, 2005

This is a gallery of pictures of my nephew.

Ryan’s Gallery

I haven’t updated his gallery in a while and decided now was a great time to do it. I also liked the base WordPress theme so I used that as a base to build his new layout.

Ray Lewis’ Full Moon Bar-B-Que

Filed under: General by Mike at around evening time on Wed, Mar 9, 2005

Rebecca, some of her friends from work and I ate at Ray Lewis’ Full Moon Bar-B-Que tonight and it was great. The place looked much smaller inside then you would imagine from the outside. There are Sharp Aqueous LCD TV’s at every table and you could switch between about five channels; two news, two ESPN and one cartoon. The only complaint that I had was the fact that they had an issue with their chicken pit and they had no chicken, no beef brisket, and in an unrelated issue no Coke. Anyway I got their two-meat combo with pork and turkey, the only two meats left, with fries and cinnamon apples. When our food came out the plate was huge, with a big pile of both pork and turkey. The portions were big enough for me to take some home for lunch tomorrow. I can’t wait to go back and get the brisket and chicken next time. They will definitely be seeing more of me at lunch time, since I work about a mile away.

Previous Posts »