Saturday, 31 March 2012

Solar Powered Air Conditoner




Air conditioners are both cause and solution of global warming, due to rise in temperature in recent years, it becomes necessary for each one of us to have air conditioner. It has become very important part of our life in recent years. The only problem is that it consumes great amount of electricity which results is more global warming.
One of the best solution of above problem is air conditioner which do not use electricity generated by pollution generating fuel, instead use something renewable and unconventional. One of the example for that is Solar Powered Air conditioner which takes its power from solar. Solar air conditioning refers to any air conditioning (cooling) system that uses solar power.

you can get a PDF file from here

"Galois Field Arithmetic Library"




Description


The branch in mathematics known as Galois theory (pronounced as "gal-wah") which is based on abstract algebra was discovered by a young brilliant french mathematician known as Evariste Galois. The branch deals mainly with the analysis and formal description of binary and unary operations upon polynomials comprised of elements within a Galois field that then describe polynomials within the field itself.
The C++ Galois Field Arithmetic Library, implements a specialised version of Galois Fields known as extension fields or in other words fields of the form GF(2^m) and was developed as a base for programming tasks that involved cryptography and error correcting codes. The library is simple, consise and straight forward, it also uses a series of look-up tables to increase performance of calculations.
The library is broken into three classes, Galois Field, Galois Field Element and Galois Field Polynomial. Operations such as addition, subtraction, multiplication, division, modulus and exponentiation can occur over both field elements and field polynomials and also left and right shifting can occur for field polynomials.
The binary extensions of Galois fields (GF(2^m)) are used extensively in digital logic and circuitry. Galois field polynomials within the branch are seen as mathematical equivalents of Linear Feed-Back Shift Register (LFSR) and operations upon elements are accomplished via bitwise operations such as xor, and, or logic. Applications within the fields of cryptography and error correcting codes use Galois fields extensively in such things as S-Box implementations (bit scramblers), strong random number generators and algebraic codes. Galois theory is used to describe and generalize results seen in these fields, for example the AES algorithm can be represented with just a few lines of mathematics using Galois theory and some other related abstract algebra.


Usage Of Galois Field Arithmetic Library

Initially one must setup a Galois Field before you can begin using operations related to the field. Galois fields are setup by intially defining the size of the field which means how many elements will exist within the field, and also the values those elements will posses. The values that the elements will posses are defined by a polynomial that is known as a primitive polynomial of the Galois field. The field can be setup as follows:
 /*
    p(x) = 1x^8+1x^7+0x^6+0x^5+0x^4+0x^3+1x^2+1x^1+1x^0
           1    1    0    0    0    0    1    1    1
 */
 unsigned int prim_poly[9] = {1,1,1,0,0,0,0,1,1};
 /*
   A Galois Field of type GF(2^8)
 */
 galois::GaloisField gf(8,prim_poly);
Once the field has been set-up one may want to initialize Galois field elements, In order to do this a reference to an already initialized Galois field needs to be passed to the field element and also the field element's initial vector form value within that particular Galois field has to be passed.
galois::GaloisField gf(8,prim_poly);
galois::GaloisFieldElement element1(&gf, 1);
galois::GaloisFieldElement element2(&gf, 2);
Initialization of Galois field polynomials requires a reference to a Galois field and also a degree of the polynomial and an array to coefficients of each term within the polynomial, the following will produce a polynomial in the form of p(x) = 10x^9 + 9x^8 + 8x^7 + 7x^6 + 6x^5 + 5x^4 + 4x^3 + 3x^2 + 2x^1 + 1x^0
galois::GaloisField gf(8,prim_poly);
galois::GaloisFieldElement gfe[10] = {
                                       galois::GaloisFieldElement(&gf, 1),
                                       galois::GaloisFieldElement(&gf, 2),
                                       galois::GaloisFieldElement(&gf, 3),
                                       galois::GaloisFieldElement(&gf, 4),
                                       galois::GaloisFieldElement(&gf, 5),
                                       galois::GaloisFieldElement(&gf, 6),
                                       galois::GaloisFieldElement(&gf, 7),
                                       galois::GaloisFieldElement(&gf, 8),
                                       galois::GaloisFieldElement(&gf, 9),
                                       galois::GaloisFieldElement(&gf,10)
                                     };
galois::GaloisFieldPolynomial polynomial(&gf,9,gfe);
Performing operations on Galois field elements are as follows:
galois::GaloisField gf(8,prim_poly);
galois::GaloisFieldElement element1(&gf, 1);
galois::GaloisFieldElement element2(&gf, 2);
galois::GaloisFieldElement element3;

