Preserving LVM Cache

While there are a lot of examples that describe how to set up a LVM cache on an SSD for a HDD backed storage, they mostly fail to describe an additional step needed to preserve the cache across a reboot on a Ubuntu system. The culprit is that the drivers needed to enable the LVM cache are not built into the kernel, nor available in the initrd. Therefore, these drivers need to be added to the initrd. Additionally, some cache Read more

Week 16: Testing the Final Pieces of the Go Migration

This week, I added database setup and maintenance to the Go version of Sayembara’s registration service. I also completed practice runs for bulk registrations and these new functions, comparing their results with C++. These runs gave me evidence of what matched and helped me find a problem that the unit tests had not shown. Preparing New Database Settings I ported createTenant, which prepares a new registration database with its initial settings, templates and signing keys. The keys are used to Read more

Week 15: Bulk Orders in Go

This week, I ran the Go and C++ versions side by side on the same test data and opened my first pull request, so my supervisor, Dr. Shawn, can see real proof that Go behaves like C++. I also ported bulk orders, where one order carries a spreadsheet of many participants. Running Both Versions Side by Side With last week’s practice setup, I ran five cases on both versions, each with its own copy of the test database. The cases Read more

Week 14: Porting the Email and Exports to Go

This week, I ported three more jobs of the C++ to Go migration: the confirmation email with each participant’s registration slip, the note that records it on their order, and the CSV exports. I also pushed my work for the first time and built a practice setup, so I can show my supervisor, Dr. Shawn, that Go and C++ give the same results on real test data. Sending the Confirmation Email Dr. Shawn’s Go version already had doEntry, the function Read more

Week 13: Turning Paid Orders into Entries in Go

This week, I finished the first big part of the C++ to Go migration: the step that turns a paid WooCommerce order from the competition website into a competition entry in CouchDB. Every registration passes through this step before its slip and email can be sent, so the Go version must behave exactly like the C++ one. Getting Ready At the start of the week, I committed last week’s fixes, so the Go service can run without risking real data. Read more

Week 12: Making the Go Version Safe to Run

This week, I moved from reading the Go code to changing it. My goal was the first small step of the C++ to Go migration: get the existing Go version of the registration system to build cleanly, and make sure it can’t damage real data when it runs. Getting It to Build The Go version didn’t build from a fresh copy. It was missing go.sum, a file that stores a fingerprint of each outside library the code uses, so Go Read more

Week 12: Improving the Tablet Layout and Final Farewell

Second-to-Last Review This will be my final week as an intern for this company. So, on 13th October, I showcased the improved mobile layout, as well as the replaced images. Dr. Shawn was content with my work, but expressed that the tablet layout still looks improper. He also said that he prefers more real photographs than stock images. So, I noted those down as my tasks for the week before my internship ends. Final Touches I tried to fix the Read more

Week 11: Completing the Mobile Layout

Weekly Review On the 5th of October, I had my weekly review with Dr. Shawn, where I showed him my current progress with the Sayembara website. He was satisfied with the new descriptions I provided for each feature—safe for a few adjustments that I could make if I have the time to do so. However, he assured me that the most important that I need to do to complete the project before my internship ends is to finalize the mobile Read more

Week 11: Starting the Migration from C++ to Go

This week, I started my new main task: migrating the backend of the registration system from C++ to Go (Golang). I’m not familiar with either language, so most of my week went into understanding the existing code and learning the basics of Go. Understanding the Existing System Monday was a light day, as I spent most of it travelling back after the weekend event in Johor Bahru. In the time I had left, I went through the C++ code again. Read more

Week 10: Finalizing the Five Webpages

Weekly Review On 28th September, I showcased the five new webpages to Dr. Shawn to assess them. There were a lot of revisions that needed to be done regarding the descriptions, and how close they were to the edge of the screen, so I noted those down. I also had to add a disclaimer at the bottom of the website that the illustrations used were from Freepik. Time for Editing! I started by editing the descriptions’ margins so that they Read more

Week 10: From Warning to Blocking and Starting a Golang Migration

This week, I built the warning system for shared judge logins and then reworked it into a blocking system based on Dr Shawn’s feedback. After that, I started on my backend project and helped Team Euroasia prepare for and run their event. Building the Warning System I started by implementing the warning system in the admin app. It listens for changes to judges’ marks in real time and flags any mark that the judge app has saved more than once, Read more