Just a quick note on how to make your user Library folder viewable on Mac OX X 10.7 Lion.
The following command will make the Library directory viewable for the currently logged in user.
chflags nohidden ~/Library/
And if you would like to hide it again, use this command:
chflags hidden ~/Library
Thats all, carry on as usual.
I’ve had a few people ask me about FizzBuzz so I thought I would write a little something up…..
For starters, it’s a programming challenge sometimes used in job interviews.
The question generally goes like this….
"Write a program that prints the numbers from 1 to 100 on separate lines. But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print FizzBuzz."
Here is a solution done in php:
When trying to run a phar package from command line I was getting strange output, mostly a bunch of question marks, like this “???????????????????”. I ran into this when trying to run the symfony_bootstrapper (https://github.com/symfony/symfony-bootstrapper).
Turns out the reason for this is bug in PHP (http://bugs.php.net/bug.php?id=42396) which makes __halt_compiler() not work correctly if detect_unicode is enabled. This bug seems to effect PHP version 5.2.3 and higher.
A quick and (usually) simple fix is to set detect_unicode to false in your php.ini file. Just add the following line to your php.ini file.
detect_unicode = off
Comment it nicely so you can find it again easily to turn it back on.