Force format and mount USB drive in windows 8

Had a problem with an usb drive that I prevously had used with http://www.pendrivelinux.com/ this was the only solution that I found that worked:

  1. Open “Command Prompt” with admin rights.
  2. Type DISKPART & hit enter
  3. Type LIST DISK & note down the Disk number of your USB flash drive.
  4. Type SELECT DISK = & put your USB Disk Number at the end example = SELECT DISK 1
  5. Type CLEAN
  6. Type CREATE PARTITION PRIMARY
  7. Type ACTIVE
  8. Type FORMAT FS=NTFS
    Note: The format process may take some time to complete
  9. Type ASSIGN
  10. Type EXIT
    & Close “Command Prompt”

Source: http://www.overclock.net/t/1225410/cant-format-usb-drive-to-mount-windows-8-developers-for-netbook-installation

Many thanks to KEX.

Install Symfony 2 development environment on windows – Part 3 Configure apache and installing composer

This is third part in the “Install Symfony 2 development environment on windows” series.
For part 4 – configuring php click here.
For part 2 – installing xampp click here.
For part 1 – installing git click here.

Start the XAMMP control panel.

As you can see there are already some applications running on port 80 and 443. And suprice suprice, both of them are skype. The easiest solution is to configure our web-server to run on port 8080 instead. To do click the config button on the apache line and choose “Apache (http.conf)”
There are two lines to update

Listen 80

and

ServerName localhost:80

change them to

Listen 8080

and

ServerName localhost:8080

and save the file.

Click on the start button om the same line as Apache

click on Allow Access.

Click start on the MySql and click allow access. So now we have Apache with php and mysql up and running.

Lets configure teh Path environments, open up the control panel and search for system.

Click on the “Edit the system environment variables” and then “Environment Variables”.

Select the Path line and click edit.

Check that the line contains something like

C:\Program Files (x86)\Git\cmd

(C:\Program Files\Git\cmd for 32 bit systems)
and add

;C:\xampp\php

to the end of the line (; is a separator between the diffent paths) and click ok all the way and close the control-panel.
Open a command prompt window by searching for cmd and clicking it.

Test that you can run php by typing

php -v

you should get something similar to this:

Test that you can run git by typing

git --version

And you should get something simular to:

Close the command prompt.

Download the Windows composer installer from http://getcomposer.org/download/

Click next.

Check that the path is correct and click next.

Click next to begin the installation.

So all done. As you see it updated the path variable, so if you did not close it before go ahead and do it now. Open a new command window.

So now lets make a Symfony 2 Site. Go to c:\xampp\htdocs

cd c:\xampp\htdocs

Create a new project

composer create-project symfony/framework-standard-edition SymfonyTest/ 2.1.3

So now we have an installation of Symfony 2.1.3 up go to the url:

http://localhost:8080/SymfonyTest/web/config.php

And you will be greeted by this screen:

Next up.. configure PHP..

Install Symfony 2 development environment on windows – Part 2 installing XAMPP

This is second part in the “Install Symfony 2 development environment on windows” series.
For part 4 – configuring php click here.
For part 3 – configuring apache and installing composer click here.
For part 1 – installing git click here.

Part 2 – Install XAMMP

First of all download the latest version of XAMMP from here.

Be sure to download the installer version. Run the installer.

Select your prefered language.

Read through the warning and click ok.

Click next.

Leave all the defaults and click next.

Choose the installation folder in this guide we will keep the default directory (you remember the warning from before right?). Click install and have a cup of tea.

Jihaa! we are done with the installation. Next up. Configuring

Install Symfony 2 development environment on windows – Part 1 installing Git

This is first part in the “Install Symfony 2 development environment on windows” series.
For part 4 – configuring php click here.
For part 3 – configuring apache and installing composer click here.
For part 2 – installing xampp click here.

I remember chatting on IRC with Tobias Sjösten (@tobiassjosten) one of the founders of Symfony.se  a while back and he told me that there where some difficulties in getting working  Symfony 2 development environment up on windows machines at one of their meetings. So since I have re installed windows my computer I thought that I might as well create a step by step guide of how to do it.

In this guide we will
Install git
Install xammp

So let us get started:

Install Git

My preferred way of installing git is to install it through a package called Git Extentions it has the following features:

  • Windows Explorer intergration for Git
  • Visual Studio (2005/2008/2010/2012) plugin for Git
  • Feature rich user interface for Git
  • Single installer installs MSysGit, GitExtensions and the mergetool KDiff3
  • 32bit and 64bit support

So head over to http://code.google.com/p/gitextensions/ and download the latest version. Run the installer

Click next.

Here you can choose if you want to install Git Extentions just for your user or for all users on your computer. In this guide we will stick with the default option, to install it for all users. Click next.

Select both MySysGit and KDIff and click next.

Click next.

Click next.

Click next.

Click install and sit back and enjoy the installation. After a while you will see this screen:

Click I Agree (if you do). Then just keep the defaults and click next for a couple of screens and then install it.

After kdiff is installed it is the Git installation:

Click next. Read through the licence and click next again.

Leave the default options and click next.

Leave the default options and click next.

Leave the default options and click next and wait for the installation to finish.

There.. installation done!

The next part can be found here.