Having Microsoft Fonts on Linux (Ubuntu)

I have been using Ubuntu in the office lately. However, I did not have the standard fonts that you would find on a Windows system for use in documents. So I simply used the following method to add them: # sudo aptitude install msttcorefonts# sudo aptitude install msttcorefonts For these fonts to display in 96dpi… Continue reading Having Microsoft Fonts on Linux (Ubuntu)

Using bitmask permissions like Unix in PHP application

Have you ever wanted to give read/write/Delete type of permissions to users or other items within a PHP application?  Why not use Unix-style file permissions (read/write/execute for example)?  A PHP implementation can be used for any kind of permissions in scripts and applications. Use powers of two (the reasoning behind this will become apparent when… Continue reading Using bitmask permissions like Unix in PHP application