tl;dr At Pivotal we wrote Cedar because we use and love Rspec on our Ruby projects. Cedar isn't meant to replace or compete with OCUnit; it's meant to bring the possibility of BDD-style testing to Objective C, just as Rspec pioneered BDD-style testing in Ruby, but hasn't eliminated Test::Unit. Choosing one or the other is largely a matter of style preferences. In some cases we designed Cedar to ov
I extend base backbone views all the time and have a base view per section so that I can extend on multiple levels. My question is, what's the most effective way of doing view mixins: reusable view partials that can be mixed in to any view. For example: var BaseProfile = Backbone.View.extend({ ...}); var UserProfile = BaseProfile.extend({ ...}); var VideoSupport = Backbone.View.extend({ ...}); Wha
I have created a new table including a column "note". The default is varchar(255) I believe but I wish to have this column be a text area vs. a field and to allow more data. I imagine that I would make this change in ActiveRecord::Migration file but I am curious as to the format. Do I simply change the varchar(255) to varchar(1000) for example? (if so what is the format? def self.up create_table :
Karma or Protractor Karma is a JavaScript test-runner built with Node.js and meant for unit testing. The Protractor is for end-to-end testing and uses Selenium Web Driver to drive tests. Both have been made by the Angular team. You can use any assertion-library you want with either. Screencast: Karma Getting started related: Should I be using Protractor or Karma for my end-to-end testing? Can Prot
Had been looking at the jsunit and jcoverage demos here (click on coverage report link. Open this in a new tab). I was wondering if any one had done anything similar with Jasmine and JSCoverage ? I'm a little unsure on how to proceed. [EDIT] I am wondering if there is something I can do with a jasmine reporter. My Jasmine "hello world" example makes reference to a TrivialReporter. Maybe this can b
I'm trying to amass a list of programming books with opensource licenses, like Creative Commons, GPL, etc. The books can be about a particular programming language or about computers in general. Hoping you guys could help: Languages Python Dive Into Python How to Think Like a Computer Scientist A Byte of Python Python for Fun Ruby Why's (Poignant) Guide to Ruby PHP Practical PHP Programming Perl E
I'm using Rails, backbone.js (learning this now). Let's say you have two models, Car and Engine. var Car = Backbone.Model.extend({ initialize: function() { if(this.get('engine') != undefined) this.engine = new Engine(this.get('engine')); } } var redCar = new Car({ 'color': 'red', // The controller nests the model 'engine': { 'horsepower': '350' } }); redCar.save() What is the right way to send eng
I just updated to Ruby 1.9.3p0 and Rails 3.1.1. Now when I try to launch the server, it complains that I should install ruby-debug, even though it's already installed. % rails server --environment=development --debug => Booting WEBrick => Rails 3.1.0 application starting in development on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server You need to install ruby-debug to r
I have following flow of app : First screen is Login screen and if Login gets success the tab-group opens. here is code : app.js var win = Titanium.UI.createWindow ({ title:'User Login', url:'Login.js', tabBarHidden:true, backgroundColor:'gray', navBarHidden:false }); win.open(); Login.js var win = Ti.UI.currentWindow; // some UI controls loginBtn.addEventListener('click', function(e) { //calling
I'm trying to build an API wrapper gem, and having issues with converting hash keys to a more Rubyish format from the JSON the API returns. The JSON contains multiple layers of nesting, both Hashes and Arrays. What I want to do is to recursively convert all keys to snake_case for easier use. Here's what I've got so far: def convert_hash_keys(value) return value if (not value.is_a?(Array) and not v
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く