Problem: After calling session_start() and assigning key-value pairs to the $_SESSION array, calling print_r($_SESSION) subsequently don’t work.
Solution: Assuming your php.ini session save_handler, save_path variables are set correctly, also check for free disk space.
I spent 90 minutes trying to resolve the problem thinking it was a PHP-related issue, but in the end, nullifying the 5+ gigabytes of Apache error logs promptly resolved the problem. Doh!
Updated for Windows 10.
I noticed that with the power turned off at boot time, I’d be unable to adjust my screen brightness. Instead of the usual 3 options (Turn off the display, Put the computer to sleep, and Adjust plan brightness), just 2 were available; i.e. Adjust plan brightness" had disappeared!
This is probably due to a bad driver (e.g., TeamViewer). The workaround is to restart Windows with the power plugged in, but this takes too long.
I bought a Sony VAIO Y Series laptop and it’s been working great thus far, except this one thing: it boots into a recovery mode called VAIO Care every time. What?
I’ve copy-pasted the text wholesale, in case the site goes down one day (and mine doesn’t):
Click the Start button and then click All Programs. In the All Programs menu, click the Accessories folder and then click the System Tools folder.
I frequently try new OSes courtesy of VirtualBox, and I keep forgetting about xclip so I’m reposting snippets of this article here:
sudo apt-get install xclip xclip -sel clip < ~/.ssh/id_rsa.pub
Fixed a subtle bug in our code recently:
$options = array(); // method params $this->Foo->id = 'bar'; $this->Foo->baz($options); Setting ->id is fairly handy, but unexpected results occur when used in conjunction with ->find() and ->del(); e.g.,
$options = array('contain' => array()); $this->Foo->id = 'bar'; $this->Foo->find('first', $options)); // BUG Now for ->del():
$this->Foo->id = 'bar'; $this->Foo->del(); // BUG This is especially bad behavior when deleting a record, so take care to inspect the query log – we use Oracle 11g Release 2 here.