Category Archives: News

Things, Goings On, and Stuff I write

Abby Update

Abby has relaxed a bit today, since yesterday’s crazy attitude and a night of less sleep she’s taking a nice long nap right now and she’s been more obedient. She is still calling Kelsey and Kristin Aunt Shari off and on, but it’s progress 🙂

I’ve Been Hit

Two meanings to the title:
Sleep-less Night
Last night Abby was awake somewhere between 2:00 AM and 4:00 AM. I got a lot less sleep than I expected.

Web Site Hits
Between the release of StatTraq and the ‘Women of Home Depot‘ I’ve gotten over 550 hits and it not even 7:30 AM. Back 6-7 months ago I was excited to get 90 hits in one day (mostly family then, oh and ‘Women of Walmart’ surfers).

Pray that Abby sleeps better tonight because I’ve had three nights in a row of low sleep and it’s really starting to take a toll.

Girl Gone Wild

Jessica’s sisters, Kelsey and Kristin, came into town this morning and Abigail has been out of control all day long. She’s just been disobedient to my every direction. I call her to me to give her a hug and she runs away saying, “I’m sorry!” This girl has gone wild. I hope tomorrow goes better 🙂

Playboy.com launches ‘Women of Home Depot’

Playboy.com launches “Women of Home Depot” spread. As I had reported earlier that it was coming…. it has now come. Sad. Sadder still is that my hits went up severely as my site ranks highly for this ‘search phrase’ as well as ‘Women of Walmart.’ Don’t look at this stuff guys, it’s really not good for you or your female relationships (wives, girlfriends and daughters).

Announcing Stat Traq Beta ‘a’

A little over a week ago I wrote about ‘Powdered by WordPress’ which Matt linked to. In that post I mentioned a statistics package I was working on and how I was going to release it to the public as a plugin. Several folks mentioned that they were interested in trying it out. That package I have officially named ‘StatTraq’ [someone please let me know if that name is taken, I could not find any evidence that it was]. StatTraq is in need of testers who can install the WordPress 1.2 plugin (following the included instructions and installer PHP page) and then report the bugs they find. Also, those who use it are asked to submit feature requests and ideas for future expansion of design and functionality. Suggestions and problems should be sent to stattraq@randypeterman.com.

Download the Zip file: wp-stattraq.zip

Writing a WordPress Plugin:Part I

I’ve been working on ‘StatTraq‘ a WordPress statistics plugin and have been able to find reasonably good documentation and have supplemented the rest of my needs for<> information with ‘Find in Files’, a useful feature of TopStyle. I’ll share what I’ve learned so far in a series of articles on programming WordPress 1.2 plugins.

The first thing you’ll need in creating a WordPress plugin is a set of hooks for either actions or filters. These hooks are places in the code that call your functions when an event or certain text is processed. I’ll explain both in further detail below. A list of actions and filter events can be found at the WordPress Wiki.

Actions
Actions are events that take place during the WordPress document creation cycle. When WordPress gets a request from a client (browsers like Firefox, RSS aggregators like FeedDemon or any other device like a WAP 2.o/XHTML basic phone) and the PHP application starts up. WordPress gives you the ability to call a function or functions when certain events take place.

For example with my statistics plugin I need to add information about the request to the database, to make sure that I didn’t hender the the display of the WordPress data I added a hook for the ‘shutdown’ action like so:
add_action('shutdown', 'stat_traq_event');
This allows the stat_traq_event function that I created to initiate the data entry into the database to be called after the page is created but before PHP shuts down.

Filters
The key to your plugin is determining what event should trigger your plugin. Some plugins are filters, which means that they should be run when certain text is output. For a plugin that turns your article text into 1611 Old English (the year the King James Bible was published) you’d want your filter to be called on whenever text was output.
add_filter('the_content','thine_olde_English_plugin');
When ‘the_content’ is requested the old English plugin will be passed the text of the article to manipulate it. In this case words like ‘your’ would be changed to ‘thine’ and ‘you’ would be changed to ‘thee’ and ‘donkey’ would be changed to ‘ass.’

