Wordpress debugging
WP Debug bar is lovely!
http://wordpress.org/plugins/debug-bar/

blake kathryn

Kiana Khansmith
taylor price
No title available
No title available
we're not kids anymore.
Misplaced Lens Cap
noise dept.
trying on a metaphor

Love Begins
Sweet Seals For You, Always
styofa doing anything

PR's Tumblrdome
Claire Keane

Discoholic 🪩
Xuebing Du
Show & Tell

roma★
NASA
ojovivo
seen from South Africa

seen from Germany
seen from Malaysia

seen from United States

seen from Brazil

seen from Netherlands
seen from United States

seen from Malaysia
seen from United Kingdom
seen from United States
seen from Germany

seen from Germany

seen from Canada

seen from Malaysia

seen from Malaysia
seen from Brazil

seen from Germany

seen from France
seen from Germany

seen from Singapore
@grrrrfuck
Wordpress debugging
WP Debug bar is lovely!
http://wordpress.org/plugins/debug-bar/
Funky css selector
The following code targets any div with the word “section” in the title. It can be “section3″ or “section-Four”, it doesn’t matter, as long as it contains the indicated string, the subsequent styles apply.
div[id*='section'] { color: red; }
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --allow-file-access-from-files
Changing the styles of a Kickstarter widget for your website using php. I've been doing this since a while to make various widgets fit into places.
This file will work as a proxy, all you need to do then is to src="" this ( above ) file instead of the kickstarter / indigogo ... src
Changing the styles of a Kickstarter widget for your website
cool code in ui.draggable.js
That's a pretty amazing if statement from the jquery ui package!
// Yes, I know, this is insane ;) if(!((l-d < x1 && x1 < r+d && t-d < y1 && y1 < b+d) || (l-d < x1 && x1 < r+d && t-d < y2 && y2 < b+d) || (l-d < x2 && x2 < r+d && t-d < y1 && y1 < b+d) || (l-d < x2 && x2 < r+d && t-d < y2 && y2 < b+d))) {….}
Twelve-bar blues
C C C C or C7 C7 C7 C7 F F C C or F7 F7 C7 C7 G G C C or G7 G7 C7 C7
Ya know what they do?
If you've been using css you probably know this one and were told not to use it because if iE. .class > .class { }
Any idea about those two?
.class + .class { } .class ~ .class { }
Or this one?
input[type="radio"]:checked + .item ~ .item { }
Ok I don't have much time but here goes.
+ selects the next following node ~ selects all following nodes Imagine you have a list of p tags in your html document. <p>1</p> <p>2</p> <p>3</p> <p id="x">4</p> <p>5</p> <p>6</p> <p>7</p>
p { background: red; } - will select all p tags in the page #x + p { background: red; } - will select the 5th #x ~ p { background: red; } - will select the 5th / 6th & 7th
I think only supported by Chome and I reckon webkit browsers, haven't checked but chrome works alright. So if you're doing ipad dev i think you'll be fine
rvm requirements run
seems like a magic command to sort out all your osx ruby problems. https://rvm.io/packages/zlib/
reindex images in paperclip example
rake paperclip:refresh:thumbnails CLASS=Item RAILS_ENV="production"
Periodically clear all logs
People are against it and the internet tells me I should use logrotate ~~~~ But I'm not too keen on digging into log archives so I decided i'm going to use this crontab script to clear the logs on my server on the first day of every month at midnight.
00 00 1 * * for logs in `find . -type f -name "access.log"`; do > $logs; done 00 00 1 * * for logs in `find ./srv -type f -name "error.log"`; do > $logs; done
Sorted
Sorting out MySql
I've never stopped using the root user for mysql on my server, so i felt it was time to create a new user and start using this one instead of root. Also i wanted to update the mysql root password with a better password.
# Log into the server then # Log into mysql
mysql -u root -p
## Create a new user
mysql> CREATE USER 'newuser'@'%' IDENTIFIED BY 'password';
## Grant everything to the new guy
mysql> GRANT ALL PRIVILEGES ON *.* TO 'newuser'@'%' WITH GRANT OPTION;
## Check if the user was created via
mysql> select User from mysql.user;
## Exit out of mysql and if you want to change the root password you can do so using this command
mysqladmin -u root -p'oldpassword' password newpass
gotcha
SimpleHTTPServer
Artur says:
$ cd /home/somedir $ python -m SimpleHTTPServer then just 127.0.0.1:8000 et voila
css3 starts with selectors ...
These new css3 selectors are as follows: [att^=val] – the “begins with” selector [att$=val] – the “ends with” selector [att*=val] – the “contains” selector
_gaq"==a.i?Z:M.u(a.i)
Been digging in Google codes, not sure why, suppose it's a little cloudy in here ~~~ Was trying to look for the first instance of _gaq array, well that's it.
Not sure if their code is either only readable only in the language of cat, purposely obfuscated using a=b;b=a[c];] thus causing severe brain exhaustion, or just simply miles ahead of my pea brain's main core accelerator.
My guess is the latter.
http://google-analytics.com/ga.js