Wednesday, September 28, 2011

Jquery Changelog

## 0.2.6 (1 December 2010) Feature: - Updated to use jQuery 1.4.4 by default ## 0.2.5 (4 November 2010) Bugfix: - Download JQuery Rails UJS via HTTPS since Github is now HTTPS only ## 0.2.4 (16 October 2010) Features: - Updated to use the new jQuery 1.4.3 by default, with the IE .live() bug fixed - Always download the newest 1.x release of jQuery UI - Try to install unknown versions of jQuery, with fallback to the default - Print informative messages in the correct Generator style ## 0.2.3 (13 October 2010) Features: - Support Edge Rails 3.1 by depending on Rails ~>3.0 - Add Sam Ruby's assert_select_jquery test helper method - Use jquery.min only in production (and not in the test env) ## 0.2.2 (8 October 2010) Feature: - Depend on Rails >=3.0 && <4.0 for edge Rails compatibility ## 0.2.1 (2 October 2010) Bugfix: - Default to jQuery 1.4.1 as recommended by jQuery-ujs due to a bug in 1.4.2 (http://jsbin.com/uboxu3/7/) ## 0.2 (2 October 2010) Features: - Allow specifying which version of jQuery to install - Add generator tests (thanks, Louis T.) - Automatically use non-minified JS in development mode ## 0.1.3 (16 September 2010) Bugfix: - allow javascript :defaults tag to be overridden ## 0.1.2 (18 August 2010) Bugfix: - check for jQueryUI in the right place ## 0.1.1 (16 August 2010) Bugfix: - fix generator by resolving namespace conflict between Jquery::Rails and ::Rails

Posted via email from sente's posterous

testing

More Examples

  1. Get application ideas from /r/SomebodyMakeThis:

    r = reddit.Reddit sr = reddit.get_subreddit("somebodymakethis") # Adjust limit as desired ideas = sr.get_hot(limit=300) apps = filter(lambda x: "app" in x.title.lower(), ideas)

Posted via email from sente's posterous

some helper functions

def make_ascii(str,debug=False):
    s = ""
    for num,i in enumerate(str):
        try:
            i.encode("utf-8")
        except (UnicodeEncodeError, UnicodeDecodeError):
            if debug:
                import sys
                sys.stderr.write("error converting char %d\n" %num )
            continue
        else:
            s += i
    return s

def yield_tokens(line):
    for i, part in enumerate(re.split(r'\{\{(.*?)\}\}', line)):
        if i % 2:
            if part.startswith('!'):
                yield 'RAW', part[1:]
            else: yield 'CMD', part
        else: yield 'TXT', part

Posted via email from sente's posterous

Thursday, February 24, 2011

How To Safely Store A Password | codahale.com

Use bcrypt

Use bcrypt. Use bcrypt. Use bcrypt. Use bcrypt. Use bcrypt. Use bcrypt. Use bcrypt. Use bcrypt. Use bcrypt.

Why Not {MD5, SHA1, SHA256, SHA512, SHA-3, etc}?

These are all general purpose hash functions, designed to calculate a digest of huge amounts of data in as short a time as possible. This means that they are fantastic for ensuring the integrity of data and utterly rubbish for storing passwords.

A modern server can calculate the MD5 hash of about 330MB every second. If your users have passwords which are lowercase, alphanumeric, and 6 characters long, you can try every single possible password of that size in around 40 seconds.

Posted via email from sente's posterous

Friday, February 4, 2011

Ricky Gervais talks to a Christian

Ricky Gervais is hilarious

Posted via email from sente's posterous

First ever aerial footage of uncontacted Amazon tribe released

New film footage released today shows uncontacted Indians on the Brazil-Peru border in never-seen-before detail. It is the first-ever aerial footage of an uncontacted community.

Posted via email from sente's posterous