Problems with mod_rewrite

Yesterday I have had a hard time solving a rewrite problem that a friend of mine had. The problem was actually much easier to solve than I though. I was even checked that .htaccess is correct spelled, if all stuff inside .htaccess file was correct spelled, tried to look at the virtual host file on … Read more

How to install magento ecommerce in under 10min

In this megento ecommerce installation guide I will focus on showing you how to install complete magento system under 10 minutes. 1. Down magento latest full release. 2. Download server compatibility check to see if your server meets requirements. Put the file in webserver root and run https://localhost/magento-check.php 3. Move downloaded magento archive file in my case “magento-1.4.2.0.tar.bz2” to the … Read more

Ubuntu server – you have mail

When you login into your ubuntu server and a message appears that you have mail than you’ve got a system mail. To read system mail you need to install a command based mail client. I suggest you to install a tiny mail client called mail which is part of mailutils. Install mailutils by typing: sudo … Read more

Detect left mouse button click with jQuery

This script below will detect left mouse click and pop up an alert when you left click on the link “Click me”. Code: <script> $(function(){ $(“#click-me”).live(‘click’, function(e) { if( e.button == 0 ) { // Clicked with left mouse button alert(‘You clicked with left mouse button’); } }); }); </script> <a id=”click-me”>Click me</a>

Grab youtube thumbnail images

Youtube has made it very easy comparing to others when it comes to grabbing thumbnail images for you to use as preview images in your custom video application or other. This is how the URL for youtube thumbnails looks like: https://img.youtube.com/vi/_YOUTUBE_ID_/_IMAGE_NR_.jpg Replace _YOUTUBE_ID_ with the ID of the video.Replace _IMAGE_NR_ with a number 1-3 to get … Read more

Optimize your pages easily with mod_pagespeed

Google anounced last week release of mod_pagespeed. Pagespeed is an apache module that helps you optimize server side page speed. It will compress and combine your CSS and JavaScript files, optimize caching settings, remove comments and whitespace from your files, optimize images, etc. The good news is that you can install mod_pagespeed as a package … Read more

Zencart – sessions directory does not exist

I was searching the internet after the problem that caused an error message “sessions directory does not exist” but I could not find any answer that solved my problem. I have solved this problem very easy and this message has now disappeared on my zencart shop. This kind of error message in Zencart often occures … Read more

Auto login into network share from Windwos

I have not managed yet how to auto login into my samba share from windows. Even if you tell Windows to autologin the next time you restart your computer you have to manually type the password for your network share. However I came up with an ugly solutions and that is to create a batch … Read more

Where is mysql data directory?

Usually mysql data directory resides in the /var/lib/mysql/By mysql data means all the databases that are created on your mysql server are stored in that directory. The fastest way to check where your mysql data directory resides is to look inside your my.cnf file. cat /etc/mysql/my.cnf | grep datadir As I mentioned the default directory … Read more