Feeds:
Posts
Comments

Archive for the ‘troubleshooting’ Category

lately I was working with open flash chart (OFC 1.x) to add some sexy statistics showings. it’s really cool tool and easy to work with.

the charts was set right in, and everything is good, when moved to HTTPS domain it crashed on IE (6 and 7).

after a few minutes googling I found the solution that you need to add two response headers for IE to show the chart.

in JSP

response.addHeader(“Cache-Control”,”cache, must-revalidate”);
response.addHeader(“Pragma”,”public”);

here is the forum I benefit from: http://forums.codecharge.com/posts.php?post_id=97771

Enjoy!

Advertisements

Read Full Post »

getting apt workig with Ubuntu

by the principal of knowledge sharing, I wish this would save someone’s time.

I installed ubuntu and tried installing some packages, then I got: please insert cdrom …. bla bla. while I want apt to look on the remote servers!

well, to solve the problem: go to /etc/apt/sources.list and comment the line talking about cdrom.

That is it!

Read Full Post »

If you missed your mysql root user password, then here are the steps to reset it:

  1. stop mysql server
    service mysqld stop
  2. make sure all mysql process are dead
    ps -A | grep mysql
  3. start mysqld in safe mode
    mysqld_safe –skip-grant-tables
  4. open a new shell window and start mysqld
    service mysqld start
  5. access mysql database
    mysql -u root mysql
  6. reset password of root user
    update user set Password=PASSWORD(‘yournewpassword’) where user=’root’;
  7. stop mysqld_safe and restart mysql server
    service mysqld restart.

Happy Administration!

Read Full Post »