Category Archives: Tutorials

Matlab 7 under Windows 7

If you have trouble installing, switch to “Windows Classic” theme under “Personalization” (should be done automatically). After the installation, we need to setup Matlab to use the newest Java version instead of the supplied one.

  1. Download and install the latest jre version
  2. Go to C:\Program Files\Java (or C:\Program Files (x86)\Java)
  3. Copy the folder name jre6 to <Matlab-installation-dir>\sys\java\jre\win32
  4. Go to <Matlab-installation-dir>sys\java\jre\win32
  5. Open the file named jre.cfg
  6. Instead of (in my case 1.4.2), write 6. Now Matlab will use jre6 instead of jre1.4.2.

Matlab should start now without problems.

Tagged , ,

Apache mod_rewrite setup

This module provides a rule-based rewriting engine to rewrite requested URLs on the fly. Let’s see how to set it up and working in a few steps.

It comes bundled with Apache HTTP Server. To install Apache server on Linux:

apt-get install apache2

or

yum install apache2

then enable the mod (not enabled by default)

a2enmod rewrite

Now we are going to enable application specific settings on the apache server.

  1. Go to /etc/apache2/sites-available/
  2. Open default for editing.
  3. Replace AllowOverride None with AllowOverride All
<Directory /var/www/>
	Options Indexes FollowSymLinks MultiViews
	AllowOverride All
	Order allow,deny
	allow from all
</Directory>

All left is to check if it’s working. Since we’re going to need PHP install it and restart apache.

apt-get install php5 libapache2-mod-php5
/etc/init.d/apache2 restart

Enter the root directory of the web app you want to use mod_rewrite with.
Make index.php:

<?php
	echo "http://" . $_SERVER['HTTP_HOST']  . $_SERVER['REQUEST_URI'];
?>

Open/Make a file .htaccess and add the following lines:

RewriteEngine on
RewriteRule ^.*$ index.php

This rule will redirect everything that comes to your web app to index.php inside the same app, and print the full address.

E.g.
A good mod_rewrite cheat sheet can be found here. (courtesy of AddedBytes)

Tagged , ,

Skype login window disappearance fix

For 2 days, some people are reporting login window disappearances. Happened to me on both my Windows XP and Ubuntu 10.10 machine. The solution is quite the same:

  1. Locate the Skype user settings folder
  2. Delete it

On Linux:

  1. Open terminal
  2. rm -rf /home/username/.Skype

On Windows:

  1. Start -> Run
  2. %appdata%\Skype
  3. Select All (CTRL + A)
  4. Delete

Update (31.05.2011.):

As some people pointed, there is a better solution than deleting the whole Skype user settings folder. Instead, you should only delete the shared.xml file in it.

Tagged ,

A blog/website building tutorial from scratch


I’ll try explaining how to make you own website or blog using WordPress from scratch. When I say from scratch it means we’ll go through the whole process:

Continue reading

Tagged , , ,