A somewhat geeky dev blog
This is where I allow myself to geek out on development, technology, the Internet, databases, open-source, weblogs and presumably some other geeky stuff too... :P
For some reason, nobody seems to acknowledge there is a bug with
flush() in PHP 5.4.
In any previous version of PHP, you could just do:
and the PHP output buffer would be sent to Apache which would in turn send it to your web browser.
We are not talking about any side effects due to compression or charset sniffing here. We are talking about: flush() was working just fine.
And then compes PHP 5.4 and it doesn't work any more. And you revert to PHP 5.3 and it works again. PHP 5.4, broken again. And you can reproduce that to infinity but still, nobody wants to acknowledge it.
So we had to find a workaround. Here it is: just replace your flush() calls with a custom call like flush54() defined like this:
This will restore the initial behaviour...
If you have several servers to maintain like I do, at some point you’ll want to know how old exactly an installation of Debian (or another flavor or Linux) has gotten since you last wiped it clean…
So how do you check the install date?
I found the easiest way was to simply check the date of the lost+found folder. This folder is created at installation time and basically never removed after that. So I just go with:
ls -l /home/
and look at the date for lost+found .
That sounds awesome, but it’s not true. It’s actually pretty much a lie! :( – You can take some advantage of the Retina display, but definitely not full advantage.
All you can do is set Windows to believe it is running with a 2880 x 1800 pixels display. And that is indeed the physical pixel resolution of a Macbook Pro Retina display…
But, in NO CIRCUMSTANCE can you actually map each pixel from the 2880 x 1800 virtual machine to a physical pixel of the actual screen.
What you get instead, is blurry scaling all the waty down!
On the first screenshot below (click to zoom) you will see how 2880 x 1800 is scaled down (and BLURRED down) to 1440 x 900 if you keep you Mac runnign with the default setting of “Best for retian display".
On the second screenshot below you will se how 2880 x 1800 is scaled down (and still blurred down) to 1920 x 1200 if you change your mac display settings to the highest scaled resolution. This solution makes your windows look a tiny little bit better but it also makes your mac apps look less sharp (because they are now scaled too! Remember, you are no longer running in “Best for Retina display” mode!)
When you right-click (or control-click) on a file in the Mac OS X Finder, you get a contextual menu with a nice “Open With” option, which lets you open the selected file with any Application that you desire to.
That is pretty nice until that menu gets all clogged up with all sorts of old/broken apps that you don’t use any more.
Due to some caching mechanism, it seems that this menu never cleans itself up :/
So here is how to reset it:
- Open a Terminal window (by running the “Terminal” Application)
- Copy/paste the following command: (all on one line)
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
- Click on the Finder icon and relaunch the Finder (or log out and log in again)
Your ‘Open width” menu will now be all clean… and will start to fill up again as you run/install apps that register themselves there…
a52 ac3 apache apache2 apple b2evolution bluetooth codec debian development «disk space» displays flash hardware howto ios ipod itunes links linux «log files» mac «mac mini» «mac os x» mouse mysql noise «os x» osx pc performance php quote redirections review sata seo shell smtp software sound ssd surround technologies terminal tls tools upgrade windows www