This file contains hidden or 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
1. Save test.rb and danish_email to a directory somewhere. | |
2. Copy rails/actionmailer/lib/action_mailer/vendor/tmail-1.2.3 to the directory. | |
3. Run test.rb under JRuby. Generates an exception like this: | |
% jruby test.rb | |
org.jruby.util.Pack:903:in `unpack': java.lang.ArrayIndexOutOfBoundsException: -61 | |
from org.jruby.RubyString:3443:in `unpack' | |
from org.jruby.RubyString$i_method_1_0$RUBYINVOKER$unpack:-1:in `call' | |
from org.jruby.runtime.callsite.CachingCallSite:280:in `cacheAndCall' | |
from org.jruby.runtime.callsite.CachingCallSite:116:in `call' |
This file contains hidden or 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
Version 1.03c ------Sequential Output------ --Sequential Input- --Random- | |
-Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- | |
Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP | |
xen_iscsi 2G 20117 24 19315 3 6633 0 30573 18 37284 0 693.1 0 | |
------Sequential Create------ --------Random Create-------- | |
-Create-- --Read--- -Delete-- -Create-- --Read--- -Delete-- | |
files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP | |
16 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ | |
Version 1.03c ------Sequential Output------ --Sequential Input- --Random- |
This file contains hidden or 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
start(AnAtom, Fun) -> | |
case global:set_lock({funLock, AnAtom}, [node()], 0) of | |
true -> | |
Pid = spawn(Fun), | |
global:register_name(AnAtom, Pid); | |
false -> | |
{error, "Function already registered."} | |
end. | |
This file contains hidden or 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
Erlang (BEAM) emulator version 5.6.5 [source] [smp:2] [async-threads:0] [hipe] [kernel-poll:false] | |
Eshell V5.6.5 (abort with ^G) | |
1> c("/Users/mark/Projects/erlang/excercises/parallel/ex3.erl", [{outdir, "/Users/mark/Projects/erlang/excercises/parallel"}]). | |
{ok,ex3} | |
2> ex3:start(foo, fun ex3:loop/0). | |
yes | |
3> ex3:start(foo, fun ex3:loop/0). | |
Function already registered. | |
ok |
This file contains hidden or 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
15:20:54.075943 IP cpe-024-163-071-014.nc.res.rr.com.51252 > imbriaco.com.syslog: SYSLOG kernel.emergency, length: 46 | |
0x0000: 4500 004a 2012 0000 3311 7411 18a3 470e | |
0x0010: 4b7f 4850 c834 0202 0036 9cb8 3c30 3e4a | |
0x0020: 616e 2020 3120 3135 3a32 303a 3534 2063 | |
0x0030: 7963 6c6f 7073 2073 7973 6c6f 675b 3630 | |
0x0040: 3731 335d 3a20 7465 7374 | |
This file contains hidden or 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
MegaCLI SAS RAID Management Tool Ver 1.01.39 Aug 01, 2007 | |
(c)Copyright 2007, LSI Logic Corporation, All Rights Reserved. | |
MegaCli -v | |
MegaCli -help|-h|? | |
MegaCli -adpCount | |
MegaCli -AdpSetProp {CacheFlushInterval -val}|{ RebuildRate -val} | |
|{PatrolReadRate -val}|{BgiRate -val}|{CCRate -val} | |
|{ReconRate -val}|{SpinupDriveCount -val}|{SpinupDelay -val} | |
|{CoercionMode -val}|{ClusterEnable -val}|{PredFailPollInterval -val} |
This file contains hidden or 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
#!/usr/bin/env jruby | |
require 'benchmark' | |
require 'java' | |
module RabbitMQ | |
module RabbitMQ::Client | |
include_package "com.rabbitmq.client" | |
end | |
end |
This file contains hidden or 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
#!/usr/bin/env python | |
import cloudfiles | |
from threading import Thread | |
conn = cloudfiles.get_connection('xxx', 'yyy') | |
container = conn.get_container('zzz') | |
def upload_file(num): | |
file = container.create_object('test.512m.' + str(num)) |
This file contains hidden or 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
#!/usr/bin/env CLASSPATH=".:./lib/rabbitmq-client.jar:./lib/commons-io-1.2.jar:./commons-cli-1.2.jar" jruby --server | |
require 'benchmark' | |
require 'java' | |
module RabbitMQ | |
module RabbitMQ::Client | |
include_package "com.rabbitmq.client" | |
end | |
end |
This file contains hidden or 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
private static Options addCommandLineOptions () | |
{ | |
Option help = new Option( "help", "print this message" ); | |
Option folder = OptionBuilder.withArgName("folder") | |
.hasArg (true) | |
.withDescription ("Name of folder to upload. Only top level objects that are not folders will be uploaded.") | |
.create ("folder"); | |
Option file = OptionBuilder.withArgName("file") |
OlderNewer