Sep 21 2009

Setup LAMP on Ubuntu

Install Apache

To start off we will install Apache.

1. Open up the Terminal (Applications > Accessories > Terminal).

2. Copy/Paste the following line of code into Terminal and then press enter:

sudo apt-get install apache2

3. The Terminal will then ask you for you’re password, type it and then press enter.

Testing Apache

To make sure everything installed correctly we will now test Apache to ensure it is working properly.

1. Open up any web browser and then enter the following into the web address:

http://localhost/

You should see a folder entitled apache2-default/. Open it and you will see a message saying “It works!” , congrats to you!

Install PHP

In this part we will install PHP 5.

Step 1. Again open up the Terminal (Applications > Accessories > Terminal).

Step 2. Copy/Paste the following line into Terminal and press enter:

sudo apt-get install php5 libapache2-mod-php5

Step 3. In order for PHP to work and be compatible with Apache we must restart it. Type the following code in Terminal to do this:

sudo /etc/init.d/apache2 restart

Test PHP

To ensure there are no issues with PHP let’s give it a quick test run.

Step 1. In the terminal copy/paste the following line:

sudo gedit /var/www/testphp.php

This will open up a file called phptest.php.

Step 2. Copy/Paste this line into the phptest file:

<?php phpinfo(); ?>

Step 3. Save and close the file.

Step 4. Now open you’re web browser and type the following into the web address:

http://localhost/testphp.php

Congrats you have now installed both Apache and PHP!

Install MySQL

To finish this guide up we will install MySQL. (Note – Out of Apache and PHP, MySQL is the most difficult to set up. I will provide some great resources for anyone having trouble at the end of this guide.)

Step 1. Once again open up the amazing Terminal and then copy/paste this line:

sudo apt-get install mysql-server

Step 2 (optional). In order for other computers on your network to view the server you have created, you must first edit the “Bind Address”. Begin by opening up Terminal to edit the my.cnf file.

gksudo gedit /etc/mysql/my.cnf

Change the line

bind-address = 127.0.0.1

And change the 127.0.0.1 to your IP address.

Step 3. We are now going to install a program called phpMyAdmin which is an easy tool to edit your databases. Copy/paste the following line into Terminal:

sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin

Step 4. Now linking phpMyAdmin to Apache’s www folder

sudo ln -s /usr/share/phpmyadmin /var/www/phpmyadmin

After that is installed our next task is to get PHP to work with MySQL. To do this we will need to open a file entitled php.ini. To open it type the following:

gksudo gedit /etc/php5/apache2/php.ini

Now we are going to have to uncomment the following line by taking out the semicolon (;).

Change this line:

;extension=mysql.so

To look like this:

extension=mysql.so

Now just restart Apache and you are all set!

sudo /etc/init.d/apache2 restart


Jul 30 2009

Zach Schneider Fan Page Project

twitter_logofacebook-logoI created a Facebook Fan Page today in hopes to create my first Facebook and Twitter application which is in the works. The idea of what my application will do is feed in a twitter feed to your Facebook page NOT your personal profile. There has been a few attempts but nothing yet that satisfies me. http://tinyurl.com/ZachSchneider


Jun 25 2009

Power Wheels Racing Series

Power Wheels Racing Series from Jeff Kantarek on Vimeo.


Jun 2 2009

Geek Prom 2009

You Can Dance If You Want To…

A Night of Pseudoformal Peer Bonding!

Geeks, nerds, dorks — chances are, you didn’t attend your high school prom. During college, you were so focused on your engineering/math/science degree that other humans barely registered within your domain space. This is your chance to rectify your oversight without yielding to irrational forces of social pressure, and perhaps enrich your symbolic-semantic internodal linkages, as well! (okay, that was actually gibberish) Come to the

Prom Bot Flyer

There will be music, dancing, and some sort of contest based on physical appearance, but we promise that it won’t be excruciating or embarassing! Local tinkerers will bring their latest DIY and hacked gadgets — stuff that you WISH you had made for your High School Science Fair. To attend this fundraiser (see Meta) follow this simple instruction set:

» Obtain advance entry clearance for $15/couple or $10/single. $20/couple or $15/single at the door.

» Prior to GEEK PROM (but not too prior) enhance your physical appearance with

a. hygiene

b. cosmetic adjustment

c. optimized exolayer assembly

» On Saturday June 6th, Utilize a transport medium (non-virtual) to resolve this address:

Co-Prosperity Sphere

