Tech

Getting started with Svelte

Karan Balkar
Hey everyone! I recently started using Svelte and it's quite amazing. The good part about Svelte is that it is a compiler and has no additional framework dependencies. The only dependencies are the devDependencies, that's it. Hence, the result is a light-weight performant app with a significantly smaller bundle size (thanks to those rollup plugins). Moreover, Svelte ensures that everything happens during the compile or the build time rather than on the browser at runtime.

My Experiments With Annyang!

Karan Balkar
Note: Please allow access to microphone to use speech recognition feature. Hi everyone! Speech recognition has always being one of those features that is always perceived to be good based on it’s acccuracy. There exists a ton of libraries today that offer this functionality in almost any kind of app. I happened to stumble upon Annyang a few weeks back and wanted to try it in an existing PWA (Progressive Web App).

Chaos in the World of Jenkins

Karan Balkar
Hello everyone! Imagine a tool that regularly stop certain build processes in an existing CI/CD pipeline in order to ensure that the underlying infrastructure is indeed fault resilient. Chaos engineering has been in the news for quite some time now and it is important for software engineers to determine the resiliency of the system. We often develop scalable, complex micro-services that connect to multiple systems but seldom do we think about the fact that what if one of the them does not work or is shut down completely.

Using Redux Toolkit for React Applications

Karan Balkar
In one of my previous posts, I mentioned about how can one use the Redux toolkit to reduce some of the boilerplate code generated by a default or standard Redux implementation. For those of you who don’t like things complicated, the Redux toolkit makes a bit simpler. Let’s try to understand the same using our previous example itself. Create new app with Redux toolkit npx create-react-app using-redux-toolkit-react --template redux Installing the redux toolkit dependency # using Yarn package manager yarn add @reduxjs/toolkit Configuring a slice The good part of the Redux toolkit is that it allows to define your actions and reducers at one single place.

Detect and use light and gyroscope sensors in Android

Karan Balkar
Hello everyone! Sensors play a vital role in any electronic device and more importantly help in detecting or measuring a physical property. Nowadays, Android phones come equipped with a range of sensors including light, pressure, temperature, gyroscope, proximity etc. Developers need to build applications using the functionality of these sensors. For that purpose, one needs to learn how to detect and implement the corresponding sensor functionality. Through this post, we will understand how to detect and use the Light and Gyroscope sensors in Android.

Base64 encoding and decoding using Qt 5 framework

Karan Balkar
Hi everyone! In one of my previous posts, we had learnt how to configure and setup Qt for Windows. Base64 is basically a method using which we can encode binary data into a character set in order to transmit the data without any loss or modification of the contents. It is a group of similar binary-to-text encoding schemes that represent binary data in an ASCII string format by translating it into a radix-64 representation.

Sending Http Request Using Qt 5 framework

Karan Balkar
HTTP (Hypertext Transfer Protocol) works as a request-response protocol between a client and server. A web browser may be the client, and an application on a computer that hosts a web site may be the server. For example, a client (browser) submits an HTTP request to the server and then the server returns a response to the client. The response contains status information about the request as well as the requested content.

Getting Started With Qt

Karan Balkar
Hi guys, Qt is a cross-platform application framework used extensively for developing non-GUI programs and consoles for servers. It is written in C++ and works on major platforms including Android, iOS, Windows and more recently Sailfish MeeGo Linux. There exists three versions of Qt available on each of these platforms, namely: GUI Framework – commercial entry level GUI edition, stripped of network and database support (formerly named “Desktop Light”) Full Framework – complete commercial edition Open Source – complete Open Source edition

Parsing JSON using Qt 5 framework

Karan Balkar
Hello friends! In one of my previous posts, we had seen how to send a HTTP request using Qt. The response we got then was a JSON string. JSON is a subset of the object literal notation of JavaScript. It is basically a lightweight data-interchange format making it easy for humans to read and write. A JSON is build on two structures namely, A collection of name/value pairs. In various languages, this is realized as an object, record, struct, dictionary, hash table, keyed list or associative array.

Zipping and unzipping files using Qt 5 framework

Karan Balkar
Hey everyone! Qt provides a QByteArray class that can be used to store raw bytes and traditional 8-bit terminated strings. Moreover, Qt also provides the QString class to store string data. QString is mainly used throughout the Qt API. Through this post, we will learn how to zip and unzip files using Qt. We will create a sample text file containing a message as follows, demo.txt This is a demo to zip and unzip files using Qt framework Pre-requisites: Qt Creator, MinGW compiler for Windows (64 bit)