RSS
 

service mysqld restart: no file or directory

05 Jan

rpm -qa | grep mysql (find out the version of mysql you got)Somehow managed to break mysqld file (wow! applauses).

Errors received from ‘mysql -u <username> -p <pass>’:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'

On using ‘rpm -e mysql-server’ was getting:

error reading information on service mysqld: No such file or directory
error: %preun(mysql-server-3.23.58-4) scriptlet failed, exit status 1

The solution ended up in:

  • rpm -qa | grep mysql (find out the version of mysql you got)
  • Get the right version of you RPM
  • rpm -Uhv –force mysql-server-xx.x.rpm
  • service mysqld restart
 

IE7 “operation aborted” error

23 Nov

Once you have “Operation aborted” error in IE7 for the website that means:

  1. You’ve placed JS file in the head of the document.
  2. This script tries to work with DOM with appendChild, createElement methods that drive IE crazy!

Solution is simple – move the JS file out of the head-tag at the bottom as (YDN advices), or at least – inside its container. For example, body-tag.

 

Google Dashboard and preferred language issue

06 Nov

Well that’s annoying…one thing Google doesn’t do intelligently is languages. I am logged into my account, they KNOW I speak English as a preferred language, but when I go to my iGoogle [google.com] page on my iPhone whilst I’m in Belgium it insists on displaying everything in Dutch.

That was annoying enough…but now the dashboard is doing the same, even when I visit the page from my laptop.

Google, you KNOW I speak English, stop overriding my account setting for my language with demographic data based on my IP address. When I’m traveling it doesn’t make me fluent in the local language…

*slaps the company on the nose with a rolled up newspaper* Bad Google, bad bad portal!

– Pete. (c) Comment

That’s one of the reasons I love Slashdot – proper way of commenting the things! :)

Oh, yeah, about Google Dashboard – yep, it’s quite handy and useful! :)

 

Hugh Laurie – “America”

06 Nov

 

Memo: SVN creation, trunks and tags

03 Nov

1. Trunks

svnadmin create --fs-type fsfs /svn
cd /svn
svn mkdir file:///svn/<project> -m "creating project directory"
svn import /dir/of/project_files file:///svn/<project>/trunk -m "initial import"
svn checkout file:///svn/<project>

2. Creating Tags

cd /svn/<project>
svn mkdir tags
svn copy trunk/ tags/<version_tag> 
svn ci -m "version tagged"
cd /svn/<project>
svn checkout file:///svn/<project>/tags/<version_tag>
 

Memo: fast grep of the word in the directory

02 Nov
 find ./ | xargs grep -i search_string
 

Memo, 10 rules of User Interface

28 Oct
  1. Visibility of System status
  2. Match between system and the real world
  3. User control and freedom
  4. Consistency and Standards
  5. Error prevention
  6. Recognition rather then recall
  7. Flexibility and efficiency of use
  8. Aesthetic and Minimalistic design
  9. Help users recognize, diagnose, and recover the errors
  10. Help and documentation

Main reasons and explanations are in the article from Jakob Nielsen: 10 Heuristics of User Interface.

 

Rowan Atkinson: Gospel of St.John

27 Oct