Hello! Welcome to my blog. I am Saisyam. Here on this blog you will be able to find my work as well as everything I like.

Cross Compiling C/C++ for Windows on Linux

Why should I cross compile? I myself asked this question. The context here is, I have to write an encryption program in C which will be used on both Windows and Linux. The program will encrypt a text in Windows and decrypt the same on Linux. My program is pretty small and it can be easily compiled on two machines, one with Windows and one with Linux. But I want to learn how to cross compile for Windows on Linux. Now coming to the question, I got some reasons for cross compiling here. To the large extent that is true but will not applicable in my case. In this post I will explain how to cross compile a simple C program using MingW toolchain for Windows on Linux. I am using Ubuntu here but it is same for other distros as well. In later articles I will show how to cross compile a library and link it as I did for my encryption program

Parsing XML With Namespaces in Python

Parsing XML and XML with namespaces is a day to day job for every developer. I use XML parser to validate auto generated XML files and for comparing XML files. XML parsing is part of my toolset. In this post we will parse XML files with and without namespace. Namespace is an important component in many XML files, for example, RSS feeds, configuration files etc. We use Python 3.7 and lxml module to parse the XML files.

Compiling C/C++ on Linux

Recently I interviewed lot of freshers in to hire for our organization. These days there are few engineers who are really interested to work in C/C++ and that to in Linux environment. Most of them prefer to work in Java or JavaScript. I started my career with C/C++ on Linux and then moved to Visual Studio (C++). I love to work and code in C/C++ which I am doing along with other programming languages like Python, Java, JavaScript etc as my job demands. This post is very basic which will explain how to compile and run a simple C/C++ program on a Linux environment. I am using Ubuntu here but it is common across other distros as well. In extension to this post we will see how to compile a library and link to other programs.

Extract JPG From RAW or NEF File Using Exiftool

If you are using a DSLR, you definitely know about RAW format. In DSLRs we have an option to save the image in JPEG or RAW format or both (with takes more space in the memory card). The advantage of RAW format is, it is uncompressed and stores more details related to the image captured. RAW format help photogtaphers to correct the images using post processing tools, like, Adobe Lightroom, Raw Therapee, Darktable etc. But I am not a professional photographer but a hobbyist. Though I store images in RAW format, thinking that in future I do post processing, I want them to convert it to JPEG and share it in social media platforms like Facebook, Instagram etc and photo blogs like viewbug. I was looking for a command line tool to simply convert my RAW files to JPEG.