« Back to channel list

#ruby - 14 November 2017

« Back 1 day Forward 1 day »
[00:02:38] nehero: Ahhhh and there we have it folks :) Thanks for talking me through it @apeiros
[00:02:51] RickHull: >> require 'yaml'; "\x01\x02\x03".to_yaml
[00:02:52] ruby[bot]: RickHull: # => "--- !binary |-\n AQID\n" (https://eval.in/899328)
[00:03:21] alveric2: has joined #ruby
[00:03:41] cschneid_: has joined #ruby
[00:03:59] apeiros: looks like. quite possible that yaml spec allows other ways too.
[00:04:19] RickHull: yeah, I'm sure there is a hex-like way to do it
[00:04:51] cagomez: has joined #ruby
[00:04:53] apeiros: would certainly be nice
[00:04:56] apparition: has joined #ruby
[00:05:05] cagomez: has joined #ruby
[00:07:45] uZiel: has joined #ruby
[00:10:10] nehero: Yeah I ended up encoding the strings to base64 and using yamls !!binary syntax
[00:10:33] mjolnird: has joined #ruby
[00:10:36] hutch34: has joined #ruby
[00:10:43] RickHull: I'd rather look at hex than base64, but for a nonce it probably doesn't matter
[00:11:29] RickHull: so uh, what does that key unlock? ;)
[00:14:56] jackjackdripper1: has joined #ruby
[00:15:58] cdg: has joined #ruby
[00:19:41] nehero: has joined #ruby
[00:20:28] hutch34: has joined #ruby
[00:20:38] nadir: has joined #ruby
[00:23:45] jenrzzz: has joined #ruby
[00:23:45] jenrzzz: has joined #ruby
[00:25:50] paulr: has joined #ruby
[00:29:51] noizex: has joined #ruby
[00:29:52] paradisaeidae: has joined #ruby
[00:29:57] paradisaeidae_: has joined #ruby
[00:30:24] hutch34: has joined #ruby
[00:31:38] b100s: has joined #ruby
[00:32:48] goyox86: has joined #ruby
[00:33:32] b100s: hi2all; i have structure like that: `h={:foo=>{:sid1=>[1, 1, 1], :sid2=>[2, 2, 2]}, :bar=>{:sid1=>[3, 3, 3], :sid2=>[4, 4, 4]}}` hash.hash.arr; i would like to get all array elements by key of first hash, e.g.: y=0; h['foo'].values.each { |x| y+=x }; y # => 9
[00:33:47] b100s: but my example is wrong
[00:34:23] b100s: this one is wotk: `y=0;h[:foo].values.each { |x| x.each {|xx| y+=xx} }; y` but i expext something more obvious and easy
[00:34:23] cschneid_: has joined #ruby
[00:36:39] baweaver: Depends on the version of Ruby
[00:36:51] baweaver: 2.4.x has Array#sum
[00:37:04] RickHull: tmp = {}; h.each { |k, v| tmp[k] = v.values.inject(&:+) }
[00:37:10] RickHull: something like that maybe
[00:37:23] tamouse__: has joined #ruby
[00:37:30] RickHull: values.inject(0, &:+) ?
[00:37:30] cagomez: has joined #ruby
[00:37:38] baweaver: def get_value_sum(hash, key) hash[key].values.flatten.sum end
[00:37:50] cagomez: has joined #ruby
[00:38:06] RickHull: that said, I'm planning on forever s/inject/reduce/ baweaver :)
[00:38:10] baweaver: def get_value_sum(hash, key) hash[key].values.flatten.reduce(0, :+) end
[00:38:13] baweaver: Reduce uses an odd variant of symbol passing because of 1.8.x
[00:38:45] RickHull: RIP smalltalk heritage
[00:38:46] baweaver: I just use reduce because I've used JS and some other languages where reduce and foldLeft are the names
[00:39:13] Devalo: has joined #ruby
[00:39:17] baweaver: that, and the name makes more sense. foldLeft > reduce > inject
[00:39:37] baweaver: inject isn't very intention revealing when you get down to it.
[00:39:47] b100s: baweaver, RickHull, looks likes `h[:foo].values.flatten` is enough
[00:40:07] RickHull: yes, for any one key
[00:40:20] RickHull: you'll have to suck :foo out to generalize
[00:40:21] hutch34: has joined #ruby
[00:40:45] baweaver: h.map { |k,v| [k, v.values.flatten] }.to_h
[00:40:48] mim1k: has joined #ruby
[00:43:51] RickHull: baweaver: while yours is cleaner in one respect, for not having a local var, the array/hash equivalence isn't super clean and would tend to generate a lot of garbage, I think
[00:43:56] b100s: RickHull, haven't get you
[00:44:34] b100s: `y=0; h[:foo].values.flatten.each {|x| y+=x }; y` everything work good;
[00:44:51] b100s: or are there any caveates?
[00:45:11] RickHull: you can express a sum functionally with #sum or #reduce
[00:45:21] baweaver: h[:foo].values.flatten.reduce(0, :+)
[00:45:23] RickHull: and you can express your operation independent of the key :foo
[00:45:40] RickHull: but if you're happy, c'est magnifique!
[00:45:45] baweaver: >> [1,2,3].reduce(0, :+)
[00:45:46] ruby[bot]: baweaver: # => 6 (https://eval.in/899338)
[00:45:49] b100s: it will be great, but actually i need just get them - all elements of arrays of hashes
[00:45:58] b100s: actual action is not sum for me : )
[00:46:39] cschneid_: has joined #ruby
[00:46:51] b100s: iteration by first level hash by keys is necessary as well
[00:47:06] b100s: so, looks like everything what i want is here
[00:47:09] b100s: thanks a lot
[00:47:32] b100s: flatten - is actually was what helped me
[00:48:39] Freshnuts: has joined #ruby
[00:50:16] hutch34: has joined #ruby
[00:52:17] goyox86: has joined #ruby
[00:57:10] eckhardt: has joined #ruby
[01:00:10] hutch34: has joined #ruby
[01:01:03] Azure: has joined #ruby
[01:01:48] griffindy: has joined #ruby
[01:02:47] enterprisey: has joined #ruby
[01:04:57] jenrzzz: has joined #ruby
[01:04:57] jenrzzz: has joined #ruby
[01:10:06] hutch34: has joined #ruby
[01:11:58] jenrzzz: has joined #ruby
[01:11:58] jenrzzz: has joined #ruby
[01:12:24] ledestin: has joined #ruby
[01:20:02] hutch34: has joined #ruby
[01:21:03] alfiemax: has joined #ruby
[01:25:33] kryptoz: has joined #ruby
[01:26:59] cagomez: has joined #ruby
[01:27:10] cagomez: has joined #ruby
[01:27:23] cdg_: has joined #ruby
[01:28:15] cagomez: has joined #ruby
[01:29:56] hutch34: has joined #ruby
[01:39:54] hutch34: has joined #ruby
[01:46:12] konsolebox: has joined #ruby
[01:47:25] kryptoz: has joined #ruby
[01:49:50] hutch34: has joined #ruby
[01:51:13] dcunit3d: has joined #ruby
[01:56:58] cdg: has joined #ruby
[01:59:39] hutch34: has joined #ruby
[02:01:31] xco: has joined #ruby
[02:04:42] drowze: has joined #ruby
[02:05:39] AlexRussia: has joined #ruby
[02:07:27] aroaminggeek: has joined #ruby
[02:09:38] hutch34: has joined #ruby
[02:11:49] bmurt: has joined #ruby
[02:20:44] hutch34: has joined #ruby
[02:21:24] alfiemax_: has joined #ruby
[02:24:56] orbyt_: has joined #ruby
[02:25:13] alfiemax: has joined #ruby
[02:30:23] hutch34: has joined #ruby
[02:36:50] millz: has joined #ruby
[02:39:03] tamouse__: has joined #ruby
[02:39:50] mjolnird: has joined #ruby
[02:39:57] cdg: has joined #ruby
[02:40:07] alfiemax: has joined #ruby
[02:41:17] mim1k: has joined #ruby
[02:48:51] cschneid_: has joined #ruby
[02:52:01] d^sh_: has joined #ruby
[02:53:23] hutch34: has joined #ruby
[02:54:10] cdg: has joined #ruby
[02:54:36] jrafanie: has joined #ruby
[02:56:20] alfiemax: has joined #ruby
[02:57:25] kryptoz: has joined #ruby
[02:58:24] orbyt_: has joined #ruby
[03:00:17] cadillac_: has joined #ruby
[03:02:36] zacts: has joined #ruby
[03:02:36] tamouse__: has joined #ruby
[03:03:16] hutch34: has joined #ruby
[03:06:46] alfiemax: has joined #ruby
[03:09:30] alfiemax: has joined #ruby
[03:13:15] hutch34: has joined #ruby
[03:19:54] kitsunenokenja: has joined #ruby
[03:23:07] hutch34: has joined #ruby
[03:26:18] cpallares: has joined #ruby
[03:26:51] Silthias: has joined #ruby
[03:27:41] bmurt: has joined #ruby
[03:28:42] alfiemax: has joined #ruby
[03:29:40] char_var[buffer]: has joined #ruby
[03:29:44] ap4y1: has joined #ruby
[03:31:47] knight33: has joined #ruby
[03:32:58] hutch34: has joined #ruby
[03:41:02] uZiel: has joined #ruby
[03:42:13] knight33: has joined #ruby
[03:42:57] hutch34: has joined #ruby
[03:47:43] haxx0r: has joined #ruby
[03:48:27] haxx0r: can we implement something like Time.is_older?(3.months.ago) ? I really hate to see people write syntax like: if created_at < Time.now-3.month
[03:52:52] hutch34: has joined #ruby
[03:53:12] alex``: has joined #ruby
[03:53:21] cpallares: has joined #ruby
[03:54:06] ur5us: has joined #ruby
[03:56:38] guacamole: has joined #ruby
[03:57:13] mozzarella: is that not some rails monkey patching?
[03:57:27] mozzarella: just add more monkey patching
[03:58:57] naprimer: has joined #ruby
[04:01:26] haxx0r: yes it is, absolutely
[04:02:37] haxx0r: but, * if date.older?(3.months) * sounds good to me
[04:02:45] hutch34: has joined #ruby
[04:03:58] RickHull: it's pretty odd IMHO for 3.respond_to?(:months)
[04:04:23] RickHull: >> 3.respond_to?(:ducks)
[04:04:24] ruby[bot]: RickHull: # => false (https://eval.in/899366)
[04:05:37] baweaver: haxx0r: #RubyOnRails, though: where(created_at: 0..3.months.ago)
[04:05:42] baweaver: ranges work
[04:06:19] haxx0r: i know they do
[04:07:06] haxx0r: i gonna monkey patch this now. drives me nutz. 5 year old code, reads like shit
[04:09:16] CrazyEddy: has joined #ruby
[04:12:41] hutch34: has joined #ruby
[04:13:14] aroaminggeek: has joined #ruby
[04:16:06] ur5us: has joined #ruby
[04:22:36] hutch34: has joined #ruby
[04:29:06] NightMonkey: has joined #ruby
[04:33:21] govg: has joined #ruby
[04:34:24] Dimik: has joined #ruby
[04:34:53] hutch34: has joined #ruby
[04:41:48] mim1k: has joined #ruby
[04:44:52] hutch34: has joined #ruby
[04:48:34] guacamole: has joined #ruby
[04:48:49] gigetoo: has joined #ruby
[04:54:41] hutch34: has joined #ruby
[04:55:41] eckhardt: has joined #ruby
[05:00:46] duderonomy: has joined #ruby
[05:01:50] nehero: has joined #ruby
[05:02:36] aroaminggeek: has joined #ruby
[05:04:50] hutch34: has joined #ruby
[05:06:43] iamarun: has joined #ruby
[05:08:16] rajno: has joined #ruby
[05:14:33] hutch34: has joined #ruby
[05:16:02] Silthias: has joined #ruby
[05:19:24] konsolebox: has joined #ruby
[05:24:00] alfiemax: has joined #ruby
[05:24:31] hutch34: has joined #ruby
[05:28:59] Mon_Ouie: has joined #ruby
[05:34:26] hutch34: has joined #ruby
[05:35:51] rabajaj: has joined #ruby
[05:38:05] k3rn31: has joined #ruby
[05:40:11] mim1k: has joined #ruby
[05:43:54] Niak25: has joined #ruby
[05:44:21] hutch34: has joined #ruby
[05:47:11] Jameser: has joined #ruby
[05:52:56] sleetdrop: has joined #ruby
[05:54:17] hutch34: has joined #ruby
[05:57:25] kies: has joined #ruby
[06:03:56] anisha: has joined #ruby
[06:04:08] hutch34: has joined #ruby
[06:04:53] enterprisey: has joined #ruby
[06:05:30] JsilverT: has joined #ruby
[06:07:11] cdg: has joined #ruby
[06:14:05] hutch34: has joined #ruby
[06:14:33] apofis: has joined #ruby
[06:14:52] AxelAlex: has joined #ruby
[06:16:50] AnoHito: has joined #ruby
[06:24:02] hutch34: has joined #ruby
[06:24:34] ltd: has left #ruby: ()
[06:25:38] Puffball: has joined #ruby
[06:27:02] aurelien: has joined #ruby
[06:33:56] hutch34: has joined #ruby
[06:38:13] biberu: has joined #ruby
[06:38:14] jenrzzz: has joined #ruby
[06:40:07] Devalo: has joined #ruby
[06:42:59] apeiros: has joined #ruby
[06:43:41] bhaak: has joined #ruby
[06:43:51] hutch34: has joined #ruby
[06:44:56] cschneid_: has joined #ruby
[06:46:10] Asher: has joined #ruby
[06:48:01] cdg: has joined #ruby
[06:53:22] cschneid_: has joined #ruby
[06:53:45] hutch34: has joined #ruby
[06:55:57] xall: has joined #ruby
[06:58:48] gradio: has joined #ruby
[06:59:48] apeiros: has joined #ruby
[06:59:58] iamarun: has joined #ruby
[07:00:18] LocaMocha: has joined #ruby
[07:03:40] hutch34: has joined #ruby
[07:05:32] dionysus69: has joined #ruby
[07:13:33] hutch34: has joined #ruby
[07:18:44] plexigras: has joined #ruby
[07:23:28] hutch34: has joined #ruby
[07:28:05] cdg: has joined #ruby
[07:29:15] elphe: has joined #ruby
[07:30:44] conta: has joined #ruby
[07:31:04] Puffball: has joined #ruby
[07:31:47] alex``: has joined #ruby
[07:32:35] guille-moe: has joined #ruby
[07:35:29] hutch34: has joined #ruby
[07:36:26] reber: has joined #ruby
[07:39:11] uZiel: has joined #ruby
[07:41:13] Tempesta: has joined #ruby
[07:43:09] AliasSpider: has joined #ruby
[07:43:50] Tempesta: has joined #ruby
[07:45:23] hutch34: has joined #ruby
[07:55:15] hutch34: has joined #ruby
[08:00:17] tAn: has joined #ruby
[08:00:46] Mon_Ouie: has joined #ruby
[08:02:02] charliesome: has joined #ruby
[08:04:12] cdg: has joined #ruby
[08:05:10] hutch34: has joined #ruby
[08:06:08] andikr: has joined #ruby
[08:09:31] jenrzzz: has joined #ruby
[08:09:31] jenrzzz: has joined #ruby
[08:13:12] ged: has joined #ruby
[08:14:46] aufi: has joined #ruby
[08:15:05] hutch34: has joined #ruby
[08:17:26] guille-moe: has joined #ruby
[08:20:18] biberu: has joined #ruby
[08:21:04] David_H__: has joined #ruby
[08:24:19] claudiuinberlin: has joined #ruby
[08:24:59] hutch34: has joined #ruby
[08:27:40] nicesignal: has joined #ruby
[08:29:00] charliesome: has joined #ruby
[08:29:52] mark_66: has joined #ruby
[08:33:49] Hexafox[I]: has joined #ruby
[08:34:08] apeiros: has joined #ruby
[08:34:53] hutch34: has joined #ruby
[08:36:50] dinfuehr: has joined #ruby
[08:38:06] quobo: has joined #ruby
[08:44:52] hutch34: has joined #ruby
[08:45:16] tomphp: has joined #ruby
[08:49:23] sammi`: has joined #ruby
[08:54:46] hutch34: has joined #ruby
[08:56:12] cdg: has joined #ruby
[08:57:02] blackmesa: has joined #ruby
[08:57:46] InfinityFye: has joined #ruby
[08:58:41] mikecmpbll: has joined #ruby
[08:59:11] cschneid_: has joined #ruby
[09:00:26] Silthias: has joined #ruby
[09:04:17] mjolnird: has joined #ruby
[09:04:51] hutch34: has joined #ruby
[09:05:13] anisha: has joined #ruby
[09:07:35] xall: has joined #ruby
[09:08:48] elphe: has joined #ruby
[09:09:29] zautomata: has joined #ruby
[09:12:25] aupadhye: has joined #ruby
[09:14:36] hutch34: has joined #ruby
[09:20:17] guille-moe: has joined #ruby
[09:24:32] hutch34: has joined #ruby
[09:25:52] waveprop: just had the revelation that tmux is a play on / false rhyme with emacs
[09:26:55] guille-moe: has joined #ruby
[09:27:20] Beams: has joined #ruby
[09:27:37] mim1k: has joined #ruby
[09:31:22] blackmesa: has joined #ruby
[09:32:15] cdg: has joined #ruby
[09:33:29] tamouse__2: has joined #ruby
[09:34:26] hutch34: has joined #ruby
[09:34:54] DrCode: has joined #ruby
[09:34:56] Ober: making fun of the Emux project
[09:37:05] waveprop: running racket, i see #<text: here> in error output!
[09:37:50] Ober: haha I let emux.org go and Godaddy is charing $69.99 for it
[09:38:32] Ober: bastards
[09:38:45] waveprop: you could have sold it yourself and had enough to buy a few pizzas
[09:38:45] Ober: a play on Tmux but emacs.
[09:39:10] Ober: as if it's worth anything
[09:39:47] tamouse__2: has left #ruby: ()
[09:43:41] mim1k: has joined #ruby
[09:44:21] hutch34: has joined #ruby
[09:45:09] TomyWork: has joined #ruby
[09:54:16] hutch34: has joined #ruby
[09:55:50] aufi: has joined #ruby
[09:58:57] kapil___: has joined #ruby
[10:01:25] ferr: has joined #ruby
[10:01:44] ferr: has left #ruby: ()
[10:04:08] hutch34: has joined #ruby
[10:08:14] cdg: has joined #ruby
[10:10:47] roshanavand: has joined #ruby
[10:11:14] jottr: has joined #ruby
[10:14:05] hutch34: has joined #ruby
[10:14:50] beauby: has joined #ruby
[10:15:17] rgr: has joined #ruby
[10:22:04] guille-moe: has joined #ruby
[10:22:55] Puffball: has joined #ruby
[10:23:17] cajone: has joined #ruby
[10:23:56] ShalokShalom_: has joined #ruby
[10:23:56] hutch34: has joined #ruby
[10:24:50] alexday: has joined #ruby
[10:27:40] guille-moe: has joined #ruby
[10:29:16] alexday: I am having a problem. There is a chef cookbook, where there is an attributes/default.rb and then there is an attributes/development.rb . and then there is a templates folder with .erb file. So I just wanted to render that erb file using the values in the file in the attributes folder. but the problem is in (say) attributes/default.rb its written like force_attributes['foo']['bar']['baz'] = [ 'something' ] ;
[10:29:17] alexday: and when I require_relative "attributes/default.rb" then it says undefined local variable or method `force_override' for main:Object . how do I get across this
[10:33:55] hutch34: has joined #ruby
[10:34:27] haxx0r: has left #ruby: ()
[10:36:52] alfiemax: has joined #ruby
[10:39:17] adaedra: I think this is a question more suited to the chef channel
[10:39:19] ruby[bot]: Please join #chef for help with your cookbooks.
[10:39:26] Bish: how would i quickly check if something is random data
[10:39:37] Bish: entropy or whatever
[10:39:39] adaedra: Check for unicorns
[10:40:13] Bish: adaedra: haven't read your nick in a while
[10:41:18] Bish: alexday: guess this owuld be a rails question? since it's about how to render templates?
[10:41:24] Bish: so you might wanna try rails?
[10:41:27] Bish: as in #rails
[10:41:41] adaedra: Bish: chef
[10:41:56] Bish: uhm, is chef a library otherwise im confused?
[10:42:05] adaedra: It's a devops toolkit
[10:42:12] Bish: holy crap what a stupid name
[10:42:14] Bish: gotta look that up
[10:42:33] Bish: u got to be kidding
[10:42:58] adaedra: ?chef Bish
[10:42:58] ruby[bot]: Bish: Please join #chef for help with your cookbooks.
[10:43:10] Bish: well i don't have a coobbook
[10:43:49] hutch34: has joined #ruby
[10:44:17] cdg: has joined #ruby
[10:45:00] Bish: haha someone should build a linux distro around that
[10:45:09] Bish: the fuck.
[10:45:34] surrounder: what's wrong with it?
[10:45:43] adaedra: people build linux installs with that
[10:46:55] Lyubo1: has joined #ruby
[10:47:43] Bish: surrounder: naming alone
[10:47:56] Bish: it's cool, never heard it tho
[10:48:04] Bish: is it fancy rake? would that describe it?
[10:48:22] Bish: adaedra: well, linux from scratch-like?
[10:48:31] adaedra: No, configuration of services
[10:48:35] surrounder: it's like configuration management
[10:48:43] surrounder: just like puppet and ansible and salt and .. and ..
[10:48:47] Bish: yeah i understand, but when saying " a linux distro" with it
[10:49:03] zanoni: has joined #ruby
[10:49:04] Bish: would mean kinda like gentoo's "portage"
[10:49:07] adaedra: You have a blank linux (or windows) just installed, you apply your chef things, and you have a fully setup servers
[10:49:49] surrounder: it's rather distro-agnostic if it's done well
[10:49:52] adaedra: It will install packages, put in files, start services, create users, ...
[10:49:58] Bish: surrounder: i get what it is used for.. i mean you COULD make a linux distro where these chef recipes => package manager
[10:50:11] surrounder: like we don't have enough distro's yet
[10:50:23] Bish: well, if they have a right to exist..
[10:50:30] Bish: i love gentoo, but i really dislike the complexity of portage
[10:50:34] elomatreb: Isn't that basically the concept of the AUR? Distributing build scripts for packages?
[10:50:43] Bish: pretty sure this can be done more easily
[10:50:51] mim1k: has joined #ruby
[10:50:55] Bish: elomatreb: yes, that's like the only option for gentoo users, too
[10:51:00] Bish: (that's a lie, but still).
[10:51:00] adaedra: we're getting completely off-topic here though, people
[10:51:25] alexday: no one is replying in chef channe;
[10:51:33] surrounder: adaedra: is there an offtopic channel?
[10:51:38] adaedra: so I invite you to continue in #ruby-offtopic :)
[10:52:34] Silthias1: has joined #ruby
[10:53:07] adaedra: alexday: you may want to wait a bit, people are not always on IRC
[10:53:44] hutch34: has joined #ruby
[10:56:51] anisha: has joined #ruby
[11:03:37] hutch34: has joined #ruby
[11:04:11] bigkevmcd: has joined #ruby
[11:04:34] ldnunes: has joined #ruby
[11:04:47] jaruga: has joined #ruby
[11:13:32] hutch34: has joined #ruby
[11:15:25] alexday: https://gist.github.com/argentum47/f03fae9655d1f001af73e4b21eef40e6 how do I make this work. ruby file1.rb
[11:20:46] apeiros: alexday: in default.rb, also use @force_attribute (you omitted the @), and ensure that you access existing keys.
[11:21:18] apeiros: e.g. @force_attribute['a'] ||= {}; @force_attribute['a']['b'] = 'abcd' (you can replace the ; with newlines in your code)
[11:21:55] alexday: thats the problem. I cannot change that file. :) . I will have to wait for the chef guys to ell me how do they do this. I cannot understand from the codebase, still looking though
[11:22:36] alfiemax: has joined #ruby
[11:23:29] hutch34: has joined #ruby
[11:23:49] apeiros: alexday: a local variable is local to the given file. you can't access it elsewhere
[11:24:12] apeiros: or is this a case of "bad example"? is it *really* force_attribute? or is it maybe ForceAttribute?
[11:24:50] apeiros: note that Foo, foo, @foo, @@foo and $foo are 5 different variables
[11:25:39] apeiros: ACTION afk ~20min
[11:26:41] alexday: yeah I understand they are all different, I copy pasted the names from the file where the variables are defined after the first time I got the error :P
[11:27:11] alexday: I also tried with force_attribute , without the @
[11:33:22] hutch34: has joined #ruby
[11:42:47] tlaxkit: has joined #ruby
[11:43:20] hutch34: has joined #ruby
[11:46:30] RougeRR: has joined #ruby
[11:48:46] alexday: https://github.com/chef/chef/blob/master/lib/chef/mixin/from_file.rb#L28
[11:49:51] adaedra: Got your answer in #chef?
[11:51:19] cdg: has joined #ruby
[11:53:08] vtx: has joined #ruby
[11:53:11] hutch34: has joined #ruby
[11:57:09] gregf_: has joined #ruby
[11:57:39] vtx: hi guys. i am trying to mimick a request that i’m seeing in my browser. i’m using RestClient to do this. looking at the params sent in for the request i’m mimicking, some param names contain a . and a _, i.e. i have params called “_.id” and “_.name”. in ruby, i’m trying to create a hash with these same param names, e.g { :_.id => “1234”, :_.name => “myid” }, but ruby doesn’t like that my symbols have underscores and periods in them. is there
[11:57:40] vtx: way to define keys of hashes with periods or underscores?
[12:00:08] tbuehlmann: vtx: sure, either use strings as keys or strings as symbols {'_.id': '1234', '_.name': 'myid}
[12:00:41] hs366: has joined #ruby
[12:02:03] hogetaro: has joined #ruby
[12:02:26] Mon_Ouie: has joined #ruby
[12:02:53] k3rn31_: has joined #ruby
[12:03:11] hutch34: has joined #ruby
[12:03:15] alexday: adaedra: nope
[12:03:21] alexday: everyone is offline it seems
[12:03:55] adaedra: Waiting for their cookbooks to play
[12:06:39] selim: has joined #ruby
[12:12:37] cgfbee: has joined #ruby
[12:13:04] hutch34: has joined #ruby
[12:13:17] drowze: has joined #ruby
[12:15:29] airdisa: has joined #ruby
[12:19:53] guille-moe: has joined #ruby
[12:22:59] hutch34: has joined #ruby
[12:23:05] drowze: has left #ruby: ("WeeChat 1.4")
[12:23:48] drowze: has joined #ruby
[12:25:19] drowze: has joined #ruby
[12:27:24] cdg: has joined #ruby
[12:31:18] truenito: has joined #ruby
[12:32:54] hutch34: has joined #ruby
[12:33:30] Jameser: has joined #ruby
[12:38:50] kryptoz: has joined #ruby
[12:42:52] hutch34: has joined #ruby
[12:47:21] drowze: has joined #ruby
[12:52:45] hutch34: has joined #ruby
[12:59:07] aScottishBoat: has joined #ruby
[13:00:15] Kyle: has joined #ruby
[13:00:36] conta: has joined #ruby
[13:00:42] AliasSpider: has joined #ruby
[13:01:52] conta: has joined #ruby
[13:02:09] Beams: has joined #ruby
[13:02:43] hutch34: has joined #ruby
[13:03:29] guille-moe: has joined #ruby
[13:03:33] xco: has joined #ruby
[13:12:31] hutch34: has joined #ruby
[13:14:16] shinnya: has joined #ruby
[13:18:33] Lyubo1: has joined #ruby
[13:20:05] jottr: has joined #ruby
[13:20:28] tvw: has joined #ruby
[13:20:34] gradio: has joined #ruby
[13:22:34] hutch34: has joined #ruby
[13:22:49] kryptoz: has joined #ruby
[13:24:52] coffeejunk: has left #ruby: ()
[13:27:56] airdisa: has joined #ruby
[13:28:05] bmurt: has joined #ruby
[13:31:43] airdisa: has joined #ruby
[13:32:26] hutch34: has joined #ruby
[13:39:01] alfiemax: has joined #ruby
[13:41:31] rgr: has joined #ruby
[13:42:13] alfiemax_: has joined #ruby
[13:42:31] tao_: has joined #ruby
[13:45:31] rouge: has joined #ruby
[13:46:56] marr: has joined #ruby
[13:47:49] Beams: has joined #ruby
[13:48:53] Technodrome: has joined #ruby
[13:50:14] banisterfiend: has joined #ruby
[13:54:19] cschneid_: has joined #ruby
[13:55:36] kryptoz: has joined #ruby
[13:58:04] mson: has joined #ruby
[13:58:06] nicesignal: has joined #ruby
[13:58:54] guille-moe: has joined #ruby
[13:59:11] cdg: has joined #ruby
[13:59:34] polishdub: has joined #ruby
[13:59:58] dinoangelov: has joined #ruby
[14:02:08] cdg_: has joined #ruby
[14:02:29] elphe: has joined #ruby
[14:04:00] nhhc: has joined #ruby
[14:04:34] howdoi: has joined #ruby
[14:05:28] xall: has joined #ruby
[14:05:44] drowze: has joined #ruby
[14:06:54] evie_hammond: has joined #ruby
[14:08:17] mikecmpbll: does anybody know of anything to report on the licences of dependencies in a Gemfile.lock?
[14:14:00] yahmds: has joined #ruby
[14:15:07] Beams: has joined #ruby
[14:18:03] lupine: mikecmpbll: license_finder
[14:18:11] lupine: we use it extensively
[14:21:49] hutch34: has joined #ruby
[14:22:34] Jason: has joined #ruby
[14:23:43] cschneid_: has joined #ruby
[14:24:47] kryptoz: has joined #ruby
[14:24:56] dkotlica: has joined #ruby
[14:26:41] Beams: has joined #ruby
[14:27:34] dkotlica: has left #ruby: ()
[14:27:39] dkotlica: has joined #ruby
[14:32:04] airdisa_: has joined #ruby
[14:32:24] hutch34: has joined #ruby
[14:32:30] mim1k_: has joined #ruby
[14:33:25] cabotto: has joined #ruby
[14:34:50] mikecmpbll: lupine : <33
[14:35:05] kryptoz: has joined #ruby
[14:35:57] oleo: has joined #ruby
[14:37:30] yahmds: has joined #ruby
[14:37:43] nhhc: has joined #ruby
[14:38:36] darix: now we just need to get everyone to use spdx format for their gem license tags
[14:39:04] griffindy: has joined #ruby
[14:42:30] AxelAlex: has joined #ruby
[14:42:57] gnufied: has joined #ruby
[14:44:06] duckpuppy: has joined #ruby
[14:48:53] DLSteve: has joined #ruby
[14:49:31] mikecmpbll: hmm. that's frustrating. won't run with rubyzip 1.7.7 installed even tho i have the required version also
[14:52:50] Beams: has joined #ruby
[14:55:08] tAn: has joined #ruby
[14:55:13] drowze: has joined #ruby
[14:58:14] kryptoz: has joined #ruby
[14:58:51] synthroid: has joined #ruby
[15:06:06] hutch34: has joined #ruby
[15:06:25] iamarun: has joined #ruby
[15:06:44] banisterfiend: has joined #ruby
[15:09:49] banisterfiend: has joined #ruby
[15:11:00] reallycooldude: has joined #ruby
[15:12:12] hutch34: has joined #ruby
[15:12:55] Rapture: has joined #ruby
[15:16:33] john__: has joined #ruby
[15:19:38] reallycooldude: has joined #ruby
[15:23:04] jackjackdripper: has joined #ruby
[15:24:29] rippa: has joined #ruby
[15:27:33] netherwolfe: has joined #ruby
[15:28:07] synthroid: has joined #ruby
[15:28:13] blackmesa: has joined #ruby
[15:30:53] drowze: has joined #ruby
[15:33:07] blackmesa1: has joined #ruby
[15:33:22] mikecmpbll: has joined #ruby
[15:34:12] PaulCapestany: has joined #ruby
[15:34:26] SuperLag: has joined #ruby
[15:35:09] mim1k: has joined #ruby
[15:35:46] hutch34: has joined #ruby
[15:38:12] AliasSpider: has joined #ruby
[15:40:37] drowze: has joined #ruby
[15:42:00] gizmore: has joined #ruby
[15:42:12] drowze: has joined #ruby
[15:44:28] tacoboy: has joined #ruby
[15:44:31] tAn: has joined #ruby
[15:45:07] aScottishBoat: any sysadmins who use Ruby?
[15:45:16] banisterfiend: has joined #ruby
[15:45:23] aScottishBoat: I wish there was a modern book on Ruby sysadmin
[15:45:26] nadir: has joined #ruby
[15:45:37] blackmesa1: has joined #ruby
[15:47:24] whippythellama: has joined #ruby
[15:47:49] banisterfiend: has joined #ruby
[15:48:20] c-c: aScottishBoat: since homebrew is ruby, thousands of sysadmins use ruby
[15:49:01] chouhoulis: has joined #ruby
[15:49:47] aScottishBoat: c-c: really? I didn't know that (thousands of sysadmins using ruby)
[15:51:25] aScottishBoat: still wish there was a modern book on leanpub for 2k17 sysadmin work with Ruby
[15:53:27] tAn: has joined #ruby
[15:53:46] blackmesa1: has joined #ruby
[15:55:14] hutch34: has joined #ruby
[15:56:23] jrafanie: has joined #ruby
[15:56:31] ethicalhacker: has joined #ruby
[16:00:34] AxelAlex: has joined #ruby
[16:03:25] truenito: has joined #ruby
[16:03:50] guille-moe: has joined #ruby
[16:03:51] vipaca: has joined #ruby
[16:05:43] troys: has joined #ruby
[16:06:02] mnemon: aScottishBoat: there's also puppet and chef with varying amounts of ruby you can write :P
[16:06:14] aScottishBoat: yeah but we use ansible at work hah
[16:06:42] faces: has joined #ruby
[16:07:47] mnemon: anyways, for the "how is it?", kinda depends what you want to do :)
[16:08:24] ethicalhacker: has left #ruby: ()
[16:10:05] selim: has joined #ruby
[16:10:18] dtzuzu: has joined #ruby
[16:11:22] drowze: has joined #ruby
[16:11:41] orbyt_: has joined #ruby
[16:12:41] urk187: has joined #ruby
[16:14:42] dviola: has joined #ruby
[16:15:06] drowze: has joined #ruby
[16:15:37] mtkd: has joined #ruby
[16:16:00] ozcanesen: has joined #ruby
[16:17:46] Psybur: has joined #ruby
[16:18:47] cagomez: has joined #ruby
[16:18:51] darix: aScottishBoat: any "shell script" that does more data handling than a simple for loop is going to be ruby for me. so it is working really nicely
[16:20:25] jackjackdripper: has joined #ruby
[16:21:03] banisterfiend: has joined #ruby
[16:24:45] alfiemax: has joined #ruby
[16:26:20] cschneid_: has joined #ruby
[16:27:37] drowze: has joined #ruby
[16:29:31] apeiros: has joined #ruby
[16:31:19] yqt: has joined #ruby
[16:31:26] banisterfiend: has joined #ruby
[16:33:56] aScottishBoat: darix, awesome. Good to hear
[16:35:31] truenito: has joined #ruby
[16:36:34] banisterfiend: has joined #ruby
[16:36:52] Devalo: has joined #ruby
[16:40:25] ans: has joined #ruby
[16:40:56] whippythellama: has joined #ruby
[16:41:19] mikecmpbll: has joined #ruby
[16:41:42] apeiros: has joined #ruby
[16:42:48] ans: has joined #ruby
[16:46:13] alfiemax: has joined #ruby
[16:47:42] alexday: has left #ruby: ("WeeChat 1.8")
[16:47:50] hutch34: has joined #ruby
[16:50:34] dinfuehr: has joined #ruby
[16:50:44] enterprisey: has joined #ruby
[16:53:23] airdisa: has joined #ruby
[17:01:29] guacamole: has joined #ruby
[17:02:58] yahmds: has joined #ruby
[17:05:12] aroaminggeek: has joined #ruby
[17:05:26] [Butch]: has joined #ruby
[17:06:28] tomphp: has joined #ruby
[17:17:17] KrzaQ: I'd like to dump the whole command used to run my script (it's `ruby path/file.rb args args args`). ARGV only contains args, what should I use?
[17:19:44] ttrx: has joined #ruby
[17:20:49] aScottishBoat: KrzaQ, $0 is the variable that contains the script name
[17:20:59] KrzaQ: ok, great
[17:21:55] KrzaQ: ['ruby', $0, ARGV].flatten.join(' ') <-- does that sound legit?
[17:21:56] aScottishBoat: var = $0 + ARGV.each { |arg| print "#{arg} " } + "\n"
[17:22:09] aScottishBoat: that may be the dumbest thing I've written in a while. Ugh it's been a while since I've used Ruby
[17:22:49] aScottishBoat: KrzaQ, hmmm that looks kinda right to me.
[17:23:01] blackmesa1: has joined #ruby
[17:23:24] KrzaQ: Great, thanks for the help!
[17:25:07] aScottishBoat: np KrzaQ! Thanks for giving me smth to think about related to Ruby lol
[17:25:21] Exhiled: has joined #ruby
[17:25:26] aScottishBoat: Looking to get back into Ruby dev :) I'm doing devOps stuff now, so I'm pushing to use Ruby over Python
[17:25:45] papanik: has joined #ruby
[17:27:03] apeiros: KrzaQ: it's not necessarily ruby
[17:27:17] apeiros: could also be ruby21, jruby, mruby, whatever else
[17:27:33] KrzaQ: I'm willing to take that bet for my case, but if you have a better solution, please share :)
[17:27:45] ttrx: What's the crack with Ruby over Python
[17:27:49] ttrx: I like Python
[17:27:56] ttrx: But I would like to know more about Ruby
[17:27:58] apeiros: also might not have been run through ruby but directly instead (`$ ./some_executable.rb`)
[17:28:03] ttrx: the syntax is a bit wack
[17:28:15] apeiros: ttrx: mostly a matter of personal preference
[17:28:30] apeiros: and re syntax being wack goes around just the same for python :-p
[17:29:26] raynold: has joined #ruby
[17:29:40] apeiros: though there are some areas where library support is stronger for one or the other side (sci stuff for python, web stuff for ruby).
[17:31:24] ttrx: Ah figures, there seem to be a lot more available command line Ruby tools too
[17:41:28] nathani: has joined #ruby
[17:41:48] nathani: What do I need to do to get this working ? https://gist.github.com/anonymous/269092895dac95037a826800e0c10525
[17:42:56] apeiros: nathani: system is a method, so it takes normal arguments. and `dig -x …` is not what you want to pass it.
[17:44:43] PaulCapestany: has joined #ruby
[17:44:49] blackmesa1: has joined #ruby
[17:47:15] RickHull: i.e. string arguments -- often the entire command as a single string, but better with multiple string args -- e.g. https://github.com/rickhull/mruby-tools/blob/master/util.rb#L73
[17:47:58] jamesaxl: has joined #ruby
[17:50:47] yahmds: has joined #ruby
[17:52:58] alfiemax: has joined #ruby
[17:53:41] dinfuehr: has joined #ruby
[17:57:05] p0p0pr37_: has joined #ruby
[17:57:06] p0p0pr37_: has joined #ruby
[17:58:56] tAn: has joined #ruby
[17:59:06] jackjackdripper: has joined #ruby
[17:59:27] orbyt_: has joined #ruby
[17:59:28] michael3: has joined #ruby
[18:00:05] jackjackdripper: has joined #ruby
[18:01:16] safetypin: has joined #ruby
[18:02:30] nathani: that did it
[18:02:38] nathani: thank you apeiros and RickHull
[18:03:07] dminuoso: RickHull, damn you.
[18:03:13] dminuoso: You made me dive back into CT.
[18:03:23] RickHull: crystal? connecticut?
[18:03:28] dminuoso: category theory.
[18:03:56] the_f0ster: has joined #ruby
[18:04:16] the_f0ster: trying to load a gem with bundler in my rails project.. but getting "Gem Load Error is: File is already defined" (zipruby), any idea how I can get around/fix this ?
[18:04:28] RickHull: dminuoso: what answers are you searching for?
[18:04:55] dminuoso: RickHull, Im on the brink of fully cracking the 'All told, a monad is just a monoid in the monoidal category of endofunctors' nut to complete intuition. Ive already grasped it, and just need to work through the commutative diagrams.
[18:05:27] xdb6f: has joined #ruby
[18:05:37] xdb6f: has left #ruby: ("Leaving")
[18:05:51] veeti: has joined #ruby
[18:06:04] RickHull: the_f0ster: what happens with just: `gem install zipruby` ?
[18:06:42] claudiuinberlin: has joined #ruby
[18:06:59] RickHull: i'm able to install zipruby-0.3.6 without issue
[18:07:25] z3uS: has joined #ruby
[18:07:26] RickHull: the_f0ster: if you concur, next step, try a Gemfile with just the one gem
[18:07:44] RickHull: then add half your Gemfile entries and try that
[18:08:10] aroaminggeek: has joined #ruby
[18:08:10] RickHull: try to narrow down what the combination of factors is that results in the bad behavior
[18:08:38] apeiros: RickHull: sounded to me more like requiring is the problem, not installing
[18:08:41] dminuoso: RickHull, category theory is utterly great.
[18:08:41] RickHull: dminuoso: I swear, CT is some alice in wonderland type adventure
[18:08:42] havenwood: the_f0ster: The gem hasn't been updated in seven years, so the three-year-old PR fixing this issue hasn't been merged: https://github.com/rubyzip/rubyzip/pull/145
[18:08:51] ski4x7: has joined #ruby
[18:08:52] dminuoso: RickHull, like, Ive seen the cleanest definition of a ring ever.
[18:09:12] the_f0ster: RickHull havenwood ty.. I am actualy trying to use rubyXL to r/w xlsx files which uses it as a dep
[18:09:41] RickHull: the_f0ster: good point by apeiros above
[18:09:45] havenwood: the_f0ster: I'd suggest ditching rubyzip in favor of a maintained gem that plays nice with others.
[18:09:50] dminuoso: RickHull, think about this: A ring is just a monoid in the category of commutative (albelian) groups.
[18:10:06] dminuoso: Or rather the *monodial category of commuative groups.,
[18:10:15] RickHull: i last studied rings and groups etc (CT-lite?) in high school
[18:10:26] the_f0ster: apeiros: yes it is a runtime requiring issue, requiring rubyXL in a non rails project works fine
[18:10:36] dminuoso: If that doesn't get you off, I dont know what will.
[18:10:55] dminuoso: RickHull, and no, they are not CT-lite.
[18:11:00] dminuoso: Though they can be studied in CT.
[18:11:35] RickHull: the_f0ster: alternatively, you can git clone the PR that fixes it, and `gem build`
[18:11:40] havenwood: the_f0ster: You could modify RubyXL's deps to point to the patched version of rubyzip. It's a shame the gem you'd like to use is built on top of a deprecated lib.
[18:12:01] the_f0ster: havenwood: its the only lib i can find that will both read and write xlsx
[18:12:08] alex``: has joined #ruby
[18:12:41] havenwood: the_f0ster: Do roo and spreatsheet gems not do that? I can't recall.
[18:13:02] havenwood: the_f0ster: https://github.com/zdavatz/spreadsheet
[18:13:18] havenwood: the_f0ster: https://github.com/roo-rb/roo
[18:13:37] the_f0ster: not sure about spreadsheet but from what I read last night, no roo does not do both
[18:13:51] dminuoso: havenwood, what equivalent would you like to see for a maximally empty unit in ruby?
[18:14:01] havenwood: the_f0ster: Check spreadsheet. I think it might.
[18:14:02] hahuang65: has joined #ruby
[18:14:07] dminuoso: I mean they are all isomorphic, but I have to pick one.
[18:14:08] alfiemax_: has joined #ruby
[18:14:29] dminuoso: nil actually sucks, as its semantically inhabited by all types.
[18:14:45] havenwood: nil does have #to_a and #to_h, mm
[18:14:51] dminuoso: wait. what?
[18:14:52] Technodrome: has joined #ruby
[18:14:54] dminuoso: >> nil.to_a
[18:14:56] dminuoso: >> nil.to_h
[18:14:56] ruby[bot]: dminuoso: # => [] (https://eval.in/900066)
[18:14:57] ruby[bot]: dminuoso: # => {} (https://eval.in/900067)
[18:15:00] dminuoso: Crazy. TIL.
[18:15:17] ruby[bot]: dminuoso: # => [] (https://eval.in/900068)
[18:15:19] RickHull: rings and groups are set theory?
[18:15:47] dminuoso: RickHull, no. algebra in the most raw form.
[18:16:01] havenwood: dminuoso: The last to be added was: [].to_h
[18:16:05] RickHull: abstract algebra
[18:16:07] ruby[bot]: havenwood: # => {} (https://eval.in/900069)
[18:16:26] havenwood: You used to have to: Hash([])
[18:16:37] kryptoz: has joined #ruby
[18:18:19] dminuoso: havenwood, or the equivalent Hash[[]]
[18:18:50] jrafanie: has joined #ruby
[18:19:43] havenwood: >> Hash[[],]
[18:19:44] ruby[bot]: havenwood: # => {} (https://eval.in/900072)
[18:20:01] havenwood: >> Hash[[],()]
[18:20:01] the_f0ster: yeah neither of these can write out xlsx havenwood , I just need to find out how I can include this lib in the rails project, lib works fine stand alone
[18:20:02] ruby[bot]: havenwood: # => {[]=>nil} (https://eval.in/900073)
[18:20:10] dminuoso: havenwood, have you checked out jsfuck yet?
[18:20:36] dminuoso: ()+[]! are all the characters you need to write *any* JavaScript program.
[18:20:45] havenwood: dminuoso: ha
[18:20:46] dminuoso: Any valid JS program in fact.
[18:21:02] RickHull: i could write an invalid JS program with those
[18:21:41] dminuoso: havenwood, I guess "thanks for weak typing and all the fish" to make that possible.
[18:23:48] GodFather: has joined #ruby
[18:24:47] GodFather: has joined #ruby
[18:25:11] AxelAlex: has joined #ruby
[18:26:26] GodFather: has joined #ruby
[18:27:36] gradio: has joined #ruby
[18:27:39] tomphp: has joined #ruby
[18:28:01] GodFather: has joined #ruby
[18:30:30] kies: has joined #ruby
[18:30:39] GodFather: has joined #ruby
[18:31:03] Rr4sT: has joined #ruby
[18:33:43] hahuang65: has joined #ruby
[18:33:54] GodFather: has joined #ruby
[18:34:10] claudiuinberlin: has joined #ruby
[18:36:16] Exhiled: has joined #ruby
[18:37:56] Devalo: has joined #ruby
[18:38:55] Scorpion: has joined #ruby
[18:41:51] eckhardt: has joined #ruby
[18:46:28] Dimik: has joined #ruby
[18:46:54] dionysus69: has joined #ruby
[18:47:49] jenrzzz: has joined #ruby
[18:47:49] jenrzzz: has joined #ruby
[18:50:13] enterprisey: has joined #ruby
[18:51:10] kinduff: has joined #ruby
[18:53:13] alfiemax: has joined #ruby
[18:54:11] kinduff_: has joined #ruby
[18:54:58] plexigras: has joined #ruby
[18:56:32] claudiuinberlin: has joined #ruby
[18:56:54] FrostCandy: has joined #ruby
[18:56:59] guille-moe: has joined #ruby
[18:57:31] muelleme: has joined #ruby
[18:58:39] Exhiled: has joined #ruby
[19:01:05] ledestin: has joined #ruby
[19:01:52] mtkd: has joined #ruby
[19:06:34] goyox86: has joined #ruby
[19:08:51] blackmesa1: has joined #ruby
[19:09:52] tlaxkit: has joined #ruby
[19:12:06] goyox86: has joined #ruby
[19:14:49] Exhiled: has joined #ruby
[19:18:21] tAn: has joined #ruby
[19:21:17] michael3: has joined #ruby
[19:29:03] tao_: has joined #ruby
[19:33:18] RickHull1: has joined #ruby
[19:34:11] SeepingN: has joined #ruby
[19:36:55] synthroid: has joined #ruby
[19:37:03] cdg: has joined #ruby
[19:37:20] claudiuinberlin: has joined #ruby
[19:38:40] havenwood: Anyone heading to RubyConf?
[19:38:41] havenwood: Talks should be live-streaming tomorrow.
[19:39:24] Technodrome: has joined #ruby
[19:40:23] mikecmpbll: has joined #ruby
[19:40:54] zombiema: has joined #ruby
[19:42:53] tacoboy: has joined #ruby
[19:43:26] Asher: has joined #ruby
[19:43:47] aScottishBoat: awesome havenwood
[19:44:27] zapata: has joined #ruby
[19:48:25] RickHull: looks like fun, wish I was going
[19:49:03] aScottishBoat: Went to New Orleans last year for just an overnight thing. Was fun, though I only had a single beer.
[19:49:11] aScottishBoat: The food is fantastic
[19:49:51] enterprisey: has joined #ruby
[19:49:53] muelleme: has joined #ruby
[19:51:21] Exhiled: has joined #ruby
[19:51:31] RickHull: Tulane grad here :) It's an awesome place with tons of character(s)
[19:51:58] havenwood: aScottishBoat: I went to the last RubyConf in New Orleans in 2010, and even the hotel food was to-die-for!
[19:52:17] ur5us: has joined #ruby
[19:52:24] RickHull: there are a lot of tourist traps around the French Quarter - a little research goes a long way
[19:52:36] RickHull: I suppose Yelp takes care of that for the most part
[19:53:11] xco: has joined #ruby
[19:53:17] RickHull: having a local friend/guide can be invaluable
[19:53:47] alex```: has joined #ruby
[19:56:12] aScottishBoat: havenwood, mmm.
[19:56:19] aScottishBoat: I'll have to go back. RickHull what do you mean?
[19:56:49] centrx: has joined #ruby
[19:56:49] centrx: has joined #ruby
[19:56:58] RickHull: there is a lot of depth to New Orleans, a lot of the best parts aren't obvious, with no street barker or blinking neon sign
[19:57:13] pilne: has joined #ruby
[19:57:29] RickHull: a lot of it is mostly inaccessible to a first time tourist regardless
[19:58:27] orbyt_: has joined #ruby
[19:59:10] aroaminggeek: has joined #ruby
[20:00:13] RickHull: sorry if I'm being mysterious :) it's been a while since I've really known the place. but nearly every neighborhood has something exemplary and unique
[20:00:45] RickHull: and there a lots of secret societies and hidden courtyards and private balls while the parades go by for the public
[20:01:20] aScottishBoat: that sounds amazing
[20:02:53] jackjackdripper: has joined #ruby
[20:03:30] RickHull: and the music scene is pretty amazing once you get a feel for it -- jazz / funk / fusion / brass / groove / lounge
[20:04:39] RickHull: JazzFest, hands down, for a great sample of NOLA food and music
[20:04:49] RickHull: 7 days of festival across 2 weekends
[20:05:17] RickHull: late spring, so it's hot but not H O T
[20:05:31] RickHull: I imagine the weather is pretty nice right now
[20:06:54] RickHull: check out One Eyed Jacks in the FQ for some interesting local music, if it's still there. can be kind of a gritty scene sometimes
[20:07:04] aScottishBoat: When I went it was SO bad. My mate and I decided to skip getting a hostel but we tried sleeping in my car and it was far too hot
[20:07:10] RickHull: and the Marigny triangle / Frenchmen street
[20:07:15] aScottishBoat: we got a hostel asap
[20:07:20] RickHull: ha, I'm sure
[20:07:34] aScottishBoat: ah man I wish I was back
[20:07:44] aScottishBoat: I wouldn't mind living there, but I don't do hot weather well
[20:07:57] RickHull: it's the kind of place that rewards a good night's sleep
[20:08:03] RickHull: so I wouldn't skimp there
[20:09:16] zombiema: has joined #ruby
[20:10:08] RickHull: A/C and a bed -- skip the couch unless you're under 25 :)
[20:10:25] aScottishBoat: well I've slept outside on some holidays
[20:10:29] aScottishBoat: simply to save money. I don't mind
[20:10:45] aScottishBoat: Being young is fun if you embrace it
[20:10:50] aScottishBoat: though you see some weird things
[20:11:06] aScottishBoat: (a reference to a night in Madrid I spent outdoors...)
[20:12:39] aScottishBoat: RickHull, havenwood, anyone, what's your favourite city?
[20:13:08] RickHull: Prague and Amsterdam are near the top in some dimension, based on a few days' visit
[20:13:10] jackjackdripper1: has joined #ruby
[20:13:24] RickHull: SF and NYC have a lot going on
[20:13:26] aScottishBoat: ooo never been to Prague, but I *only* hear very exceptional things
[20:13:37] havenwood: Prague, Amsterdam, Barcelona, Venice, New Orleans, etc. Hard to say.
[20:13:38] jackjackdripper: has joined #ruby
[20:13:43] aScottishBoat: I spent 11 days in Netherlands visiting 3 friends. Pretty much saw the whole (small) country
[20:14:52] RickHull: I imagine London and Edinburgh have similar depth to New Orleans -- you could hardly begin to appreciate them fully in under a year (say)
[20:15:19] aScottishBoat: I just moved from Edinburgh in May. Such a lovely city. Loads to do.
[20:15:35] aScottishBoat: I recommend it. Although I hear my go-to bar recently closed down :(
[20:15:44] havenwood: I'm a fan of Cambridge. Great food and accessible nightlife.
[20:15:47] bmurt: has joined #ruby
[20:16:09] aScottishBoat: Don't know much of England tbh. I've been to Coventry and London. I've also been to northern Wales.
[20:16:10] safetypin: has joined #ruby
[20:16:35] aScottishBoat: my ex gf of 3,5 years is from Ireland. I only went once. She never wanted to go there for vacation cuz it's where she's from. sigh
[20:19:03] aScottishBoat: there was a ruby conference in Israel a few years back
[20:19:12] ur5us: has joined #ruby
[20:19:20] aScottishBoat: I really wanted to go but it was during right when I had my master's graduation... my ma would have killed me if I didn't go *sigh*
[20:20:10] conta2: has joined #ruby
[20:20:31] deadnull: has joined #ruby
[20:24:15] RickHull: has joined #ruby
[20:28:15] cagomez: has joined #ruby
[20:29:55] gizmore: "the computer says no"
[20:30:26] knight33: has joined #ruby
[20:32:26] knight33: has joined #ruby
[20:33:02] Scorpion: has joined #ruby
[20:34:38] jenrzzz: has joined #ruby
[20:34:44] jenrzzz: has joined #ruby
[20:35:02] ttrx: has joined #ruby
[20:37:17] alfiemax: has joined #ruby
[20:37:27] john__: has joined #ruby
[20:40:24] orbyt_: has joined #ruby
[20:40:30] duderonomy: has joined #ruby
[20:41:48] gnufied: has joined #ruby
[20:42:15] aroaminggeek: has joined #ruby
[20:43:09] vtx: has joined #ruby
[20:43:25] aroaminggeek: has joined #ruby
[20:49:56] hutch34: has joined #ruby
[20:54:41] jottr: has joined #ruby
[20:58:18] shinnya: has joined #ruby
[20:58:22] cdg: has joined #ruby
[20:58:37] hutch34: has joined #ruby
[20:58:53] mostlybadfly: has joined #ruby
[20:58:55] ap4y: has joined #ruby
[21:00:02] Exhiled: has joined #ruby
[21:01:03] aroaminggeek: spent in Ecuador visiting a long time friend - Puerto Cayo. If you want a sense of the slower pace of S.A. that's one place to experience it!
[21:03:40] eckhardt: has joined #ruby
[21:04:31] cdg_: has joined #ruby
[21:11:45] dviola: has joined #ruby
[21:20:30] zombiema: has joined #ruby
[21:22:23] hutch34: has joined #ruby
[21:23:19] cagomez: has joined #ruby
[21:23:57] nfk: has joined #ruby
[21:28:12] jenrzzz: has joined #ruby
[21:28:13] jenrzzz: has joined #ruby
[21:29:01] matcouto: has joined #ruby
[21:31:44] JJonah: has joined #ruby
[21:32:25] zautomata: has joined #ruby
[21:35:16] ruby[bot]: has joined #ruby
[21:35:16] ChanServ: +o ruby[bot]
[21:38:18] Devalo: has joined #ruby
[21:42:07] claudiuinberlin: has joined #ruby
[21:45:18] hutch34: has joined #ruby
[21:50:16] Asher: has joined #ruby
[21:55:10] hutch34: has joined #ruby
[21:56:27] dn`_: has joined #ruby
[21:56:45] facest: has joined #ruby
[21:56:46] hogetaro_: has joined #ruby
[21:57:20] mson: has joined #ruby
[21:58:01] eckhardt: has joined #ruby
[21:58:05] vondruch_: has joined #ruby
[21:58:08] vereteran: has joined #ruby
[21:59:22] olblak_: has joined #ruby
[21:59:22] bob_f_: has joined #ruby
[21:59:22] badeball_: has joined #ruby
[21:59:31] Mattias: has joined #ruby
[21:59:48] lucas: has joined #ruby
[22:00:02] majoh_: has joined #ruby
[22:00:14] hutch34: has joined #ruby
[22:00:22] dminuoso: has joined #ruby
[22:00:37] dminuoso: has joined #ruby
[22:00:39] jenrzzz: has joined #ruby
[22:02:28] PaulCapestany: has joined #ruby
[22:03:48] aroaminggeek: has joined #ruby
[22:04:07] bier: has joined #ruby
[22:04:25] jsrtr: Hey, if I have an existing long-running ruby process and I wanted to execute a command in a new thread in that process, how could I do that without killing the process?
[22:04:32] cosimo_: has joined #ruby
[22:04:48] bigkevmcd: has joined #ruby
[22:04:51] Kilo`byte: has joined #ruby
[22:06:30] RickHull: I can't think of a good way. i feel like maglev maybe offers something like that
[22:07:40] cadillac_: has joined #ruby
[22:07:55] elphe: has joined #ruby
[22:11:21] jenrzzz: has joined #ruby
[22:11:21] jenrzzz: has joined #ruby
[22:13:47] mikeric: has joined #ruby
[22:15:26] mjolnird: has joined #ruby
[22:16:39] eam: can always use gdb
[22:17:03] eam: not a good way, mind, but it is a way
[22:18:12] alfiemax: has joined #ruby
[22:19:46] kickr: has joined #ruby
[22:20:31] ttrx: has joined #ruby
[22:20:37] hahuang65: has joined #ruby
[22:21:53] eam: like this https://gist.github.com/eam/21724d83c8fe2266b5d074690557fad0
[22:21:58] RickHull: attach to the process with gdb -- then can inject C code?
[22:22:20] enterprisey: has joined #ruby
[22:22:40] eam: you'll generally want to be a bit more cautious about where the ruby interpreter is when paused by gdb, maybe carefully set a breakpoint at a known safe place and then go from there
[22:23:09] eam: and calling puts is reckless as hell, since the stdio layer is way way non-reentrant
[22:23:17] eam: but, good enough for a one line demo
[22:23:54] RickHull: that demo would pin your CPU in a busy loop, right? versus say sleep 0.01 if not sleep 1?
[22:24:21] centrx: has joined #ruby
[22:24:22] centrx: has joined #ruby
[22:25:07] eckhardt: has joined #ruby
[22:25:21] centrx: has joined #ruby
[22:25:21] centrx: has joined #ruby
[22:28:07] kickr: has joined #ruby
[22:28:14] tvw: has joined #ruby
[22:29:20] eam: sometimes I use this technique to attach to a misbehaving ruby process and extract ruby-level data from it (like counts from ObjectSpace or w/e), just write a few routines to check whatever state I'm interested in and print to a file
[22:29:48] mim1k: has joined #ruby
[22:29:48] lupine: I have done saviour actions in production this way
[22:30:08] lupine: (calling close() on an fd to unblock processes)
[22:30:17] lupine: game of soldiers, etc
[22:31:49] orbyt_: has joined #ruby
[22:31:52] kickr: has joined #ruby
[22:32:15] RickHull: do you get to control where a breakpoint is set, or do you just stab randomly and test the context?
[22:32:51] RickHull: s/randomly/blindly/
[22:34:18] lupine: it's difficult, gdb doesn't understand the ruby execution very wel
[22:34:34] lupine: I wouldn't try to interact with ruby constructs in gdb
[22:34:54] lupine: underlying resources like sockets and file descriptors are amenable to alteration
[22:35:09] eam: yeah, that's certainly more safe
[22:35:31] eam: RickHull: you don't control where you attach, but your first action can be to set a new breakpoint then continue to it
[22:36:26] eam: I tell people that if they call rb_ functions from gdb, expect a segfault -- only do this as best effort data extraction before killing the process
[22:36:32] kickr: has joined #ruby
[22:36:53] eam: we used this approach to find some memory leaks in rspec, for example
[22:37:23] hutch34: has joined #ruby
[22:38:10] RickHull: so the first breakpoint is set at the attach point, and then when you continue to it (looping back around?), execution is halted?
[22:39:42] kitsunenokenja: has joined #ruby
[22:42:20] eckhardt: has joined #ruby
[22:42:50] GodFather: has joined #ruby
[22:43:19] kickr: has joined #ruby
[22:46:23] hutch34: has joined #ruby
[22:47:02] eam: the attach point isn't really a breakpoint, but the process is paused on attach while waiting for input
[22:47:24] eam: execution in the child is halted while gdb is waiting for input
[22:47:37] eam: you can script the inputs to minimize this
[22:47:43] kinduff: has joined #ruby
[22:49:00] kickr: has joined #ruby
[22:49:52] charliesome: has joined #ruby
[22:50:36] aroaminggeek: has joined #ruby
[22:54:32] nofxx: has joined #ruby
[22:57:09] minimalism: has joined #ruby
[23:01:27] emilford: has joined #ruby
[23:06:57] thinkpad: has joined #ruby
[23:11:43] ap4y: has joined #ruby
[23:13:13] orbyt_: has joined #ruby
[23:14:52] eckhardt: has joined #ruby
[23:15:06] centrx: has joined #ruby
[23:16:26] centrx: has joined #ruby
[23:16:26] centrx: has joined #ruby
[23:17:38] br0d1n: has joined #ruby
[23:25:59] c0mrad3: has joined #ruby
[23:27:57] orbyt_: has joined #ruby
[23:28:43] hutch34: has joined #ruby
[23:32:54] elphe: has joined #ruby
[23:38:49] hutch34: has joined #ruby
[23:42:10] erlend: has joined #ruby
[23:44:58] charliesome: has joined #ruby
[23:48:24] aroaminggeek: has joined #ruby
[23:48:47] alfiemax: has joined #ruby
[23:49:02] hutch34: has joined #ruby
[23:50:31] Psybur: has joined #ruby