16
Aug

Archiving via Yahoo! Shine.

  • Mondays: Best for buying men’s and women’s dress pants. The average sale is about 48 percent off.
  • Mondays: Also great for purchasing sunglasses. The average discount is 55 percent.
  • Tuesdays: Best for buying men’s apparel. The average discount is 42 percent.
  • Wednesdays: Find lowest prices on shoes. The average discount is 38 percent.
  • Wednesdays: Also find best deals on kids’ clothing. The average discount is around 40 percent.
  • Thursdays: Best for buying women’s handbags. The average discount is 36 percent.
  • Fridays: Biggest sales on accessories like jewelry, belts and scarves. The average discount is 42 percent.
  • Saturdays: Best sales on intimates (37 percent off) and jackets/outerwear (51 percent off).
  • Sundays: Buy your swimsuits for an average 52 percent off!

29
Jul

Adding for archival purposes…

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Security.Cryptography;

namespace Classes
{
    public class Hash
    {
        public Hash()
        { }

        #region Hash Choices
        /// <summary>The wanted hash function.</summary>
        public enum HashType : int
        {
            /// <summary>MD5 Hashing</summary>
            MD5,
            /// <summary>SHA1 Hashing</summary>
            SHA1,
            /// <summary>SHA256 Hashing</summary>
            SHA256,
            /// <summary>SHA384 Hashing</summary>
            SHA384,
            /// <summary>SHA512 Hashing</summary>
            SHA512
        } /* HashType */
        #endregion

        #region Public Methods
        /// <summary>Generates the hash of a text.</summary>
        /// <param name="strPlain">The text of which to generate a hash of.</param>
        /// <param name="hshType">The hash function to use.</param>
        /// <returns>The hash as a hexadecimal string.</returns>
        public static string GetHash(string strPlain, HashType hshType)
        {
            string strRet;
            switch (hshType)
            {
                case HashType.MD5:
                    strRet = GetMD5(strPlain);
                    break;
                case HashType.SHA1:
                    strRet = GetSHA1(strPlain);
                    break;
                case HashType.SHA256:
                    strRet = GetSHA256(strPlain);
                    break;
                case HashType.SHA384:
                    strRet = GetSHA384(strPlain);
                    break;
                case HashType.SHA512:
                    strRet = GetSHA512(strPlain);
                    break;
                default:
                    strRet = "Invalid HashType";
                    break;
            }
            return strRet;
        } /* GetHash */

        /// <summary>Checks a text with a hash.</summary>
        /// <param name="strOriginal">The text to compare the hash against.</param>
        /// <param name="strHash">The hash to compare against.</param>
        /// <param name="hshType">The type of hash.</param>
        /// <returns>True if the hash validates, false otherwise.</returns>
        public static bool CheckHash(string strOriginal, string strHash, HashType hshType)
        {
            string strOrigHash = GetHash(strOriginal, hshType);
            return (strOrigHash == strHash);
        } /* CheckHash */
        #endregion

        #region Hashers
        private static string GetMD5(string strPlain)
        {
            UnicodeEncoding UE = new UnicodeEncoding();
            byte[] HashValue, MessageBytes = UE.GetBytes(strPlain);
            MD5 md5 = new MD5CryptoServiceProvider();
            string strHex = "";

            HashValue = md5.ComputeHash(MessageBytes);
            foreach (byte b in HashValue)
            {
                strHex += String.Format("{0:x2}", b);
            }
            return strHex;
        } /* GetMD5 */

        private static string GetSHA1(string strPlain)
        {
            UnicodeEncoding UE = new UnicodeEncoding();
            byte[] HashValue, MessageBytes = UE.GetBytes(strPlain);
            SHA1Managed SHhash = new SHA1Managed();
            string strHex = "";

            HashValue = SHhash.ComputeHash(MessageBytes);
            foreach (byte b in HashValue)
            {
                strHex += String.Format("{0:x2}", b);
            }
            return strHex;
        } /* GetSHA1 */

        private static string GetSHA256(string strPlain)
        {
            UnicodeEncoding UE = new UnicodeEncoding();
            byte[] HashValue, MessageBytes = UE.GetBytes(strPlain);
            SHA256Managed SHhash = new SHA256Managed();
            string strHex = "";

            HashValue = SHhash.ComputeHash(MessageBytes);
            foreach (byte b in HashValue)
            {
                strHex += String.Format("{0:x2}", b);
            }
            return strHex;
        } /* GetSHA256 */

