• Linux & Server Administration

    11 comments

    Finding files $ grep -rnw '/path/to/somewhere/' -e 'pattern' -r or -R is recursive, -n adds line numbers, -w stands for match the whole word, -l (lower-case L) can be added to just give the file name of matching files Ref: How do I find …

    Read More
  • Copying on Mac OS X

    11 comments

    To copy files on Mac OS X on a remote server can be used FileZilla program, because it uses a secure FTPS protocol. Another good alternative to browsing the file system is e.g. Double Commander (similar to Total Commander) and Midnight Commander. https://filezill …

    Read More
  • Naming conventions

    11 comments

    Many-to-many relationship = joining tables Coming up with a good name for a table that represents a many-to-many relationship makes the relationship easier to read and understand. Sometimes finding a great name is not trivial but usually it is worth to spend some time …

    Read More
  • JPA & Hibernate

    11 comments

    Lazy loading problem Also beware of the n+1-problem. Hibernate will not actually load all children when you access the collection. Instead, it will load each child individually. When iterating over the collection, this causes a query for every child. In order to avoid …

    Read More
  • Zend Framework

    11 comments

    How to create a Zend project using command lines. Firstly, go to project home directory and do the following: zf show version zf create project your-project zf enable layout zf create controller AlbumController zf create db-table Albums albums zf c …

    Read More