element3 = element1 + element2; // addition
element3 = element1 - element2; // subtraction
element3 = element1 * element2; // multiplication
element3 = element1 / element2; // division
element3 = element1 ^ element2; // exponentiation
Performing operations on Galois field polynomials are as follows:
galois::GaloisField gf(8,prim_poly);

galois::GaloisFieldElement gfe1[10] = {
                                       galois::GaloisFieldElement(&gf, 1),
                                       galois::GaloisFieldElement(&gf, 2),
                                       galois::GaloisFieldElement(&gf, 3),
                                       galois::GaloisFieldElement(&gf, 4),
                                       galois::GaloisFieldElement(&gf, 5),
                                       galois::GaloisFieldElement(&gf, 6),
                                       galois::GaloisFieldElement(&gf, 7),
                                       galois::GaloisFieldElement(&gf, 8),
                                       galois::GaloisFieldElement(&gf, 9),
                                       galois::GaloisFieldElement(&gf,10)
                                      };

galois::GaloisFieldElement gfe2[10] = {
                                       galois::GaloisFieldElement(&gf,10),
                                       galois::GaloisFieldElement(&gf, 9),
                                       galois::GaloisFieldElement(&gf, 8),
                                       galois::GaloisFieldElement(&gf, 7),
                                       galois::GaloisFieldElement(&gf, 6),
                                       galois::GaloisFieldElement(&gf, 5),
                                       galois::GaloisFieldElement(&gf, 4),
                                       galois::GaloisFieldElement(&gf, 3),
                                       galois::GaloisFieldElement(&gf, 2),
                                       galois::GaloisFieldElement(&gf, 1)
                                      };

galois::GaloisFieldPolynomial poly1(&gf, 9,gfe1);
galois::GaloisFieldPolynomial poly2(&gf, 9,gfe2);
galois::GaloisFieldPolynomial poly3;
poly3 = poly1 + poly2;    // addition
poly3 = poly1 - poly2;    // subtraction
poly3 = poly1 * poly2;    // multiplication
poly3 = poly1 / poly2;    // division
poly3 = poly1 % poly2;    // modulus or remainder
poly3 = poly1 ^ 3;        // exponentiation
poly3 = poly1 % 1;        // poly1 mod (1x^1 + 0x^0)
poly3 = poly1 % 2;        // poly1 mod (1x^2 + 0x^0)
poly3 = poly1 % n;        // poly1 mod (1x^n + 0x^0)
poly1 <<= 1;              // Shift left or multiply polynomial by 1x^1 + 0x^0
poly2 >>= 1;              // Shift right or divide polynomial by 1x^1 + 0x^0
poly3 = poly1 << 2;
poly3 = poly2 >> 3;
poly3 = gcd(poly1,poly2); // Greatest common divisor
A practical example of the C++ Galois Field Arithmetic library being used as part of a reed-solomon error correcting code encoder:
GaloisField*          gf;           // reed-solomon defined Galois field
GaloisFieldPolynomial generator;    // generator polynomial for reed-solomon
unsigned int          code_length;  // data + fec length
unsigned int          fec_length;   // number of fec symbols
unsigned int          data_length;  // data length
std::string           data          // data to be encoded
std::string           fec = string(fec_length,0x0);
GaloisFieldPolynomial message(gf,code_length);
for(unsigned int i = fec_length; i < code_length; i++)
{
   message[i] = data[code_length - i - 1];
}
GaloisFieldPolynomial parities = message % generator;
for(unsigned int i = 0; i < fec_length; i++)
{
   fec[i] = parities[fec_length - i - 1].poly();
}

