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...

Monday, April 11, 2011

How to install the same programs from a pc to another




$ dpkg --get-selections > installed_progs
# cat installed_progs | dpkg --set-selections




Read more...

How to reload ~/.bashrc

0. Descritpion
Assume you change ~/.bashrc (eg you add a new alias or you extend the PATH variable)
or any configuration files. How do you update Bash without logging out and logging in?

1. How?
$ source ~/.bashrc


Read more...

Tuesday, February 8, 2011

Eclipse deploy project libraries on glassfish

On eclipse i had this weired problem:
I was able to start glassfish server but any project i tried to deploy was could not access the libraries i had imported in the project.

Lets start with glassfish installation in eclipse.


Read more...

Tuesday, December 14, 2010

C segmentation fault in linux but working in windows

Recently i came across an unusual problem.
I wrote a program in C on a windows machine using Dev-C++ program. The program compiled and run successfully. When i tried to compile it on linux using gcc it compiled successfully but when running it produced a segmentation fault!



Read more...