Installing AMP on Ubuntu ( Apache, MySQL, and PHP)

Heads up! I know I am couple decades off on this post, however this is again just a document for myself. Yet I am choosing to share it with the rest of the world as well.

Before this small tutorial be sure to restart apache after each step. You can use either snippet below in the terminal to do so.

sudo /etc/init.d/apache2 restart

or

sudo service apache2 restart

 

Installing Apache:

Step 1) Open terminal via any way possible.

Step 2) Copy and paste the command below and press Enter.

sudo apt-get install apache2

Step 3) Open and point a local web browser at http://localhost/ to test.

Installing PHP:

Step 1) Open terminal yet again.

Step 2) Copy and paste from below.

sudo apt-get install php5 libapache2-mod-php5

Step 3) Test PHP by creating a temp document in your /var/www/ folder.

test.php :

<?php phpinfo(); ?>

Step 4) Save the file and open your web browser yet again. This time point her to http://localhost/test.php and see if anything loads.

Installing MySQL:

Step 1) Open terminal.

Step 2) Copy and paste from below.

sudo apt-get install mysql-server

Step 3) Follow on screen instructions.

Step 4) Edit the file /etc/php5/apache2/php.ini and remove the semi-colon before “;extension=mysql.so”.

Step 5) Remember to restart and off you go!

Euclid Algorithm in C#

Over the past couple week I have been toying around with a cool algorithm called Euclid. The goal of the algorithm is to find the Greatest Common Devisor of two numbers.

To start out we will find the GCD(Greatest Common Devisor) of the numbers 252 and 105.

252 = 2*2*3*3*7 = (2^2)*(3^2)*7 = 21*12

105 = 3*5*7 = 5 * 21

means the GCD of 252 and 105 is 21

Now how does one do this via the Euclid Algorithm?

First you begin by dividing the bigger number by the smaller one…

252/105 = 2 remainder:42

Then you take the smaller number and divide it by the remained..

105/42 = 2 remainder:21

then again..

42/21 = 2 remainder:0

And that is how you can tell that 21 is your GCD.. because it is the number that can actually be divided by evenly with a remainder of 0.

Now I actually have written a program that does all this for you in C#.net so check out the code below and see if it works for you. Enjoy!

Tips for your First Week of College

Many of you may already know, however if you don’t allow me to educate you on where I am in my life. Currently I am just finishing up my first week at IUPUI which is a combined campus of Indiana University and Purdue University here in Indianapolis. I’m going for a degree in “Computer Science” and I am about 4 and a half hours away from any family.

Now knowing where I stand, here is a list of things I did during my first week in order to meet new people and stay satisfied with my dorm. (Dependent on campus being attended.)

Taylor Brazelton:

  • Bring a bike or scooter. – Trust me when I say you need to have a bike or scooter laying around… because all it takes is one distraction and then you looking at the clock. Once you notice you have a class in 10 minutes that your 25 minutes away from walking wise you’re going to have a bad day.
  • Leave your door open!(When your in your room) – If you want to be successful while at college you need to have a good social attitude. I personally was a nerd and thought I would keep to myself during college, however getting here I knew I had to make friends. Keeping my door open was a great opportunity to meet new people and get help when I needed it on move-in day.
    P.S. Remember to lock your door and close it when you leave.
  • Participate! – Most colleges fill the first week with multiple activities for incomming students to participate in order to meet new people. Don’t be shy, go to them and the friends will start accumilating. I wasn’t exactly an extrovert when arriving, however after the first cookout I was meeting people just as smart if not smarter than me, with comon instrests as I did.
  • Pass-Arounds. – Bring an inatimate object thats weird, but nothing something you’d want to keep. Then when someone asks you for help, the use of something, or to study together.. pass it to them. Then let them know that when someone does the same to them that they have to pass it on as well. It’s a great conversation starter and you can always find something neat to pass around. Prehaps you end up with a foot from a shoe store? That’s what I passed out.
  • Sandles! – This is not a game… Bring sandles for your showers and DO NOT take them OFF! Bad
  • Study! – Obviously in college your going to have to study, but that doesn’t mean you can’t have fun. The best time I’ve found to study is right when I wake up. From 10am to like 2pm only stopping to eat lunch. Then from 2 to 5 I go down to the study lounge and check my problems/papers with the other people in my dorm to make sure I did my best. Then at 5 I go get some dinner with my study buddies and then to the lobby dorms to play cards or some kind of mind streaching game. (These are my saturdays…) You’ll have to mess with what I did to get it to fit your lifestyle but always remember to study 20 minutes at a time and then take a 5 min break… Eat an apple or drink some milk.

 

