Category Archives: Computer Science

All about Computers

Trapezoidal Rule

A brief introduction to the Trapezoidal rule and a uniform interval Composite Trapezoidal Rule implementation.

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

Balanced Parenthesis Check

Objective To check if an entered string containing nested parenthesis are balanced and valid. This write-up presents a function with which a string is checked for balanced parenthesis.

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

GCD of n integers

Greatest Common Divisor Let a and b be integers, not both zero. The largest integer d such that d exactly divides both a and b is called the greatest common divisor of a and b . The GCD of the … Continue reading

Posted in Coding Discussions, Computer Science | Tagged , | Leave a comment

awk to the rescue

Some days back I got a collection of 100 Greatest Piano Works cd collection. The first thing I did was to rip the CD in flac and preserve a lossless copy of the disks. Then I converted those to ogg … Continue reading

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

Sieve of Eratosthenes : A basic implementation

An basic implementation to generate prime numbers by the Sieve of Eratosthenes method. Continue reading

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

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 , | 7 Comments

An ID3v1 Tag Parsing Library

A small ID3v1 tag parsing library. Continue reading

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

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