Change The Format Of New User Registration Emails In WordPress

January 11th, 2011 No comments

The default registration email that wordpress sends when a new user registers looks similar to the following:

From: WordPress [wordpress@stappsplace.com]
Subject: [StappsPlace.com] Your username and password
Body:
  Username: Stapper
  Password: ******
  http://www.stappsplace.com/wp-login.php

You can change this by modifying the pluggable.php file in wp-includes.

Look for the Send mail (wp_mail) section, more specifically:

$from_name = ‘Admin’;
$from_email = ‘admin@’. $sitename;

Gaylord Texan & Ice

January 5th, 2011 No comments

Happy New Year!

January 1st, 2011 No comments

Fireworks

Just though I would take a moment here to wish everyone a Happy New Year!

1st Post: Nov 10th 2008
Latest Post: Dec 27th 2010
Total Posts: 221
Subscribers: 3027

Still Having WIFI Problems With Replacement iPad

December 27th, 2010 No comments

I finally received my replacement iPad from apple the other day, which was supposed to fix all the wifi problems I was having with the one I sent in. The day I got it, I connected it to my router, verified the connection was good, let it go to sleep, get back into it and WA LA, no internet. In disbelief I went through all the troubleshooting steps I knew to hopefully fix the problem but nothing worked. Hopefully the next firmware version will fix these annoying wifi problems.

Freggin Apple!

Comment Moderation Tips For WordPress

December 23rd, 2010 No comments

Recently I posted on Removing the website entry box on the comments page in WordPress. My thought was that this would significantly reduce the amount of spam comments, but in doing so I discovered a whole new issue regarding comments. What I found is that even after the website entry box was removed from the comments page, comments were somehow still being left with a website entry in the database. Without looking into too much, I simply decided that basically comment entry was somehow being scripted and auto generated by spammers.

So my new policy, and added to my automated maintenance routine, is to simply mark all comments where a website is entered as spam. This has actually worked out to my benefit because most spam is now easily identifiable which has greatly reduced spam all together on my site.

Right now with 1k subscribers and my blog being open to non subscription comments, I delete approximately 14k spam comments and approve approximately 200 comments every week.

Anyway, happy moderation.

Honey Bee CP3 – 6 Channel RC Heli

December 22nd, 2010 1 comment

I have been debating for some time now whether or not I really want to get into the RC Helis. I’ve had several 3 & 4 channel, fixed pitch helis in the past that are very easy to learn and fly, those don’t really count. The 6 channel helis are a different story, when you add roll and pitch into the mix, it’s a whole different story. Anyway, I just got my Honey Bee CP3 in and am doing my best to learn to fly it on my own using a flight sim and training kit for the heli.

Honey Bee CP3 Heli Pic2

Honey Bee CP3 Heli Pic1

Honey Bee CP3 Heli Pic3

Christmas Gift! – Panasonic Lumix TS2S

December 22nd, 2010 2 comments

Kara gave me a Lumix TS2S for Christmas!
The DMC-TS2 is shockproof, waterproof, dustproof and newly added freezeproof in design with the capability to record high-definition movie in AVCHD Lite. Featuring a 28mm wide-angle lens, 4.6x optical zoom and iA (Intelligent Auto) Mode, this versatile camera lets you capture your moments no matter what the intended shooting terrain is. Swim along with tropical fish and capture shots of beautiful coral reefs, or take recordings of your friends around a camp fire. The DMC-TS2 is an extremely versatile camera that you can take with you wherever the action calls.

Panasonic Lumix TS2S Pic3

Panasonic Lumix TS2S Pic2

Panasonic Lumix TS2S Pic1

Thanks Kara!

Volitation 9053 – Dog Buzzing

December 20th, 2010 No comments

Volitation 9053 – Head Cover Holder Fix/Mod

December 7th, 2010 6 comments

