audibleCode

a code repository for codes that you don’t have enough words to describe

How to reset MySQL password.

leave a comment »

I am browsing blog and i just found this thing that i didn’t know

Reseting mysql password

 

  1.  
    1.  
      1. Stop the server
      2. #/etc/init.d/mysql stop
      3. Login as root
      4. #mysqld_safe –skip-grant-tables –user=root
      5. #mysql -u root
      6. Enter this command
      7. mysql>update mysql.user set password=password(’newpassword’) where user=’root’;
      8. start the service again
      9. #etc/init.d/mysql start
      10. login again
      11. #mysql -u root -p
The sequence is the same in windows. But the thinks is for the  complete stuff  go to mysql.com aand read the documentation.

Written by audiblecode

May 23, 2008 at 8:37 pm

Custom CSS for Internet Explorer 6 & 7

with one comment

I was working on my mini-project. The project was  a CMS for a school. I finished everything about it. I mean the php, mysql javascript, flash, and all that. But i had a small problem with the theme.

To be specific the CSS was different in Internet Explorer. I mean that i had to give internet explorer a different code to get the same effect in the various browsers. Firefox(my all time favorite), Safari and the rest. 

IT was only internet explorer that gave me the issues.

Let me get to it.

Read the rest of this entry »

Written by audiblecode

May 23, 2008 at 7:15 pm

The Concept Of Intelligent Operating Systems

leave a comment »

As a computer science student i have some experience with operating systems like (our ever famous) Windows, Linux(My personal favorite), Solaris, Apple Mac etc.

The thing is that rather than making operating system just run other programs. Lets make OS’s that have the ability to think,learn,suggest etc. I want the day that OS ceases to become a dumb piece of codes that is executed by the hardware. To the extent that it becomes a complete mother program object.

let me explain. We want to be able to have sentences like the once i have written below

Read the rest of this entry »

Written by audiblecode

May 23, 2008 at 6:34 pm

Repairing Crashed MySQL Database tables. “table ‘employee’ has crashed.”

with 2 comments

Hi all,

Today i just want to start by sharing an experience that i had with MySQL Database. I was a project for a friend. The project was a CMS for a movie site and all of a sudden an error message started appearing, that the

table “employee” has crashed.

This made the admin page inaccessible. The true is if you have been working with MySQL for sometime you might have seen this error. I want to share with you i i fixed this error. 

Before that i want to ask “Does anyone what causes MySQL table to crash” if you do please leave a comment as to how.

Read the rest of this entry »

Written by audiblecode

May 23, 2008 at 6:15 pm

Efficient and easy way to debug CSS

leave a comment »

If you’ve been working with CSS for some time, you’ve probably spent a fair bit of time debugging seemingly untractable problems that turn out to have a very simple solution.

The question: What can we do to debug our CSS faster? is there a streamlined way of debugging CSS.

Okay i want to share with you some few tips that i use in my CSS debugging

Read the rest of this entry »

Written by audiblecode

May 22, 2008 at 11:09 pm