Category: Apps/Tools

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

A Front-end design workflow (Jul 2016)

It’s been quite a while since I started coding HTML+CSS designs from PSD/Ai/Sketch files. I started using plain CSS files, then Less, started using the awesome CodeKit, then Bash scripts, then Sass, tried Bourbon, tried Neat, learnt Gulp, npm, etc. I wanted to share what works for me today. I mean, CodeKit still works great and I love it, just like Less or plain old CSS. But this config is what really helps me be more productive. Sass The first thing that works great for me is Sass. I certainly don’t use -know even- know half of its features, but just being able to import, use […]

Read entry

Sync local and remote WordPress database

This is just a big heads-up to every WordPress developer out there, just to let them know that syncing a development/staging database doesn’t have to be a nightmare. There’s this plugin called WP Sync DB which works like magic. As a reader also suggests, WP Sync DB also has plugins that build upon the main funcionality. For example, wp-sync-media-files, to sync also, well, media files. But there are more. GitHub Repo: https://github.com/wp-sync-db/wp-sync-db Website: http://wp-sync-db.github.io/ WP Sync DB GH Page (repo and more plugins): https://github.com/wp-sync-db

Read entry

Instadownload: Download photos from Instagram web

Update 2019: This no longer works due to Instagram constantly updating it’s generated HTML. There are plenty of alternatives to do this so I probably won’t update this. Update 02/08/2016: Updated the code to work with the latest version of Instagram. Remember, only works on photo detail page, like this. Does this look familiar? If you right-click on any Instagram photo from their web app you get this context menu, and you can’t “Save Image As…”. Frustrating, right? Instadownload solves that problem by creating a dynamic download button on the photo detail pages of the Instagram web app. It is useful for […]

Read entry

Build a simple website with Silex

I love static* websites. They’re usually faster to develop, smaller, require no database or backend and are faster to load. Of course they require more work to maintain and tweak at first, but if you’re a developer, these things should be pretty entertaining or at the very least, straightforward. There are many options out there for building static websites; both free, like Anchor, Sculpin and Stacey; and paid, like Kirby and Statamic, among many others, like Silex. This is a good moment to tell you that I’m aware of the difference of static websites vs flat-file CMSs vs micro-frameworks. While I love the infinite possibilities of full-fledged CMSs and the […]

Read entry