This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://stacksmash.org/2009/08/dear-plaintext-email-password-people/ | |
http://en.wikipedia.org/wiki/Password#Simple_transmission_of_the_password | |
http://www.quora.com/Why-do-websites-make-you-reset-your-password-instead-of-just-emailing-it-to-you?q=email+password |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Location for the Upstream (a/k/a Unicorn or Mongrel) | |
location @upstream { | |
index index.html index.htm; | |
# needed to forward user's IP address to rails | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header Host $http_host; | |
#Don't add following header as it overwrites the header coming from varnish instance for https requests | |
#proxy_set_header X-Forwarded-Proto $scheme; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Started GET "/users/4/account" for 76.102.12.54 at Wed May 25 16:18:45 -0700 2011 | |
Processing by UsersController#account as HTML | |
Parameters: {"id"=>"4"} | |
Redirected to https://mubi.com/users/4/account | |
Completed 302 Found in 0ms | |
Started GET "/users/4/account" for 76.102.12.54 at Wed May 25 16:18:45 -0700 2011 | |
Processing by UsersController#account as HTML | |
Parameters: {"id"=>"4"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#From stringgable_shortcuts.rb | |
def link_to(name, options = {}, html_options = nil) | |
if name.respond_to?(:new_record?) | |
unless options.is_a? String | |
html_options ||= options | |
options = name | |
else | |
options ||= name | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using config file '/data/mubi/config/development.sphinx.conf'... | |
indexing index 'cast_member_core'... | |
collected 174912 docs, 4.8 MB | |
sorted 5.1 Mhits, 100.0% done | |
total 174912 docs, 4836546 bytes | |
total 3.521 sec, 1373289 bytes/sec, 49664.55 docs/sec | |
distributed index 'cast_member' can not be directly indexed; skipping. | |
indexing index 'city_core'... | |
collected 198807 docs, 9.8 MB | |
collected 235544 attr values |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7,8c7 | |
< address = 127.0.0.1 | |
< port = 3313 | |
--- | |
> listen = 127.0.0.1:3313 | |
24c23,24 | |
< sql_query = SELECT `cast_members`.`id` * 5 + 0 AS `id` , CAST(`cast_members`.`name` AS CHAR) AS `name`, CAST(`cast_members`.`sort_name` AS CHAR) AS `sort_name`, IFNULL(`cast_members`.`name`, '') AS `name_sort`, IFNULL(`cast_members`.`sort_name`, '') AS `sort_name_sort`, `cast_members`.`id` AS `sphinx_internal_id`, 560823700 AS `class_crc`, '2604646539,560823700' AS `subclass_crcs`, 0 AS `sphinx_deleted` FROM cast_members WHERE `cast_members`.`id` >= $start AND `cast_members`.`id` <= $end GROUP BY `cast_members`.`id` ORDER BY NULL | |
--- | |
> sql_query_pre = SET TIME_ZONE = '+0:00' | |
> sql_query = SELECT SQL_NO_CACHE `cast_members`.`id` * 5 + 0 AS `id` , `cast_members`.`name` AS `name`, `cast_members`.`sort_name` AS `sort_name`, `cast_members`.`id` AS `sphinx_internal_id`, 560823700 AS `class_crc`, 0 AS `sphinx_deleted`, IFNULL(`cast_members`.`name`, '') AS `name_sort`, IFNULL(`cast_members`.`sort_name`, '') AS `sor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Following fails with zmobie.js. fix is to set Prototype.BrowserFeatures.SpecificElementExtensions = false; | |
if (F.SpecificElementExtensions) { | |
for (var tag in Element.Methods.ByTag) { | |
var klass = findDOMClass(tag); | |
if (Object.isUndefined(klass)) continue; | |
copy(T[tag], klass.prototype); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Event.prototype = window.Event.prototype || document.createEvent('HTMLEvents').__proto__; | |
+ if(window.Event) { | |
+ Event.prototype = window.Event.prototype || document.createEvent('HTMLEvents').__proto__; | |
+ }else{ | |
+ Event.prototype = document.createEvent('HTMLEvents').__proto__; | |
+ } | |
+ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'<html><head><script src="https://ajax.googleapis.com/ajax/libs/prototype/1.7.0.0/prototype.js" type="text/javascript"></script></head><body></body></html>' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location /services/ps3/viewings/watching { | |
proxy_set_header Content-Type application/x-www-form-urlencoded; | |
include /etc/nginx/proxy.conf; | |
proxy_pass http://mubi_upstream; | |
break; | |
} |