Recently, I had to resize about 1000’s of JPG pictures that were given to me which were HUGE in size about 10MB each pic to be converted/resized for the web. I realized that I had to use my Terminal Hackery to solve this issue. I quickly installed “imagemagick”, which can be installed in OSX by […]
Coding
Creating a new WordPress installation in Digital Ocean
First things first, we go the the domain access admin panel, and then click on the manage dns, and then once the manage DNS has been clicked, add custom nameservers. In the custom nameservers, we will add the following : ns1.digitalocean.comns2.digitalocean.comns3.digitalocean.com Once this process is done, go to the digital ocean control panel and then […]
Some quick MySQL commands for database creation ( For WordPress & Rails )
Some systems like Ubuntu, mysql is using by default the UNIX auth_socket plugin. Basically means that: db_users using it, will be “auth” by the system user credentias. You can see if your root user is set up like this by doing the following: As you can see in the query, the root user is using the auth_socket plugin There are 2 ways to solve this: […]
Generating a QR code and overlaying it in another image file in Rails
So recently I was given the task of creating a Ticketing system for a music festival and I had to create a system in which I would be able to generate a list of tickets ( which is basically a predesigned JPG image with an area which has been left out for the QR code […]
Setting up react-native-maps on both iOS and Android.
React-native-maps is supposed to be easy to install? I recently tried to install the react-native-maps by AirBnb, however, try as I might, I kept on running into issues. Finally, after spending a bit of time exploring and finding out, I figured out the the way for Android and iOS. For iOS: Please follow this guide: […]