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)
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)
An improvement over using `jekyll-pdf` or `wkhtmltopdf` (637)
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)
In the early stages, or for a side project, it’s not worth building an entire system in order to track user feedback. Instead, it can be done quite well by capturing the feedbac... (173)
It can be done just by toggling a class and triggering an event in analytics (437)
How to get all the methods in Rails controllers, models and services (155)
A couple of tries at generating more interesting image previews using imagemagick with the mini_magick gem. (2394)
:after and specifically classes can be populated with user-specific content using CSS so that cached elements don't have to be duplicated for minor variations. (725)
This improves readability especially for scopes that are very feature specific (342)
Updated postI strongly suggest you follow the new way instead: Generating PDF from Jekyll using pandoc An improved way of generating ... (284)
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)
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)
A nifty feature in Chrome DevTools I recently discovered is the ability to take a screenshot of a HTML node.For me it’s quite useful for creating Canva-like graphics without hav... (88)
I make use of the rails_amp gem in the affiliate site. It generates AMP from normal views.One of it’s features is automatically converting the image_tag into the AMP compatible ... (254)
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)
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)
ACO is definitely not out of reach of any organization that could benefit from it. But, because it's quite a specialized tool neighboring on academia, the real challenge is knowing that it exists in the first place. (726)
Here are the more technical details of ACO implementation are discussed. The reasoning behind it and the conclusion are in a separate post.ImplementationI started off with an ex... (1795)
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)
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)
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)
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)
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)
Test-driven development and it’s pros and cons have been extensively written about.Most common pros are often said to be having to think or plan your code out before writing, th... (232)
Google has instructions on how to migrate from analytics.js to gtag.js with the steps being straight-forward.While doing this, two things helped me:1. Set up a GAID constantSo, ... (222)