Tuesday, 1 September 2009

Joomla! Installing XAMPP on Vista

Currently I am working on installing Joomla! content management system and as a first step it requires to install XAMPP package. After some time of tweaking I finally managed to install and run XAMPP package on Vista. XAMPP installation completed fine and basic configuration steps made no problems. All services except Apache started.

image 

Turned out that service was unable to start, because Apache process had no access to “C:\Program Files\xampp” directory. I decided to give SYSTEM account access to it and run Apache, MySql and FileZilla as windows services. To give access to SYSTEM account open properties of the directory and Security Tab.

image

Check that it has full access rights assigned. If not, use Edit button to assign access rights.

After trying to start Apache service again it still was failing to start. Apache log in C:\Program Files\xampp\apache\logs\error.log showed the following error.

“(OS 10013)An attempt was made to access a socket in a way forbidden by its access permissions.  : make_sock: could not bind to address [::]:80”

This error happens when some process already uses port 80. My solution was to change “C:\Program Files\xampp\apache\conf\httpd.conf” file and set port to something else like 8080 or any other number. Edit lines “Listen 80” and “ServerName localhost:80” to be  “Listen 8080” and “ServerName localhost:8080”. Start Apache service. Success!

The next step will be to install Joomla! I will publish another post if there will be problems that required solution during install.

Sunday, 23 August 2009

ASP.NET Grid View Hidden Column Binding Problem

When I was using Grid View in my Web Application I run into problem where hidden column would not bind data. After searching I found a simple solution to this problem. Let’s have a look at example. We have a table called Person with columns ID, FirstName, Surname. In our page we want to show only FirstName and Surname columns and have ID column loaded but hidden.

For a Grid View component create RowCreated event handler with the code:

protected void GvRowCreated(object sender, GridViewRowEventArgs e)
{
    // Hide ID Column
    e.Row.Cells[0].Visible = false;
}

The code above will hide all cells in column Cells[0], which is ID column. If Grid View has paging enabled we need to check e.Row.RowType == DataControlRowType.DataRow to hide only Cells that contain data.

Monday, 6 July 2009

CSS References and Tools

Every web designer and developer knows how powerful Cascading Style Sheets are and how much they can save in HTML coding.

I put together several links to CSS tutorials, samples and Internet resources.

CSS Books

CSS Tutorials

CSS Templates and Samples

Web Designer Tools

  • Rounded Graphics for CSS Box Corners - Cornershop

Resources

Friday, 3 July 2009

How to get Virtually unlimited online backup storage with Live Mesh

As you may already know Live Mesh Online Storage currently offers 5GB of online storage. This amount of data is enough if you are backing up documents as DOCs or plain text files, but if you want to store music, photos, large multimedia files, storing them into one account will quickly add-up to the limit. To expand this 5GB limitation we will use an excellent sharing functionality of Live Mesh.

Lets looks at the example. We want to setup backup for our Photos, Music, Documents. We will need to create a separate live or hotmail accounts for each of them, say my_photos@live.com, my_music@live.com, and my_docs@live.com. All these accounts will need to link with main account say my_mesh@hotmail.com.

DocsLiveMesh 

After creating my_docs account login into www.livemesh.com using it and connect to Live Desktop.

DocsLiveMesh1 DocsLiveMesh2

Double click on ‘Create new folder’ Icon and enter ‘Documents’ in the name field.

DocsLiveMesh3 DocsLiveMesh4

Once folder is created double click it to open it and click Members and then Invite to enter address of your main account.

DocsLiveMesh5 

After clicking OK Email will be sent to my_mesh@hotmail.com account which will have a link to accept an invitation. After that ‘Documents’ folder will be linked to your main mesh account and will be visible in the list of folders.

These steps need to be repeated for photos and music and add virtually unlimited number of folders.

Tuesday, 30 June 2009

Free ASP.NET Learning Resources

In this post I would like to put together a list of ASP.NET learning resources.

Basic ASP.NET Walkthroughs

Advanced ASP.NET Walkthroughs

Visual Web Developer

ASP.NET Settings Schema – Reference for ASP.NET configuration section schema

ASP.NET Deployment

Additional Resources

ASP.NET FAQ's: Part I, Part II

ASP.NET MVC - is a free and fully supported Microsoft framework for building web applications that use a model-view-controller pattern.

Building a Great Ajax application from Scratch by Brad Abrams : AjaxWorld Talk

Web Deployment Projects - provide additional functionality to build and deploy Web sites and Web applications in Visual Studio 2008.