Wednesday, January 11, 2012

Debian auto completion

Install bash-completion
sudo apt-get install bash-completion

Then add this to your bashrc
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi

Now just restart your bash terminal and auto tabbing should work!

Tuesday, November 29, 2011

Chagning the port that apache runs on

This machine used Debain 6, apache was installed using apt-get

In oder to change the default port that apache ran on I had to change two files


first in 
/etc/apache2/ports.conf
i changes the lines
NameVirtualHost *:80
Listen 80

to 

NameVirtualHost *:8000
Listen 8000

Then I needed to change the actual site virtual host file
/etc/apache2/sites-enabled/000-default
I found the line 
and changed it to

afterworlds I restarted the server using
/etc/init.d/apache2 restart

Sunday, June 26, 2011

Programming Computers

Computer programming is very fun and entertaining, but it also required a lot of research. Research can be anything form having someone teach you, to reading over thousands of lines of documentation. I find that reading documentation is more difficult then being taught. However it must be done on occasion when there is nobody capable to teach you. When I want to learn something new quickly I have a specific idea on what I want to do, and want to see results quickly. Therefore the best way to create documentation is by starting with the most basic scenario for your program or process.

For Example
If the documentation tells you to do A->B->C->DONE then it seems easier to understand because you have accomplished something after only three steps. Then the documentation says to try A->B->B.1->B.2->C->D->DONE you will be able to understand how A B C work and if you don't care about B.1 and B.2 you can stop reading for now and still know how to do what you want.

Tuesday, May 31, 2011

IPv6

Three hundred and fourty undecillion two hundred eighty two decillion three hundred sixty sixnonillion nine hundred and twenty octillion nine hundred thirty eight septillion four hundred sixty three sextillion four hundred sixty three quintillion three hundred seventy four quadrillion six hundred and seven trillion four hundred thirty onebillion seven hundred sixty eight million two hundred eleven thousand four hundred fifty six ip addresses. Thats seventy nine octillion two hundred twenty eight septillion one hundred sixty two sextillion five hundred fourteen quintillion two hundred sixty four quadrillion three hundred thirty sever trillion five hundred ninty three billion five hundred fourty three million nine hundred fifyy thousand three hundred thirty six times more the the old four billion two hundred ninty four million nine hundred sixty seven thousand two hundred and ninty six addresses we had.

I like IPv6

- Aeon

Monday, April 25, 2011

On Minecraft

So, minecraft has become a large phenomenon due to the simplicity and ease of the game. It has taken the entirety of 'do-it yourself' to create an unlimited amount of replay value with very little effort on the creator's end. You can even set up servers and play with your friends. But, there are ways to make minecraft even more fun then playing on a server with your friends, playing on a modded server with your friends. This allows you do add mods which enable players to do pretty much anything they want with the server. I recently got commissioned to set up a minecraft mod server. It was not a big job and if I ever do it again it would take me an hour or less if the server computer was already constructed, and I did get a pretty penny. So if you a looking for a quick buck and you are a computer programmer who is familiar with networking, try setting up a server or a mod-server, there is very little documentation on how to do this so it might take you a while the first time.
The worst part about this game is that it runs on Java, this is so it can be portable. As a result of java and programming habits of the developers, users on the minecraft server are expected to have a whopping 133MB of RAM available to them, the server will still work with less but may slow or crawl. A nice old Pentium III or IV computer will probably be able to support two players on a server. You need a pretty beefy computer to run alot of people.
Anyways, if you are looking for a job see if any of your friends want a minecraft server. if you have an extra one laying around charge them setup and a monthly fee if they are using their own, charge a larger setup. And if you don't have a minecraft account make you client pay for it instead of yourself.
I will never spend a dime on minecraft!
-Aeon

Saturday, April 23, 2011

Changing The Repository Settings on Debian servers

Whenever I install a new Debian server into my cluster I find that is keeps the top item in the source list as the CD. This makes it very hard for me to install new programs. So in order to change it you go to the file
/etc/apt/sources.list

This will bring up the list of current sources, after which you can simply comment out any and all CD sources using
# because # is a comment out

And that's it
-Aeon

Friday, January 14, 2011

Google Docs on Google Sites

My friend and I are making a game together, but we dont live close by. So mostly we use Google docs to write the storyline and other simple documentation. So because Google made it easy to use we also put together a Google Site Page for our project. But when we wanted to put our documents onto our site we noticed that it felt less profesional (even though using google sites in the first place is less profecssional). Regardless I wanted a way to view specific documents while not leaving the site. So I tried publishing the documents but that was even worse becasue the width of the page was the 100% width of the browser window. From that i wondered if I could embed the document within the site page, and that worked like a charm. the only problem was that we have lots of different documents and we dont want to create a seperate page for all of them. So I created Gdoc Display gadget. It lets you dynamically load published Google docs into your web page, and resized the web page so that the entire document fits without having to put in an extra scroll bar. The way it work is by looking at the url of the page for the document ID number. For example if your site was called "gamesite", the URL would look something like http://sites.google.com/~/gamesite/. so you would make a page called docs and put the gadget on the page, and the url for that page would be ~/gamesite/docs so in order to actually load a document you need to put the ID on the url so in order to do that wherever your hyperlink is you put ~/gamesite/docs?DOCID where DOCID is the ID number of the document. In order to find the document ID number you look at the URL for the published document. At the end of it there is a ?id= and then a long number copy that number and there you go. Now, in order to add the gadget to the page you need to add a gadget by URL and use: http://hosting.gmodules.com/ig/gadgets/file/116731940771101949147/gdocdisplay1-0.xml once you have done that you are good to go. Any update to the gadget will be automatically applied to your web page as well.