An ID3v1 Tag Parsing Library

id3_logo

ID3 tag is an mp3 audio media file tagging system. The ID3 tags are stored in a pre-defined location in the mp3 media file, either in the start or at the end (or both). There are two major versions of the ID3 tags. ID3v1 and ID3v2. The tag store data about the song, like track name, album name, artist name, genre, track no, year, composer, licensing information, lyrics, even multiple images inside the tag. To get more information about ID3 tag please check the official website of ID3 tag: http://www.id3.org/, also check this article What are ID3 Tags all about?

Continue reading to get the library

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. The size of the tag is stored in the ID3v2 tag header is of length 4 bytes long. These 4 bytes are stored in a special format which is called a synchronization safe integer. Also from ID3v2.4 tags also the frame size bytes which are stored in the frame headers, describing the frame’s length, are stored as 4 byte synchronization safe integer.

Continue reading “Synchronization Safe Integer”

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 “Hero’s Method : Evaluating square root of a real number”

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.

The task is to find the real qth root of a real number. Let there be a non-negative real number C, of which the real qth root is to be found. Let the square root of C be x. We represent this with x=\sqrt[q]{C} .

Now:
x=\sqrt[q]{C}
\Rightarrow x^{q}=C
\Rightarrow x^{q}-C=0

So we are now to find the roots of the qth order function f(x)=x^{q}-C

Continue reading “Finding qth real root of a real number”

Counting Rectangles in an n X m Checked Board

We have 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 number of rectangles and squares of a Chess Board or any other such checked board.

Continue reading “Counting Rectangles in an n X m Checked Board”

A Clean Wallpaper with GIMP

a card
gimp_logo

Yesterday was the birthday of a friend of mine. I realised that there was nothing to give her as a birthday gift, which matches my choice. A card is always great , especially if it is fully personalized and customized. So I launched GIMP, and started to think and experiment. I am trying to describe how I made the card/wallpaper with GIMP . I have tried to make it very simple. Yet again I have used the flame effect. I think it is getting monotonic, as a friend pointed out, and I should try something new and different. Please let me know your comments :) .

Continue reading “A Clean Wallpaper with GIMP”

It’s Better To Pretend You Don’t Know Anything About Computers

Yes, it is better to pretend that you don’t know anything about computers. If you want to save yourself from some difficult situation. Oh, I know it would be cool and smart telling people about your skills and demonstrating your skills, but if you have not met me, click on the below link to read the comic, to have what you could end up with:

Link: http://theoatmeal.com/comics/computers
Continue reading “It’s Better To Pretend You Don’t Know Anything About Computers”