Archive for category Technology
Another Year, Another Migration
Posted by Ryan in Site Development, Technology on October 11, 2011
If you’ve read my blog before, you know that last December I performed the tedious task of moving my website from GoDaddy to Bluehost. Well this year, I’m doing it again.
I haven’t had any issues with Bluehost. In fact having unlimited bandwidth and space for around the same cost as my GoDaddy account and not having to wait 15+ minutes for a settings change was great. But now, I decided that I wanted to do more. I wanted to be able to have full control of a virtual machine that I could do more than just web hosting. A system where I could run test scripts, host dns, host email, and do anything else that I can think of. The best part, it is actually cheaper than than shared hosting through BlueHost.
I had tried another VPS (Virtual Private Server) host in the past, but suffered terrible lag and the worst customer support I had ever encountered. An example of that can be seen here.
I was lucky enough to find a new company out of Chicago that is serving awesome VPS’s at affordable prices. At $4.95/month I am getting 512MB of RAM, 50GB of storage, and 2TB of Dedicated Bandwidth per month. These VPSs all currently run linux, and I have Debian 6 on mine. So what is this company you ask? Binary Computer Solutions. If you are interested in getting a VPSs, help me out and order via this link. https://customer.binarycpu.com/?affid=8.
Ok, so what do you have running on your VPS so far?
- Apache2 Web Server
- BIND9 DNS Server
- Postfix Smtp
My server is acting as the nameserver for Rychannel.com and a couple other sites that I host. It was quite interesting to figure out how to set BIND’s Primary Zones. My Postfix setup acts as a forwarder to another email account not hosted on the server. My Apache2 setup is currently hosting websites for 3 different domains.
Any questions or comments? Leave them in the comment section and I will be sure to respond.
Make Vim more Python friendly…
Posted by Ryan in Technology on August 18, 2011
Here are a few lines for the vimrc file that will make vim a little more Python friendly by providing autoindent.
syntax on set autoindent set smartindent set tabstop=4 set shiftwidth=4
Update: After settings these, I found that copying text in to vim turned out to be a nightmare. So here is how you get around that.
Type:
:set paste
before pasting, and then type
:set nopaste
when you’re done to restore the vimrc settings.
Cisco Discovery Protocol and verifying ports on Enterasys K-Series
Posted by Ryan in Personal, Technology on July 28, 2011
Over the past several weeks, the university that I work for has been upgrading their residential network. This process has involved pulling out all of the old switching equipment and replacing it with the brand new Enterasys K10 switches. Many days had been spent pulling out patch cables in all of the residence hall’s network closets. After installing the new switching hardware, a lot of time was spent repatching the closets and documenting which ports on the switch were connected to which jacks in each of the dorm rooms.
Documentation is a very important step in any IT project and this particular project was no different. Our first step in the documentation process involved writing down what jack was connected to what port as they were being connected to the switches. An easy enough process but definitely not a perfect one, so we added a second step to verify the documentation in the first step. To do this I wrote a script and web application that would utilize the Cisco Discovery Protocol that Enterasys so kindly includes in their switches.
The Cisco Discovery Protocol (CDP) is a Data Link Layer protocol developed by, you guessed it, Cisco. If enabled, the CDP packets can be transmitted on every port of the switch. These packets contain useful information including, but not limited to, Device ID, Port ID, IP address, and even Location. By default, the K-Series will transmit those packets once every minute. For our project we set them to transmit every five seconds, so that the student employees that would be going room to room, would have to spend as little time as possible in each room.
I tried to find a decent Python module to capture the CDP packet but it proved to a major pain to find a module that would work with the version of Python I was using, so I decided to use Tshark, which is the command-line version of Wireshark. It can be installed when you install Wireshark. I have the Python program open a tshark process with the display filters set to display only CDP packets and dies after 7 seconds.. The script captures the output of that process once it dies and parses it. From the output, the script pulls out the Device ID, which is the base mac-address of the devices, and the port number. Once the script has collected that data, it opens a web browser and passes the data to the web application.
The web application is a simple set of php scripts with a MySQL back end. When the first page receives the data, it searches the MySQL database for the room where the jack is located for that particular port and chassis. If the room number is in correct, they can hit submit, if its wrong, they simply can change the room number in that field and click submit. Any ports with incorrect locations were loaded in to a separate database table.
So far the other students have made it through two of the residence halls with no errors in the documentation, except for that of ports that were added after we had visited those closets. Hopefully this verification process continues to go smoothly.
A WordPress Plugin that may slow down your site for some users.
Posted by Ryan in Technology on April 20, 2011
Ever since I switched to Bluehost a few months back, I found that my WordPress site had started loading extremely slow. I would have to wait about 30 seconds before the homepage would load and just as long for any other page within the WordPress application. At first I thought it was Bluehost, but then it would load a lot faster at the university that I attend. In January my internet provider had switched us to their Fiber To the Premises service, so even though that service is much faster, I thought maybe it was the cause and since I couldn’t do anything about it I left it alone.
After dealing with this for about 4 -5 months, I decided that it was time to investigate the issue again. So for starters, I decided that I would blame the WordPress application first and work my way from there. So for starters, I disabled all of the plugins that I had installed. Amazingly, that showed some results. RyChannel.com was loading instantly again!!! NICE! Now, the question became, which plugin was causing it? I went through and activated the plugins that I absolutely “had” to have. Ok, WP didn’t slowdown again. I started activating the other plugins one by one until the problem started again.
Okay, so which plugin was it? WP-Ban. WP-Ban is a WordPress plugin that allows you to block visitors by IP address, IP range, etc. I’m not quite sure why I had it installed, but now that it is gone, RyChannel.com’s WordPress application works fantastic.
WordPress Permalink Issue when migrating to Bluehost.
Posted by Ryan in Technology on December 7, 2010
Check this out for the answer.
Migrating from GoDaddy to Bluehost == Less than painless
Posted by Ryan in Technology on December 7, 2010
So my hosting plan and domain were about to expire with GoDaddy, so I decided it was time to move to a different hosting provider. GoDaddy was starting to cost more and was getting more and more annoying to use… It could take up to an hour just to change a simple setting, so I found Bluehost and signed up for the one year hosting plan. Once I figured out the process of transferring my domains, I realized that would be the easy part.
Once I got the domain’s transferred, I downloaded all of my SQL databases and files from GoDaddy and wen’t through and uploaded what I thought I needed. I had to do some reconfiguration of the wordpress config file as I wasn’t able to use the same database name as GoDaddy had assigned. Once I was able to access my home page, I didn’t really bother looking at any of the other pages on the wordpress site and decided that it was a success. I was WRONG, it ends up, none of the Permalinks were working, so if I tried to click on one of my posts or any of the other pages in the site (excluding the site admin) I would get a 404 error or something similar. I have managed to find a solution and will post the link in a separate post as well.
If you’re having the permalink issue on Bluehost, follow these instructions.
http://mediaforministry.org/768/bluehost-permalinks/
Firefox freezes up after upgrading to Ubuntu 10.04
Posted by Ryan in Personal, Technology on May 22, 2010
Every time someone would attempt to send me an IM on facebook, Firefox would go gray and stop responding for a moment. I have discovered the quickest way to solve this problem, is to delete the .mozilla folder in my user profile.
CAUTION: This will remove all settings, extensions, and bookmarks in firefox.
Windows won’t boot after upgrading to Ubuntu 10.04 LTS.
Posted by Ryan in Technology on May 1, 2010
Today I updated my Ubuntu 9.10 install to Ubuntu Lucid Lynx 10.04 LTS. My machine also dual boots with Windows 7. After I upgraded I came to discover that I could no longer boot into Windows, in fact when I would try to boot to Windows it would just return to the GRUB boot menu. If you are experiencing this issue, feel free to check out these two websites for the answer.
Ubuntu Forum thread that led me to the second site.
http://ubuntuforums.org/showthread.php?p=9204201
http://sourceforge.net/apps/mediawiki/bootinfoscript/index.php?title=Boot_Problems:Boot_Sector
Also, feel free to post any questions in the comments section and I will try to respond.
-Ry
Stolen Wisdom, Forums, and Some New Data Structures
Posted by Ryan in Personal, Technology on November 6, 2009
It has been an extremely long time since my last post. In fact, way too long… So here’s whats been going on.
First of all, I’ve had my wisdom stolen… Ok, not really, but I did have my Wisdom Teeth removed. It was a most interesting experience. I went to an oral surgeon and was put under. I didn’t even really I was falling a sleep. They had me on an IV to knock me out, and that’s exactly what it did, instantly. The next thing I knew, I was being woken up and moved to a different room. I had several odd reactions to the anesthesia. Every couple of hours, I would get really nauseated, hot, and start shaking. I was kind of scared. I was in pain for two weeks, and it was an awful pain. It surged up to my ears and they felt like they were on fire. But eventually I got over it, and now I just dealing with the two holes in the back of my mouth.
I have setup a programming forum on my website. It’s main goal is to help students and programmers a like. The only problem is, I can’t seem to get enough publicity to get it rolling. The forums can currently be accessed at http://www.rychannel.com/forums/programming . If you have any suggestions, I welcome them.
The last part of this post is Data Structures. It is my favorite class this semester and I am really learning a lot. What is a data structure you ask? According to Encyclopedia Britannica, In computer science, a data structure is a particular way of storing and organizing data in a computer so that it can be used efficiently. So far we’ve talked about lists, queues, and stacks. I find them extremely interesting, but currently we are working on tree’s and due to its need for recursion I find that I can not wrap my head around how they work. I get the theory, I just don’t understand the programming behind it.
Word 2007 Blog Publish Test
Posted by Ryan in Technology on August 27, 2009
I purchased Microsoft Office 2007 Ultimate this week and when I went to print, I noticed a publish option. I clicked on it and saw that I could publish a blog post. So I decided to try it out. If you’re seeing this post, I must have been successful.
UPDATE: In order for Word 2007 to be able to upload to a WordPress blog, you must have the XML RPC setting in your blog enabled. Otherwise, Word will not be able to connect to your site.