Skip to content

Instantly share code, notes, and snippets.

View csanz's full-sized avatar
🎯
Focusing

Christian Sanz csanz

🎯
Focusing
View GitHub Profile
112 new_user.before_connect(facebook_session) if new_user.respond_to?(:before_connect)
113
=> 114 self.attempted_record = new_user
115
116 if facebook_valid_user
117 errors.add_to_base(
118 I18n.t('error_messages.facebook_user_creation_failed',
/Users/csanz/Projects/Rails/plentyofgigs/vendor/plugins/authlogic_facebook_connect/lib/authlogic_facebook_connect/session.rb:114
self.attempted_record = new_user
(rdb:5) new_user
This is what I have
<%= select(:user, :goalstext, Bodytarget.all.collect {|b| [ b.name, b.id ] }, {"class", "test"}, :class => "selected", :class => "selected") %>
And it generates this
<select class="selected" id="user_goalstext" name="user[goalstext]">
<option value="1">calves</option>
<option value="2">back</option>
>> u = User.first
=> #<Trainer id: 1, created_at: "2010-05-02 08:43:01", updated_at: "2010-05-02 10:15:13", login: "trainer", first_name: nil, last_name: nil, type: "Trainer", bio: nil, crypted_password: "9a4b20cc024b4981ac4cc5b55cade582ad478b67ea941670b94...", password_salt: "EPSnzeEtk0EyjFVJzQJr", persistence_token: "ded3c787f034fa45c3d53fd1d314e16156e629beff13e45f4a3...", login_count: 0, last_request_at: nil, last_login_at: nil, current_login_at: nil, last_login_ip: nil, current_login_ip: nil, perishable_token: "Aqpw5hod-x3CE8RakKgr", email: "[email protected]", name: nil, facebook_uid: nil, roles: [], avatar_file_name: nil, avatar_content_type: nil, avatar_file_size: nil, avatar_updated_at: nil, invitation_id: nil, invitation_limit: 5, gender: "f", firstgoal_id: nil, secondgoal_id: nil, goalstext: nil, favorites_count: 0>
>> u.user_bodytarget[0] = Bodytarget.first
=> #<Bodytarget id: 1, created_at: "2010-05-02 08:43:02", updated_at: "2010-05-02 08:43:02", name: "calves", bodyarea_id: 2>
>> u.user_b
/opt/local/lib/ruby/1.8/net/http.rb:586: [BUG] Segmentation fault
ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10]
Abort trap
csanz:~ csanz$ mongo
MongoDB shell version: 1.0.1
url: test
connecting to: test
type "help" for help
> db.foo.save( { a : 1 } )
> db.foo.find()
{"_id" : ObjectId( "4c8fdbf819faf72c32c0eb3d") , "a" : 1}
csanz:~ csanz$ mongo
MongoDB shell version: 1.0.1
url: test
connecting to: test
type "help" for help
> db.foo.save( { a : 1 } )
> db.foo.find()
{"_id" : ObjectId( "4c8fdbf819faf72c32c0eb3d") , "a" : 1}
csanz:~ csanz$ redis-cli set mykey "{'myhash':{'name':'value'}}"
OK
csanz:~ csanz$ redis-cli get mykey
{'myhash':{'name':'value'}}
csanz:~ csanz$
csanz:~ csanz$ redis-server
14 Sep 23:29:01 * Warning: no config file specified, using the default config. In order to specify a config file use 'redis-server /path/to/redis.conf'
14 Sep 23:29:01 - Server started, Redis version 1.01
after starting the server
csanz:diaspora csanz$ bundle exec thin start
>> Using rack adapter
>> Thin web server (v1.2.7 codename No Hup)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:3000, CTRL+C to stop
I got to localhost:3000 and try to log on using the tom account and I get this
Front End Engineer
Fox Sports Interactive is looking for 2 Front End Developers for a rebuild project. They are moving the 14 Regional Sports sites from their existing platforms to a new platform. They need developers with HTML, CSS & Javascript experience. Java experience is preferred. Candidates with a background in media and working with publishing/content management systems is ideal. Any candidates with background in Struts framework is a plus.
Back End Engineer
System development and deployment for current and upcoming projects; .Develop comprehensive unit test harnesses for all code developed. Requirements: .BS/MSCS or equivalent or 6+ years of commercial Java software development; .Demonstrable in-depth experience in core J2EE, Java EE technologies; .Strong knowledge of existing and latest Java core libraries (Lang, Collections, Concurrency, Annotations, JDBC) and popular open source frameworks Spring, Hibernate, etc. .Solid database experience w/ MySQL or Oracle; .Strong passion in developing/progr
Six Truths in Life:
1. You cannot stick your tongue out and look up at the ceiling at the same time, a physical impossibility.
2. All idiots, after reading #1 will try it.
3. And discover #1 is a lie.