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
Hi Koji!! |
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
anita@anita-laptop:~$ sudo gem install red | |
[sudo] password for anita: | |
ERROR: Error installing red: | |
red requires ParseTree (~> 2.2.0, runtime) | |
anita@anita-laptop:~$ |
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
anita@anita-laptop:~/apps/mediawiki-ruby$ ./script/console | |
Loading mediawiki-ruby gem | |
/usr/lib/ruby/1.8/irb/init.rb:252:in `require': no such file to load -- ./script/../lib/mediawiki-ruby.rb (LoadError) | |
from /usr/lib/ruby/1.8/irb/init.rb:252:in `load_modules' | |
from /usr/lib/ruby/1.8/irb/init.rb:250:in `each' | |
from /usr/lib/ruby/1.8/irb/init.rb:250:in `load_modules' | |
from /usr/lib/ruby/1.8/irb/init.rb:21:in `setup' | |
from /usr/lib/ruby/1.8/irb.rb:54:in `start' | |
from /usr/bin/irb:13 | |
anita@anita-laptop:~/apps/mediawiki-ruby$ |
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
>> Mediawiki.article_properties("en.wikipedia.org", "Sushi") | |
NameError: uninitialized constant Mediawiki::YAML | |
from ./script/../lib/mediawiki.rb:16:in `article_properties' | |
from (irb):2 | |
>> |
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
anita@anita-laptop:~/sandbox$ cd anteaya.github.com/ | |
anita@anita-laptop:~/sandbox/anteaya.github.com$ ls -a | |
. .. .git images index.html README stylesheets | |
anita@anita-laptop:~/sandbox/anteaya.github.com$ mkdir nordic.git | |
anita@anita-laptop:~/sandbox/anteaya.github.com$ ls -a | |
. .. .git images index.html nordic.git README stylesheets | |
anita@anita-laptop:~/sandbox/anteaya.github.com$ cd nordic.git/ | |
anita@anita-laptop:~/sandbox/anteaya.github.com/nordic.git$ ls -a | |
. .. | |
anita@anita-laptop:~/sandbox/anteaya.github.com/nordic.git$ git init |
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
anita@anita-laptop:~/sandbox/anteaya.github.com$ git push origin master | |
To git@github.com:anteaya/anteaya.github.com.git | |
! [rejected] master -> master (non-fast forward) | |
error: failed to push some refs to 'git@github.com:anteaya/anteaya.github.com.git' | |
anita@anita-laptop:~/sandbox/anteaya.github.com$ | |
anita@anita-laptop:~/sandbox/anteaya.github.com$ git pull | |
You asked me to pull without telling me which branch you |
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
>> open("http://en.wikipedia.org/wiki/Labe").read | |
=> "\037\213\b\000\000\000\000\000\000\003\355}\351\217$\311u\337\347\235\277"\267\326\315\351\241\273\256\276\273g\272\204\276\346\340N\317\016\246g\271\026\306\353BVUVUNge\326ff\36514\001\3122lA\240`\b\260$\320\022lQ\266@\211\326\302\024iY\342\005\001\354\345Wb\367\023I\370\ea\020\206a\303\377\202\177\357EdddfTu\326\364\354p\tk)MWFF\306\361\342\305\213w\307\2357\017\336\331\177\372\233\217\017\255a<\362\254\307\357\356=|\260oU\252\365\372{+\373\365\372\301\323\003\353\237\334\177z\364\320j\326\032\326\323\320\366#7v\003\337\366\352\365\303G\025\2532\214\343\361v\275~vvV;[\251\005\341\240\376\364I\375\234\332j\322\307\362g5\326\276\254\365\342^\245u\343\016wx>\362\374h\307\320LskkK|]\241J\333\236\355\017v*\216_\261\322_=7\334\251xq\210\326\336\2703t\354\036\376\276qg\344\3046f\023\217\253\316\a\023\367t\247\262\037\370\261\343\307\325\247\027c\247bu\305\323N%v\316\343:up\333\352\016\3550r\342\235I\334\257nV\254\372\354v\216\343\v\3171\266\326\215\242\314\327 |
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 'open-uri' | |
# First lets assign the results to a couple variables. | |
labe_output = open("http://en.wikipedia.org/wiki/Labe").read | |
usa_output = open("http://en.wikipedia.org/wiki/USA").read | |
# Okay, so if we want to just send these to stdout: | |
puts labe_output | |
puts usa_output | |
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
anita@anita-laptop:~$ kill -9 `ps auxww|grep Tweetdeck|awk '{print $2}'` | |
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] | |
anita@anita-laptop:~$ kill -9 `ps auxww|grep Tweetdeck|awk '{print $2}'` | |
bash: kill: (9700) - No such process | |
anita@anita-laptop:~$ killall -SIGNAL 9 Tweetdeck | |
NAL: unknown signal; killall -l lists signals. | |
anita@anita-laptop:~$ killall -l | |
HUP INT QUIT ILL TRAP ABRT IOT BUS FPE KILL USR1 SEGV USR2 PIPE ALRM TERM | |
STKFLT CHLD CONT STOP TSTP TTIN TTOU URG XCPU XFSZ VTALRM PROF WINCH IO PWR SYS | |
UNUSED |
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
anita@anita-laptop:~/sandbox/homework$ ruby test.rb | |
Loaded suite test | |
Started | |
F | |
Finished in 0.027898 seconds. | |
1) Failure: | |
test_fail(Sample_Test) [test.rb:11]: | |
Assertion was false. | |
<false> is not true. |
OlderNewer