kinopyo avatar

kinopyo

Indoor enthusiast, web developer, and former hardcore RTS gamer. #parenting

Recent Posts

Migrate from chromedriver-helper to Webdrivers

chromedriver-helper is out of support as of 2019-03-31. Webdrivers is recommended as the replacement. It's also included in the Rails 6 Gemfile. Time for the switch! ️ Install Webdrivers gem bundle install and it's (almost) done! There is no...

Date
Read more

How to *Disable* Chrome 73 Dark Mode

Chrome 73 comes with the support of Mac Dark Mode - if you've set your Mac OS run on the dark mode, Chrome will get that automatically. That also means you can't turn it off, not from Chrome's setting page. Here is the magic script to revert that...

Date
Read more

bootstrap.native: How to Use Toast Component

In my previous post, I covered how to use bootstrap.native so you can drop the jQuery dependency right now. In this post, I'm gonna share how to use Toast component with bootstrap.native. Toast UI This popular UI component was added in Bootst...

Date
Read more

bootstrap.native - Bootstrap without jQuery

Bootstrap 5 will remove jQuery as a dependency. That's good news ! But if you want to drop the dependency right now, you can accomplish it with bootstrap.native. bootstrap.native is a third-party plugin that perfectly mimics Bootstrap with vanil...

Date
Read more

Sending POST Requests With window.fetch In Rails

TL;DR Be sure to include the CSRF token into the headers, otherwise, you'll run into InvalidAuthenticityToken exception. In old-fashioned Rails apps, CSRF token is handled by rails-ujs transparently so there is no extra work for you. However,...

Date
Read more

What's New In November at Bloggie

Another month goes by. After reached the peak of my nerd life at Blizzcon 2018 and completed one of my bucket list, there are a lot of things to be reflected upon. But first thing first, I'm gonna share some of the updates from Bloggie . Title C...

Date
Read more

Rails: Enable Coffeescript with Webpacker

We can already write JavaScript in ES6 syntax with Webpacker. But if you're in the transition phase to migrate an old Rails app from Sprockets (Asset Pipeline) to Webpacker, you might still want to keep your Coffeescript files in use. The default...

Date
Read more

What's New in October at Bloggie

Hi, this is kinopyo from the Bloggie team . Today I want to reboot our monthly product update series and show you what happened for the last month. Normally this kind of reports would showcase the product behavior changes that bring value to the ...

Date
Read more

Capybara: Trigger Blur Event

I have a feature spec to test the Javascript behavior of the blur event, sadly Capybara's native DSL doesn't seem to support it yet. After quick research, I found two options. Simulate tab away from the element Click the page body My Pick Both ...

Date
Read more

Rails: Render Markdown Views and Partials

Assume you have a markdown contents saved in a partial _about.md and you want to render it in your view. Custom Template Handler First, you would need to register the type/extension of .md and map it into a customized handler - let's call i...

Date
Read more