rob_

Activity Graph

Page 1 of 1

2017-10-17

[11:09:51] rob_: prutheus: Array#sort
[20:05:46] rob_: has left #ruby: ()

2017-10-12

[07:54:46] rob_: Veejay: 'expect' is a tool to do what you've described, it's not ruby though
[07:55:07] rob_: Veejay: https://linux.die.net/man/1/expect
[07:55:36] rob_: oh, you mentioned expect :)
[07:56:24] rob_: Veejay: http://ruby-doc.org/stdlib-2.4.2/libdoc/pty/rdoc/IO.html#M002150

2017-10-09

[15:00:35] rob_: fChanX: what error do you get
[15:01:25] rob_: fChanX: what distribution are you using
[15:01:53] rob_: it's trying to compile some code but it's failing, do you have the build-essentials package installed (with apt) ?
[15:03:38] rob_: you need to find out what the compile error is, then
[15:03:59] rob_: but it'll be a missing lib or headers or something

2017-10-05

[08:47:06] rob_: awesome_print - doesnt output html afaik but it's an alternative to pp
[08:52:05] rob_: not sure

2017-10-03

[17:36:06] rob_: pry is nice

2017-10-01

[10:38:02] rob_: has joined #ruby
[10:38:45] rob_: hi, im trying to insert large values into a sqlite database using sequel but i get a FloatDomainError for Infinity with the following code, can anyone help? https://gist.github.com/roobert/9e47ba78fdc48b44e845c18553718477

2017-04-30

[01:27:18] rob_: Remote host closed the connection

2017-04-05

[09:05:38] rob_: arne_: your load balancer needs to set X-Forwarded-For ;)

2017-03-30

[16:37:56] rob_: anyone know how to recursively turn child hashes in a hash into a hashie type hash?
[16:39:02] rob_: well, substitute 'hashie' for any other type of object
[16:55:42] rob_: https://gist.github.com/roobert/a040523953728f3f6af718f68a6e2db7
[16:55:56] rob_: i'd like the last two lines to evaluate to true

2017-03-29

[21:23:05] rob_: Ping timeout: 240 seconds
[21:25:42] rob_: has joined #ruby

2017-03-20

[19:46:38] rob_: failshell: look up REPL (read-eval-print loop) - should give you lots of information about how to write what you want

2016-04-15

[07:55:24] rob_: has left #ruby: ()

2016-04-14

[06:05:56] rob_: Disconnected by services

2016-04-13

[09:47:54] rob_: *.net *.split
[09:54:03] rob_: has joined #ruby
[10:37:46] rob_: Ping timeout: 268 seconds
[11:04:20] rob_: has joined #ruby

2016-04-12

[02:19:17] rob_: has joined #ruby

2016-04-06

[18:45:49] rob_: has joined #ruby
[18:47:09] rob_: hi, can anyone tell me how i can access the methods in MyLogger in this example? https://gist.github.com/roobert/c9c4ec9e9e4d1e18b22dea9896543d83
[18:47:32] rob_: i think im misunderstanding modules and the meta clas
[18:51:03] rob_: apeiros: can i adjust either class to make it work? sorry for being vague but do you know what i mean?
[18:52:43] rob_: so i have to move the methods into the Test module?
[18:54:02] rob_: if i do that i still get no such method error
[18:54:38] rob_: https://gist.github.com/roobert/3aa6999ee9a7fb1ce57fd0c45da31aba
[18:57:20] rob_: ah great, thanks for the tips

2016-02-26

[11:17:17] rob_: has joined #ruby
[11:17:51] rob_: hi, anyone who uses guard-rspec, is it possible to change the default 'cmd' to not use bundler? e.g: cmd=rspec rather than cmd="bundler exec rspec"?
[19:54:03] rob_: has left #ruby: ()

2016-01-14

[16:35:12] rob_: has left #ruby: ()

2016-01-11

