sizeof(cat) logo

Browse around the articles and you'll have a pretty good idea of what this is about. I write about various programming languages, my projects, OSdev and privacy. Sometimes I do security audits.

Developer. Hacker. Security enthusiast. Privacy-oriented. Gamer. Catalan.

Feel free to contact me at sizeofcat AT riseup DOT net. I might answer. Probably.

My GPG key: 0x07D947C6F1F79F53

Recent Posts

    Javascript fun

    Thu, Feb 16, 2017

    Javascript is a fun language that allows you to write crazy AND valid code.

    Keep in mind that adding [] converts the expression to a String, for example:

    NetBeans SQLiteJDBC 5.0

    Tue, Feb 7, 2017

    In a few days my NetBeans SQLiteJDBC plugin will celebrate a whopping 8 years since its initial release (February 15, 2009). During this time I’ve learned a lot about both NetBeans and SQLite (and its JDBC drivers), what started as a simple NetBeans plugin to manage connections to a SQLite database (initially using the JDBC driver provided by Zentus, now using the Xerial’s driver) is still maintained (and used) after 8 years with over 60k downloads (in top 20 downloads).

    Qubit OS and bootloaders

    Sun, Jan 22, 2017

    When the computer is powered up, after the initial hardware scan and gathering, the BIOS then checks which device contains the boot information. This could be a floppy disk, CD-ROM, or typically, the primary hard drive. The first sector (bootsector) is read. The small program in this area reads a partition table that is kept at the end of the sector. This table has all of the hard drives, their partitions, and their purpose, listed. The one it looks for, specifically, is the one designated as the boot partition. Then, this little program turns over control to another program, called the bootloader, loading it from that boot partition and subsequently running it.

    Convert private key to PEM

    Tue, Jan 10, 2017

    Converting private keys to PEM format is very easy with the command below, make sure you replace PRIVATE_KEY_FILE with the name of the key file you want to convert.

    Operating System basics

    Mon, Oct 10, 2016

    The Operating System (OS) is the software that pulls together all of the hardware components, processors, disks, memory, etc., into a cohesive interface for all users and programs to use. The kernel is the name for the core of the operating system: the program that handles all the software-components controlling the hardware.

    Things that the kernel implements are considered to be in kernel space. Everything else, outside of the kernel, is considered user space , and is where software that uses the kernel’s interface runs (managing files, graphical interface, games, word processing, etc).

    Security audit - ithub.gov.ro

    Mon, Aug 15, 2016

    GovITHub is the government program that proposes to create the community of those that believe in a digital future for Romania, by changing public services with the help of technology.

    Few days ago I decided to do a security audit for ithub.gov.ro since they are dealing with personal data and you can never be extra careful about your privacy. Below are the issues I have encountered while auditing the website.

    Why is it so hard to write code?

    Tue, Jul 5, 2016

    Master things that don’t change, like the underlying technologies have been around for 20 years. When you understand the core principles, you can learn anything. - Chris Lee

    It seems nowadays, beginner programmers and developers are enjoying reading books, watching tutorials and going to conferences without even writing a single line of code. Hell, I’ve seen conferences where people gather to listen to some dude explaining how to build software when he hasn’t written a single line of code. Why is it so hard today to just fire up a text editor and write a “hello world” utility/program? Or, in the age of the feature-full web browsers, to just drop to the browser console and test your Javascript skills?

    CP/M development setup

    Tue, Jun 28, 2016

    In 1974, Dr. Gary A. Kildall, while working for Intel Corporation, created CP/M as the first operating system for the new microprocessor. By 1977, CP/M had become the most popular operating system (OS) in the fledgling microcomputer (PC) industry. The largest Digital Research licensee of CP/M was a small company which had started life as Traf-0-Data, and is now known as Microsoft. In 1981, Microsoft paid Seattle Software Works for an unauthorized clone of CP/M, and Microsoft licensed this clone to IBM which marketed it as PC-DOS on the first IBM PC in 1981, and Microsoft marketed it to all other PC OEMs as MS-DOS. - Digital Research archives

    My coding style

    Mon, Jun 13, 2016

    All code in this project is subject to the following style guide. Anything outside of this is not required to follow but it is recommended for new code written specifically for this project to follow it. The most important thing is to have code consistency formatted within a particular project, subsystem or module.

    Indents and Control Statements

    For all source files, the soft and hard tab widths are set at 4 spaces; if possible, use tabs instead of spaces for alignment of code blocks.

    Why Public Domain

    Fri, Jun 3, 2016

    A friend of mine asked me today why I release my work as public domain, it seems lawyers (and not just them) especially dislike this way of waiving your rights on the code. While I acknowledge there might be problems in some jurisdictions, the main idea is this:

    Releasing your work as public domain is not merely a practical way of giving the code to people, but also a political statement against the idea of software ownership. Not everything has to belong to someone.