Category: Tips

Enable Custom Post Order via code in WordPress

Recently I enabled the great Simple Custom Post Order (SCPO) plugin in a bunch of sites. After you activate it you can go into its settings and enable sorting for all posts, custom post types, taxonomies, etc. We had a particular case though. At my current job, we manage a network of nearly 200 WordPress sites. It makes no sense logging to 200 sites’ admin to update their values. In every site, we needed to Upload and activate SCPO. Enable sorting for categories only. First one can be handled by ManageWP or other remote-access tools. The second seemed a bit […]

Read entry

How to fix: MySQL not starting on MAMP (Pro)

I recently had to install MAMP Pro, in order to do some separate work from my Laravel Homestead VM. After a weird Mac crash, MAMP would no longer start the MySQL server. This was the data from the logs: To fix this, go to MAMP, File > Edit Template > MySQL > [version] and add the line highlighted below. # The MySQL server [mysqld] innodb_force_recovery = 1 The restart the server. After this you can comment out that line. Hopefully you will now be able to run the server again.

Read entry

How to open a chromeless Chrome browser window on macOS

This is a great tip to run apps on separate windows or just for taking cool app screenshots, like this: How to open a chromless window Open Terminal app and type: Where [URL] is the desired URL. e.g: If you’re curious about what those flags do, -n “Open a new instance of the application even if one is already running.”, -a “Opens with the specified application” whatever that means. Source: @DasSurma on Twitter

Read entry

Nerdtip #356: hide profile visit data on Linkedin

Today I was bored checking someone’s Linkedin profile page when a friend mentioned that that person was going to know that I visited it. I thought, that’s weird, Linkedin doesn’t tell me who visited my profile. After a while going through settings, I notice theres an option that lets you hide that information. It’s worth mentioning that it works both ways, i.e., you can roam Linkedin “anonymously”, but you can’t see who visited your profile. Here’s the link: http://goo.gl/50LI4t

Read entry

One line browser notepad

I found out this amazing tip the other day that turns a browser tab into a full size editable area. As the author said, many of us live on the browser. So having somewhere to jot down ideas/lists while browsing or programming without leaving “home” is great. I started using this version, but the link below provides various flavours of the same “hack”. So, check it out if this doesn’t cut it for you ;) data:text/html, <title>Quick Notes</title><body contenteditable style=”font-size:2rem;line-height:1.4;max-width:60rem;margin:0 auto;padding:4rem;”> Jus paste this on your browser address bar. Sources One line browser notepad – Coderwall

Read entry