Dan Smith:

  • Flirting! – There are many good looking girls at college so dont be afraid to go up to them and talk.  Get to know them and ask them questions like :”What is your major” and “Were are they from”. You may possibly get their number in return for being friendly.  Remember they dont know who you are either!
  • Eating! – Be sure to eat  healthy so you can do well in college and stay at the top of your game.
  • Classes! – Do not be late for class.  That is the fastest way to get your professiors mad at you very quickly.  Do not be afraid to talk to your proffessors. They are there to help you pass this class.  Study with people that also have the same class as you so you can get good grades.  Dont be afraid to express your opinion.  Not everyone will be think the same thing as you but you will be surprised at how many think similarly as you.
  • Diversity! – Do not be afraid to try new things and always keep an open mind.
  • Friends! – do not be afriad to make new freinds.  There are many new people to meet and new things to see when a person goes to college, so try to stay active and get involved in activities expecially thoes that your friends are doing as well.
  • Parties! – I’ll let you be the judge of what parties you go to and the ones you don’t but before you go to them ask yourself this.  Will I later regret going to this party in any way and will it jeopardize my college career?

 

(Subject to Change)

How To Get Free Software as a Student

Tux IllustrationIf you’re a student at any school, the chances that you will pay for software are very slim. Here is a few simple methods and donors of software that may come in handy during college, high school, and possibly even middle school.

First off lets list your options on how you can go about obtaining software as a student. You could happen to ask your parents for the money, but no one likes begging. Maybe you know of some illegal websites that allow P2P downloading of all sorts of illegal software;this may seem like a good idea at first but once your thesis paper gets wiped clean after months and months of work because of a stupid virus, you might rethink the idea of downloading your software illegally again. Then there is always finding an alternatively free and possibly open source software that lets you do the same things that the big brand software does (A suggested choice).

Those are all applicable ideas however out of the three I have stated, I believe the best idea is one that isn’t actually listed. Most software developers aren’t out to suck you dry money wise, rather they are usually helpful people just trying to make a living solving one niche at a time. So don’t think they are evil people just because they sale their ideas/products.

Solution #1

Don’t be hasty, relax and find the publisher of the software’s website. This is unimportant except for the fact that you’ll need to locate the developers email and what better way to do that than from the site the person probably had some say in developing in the first place.

Now that you have their email don’t rush into writing a long essay type letter about why you need the software and how better it would make you. That’s the last thing a software developer is going to want to do is read another book. Instead think of how their software can help enhance your education and sum that up into around 2 to 3 sentences and let that be the middle of your email.

Now you need the think of how to introduce your email so that the developer stays focus log enough to get the jest of the email. You’ll need something catchy and exclusive but not enough so that it’ll make the developer think that you’re a spam bot.

Bad Example:

“Hi there, my name is T-Brazzel I am an awesome person here at bla bla bla college and I need YOUR HELP! In fact If you do help me with this issue I might throw in a free blablabla”

Above equals spam basket. You’ll need to write a more personal yet intuitive email that doesn’t seem like your trying to sell the man a TV item. Plus throwing in free stuff won’t speed up the time that the developer checks his email anyways, have patients.

Now it’s time to write your ending. This isn’t a paragraph this is just something to make your email look more professional. You don’t need much, except maybe a signature such as the following.

-Taylor Brazelton(Ryanb58)-
http://tech-fyi.net
[email protected]

Remember to include a very easy way to get in contact with you, don’t always rely on the fact that the developer can just hit the reply button and get in touch with you. Also if you have a personal website or social network group you’d like to share with the developer don’t be afraid to put that down in there as well. Plus you can see at the top I make sure to put my full name and then also enlighten my fellow e-mailer’s on what I go by online as well.

