I will be going over how to prevent hotlinking with Nginx. Hotlinking refers to accessing objects, usually images, through ways aside from the original site. This includes external sites embedding objects and requesting the object on its own…
I found this useful Sublime Text plugin when figuring out how to perform a series of text replacements en masse. Called Reg Replace , it allows me to create commands for whatever Find-and-Replace operations I want. First, I installed it using…
Maintaining a clean git history brings me a lot of joy. That's because sometimes it's extremely difficult to make happen all the time when I'm constantly going back, seeing a small mistake, and need to make a teeny edit. Say I make a commit to update…
It's been a while since I made a TWRP backup of my phone. And I wanted to install GravityBox in order to take advantage of removing Spotify's album art from my phone's lockscreen. I just want my lockscreen wallpaper to stay shown, and not the low…
Monogatari provides a Hide button to allow the player to hide the text box. This allows them to view the graphics and backgrounds without the text box obstructing their view! However, I found it doesn't quite look as clean as it could be. When the…
The last post I wrote focused on the declaration of a ScreenComponent and accessing it through the main menu. Here I will get into the fun part: populating the chapter screen with a list of chapters. Adding a back button Currently, the chapter…
This next Monogatari spotlight is a monster! So this has been split into multiple parts. I'm going to cover making a new ScreenComponent . How did I find about doing that? By checking the lib folder in the source for the right component to create…
In this post, I'll be covering two things: how to override a component's static template, and how to override a method, starring the dialog log. Working with main.js First, where does any of this go? The majority of the time, custom JavaScript code…
Lately I have been playing with Monogatari , a visual novel engine that is for the web and is built around JavaScript. So far, I'm liking it. The documentation is pretty sparse in some areas, but there is a Discord channel that seems pretty active…
It's increasingly important to obtain an HTTPS certificate in order to ensure websites are running as intended in various browsers. So I took in upon myself to set one up for my domain. To get started, I went to Let's Encrypt's Getting Started page…
I needed to clear some disk space and wanted to find out if there are any programs I'm not using that take up substantial space. Thanks to this Unix StackExchange post , I can do this: Essentially, list all installed packages with the size first…
What I wanted to simplify for myself is the following process: write a blog post on Sublime Text on my laptop push it to the repository's master branch push it to the production server Gatsby builds all the static files and deploys it Thanks to…
This blog is now a Gatsby blog! From Hexo, it was a little rough with the different header metadata, but seeing as both use Markdown files to generate posts, it could have been much worse. So far, setting up Gatsby v2 is a smooth process. There's…
After using Lubuntu for a while, I wanted a change. It was time to try a new Linux distro. My criteria: something that is lightweight (still want to run it on the 12 GB SSD) but with just enough power for a friendlier user interface and room for…
While working on a Windows machine, I needed a way to append to filenames for multiple files. This is what worked for me: Open the File Explorer and navigate to the folder where the files to be renamed are. Hold the Shift key and right-click the…
Here's a simpler way of deleting old Linux kernels. Install Byobu : After that, the command to remove all Linux kernels except for the two latest is:
I finally finished my portfolio site ! I used Kube as the main CSS framework and React for the Javascript. On the back end is Meteor as it was easy to set up and get going. The idea is a single page application (SPA) which consists of displaying my…
If I want to take a screenshot on Lubuntu, I can simply press PrtSc on my keyboard and have the file available in my home folder. What I discovered recently is that there's a shortcut to take a screenshot of only the window: Alt + PrtSc . Sadly…
While updating my resume, I wanted to change how my hyperlinks looked all at once (because who wants to manually update each link's font and remove the underline?). Here's a trick I learned to update a document's hyperlink style to save time and…
I have an Anki deck with multiple tags associated with it. I wanted to find a way to make a deck composed of certain tags. Suppose I wanted to study for a test that covers chapters 1 and 2 using a deck called History. The deck has cards that either…
Way back I made a blog entry about the useful tagging functionality in foobar2000 . In it I mentioned the Automatically fill each field tool that fills in the tags of a song using the text saved on the clipboard. So I would copy a list of tracks…
After some trial and error, Wordpress migration was a success. The toughest part was getting the site to run with the new host's nameservers (as the other sites were simply using the same ones as the old host - the domain's nameservers). It only…
On a new VPS, nothing has been set up, so I have to make sure everything is installed and working. For allowing PHP sites to run properly, I needed to have php installed: Next, the domain and subdomain setup must be configured. The way virtual hosts…
I noticed that when I open DeaDBeeF to play some music, some of the tracks that contain Japanese characters were not rendering properly. This concerned me a bit, so I looked up a way to fix it. Turns out a simple font package fixed it: sudo apt-get…
I created a new blog dedicated to FINE 229, so here it is: https://jt-hybridity.blogspot.ca You can check it out and see me delve into the world of digital creation (and realize how vaporwave has changed me ever since that random reddit function).
My domain has been in disarray for some time now. Plans have been made to move to a different VPS, deploy sites from scratch, and basically clear out any obsolete dependencies and malformed permissions. Most of all, I want to try Nginx with nodeJS to…
As I'm getting Lubuntu back to how it was before, I noticed that my volume keyboard shortcuts don't work. The Fn keys definitely do their job, but for toggling mute and adjusting the volume level, nothing happens. I try to remember what I did to fix…
Today I get a notification from Lubuntu informing me that an upgrade is available to 15.10, or Wily Werewolf. I was mildly interested and thought why not, and started the installation. Along the way, somehow I had butchered the upgrade process. Let's…
While I was working on my Linux partition, I saw a software update was pending and gave it the go-ahead. It was then that I realized that I only had a couple hundred megabytes of space left, out of the total 13GB. I use my Lubuntu to do the bulk of…
Adding comments to Hexo is really simple. First, create a site on Disqus: https://disqus.com/admin/create/ . In _config.yaml , add the following anywhere in the file: where SITENAME is the name you gave your site on Disqus. Then: Each post now has…
My past posts sadly have no images, so I took some time to look into how to embed images into Hexo posts. First I set this in my _config.yml file : Then the Markdown way of linking relative image files is this: Since that doesn't work, I checked…
There's something satisfying about typing up Markdown notes on Sublime Text. You could say it's almost sublime . A useful package I use is Markdown Preview , which allows you to preview Markdown files in your browser window. To install it, Ctrl…
So what is a Gist and why should I use one over my GitHub? This occurred to me after I attempted to write a quick FizzBang program in C++. The purpose is to see how I approach a seemingly simple program while trying to follow the various…
There's a reason why I stuck with foobar2000 all these years. It has a clean, minimalistic, no-nonsense GUI that plays your music. It may look dated, but it does the job consistently no matter what I do. It has several installable plugins that help…
Dual-booting Lubuntu with Windows nowadays is really easy. The later versions no longer need to worry about Secure Boot or UEFI to be installed, which made installation on my Thinkpad Yoga a breeze. I used Lubuntu 16.04 LTS on my setup. One thing…
Waterloo uses Eduroam as its central Wi-Fi network. For many devices such as laptops and smartphones, connecting to it is a cinch. There are other devices that unfortunately can't connect to Eduroam due to its encryption: it's WPA2/Enterprise and it…
Recently I got a new laptop to replace my aging Zenbook: the Lenovo ThinkPad Yoga 12". It looks to be the perfect machine for me: the small lightweight frame, a full HD multi-touch screen, and the active pen digitizer from Wacom. This would make it a…
I've had little time to experiment with drawing on the Thinkpad Yoga, so when I had the chance I gave Paint Tool Sai a whirl and see how responsive the Wacom digitizer is. So far, I've been impressed at how accurate the lines are, possibly even more…
I thought I would start trying a blog platform on NodeJS and see how it goes. This is Hexo, which was simple to set up and looks pretty nice to boot. In the future though, I would like to create a custom theme. I haven't worked with Swig templates…