Tag Archives: Programming

Accessing private data members directly outside from its class in C++

Private members in C++ cannot be accessed from outside the class directly. In this post I will tell an interesting fact, that in C++ however there are means with which you can access/modify the values of the private members of … Continue reading

Posted in C Language, Computer Science | Tagged , , | 1 Comment

Bash Script: Reading ID3v1 Tags

mp3 files contain track name, artist name, etc meta data about the music file itself. The meta data format used in mp3 files are called the ID3 tags. There are different versions of ID3 tags available. The objective is to … Continue reading

Posted in Computer Science, Linux / Unix Shell | Tagged , , , | Leave a comment

Bash Script: Find occurrence count of a string in a file

A file is given, and a string is given. The number of time the string occurs in the file, and the line number in which the string occurs in the file needs to be found out and printed.

Posted in Computer Science, Linux / Unix Shell | Tagged , , | Leave a comment

Reviewing the GNUSim8085 (v1.3.7)

This article reviews the GNUSim8085 (v1.3.7) a graphical simulator, assembler and debugger for the Intel 8085 microprocessor. The Intel 8085 is an 8-bit microprocessor that was launched by Intel in 1977 and hence is something that we have never seen … Continue reading

Posted in GNU+Linux+FOSS, Reviews | Tagged , | 3 Comments

Input Strings with Blankspaces

In CLI programs getting input from the standard input is very important. Often we need to input strings from the user. Strings are delimited by newline, blankspace character and other characters as per the user interpretation. I am discussing on … Continue reading

Posted in C Language, Computer Science | Tagged , | 1 Comment

Allocating multidimentional array at runtime in C

Arrays in C language are static in nature, and cannot be resized at runtime. The effect of runtime allocation of an array could be achieved by hierarchically allocating blocks of memory at runtime. Below we discuss the mechanism to allocate … Continue reading

Posted in C Language, Coding Discussions, Computer Science | Tagged , | 2 Comments

C Language Constructors and Destructors with GCC

Constructors and Destructors are special functions. These are one of the features provided by an Object Oriented Programming language. Constructors and Destructors are defined inside an object class. When an object is instantiated, ie. defined of or dynamically allocated of … Continue reading

Posted in C Language, Computer Science | Tagged , , | 5 Comments

Bash Script: Counting lines, words, characters

Objective The objective is to write a shell script to mimic the functions of the wc command. This shell script would be made with bash built-ins and standard coreutils commands, and is made as accurate as possible to mimic wc.

Posted in Computer Science, Linux / Unix Shell | Tagged , , | 5 Comments

Bash Script : Bitwise Not Operation in bash

This is a post to present one method to inverse the bit pattern of an input number, the bitwise not operation on a bit pattern. I am presenting one method which i figured out.

Posted in Computer Science, Linux / Unix Shell | Tagged , , | Leave a comment

Simpson’s 1/3rd Rule

A brief introduction to the Simpson’s 1/3rd rule and a uniform interval Composite Simpson’s 1/3rd Rule implementation.

Posted in Coding Discussions, Computer Science | Tagged , , | 1 Comment