Technology Errors

sudo: sorry, you must have a tty to run sudo

I was recently working on a Perl script that would SSH to another server and run a sudo command on the remote server that was failing. The error that was received is below.

Error: sudo: sorry, you must have a tty to run sudo

The reason for this is an update along the way with sudo locked it down further by adding the below line to /etc/sudoers configuration file.

Technology Insights

How to Upload Files to a WordPress Post

After WordPress 2.5 uploading files to posts has become much easier. When first looking into this I was confused though because I every time I would upload a file it would not automatically link to the file. I was assuming the file did not upload properly and that was the reason there was no file to link to. I was mistaken though and really uploading a file is exactly like uploading an image but you have to select where the file links to. Follow the simple directions below to upload files to a WordPress post on your WP blog. The directions below are based on WordPress 2.7+ however they are very similar to WordPress 2.5/2.6.

  1. Open WordPress Admin: Obviously the first thing you need to do is login to the WP administration area of your blog which is typically found at your URL followed by /wp-admin.

Technology Insights

Outlook Contacts Not Showing Up In Skype

Outlook contacts not showing up in Skype has been a problem bugging me for a couple weeks but I have not had the time to look into it until tonight. I figured that it might be a bug or something with Skype since I recently upgraded however I was incorrect. For some reason when I turned on “Show Outlook Contacts” in Skype only two of my contacts were showing up. Luckily this was the case or it would have taken a lot longer to figure out.

The issue is that in my Skype setup (not sure if it is this way for all configurations) the numbers require a +1 to be in front of the area code. So for instance if you have a contact and the number is 502-123-1234 it will not show up in Skype unless you add a plus one for the number to show as +1502-123-1234. Below I describe a couple tips to convert all of your numbers a bit easier. There is probably a VB script out there that will do this easier but it  was much easier to convert all of your Outlook contact numbers as I discuss below than manually editing each one.

Technology Errors

Zen Cart Error Debug: Checkout Process Showing a Blank Page

Recently I had a Zen Cart store showing a completely blank page during the checkout process. With the default settings we were unable to find out what the issue was so we needed to figure out a way for more debugging. To easily accomplish a verbose debug log of each action on the site you can download a Zen Cart add-on called “Debug Error Logging Utility”. This add-on will provide details of each page processed on the site or for the administration section. Follow the directions below to enable more logging.

  1. Download Debug Error Logging Utility: Visit the following URL in a browser to download the Debug Error Logging Utility: Download Here

Technology Insights

Setting Up Redmine: SVN Repositories Timing Out When Attempting to View

When setting up Redmine as a project management system you might run into an issue after configuring the SVN repository for a project. If the SVN project already exists and there are a bunch of commits typically when browsing to the repository for the first time it will time out. Usually when it does time out it will display in your browser as a 503 error. Below I discuss configuring the SVN repository and then running a rake task to resolve the browser time out issue.

First lets set up the SVN repository following the directions below.

  1. Open Redmine Project: After you have created a Redmine project that the SVN repository will belong to browse to that project  in a browser.