This file contains 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
>> require 'rbosa' | |
=> true | |
>> t = OSA.app('iTunes') | |
=> <OSA::ITunes::Application:0x10151ce88 desc="'sign'($6B6F6F68$)"> | |
>> track = t.current_track | |
=> <OSA::ITunes::Track:0x101519a58 desc="'obj '{ 'want':'prop', 'from':'null'(), 'form':'prop', 'seld':'pTrk' }"> | |
>> track.name | |
=> "The Way I Are" | |
>> track.played_count | |
=> 1 |
This file contains 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
The last few jobs I've had have proved to be somewhat disappointing. What I realized | |
after a few months was that it was mostly my fault for not asking the right questions | |
In a way a job interview is really for both parties. Not only do they have to think | |
that you fit in, but you have to think that you'll enjoy working there. Here's a | |
pretty long list of questions to pull from. Or you could ask them all, up to you. | |
General Questions: | |
1. What is the dress code? | |
2. What are the normal business hours? |
This file contains 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
sntjon ~ $ rvm install ruby-1.9.2 | |
/Users/sntjon/.rvm/rubies/ruby-1.9.2-p0, this may take a while depending on your cpu(s)... | |
ruby-1.9.2-p0 - #fetching | |
ruby-1.9.2-p0 - #downloading ruby-1.9.2-p0, this may take a while depending on your connection... | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 8296k 100 8296k 0 0 483k 0 0:00:17 0:00:17 --:--:-- 591k | |
ruby-1.9.2-p0 - #extracting ruby-1.9.2-p0 to $ | |
/Users/sntjon/.rvm/scripts/manage: line 1245: ruby-1.9.2-p0 - #extracted to $: command not found |
This file contains 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
sntjon ~ $ rvm --trace install ruby-1.9.2 | |
+ [[ -z '' ]] | |
+ export 'PS4=-[${BASH_SOURCE}] : ${LINENO} : ${FUNCNAME[0]:+${FUNCNAME[0]}() > }' | |
+ PS4='-[${BASH_SOURCE}] : ${LINENO} : ${FUNCNAME[0]:+${FUNCNAME[0]}() > }' | |
-[/Users/sntjon/.rvm/scripts/cli] : 562 : __rvm_parse_args() > [[ -z '' ]] | |
-[/Users/sntjon/.rvm/scripts/cli] : 562 : __rvm_parse_args() > [[ -n '' ]] | |
-[/Users/sntjon/.rvm/scripts/cli] : 564 : __rvm_parse_args() > [[ 0 -eq 1 ]] | |
-[/Users/sntjon/.rvm/scripts/cli] : 564 : __rvm_parse_args() > [[ -n '' ]] | |
-[/Users/sntjon/.rvm/scripts/cli] : 14 : __rvm_parse_args() > [[ -n install ]] | |
-[/Users/sntjon/.rvm/scripts/cli] : 15 : __rvm_parse_args() > rvm_token=install |
This file contains 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
class User < ActiveRecord::Base; end | |
User.table_name = "tblUsers" | |
User.first | |
ActiveRecord::ActiveRecordError: Table tblusers does not exist | |
from /Users/sntjon/.rvm/gems/jruby-1.5.3/gems/activerecord-2.3.8/lib/active_record/base.rb:1301:in `columns' | |
from /Users/sntjon/.rvm/gems/jruby-1.5.3/gems/activerecord-2.3.8/lib/active_record/base.rb:1314:in `column_names' | |
from /Users/sntjon/.rvm/gems/jruby-1.5.3/gems/activerecord-2.3.8/lib/active_record/base.rb:2887:in `inspect' | |
from /Users/sntjon/.rvm/rubies/jruby-1.5.3/lib/ruby/1.8/irb.rb:310:in `output_value' |
This file contains 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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
This file contains 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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |