by Dominik Jungowski
20. September 2010
Comments (3)
This common typo will never bug you again!
function var_dumpo()
{
$arguments = func_get_args();
call_user_func_array('var_dump', $arguments);
}
;-)
by Dominik Jungowski
6. Mai 2009
Comments (2)
If you should come across this error message in your JavaScript console and the error is thrown in a JavaScript file that is included via <script src="js/somefile.js" type="text/javascript">: Check that there are no script Tags in your .js file
by Dominik Jungowski
1. April 2009
Comments (5)
Today we had a database crisis due to a powercut. Apart from corrupted tables (because of the immediate "shutdown") we also had another problem: CLI scripts/cronjobs suddenly threw a MySQL server has gone away Exception after a really short amount of time (maybe 30 seconds)
I found this useful list, the only problem was: all the points didn't match for my case. So we came up with an own list that we worked through:
- Flush privileges
- Restore the User grants/privileges
- Restart the MySQL server
- dpkg-reconfigure mysql-server-5.0 (or similar)
In our case restarting the MySQL server fixed the problem.