Administration

How to add svn ignore property to folder

    If you want add some folder to svn ignore, you should follow next steps
  • First check status of folder
    svn stat <folder_name>
    ?       test
  • Next add svn ignore to folder
    svn propset svn:ignore target <folder_name>
    svn ci <folder_name> -m"Folder has been marked for ignoring"
  • Check folder status again
    svn stat <folder_name>
    #nothing should be printed

Recursively Remove .svn Directories in Linux

Recursively Remove .svn Directories in Linux

rm -rf `find . -type d -name .svn`

How to check HDD for bad clusters under Linux

To check HDD for bad clusters under Linux you should run following command

fsck -c /dev/sda3

Hibernate and MySQL Connection Timeouts

Some days ago i had have issue with my persistent level. The issue was with mysql connection timeout and hibernate c3p0 default connection setup.
Problem:
After 8 hours of inactivity of my application i have a broken pipe exception.
Root of problem:
MySQL automatically times out, and closes unused connections after 8 hours, and out of the box, Hibernate does not set up C3P0 to appropriately test/refresh its connection pool when connections go stale.
Solution:

Syndicate content