Recently I had to loop through a series of elements in a WordPress template (thanks Timber), which happened to be using Bootstrap. If you ever used Bootstrap, you are familiar with the following markup: View the code on Gist. The problem here is very common. You have to: Loop every 3/4/n items. Insert a separator or… Read more Loop list in batches using Twig (or plain PHP)
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… Read more How to fix: MySQL not starting on MAMP (Pro)
Today I saw a tweet from Das Surma, where it shows how you can open a chromeless Google Chrome browser. Like this: How to Open Terminal app type open -n -a ‘Google Chrome’ –args “–app=[URL]” where [URL] is something like http://google.com Done! If you’re curious about what those flags do, -n “Open a new instance of… Read more Open a chromeless browser
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… Read more Nerdtip #356: hide profile visit data on Linkedin
Recently someone told me this great and simple trick on how to run an HTTP web server with just one command line. This is useful for a million things, but I use it for prototyping and avoid same-origin policy in Chrome.
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… Read more One line browser notepad