Posts

  • Pest Art

    Pest Art

    After delaying this for a really long time, last few weeks I finally pushed myself to rework this long abandoned site. So for those that don’t know – this is a side project of mine – drawing caricatures. The site itself was one of the very first sites I’ve developed – dating back to 2018…

  • HTTPS on localhost

    HTTPS on localhost

    The usage of https is the norm now, and so more and more we’ll need to use HTTPS even for local development. So after some mixed results – this guide solved all my problems:https://web.dev/how-to-use-local-https/https://github.com/FiloSottile/mkcert#installation First we install ssl-tools Then install mkcert: After this – setup mkcert to accept the self signed certificates: Then – for…

  • How to find which program uses hotkey with xdotool

    How to find which program uses hotkey with xdotool

    So, recently I discovered that the “generate” functionality of my IDE (alt+Insert) has been hijacked by another program. Or to be precise – when I press this combination – nothing happens. So after some digging – I landed on this answer in stackexchange, which lead me to the right solution. So – I went ahead…

  • WordPress Logging Helper

    WordPress Logging Helper

    Recently I developed a simple plugin, and to ease debugging – I decided to create a simplistic logging solution. This came in the form of a helper class, that I incorporated in the plugin. I used just a few properties Then the constructor. Then a simple cleanup function (I haven’t thoroughly tested it though) Then…

  • Gutenberg Quiz

    Gutenberg Quiz

    For a customer we needed to have a quiz – multiple questions with multiple answers each. So I developed a Gutenberg block and its JavaScript (clean JS) functionality. The block and its JS can be seen on the link bellow Table of contents. How does it function Structure Gutenberg Block JavaScript Functionality How does it…

  • Gravity Forms custom checkbox element

    Gravity Forms custom checkbox element

    Recently, for a customer project we needed to create a custom checkbox element for Gravity Forms, which lists all entries of a specific custom post type as check boxes. During the development I encountered a weird issue, where this element was not rendering, although when debugging – the GF_FIeld object I created had all the…

  • Simple Masonry

    Simple Masonry

    This sill achieve a simple masonry layout, similar to those of Pinterest. The grid will be three rows in large screen sizes, two rows in medium screen sizes and one row in mobile; In order to achieve this – we will use SASS and a simple JavaScript. The HTML layout is as follows: The CSS…

  • A letter from the dev team

    A letter from the dev team

    I currently work for a marketing agency, and web development is just one of many services it provides. So we (the small dev team) have been struggling with not so optimal communication with the other teams, strange tickets, and other means of frustration, so I decided to attempt to tackle this in a friendly and…

  • Gutenberg Block Deprecation

    Gutenberg Block Deprecation

    A huge source of annoyance is the above message. Usually a simple click is enough to resolve it. Not always. This usually happens when you change the HTML generated by the save function of your custom block. So let’s see how to avoid it. The way to go is to create a deprecation. In order…

  • The Hal Paradox

    The Hal Paradox

    This has probably happened to everyone, not just in IT – when you start working on one thing, find another problem, which leads to another, and in four hours you’re neck deep in shit, trying to resolve something entirely different than the original problem. Well, I call this “The Hal paradox”. The idea behind this…

  • Allow apache access to user’s folders

    Allow apache access to user’s folders

    Usually I prefer using a virtual machine for this type of work, but with the recent projects I work on, it’s better to have apache installed on the machine I work on. So I had a stupid case, when I need to provide apache access to the directory I have my code in. First off…

  • VirtualBox symbolic links

    VirtualBox symbolic links

    Well, turns out having symbolic links on a VirtualBox shared folder is quite the challenge to accomplish. At least in Windows. This might seem harmless at first, but wait till you need make npm install