10/02/2019 11:41 GMT

About three months ago, I decided to quit drinking for good, there is plenty of reasons why I quit, it’s was getting rather expensive it’s about £5 for a pint at the pub and £7 for a pack of four at the shop, overtime those cost just add up especially when you buys other drinks; having hangovers are not fun at all, it’s painful, unpleasant and it’s make me feel lazy, I just hate it.

Also, I like to avoid those unsavoury people, the best way for me to do that, is to avoid drinking and going to the pubs, there are other, often better and fun ways to meet new people. Please don’t get me wrong, I’m not saying that all of those that drink are unsavoury, I just believe that many of them are; I’m just saying how I feel.

How did I feel after quitting? I feel great, not having to worry about wasting money on drinking, hangovers are now a thing of the past and dealing with less of those unsavoury types, I feel a bit more liberated.

I will spend more time contributing to other people projects on github, I already created one pull request (P.R.) so far, I’m pretty sure it’s going to be fun. And of course write more blog post here 😁

The reason I prefer to conform to good practice is because I want to be able to understand the source code that I have written six month ago, if I didn’t conform to good practice in programming than the source code I have written will be difficult to understand in six month time not only for me but other programmers as well, that the main point of conforming to good practice.

Happy New Year to Everyone 🥳

28/11/2018 18:56 GMT

I’m used to working with Windows and Linux, I needed something that is cross compatible with those operating systems, I did some research on embedding asset and pinning them to one file, I had a look at a few existing solutions online, but I just didn’t like any of them, they often rely on using go generators to embed the asset, I honestly thought that approach was very sloppy.

So I decided to build an my own solution and came up with ZipFS, which happens to be based on a classic and proven Zip Archive format , I thought this was simple yet brilliant. How does it work? It’s quite simple, first you create the zip archive with all the asset in, with compression disabled and than append the content of the zip file to the end of the compiled application, which is very easy to do, all you have to do is run the follow Unix command.

$ cat asset.zip >> application

Provided you got zipfs.InitZipFs("asset.zip") in the source code of the application.

All the asset you see on this site, for example favicons, *.css and *.js are served with ZipFS, so if you can see it, you know it’s working. I mean it’s works so well, I decided to stop using Docker containers for my web application, as ZipFS is now doing the isolation and also because Docker has issues with IPv6 at the moment.

I think it’s awesome, that I use some legacy solution to simplify the entire site to one file, therefore making deployment a breeze, oh I mean it’s very quick with SCP, so satisfying and very easy to automate.

Special thanks to Rémy Oudompheng, Mechiel Lukkien and Derek Parker, without them, I couldn’t came up with ZipFS. Of cause it’s not a new idea, it’s been done before, but still awesome!

P.S. Those PHP and Node users think I’m the crazy one!

| |