Category Archives: Computer Science

All about Computers

wcat : A GNU cat implementation

A home made implementation of the GNU cat command Continue reading

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

What are ID3 Tags all about?

When you play a music file in your favorite music player, or in your portable media player the track name, album, artist, lyrics gets displayed. You can search the songs with artists, album names. Even some of the tracks come with album art too, but there is no image file anywhere. The question generally arises, where does these information come from? The answer is straight forward; this metadata about the audio track is stored inside the audio file itself. The different audio files need different codecs. Different audio format files also have different such metadata systems. For example The Vorbis comments, APE tag, ID3 tags etc.

The most common and popular audio media (although not the best) is the mp3 . Mp3 audio format stores this metadata inside the music file, either at the beginning or at the end or at both locations. The music metadata system used with mp3 is called an ID3 Tag.
We will rip off the ID3 tag and check out what’s inside it in this article. We will discuss about ID3v1.x and ID3v2.x tags.

Continue reading

Posted in Computer Science, GNU+Linux+FOSS, Overview, Tutorials | Tagged , | 3 Comments

An ID3v1 Tag Parsing Library

A small ID3v1 tag parsing library. Continue reading

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

Synchronization Safe Integer

Synchronization safe integers are related to ID3v2 tags. ID3v2 tags has a dynamic structure where the length of the tag is variable and inside the tag, there can stay a lot of frames which again can be of dynamic sizes. … Continue reading

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

Hero’s Method : Evaluating square root of a real number

A floating point number is given. the task is to evaluate the value of its square root. We will discuss how to find the square root of a real number in this post, and also present a C Language code which does this job. The value of the root will be evaluated with the Hero’s method. Continue reading

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

Finding qth real root of a real number

In this post we will see how to find nth roots of a positive real number. We will use the Newton-Raphson method to deduce an iterative formula, and see its convergence. Continue reading

Posted in Computer Science, Others | Tagged | 4 Comments

Counting Rectangles in an n X m Checked Board

We have got a checked board like a chess board, but instead of 8 x 8 it has a dimension of n x m . The task is to count the number of rectangles of all possible dimensions i x j in that checked board. Also the question arises how many squares of all possible dimensions are there. We will solve this problem by establishing formulas by construction. After this we can calculate the the number of rectangles and squares of a Chess Board or any other such checked board. Continue reading

Posted in Computer Science, Others | Tagged , , | 3 Comments

Read multiple arguments in bash script

A shell script is written to achieve a purpose, and it is very helpful is the shell script takes multiple commandline arguments and then operate on each argument, instead of execute the shellscript multiple times. This post will talk about how to make the shell script work with multiple arguments. Continue reading

Posted in Computer Science, Linux / Unix Shell | Tagged , , , , , | 1 Comment

Bash Script : Print lines of a file in reverse order

A bash script to print the lines of a file in reverse order. Continue reading

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

Bash Script : Finding Digital Root of an Integer

A bash script to find the digital root of an integer Continue reading

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