Showing posts with label Marios. Show all posts
Showing posts with label Marios. Show all posts

Sunday, September 4, 2011

Highlight a linked list item in blogger

What i will show you here is the result found in this website: http://www.syndesmosnikiforos.gr/p/blog-page_9205.html

The site is in Greek but you can easily see the result if you click any one of the bullets in the main area of the page.

As you see when a link is clicked the same link is highlighted on the right menu. Also the right menu has a mouse over event that works fine. The best thing is that the component on the right is a standard link list that is added from bloggers Layout menu.


Read more...

Monday, June 27, 2011

Red5 freezes when running without error

When i tried to run Red5 server the excecution froze without producing any errors.
The last two lines printed were:

[INFO] [Launcher:/installer] org.red5.server.service.Installer - Installer service created
Logger context selector method found
After that i tried to run the server from the eclipse plugin but the same problem occurred.  After waiting the following error was produced:
Server Red5 Server Runtime at localhost was unable to start within 120 seconds. If the server requires more time, try increasing the timeout in the server editor.
The solution is not related to the eclipse plugin but it relies on the port number that you entered during the setup of red5. The default port number is 5080 and it works fine with that port. During the setup i did not know what the default port number was so that was the problem.

Read more...

Red5 error exception BasicMDCAdapter

After installing Red5 1.0 RC1 when i tried to run the server i got the following error:
Exception java.lang.ClassCastException: org.slf4j.helpers.BasicMDCAdapter cannot be cast to ch.qos.logback.classic.util.LogbackMDCAdapter

This error is produced because there are 2 additional jars that shouldnt be there.
The solution is to delete the following files from red5/lib directory
com.springsource.slf4j.juli-1.6.1.jar
com.springsource.slf4j.log4j-1.6.1.jar
More information ca br found: http://code.google.com/p/red5/issues/detail?id=43

Read more...

Wednesday, November 17, 2010

Windows 7 - Can't pin any Folder to Windows Explorer in taskbar

For a while i had this problem with windows 7. I dragged a folder i wanted to pin in windows explorer in taskbar but it did not show anything.This is the solution that worked for me.


Read more...

Wednesday, February 24, 2010

Show Run menu in Windows Vista and Windows 7

Back in the days of Windows XP(Professional i do not know about home) Run... menu could be found in start menu. This changed in Windows Vista and was kept that way in Windows 7.

Read more...

Shutdown command in windows

Some time ago i wanted to leave my computer running for a short time only, not all night. I was looking for a way to do this without installing a new program in windows. All i wanted was to schedule the computer for shutdown after 15 minutes.

Read more...

Wednesday, October 14, 2009

Cedega 7 install issue "cedega Error: Dependency is not satisfiable: python2.4-dbus"

Today i downloaded the .deb version of cedega from this URL http://www.cedega.com/downloads/

When i tried to install cedega i came across the following error:
cedega Error: Dependency is not satisfiable: python2.4-dbus


After some search i found out that in ubuntu 9.04 (Jaunty) the package python2.4-dbus was renamed to python-dbus. So this leads to a broken dependency error. The solution i found is:

Open a terminal and navigate to the directory you downloaded the .deb file from cedega. Usally this is your home folder or Desktop folder.
Execute the following commands by the order they appear:
$ mkdir -p cedega_000133_all/DEBIAN
$ ar p cedega_000133_all.deb data.tar.gz | tar zx -C cedega_000133_all/
$ ar p cedega_000133_all.deb control.tar.gz | tar zx -C
$ cedega_000133_all/DEBIAN/
$ mv cedega_000133_all.deb cedega_000133_all.prerebuild.deb
$ perl -pi -e 's/python2.4-dbus/python-dbus/' cedega_000133_all/DEBIAN/control
$ dpkg-deb --build cedega_000133_all
$ rm -rf cedega_000133_all
$ sudo dpkg -i cedega_000133_all.deb
Make sure you have write permissions to this folder if it is outside your home directory. If you don't have sufficient write permissions the build command will produce an error.
Hope this helps.

Read more...

Monday, May 18, 2009

