Photo by Carlos Muza on Unsplash

Redoing calculations, into Rest

Last week, I was almost done with implementing the functions to calculate the averaged standard scores and percentile scores. This was my second attempt on this, and I tried to make use to std::unordered_map to improve the time complexity of the calculation. Just when I have completed it, Dr Shawn took a look at my code and spotted an issue that I have yet to consider before. In my implementation of percentile scores calculation, I heavily relied on making complex Read more…

Spring Cleaning

So basically all I am doing right now is cleaning up the codebase of P3 as much as I can. There were some instances where refactoring is needed, especially for the caching mechanism part. I’ve mentioned it before, but I just want to emphasize how important tests are when it comes to refactoring. If it wasn’t for them, I would probably be too afraid to modify anything and risk breaking things that work at that point, leaving the code be Read more…

Photo by Charles Deluvio 🇵🇭🇨🇦 on Unsplash
Photo by Tim Gouw on Unsplash

Almost Done But Not Yet

Week number 7 in AESTE. Last week I had problem generating a workable QR code image to attach it in the registration slip. After some discussion with Dr Shawn, he told me that the issue might be caused by the color type of the PNG file. Previously, I was using color type palette to produce the QR code PNG image. Dr Shawn then suggested me to use gray scale color type instead because we just need black and white for Read more…

OS needed to run TCPIP stack

Since the only reference I have is an example code of bearSSL that is working in PC environment, in order to sort out the problem I am facing that the bearSSL server does not reply to client hello, I’ll have to look inside the source code of bearSSL. After some study, I found that the handshake (the process of negotiation about how the SSL will be implemented before actual SSL communication begin) is processed in the first call to br_sslio_read or br_sslio_write. Before Read more…

Photo by Tim Gouw on Unsplash

JointJs is Really Interesting!

In this week, I spent my time trying to trigger the simulation on the schematic part as I told you last week. In the beginning, it was confusing. I definitely needed to understand first how the schematic was built. The schematic was built using JointJs as I mentioned before. However, there are many cells that were customized. I went through many demos on JointJs website and had a good understanding of the attributes and features of the library and how Read more…

Getting started with analytics

Last week, I was working on the database section of CAS. It is surely not perfect yet, in terms of class design, but sufficient for me to move on to my next tasks. I spent about one and a half day implementing the classes (CASTSVImporter, AdminImportTSVResource) that will handle the import and string parsing of TSV files exported from CMS database. I then spent some time to write down in detail, all of the analysis and calculations that I intend Read more…

Photo by Carlos Muza on Unsplash
Photo by Tim Gouw on Unsplash

Unproductive Week

Nothing much happened this week since I was busy preparing for my internship report. At the same time making sure that all participants received their registration email for the competition especially for Kuantan and Kuching participants. I received an email that complained about the registration slip looks like strings competition even though they registered for the piano competition. The registration slip is actually still according to the competition that they have registered, piano or string but it just the email Read more…

Relief

This week I implemented the part where P3 is responsible for pulling the latest project files from S3. This is suppose to be done when a project has expired in the cache and is about to be flushed to the user’s storage. Therefore, it is a last minute effort to ensure the project has its latest files before being uploaded back to the cloud storage. Fortunately, it wasn’t too difficult to add this simple change to P3’s caching mechanism. Usually, Read more…

Photo by Fabian Grohs on Unsplash
Photo by Fabian Grohs on Unsplash

Productive Week!

Time flies, I am half way through my 12 weeks internship. I started my week by looking back at my first task which is the email template. After showing Dr Shawn what I have done last week, he told me that I have to modify the code so that there is no hard coding. Besides, he wanted to add some new information in the email content which are the type of competition and venue. Last week, I was struggling to Read more…

HTTP Requests

Do you remember last week when I told you I am going to send fake data so that I can work on the technique of getting the code and schematic to communicate first then go back to the problem of matching the variable names with the right variable type? Well, I was able to send data in JSON form from C++ code to the JavaScript. This is possible to be done using HTTP requests. Let me explain to you a Read more…