Be sure to check out the API documentation on the wiki and feel free to participate on the WordPress forums or post questions here [as a comment], if I know the answer I’ll write you, if I don’t I’ll see if I can send you a link to somewhere with the answer.

In Part II I’ve written about interacting with the database in WordPress, something that is easy and comes with a few nifty tools built in.

A Drive in the Mountains

Today my dad and mom took Abby and I for a drive in the mountains to get us out of Jessica’s hair. Jessica wanted to finish some last minute cleaning before her sisters come into town for 1,036,800 seconds. It was a good drive and Abby was pretty well behaved. She was cute asking my dad to do certain things with her. At one point in time she said, “No. Sit in seat Grandpa!” Which I made her follow with a please, but she wanted him to sit next to her while we were at a vista point looking over the valley that holds Denver.

I love the mountains and if I could I’d carry them in my pocket so that I could play in them whenever I felt like it 🙂

Sunday

Church
The church service was really good today as we learned about Ephesians 2:7

that in the ages to come he might show the exceeding riches of his grace in kindness toward us in Christ Jesus

One verse, but totally packed full of detail. The thing that struck me is that God is doing those things toward us, we are the recipients of His kindness if we are redeemed by His son Christ. Heaven is not described in terms of Man’s experience but more in God’s actions. Sometimes we think about what we’ll be doing rather than what we should be thinking, “What will God be doing?” In this verse it is clear that God will be showing kindness to us eternally! If you can conceive of 10,000 years think of that as being nothing in the scope of infinity, and all of that time our minds will be amazed (blown away, astonished, boggled, fascinated, overwhelmed, etc.) by His kindness towards us as He reveals His love. What is even more amazing is that the amazing nature of His revelation of character will be yet more amazing even after a trillion years [if the time-space continuum can be forced on the heavenlies].

All of this amazing love because of Christ’s work on the cross. Wow!

The Second Party
The first party happened last night at the Kaes’ house for Kailey and Trystan and this afternoon we converged for a second party and had yet another great time. The best fellowship to be had in Colorado. Craig Kaes works on Jabber’s server side software and he and I have had some really neat conversations about programming but also about other things in life. It is neat to have a programming friend who likes to talk about programming but also loves so many other things.

Craig and Brian White (also there at the party with his wonderful wife and cute infant) were extolling the wonders of freshly roasted coffee. Not just recently (some coffee places), within the last year (Starbuck’s) or within the last millennia (Folger’s) but within the last 48 hours. Apparently roasted coffee loses its freshness after the first three days. Craig made me a fresh roasted, freshly ‘everythinged’ cappuccino, which was great. He explained the whole process which was pretty fascinating and I learned a lot about things and some things were very intuitive to me like the difference between a double and single shot espresso ‘filters’ [since I don’t know what they’re really called] and why some of the filters designs leant themselves to poor espressos.

Fireworks
We went to see the fireworks at Belleview Park and that was fun. I used to not enjoy fireworks so much about since I was a teenager. I’m not entirely sure why, but they lost their excitement. However, this year proved to be an wonderful experience as Abby added a fresh excitement to the old ‘blow-up and bright’ of fireworks. She kept saying, “Again” and, “Loud” and clapping as the ‘bombs burst in mid-air. At the end she said, “Good job.” I love being her dad. I know I’ve said that before but she’s a wonderful treat.

I kept thinking as the beautiful display went off before our upward-facing eyes that there were real people who saw real bombs and faught in real wars losing real friends who had real families back home. I’m blessed to live in this country and I hope and pray that our soldiers in Iraq come home quickly.

May your year between July fifth until next July 4th be blessed with the blessings I had today!

Happy Fourth of July

Today, as we honor the anniversary of the United States, take a moment to pray for our leaders. Love them of Hate them God has put them in charge and your prayers for them are warranted from either motivation: pray for them to change and pray for them to be molded and straightened to quality and compassion.

I pledge allegiance to God – and I thank Him for blessing me by making me an United States citizen.

However, because nothing on this site can be without a little humor: If the Goof Balls at www.christianexodus.org takes off we’ll be the Untied States of Umerica. [Pssst, if you have a blog/web site copy that link and add it to your site and then leave a comment here, we’ll Google bomb, make sure the text of the link read ‘goof balls’]