Elliot John Voris

Faith. Family. Technology.

Elliot John Voris - Faith. Family. Technology.

Fibonacci Sequence in Python

In case anyone ever wanted to know how to run the Fibonacci Sequence in Python, here’s how I did it:

#!/usr/bin/env python
import sys

f_seq = [ 0, 1 ]

while len(f_seq) <= int(sys.argv[1]):
    f_seq.append(f_seq[-1] + f_seq[-2])

print f_seq

Now, all you have to do is run ‘fibonacci.py 20’, and it will give you all the numbers through F20 (starting at zero).

Update: I put this up on Github, and have made a couple changes since. Check it out here!

I love Linux! There’s no two ways about it! For the past few years, I’ve become enamored with the open-source jewel that is Linux.

Lately, I’ve been going crazy with aliases. I’ve also been trying to make my life easier with some simple Bash/Python scripts.

When my friends over at Hak5 uploaded a HakTip about searching Wikipedia from the terminal, I knew I had to alias/script it up!

Here’s the script I put together:

# Store all arguments I provide as a string, SEARCH
# Replace any spaces with underscores, search wikipedia
dig +short txt ${SEARCH// /_}.wp.dg.cx

Combine that with an alias, like “alias wp=’/home/elliot/scripts/digwp.sh'”, and we get the following:

elliot@desktop ~ $ wp the tom green show
“The Tom Green Show is a North American television show which first aired in September 1994 on Rogers Television 22, a community channel in Ottawa, Ontario until 1996, and was later picked up by The Comedy Network in 1997. (In 1996, Green also produced a p” “ilot episode for CBC Television, although the CBC did not pick up the series.) http://a.vu/w:The_Tom_Green_Show”


Draggin’ Butt

Have you ever had one of those days where you just felt like your feet were dragging, no matter what you were doing? I’m not talking about just a little tired, or just feeling a bit off here. Think about being completely exhausted. Think about being totally stretched past your limits. This was my day today.

I’ve had an unbelievably productive week at work. First, I’ve made some major headway on our Evergreen project at the college. The server had been down for quite a while, now. I’ve been able to get the software up and running, and I’ve finally had a bit of luck importing some of our records into the database. Unfortunately, we’re not out of the woods quite yet. This will prove to be a big project for me for a week or so to go, but I made some giant leaps forward on this project during the past few days.

Second, I was able to go live with the new online application for the Admissions team. We’ve made a couple of improvements to the application, added a few fields, and made it generally more user-friendly. If you’re a potential college student, check it out, and apply here!

Finally, I’m working on a really nifty new service coming for the students of Saint Louis Christian College. A few weeks back, we introduced a piece of software called PaperCut. It’s an all-encompassing Print Management program that allows the students to print to our new copy machine easier than they have in the past. This new feature that I’m working on will allow them to upload directly from their laptop (in .docx, .xlsx, .pptx, .xls, .pdf, etc. format) to the new copy machine. It’ll print right from their laptop, but still charge their student accounts as if they were working on one of the library WorkStations. I’m really excited to roll this out, and I think the students will be, as well.

All of this really just piled up today. I was so dragging all day long. I felt like I was going to crash and fall asleep standing up in the Library.

Like I said, I feel like I had a greatly productive week! But I’m also ready to fall asleep tonight and wake up on  Sunday!

Belkin N+ Wireless Router

We moved!!! We moved across our apartment complex into a 2-bedroom unit! Now we have a library/office/guest-room. Not only did we upgrade our living arrangement, but we upgraded our Internet Service, as well. We had been with At&t, but I made the decision to switch to Charter. I had heard third-hand horror stories about poor customer service, but the bundle for basic cable along with  internet access about seven times faster for the same price just must be worth at least trying.Today, I bought a wireless router to replace the modem-router combo we had been using with At&t. I had seen an article about the new line of Belkin wireless routers, and I was impressed. I headed down to Micro Center, and was as impressed in real life as I was on the internet. The N+ was the high-end model, but as far as buying a router goes, it seems like these purchases will be few and far between. So, why not splurge just a little bit. This will last a while, so it will be worth it in the end. Bonus, it also came with my very own copy of the General Public License (in a lot of different languages)!Not only is it 802.11n, It’s got four Gigabit ethernet ports in the back. It’s perfect for a simple NAS appliance, a network printer, or a home server. Plus, it’s got a USB 2.0 port so that an external hard drive can be shared across the network. This port can also power an external USB hub. So, I can hook up several hard drives, flash drives, or whatever kind of storage that I want!The instructions could not have been simpler or been easier to follow. Labeled “1, 2, 3” it would have been pretty hard to mess up. Plug this into that, put this wire here, power-cycle the modem, and you’re off to the races. The initial set-up was easy peasy lemon squeezy. It was up and running in a snap. The more impressive part was that there are so many advanced options. This router has any and every option that you could want to set up. It’s really easy to set up a DMZ, port forwarding, firewall, and I can even have guest-ready internet access that stays separate from my private network, so I don’t have to give out my WPA2 key to everybody who wants to check facebook.The only issues I had were that it took a few power-cycles of the modem. There were a couple of times that I would change a setting with the router and the internet connection would kick out. It also didn’t seem to play nice right away with a custom DNS. It was a pain in the butt to get Google DNS working.Now that it’s all set up, I couldn’t be happier with the purchase! This will definitely be a staple in our technological life for a long time.

Who Wants to Move to Kansas?

Anyone else excited about Google Fiber?

When I saw the news yesterday, I was a bit heartbroken at first. I was a bit jealous that Saint Louis didn’t get picked (yet). More than that, I was so upset that I immediately (while the press conference was still happening) jumped on Kansas City’s Craigslist to look for jobs. Granted, that probably won’t actually be happening, the sentiment was still there. I wish I could have a front row seat to this amazing technology that Google is rolling out. I suppose that a second row seat from STL will have to do for now.This is one of those defining moments in history. Life in Kansas City is about to become entirely different. Consumers will have access to 1Gbps internet speeds for the first time ever. In the history of the internet, people will remember Larry Roberts, Robert Taylor, Leonard Kleinrock, IPv4, and Kansas City. Things have already come so far since that first ARPANET between UCLA and Stanford. I can’t wait to see where they go from here.Schools will be different. Business will be different. Recreation, healthcare, family, research, the list goes on. Mark my words; from here on out, the way you deal with the internet is going to change.I know what I would do with an internet speed almost (i.e. up to) 350 times faster than the 3Mbps I (sometimes) get, but most of KC probably doesn’t. I could download my Linux Distributions and stream Netflix (in HD) at the same time!! I eagerly await the day that this technology comes to me. I will be as high up on that list as possible.Will you adopt Google Fiber if it becomes available to you? Is Google going to become (more of) an internet monopolizing machine? What benefits or disadvantages do you see from Google Fiber?Comments welcome!

The Times, They are a-Changing…

BIG GIANT EXCITING EXHILARATING NEWS!!As of today (yesterday, technically), I have eagerly accepted the position of IT Supervisor at my school, St. Louis Christian College. It appears that the stars must have aligned in my favor this week. For, just four days ago, I had a conversation with my very close friend, J.C. Sandt, about how much I hated my job. We actually made a deal of epic proportions: by the end of the semester we would both be employed in a rewarding job. I had no idea that things would move so swiftly. So, with my two weeks handed in at Schnucks, and with much dread and hope, I excitedly begin to branch into this new adventure.I say dread because there is much work to be done. There are routers to be reset; Ethernet switches to be tested; Passwords to find; Printers to fix; Web pages to design; As well as a whole host of other things that I haven’t even figured out yet. I have much work ahead, much trial and error, and (hopefully) much success. This new job will surely prove to be challenging, but it will no doubt be extremely rewarding.That’s why the element of hope is there, as well. I’m so eager to learn and “get my hands dirty.” I know that I’ll be applying many band-aids to the current system that is in need of repair, but in doing so I will gain so much hands-on knowledge about what Information Technology is all about. There is so much promise for what this year will hold for me.The good news in all this is that I’m entering into this with a crew. I’m not alone on this journey. I’ve got three MAP students that I will be working with. I know that they’re going to learn a lot through this, and I’m sure I’ll learn a lot from working with them.My God, the God of Abraham, Isaac, and Jacob, is a God of providence. At a point that I was looking for a fulfilling job (ideally, in the IT sector, no less), He was working hard. It amazes me so much how the LORD always comes through. He is faithful, and works all things for the good of those who love him, and are called according to His will. I’ve seen an incredible example this week of God’s workings, and I know I’ll only see more as time goes on. Praise be to God!