Archive for the ‘Everyday Tips’ Category

How To Fix The Warning: This Page Contains Both Secure and Non-Secure Items

Posted on May 6th, 2010 in Everyday Tips, Web Development | Comments Off

You installed an SSL certificate and you keep getting that pesky warning about how some of the content on the page is not secure or unauthenticated.  Here’s what you do to find the offending content.

  1. Visit the page in your web browser
  2. View the source code for the page
  3. Search the source code for src

Click through all the instances of src and look for items that are sourced through http:// rather than https://. Look at all your images, javascripts, stylesheets, etc. They all need to be pulled through https:// in order for your page to be totally secure and for that warning to go away. Internet Explorer is particularly finicky about this message so be sure to check your site in IE to make sure you don’t get this message: ‘This Page Contains Both Secure and Non-Secure Items‘ The FireFox message that means the same thing is ‘Warning: Contains Unauthenticated Content‘ this is the same problem. Just make sure your page is pulling all it’s resources through https:// and that is how you fix the error about ’secure and non-secure’ items on your SSL pages.

How To Stop A Cold Almost Instantly – Naturally

Posted on March 10th, 2010 in Everyday Tips | No Comments »

If you think you are about to get sick, like you feel you throat starting to itch and congestion is coming and you think it’s the first sign of a cold follow these steps and you will most likely avoid getting sick. You will probably feel dramatic improvement in less than 24 hours and will most likely be totally back in action in 48 hours. Of course, I am not a doctor and don’t do anything dumb. This is just a suggestion from a father with 4 kids. Use this advice at your own risk blah, blah, disclaimer disclaimer, etc.

Read the rest of this entry »

Setup Subversion with cPanel and Apache

Posted on January 21st, 2010 in Everyday Tips, PHP, Sys Admin | 1 Comment »

This is a  summary of how to set up a new svn repository that you can access through apache when your server is configured with cPanel. This is not a tutorial on installing cPanel and Subversion.  The assumption is that you already have subversion installed on your cPanel managed server.

Read the rest of this entry »

Stay Away From Rackspace Cloudsites

Posted on December 31st, 2009 in Everyday Tips, PHP | 15 Comments »

I have worked with several dedicated servers at Rackspace and the experience was a joy. The servers perform very well and the Rackspace managed support was great. So when I learned of Cloudsites which appeared to bundle the great support I had grown to love with a package that seemed great for hosting our sites that didn’t require their own dedicated server I was very excited. Unfortunately, it turns out the Rackspace Cloudsites is unstable, unreliable, and slow. The support is still good, at least in terms of being available, but all they can say is “I’m sorry all your sites are down.”

Read the rest of this entry »

Top Ten WordPress Plugins

Posted on December 5th, 2009 in Everyday Tips, PHP, Web Development | 1 Comment »

We’ve been asked what WordPress plugins we use most often and what we recommend that other people use on their sites. There are quite a few great plugins out there, but here is our top 10 list of WordPress plugins that we have found the most useful and that we use the most often.

Read the rest of this entry »

My Noise Canceling Headphones

Posted on September 23rd, 2009 in Everyday Tips | No Comments »

It seems like a simple idea and often times simple ideas are the best ones. Build a set of noise canceling headphones that physically reflect noise away from your ears.

Read the rest of this entry »

Great Use For Javascript Closures

Posted on June 24th, 2009 in Everyday Tips, PHP, Web Development | No Comments »

setTimeout() with a paramter

If you need to use the setTimeout() function to call a javascript function that accepts a parameter you might be tempted to use syntax like

setTimeout('functionName()', 1500, param1, param2, etc); 

And you would probably have success until you went to test your site in Internet Explorer. Firefox seems to be able to handle the extra parameters on the end of the setTimeout() call but IE simply sends undefined variables to the function you are calling and your script dies.

Here is the solution – use closures! They are a little tricky to understand if you are new to the idea but, in a nutshell, you are assign a function to a variable. Normally you assign numbers, or strings to variables – well you can assign functions to variables too. Here’s how:

setTimeout(function() { delayedFunctionName(param1); }, 1500); 

This causes the function delayedFunctionName(p1) to be called with a 1.5 second delay AND the p1 parameter actually gets a value!

Then != Than

Posted on April 22nd, 2009 in Everyday Tips | 1 Comment »

I can’t believe how many people seem to not know the difference between then and than. They are not the same word at all. For some reason people tend to forget about “than” altogether and only use “then” and it is extremely annoying. So FOR THE LOVE OF ALL THINGS DECENT please learn the difference between then and than. Then means next and than means instead of. Here are a few examples.

Proper Use of THEN

First I will shower, THEN I will get dressed.

I saw him fall THEN he cried like a baby.

Open up the system folder THEN click the remote login check box.

Proper Use of THAN

I’d rather eat grapes THAN grass.

Men are generally taller THAN women are.

Fried food is less healthy THAN raw vegetables.

Share Files Between Linux and Mac

Posted on April 21st, 2009 in Everyday Tips, Mac OSX, Ubuntu | No Comments »

It is EXTREMELY easy to happily share files between your linux system and your mac. I use both Ubuntu and Mac OS X. Simply login into you mac desktop, open up your system settings and turn on Remote Login. This enables incoming SSH connections to your mac. If you want to connect while you are away from home, you can set up some sort of dynamic IP service like DynDNS.org. Open up port 22 on your home firewall or router and you can connect to your home mac from anywhere you go with an internet connection.

Once your mac has SSH enabled, log into your Ubuntu machine and click Places –> Connect To Server. Choose SSH as your Service Type. Enter in the IP address of your mac or whatever name you may have assigned to it in your /etc/hosts file or whatever. Use the username and password you use to log into mac and there you go. You can browse files on your mac with your Ubuntu machine in Nautilus.

Vim: How To Fold Functions

Posted on March 20th, 2009 in Everyday Tips, PHP, Vim, Web Development | No Comments »

Vi Gang Sign

The is really a tip on how to fold any code block including functions. Navigate your cursor somewhere inside of the code block you want to fold, make sure you are in command/normal mode (press escape if you need to) then type zfa}

To save your folds between vim sessions you need to issue the command :mkview otherwise when you close vim your folds will be lost (your folds, not your code). To make life easier on you, you can have your folds automatically saved for you by adding this to your .vimrc file

au BufWinLeave * mkview
au BufWinEnter * silent loadview

Get Adobe Flash playerPlugin by wpburn.com wordpress themes