The head cover holders on the Volitation 9053 Helicopter are very fragile, mine broke on the second flight I believe. They are not very expensive but after replacing them several times I decided to come up with a simpler and hopefully better solution to hold the cover.

I started by drilling holes in both sides of the frame just behind the original rear cover holder mounting screws.

Then I straightened out a paperclip and pushed it through the holes I just drilled. Using needle nose pliers, I created a bend inside the frame walls to help the paperclip stay in one place.

Then I bent the paperclip like the pic below and created hooks on both sides to slide through the cover holes.

Volitation - Cover Fix - 11-25-10 (1)

Volitation - Cover Fix - 11-25-10 (4)

4.2.1 iPad Wifi Probems

December 6th, 2010 No comments

So we bought our iPad about a month ago, brand new from Best Buy. Stock from the store, it came with firmware 3.2.2 and the wifi worked like a champ, I don’t remember any issues what so ever. Just a few days ago, I made a big mistake and upgraded to 4.2.1. Now I can’t stay connected to my wifi, the wifi at work or any wifi for that matter. Apple no longer signs 3.2.2, so I can’t downgrade.

I have tried:
restarting my ipad & router
turning off my wpa encryption
resetting the network settings on the iPad
restoring the iPad to a backup and as a new device
broadcasting N only, turning B & G off
turning Safari AutoFill off
adjusting the brightness

I called apple customer support last night and was surprised when the support rep I was talking to fairly quickly said that he would simply ship me a new one after I had explained to him everything that I had tried. Seems to me that there is an obvious problem with a certain number of iPads (estimated at 3%) and no clue as to what exactly is wrong or causing it at this point. Apple needs to hurry up, this little issue about drove me to the point of throwing the thing through a window.

WordPress – Remove Website Entry Box Under Comment Section

December 1st, 2010 34 comments

Moderating comments gets old fast! 1 thing spammers love is to leave a url so that is easily accessible to others, helps generate traffic. I did some digging around in WordPress and figured out how to remove the Website entry box under the Comments section. Hopefully this will help reduce spam. Here’s how:

Open up the comments.php file located in wp-content\themes\”your current theme” .

Search for and delete:

<div>
<!-input type=”text” name=”url” id=”url” value=”<?php echo $comment_author_url; ?>” size=”24″ tabindex=”3″ />
<!-label for=”url”><?php _e(‘Website’, ‘inove’); ?></label>
</div>

Volitation 9053 – Lower Blade Shaft Reverse Mod

November 29th, 2010 14 comments

The lower blade shaft on the Volitation 9053 can be reversed or turned upside down in order to allow an additional inch of space between the upper and lower blades. This is very useful when flying in slight wind or making sharp turns. If you have flown the 9053 heli for a while you have probably had the blades hit one another causing you to loose control. This will help alleviate that problem.

New RC Toy – Volitation 9053 Heli

November 28th, 2010 4 comments

3 Channel
Metal Build
2 180 Main Motors, N20 Tail Motor & Gyro
Length: 26″
Main Rotor Diameter: 21″
Battery: 7.4V Lipo

Volitation 9053 Helicopter (3)

Volitation 9053 Helicopter (1)

Volitation 9053 Helicopter (2)

Volitation 9053 Helicopter (4)

iPad Review

November 28th, 2010 3 comments

I told myself from the very 1st day that the iPad came out that I wasn’t going to pay that kind of money for it, it just wasn’t worth it! Now that I have one, I wish I would have got it sooner. The speed is great, very responsive, and the apps are unbelievable on the 10″, HD screen! Not only is it an awesome gaming device but with apps like Office2 HD, it’s great for work as well. I am extremely impressed with the iPad!

iPad (1)

iPad (8)

iPad (4)

iPad (10)

Using Toad To Automate WordPress DB Maintenance

November 27th, 2010 13 comments

Using the WordPress Dashboard can be time consuming when it comes to moderating comments. Not only that but in some cases additional plugins are required to perform certain tasks such as optimizing tables and creating backups. Toad can be used to automate all of those tasks and more.

