Video (I was there!)
accompanying pdf
Friday, April 27, 2012
Thursday, March 29, 2012
Make Firefox work with dark themes in Gnome/GTK/Unity
Google and stackoverflow like to fuck with the colors for their search boxes.. after fighting with greasemonkey for the whole day I finally gave up and installed Stylish then added this as a global stylesheet:
In conkeror, simply changed everything with a stylesheet in the .conkerorrc file (or folder).
in .conkerorrc/main.js
in .conkerorrc/stylesheet/input_color_fix-user.css
input, textarea {
background: #000000 ! important;
color: #FFFFFF ! important;
}
In conkeror, simply changed everything with a stylesheet in the .conkerorrc file (or folder).
in .conkerorrc/main.js
let (sheet = get_home_directory()) {
sheet.appendRelativePath(".conkerorrc/stylesheets/input_color_fix-user.css");
register_user_stylesheet(make_uri(sheet));
}
in .conkerorrc/stylesheet/input_color_fix-user.css
input, textarea {
background: #000000 ! important;
color: #FFFFFF ! important;
}
Tuesday, March 27, 2012
Ubuntu, Unity, Xmonad and the missing appmenu
Finally figured out how to remove the global appmenu in unity that causes the text based menu at the top of my apps to disappear in xmonad. Have to remove indicator-appmenu.
sudo apt-get remove indicator-appmenu
Monday, March 26, 2012
Changing theme colors in Unity for Ubuntu without installing gnome-tweak-tool
gnome-tweak-tool seems to want to install all of gnome for it to work. Instead just edit these files:
/usr/share/themes/[theme]/gtk-3.0/settings.ini
/usr/share/themes/[theme]/gtk-3.0/gtk.css
/usr/share/themes/[theme]/gtk-2.0/gtkrc
source
Sunday, March 4, 2012
Geben CheatSheet
| i | step into |
| o | step over |
| r | step out |
| b | set breakpoint at current line |
| u | unset breakpoint at current line |
| B | breakpoint menu (set conditional break points, call breakpoints, etc).. investigate later |
| g | run |
| q | quit |
| e | evaluate php |
| c | run to current line (run to cursor) |
| C-c f | open file in geben, useful for setting breakpoints in files further down the call stack (use after geben has started with a call to http://yoururl/?XDEBUG_SESSION_START) |
Monday, February 13, 2012
Friday, October 21, 2011
PDO utf-8 issues
Had issues with json_encode complaining:
Fixed it by adding
source
Invalid UTF-8 sequence in argument
Fixed it by adding
PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8"
to the PDO creation line.. ie:$pdo = new PDO(
'mysql:host=mysql.example.com;dbname=example_db',
"username",
"password",
array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8"));
source
Subscribe to:
Posts (Atom)