Now here is the most important part of the process… You now need to get someone to re-read your email incase you made any grammatical errors or maybe something just doesn’t click exactly how you picture it in your mind. Your best source is the ones right under your feet.. Check with your mom, dad, siblings.. and if those don’t exist go ask your best friend to review it. Trust me after going through that you might just have a good convincing email that will in fact help you out financially with your software struggle.

Solution #2

This solution is simple as pie… Okay, I admit it’s easier than that. Some developers and big time companies offer discounts and their software freely to students who have a .edu email or have the time and patients to go online, fill out a form, and wait for their teachers to approve that they exist at that university. Use your student status and get approved for free software as soon as you can. Sometimes these types of offers are limited. A couple I know about are listed below.

If you know of anymore don’t be afraid of leaving a comment with the link below.

Now go and enjoy the knowledge I have provided for you.

Tips When Re-doing Music Library

OK, so over the past years I’ve collected a ton of music in my library in itunes and in WMP. I’ve finally decided because of all the disorganization and clutter I want to restart my collection. So here are some tips and notes to myself and to you about what to do before, during and afterward.

  • Remove from library but do not delete actual files.
  • Drop extra music files into folder named “Unknown” and then rename the album property to name of folder.
  • Always keep a back-up of favorite music on external HD. Preferably a solid state drive.

Captivate the whole picture

This is my blog so I can vent freely right? Well I’ve been waiting for android 2.2 on my Captivate by Samsung device since it’s release in August. It’s been over 2 months now and some phones are starting to even get updates to their 2.2 devices. I’ve been really patient but since the release of the Tab, I’d kind of like some attention for Samsung and let them know I’d like my device updated from 2.1 to 2.2 already. I hope they somehow see and listen to this post.

Anyways like everyone’s life, school comes first, or should on that fact. Well as you might know I’m in a class for CISCO networking at a career and technical center that’s branched off my original school. Well I’ve decided to update you on what we’ve been doing, and it’s really not that complex. We’ve been working with router configs and such in order to hook up 2+ computers via ethernet cables to their own routers, then attaching a switch and then assigning static IP’s to all of the connected computers. It’s been an actually cool class, and every now and then we have small visitors from middle schools and elementary schools pass by that we get to wave and and pretend to talk like we know a lot to. It’s been pretty amazing so far.

Well I hope you had a great Halloween week! It’s been pretty fun with me, I’ve spend time with amazing friends, and even got to dress up with gold hair! I doubt I’ll post any pictures though. Remember to drop me a line via email or twitter sometime!  I end this post with a smile and an explosion! :)

Learning Binary!

Binary might sound like a foreign language to you, and you’ve probably never had to use it, the fact, is that it’s not commonly used even among computer geeks and nerds. Don’t let the name scare you.  Binary may stimulate your mind into thinking it’s going to be really complex, but it isn’t hard to learn.  In fact, it is EASY! 

Lets start right into it.  First, you need to know what computers talk with. Computers use two numbers to communicate with each other and to send all types of data. This data, which is sent,  is usually in a form called base2.

Base2  uses only the numbers 0 and 1 to communicate.

Now you know how a computer talks… using 0’s and 1’s.  Lets see what those digits mean.

0 mean to turn off or to not use, while 1 means to turn on or to use.

Now comes the more complex part so let me give you an example:

00000100

Above you see a simple 8 digit number that looks as if it says 100.  Right? Well the truth is, is that all the zero’s in front of the 1 do have a meaning(notice how it’s in a group of 8). Remember when you were learning decimals in first or second grade? Well this is sort of like that except each digit has a different meaning. In the old days however you remembers the places of numbers being like:

 

Thousands

Hundreds

Tens

Ones

The same rules are used on a binary number however the places change like so. Make sure you read it from right to left.

128 64 32 16 8 4 2 1

This is basically a cheat sheet for you. Say if you have the 3rd digit from the right turned to an on position(other words a 1 instead of an 0).

00000100

This number basically means 4. That’s all there is to it. So say if you have multiple numbers turned on it’d end up like this example:

00010100

What you want to look for is what numbers are turned on so you’d be adding together a 16 plus a 4 and that’d be what the binary code means.

00010100 = 16 + 4 = 20

And that’s my small tutorial on teaching you how to learn some binary. Peace!

 

Play the CISCO Binary Game!