Let's Make Things Better

WP Delete ALL comments

Delete all pending comments: DELETE from wp_comments WHERE comment_approved = ‘0’ Delete all approved comments: DELETE from wp_comments WHERE comment_approved = ‘1’ Delete all trash comments: DELETE from wp_comments WHERE comment_approved = ‘trash’ Delete all spam comments: DELETE from wp_comments WHERE comment_approved = ‘spam’

How to Hide Quick Access on Google Drive

1. Go to drive.google.com from your desktop browser. 2. Click on Settings Icon from top-right side. Then click Settings. 3. A Settings Pop-up will come up. Look for the Quick Access section that says “Make relevant files handy when you need them.” 4. Uncheck this option. 5. Click Done from top-right corner and refresh your browser to see changes. It should be gone.

Print Size of Fundamental Types

#include <iostream> using namespace std; int main() { cout << “sizeof(char) is ” << sizeof(char) << ” bytes ” << endl; cout << “sizeof(short) is ” << sizeof(short) << ” bytes ” << endl; cout << “sizeof(int) is ” << sizeof(int) << ” bytes ” << endl; cout << “sizeof(long) is ” << sizeof(long) << …

WordPress CSS Examples

.entry-header {     display: none; } .page .entry-title {     display: none; } .page #main .entry-title {     display: none; } .blog .entry-content {     display: none; } .jetpack-portfolio-shortcode .portfolio-entry-content {     display: none; } .pants {   color: green;   text-decoration: underline;   font-weight: bold; } #navigation {   …