Tuesday, January 11, 2011

What is the difference between snippets and codes?

A snippet is short, fulfills a particular task well, and doesn't require much extra code beyond the standard library or system dependent code. A snippet is not a complete program -- for that you can submit code to our source code repository, which is a better place for handle larger programs. Ideally, a snippet should be a section of code that you can snip out of a larger program and easily reuse in another program.

To make snippets easy to use, it's best to encapsulate them in a function, class, or, potentially, as a framework for starting a new program.While Codea set of symbols for representing something. For example, mostcomputers use ASCII codes to represent characters.Code is a way of communicating that is not understandable without additional information, how to decipher the code. In computing, code refers to the text used in programming to communicate with machines.

Lossy and Lossless Compression

Lossy CompressionLossless Compression
Lossy compression
•Lossy compression technologies attempt to eliminate redundant or unnecessary information. Most video compression technologies, such as MPEG, use a lossy technique.
•Is a data encoding method which discards (loses) some of the data, in order to achieve its goal, with the result that decompressing the data yields content that is different from the original, though similar enough to be useful in some way. Lossy compression is most commonly used to compress multimedia data (audio, video, still images), especially in applications such as streaming media and internet telephony. Lossy compression formats suffer from generation loss: repeatedly compressing and decompressing the file will cause it to progressively lose quality. This is in contrast with lossless data compression.
Lossless compression
•Is a class of data compression algorithms that allows the exact original data to be reconstructed from the compressed data. The term lossless is in contrast to lossy data compression, which only allows an approximation of the original data to be reconstructed, in exchange for better compression rates.
•Most lossless compression programs do two things in sequence: the first step generates a statistical model for the input data, and the second step uses this model to map input data to bit sequences in such a way that "probable" data will produce shorter output than "improbable" data. Refers to data compression techniques in which no data is lost.

How can social media affect the technology?

Social media takes all of your relationships that otherwise would be separate, and throws them into a single group called "friends." You have no way to separate out all of these people in your profile as you would in real life. This is the fundamental flaw in social networking that has far-reaching impact. This is also why your boss can see pictures of you or your friends dancing on the top of a bar half-naked. Or your mother can read the comments your friend left about finding you passed out in the bushes. Social media are media for social interaction, using highly accessible and scalable publishing techniques. Social media uses web-based technologies to turn communication into interactive dialogues.


People gain information, education, news, etc., by electronic media and print media. Social media are distinct from industrial or traditional media, such as newspapers, television, and film. They are relatively inexpensive and accessible to enable anyone (even private individuals) to publish or access information, compared to industrial media, which generally require significant resources to publish information.

Origin of MP3

Mp3 is used for such files, short for MPEG Audio Layer 3. A computer file format for the compression and storage of digital audio data.
The German company Fraunhofer-Gesellshaft developed MP3 technology and now licenses the patent rights to the audio compression technology - United States Patent 5,579,430 for a "digital encoding process". The inventors named on the MP3 patent are Bernhard Grill, Karl-Heinz Brandenburg, Thomas Sporer, Bernd Kurten, and Ernst Eberlein. In 1987, the prestigious Fraunhofer Institut Integrierte Schaltungen research center (part of Fraunhofer Gesellschaft) began researching high quality, low bit-rate audio coding, a project named EUREKA project EU147, Digital Audio Broadcasting (DAB).

In the early 1990s, Frauenhofer developed the first, however, unsuccessful MP3 player. In 1997, developer Tomislav Uzelac of Advanced Multimedia Products invented the AMP MP3 Playback Engine, the first successful MP3 player. Two university students, Justin Frankel and Dmitry Boldyrev ported AMP to Windows and created Winamp. In 1998, Winamp became a free MP3 music player boosting the success of MP3. No licensing fees are required to use an MP3 player.
Timeline - History of MP3
• 1987 - The Fraunhofer Institut in Germany began research code-named EUREKA project EU147, Digital Audio Broadcasting (DAB).
• January 1988 - Moving Picture Experts Group or MPEG was established as a subcommittee of the International Standards Organization/International Electrotechnical Commission or ISO/IEC.
• April 1989 - Fraunhofer received a German patent for MP3.
• 1992 - Fraunhofer's and Dieter Seitzer’s audio coding algorithm was integrated into MPEG-1.
• 1993 - MPEG-1 standard published.
• 1994 - MPEG-2 developed and published a year later.
• November 26, 1996 - United States patent issued for MP3.
• September 1998 - Fraunhofer started to enforce their patent rights. All developers of MP3 encoders or rippers and decoders/players now have to pay a licensing fee to Fraunhofer.
• February 1999 - A record company called SubPop is the first to distribute music tracks in the MP3 format.
• 1999 - Portable MP3 players appear.

Lossy and Lossless Compression


Lossy compression

·         Lossy compression technologies attempt to eliminate redundant or unnecessary information. Most video compression technologies, such as MPEG, use a lossy technique.
·         Is a data encoding method which discards (loses) some of the data, in order to achieve its goal, with the result that decompressing the data yields content that is different from the original, though similar enough to be useful in some way. Lossy compression is most commonly used to compress multimedia data (audio, video, still images), especially in applications such as streaming media and internet telephony. Lossy compression formats suffer from generation loss: repeatedly compressing and decompressing the file will cause it to progressively lose quality. This is in contrast with lossless data compression.
Lossless compression

·         Is a class of data compression algorithms that allows the exact original data to be reconstructed from the compressed data. The term lossless is in contrast to lossy data compression, which only allows an approximation of the original data to be reconstructed, in exchange for better compression rates.
·         Most lossless compression programs do two things in sequence: the first step generates a statistical model for the input data, and the second step uses this model to map input data to bit sequences in such a way that "probable" data will produce shorter output than "improbable" data. Refers to data compression techniques in which no data is lost.