Monthly Archives: March 2009

Organizing IPs And Ports For My Dedicated Server

It’s been almost a year since I last touched the IPs and Ports for my dedicated server. My first config was just use a single IP for everything, however I realized how bad that is. First off, then hackers can just sniffed your ports. Second, I have multiple IPs given to my by Josh from Centauri Communications. And last but not the least, I don’t like seeing the Apache test page when you type let’s say…mail.example.com. I don’t want the test page to show up, I want it to time out. And since I have yet to see how to properly do it, I’m going to stick with using the rest of my IP addresses.

Continue reading

Burning A CD/DVD To ISO Using InfraRecorder

Pretty sure everyone has at least accumulated a couple of installation CD/DVDs in their life. And since hard drives are getting bigger and bigger, the need to transfer these installation CD/DVDs to a much smaller medium seems to be the best way possible if you want to keep them safe. I’m going to teach you how to burn them to an ISO file for free using InfraRecorder – a free CD/DVD burning solution for Microsoft Windows.

Burning A CD/DVD To ISO Using InfraRecorder

Continue reading

Make ProFTPD Listen On One IP

My main dedicated server has multiple IPs and I wanted to assign different DNS entries to each service e.g. ftp.example.com. However when I first installed ProFTPD it was listening on my eth0 which also has the ssh, http, mail, et. al. services. So if I give out ftp.example.com then they can just guess the port of those other services. Which is why I’m giving each of them different IP addresses and different DNS entries so that ftp.example.com isn’t on the same IP as mail.example.com, making it a bit harder for someone to snoop around.

Continue reading

JavaScript Code Snippet #4

Computers are playing an increasing role in education. Write a program that will help an elementary-school student learn multiplication. Use Math.random to produce two positive one-digit integers. It should then display a question such as How much is 6 times 7? The student then types the answer into a text field. Your program checks the student’s answer. If it is correct, display the string Very Good! and generate a new question. If the answer is wrong, display the string No. Please try again. and let the student try the same question again repeatedly until the student finally gets it right. A separate function should be used to generate each new question. This function should be called once when the script begins execution and each time the user answers the question correctly.

Continue reading

JavaScript Code Snippet #3

One interesting application of computers is the drawing of graphs and bar charts. Write a script that reads five numbers between 1 and 30 out put XHTML text that displays a line containing the same number of adjacent asterisks. For example, if your program reads the number 7, it should output XHTML text that displays *******.

Continue reading