Amazing facts



  1. A snail can sleep for three years.
  2. Babies are born without kneecaps. They don't appear until the child reaches 2 to 6 years of age.
  3. Cats have over one hundred vocal sounds. Dogs only have about 10.
  4. February 1865 is the only month in recorded history not to have a full moon.
  5. If the population of China walked past you in single file, the line would never end because of the rate of reproduction.
  6. Leonardo DiVinci invented the scissors.
  7. Our eyes are always the same size from birth, but our nose and ears never stop growing.
  8. Shakespeare invented the word 'assassination' and 'bump'.
  9. The cruise liner, QE2, moves only six inches for each gallon of diesel that it burns.
  10. TYPEWRITER is the longest word that can be made using the letters only on one row of the keyboard.
  11. Women blink nearly twice as much as men.
  12. Your stomach has to produce a new layer of mucus every two week otherwise it will digest itself.
  13. There are two words in the English language that have all five vowels in order: "abstemious" and "facetious."
  14. There is a word in the English language with only one vowel, which occurs five times: "indivisibility."
  15. The Bible does not say there were three wise men; it only says there were three gifts.
  16. Did you know that crocodiles never outgrow the pool in which they live?
  17. That means that if you put a baby croc in an aquarium, it would be little for the rest of its life.
  18. The only 15-letter word that can be spelled without repeating a letter is "uncopyrightable"
  19. Thirty-five percent of the people who use personal ads for dating are already married.
  20. A snail can sleep for three years.
  21. Babies are born without kneecaps. They don't appear until the child reaches 2 to 6 years of age.
  22. Cats have over one hundred vocal sounds. Dogs only have about 10.
  23. February 1865 is the only month in recorded history not to have a full moon.
  24. If the population of China walked past you in single file, the line would never end because of the rate of reproduction.
  25. Leonardo DiVinci invented the scissors.
  26. Our eyes are always the same size from birth, but our nose and ears never stop growing.
  27. Shakespeare invented the word 'assassination' and 'bump'.
  28. The cruise liner, QE2, moves only six inches for each gallon of diesel that it burns.
  29. TYPEWRITER is the longest word that can be made using the letters only on one row of the keyboard.
  30. Women blink nearly twice as much as men.
  31. Your stomach has to produce a new layer of mucus every two week otherwise it will digest itself.
  32. There are two words in the English language that have all five vowels in order: "abstemious" and "facetious."
  33. There is a word in the English language with only one vowel, which occurs five times: "indivisibility."
  34. The Bible does not say there were three wise men; it only says there were three gifts.
  35. Did you know that crocodiles never outgrow the pool in which they live?
  36. That means that if you put a baby croc in an aquarium, it would be little for the rest of its life.
  37. The only 15-letter word that can be spelled without repeating a letter is "uncopyrightable"
  38. Thirty-five percent of the people who use personal ads for dating are already married.



12 Funny Facts About Fart



1. If you fart consistently for 6 years and 9 months, enough gas is produced to create the energy of an atomic bomb.
2. Farts are flammable.
3. Although they won't admit it, women fart as much as men.
4. Farts have been clocked at a speed of 10 feet per second.
5. The word "fart" comes from the Old English "feortan" (meaning "to break wind").
6. Termites are the largest producers of farts.
7. SCUBA divers cannot pass gas at depths of 33 feet or below.

8. The temperature of a fart at time of creation is 98.6 degrees Fahrenheit.
9. A person produces about half a liter of farts a day.
10. On the average a fart is composed of about 59% nitrogen, 21% hydrogen, 9% carbon dioxide, 7% methane, and 4% oxygen. Less than 1% is what makes them stink.
11. Farts are created mostly by E. coli.
12. Excess gas in the intestinal is medically termed "flatulence."

Download free AVG Anti-Virus Free Edition 2012

AVG antivirus 2012 comes with firewall to block attempts to sabotage your system and identity protection to keep you passwords and credit card numbers save. Recommended if you bank and/or shop online.


Friday, 30 March 2012

Tu Hi Mera (Jannat 2) - Video Song

HPCL-Mittal starts Bathinda refinery


NRI steel tycoon L N Mittal has finally become a player in his home country's oil sector. His joint venture with state-run Hindustan Petroleum started full operation of its first refinery at Bathinda, Punjab, on Thursday. The refinery has a capacity of processing nine million tonne of crude a year (180,000 barrels per day) and built by HPCL-Mittal Energy Ltd. Mittal has invested in the venture through Mittal Energy Investment Pte Ltd, Singapore. The starting of the refinery's operations comes after Mittal's earlier two attempts to carve out a space in the Indian oil industry failed. His venture with HPCL for a petrochem hub at Vizag failed to go beyond preliminary study. His oil shipping venture with state-run explorer ONGC never took off, while another tie-up with ONGC for acquisition of overseas acquisitions fizzled out, while trying to access fields in Kazakhstan. For HPCL, the refinery is expected to improve the availability of green fuels in the northern region. It would also give the refinery an advantage in exporting to Pakistan when Islamabad opens its gates - if at all. The refinery's proximity to Pakistan will allow HPCL-Mittal to export fuels through pipeline and offer more discounts that its rivals. The refinery is adding to India's oil refining capacity, which is to rise by 15% to 214 million tonnes a year by the end of current fiscal.