How To Setup XAMPP For Web Development

XAMPP is a software package that makes it quick and easy to install Apache, MySQL, PHP and Perl on any OS.  If you need to get a local web development environment setup quickly this is a great option.  For convenience, many features are turned on by default, so while great for local development, XAMPP is not designed to be secure and ready for a production environment out of the box.

The XAMPP installation is straightforward, but I wanted to provide some screenshots to guide a new user through to loading a test page in the browser successfully.  If anything is confusing, leave a comment below.

There are installs available for Linux, Windows, Mac OS X and Solaris.  The steps below are written for the Windows install.

To start, download XAMPP for Windows.  I recommend getting the EXE install.  Run the installer and select the installation destination on your PC.  I recommend sticking with the C:\ default for simplicity.

After the install is done you can start up Apache and MySQL from the XAMPP Control Panel.  If the control panel doesn’t show up right away you can launch it from the Start Menu.

If you have the built in Windows firewall running, it will ask you if you want to unblock Apache and MySQL the first time.  Go ahead and click Unblock.

Next open up your favorite browser and navigate to http://localhost/.

If Apache is running correctly you should see a splash screen where you can select your language.  After selecting that it will take you to the XAMPP home page below which gives you status information and details about the installed software packages.  You can also get to phpMyAdmin from here for working with your MySQL installation.

Now that the Apache web server is running, lets test it out with a simple Hello World example in PHP.

Navigate to the htdocs folder in your XAMPP installation (C:\xampp\htdocs by default).  Any web projects you add here will be accessible through the browser.

Create a new folder in C:\xampp\htdocs named hello.

Then create a file in the hello folder called index.php and use your favorite text editor to put this code in it.  I like Notepad ++, but Notepad works fine too.

<?php

echo ‘Hello world!’;

?>

Now go back to your browser and navigate to http://localhost/hello/index.php

If everything worked correctly your page should load with the classic programming greeting.  You now have a basic web development environment to play around in.

Got a question?  Leave a comment below.

Share this post:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • LinkedIn
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • Tumblr
  • Twitter

Do You Play Foursquare?

Foursquare is going to explode in popularity this year.  Foursquare is a mobile web service that launched last year that makes a game out of connecting with friends and exploring cities.  It’s played on your phone and if you’re a fan of all things web and go out often, you’ll be addicted in no time.  I will try to explain the basics here, but the best way to understand Foursquare is to go try it out.

 Foursquare Logo

What Is Foursquare?

Foursquare describes itself as part friend finder, social city guide and nightlife game.  So what does that mean?

 Friend Finder

  • Users “check-in” to venues from a mobile device.  A venue can be any place people go like a restaurant, bar, museum, park, etc.
  • You add friends to your Foursquare account and can then see each other’s check-ins.  Makes meeting up with people on the fly easy!
  • Foursquare is integrated with Twitter and Facebook, so you can blast your check-ins out to a broader audience if you want.

Social City Guide

  • Each venue on Foursquare has its own profile page that shows all kinds of details about it.
  • Users can leave behind short tips at venues telling future users good things to order, try, do, etc.  It’s fun to check these when you visit a place for the first time.
  • Venues can create promotions for Foursquare users.  Think freebies and discounts!

Nightlife Game

  • Users that check-in at a venue the most often become the Mayor.  Creates an instant incentive for repeat visits.
  • Check-ins also earn users points and unlock badges for certain actions.  As Foursquare evolves I think the points will become more meaningful beyond bragging rights.

 

How Do You Play?

Foursquare is meant to be played from your phone while you’re on the go.  There are Foursquare apps for the iPhone, Android devices, Palm devices and one is on the way for Blackberry too.  Users with phones that don’t have an app can use Foursquare’s mobile page instead (http://foursquare.com/mobile/).  Finally, if you are like me, and don’t have a smartphone, you can still check-in with standard text messages.  The apps provide a more robust user experience, but texting still gets the job done.

To use text messaging send a text to 50500 in this form:

@ Ace Bar ! Playing skeeball

The @ designates the venue name and the ! designates your shout, which is a short message you can include with your check-in.  Note that you need to text in the exact name of the venue for the check-in to register correctly.  You can search venues from Foursquare’s main page to get the exact name.  If the check-in is successful you should get a confirmation message back from Foursquare.

 

For Businesses

If you’re a local restaurant, bar, etc. you should definitely consider running a promotion on Foursquare.  It’s free to run an offer and can really entice users to stop by.  Find out more and sign-up for promotions here:  http://foursquare.com/businesses/.

 

For Developers

Foursquare recently opened up an API to developers for building applications to interact with Foursquare.  Developers are already creating some neat software like Mob Zombies.  See more information and examples here:  http://foursquare.com/developers/.

 

Similar to how Twitter grew in popularity last year and everyone was asking if you tweet, I think this year we’ll see the same thing happen with Foursquare.  If you have any questions about how it works leave a comment below, check Foursquare’s help page or leave a question at their Get Satisfaction site.  Go play!

Share this post:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • LinkedIn
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • Tumblr
  • Twitter

Bing Travel Search

I recently needed to book a plane ticket, which is something I hate doing because it seems nearly impossible to know when to buy to get the lowest price.  In the past I have used Kayak and Orbitz, which are good at identifying low prices at the times I want, but they are not good at providing future price predictions.

Bing has a great fare predictor feature that suggests whether it is time to buy or if I should wait based on past fare observations.  It indicates the likelihood the fare will go up, down or stay the same and the potential price changes as well.  There is no guarantee it will be right, but it gives you a good sense about the direction the fare will go and in my case for this flight it was correct and I wound up getting a nice deal.  Check it out next time you need to go somewhere.

Bing Price Prediction

Share this post:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • LinkedIn
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • Tumblr
  • Twitter

Dusting Off The Nintendo

I dug out the old Nintendo this week and got my fix of Dr. Mario, Duck Hunt and a few other games.  Maybe I’m just easily amused, but despite all of today’s fancy game consoles I still like to go back to the oldies.Duck Hunt I like the pixelated graphics, 8-bit soundtracks and finicky cartridges.

I mentioned this to some friends this week and one of them pulled out the new Droid phone, where he had some Nintendo games running in an emulator.  It’s interesting how yesterday’s games that pushed the limits of technology and cost a premium are now just nostalgic distractions you can carry around in your pocket.

It’s cool that classic games can be played on all kinds of platforms today, but it just doesn’t beat the real thing.  There is something special about the clicking sound the gun trigger makes on Duck Hunt, blowing on cartridges and not being able to save your game.

Share this post:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • LinkedIn
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • Tumblr
  • Twitter

MISRC Social Media Presentation

The MIS Research Center (MISRC) at the Carlson School of Management does frequent presentations on all sorts of technology topics.  Most recently, Jesse Bockstedt from George Mason University spoke about social media in modern organizations.  He gave a great overview of the current social media landscape and even touched on prediction markets, which I was not familiar with.  You can view the presentation deck at the MISRC website here.

Share this post:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • LinkedIn
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • Tumblr
  • Twitter