[13:14:07] rob_: has joined #ruby
[13:14:53] rob_: anyone use vim and rubocop with rbenv? i've installed 2.3.0 and rubocop but i get this error: parser/current is loading parser/ruby22, which recognizes 2.2.x-compliant syntax, but you are running 2.3.0.
[13:15:21] rob_: ive tried upgrading parser gem, vim-rubocop and rubocop

2016-01-03

[15:05:01] rob_: has joined #ruby
[15:05:44] rob_: if my class is essentially an array, am i better off using forwardable or including enumberable and defining an 'each' method, or is there some other preferred method?
[15:39:59] rob_: havenwood: https://github.com/roobert/github_contributions_graph/blob/master/lib/github_contributions_graph/repos.rb
[15:40:12] rob_: havenwood: im wondering if i need to have Days and Repos
[21:39:37] rob_: has left #ruby: ()

2015-11-19

[11:50:32] rob_: has left #ruby: ()

2015-11-17

[05:00:05] rob_: Ping timeout: 246 seconds
[05:01:50] rob_: has joined #ruby
[16:07:08] rob_: vnk: https://www.youtube.com/watch?v=X2sgQ38UDVY
[16:07:15] rob_: is really good, iirc

2015-11-15

[12:27:00] rob_: Quit: rob_
[13:41:26] rob_: has joined #ruby

2015-11-14

[19:45:03] rob_: has joined #ruby
[19:46:08] rob_: hi, im trying to use the ruby-git module which works fine from irb but when i try to do Git.open from within a grape/rack application i get 'private method "open" called for <name of my module>', anyone know why this could be happening?
[19:49:02] rob_: jhass: https://gist.github.com/roobert/d2addc8ddb2650e579af
[19:50:19] rob_: ok, thanks
[21:58:41] rob_: is it possible to include the contents of another file in-line with ruby?
[22:00:00] rob_: i have an api defined in a config file, im using grape to create a REST API
[22:00:02] rob_: https://gist.github.com/roobert/b21137066b81032e79f5
[22:00:09] rob_: it would be nice to have this in a separate file
[22:00:47] rob_: i tried using require relative but i get an error
[22:01:02] rob_: `<top (required)>': undefined method `requires' for main:Object (NoMethodError)
[22:02:30] rob_: https://gist.github.com/roobert/adeb08c84c195cc11f5c
[22:03:03] rob_: require doesn't work either
[22:03:30] rob_: same error, presumably requires is a method for Object
[22:04:00] rob_: jhass: right. is this stupid?
[22:04:45] rob_: Ox0dea: yeah, i dont really want to eval
[22:05:23] rob_: i just dont know what im doing
[22:06:20] rob_: so, i could define the api in YAML but im not sure how i'd convert 'String' to String without eval..
[22:06:39] rob_: Ox0dea: ah ok, i'll do that then, thanks!
[22:07:07] rob_: not better to read YAML and just loop over it?
[22:07:54] rob_: because i want to make this generic, so you can modify a config file to modify the required params for the api
[22:08:31] rob_: that sounds like i'd learn something
[22:09:34] rob_: oh, i agree completely
[22:10:45] rob_: i want to be able to send arbitrary JSON to an API that then writes out a file in the context of the parameters using ERB
[22:11:34] rob_: i could just not bother validating the input
[22:21:04] rob_: i was basically trying to create a generic app that could be configured to require some specific values
[22:28:15] rob_: this, basically, but with a config file that defines required values: https://github.com/roobert/JSONTemplateAPI
[22:29:25] rob_: Ox0dea: which bit? :)
[22:32:02] rob_: i just wanted the configuration to be outside the app
[22:32:15] rob_: im not trying to obfuscate anything

2015-11-05

[13:02:03] rob_: newbsduser: look at socket library
[22:54:12] rob_: has left #ruby: ()

2015-11-04

[17:54:49] rob_: has joined #ruby
[17:55:29] rob_: hi, has anyone run webrick in docker and noticed that it doesnt bind to it's usual default port, but instead a random one? is this configurable by an environment variable?
[17:56:04] rob_: Croves: puts is most common
[17:56:35] rob_: print doesn't append a new line to the string it prints
[17:58:46] rob_: 'p' is equivalent to puts object.inspect. if you install the 'awesome_print' gem and 'require' it then you'll get even nicer output when inspecting data