Disable Hibernation in windows Vista

If you have read the post about the hibernation problem in Vista you may also be interested in disabling Hibernation to save some space from your disc.


This can be done with two ways.

The first one is to excecute the Disc Cleanup utility and delete the file. In my opinion this has a major disadvantage. The Disc cleanup utility is realy slow and takes a considerable amount of time in order to calculate all the available data.

The second and much faster way is to go to the command line as you did in the previous post and write:
powercfg /hibernate off
When you want to enable it again just write:
powercfg /hibernate on


Read more...

Left 4 Dead crashes on Vista [Solved]

If you have played the game Left 4 Dead on windows Vista you may have noticed that on random times the game crashes with no obvious reason.
For this problem i hadn't found a valid solution for some time. The solution that worked for me is:

Step 1:
In the main menu screen of the game go to
Options -> Video
Click Advanced options and set the option multicore rendering to DISABLE
This solution did the trick for me. Before that i had tried all the options in Vistas compatibility mode but nothing worked.

Read more...

Hibernation not working or isn't available in Windows Vista [Solved]

WIndows Vista have the bad habbit of deleting the Hibernation file when you excecute the Disc Cleanup utility.
This utility can be found when you right click on a hard disc and select Properties. After you choose to clean this file you will not be able to put your computer in hibernation mode. Fortunatly there is a simple solution.

Step 1:
Go to: Start menu -> All programs -> Accessories
and right click on the Command Prompt.

Step 2:
Select the option Run as an Administrator and accept the UAC warnings.

Step 3:
In the comand line write:

powercfg /hibernate on




Read more...

Monday, October 27, 2008

Mount iso file in Ubuntu

This post will show you 4 ways to mount an iso file like a normal cd/dvd drive in Ubuntu. By using these you don't have to write the iso file to a cd or dvd. They are ordered from the easiest to the hardest.



Mount iso using Gmount-iso.
This is a great program that i found recently. To install it just type:
sudo apt-get install gmountiso
The best thing with this program is that you can mount the image anywhere you want. You can even mount it on the cdrom folder. (if you execute it with sudo )
sudo Gmount-iso


Mount iso using nautilus.

This is the easiest and fastest way i know.

Step: 1
With this way you only have to install a .deb package. This package is called nautilus-mount-image and it can be found
http://launchpadlibrarian.net/18219053/nautilus-mount-image_0.2.0-1_all.deb
or
https://edge.launchpad.net/%7Ezootropo/+archive/+files/nautilus-mount-image_0.2.0-1_all.deb

After
installing the package when you right click on an iso file you will see the option to Mount.
The only problem that i found with this way is that you cannot mount it where you want (in a folder of your choise) .


Mount iso using nautilus scripts.

To make this way work you need to create two nautilus scripts and put them in the correct folder.

Step:1

Create a new file named mount in the folder ~/.gnome2/nautilus-scripts. This file will mount the image file you want.
gedit .gnome2/nautilus-scripts/mount.sh
and copy the following and save the file
#!/bin/bash

gksudo -u root -k /bin/echo "got r00t?"

sudo mkdir /media/"$*"

if sudo mount -o loop -t iso9660 "$*" /media/"$*"
then
if zenity --question --title "ISO Mounter" --text "$* Successfully Mounted.

Open Volume?"
then
nautilus /media/"$*" --no-desktop
fi
exit 0
else
sudo rmdir /media/"$*"
zenity --error --title "ISO Mounter" --text "Cannot mount $*!"
exit 1
fi

Step:2
Create a new file named unmount in the folder ~/.gnome2/nautilus-scripts. This file will unmount the image file you previously mounted.
gedit .gnome2/nautilus-scripts/unmount.sh
and copy the following and save the file
#!/bin/bash

for I in "$*"
do
foo=`gksudo -u root -k -m "enter your password for root terminal
access" /bin/echo "got r00t?"`

sudo umount "$I" && zenity --info --text "Successfully unmounted /media/$I/" && sudo rmdir "/media/$I/"
done
done
exit0
and copy the following and save the file
#!/bin/bash

gksudo -u root -k /bin/echo "got r00t?"