Toad info and download:
http://toadworld.com/

Download and install Toad for MySQL.

Use the SQL Editor to create a SQL script that will perform the tasks that you want to automate. Execute each query individually to test and then finally save the file wherever you like, it will be used later. Below is an example of a script I use to delete spam comments, approve pending comments, delete post revisions and optimize all tables:

– Delete Spam Comments

DELETE FROM wp_comments WHERE comment_approved = ‘Spam’;

– Approve Pending Comments

UPDATE wp_comments SET comment_approved = ’1′ WHERE comment_approved = ’0′;

– Delete Post Revisions

DELETE FROM wp_posts WHERE post_type = ‘revision’;

– Optimize Tables

OPTIMIZE TABLE wp_commentmeta;
OPTIMIZE TABLE wp_comments;
OPTIMIZE TABLE wp_links;
OPTIMIZE TABLE wp_options;
OPTIMIZE TABLE wp_postmeta;
OPTIMIZE TABLE wp_posts;
OPTIMIZE TABLE wp_term_relationships;
OPTIMIZE TABLE wp_term_taxonomy;
OPTIMIZE TABLE wp_terms;
OPTIMIZE TABLE wp_usermeta;
OPTIMIZE TABLE wpusers;

Next, use the Automation Wizard to create a tas file or Toad Automation Script that can be scheduled and executed automatically.

Once you have your tas file, use the Job Manager to create a task that will execute the script.

Small Business\Network Admin Tips for Windows 7

November 27th, 2010 19 comments

Here are a  few tips to help secure your windows 7 machines on a small network environment:

1. Use Group Policy to deny the execution of certain apps, such as regedit, command prompt, firefox, etc.. You can even go as far as only allowing certain apps to be executed.

Click on start and type gpedit.msc into the search box or run tool.  These policies can be found in User Configuration > Administrative Tools > System.

GPEdit

Don’t run specified Windows Applications such as:
firefox.exe
chrome.exe
safari.exe

Prevent access to the command prompt

Prevent access to registry editing tools

Enable\Disable Windows Automatic Updates

2. Install Windows Live Essentials 2011 to filter web content, restrict downloads, monitor web usage, monitor application usage, set game and time restrictions, etc..

Windows Live Essentials

Windows Live Essentials is a free tool that can make your life as an admin much easier when it comes to implementing web filtering, activity monitoring, etc.. You can find out more and download Essentials at the link below:

http://explore.live.com/windows-live-essentials?os=other

3. Take advantage of UAC, User Account Control

UAC makes it much simpler to not only restrict standard users from altering system files and settings but it also meshes admin and limited\standard accounts in a way that makes administration much easier. Instead of switching back and for between accounts, you can now basically become an admin while using a standard account, which minimizes the number of time you will have to switch accounts to accomplish an administrative task.

UAC Admin Message

Count Total Time Without Counting Coinciding Times in SQL Server

October 28th, 2010 3 comments

So here is the situation:

A database used to track specific events, each having a start time and an end time that can coincide with other events.

Example:

Event1 starts at 9am and ends at 11am.
Event2 starts at 10am and ends at 12am.

The total duration of the 2 events is 4 hrs and is easily obtainable but how do we calculate the total time, which is 3 hrs, without including the coinciding or overlaping times?

1 possible solution:

IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = ‘HoursWorked’) DROP TABLE HoursWorked;

create table HoursWorked (
Time datetime,
[Count] bit);

declare @StartingDateTime datetime
declare @EndingDateTime datetime

set @StartingDateTime = ‘[Starting Date]‘
set @EndingDateTime = ‘[Ending Date]‘

insert into HoursWorked (Time) values (@StartingDateTime)

while (select max(Time) from HoursWorked) < @EndingDateTime
begin
insert into HoursWorked (Time) select dateadd(minute,1,(max(Time))) from HoursWorked
end;

IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = ‘temp’) DROP TABLE temp;

select Event, StartingDateTime, EndingDateTime into temp from EventTable where StartingDateTime between ‘[Starting Date]‘ and ‘[Ending Date]‘;

declare @StartingDateTime datetime
declare @EndingDateTime datetime

while @@fetch_status = 0
begin

declare StartingDateTime_Cursor cursor for
select StartingDateTime from temp
order by StartingDateTime
open StartingDateTime_Cursor
fetch next from StartingDateTime_Cursor into @StartingDateTime

declare EndingDateTime_Cursor cursor for
select EndingDateTime from temp
order by StartingDateTime
open EndingDateTime_Cursor
fetch next from EndingDateTime_Cursor into @EndingDateTime

update HoursWorked set [Count] = 1
where Time between @StartingDateTime and @EndingDateTime

end

close StartingDateTime_Cursor;
deallocate StartingDateTime_Cursor;
close EndingDateTime_Cursor;
deallocate EndingDateTime_Cursor;

Issue:

This particular method requires very large amount of processing resources. If you ran this query for a weeks time period, it would loop 10,080 times and create 10,080 records for every minute of every day for that entire week. So think about a month, approximately 40,320 records and a year, 483,840 records! This could easily get resource expensive.

Windows Folder Tricks

October 27th, 2010 5 comments

A Truly Hidden Folder:
ALT + 0160
Change icon to blank icon.

Folder Named 1/4:
ALT + 0188

Folder Named 1/2:
ALT + 0189

Folder Named 3/4:
ALT + 0190

Try to name a folder con, aux or nul.

Just some fun tricks with folders I have come across. The sequence of keys above involves actually hitting the plus key, not simply ALT and then the numbers following the plus symbol.

Windows Vista\7 God Folder

October 26th, 2010 1 comment

Came across a neat little folder trick that will allow you to create a folder, or actually a link, to tons of useful admin tools, all neatly categorized and in 1 centralized location.

Create new folder.
Enter the following as the name and hit the enter key:
All Tasks.{ED7BA470-8E54-465E-825C-99712043E01C}

Your folder icon will change to:

God Mode Folder Icon

The folder will contain somewhere around 278 admin tools:

God Mode Folder

SQL Email Triggers

October 16th, 2010 1 comment

How to create a trigger to send an email upon an record entry into a certain table:

Enable & Configure Database Mail

Create the Trigger:

USE DatabaseName;
GO
IF OBJECT_ID (‘TriggerName’,'TR’) IS NOT NULL
    DROP TRIGGER TriggerName;
GO
CREATE TRIGGER TriggerName
ON Table
AFTER INSERT
AS
DECLARE @tableHTML  NVARCHAR(MAX);

SET @tableHTML =
    N’<H1>Table Name</H1>’ +
    N’<table border=”1″>’ +
    N’<tr>’ +
    N’<th>FieldName1</th>’ +
    N’<th>FieldName2</th>’ +
    N’<th>FieldName3</th>’ +
    N’<th>FieldName4</th>’ +
    N’<th>FieldName5</th>’ +
    N’<th>FieldName6</th>’ +
    N’<th>FieldName7</th>’ +
    N’<th>FieldName8</th>’ +

CAST ((SELECT TOP 1
    td = FieldName1, ”,
    td = FieldName2, ”,
    td = FieldName3, ”,
    td = FieldName4, ”,
    td = FieldName5, ”,
    td = FieldName6, ”,
    td = FieldName7, ”,
    td = FieldName8
FROM TableName
FOR XML PATH(‘tr’),
TYPE) AS NVARCHAR(MAX)) +
N’</table>’;

EXEC msdb.dbo.sp_send_dbmail
        @profile_name = ‘Default’,
        @recipients =
‘emailaddress@mailprovider.com’,
        @subject = ‘Subject’,
        @body = @tableHTML,
        @body_format = ‘HTML’;
GO