        private static string GetSHA384(string strPlain)
        {
            UnicodeEncoding UE = new UnicodeEncoding();
            byte[] HashValue, MessageBytes = UE.GetBytes(strPlain);
            SHA384Managed SHhash = new SHA384Managed();
            string strHex = "";

            HashValue = SHhash.ComputeHash(MessageBytes);
            foreach (byte b in HashValue)
            {
                strHex += String.Format("{0:x2}", b);
            }
            return strHex;
        } /* GetSHA384 */

        private static string GetSHA512(string strPlain)
        {
            UnicodeEncoding UE = new UnicodeEncoding();
            byte[] HashValue, MessageBytes = UE.GetBytes(strPlain);
            SHA512Managed SHhash = new SHA512Managed();
            string strHex = "";

            HashValue = SHhash.ComputeHash(MessageBytes);
            foreach (byte b in HashValue)
            {
                strHex += String.Format("{0:x2}", b);
            }
            return strHex;
        } /* GetSHA512 */
        #endregion
    }
}

28
Jul
jsSHA - A JavaScript implementation of the complete Secure Hash Standard family
            (SHA-1, SHA-224, SHA-256, SHA-384, and SHA-512) by Brian Turek

About
-------------------------
jsSHA is a javaScript implementation of the complete Secure Hash Algorithm family as defined
by FIPS PUB 180-2 (http://csrc.nist.gov/publications/fips/fips180-2/fips180-2withchangenotice.pdf)

With the slow phasing out of MD5 as the standard hash to use in web applications, a client-side
implementation of the complete Secure Hash Standard family was needed.  Due to SHA-384 and SHA-512's
use of 64-bit values throughout the algorithm, JavaScript can not easily natively support the calculation
of these hashes.  As a result, a bit of hacking had to be done to make sure the values behaved themselves.
SHA-224 was added to the Secure Hash Standard family on 25 February 2004 so it was also included in this
package.

Files
-------------------------
src/sha.js
The complete SHA implementation

src/sha1.js
A smaller/web friendly implementation of only SHA-1.

src/sha256.js
A smaller/web friendly implementation of only SHA-224 and SHA-256.

src/sha512.js
A smaller/web friendly implementation of only SHA-384 and SHA-512.

src/wrapper.js
Wrapper functions to be added to the above script files if the jsSHA 0.1 interface is desired

test/test.html
A test page that calculates various hashes and has their correct values.

Usage
-------------------------
Include the desired JavaScript file (sha.js, sha1.js, sha256.js, or sha512.js) in your header (sha.js used below):
<script type="text/javascript" src="/path/to/sha.js"></script>

Instantiate a new jsSHA object with your string to be hashed as the only parameter.  Then, call getHash with the desired
hash variant (SHA-1, SHA-224, SHA-256, SHA-384, or SHA-512) and output type (HEX or B64).  In the example below,
"This is a Test" and "SHA-512" were used as the string to be hashed and variant respectively.

var shaObj = new jsSHA("This is a Test");
var hash = shaObj.getHash("SHA-512", "HEX");

NOTE: If you are using sha1.js, omit the SHA variant parameter as there is only one option.

Since the interface was changed drastically from 0.1 to 1.0, src/wrapper.js is included in case the old interface is desired.
Simply copy and paste the correct functions from wrapper.js to the bottom of the used jsSHA JS file.

Contact Info
-------------------------
The project's website is located at http://jssha.sourceforge.net/

23
Jul

I received this email from my aunt, title “Food Inc. China.”  Posting it here for archival purposes.

——-

Make sure you read to the very end — very interesting — perhaps the best way to tell where things are made…

China milk poisoning incidents make everyone afraid to look at the daily news report. Everyday, the reports are changing. No one can clearly tell us what to eat and what not to eat.

1.What really is poisoned milk?
It is milk powder mixed with ‘MELAMINE’

What is Melamine used for?
It is an industrial chemical used in the production of melawares.

ATT1444995

It is also used in home decoration, ‘ US resistant board’.

ATT1444996

We all MUST understand that Melamine is used in INDUSTRIAL PRODUCTION — it CANNOT be eaten!

2.Why is Melamine added to milk powder?
The most important nutrient in milk is protein. And, Melamine has this same protein that contains ‘NITROGEN.’

ATT1444997

Adding Melamine into milk reduces the actual milk content required, and therefore it is cheaper than all milk. So it lowers the capital required in the production of milk products. Therefore it earns the business man more profit!

Below is Melamine; doesn’t it look like milk/milk powder? It doesn’t have any smell, so cannot be detected.

ATT1444998

3.When was it discovered that it had been added to milk products?
In 2007, US cats and dogs died suddenly, they found that pet food from China contained Melamine.

ATT1444999

Early in 2008, in China, an abnormal increase in infant cases of kidney stones was reported.

ATT1445000

In August 2008, China Sanlu Milk Powder tested for Melamine.

ATT1445001

Sept. 2008, the New Zealand government asked China to investigate this problem.
Sept. 21, 2008, they found that many food products in Taiwan tested for Melamine.

4.What happens when Melamine ingested and digested?
Melamine remains inside the kidneys. It forms into stones blocking the tubes. Pain will be imminent and the person cannot urinate. Kidney(s) will then swell.

ATT1445002

Although surgery can remove the stones, it causes irreversible kidney damage. It can lead to the loss of kidney function and will require kidney dialysis or lead to death because of uremia.

What is dialysis?
In fact, it should be called ‘blood washing’; it is filtering all of the body’s blood into a machine and then returning the blood back to the body.

ATT1445003
The whole process takes 4 hours; and it is necessary to have dialysis once every 3 days for the rest of your life.

Below: A dialysis centre.
ATT1445004

Below: A large dialysis centre.
ATT1445005

A small hole is required in the arm to insert the sub-dialysis catheter.
ATT1445006

Why is it much more serious in babies?
A baby’s kidneys are so very small and they drink a lot of milk powder.

Below: A baby undergoing dialysis.
ATT1445007
China currently has 13,000 infants hospitalized
ATT1445008
It does not matter how much Melamine a human being ingested (ate) (took).
The important point is: ‘MELAMINE CANNOT BE EATEN!’

5.What foods are to be avoided?
Foods from China that contain dairy products should be avoided.
ATT1445009 

Remember: Foods with cream or milk should be avoided.

6.Which companies are affected?
Hereunder are the companies affected with Melamine.

ATT1445010

7.What do we do next?
Avoid the above foods for at least six months.

If you own or operate a snack bar, a restaurant, or a coffee shops, etc.,
stop selling dairy products for the meantime.

If you have infants at home, change to mother’s milk or find other substitutes.

Finally, share this information with friends so they will understand the risk of milk poisoning.

The whole world is very afraid of "Made In China" ‘black-hearted’ goods. Do you know how to differentiate which products are made in the USA, or in the Philippines, in Taiwan, or in China? Here’s How:

The first 3 digits of the barcode identify the country code wherein the product was made.

For example: ALL barcodes that start with 690, 691, 692, etc… up to and including 695 a really MADE IN CHINA. Barcodes starting with 471 are printed on products Made in Taiwan.

ATT1445011

You have aright to know. But the government and related departments never inform or educate the public.Therefore, we must educate ourselves, be vigilant, and RESCUE ourselves.

Today, Chinese businessmen know that consumer swill not select products ‘Made in China’. So, they make every effort not to show or state the country of origin on their products. However, you can now refer to the barcode.

DO remember if the first 3 digits are one of those between 690 and 695 inclusive then it is a product Made in China.

OTHER BARCODES:
00 ~ 13 USA & CANADA
30 ~ 37 FRANCE
40 ~ 44 GERMANY
49 ~ JAPAN
50 ~ UK
57 ~ Denmark
64 ~ Finland
76 ~ Switzerland and Liechtenstein
628 ~ Saudi-Arabia
629 ~ United Arab Emirates
740 ~ 745 – Central America
All 480 Codes are Made in the Philippines.

Please inform your family and friends. Be aware! And help others to be aware!

http://www.youtube.com/watch?v=O-kLUyic4TM

http://news.bbc.co.uk/1/hi/7616346.stm

http://www.sciencebase.com/science-blog/melamine-in-milk.html

http://en.wikipedia.org/wiki/2008_Chinese_milk_scandal

http://www.timesonline.co.uk/tol/news/world/asia/article4758549.ece

  • Search:
  • Archives