3219 S Morgan St.

Chicago, IL

View Larger Map

» Entry clearance will be granted at the door for donations of $20/couple or $15/single, starting at 9 pm Central; unbonded pairs also welcome.

» Open Format:

a. Dancing to Music (live bands and DJ’s)

b. Contests (outfits and exhibits (see contest rules))

c. Imbibe (liquids)

d. Witness / Interact (art, games)

e. Improvise (variable)

f. Communicate (oral/aural)

» This happening will be adjourned at 2 am, and requires remaining participants to anti-swarm.

Meta

PS1 Logo

The GEEK PROM is a fundraiser for Pumping Station: One, a non-for-profit hackerspace in Chicago. The proceeds for this event go towards machine tools and supplies, so that PSOne may host classes, workshops, and other events for the community-at-large, and provide an environment where makers, modders, and hackers of hardware/software projects can unleash their creative madness.

Contest Rules

There are two contests, a Exolayer Pairing contest, and a Science Fair contest, each with a distinct set of rules:

–Exolayer Pairing Contest

To enter, get photographed and enter your information at the photography stand. Vote via approval voting at any point up to midnight using an available terminal or your own web-enabled device. Each entry must consist of two humans, and each pair can only enter once. However, a single human can pair with any number of other humans for additional entries, so long as each combination is unique. Voters are asked to vote based on criteria provided in the voting form. Any outfit is allowable, but you should also be able to dance in it.

–Science Fair Contest

This contest requires that you contact the organizers ahead of time so we can take a look at your display. Your exhibit should be interactive, fun, and self-explanatory (we don’t require you to stand by it all night, unless you want to). If it’s artwork, there should be something geeky/nerdy/science-y about its topic, creation, or significance. Bring your exhibit to the Co-Prosperity Sphere on Thursday June 4th between 6 and 10 pm for early set-up. Anything interactive should be demoed successfully.

Sponsors

Interested in having your brand present at GEEK PROM? Contact us.


May 23 2009

How to prepare an USB device to boot and install Windows 7

Prerequisites:

· Your BIOS must support booting to an USB device, and that functionality has to been enabled

        · An empty 4GB (or greater) USB device, and you’ve removed all other important files from the device. This process will WIPE IT CLEAN. You have been warned.

        · You must be using Windows Vista (or newer) DISKPART

Note: Don’t insert the USB device just yet. I’ll will tell you when.

Open a command prompt as administrator. From the C:> prompt, type:

diskpart

From the DISKPART> prompt, type:

list disk

Make mental note of the disks you have. Then, insert your USB device, and

list disk

again. You should see a new disk with a new number. That’s the number you’ll use in the next command:

select disk x

(x = the number for your USB device)

To make sure that there’s nothing on the USB device that will interfere with our booting; we will wipe out any and all partition information on the device. WARNING! This will wipe the USB device clean! It will delete and destroy any and all data on the device.

From the DISKPART> prompt, type:

clean

Now we want to create our primary partition for booting. From the DISKPART> prompt type:

create partition primary

Now we want to change to that partition and make it an active or bootable partition. From the DISKPART> prompt type:

select partition 1

When that step completes, type:

active

Next we need to format our active partition and assign a drive letter to the boot partition.

From the DISKPART> prompt type:

format fs=fat32 quick

When the format completes, type:

assign

You can now exit DISKPART and close the command prompt.

The USB device is now ready to boot. Next, just copy the files from the ISO (if you’ve mounted it using a tool which does this) or from the Windows 7 DVD onto the USB device.

Click here to download the Word DOCX


May 4 2009

The reason I got into Flash!!






Feb 20 2009

hide-n-seek academic style

Once all the scientists die and go to heaven. They decide to play hide-n-seek.  Unfortunately Einstein has to seek and is supposed to count upto 100 and then start searching. 

Everyone starts hiding except Newton – he just draws a square of 1 meter and stands in it rite in front of Einstein. 

Einstein keeps counting……97,98,99…..100…….. 

He opens his eyes and finds Newton standing in front. 

Einstein says “newton’s out..newton’s….out…..” Newton denies and says i am not out. He claims that he is not Newton!! 

All the scientists come out and he proves tht he is not newton………. 

how??????? 

 

 

 

Scroll Down 

 

 

 

 

Proof: 

Newton says: 
I am standing in a square of area 1m square. 
That means i am Newton per meter square. 
Hence i am Pascal….since newton per meter square = Pascal, 
Pascal is OUT.