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
2010 07 09 10:30 | |
Galois Tech Talk: Requirements and Performance of Data Intensive, Irregular Applications | |
Iavor S. Diatchki | |
Pacific NW National Laboratory | |
Analytics | |
Security | |
Anomaly detection |
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 ruby | |
require 'webrick' | |
require 'webrick/httpproxy' | |
callback = proc do |request, response| | |
if response.content_type =~ /jpe?g|png|gif/ | |
f = Tempfile.new("upside-down") | |
f.write response.body | |
f.close |
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 ruby | |
require 'webrick' | |
require 'webrick/httpproxy' | |
callback = proc do |request, response| | |
if response.content_type =~ /jpe?g|png|gif/ | |
f = Tempfile.new("upside-down") | |
f.write(response.body) | |
f.close |
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
undefined method `taint!' on an instance of Hash. | |
kernel/delta/kernel.rb:85:in `taint! (method_missing)' | |
kernel/common/hash.rb:555:in `reject' |
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
; ModuleID = 'Siren' | |
%0 = type { float, float, float, float, float } | |
declare float @powf(float, float) | |
declare float @sinf(float) | |
declare float @cosf(float) |
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
class Int | |
attr_reader :value | |
def initialize(value) | |
@value = value | |
end | |
def accept(visitor, *data) | |
visitor.visit_int(self, *data) | |
end | |
def fold(rules) | |
rules[Int].call(value) |
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
irb(main):028:0> Complex(-1,1).real == -1 | |
=> true | |
irb(main):029:0> -1 ** 0 | |
=> -1 | |
irb(main):030:0> Complex(-1,1).real ** 0 | |
=> 1 |
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
NoMethodError (You have a nil object when you didn't expect it! | |
You might have expected an instance of ActiveRecord::Base. | |
The error occurred while evaluating nil.[]): | |
lib/heap_dump/dumped_lookup_table.rb:7:in `each' | |
lib/heap_dump/dumped_module.rb:38:in `find_class' | |
lib/heap_dump/decoder.rb:166:in `decode' | |
lib/read_dump.rb:23:in `initialize' | |
lib/read_dump.rb:32:in `session' | |
app/controllers/heap_viewer_controller.rb:5:in `show' |
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
require 'llvm/core' | |
require 'llvm/execution_engine' | |
require 'llvm/transforms/scalar' | |
LLVM.init_x86 | |
mod = LLVM::Module.new("Function Pointers") | |
F = LLVM::Function([LLVM::Int], LLVM::Int) | |
FP = LLVM::Pointer(F) |
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
class Action < Struct.new(:action) | |
def initialize(&block) | |
super block | |
end | |
def call | |
action.call | |
end | |
def seq(rhs) |