Category: Geek Stuffs

All things related with Computer and IT

Learning LLVM: Compiling LLVM

LLVM is a set of compiler toolchains which supports various programming languages and various target machines. Its popularity is currently rising, where according to JetBrains, around 26% of C++ developers are using it to compile C++. Although it is still far to reach the ubiquity of GCC toolchain, it is being adopted across industries and it has a very fast moving development since many of the developers are sponsored by...

VPS Experience (Part 2): Configuring Fedora for VPS

Since I rented my current VPS web last year, I had been using CentOS 7.4 for its operating system. It is derived from Red Hat Enterprise Linux (RHEL) project which offers similar stability to an enterprise-grade server. Unfortunately, a few days ago I discovered that some packages in CentOS were really outdated, even on the latest version (7.6). Those packages are related to software development, such as GCC, Clang toolchains,...

Migrating Server (Again)

Apparently, I didn’t realize an email two weeks ago that my previous VPS hosting, WebSound decided to kick all its customer as they are shutting down the VPS business. I finally noticed that they sent me an e-mail 2 days ago about this issue. They said that they are going to shut down all VPS on March 10! They only give 2 weeks notice period of their cancellation and they...

Inspiring Chats with Bjarne Stroustrup

I was invited for students dinner at Cppcon. Technically speaking I am currently a student, so despite I’m older than many other students, I can join them for free pizza 😛 But my luck was not about the pizza. I got my chance to meet and talk with Bjarne Stroustrup, the father of C++ language! It was all began when all students joining the dinner had to meet up in...

VPS Experience (Part 1): Moving to VPS to Host Personal Blogs

So I decided to move my blog from shared hosting so VPS hosting. VPS is getting cheaper everyday with as low as $2 per day makes it a good bargain to host blog in VPS. With VPS, we can choose which software we want to install, and configure it in our own taste. But definitely, choosing VPS is not for everyone. It is more suitable for advanced user as configuring...

Lesson learned: Do Not Store rvalue Reference Outlive its Declaration

I am building a custom operator overloading structures in C++, and was really seduced with what rvalue promises: the lifetime of rvalue reference is bound to the expression of its context. Rvalue references can be used to extend the lifetimes of temporary objects (cppreference.com) I was building a combination of operators which accepts a lot of literals and temporary objects including lambda. So for instance: auto res = ObjectA() *...

Tizen Studio on Other Than Ubuntu

It’s pain in the ass. Really. If you can stick to Ubuntu or its derivatives, please do that. I kinda hate how Tizen Studio is developed to only support Ubuntu out-of-the-box. A software should not dictate what Linux distro it should be installed on. Distro is just like a religion for some people, and some people are like me, who doesn’t like Ubuntu and its bloatware. Personally I use OpenSUSE...

Weird std::thread bug on GCC 4.9 on ARM target

I have been dealing with Tizen development since about last year, and since then I have been learning of utilizing C++11 features on my codes. Currently I am developing a some kind of component to help performing message pump in threading, so you can dispatch a function to a queue to be performed in separate thread. It is a simple components actually. You can take a look at GitHub. DispatchQueue...

GPS Library for Windows 10 IoT and Raspberry Pi

I am tinkering with Raspberry Pi 3 (RasPi) and Windows 10 IoT Core. I was thinking how to build an IoT device with GPS functionality in RasPi. Many IoT projects employ GPS module but they use it mostly with Arduino to build quadcopter. Some people tried it with RasPi, but they use it in Raspbian OS. No one seems tried to build directly with RPi and Windows. So, I made...

(Almost) Seamlessly Integrate Android Layout XML to Code Behind Reference

It’s been a while since my last post. With this post, I would like to share a little bit of my toolkit which I use extensively on my Android project. 🙂 Overview So basically, when you are developing apps for Android, you use Android XML file to define the User Interface (UI) layout structure, then you code using Java for the implementation. Basically they resembles the .NET WPF/Silverlight’s XAML development,...