sudo mkdir /media/"$*"

if sudo mount -o loop -t iso9660 "$*" /media/"$*"
then
if zenity --question --title "ISO Mounter" --text "$* Successfully Mounted.

Open Volume?"
then
nautilus /media/"$*" --no-desktop
fi
exit 0
else
sudo rmdir /media/"$*"
zenity --error --title "ISO Mounter" --text "Cannot mount $*!"
exit 1
fi

Step:3
Now we just have to give execution rights to the files we created.
sudo chmod +x .gnome2/nautilus-scripts/mount.sh
sudo chmod +x .gnome2/nautilus-scripts/unmount.sh
The only problem that i found with this way is that you cannot mount it where you want (in a folder of your choise) .

If you want some more nautilus script visit:
http://mundogeek.net/nautilus-scripts/


Using loop Kernel Module

This is the hardest way but the only one if you don't want to use a graphical interface.

Step:1
The first thing you need to do is create the directory that the iso is going to be mounted.
sudo mkdir /media/image_folder
Step:2
Now you have to load the loop mode to your kernel:
sudo modprobe loop
Step:3
Now we can mount the image file (
image_file.iso) to the folder we created.
sudo mount image_file.iso /media/image_folder/ -t iso9660 -o loop
Step:4
When we want to unmount the image file
sudo umount /media/image_folder/




Read more...

Friday, October 24, 2008

Disable Xgl server

This post will show you how to disable xgl server in Ubuntu. With this way it is no longer necessary to use any special X session to disable xgl server. I used this way because my laptop has an ati graphics card (Mobility Radeon X1700) and i had many problems with xgl server.

Step 1:
The only thing you need to do is create an empty file named disable in your home directory in the path ~/.config/xserver-xgl/
cd .config/xserver-xgl/
If the above path does not exist create it
mkdir .config/xserver-xgl/
Step 2:
Now to create an empty file named disable:
>disable
Now you just have to logout and when you login xgl server won't start.




Read more...

Create an iso file from a cd,dvd or folder

This post will show you how to create an iso file from a cd, dvd or a folder.

Create .iso from CD - DVD


Step 1:
Now we move to the creation of the .iso file. The following command will create the iso file named test.iso.
dd if=/dev/cdrom of=test.iso bs=1024
Now wait for the command to finish. This may take some time depending on the size of the data on the disc.


Create .iso from a folder

Step 1:
In order to create an iso from a folder we need to install the program mkisofs. Just type:
sudo apt-get install mkisofs
Step 2:
Now we create the iso file (test.iso) from a folder in our system.
mkisofs -r -o test.iso /path_to_folder/
Step 3:
It is suggested to create an MD5 checksum from the iso file so we can validate the integrity of the file in the future. This is done with the following command:
md5sum test.iso > test.iso.md5


Read more...

Wednesday, October 22, 2008

Open desktop environment througth ssh

This post will show you a very simple way to open a desktop environment such as gnome, kde or xfce through ssh. This way has been tested on Ubuntu and Kubuntu.



Step 1:
You need to install open ssh client and server
sudo apt-get install openssh-client openssh-server

Step 2:
On the client machine you need to open a new screen. In order to do this press Ctrl+Alt F2 (or any f2-f6) and login.

Step 3:
When you are logged in run following command to open a new X Session in screen 1 (you can open it in other screens ex. 2. If you want to go to another screen press Ctrl+Alt f8 - f12)
xinit /usr/bin/xterm -- :1
When the session is opened you will only see a terminal.

Step 4:
On that terminal you will execute this command to open an ssh connection.
ssh -X username@host_ip
or
ssh -Y username@host_ip
The difference between the above commands is that the first one is subjected to X11 SECURITY extension restrictions by default. The second is not. So it is advised to use it with caution.

Now you have to enter your password (from your account on the server) in order to login.

Step 5:
When you are logged in the remote computer according to the X environment it has installed you have to enter the following to run it.

For machines with Ubuntu usaly:
gnome-session
or if you have KDE installed type :
startkde
For machines that have XFCE installed type:
startxfce4



Read more...