Setup WordPress Using WebPlatform for Windows

1-    Go to  http://www.microsoft.com/web/wordpress website and click on install WordPress as in figure (1.0)

Figure (1.0)


2- Web Platform will open after click install to guide you throw setup steps as in figure (1.1)

Figure (1.1)

3- Web platform will ask you to download MySql on your machine or as a remote server as figure (1.2)
Figure (1.2)


4- Accept to download third party , application and components and Microsoft software to continue MySql install as figure(1.3)

Figure (1.3)


5- Next enter password for your database as in figure (1.4)

Figure (1.4)


6- Install MySql will start progress as  in figure (1.5)

Figure (1.5)

 

7- Next create new database or use existing one,note that database password can’t be empty as  in figure(1.6)

Figure(1.6)


8- last step after downloading will congratulate you about download WordPress MySql and other products as in figure (1.7)

Figure (1.7)

9- Now you should have the Microsoft WebMatrix on your machine ready to use,open it and click on My Sites as  in figure (1.8)

Figure (1.8)

10- After click on My Sites click on WordPress and then OK button, will open a new window from there click on run you will find it at the top of your screen as  in figure(1.9)

Figure(1.9)

11- Now WordPress will  Guide you through your Personal platform information(This Step will open on your browser as web page),Note that the Site Title field will be your blog name, After finish filling your information click on install WordPress button as  in figure(2.0)

Figure(2.0)

12- Now you should see the success step and it’s ready to Login as  in figure(2.1)

Figure(2.1)

13-  After Login it will guide you through your dashboard page, From there click on New then post to start your first blog post as  in figure(2.2)

Figure(2.2)

14- In the add new post page there are many options helps you to start your first post, there is a field to write your post title and under it you can find an Upload/Insert link to help you insert audio or video on your post, on the right you can see three important buttons(save Draft.Preview and Publish) save Draft help you to save your post without publishing for all users online so you back edit or change it, preview help you to see your blog before publish, then if you click publish that means that your blog will be seen online for every one as in figure(2.3)

Figure(2.3)

15- Now you can go to All Posts in you dashboard menu and you will find the posts you save to drafts or publish with info about its date and last modified if draft as  in figure(2.4)

Figure(2.4)

This setup steps done using the following:

* Windows 7 Ultimate
* WordPress 3.3.1
* Web Platform 7.1.1070.1
* WebMatrix 7.1.1073.1

MongoDB Series – windows installation

Brief about NoSQL

NoSQL stands for Not Only SQL , the next generation databases mostly addressing some of the points: being non-relational, distributed, open-source and horizontally scalable. Often more characteristics apply such as: schema-free, easy replication support, simple API, eventually consistent / BASE (not ACID), a huge amount, of data and more.

You can read more about NoSQL at

http://nosql-database.org/ and http://en.wikipedia.org/wiki/NoSQL

Introduction to MongoDB

MongoDB is a high-performance, open source NoSQL database, Written in C++.

http://www.mongodb.org/

MongoDB features

 – Document oriented storage.

  • JSON-style documents with dynamic schemas offer simplicity and power.

 – Full index support

  • Index on any attribute, just like you’re used to.

 – Replication and high availability.

  • Mirror across LANs and WANs for scale and peace of mind.

 – Auto-Sharding

  • Scale horizontally without compromising functionality.

 – Querying

  • Rich, document-based queries.

 – Fast In-Place Updates

  • Atomic modifiers for contention-free performance.

 – Map/Reduce

  • Flexible aggregation and data processing.

 – GridFS

  • Store files of any size without complicating your stack.

– Commercial Support

  • Enterprise class support, training, and consulting available.

How to setup MongoDB on Windows

First go to downloads link http://www.mongodb.org/downloads under the production releases and choose your compatible operating system, in our example I will use Windows 32-bit.

After download finish, unzip the file anywhere, I will unzip it on C: drive, for convenience you may rename this folder to mongo instead of mongo-xxxxxxxxxxx.

By default MongoDB will store data in \data\db, but it won’t automatically create that folder, so we do so here.

Note : If you prefer to place data files elsewhere, use the --dbpath command line parameter when starting mongod.exe.

We have two important binaries for the first run :

- mongod.exe which is the database server.

- mongo.exe The administrative shell.

To run the database, click mongod.exe in Explorer, or run it from a CMD window.

It will open a command window shows that the server is running and you will see the logs of the server.

Now we are ready to run the administrative shell by d-clicking on mongo.exe or from a New CMD window, which means the first window must be opened along running the administrative shell, otherwise you can run the server as a windows service (we will talk about it later).

By default it connects to mongodb server running on localhost and uses database test. To get some help run  mongo --help

Mongo shell is a JavaScript shell, try some JavaScript commands.

Or type help to get some useful commands.

Notice the created files on \data\db as we mention before that Mongo will store your databases files on this path.

Now we can do some actions with NoSQL database.

You can try it online at http://try.mongodb.org/

References

http://www.mongodb.org/

http://nosql-database.org/

Google Android Development – Part 1

