I like experimenting. It keeps life interesting. You discover something new and get excited. It advances the world, ushers in a new era of new found knowledge expanding the horizon of human understanding. It does not come without a cost though. Sometimes the cost is too much to bear. You start questioning your life decisions […]
Author Archives: admin
Missing package errors after upgrading Go
Very recently, I upgraded Go from 1.11 to 1.12 and all hell broke lose. I kept getting errors of missing packages in golang.org/x/tools , etc . The solution was to re-install Go. This can be done easily on OSX with
Go – Finding and removing duplicate files on a Mac
My laptop’s hard drive is plagued with the same family pics stored in different folders. So, I wrote a simple app in Go to take care of this for me. The app does this by comparing MD5 hashes of files. Usage Assuming you saved the code in a file called main.go, here is how you […]
Gogland build expired (renamed to Goland)
This confused me for a few minutes so I am writing this for those who have the same issue. Jetbrains renamed Gogland Goland. They also expired Gogland build. So you have to go to their site and download Goland and use that. Remove Gogland completely from your computer
How are paints made for various painting mediums?
Paints are made by adding pigment (color) to something that will help it stick to the surface of a canvas (or anything else it can be painted on). Color Color, also referred to as pigment, is a powder with a specific color. For artist grade and premium grade paints this is ground up metal in […]
Oil vs Acrylic – What’s easier to clean?
Acrylics are much easier to clean than oils (and cheaper). Brushes With acrylics, you can get away with using just water to clean your brushes (depending on how thick you laid your paint). Most of the times, this is true even for impasto techniques. For oils, you have to use turpentine (as oil paints don’t […]
Sunlit Garden
I have been painting landscapes mostly so I wanted to try something different this time. Another reason I wanted to do this painting is to experiment with sunlight (and little details like the gate) change how the viewer feels when he/she looks at the painting. Thankfully, my experiment was successful. Here is the painting: I […]
PHPSpec: Mocking methods of the object being tested
PHPSpec is very opinionated and won’t let you mock anything of an object being tested. It helps you write better code. This, however, causes issues when you are writing specs for legacy code which (usually) was not well designed. There is a way you can get around this limitation – a child class. Let’s say […]
A second look at MariaDB
After my last post on MariaDB, I installed it and played around with it. It really is a project that was forked from MySQL some time ago since MySQL is increasingly becoming closed source. There is another fork of MySQL called Drizzle, which claims that they have made the database faster by removing chunks from […]
Zend Server and Zend Studio9
If you have Zend Server installed and you have an instance of MySQL that didn’t come with Zend Server, then Zend Studio will try to connect to the one that came with Zend Server. I discovered this the hard way when my PHPUnit tests kept failing in Zend Studio but ran perfectly from the command […]