StripeEvent is built on the ActiveSupport::Notifications API. Incoming webhook requests are authenticated by retrieving the event object from Stripe. Define subscribers to handle a single event type or all event types. Subscribers can be a block or an ob
id label prediction negative_probability neutral_probability positive_probability text | |
0-1391107570 positive 0.172 0.294 0.534 Overheard: @dget browsing Google font pairings. "Something tells me you don't always want Creepster." #cfa2014 | |
1-1391109571 neutral 0.022 0.936 0.042 Hard not to think of http://t.co/fPn9J4HXLL while practicing app demos. (cc @dget, @mollyampersand) #cfa2014 | |
2-1391109768 neutral 0.023 0.906 0.071 RT @fureigh: Hard not to think of http://t.co/fPn9J4HXLL while practicing app demos. (cc @dget, @mollyampersand) #cfa2014 | |
3-1391110031 neutral 0.041 0.844 0.115 It's safe for work, I swear: http://t.co/j2gkzlaroF #catsforamerica #cfa2014 (cc @_jden) | |
4-1391110164 neutral 0.037 0.703 0.26 *giggle* RT @fureigh: It's safe for work, I swear: http://t.co/H7yga8fFHX #catsforamerica #cfa2014 (cc @_jden) | |
5-1391110333 neutral 0.378 0.501 0.121 @fureigh @_jden OH GOD #CFA2014 IS GOING DOWN THE @MAXOGDEN PATH #teamcorgi | |
6-1391111279 neutral 0.046 0.741 0.213 Streetreel, the 1st CfA app project pit |
dinakar123 | |
meganliddle | |
ReflexMain | |
TechTalentSouth | |
befletcher | |
CodeForCLT | |
scottelundgren | |
miguel3000 | |
CursedNoMore | |
spencershell |
callables = (1..3).map{ |n| n.method(:+) } | |
p callables.reduce(0) { |acc, o| o.(acc) } |
tl;dr RVM seems to be the standard and most documented tool, but rbenv will work just as well. For more experienced developers, comfortable with Ruby dependency management, ruby-install/chruby is a strong option.
Here are the relevant issues as I see them:
- You need to have a recent version of Ruby. At some point in the life of a project the version of Ruby will need to be updated. The change could be driven by a security issue, a change in dependencies (upgrading Rails, for instance), performance improvements (generational garbage collection, more robust method cache expiration, etc.).
- Manually installing Ruby from source is complicated. Download and unpack the tarba... well, you just lost a good chunk of potential contributors.
- Installing precompiled binaries requires someone to precompile and distribute binaries.
- Different projects require different Ruby versions.
- Gems need to be installed for a specific Ruby version.
- **Bundler won't decide which installed version of a
I use 1password. The main thing it does is keep all your passwords in a central place and uses browser extensions to fill in the fields. Not having to remember any of your passwords has the side benefit of freeing you up to use long, randomly-generated strings of characters. This is significantly safer than a human-rememberable password.
The tradeoff is that the master password has to be really strong, but easy to recall because you'll type it in once for each time your computer wakes from sleeping (your master password should be entirely original and not a derivative). It also means that if someone had your master password - and the encrypted 1password file - they would have all the passwords. I have chosen to make that tradeoff, and continue to be happy with it. The most important way to mitigate that risk is 2-factor authentication.
You should be using 2-factor authentication on every site that has the feature. The most important thing you can do at this moment is change your gmail password and add 2-fac
# OPEN ISSUE: https://github.com/rails/rails/issues/11957 | |
# ActiveRecord does not validate the format of a UUID before | |
# sending a query to the database. Postgres throws an error. | |
# Preferably, this would raise AR::RecordNotFound. | |
# | |
# ActiveRecord::StatementInvalid: | |
# PG::InvalidTextRepresentation: ERROR: invalid input syntax for uuid: "not-a-uuid" | |
# | |
module PrimaryKeyUUID | |
# https://github.com/assaf/uuid/blob/1fc6dd2e3a3401aa5bce7cebd57d4af89da9ccd6/lib/uuid.rb#L196-L203 |