This is the first post in a multi-part series on Android development.  Throughout the series, we’ll explore how to build applications for the Android platform.  This first post is an introduction to the Android SDK and the Eclipse IDE along with a high-level overview of Android applications.
Google Android Development - Part 1
PreRequisites

  • Java Development Kit (JDK)  – self-explanatory; the Java runtime and development libraries. You can download it from here (http://www.oracle.com/technetwork/java/javase/downloads/index.html)
  • Eclipse – an IDE (integrated development environment) for Java and other languages.   If you don’t have it installed, You can get the Eclipse Classic 3.7.2 version, which will suit the needs of this tutorial.  The Windows download doesn’t contain an installer, so extract the ZIP in an accessible location, such as C:\eclipse. You can download it from here (http://www.eclipse.org/downloads/)
  • Android Software Development Kit (SDK) – The heart of Android development.  This provides all of the necessary tools and libraries required to build applications for the Android platform.  Extract it to an accessible location on your hard drive and run the setup executable, which will download and install a set of components. You can download it from here (http://developer.android.com/sdk/index.html)
  • Android Development Tools (ADT) Eclipse Plugin – This plugin adds Android-specific development tools and project templates to Eclipse.  Instead of a separate download, it installs within Eclipse as we will describe next

Use the Update Manager feature of your Eclipse installation to install the latest revision of ADT on your development computer. Assuming that you have a compatible version of the Eclipse IDE installed, as described in the previous step above, follow these steps to download the ADT plugin and install it in your Eclipse environment.

Installing Android Development Tools (ADT) Eclipse Plugin

  1. Start Eclipse, then select Help > Install New Software….
  2. Click Add, in the top-right corner.
  3. In the Add Repository dialog that appears, enter “ADT Plugin” for the Name and the following URL for the Location:

https://dl-ssl.google.com/android/eclipse/

Note: If you have trouble acquiring the plugin, try using “http” in the Location URL, instead of “https” (https is preferred for security reasons).

  1. Click OK wait for pending
  2. In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
  3. In the next window, you’ll see a list of the tools to be downloaded. Click Next.
  4. Read and accept the license agreements, then click Finish.
  5. When the installation completes, restart Eclipse.
  6. After eclipse restarted you will see a window to choose SDK Choose exist Andriod SDK or choose to install it from the beginning
  7. In my case because we already install the sdk in step 3 i will choose the SDK Installation folder then Next
  8. Choose weather to Contribute usage statistics or not
  9. We haven’t finish yet we still have to install SDK’s to be ready for developing our first android application, to install sdk’s first open SDK Manager
  10. Choose Android SDK platform-tools under Tools Note: Android SDK Tools and Android SDK Platform-tools is important to be installed so make sure that u install it also choose the appropriate API you will work on it from Android API’si will choose Android 3.2 (SDK Platform, Google Api’s  by Google inc.) about XOOM 2 by motorolla its optional to install if you going to develop a plugin for that devices  
  11. Choose Google USB Driver package
  12. Click Install packages, then accept terms and conditions (You can choose Accept all to force accept for all selected components you will install ) that will take a few minutes to complete
  13. Now we are ready to create our hello world application.

Create HelloWorld application

  1. Go to File Menu then New then choose other in order to create an Android application
  2. After that a wizard appears to select application you want to work on search for android or collapse Android in the list of project types appears in the list
  3. Now its time to add your project name and choose Create new project in workspace to add your code in a newly folder in the workspace
  4. Select your build target i will choose Android 3.2 which we select to install in the SDK Manager
  5. After click on next we have to fill in the application info the application name which we already defined in a previous step also the package name as you can see in the next picture i named it “com.helloworld.hello” that is the main package that will be in the application also set our main activity name which is named by default HelloWorldActivity (activity name by default is a combination between application name and and Activity) later in the next tutorials we will discuss deeply what is activity mean but for now you have to know that is the main entry for the application. also you can see Minimum SDK by default it will be loaded to 13 because we choose SDK version 3.2 which is API 13. Minimum SDK is option to define what is the lowest android system your application can run in off course if you choose API 13 then your application can’t run on lowest android systems.
  6. After click on finish eclipse will create a new application named HelloWorld for us and some building process and here is our hello world application ready
  7. We are not ready yet to lunch our application we have to add AVD(Android Virtual Device or emulator) AVD helps us to run our android project in a similer environment as like it is in the device exactly. so to do so we have to click on AVD Manager icon on top beside SDK Manager to open AVD Manager
  8. Click on New in the upper right of the window to create a new AVD you have to fill in android name and the desired Target of build for the emulator as example if we choose Android 3.2 – API Level 13 as explained in the following picture the emulator will be running that operating system then you have to specify SD Card lets say its 200 MG the other options is preferred to be the default then click Create AVD   
  9. Now we are ready to running our HelloWorld Application so go to run
  10. Then choose android Application from Run As window.
  11. Wait for the emulator to lunch that will take a few minutes in the first time then your application is ready now with that screen

That all for that tutorial we can now run an android application and ready to begin development, In the next tutorial we will get deep in the application hierarchy and discuss the folders and the code.