Mon 30 April 2018

Filed under GSoC 2018

Tags android gentoo gsoc

Preface

According to the schedule in the proposal, this week was about getting familiar with Lineage OS building process and installing it on the development device. This blog post summarizes the work I've done and the problems I ran into (and successfully fixed) in the process, and makes a brief …

Read More

Sat 17 March 2018

Filed under C++

Tags c++ language

The story

Consider the following code snippet:

#include <iostream>

class A;

class B { 
    public: 
        B() {} 

        B(A &) { // conversion constructor that takes cv-unqualified A
            std::cout << "called B's conversion constructor" << std::endl; 
        } 
};

class A { 
    public: 
        operator B() const { // conversion operator that takes cv-qualified A
            std::cout << "called A's conversion …
Read More

Tue 13 March 2018

Filed under General

Tags os pgp toys

The story

Thanks to the signing party and Harry Chen being so generous that he gave out one of his spare YubiKey 4's to me, I've got to get my hands on this tiny new device, which really changes the game of secure authentication and encryption. This article mainly serves …

Read More

Mon 05 February 2018

Filed under Gentoo

Tags gentoo lvm sparc

The story

My SPARC Enterprise T5120 came with two 10000 RPM SAS HDDs, both with a labeled capacity of 146GB. Gentoo was installed on the first hard drive, and thanks to the old SILO that was in charge of booting the system up, I have to keep a single-large-root partition …

Read More

Mon 22 January 2018

Filed under Go

Tags golang gentoo sparc

Preface

Gc (Go's most widely-used compiler) isn't available for GOOS=linux && GOARCH=sparc (Gentoo SPARC) for now; what makes matters worse is that Gccgo (sys-devel/gcc[go]) is not working on Gentoo (it hangs in early initialization). Debian Ports comes to the rescue, as although no Gc as well, their …

Read More

Personal details (portrait, CV) © Pengcheng Xu All Rights Reserved; articles licensed under CC BY-SA 4.0.
Powered by Pelican, Bootstrap, and NixOS. Icons by Font Awesome. Generated from 9c526f2.