2015-08-16

[21:13:42] rob_: Quit: rob_

2015-08-03

[08:32:26] rob_: norc: no, but you could do something like {a: 1, b: 2, c: 3}.select { |k,v| true if v != 2 }

2015-07-28

[22:16:02] rob_: ruby-lang498: ..hello?

2015-07-24

[16:02:57] rob_: has joined #ruby
[16:03:41] rob_: hi, im trying to use Dir.glob to recursively list files in a directory, including following symlinks, the problem is that i get duplicate files: https://gist.github.com/roobert/ade8265447c010bb1e13
[16:04:22] rob_: ljarvis: yeah, isnt there a better way? :)
[16:05:38] rob_: ljarvis: a glob pattern that only matches files recursively including symlinked ones would be preferable..
[16:10:17] rob_: ljarvis: ok, thanks for the advice
[16:11:24] rob_: ljarvis: ok, thanks!

2015-06-24

[10:18:17] rob_: has left #ruby: ()

2015-06-13

[18:25:43] rob_: has joined #ruby
[18:26:16] rob_: whats the best way to time something like an http request..?
[18:26:46] rob_: just: start = Time.now; http_request; Time.now - start?

2015-06-11

[14:34:13] rob_: has left #ruby: ()

2015-06-01

[18:14:03] rob_: has joined #ruby

2014-11-23

[17:18:09] rob_: hi, can someone tell me whats wrong with this: http://hastebin.com/mutigituxa.rb
[17:18:25] rob_: i get an undefiend method error
[17:31:33] rob_: basically i want to do this: http://hastebin.com/ofegorobim.rb
[17:34:27] rob_: ah, oops, shouldve used map

2014-02-11

[11:20:51] rob_: hi, is it possible to get a list of object accessors? i have an amazon ec2 instance object and basically want to get the instance config out of it as a hash (or something) without having to individually check a load of methods..
[11:25:53] rob_: mikecmpbll: looking at the aws-sdk code it looks like the class is doing something funky
[11:25:56] rob_: thanks though
[11:31:27] rob_: is it possible to access a method thats defined as self.foo from outside the class? like Object.send(:self.foo)?
[11:34:14] rob_: tobiasvl: ok
[11:36:18] rob_: tobiasvl: this is whats confusing me: http://hastebin.com/yaxiseseno.vbs when https://github.com/aws/aws-sdk-ruby/blob/master/lib/aws/ec2/instance.rb does have the method that it says is missing

2014-01-31

[16:49:33] rob_: is it possible to use ActiveSupport::HashWithIndifferentAccess.new recursively on a nested hash?
[16:52:35] rob_: existensil: ahh thank you - i seem to get this though: error: undefined method `nested_under_indifferent_access' for {"volume_size"=>"100G"}:Hash
[16:52:50] rob_: existensil: which makes me thing the sub hash *isnt* indifferent..

2014-01-07

[18:39:45] rob_: hi, when using activerecord without rails, is it best to first create a schema.rb file containing an ActiveRecord::Schema.define in it and then use migrations for upgrades?

2014-01-06

[21:33:15] rob_: hi, how can i include views in my schema? i've tried adding some SQL in an exec in a migration but for some reason i get a no such table error. also when i do a db:schema:dump i dont see the views in the schema.rb..
[21:34:36] rob_: lethjakman: i mean an SQL view...
[21:35:29] rob_: lethjakman: ok.. how should i handle views? i have something like this: http://hastebin.com/litumavena.rb
[21:36:24] rob_: lethjakman: OOPS, my mistake, i think i see the problem..
[21:36:59] rob_: lethjakman: the model class name doesnt match the view name i specified in the migration!
[21:37:42] rob_: lethjakman: how do you mean?
[21:44:19] rob_: lethjakman: thanks