Ognjen Regoje bio photo

Ognjen Regoje
YOU CAN CALL ME OGGY


I make things that run on the web (mostly).
More ABOUT me and my PROJECTS.

Here are the most popular posts.

me@ognjen.io LinkedIn
Check out
The Marketplace Guide
A collection of lessons for the early stages of building a marketplace startup.
https://themarketplace.guide

#technical

November 25, 2021

Ruby String::negative

A way to calculate the "negative" of a string to be able to sort an array of objects in alphabetic order of one field but reverse alphabetic order of another. (372)

August 02, 2021

Technical blogging in the era of Stack Overflow

While Stack Overflow does cover the most commonly encountered issues, particularly for beginners, there is still a lot of value in technical blogging for solutions that are the result of experience. (965)

March 12, 2021

Generate PDF of Jekyll Page

Updated postI strongly suggest you follow the new way instead: Generating PDF from Jekyll using pandoc An improved way of generating ... (284)

March 12, 2021

Flatten Plugin for Jekyll

I wanted to be able to get a list of categories from a group of posts. That’s easy enough to do using the map liquid filter:{{posts | map: 'categories'}}The result is an array o... (214)

March 12, 2021

Compact Plugin for Jekyll (where not nil)

I wanted to generate an index of metadata from posts in Jekyll. The field that I wanted to index wasn’t compulsory, it was an additional one that I sometimes set, and sometimes ... (249)

March 01, 2021

Schedule Jekyll posts using cron and rsync

This is a static site generated using Jekyll. It’s also hosted on one of my servers rather then on Git(Lab/Hub).I deploy it using a rsync to copy the _site directory to the serv... (566)

January 02, 2021

Complete list of ipay88 payment ids

Note that this is not taken from their documentation but from inspecting an iPay88 page that the user is redirected to.GeneralThese are the options that are available from the d... (461)

May 07, 2020

How Supplybunny handled a 10x spike in traffic

The beginning of the MCO was quite stressful but I’m happy about a small victory shown in this screenshot:Supplybunny site was live and taking orders the entire time, handling p... (280)

May 07, 2020

A small victory in the MCO war

The beginning of the MCO was quite stressful but I’m happy about a small victory shown in this screenshot:Supplybunny site was live and taking orders the entire time, handling p... (280)

April 25, 2020

Tools for PWA icons

I keep having to look for these four tools when making PWA icons. Convert SVG to PNGhttps://ezgif.com/svg-to-png/ (set the width to at least 512) Make sure the icon ... (92)

March 21, 2020

Rails pattern: state params

A useful pattern that I didn’t see documented before is what I call “state params”: returning different permitted params based on the state of the record.If there is an order mo... (180)

March 21, 2020

mysql2 - activerecord version compatibility list

In the course of doing upgrades for an older project I’ve discovered that not every activerecord version is compatible with every mysql2 version. The adapters use ~> to lock ... (147)