You can add any text,HTML or JavaScript to the sidebar of your WordPress site. The first thing you need to do after logging into the wp-admin is to select Widgets.
Select Widgets

It’s possible that you have more than one sidebar, if you do select the desired sidebar you want to add text.
Select Sidebar

Add Text Widget
Now you add the Text Widget to the sidebar.

Editing the Text

Saving the text
Add the title for your text, add the text you want to display, press the done button and then press the save button. And you’re done. Visit your site to see the new text widget.

The day after my surgery I had a follow up visit and my eyes measured 25/20 in my left eye and 15/20 in my right. The Doctor said that my right eye was over corrected, but may clear up in a couple of weeks. If not I may need to have a touch up.
During the last week I was struggling with dry, and at times fuzzy vision and was using drops every few hours. Today I was able to go entire day without needing drops. Both of my eyes are seeing excellent. I’m going to guess that tomorrow’s follow up visit is going to show that both eyes are now 25/20. That’s great because I’m not even sure I was able to see 20/20 when I had my glasses.
It’s been one week after having UltraLasik surgery. I am seeing with more clarity than I can ever remember.
Posted in Family
|
Tagged UltraLasik
|
I was trying to add the USPS API into osCommerce. I received the following error when adding this shipping module:
RateV3 is not a valid API name for this protocol
This is because when you create an account for the Web Tools at USPS you only have access to their test server. The USPS test server can only use RateV2, so test using this code below, then request to be switched to use the production server. Then you can use RateV3 on the production server and the USPS module for osCommerce will work.
<?php
$request1 = <<< XMLREQUEST
<RateV2Request USERID="xxxxxxxxxxxxx">
<Package ID="0">
<Service>PRIORITY</Service>
<ZipOrigination>10022</ZipOrigination>
<ZipDestination>20008</ZipDestination>
<Pounds>10</Pounds>
<Ounces>5</Ounces>
<Container>Flat Rate Box</Container>
<Size>REGULAR</Size>
</Package>
</RateV2Request>
XMLREQUEST;
$request = "http://testing.shippingapis.com/ShippingAPITest.dll?API=RateV2&XML=" . rawurlencode($request1);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $request);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_HTTPGET, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SLL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$response = curl_exec($ch);
curl_close($ch);
echo($response);
?>
Posted in Family, PHP, Python, Z350
|
Tagged shipping
|
Zac Brown Band
You know I like my chicken fried
A cold beer on a Friday night
A pair of jeans that fit just right
And the radio up
Well I was raised up beneath the shade of a Georgia pine
And that’s home you know
With sweet tea, pecan pie and homemade wine
Where the peaches grow
And my house it’s not much to talk about
But it’s filled with love that’s grown in southern ground
And a little bit of chicken fried
Cold beer on a Friday night
A pair of jeans that fit just right
And the radio up
Well I’ve seen sunrise
See the love in my woman’s eyes
Feel the touch of a precious child
And know a mother’s love
Its funny how it’s the little things in life that mean the most
Not where you live, what you drive or the price tag on your clothes
There’s no dollar sign on a piece of mind; this I’ve come to know
So if you agree have a drink with me
Raise your glasses for a toast
To a little bit of chicken fried
Cold beer on a Friday night
A pair of jeans that fit just right
And the radio up
Well I’ve seen sunrise
See the love in my woman’s eyes
Feel the touch of a precious child
And know a mother’s love
I thank God for my life
And for the stars and stripes
May freedom forever fly, let it ring.
Salute the ones who died
And the ones that give their lives so we don’t have to sacrifice
All the things we love
Like our chicken fried
Cold beer on a Friday night
A pair of jeans that fit just right
And the radio up
Well I’ve seen sunrise
See the love in my woman’s eyes
Feel the touch of a precious child
And know a mother’s love
Getsa little chicken fried
And cold beer on a Friday night
A pair of jeans that fit just right
And the radio up
Well I’ve seen sunrise
See the love in my woman’s eyes
Feel the touch of a precious child
And know a mother’s love
Python can be used on Window, Linux and Mac. It just a simple install.
download code
#!/usr/bin/python
import string
import os
import re
# task:
# loop thur input directory
# look for .pdf
# replace space with underscore
# rename/move to output directory
inputDir = "./" # Current directory
outputDir = "./new_location"
for filename in os.listdir(inputDir):
if filename[-4:] == ".pdf":
tempName = filename
tempName = tempName.replace(' ', '_')
os.rename(inputDir + "/" + filename, outputDir + "/" + tempName)
How to earn your MCPD certification on Visual Studio 2008
Each MCPD certification on Visual Studio 2008 requires that you pass two to four Microsoft Certified Technology Specialist (MCTS) prerequisite exams and one Professional Series exam, as shown in the following table. When you pass all the exams in a specific MCPD path, you earn the related MCTS certifications as well as the relevant MCPD certification.
I will be focusing on this particular track: MCPD: ASP.NET Developer 3.5 so I’ll need to pass the following exams: 70-536, 70-562 and 70-564.
Exam 70-536: Microsoft® .NET Framework 2.0 Foundation
Just purchased a book to pass Exam 70-536.

MCTS Self-Paced Training Kit
Exam 70-562: TS: Microsoft .NET Framework 3.5, ASP.NET Application Development
Exam 70-564: PRO: Designing and Developing ASP.NET Applications Using Microsoft .NET Framework 3.5
Posted in Coding
|
Tagged .NET, books
|
Here are some commands that we use at the Gazette on our Linux web server. It is running Red Hat Enterprise Linux 5.2.
Reload Apache Conf file
/etc/init.d/httpd reload
Restart Apache
apachectl -k graceful (didn’t work on Rackspace)
Restart Apache from ssh
/etc/rc.d/init.d/httpd restart
Modify Apache conf file
vi /etc/httpd/conf/httpd.conf
vi commands
i enter edit mode
esc to exit edit mode (command mode)
:wq to write changes and quit (in command mode)
:!q quit without saving
Memory Use
free -t -m