2.0.0-p481 :001 > OpenSSL::SSL::SSLContext::DEFAULT_PARAMS
=> {:ssl_version=>"SSLv23", :verify_mode=>1, :ciphers=>"ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW", :options=>-2147482625}
2.0.0-p481 :002 > rating = JSON.parse(RestClient::Resource.new("https://www.howsmyssl.com/a/check" ).get)['rating']
=> "Bad"
# this makes go get github.com/foo/var work without | |
# monkeying with the credential cache or anything silly like that. | |
[url "[email protected]:"] | |
insteadOf = https://github.com/ |
Last night, Brian Shirai unilaterally "ended" the RubySpec project, a sub-project of Rubinius (the alternative Ruby implementation which Brian was paid to work on full-time from 2007 to 2013). The blog post describing his reasons for "ending" the project led to a big discussion on Hacker News.
When a single, competing Ruby implementation tells that you its test suite is the One True Way, you should be skeptical. Charles Nutter, Ruby core committer and JRuby head honcho, spent a lot of time last night on Twitter talking to people about what this decision means. He's probably too busy and certainly too nice of a guy to write about what is a political issue in the Ruby community, so I'm going to do it on behalf of all the new or intermediate Rubyists out there that are confused by Brian's decision and what it me
Hello, visitors! If you want an updated version of this styleguide in repo form with tons of real-life examples… check out Trellisheets! https://github.com/trello/trellisheets
“I perfectly understand our CSS. I never have any issues with cascading rules. I never have to use !important
or inline styles. Even though somebody else wrote this bit of CSS, I know exactly how it works and how to extend it. Fixes are easy! I have a hard time breaking our CSS. I know exactly where to put new CSS. We use all of our CSS and it’s pretty small overall. When I delete a template, I know the exact corresponding CSS file and I can delete it all at once. Nothing gets left behind.”
You often hear updog saying stuff like this. Who’s updog? Not much, who is up with you?
2015-01-29 Unofficial Relay FAQ
Compilation of questions and answers about Relay from React.js Conf.
Disclaimer: I work on Relay at Facebook. Relay is a complex system on which we're iterating aggressively. I'll do my best here to provide accurate, useful answers, but the details are subject to change. I may also be wrong. Feedback and additional questions are welcome.
Relay is a new framework from Facebook that provides data-fetching functionality for React applications. It was announced at React.js Conf (January 2015).
Every time I sit down to code, it seems like a new Ruby version is available.
When I first learned ruby I used rvm on my Mac. In production on linux, I use rbenv, likely due to its Capistrano integration.
When I set up my current machine, I found rvm
had fallen out of fashion in favour of something called chruby
.
source 'https://rubygems.org' | |
gem 'selenium-webdriver', '~> 2.45.0' | |
gem 'eyes_selenium', '~> 2.15.0' | |
gem 'rspec', '~> 3.2.0' | |
gem 'rake', '~> 10.4.2' |
/* | |
* This class is used for buttons that have a pressed state animation. | |
* Can't use default click() because espresso bug where click becomes long click, which causes | |
* animation, which causes tests to stall because ui thread is busy. :( | |
* https://code.google.com/p/android-test-kit/issues/detail?id=45 | |
*/ | |
public class CallOnClickAction implements ViewAction { | |
@Override | |
public Matcher<View> getConstraints() { | |
return allOf(isClickable(), isDisplayed()); |
It looks like the Simulator.app
binary is now signed as of Xcode 7 as the following occurs in instruments-without-delay
when using the build script:
./build.sh test <SIMULATOR-UDID>
The message that we get from the kernel is:
7/23/15 12:22:52.000 PM kernel[0]: AMFI: Simulator(pid 72600) - [deny-mmap] mapped file has no team identifier and is not a platform binary: /Users/lawrencelomax/src/instruments-without-delay/build/SimShim.dylib
This causes a crash:
random Ruby http related gems:
- retriable
- hurley
- hurley excon adapter -- a curb adapter for hurley would be nice
- google's API client uses hurley
http_shooting_party is another benchmarking tool. Often curb is 8.42x
faster than excon in this benchmark.