« Back to channel list

#ruby - 02 May 2017

« Back 1 day Forward 1 day »
[00:02:07] iamayam: has joined #ruby
[00:03:50] eblip: has joined #ruby
[00:05:13] xenops: has joined #ruby
[00:07:21] thebaffoon: has joined #ruby
[00:09:10] tocky: has joined #ruby
[00:09:49] tocky: has left #ruby: ()
[00:11:04] hndk: has joined #ruby
[00:14:55] darix: cahoots: require_relative
[00:14:57] darix: might help
[00:19:01] Guest96: has joined #ruby
[00:26:18] mooser: has joined #ruby
[00:27:17] mooser: has joined #ruby
[00:28:22] vondruch_: has joined #ruby
[00:30:18] Silthias: has joined #ruby
[00:33:09] skade_: has joined #ruby
[00:35:44] Guest96: has joined #ruby
[00:40:31] roamingdog: has joined #ruby
[00:41:13] rrichard_: has joined #ruby
[00:44:56] brent__: has joined #ruby
[00:47:18] Jameser: has joined #ruby
[00:47:36] JeanCarloMachado: has joined #ruby
[00:50:23] blackmes1: has joined #ruby
[00:54:31] budzzzz: has joined #ruby
[00:56:18] Guest96: has joined #ruby
[01:03:19] projectmoon_: has joined #ruby
[01:03:48] raul782: has joined #ruby
[01:04:00] projectmoon: has joined #ruby
[01:05:01] projectmo10: has joined #ruby
[01:06:42] projectmo10: has left #ruby: ("User left")
[01:08:50] __Yiota: has joined #ruby
[01:08:51] gnufied: has joined #ruby
[01:09:58] kobain: has joined #ruby
[01:11:43] projectmoon: has left #ruby: ("User left")
[01:13:06] d^sh: has joined #ruby
[01:13:11] thebaffoon: has joined #ruby
[01:16:42] mahlon: has joined #ruby
[01:17:47] DrCode: has joined #ruby
[01:21:49] chopin: has joined #ruby
[01:21:54] gizmore: has joined #ruby
[01:22:14] davic: has joined #ruby
[01:24:33] JeanCarloMachado: has joined #ruby
[01:26:33] mahlon: has joined #ruby
[01:28:12] Channel6: has joined #ruby
[01:29:08] DrCode: has joined #ruby
[01:30:48] rkazak: has joined #ruby
[01:31:16] shinnya: has joined #ruby
[01:34:10] skade_: has joined #ruby
[01:39:20] lektrik: has joined #ruby
[01:41:33] brent__: has joined #ruby
[01:41:40] __Yiota: has joined #ruby
[01:42:14] DrCode: has joined #ruby
[01:46:57] charliesome: has joined #ruby
[01:47:18] duderonomy: has joined #ruby
[01:49:37] Silthias1: has joined #ruby
[02:00:41] chopin: has joined #ruby
[02:01:27] iliketurtles: has joined #ruby
[02:05:33] JeanCarloMachado: has joined #ruby
[02:07:02] libastral: has joined #ruby
[02:08:14] kies: has joined #ruby
[02:10:41] haylon: has joined #ruby
[02:12:39] Silthias: has joined #ruby
[02:12:51] ColeHub: has joined #ruby
[02:13:06] Cohedrin: has joined #ruby
[02:14:39] mjora7: has joined #ruby
[02:16:46] SpikeMaster: has joined #ruby
[02:17:36] Cohedrin: has joined #ruby
[02:20:52] genpaku: has joined #ruby
[02:26:27] cpruitt: has joined #ruby
[02:27:49] iMadper: has joined #ruby
[02:28:21] JeanCarloMachado: has joined #ruby
[02:30:14] xco: has left #ruby: ()
[02:31:44] haylon: has joined #ruby
[02:34:46] skade_: has joined #ruby
[02:39:23] iliketurtles: has joined #ruby
[02:40:43] Silthias: has joined #ruby
[02:50:19] JeanCarloMachado: has joined #ruby
[02:52:16] Guest96: has joined #ruby
[02:54:31] Guest96: has joined #ruby
[02:56:11] raspado: has joined #ruby
[03:04:19] podlech: has joined #ruby
[03:04:44] iMadper: has joined #ruby
[03:05:59] JeanCarloMachado: has joined #ruby
[03:10:57] gix: has joined #ruby
[03:13:24] roamingdog: has joined #ruby
[03:13:25] JeanCarloMachado: has joined #ruby
[03:14:09] roamingdog: has joined #ruby
[03:14:59] roamingdog: has joined #ruby
[03:15:49] roamingdog: has joined #ruby
[03:24:11] _whitelogger: has joined #ruby
[03:26:24] GinoMan: has joined #ruby
[03:28:15] JeanCarloMachado: has joined #ruby
[03:29:19] brent__: has joined #ruby
[03:33:11] _whitelogger: has joined #ruby
[03:36:09] skade_: has joined #ruby
[03:48:12] anisha: has joined #ruby
[03:50:09] skade_: has joined #ruby
[03:54:39] DrCode: has joined #ruby
[04:00:49] DrCode: has joined #ruby
[04:00:52] nullobject: has joined #ruby
[04:13:43] patarr: has joined #ruby
[04:17:16] roamingdog: has joined #ruby
[04:22:12] Silthias1: has joined #ruby
[04:26:42] iliketurtles: has joined #ruby
[04:30:17] jeyraof^mbpr: has joined #ruby
[04:31:38] BSAlb: has joined #ruby
[04:35:21] Guest96: has joined #ruby
[04:36:30] kent\n: has joined #ruby
[04:37:52] chopin: has joined #ruby
[04:38:13] mjora7: has joined #ruby
[04:39:09] Silthias: has joined #ruby
[04:40:21] jeyraof^mbpr: has joined #ruby
[04:41:30] iliketurtles: has joined #ruby
[04:44:10] JeanCarloMachado: has joined #ruby
[04:45:05] cfec0b8d: has joined #ruby
[04:48:13] Guest96: has joined #ruby
[04:48:16] GinoMan: has joined #ruby
[04:49:41] GinoMan: has joined #ruby
[04:50:31] GinoMan: has joined #ruby
[04:51:26] GinoMan: has joined #ruby
[04:52:26] GinoMan: has joined #ruby
[04:57:37] cyphase: has joined #ruby
[05:00:31] Sammichmaker: has joined #ruby
[05:04:41] yogg-saron: has joined #ruby
[05:10:02] Silthias: has joined #ruby
[05:10:33] Bock: has joined #ruby
[05:11:55] m0d: has joined #ruby
[05:11:59] unshadow: has joined #ruby
[05:13:43] rkazak: has joined #ruby
[05:13:59] Bock: has joined #ruby
[05:14:41] vondruch_: has joined #ruby
[05:15:13] maxkuzmin: has joined #ruby
[05:15:23] JeanCarloMachado: has joined #ruby
[05:16:16] mokiwis: has joined #ruby
[05:17:58] roamingdog: has joined #ruby
[05:18:56] shinnya: has joined #ruby
[05:20:40] chopin: has joined #ruby
[05:25:28] mokiwis: has joined #ruby
[05:26:28] Cyrus: has joined #ruby
[05:26:55] audy: has joined #ruby
[05:36:49] DK2: has joined #ruby
[05:37:29] Guest96: has joined #ruby
[05:39:25] guardianx: has joined #ruby
[05:42:03] ChickeNES: has joined #ruby
[05:45:16] mjora7: has joined #ruby
[05:45:51] brent__: has joined #ruby
[05:51:58] Silthias1: has joined #ruby
[05:58:20] Silthias: has joined #ruby
[05:59:40] charliesome: has joined #ruby
[06:04:12] DaniG2k: has joined #ruby
[06:05:51] JeanCarloMachado: has joined #ruby
[06:08:01] skade_: has joined #ruby
[06:13:05] djbkd_: has joined #ruby
[06:14:23] JeanCarloMachado: has joined #ruby
[06:14:40] patarr: has joined #ruby
[06:18:38] roamingdog: has joined #ruby
[06:22:05] Mortomes|Work: has joined #ruby
[06:24:05] arvindsaik: has joined #ruby
[06:25:15] Disavowed: has joined #ruby
[06:25:41] friday: has joined #ruby
[06:28:37] JeanCarloMachado: has joined #ruby
[06:32:25] mjora7: has joined #ruby
[06:35:04] dionysus69: has joined #ruby
[06:35:48] ddffg: has joined #ruby
[06:37:01] conta: has joined #ruby
[06:38:04] JeanCarloMachado: has joined #ruby
[06:41:01] djbkd_: has joined #ruby
[06:44:13] atmosx: has joined #ruby
[06:52:12] burgestrand: has joined #ruby
[06:53:26] conta: has joined #ruby
[06:54:36] last_staff: has joined #ruby
[06:58:24] jaruga: has joined #ruby
[07:01:58] Seenox: Hello. What is the best way to read a json file line by line and convert datas into hashes of hashes?
[07:02:20] ljarvis: Seenox: File.each_line
[07:02:31] Silthias: has joined #ruby
[07:02:47] ljarvis: then split the line into words (if that's what you want), String#split
[07:03:01] Seenox: ljarvis: Thanks, going to read it now.
[07:03:04] ljarvis: then hash them (this changes based on what algo you want)
[07:03:17] ljarvis: oh sorry json file
[07:03:38] ljarvis: the json file contains arrays or something?
[07:03:52] Seenox: ljarvis: Yes, I will show you an example in a minute.
[07:04:34] ljarvis: ok, in which case you probably want JSON.parse once you've read the file (you could use a streamed parser if the file is huge and you wanted to avoid excess memory)
[07:06:20] Seenox: ljarvis: https://pastebin.com/vVYmqSSA
[07:06:21] ruby[bot]: Seenox: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/6464110276ee403f7448792e5f51fa9f
[07:06:22] ruby[bot]: Seenox: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[07:07:37] Seenox: ljarvis: What I want to do is to read this type of json file line by read, and add each block into hashes.
[07:07:44] Seenox: line by line*
[07:08:29] JeanCarloMachado: has joined #ruby
[07:11:19] allisio: Seenox: Why do you need it to be line-by-line? `JSON.parse(File.read('foo'))` seems like it should be all you need?
[07:11:59] Seenox: allisio: Thanks. Let me read about it quickly.
[07:13:09] Seenox: allisio: I think I've already tried that but the hashes were not in the right format after using it.
[07:13:43] vali: has joined #ruby
[07:13:46] Seenox: hostgroup_json_file = File.read('hostgroup.json') hostgroup_hash = JSON.parse(hostgroup_json_file)
[07:14:59] bigkevmcd: has joined #ruby
[07:19:18] vasilakisFiL: has joined #ruby
[07:19:29] allisio: Seenox: Your JSON is slightly ill-formed; you're missing the closing brackets on the internal hashes, and the trailing commas are considered syntax errors by the standard library's JSON module.
[07:19:48] allisio: https://eval.in/785268
[07:19:56] Cohedrin: has joined #ruby
[07:21:56] Seenox: allisio: You're right. I've just copied a little part of my original json file. I've tried JSON.parse again now.
[07:22:07] mark_66: has joined #ruby
[07:22:47] Seenox: Seenox: It seems to work correctly.
[07:23:03] allisio: allisio: Good deal.
[07:23:19] JeanCarloMachado: has joined #ruby
[07:24:20] jackrandom: has joined #ruby
[07:24:26] mclee: has joined #ruby
[07:26:35] Seenox: allisio: Thank you again.
[07:27:53] conta: has joined #ruby
[07:28:10] DrCode: has joined #ruby
[07:35:50] aufi: has joined #ruby
[07:37:55] JeanCarloMachado: has joined #ruby
[07:39:58] anisha: has joined #ruby
[07:41:15] Qchmqs: has joined #ruby
[07:41:59] tbuehlmann: has left #ruby: ()
[07:42:05] User458764: has joined #ruby
[07:44:29] mim1k: has joined #ruby
[07:44:54] Seenox: allisio: I think I am lost again. I've successfully added each block of JSON into hashes. Now I want to select for example only hashes with a specific keys. What did I do wrong here? https://gist.github.com/anonymous/e4349eb54a72f1956d287cc134752452
[07:47:20] nobitanobi: has joined #ruby
[07:50:03] roamingdog: has joined #ruby
[07:51:14] jaruga: has joined #ruby
[07:52:27] al2o3-cr: Seenox: keys or values?
[07:56:29] mikecmpbll: has joined #ruby
[07:57:01] Qchmqs__: has joined #ruby
[07:58:59] andikr: has joined #ruby
[07:59:15] flying: has joined #ruby
[07:59:20] vasilakisFiL: has joined #ruby
[07:59:26] Seenox: al2o3-cr: Values, sorry. Is it a better idea to use .select? Like this for example: https://gist.github.com/anonymous/ee806e719b2df997f450e1d7f152f455
[08:00:40] JeanCarloMachado: has joined #ruby
[08:00:50] burgestrand: Seenox `each` on a hash will yield both keys and values to the block, I assume `host_hash` is a hash here?
[08:01:53] burgestrand: Seenox i.e. `|each_host|` should probably be `|host_key, host_value|` (ideally even more descriptive than that)
[08:02:57] anisha: has joined #ruby
[08:04:38] Dry_Lips: has joined #ruby
[08:04:38] Dry_Lips: has joined #ruby
[08:06:51] tekacs: has joined #ruby
[08:07:36] _DanN_: has joined #ruby
[08:07:56] pocketprotector: has joined #ruby
[08:09:15] yxhuvud: has joined #ruby
[08:09:56] lhambley: has joined #ruby
[08:10:57] blackmes1: has joined #ruby
[08:11:10] Seenox: Burgestrand: 'host_hash' is a hash of hashes in my case. So first I need to separate keys and values and then work with them? Something like this for example: https://gist.github.com/anonymous/2c1622dea53b912f3d4bdf6f06cc6690
[08:11:59] burgestrand: Seenox `host_hash.each do |key, nested_hash|` — compare that to what you have
[08:15:29] patarr: has joined #ruby
[08:15:35] Silthias: has joined #ruby
[08:17:08] burgestrand: Seenox e.g. https://eval.in/785293
[08:18:37] esObe_: has joined #ruby
[08:18:58] JeanCarloMachado: has joined #ruby
[08:19:30] Seenox: Burgestrand: Thanks! Exactly what I needed. What if I've another nested_hash inside a nested_hash for example? Should I break it again with .each?
[08:20:12] burgestrand: Seenox if you provide an example of what your data contains, and what you'd like to get out, I might be able to help you with the translation stuff inbetween :)
[08:20:36] Seenox: Burgestrand: Sure. One moment please.
[08:21:04] burgestrand: Seenox typically `each` is only useful when you want to iterate through the data and do some side effect (usually printing), methods such as `select`, `map`, `filter`, etc are useful when you want to modify the data in some way and keep the result to continue working with it
[08:22:01] burgestrand: Seenox that said, a side effect in `each` could be a variable outside the loop that you also modify, usually there's a more pure (side effect-free) way of doing it, which may or may not be nicer :)
[08:22:42] mim1k: has joined #ruby
[08:24:56] Beams: has joined #ruby
[08:25:19] mooser: has joined #ruby
[08:29:12] Seenox: Burgestrand: Here is my hash for example: https://gist.github.com/anonymous/9651b2498191d31de0bec2b0af5c55b8
[08:29:43] burgestrand: Seenox that looks like two hashes
[08:29:49] rakm: has joined #ruby
[08:30:11] Seenox: Burgestrand: It will be 5000 hashes inside a hash.
[08:31:01] burgestrand: Seenox with some kind of key, so in fact it's more like `host_hash = { "some key" => { "ID" => 37, … }, "some other key" => { "ID" => 48, … } }`?
[08:31:11] Seenox: Burgestrand: Should I avoid each and use select and map in this example? I want to remove all hashes which doesn't contain a certain value from a specific key.
[08:31:50] JeanCarloMachado: has joined #ruby
[08:31:58] Seenox: Burgestrand: No they don't have that first key.
[08:32:20] burgestrand: Seenox every hash has a key and a value
[08:32:40] burgestrand: Seenox if those two hashes you provided are in a hash, then they have a key
[08:33:26] Seenox: Burgestrand: When I use host_hash.each do |each_host|, then it returns each block of those hashes.
[08:33:49] Seenox: Burgestrand: Which looks like what I've sent you as example of my hash.
[08:33:50] burgestrand: Seenox can you show the result of `host_hash.class`
[08:35:02] Seenox: Burgestrand: Hmm, I am lost I think. should I do 'puts host_hash.class' ?
[08:35:09] burgestrand: Seenox yes :)
[08:35:32] Seenox: Burgestrand: Array
[08:36:01] burgestrand: Seenox hehe, figures, so your `host_hash` is not a hash, it's an array, which is a list of hashes, and not a hash of hashes, it doesn't change too much but it's an important distinction
[08:36:44] Seenox: Burgestrand: Exactly. They should be converted into list of hashes first?
[08:37:28] burgestrand: Seenox not at all! But I'd probably name the variable something like `hosts_array` or even just `hosts`
[08:38:16] Seenox: Burgestrand: That's how I imported them from a json file: https://gist.github.com/anonymous/5c40254cc2a74b71a9f7f81b79c8328a
[08:38:57] burgestrand: Seenox yes, it's correct :)
[08:39:11] Seenox: I've renamed it to host_array.
[08:41:20] burgestrand: Seenox an example code to keep only the hosts with an `operatingsystem_name` matching the text `Debian` anywhere could look like this: `debians = host_array.keep_if { |host| /Debian/ === host.dig("Betriebssystem", "operatingsystem_name") }`
[08:42:11] depesz: has joined #ruby
[08:42:13] depesz: has left #ruby: ()
[08:42:41] burgestrand: Seenox e.g. an example that filters on environment: https://eval.in/785344
[08:47:48] Ar_Da: has joined #ruby
[08:47:55] Ar_Da: How can I extract a substring from another string taking N character after and before the substring. For instance I have a string like this: aaaabbbccccctttoooo. I want to extract "cccc" and 4 character after and before so I get abbbcccctttto
[08:48:19] Ar_Da: sorry It would be abbbccccttto
[08:48:21] jsrn_: has joined #ruby
[08:48:53] burgestrand: Ar_Da What if you don't have either 4 characters before and/or after?
[08:49:03] Ar_Da: Burgestrand: that's a nice point
[08:49:12] Ar_Da: my problem is that I dunno any delimiter
[08:49:30] Ar_Da: so I think I have to something more complex to check that you say
[08:50:31] burgestrand: >> "aaaabbbccccctttoooo"[/.{0,4}cccc.{0,4}/]
[08:50:37] ruby[bot]: Burgestrand: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
[08:50:44] burgestrand: Ah, poor ruby bot.
[08:50:56] Seenox: Burgestrand: https://gist.github.com/anonymous/b58dba4ea1bef37acd4d94c0e73e3687
[08:51:06] roamingdog: has joined #ruby
[08:51:31] Ar_Da: Burgestrand: thanks
[08:52:26] burgestrand: Ar_Da that'll allow 0 to 4 characters before and after, might be a bit finnicky with newlines
[08:52:27] Seenox: Burgestrand: Did I do something terribly wrong?
[08:52:34] burgestrand: Seenox did it work terribly?
[08:52:40] tvw: has joined #ruby
[08:52:41] Seenox: Burgestrand: No, but I got an error.
[08:52:47] burgestrand: Seenox ooh, exciting, what error?
[08:52:50] Ar_Da: Burgestrand: thank you
[08:53:03] Seenox: Burgestrand: `block in <main>': undefined method `dig' for #<Hash:0x00000001c03770> (NoMethodError) from test.rb:12:in `keep_if' from test.rb:12:in `<main>'
[08:53:20] burgestrand: Seenox ah, I betcha you're on an older version of ruby than the one I'm used to
[08:54:00] burgestrand: Seenox you can replace `host.dig("hostgroup_name")` with just `host["hostgroup_name"]`
[08:54:23] Seenox: Burgestrand: I am on 1.9.1
[08:54:24] mogaj: has joined #ruby
[08:54:37] lxsameer: has joined #ruby
[08:54:53] burgestrand: Seenox aye, it's way old and not even receiving security patches these days, but it's not uncommon to have it as the system ruby still because… well… systems lag behind
[08:54:59] JeanCarloMachado: has joined #ruby
[08:55:31] Seenox: Burgestrand: Worked. but just returned [].
[08:56:52] Seenox: Burgestrand: as in my example, I want to keep each of hashes (or Array?) that contains that Debian in hostgroup_name in it.
[08:57:06] burgestrand: Seenox ah, yes, you'll need `host["Betriebssystem"]["hostgroup_name"]`, since the `hostgroup_name` is nested inside another hash inside the host
[08:57:40] burgestrand: Seenox downside to using `[]` instead of `dig` here is that you'll get an error if the key "Betriebssystem" is missing from any host, but with some luck your data is fairly uniform :)
[08:58:15] Seenox: Burgestrand: Awesome! It worked.
[08:58:29] Seenox: Burgestrand: [6, 16, 48, 50]
[08:58:49] burgestrand: Seenox if the value is surrounded by `[…]` then it's an Array, if it's surrounded by `{…}` it's a hash
[08:59:19] Seenox: Burgestrand: So it will be ok to work with them for further data editing in it as arrays?
[08:59:36] burgestrand: Seenox yeah it's no problem, the thing is you need to know what format your data is in
[09:02:13] Seenox: Burgestrand: Thank you so much! It worked perfectly. https://gist.github.com/anonymous/a2cbae60c592acf12aec74dd836cca1f
[09:02:17] binaryplease: has joined #ruby
[09:02:25] burgestrand: Seenox lovely :)
[09:02:55] Seenox: Burgestrand: You will be an amazing teacher one day! So patient and helpful. That's really great.
[09:03:15] burgestrand: Seenox thank you :)
[09:03:52] JeanCarloMachado: has joined #ruby
[09:05:01] toretore: has joined #ruby
[09:05:28] Seenox: Burgestrand: Did we use .map to run through each block of arrays?
[09:05:53] burgestrand: Seenox nope, no need, `map` is only used if you want to change the data you get back in some way
[09:06:00] burgestrand: >> [1, 2, 3, 4].map { |x| x ** x }
[09:06:01] ruby[bot]: Burgestrand: # => [1, 4, 27, 256] (https://eval.in/785377)
[09:06:27] SenpaiSilver: has joined #ruby
[09:07:07] Seenox: Burgestrand: The example was too much for a newbie like me! lol
[09:07:34] Seenox: Burgestrand: So in my example, we could just use p production_hosts ?
[09:07:59] Seenox: Burgestrand: "IF" we wanted to just print the whole block.
[09:08:01] burgestrand: Seenox yeah, sure, if you're happy with the result of that, it's just short for `print production_hosts` with a more debuggy like output
[09:08:36] Seenox: Burgestrand: I see. So we used .map to print only 'ID's from the remaining hosts?
[09:09:12] Seenox: Burgestrand: Gotcha. Thanks again.
[09:09:54] Seenox: Burgestrand: I will have to work more with my data and further filter it and see how far I can go with it.
[09:10:27] burgestrand: Seenox how far? to the stars, for sure :)
[09:10:33] SenpaiSilver: has joined #ruby
[09:11:06] Seenox: Burgestrand: With your help, for sure! It always help a lot to have someone like you that can explain stuff in human language so to say!
[09:11:25] burgestrand: Seenox I'm sure there are many more capable hands in this channel that'd be happy to help :)
[09:11:47] Seenox: Burgestrand: I will definitely use their help in the future too.
[09:12:42] al2o3-cr: has joined #ruby
[09:14:12] Mortomes|Work_: has joined #ruby
[09:19:45] JeanCarloMachado: has joined #ruby
[09:30:50] _bet0n: has joined #ruby
[09:32:02] apparition: has joined #ruby
[09:32:53] apparition: has joined #ruby
[09:37:10] astrobunny: has joined #ruby
[09:40:30] guardianx: has joined #ruby
[09:41:35] JeanCarloMachado: has joined #ruby
[09:42:43] romank: has joined #ruby
[09:42:47] guardianx: has joined #ruby
[09:44:05] mim1k: has joined #ruby
[09:44:59] [diecast]: has joined #ruby
[09:45:15] kapowaz: has joined #ruby
[09:45:18] digitalfiz: has joined #ruby
[09:45:48] DukeDave: has joined #ruby
[09:46:22] jhill__: has joined #ruby
[09:46:31] mroth: has joined #ruby
[09:47:09] ckrailo: has joined #ruby
[09:47:13] jpinnix: has joined #ruby
[09:47:20] ec: has joined #ruby
[09:47:50] jmhmccr: has joined #ruby
[09:48:20] knowtheory: has joined #ruby
[09:48:42] incomprehensibly: has joined #ruby
[09:49:00] rflot: has joined #ruby
[09:49:21] wbnns: has joined #ruby
[09:51:01] mrbobbytables: has joined #ruby
[09:51:24] noctux: has joined #ruby
[09:51:26] err_ok: has joined #ruby
[09:55:04] jackrandom: has joined #ruby
[09:56:07] Majost: has joined #ruby
[09:56:17] jcp___: has joined #ruby
[09:56:20] jimcroft: has joined #ruby
[09:56:55] mitsuhiko: has joined #ruby
[09:58:02] al2o3-cr: has joined #ruby
[09:58:29] burgestrand: has joined #ruby
[10:02:14] JeanCarloMachado: has joined #ruby
[10:03:17] jackrandom: has joined #ruby
[10:07:50] bernd27: has joined #ruby
[10:10:26] burgestrand: has joined #ruby
[10:13:55] ferr: has joined #ruby
[10:14:05] vcoinminer: has joined #ruby
[10:14:09] MrBloo: has joined #ruby
[10:15:48] hayden___: has joined #ruby
[10:16:22] patarr: has joined #ruby
[10:17:14] brent__: has joined #ruby
[10:17:43] bweston92: has joined #ruby
[10:18:05] davic: has joined #ruby
[10:22:23] chopin: has joined #ruby
[10:22:29] burgestrand: has joined #ruby
[10:24:42] agit0: has joined #ruby
[10:25:25] skweek: has joined #ruby
[10:28:03] charliesome: has joined #ruby
[10:29:16] astrobunny: has joined #ruby
[10:33:15] KnownSyntax: has joined #ruby
[10:33:49] burgestrand: has joined #ruby
[10:37:27] t-recx: has joined #ruby
[10:38:11] jaruga: has joined #ruby
[10:46:04] burgestrand: has joined #ruby
[10:47:31] marr: has joined #ruby
[10:48:53] User458764: has joined #ruby
[10:50:04] bauruine: has joined #ruby
[10:51:55] aupadhye: has joined #ruby
[10:54:58] GodFather__: has joined #ruby
[10:57:29] burgestrand: has joined #ruby
[10:59:23] ChaosArchitect: has joined #ruby
[11:07:51] nobitanobi: has joined #ruby
[11:09:09] burgestrand: has joined #ruby
[11:14:14] 07EAAS2NJ: has joined #ruby
[11:14:14] patarr: has joined #ruby
[11:17:48] snowy: has joined #ruby
[11:25:09] guardianx: has left #ruby: ()
[11:25:51] skweek: has joined #ruby
[11:28:12] BSaboia: has joined #ruby
[11:31:20] hndk: has joined #ruby
[11:38:04] mooser: has joined #ruby
[11:40:40] petruff: has joined #ruby
[11:41:09] yorickpeterse: has joined #ruby
[11:42:00] apparition: has joined #ruby
[11:42:20] ddffg: has joined #ruby
[11:46:23] User458764: has joined #ruby
[11:48:15] binaryplease: has joined #ruby
[11:48:42] ldnunes: has joined #ruby
[11:49:28] blackwind_123: has joined #ruby
[11:49:32] JeanCarloMachado: has joined #ruby
[11:54:53] sczizzo: has joined #ruby
[11:57:34] charliesome: has joined #ruby
[11:57:53] blackmes1: has joined #ruby
[12:01:47] millerti: has joined #ruby
[12:02:27] ferr: has joined #ruby
[12:06:00] Guest77232: has joined #ruby
[12:08:43] mooser: has joined #ruby
[12:09:58] millerti: has joined #ruby
[12:11:24] gnufied: has joined #ruby
[12:11:57] fusta: has joined #ruby
[12:14:19] GinoMan: has joined #ruby
[12:16:04] antgel: has joined #ruby
[12:17:12] GinoMan: has joined #ruby
[12:17:46] brent__: has joined #ruby
[12:18:42] GinoMan: has joined #ruby
[12:20:14] GinoMan: has joined #ruby
[12:20:46] User458764: has joined #ruby
[12:23:00] dafoo: has joined #ruby
[12:23:12] dafoo: is ruby different from ruby on rails?
[12:24:00] elomatreb: Ruby on Rails is a set of libraries/a framework written in Ruby, yes
[12:24:15] sepp2k: has joined #ruby
[12:24:31] Lavan: has joined #ruby
[12:24:41] Lavan: same guy from yesterday
[12:24:44] Lavan: same question...
[12:24:50] chopin: has joined #ruby
[12:24:51] Lavan: i just noticed something interesting...
[12:25:03] dafoo: elomatreb: ruby on rails would entirely be different? what is the purpose of ruby on rails?
[12:25:10] jamesaxl: has joined #ruby
[12:25:23] Lavan: if i print out the cursor value every time it changes, it seems that it doesn't go all the way up to 143 before it reverses...
[12:25:30] Lavan: it shoudn't be this way
[12:25:56] Zarthus: daf__: It's something you could google ;p
[12:26:47] elomatreb: Lavan: Your code?
[12:26:51] Lavan: https://gist.github.com/Tony-Stark/1ecf71e4cfe3e080b18f655c8b84e040
[12:27:04] Lavan: the problem statement ill add soon
[12:27:25] elomatreb: Protip: If you give your gist file a .rb extension, you get syntax highlighting
[12:27:32] biberu: has joined #ruby
[12:27:36] Lavan: https://gist.github.com/Tony-Stark/8d9762f93c0ab9b6e111e6a05b496338
[12:27:43] Lavan: good tip mate! didn't know...
[12:27:50] Lavan: should i re-upload it?
[12:28:11] elomatreb: You can edit gists, you even get a full diff history
[12:29:51] haylon_: has joined #ruby
[12:31:17] d10n-work: has joined #ruby
[12:31:42] pupsicle: has joined #ruby
[12:31:52] Polysics: has joined #ruby
[12:35:33] gnufied: has joined #ruby
[12:36:22] skweek: has joined #ruby
[12:37:22] Lavan: edited it elomatreb
[12:38:09] roamingdog: has joined #ruby
[12:39:18] cfec0b8d: has joined #ruby
[12:44:25] pupsicle: has joined #ruby
[12:45:40] brent__: has joined #ruby
[12:46:58] skade_: has joined #ruby
[12:52:37] charliesome: has joined #ruby
[12:53:09] BTRE: has joined #ruby
[12:59:18] snowy: has joined #ruby
[13:00:50] ramortegui: has joined #ruby
[13:02:22] mim1k: has joined #ruby
[13:03:17] CrazyEddy: has joined #ruby
[13:07:03] duckpupp1: has joined #ruby
[13:08:06] erlendf: has joined #ruby
[13:10:43] Jameser: has joined #ruby
[13:11:32] mim1k_: has joined #ruby
[13:12:00] cdg: has joined #ruby
[13:12:08] roamingdog: has joined #ruby
[13:12:24] workmad3: has joined #ruby
[13:17:13] gaucheph: has joined #ruby
[13:18:23] sonOfRa: has joined #ruby
[13:18:39] mjuszczak: has joined #ruby
[13:19:37] mjuszczak: has joined #ruby
[13:20:04] jrafanie: has joined #ruby
[13:20:29] workmad3_: has joined #ruby
[13:24:47] Jameser: has joined #ruby
[13:25:35] workmad3: has joined #ruby
[13:25:37] millerti: has joined #ruby
[13:26:04] patr0clus: has joined #ruby
[13:26:47] dcunit3d: has joined #ruby
[13:31:33] snowy: has joined #ruby
[13:32:39] mniip: has joined #ruby
[13:33:00] DLSteve: has joined #ruby
[13:33:20] scrooloose: has joined #ruby
[13:34:15] beauby: has joined #ruby
[13:36:45] djbkd_: has joined #ruby
[13:37:42] gottcha: has joined #ruby
[13:41:46] mim1k: has joined #ruby
[13:43:19] haylon: has joined #ruby
[13:43:22] Jameser: has joined #ruby
[13:45:03] timvisher: has joined #ruby
[13:49:54] mtkd: has joined #ruby
[13:50:17] nobodyzxc: has joined #ruby
[13:50:57] valentinul: has joined #ruby
[13:52:54] Beams: has joined #ruby
[14:03:30] rkazak: has joined #ruby
[14:05:27] patarr: has joined #ruby
[14:05:34] patarr1: has joined #ruby
[14:06:01] skade_: has joined #ruby
[14:06:46] Guest96: has joined #ruby
[14:07:21] jaruga: has joined #ruby
[14:07:58] mooser: has joined #ruby
[14:08:01] jaruga: has joined #ruby
[14:11:42] ResidentBiscuit: has joined #ruby
[14:12:31] mim1k: has joined #ruby
[14:15:27] __Yiota: has joined #ruby
[14:19:14] kobain: has joined #ruby
[14:22:49] blackmes1: has joined #ruby
[14:24:45] GodFather__: has joined #ruby
[14:29:48] User458764: has joined #ruby
[14:30:06] whiteline: has joined #ruby
[14:30:23] theunraveler: has joined #ruby
[14:31:02] BSAlb: has joined #ruby
[14:31:18] whiteline: has joined #ruby
[14:33:19] mikecmpb_: has joined #ruby
[14:33:51] theunraveler: has joined #ruby
[14:35:35] fusta: has joined #ruby
[14:40:23] gizmore: has joined #ruby
[14:41:42] mark_66: has joined #ruby
[14:41:56] BSab: has joined #ruby
[14:42:20] vondruch: has joined #ruby
[14:42:21] nopacien13: has joined #ruby
[14:42:46] SuperLag: has joined #ruby
[14:43:16] dionysus69: has joined #ruby
[14:43:18] Nahra: has joined #ruby
[14:43:39] roamingd_: has joined #ruby
[14:44:11] jaruga: has joined #ruby
[14:44:27] davic: has joined #ruby
[14:44:28] olivier__: has joined #ruby
[14:44:58] justinmcp: has joined #ruby
[14:45:20] Gnubie_: has joined #ruby
[14:45:24] tomphp: has joined #ruby
[14:45:24] boshhead: has joined #ruby
[14:45:38] hotpancakes: has joined #ruby
[14:45:49] ytti: has joined #ruby
[14:45:52] ahuman: has joined #ruby
[14:45:58] pupsicle1: has joined #ruby
[14:46:17] abort: has joined #ruby
[14:46:25] ec\: has joined #ruby
[14:46:30] jimcroft: has joined #ruby
[14:46:32] iamayam: has joined #ruby
[14:46:49] noodle: has joined #ruby
[14:46:50] daed: has joined #ruby
[14:46:55] vondruch: has joined #ruby
[14:47:15] Pongles: has joined #ruby
[14:47:31] jcp___: has joined #ruby
[14:47:40] kies: has joined #ruby
[14:47:41] TheMoonMaster: has joined #ruby
[14:47:47] jpinnix: has joined #ruby
[14:48:13] CrazyEddy: has joined #ruby
[14:48:16] mrbobbytables: has joined #ruby
[14:48:20] chrisarcand: has joined #ruby
[14:48:22] vcoinminer: has joined #ruby
[14:48:32] csk: has joined #ruby
[14:48:54] jmhmccr: has joined #ruby
[14:49:15] kireevco: has joined #ruby
[14:49:15] kiltzman: has joined #ruby
[14:49:22] greenhat: has joined #ruby
[14:49:27] DukeDave: has joined #ruby
[14:49:27] MrBloo: has joined #ruby
[14:49:37] Majost: has joined #ruby
[14:49:37] hxegon: Lavan: Hey! Is the cursor not going all the way up to the cell value because the ciphertext isn't that long? Otherwise it would be an out of bounds, right?
[14:49:44] last_staff: has joined #ruby
[14:49:45] Liothen: has joined #ruby
[14:49:50] moufl: has joined #ruby
[14:50:08] rwb: has joined #ruby
[14:50:12] solidsnack: has joined #ruby
[14:50:21] duckpupp1: has joined #ruby
[14:50:33] edwardly: has joined #ruby
[14:50:33] edwardly: has joined #ruby
[14:51:00] mitsuhiko: has joined #ruby
[14:51:09] justinmrkva: has joined #ruby
[14:51:13] Tatey: has joined #ruby
[14:51:48] Jello_Raptor: has joined #ruby
[14:51:54] mattp__: has joined #ruby
[14:52:07] bove: has joined #ruby
[14:52:24] mrsolo: has joined #ruby
[14:52:59] rjungemann: has joined #ruby
[14:53:22] brixen: has joined #ruby
[14:54:04] Heero__: has joined #ruby
[14:54:07] t-richards: has joined #ruby
[14:54:34] pmarreck: has joined #ruby
[14:55:15] allisio: has joined #ruby
[14:55:30] planigan: has joined #ruby
[14:56:04] patarr: has joined #ruby
[14:56:08] balazs: has joined #ruby
[14:56:12] andersh: has joined #ruby
[14:56:12] tsunamie: has joined #ruby
[14:56:19] Tharbakim: has joined #ruby
[14:56:19] Tharbakim: has joined #ruby
[14:56:32] darthvorik: has joined #ruby
[14:57:15] szulak: has joined #ruby
[14:57:23] spiette: has joined #ruby
[14:57:33] fumk: has joined #ruby
[14:58:07] hogetaro_: has joined #ruby
[14:58:15] cardoni: has joined #ruby
[14:58:46] avdi: has joined #ruby
[14:59:20] workmad3: has joined #ruby
[15:00:56] guacamole: has joined #ruby
[15:01:56] Lavan: ive just noticed that it does goall the way up so it is not the problem
[15:02:22] al2o3-cr: Lavan: is this some sort of challenge?
[15:02:34] johnkpaul: has joined #ruby
[15:02:37] gheegh: has joined #ruby
[15:04:13] chromis: has joined #ruby
[15:04:43] bcavileer: has joined #ruby
[15:04:47] conta1: has joined #ruby
[15:05:11] charles81_: has joined #ruby
[15:05:14] tomphp: has joined #ruby
[15:05:20] mooser: has joined #ruby
[15:05:31] pfg: has joined #ruby
[15:06:08] skmp: has joined #ruby
[15:07:25] centrx: has joined #ruby
[15:07:39] jimeh: has joined #ruby
[15:07:51] mooser: has joined #ruby
[15:07:54] ewilliam__: has joined #ruby
[15:07:58] manveru: has joined #ruby
[15:08:06] headius: has joined #ruby
[15:08:07] jdelStrother: has joined #ruby
[15:08:58] Lavan: yes it is
[15:09:03] centrx: It begins
[15:09:12] Lavan: it is a challenge al2o3-cr
[15:10:28] antgel: has joined #ruby
[15:10:58] rippa: has joined #ruby
[15:11:08] mooser: has joined #ruby
[15:12:43] Sou|cutter: has joined #ruby
[15:14:15] ledestin: has joined #ruby
[15:14:23] cahoots: has joined #ruby
[15:14:26] al2o3-cr: Lavan: the closest i get is: https://eval.in/785624
[15:14:29] duderonomy: has joined #ruby
[15:14:33] patarr: has joined #ruby
[15:16:45] mikecmpbll: has joined #ruby
[15:17:18] al2o3-cr: i can't see why that last part is malformed
[15:19:37] patarr1: has joined #ruby
[15:22:43] MissionCritical: has joined #ruby
[15:23:35] theunraveler: has joined #ruby
[15:24:47] theunraveler: has joined #ruby
[15:24:53] polishdub: has joined #ruby
[15:27:45] Lavan: how did you make it to work al2o3-cr??!
[15:27:47] cpruitt: has joined #ruby
[15:27:49] Lavan: its awesome
[15:31:37] Lavan: what happend there really? can you explain the solution al2o3-cr ? what did you do there with the [c%128].pack('C') and is it the only difference
[15:32:34] tercenya: has joined #ruby
[15:33:44] al2o3-cr: Lavan: it's the same as (c%128).chr i was just checking something before oh, and dir = 1 if cursor < 0 instead of <= the rest you earned :P
[15:34:36] Lavan: alright this is so cool
[15:34:53] Lavan: now i really wonder why there's still a lil bit of cipher left scrambled...
[15:34:53] al2o3-cr: it's still not right though
[15:35:12] Lavan: no no, it turns out to be right...
[15:35:15] al2o3-cr: i'll have another look after got to go
[15:35:32] Lavan: almost right at least, but you can figure the password from that
[15:35:34] brent__: has joined #ruby
[15:35:39] Lavan: thanks alot :D
[15:36:07] workmad3_: has joined #ruby
[15:36:12] roamingdog: has joined #ruby
[15:36:37] roamingdog: has joined #ruby
[15:37:15] brent__: has joined #ruby
[15:37:27] roamingdog: has joined #ruby
[15:38:00] mim1k: has joined #ruby
[15:38:11] roamingdog: has joined #ruby
[15:39:01] roamingdog: has joined #ruby
[15:39:51] roamingdog: has joined #ruby
[15:41:06] workmad3: has joined #ruby
[15:42:02] patr0clus: has joined #ruby
[15:42:03] centrx: FYI Ruby is the best programming language
[15:43:19] cahoots: has joined #ruby
[15:45:16] ytti: glad that's settled now
[15:45:24] ytti: i'd love to review the paper
[15:45:40] ytti: i have some additional questions and concerns
[15:46:45] BSaboia: has joined #ruby
[15:46:58] sonOfRa: has joined #ruby
[15:47:30] joevandyk: has joined #ruby
[15:48:02] BSAlb: has joined #ruby
[15:52:08] blackmes1: has joined #ruby
[15:53:48] yxhuvud: has joined #ruby
[15:54:02] kspencer: is there a library where I can run var.parent.arbitrary.child = value, without dealing with the 'no method' and that can be returned as a hash
[15:55:09] amclain: has joined #ruby
[15:55:22] ljarvis: kspencer: well, that's not a hash, they're method calls
[15:55:32] seggy: has joined #ruby
[15:55:36] ljarvis: unless you mean foo[:bar][:baz][:child] = value
[15:55:52] chopin: has joined #ruby
[15:56:36] ljarvis: also, srsly law of demeter
[15:56:46] rkazak: has joined #ruby
[15:57:29] cagomez: has joined #ruby
[15:58:16] cagomez: has joined #ruby
[15:58:44] cagomez: has joined #ruby
[16:00:29] hobodave: has joined #ruby
[16:00:41] blackmesa: has joined #ruby
[16:00:47] elomatreb: kspencer: OpenStructs sound like what you want: http://ruby-doc.org/stdlib-2.4.1/libdoc/ostruct/rdoc/OpenStruct.html
[16:04:19] kspencer: hmm I'll change my code to implement that, thanks elomatreb
[16:05:48] hotpancakes: has joined #ruby
[16:05:59] beauby: has joined #ruby
[16:06:02] Cohedrin: has joined #ruby
[16:07:59] brodul: has joined #ruby
[16:11:06] kristofferR: has joined #ruby
[16:11:08] chef3000: has joined #ruby
[16:11:32] chef3000: lost my connection not sure if this was sent. https://pastebin.com/FNZ0ubXu
[16:11:34] ruby[bot]: chef3000: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/1c9e62b3ce1e9841fe028aa884b801b0
[16:11:34] ruby[bot]: chef3000: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[16:13:54] elomatreb: chef3000: It was not, and neither was any question
[16:15:27] chef3000: I am attempting to delete all files in a folder except for one. The gist is my attempt. Wondering if there is a better/preferred way to achieve this. Thanks.
[16:17:17] kspencer: Even without looking at that, looping through the directories files and doing an if in there to see if its the one you want sounds like the easiest route to me
[16:17:35] tlaxkit: has joined #ruby
[16:17:43] elomatreb: FileUtils.rm takes a list (an array) of files, so you could use array difference
[16:18:12] elomatreb: FileUtils.rm(Dir.glob('c:/test/temp/**/*') - ["c:/test/temp/file_you_want_to_keep.txt"])
[16:18:38] ccooke: that could be quite bad if the set of files is big, though
[16:18:58] elomatreb: The list of files or the list of exceptions?
[16:19:17] ccooke: The set of files
[16:19:33] chef3000: It will actually be run against a yum repo directory, so the files in that folder will be very few.
[16:22:09] chef3000: thank you that is what I was looking for.
[16:22:23] gusrub: has joined #ruby
[16:23:45] txjoe_: has joined #ruby
[16:24:02] txjoe_: has left #ruby: ()
[16:26:03] skade_: has joined #ruby
[16:27:13] outreachdan: has joined #ruby
[16:31:59] aspiers: has joined #ruby
[16:32:57] mtkd: has joined #ruby
[16:33:12] BSab: has joined #ruby
[16:35:30] LastWhisper____: has joined #ruby
[16:36:04] havenwood: LastWhisper____: hi
[16:36:15] BSaboia: has joined #ruby
[16:36:49] LastWhisper____: has left #ruby: ()
[16:36:50] LastWhisper____: has joined #ruby
[16:37:39] JeanCarloMachado: has joined #ruby
[16:37:46] LastWhisper____: I'm writing a small blog post and trying to come up with some ruby snippets that represent "Guitar output" digitally
[16:37:57] LastWhisper____: so each string is represented similar to [1,2,3,4,5]
[16:38:55] LastWhisper____: and if you were to iteratively strum each one, the output would be like [1,2,3,4,5], but with a "delay" effect, it would be [1,1,2,2,3,3,4,4,5,5] (this part is easy)
[16:39:07] workmad3_: has joined #ruby
[16:39:32] LastWhisper____: the next level though, is to represent "feedback" which would look a bit like this [1,1,1,1,1,1,2,2,2,1,1,2,1,2,1,2,1,2,1,2,1]
[16:39:35] ben_alman: has joined #ruby
[16:39:50] LastWhisper____: from what i'm told, feedback is feeding the delay signal back into itself
[16:40:32] LastWhisper____: I'm trying to think of a way to represent that just playing around with arrays though and I can't think of any besides just doing some manual work and concatenating
[16:41:11] roamingdog: has joined #ruby
[16:42:46] troter__________: has joined #ruby
[16:43:32] raspado: has joined #ruby
[16:44:22] guidos: has joined #ruby
[16:44:23] jrafanie: has joined #ruby
[16:45:43] sent-hil: has joined #ruby
[16:46:19] beauby: has joined #ruby
[16:46:20] canton7: maybe the sticking point is that audio isn't just "one note then another" - they're added together
[16:47:35] pupsicle: has joined #ruby
[16:47:53] brent__: has joined #ruby
[16:47:58] ColeHub: has joined #ruby
[16:48:00] hotpancakes: has joined #ruby
[16:52:45] __Yiota: has joined #ruby
[16:55:20] araujo: has joined #ruby
[16:56:25] araujo: has joined #ruby
[16:56:32] AndBobsYourUncle: has joined #ruby
[16:59:30] mooser: has joined #ruby
[17:01:05] swills: has joined #ruby
[17:01:45] rprimus: has joined #ruby
[17:02:21] jackrandom: has joined #ruby
[17:03:13] nitric: has joined #ruby
[17:03:58] cdg: has joined #ruby
[17:05:44] kent\n: has joined #ruby
[17:07:09] gheegh: has joined #ruby
[17:09:42] rakm: has joined #ruby
[17:09:56] hotpancakes: has joined #ruby
[17:10:30] Guest96: has joined #ruby
[17:11:18] quobo: has joined #ruby
[17:12:26] hotpanca_: has joined #ruby
[17:12:30] tristanp: has joined #ruby
[17:14:43] skade_: has joined #ruby
[17:15:40] justizin: has joined #ruby
[17:16:53] ldnunes: has joined #ruby
[17:17:00] JeanCarloMachado: has joined #ruby
[17:20:01] tercenya: has joined #ruby
[17:21:12] milardovich: has joined #ruby
[17:21:33] ColeHub: has joined #ruby
[17:22:11] patr0clus: has joined #ruby
[17:26:16] kies: has joined #ruby
[17:29:36] blackmesa: has joined #ruby
[17:31:02] Cohedrin: has joined #ruby
[17:31:05] rkazak: has joined #ruby
[17:33:31] User458764: has joined #ruby
[17:33:49] cout: has joined #ruby
[17:34:04] MrBusiness: has joined #ruby
[17:34:14] perniciouscaffei: has joined #ruby
[17:35:33] cout: I have a short script that calls out to another program (let's say with system()) and I want to pass the exit status back unmodified. If I use exit $?.to_i, then that fails for the false command ($?.to_i is 256 so the effective exit code is 0). If I use exit $?.exitstatus then that fails for a program that aborts and dumps core ($?.to_i is 134 but $?.exitstatus is nil since the program terminated abnormally).
[17:36:01] cout: I'm tempted to write exit($?.exitstatus || $?.to_i), but I'm not confident that's right either
[17:36:43] mikecmpbll: has joined #ruby
[17:37:54] petruff: has joined #ruby
[17:41:34] nhhc: has joined #ruby
[17:41:58] bernd27: has joined #ruby
[17:41:58] Cohedrin: has joined #ruby
[17:42:51] hotpancakes: has joined #ruby
[17:44:09] eam: cout: you want $?.exitstatus
[17:45:13] eam: the exit status on unix is a 16 bit integer, and the value returned by exit() is 8 bit
[17:45:25] eam: the other 8 bits are filled in by the kernel
[17:45:41] eam: $?.exitstatus are those 8 bits relevant to exit()
[17:46:07] eam: this is documented in Process::Status https://ruby-doc.org/core-2.2.0/Process/Status.html
[17:47:26] dminuoso: ACTION slaps eam for linking outdated documentation
[17:47:28] hotpancakes: has joined #ruby
[17:47:47] dminuoso: ACTION pokes eam with his eskrima sticks
[17:48:41] toretore: im still running 1.9
[17:48:58] cout: eam: but if the child terminates abnormally, exitstatus is nil, and exit(nil) isn't valid since nil is not an integer
[17:50:21] eam: abnormally how?
[17:50:47] cout: int main() { abort(); }
[17:52:41] BSAlb: has joined #ruby
[17:52:44] hotpancakes: has joined #ruby
[17:53:02] patarr: has joined #ruby
[17:53:31] eam: seems like a bug
[17:53:45] eam: all processes have an exit code
[17:54:05] cout: man 2 wait
[17:54:14] toretore: shouldn't you be checking `exited?` explicitly?
[17:54:27] romank: has joined #ruby
[17:54:30] cout: WEXITSTATUS() has no meaning unless the child terminated normally
[17:54:30] akkad: has joined #ruby
[17:54:44] eam: cout: well, otherwise it's zero
[17:54:48] cout: toretore: exitstatus does that for you
[17:55:05] cout: eam: I think it's undefined in that case (so maybe 0, maybe something else)
[17:55:08] toretore: i mean as a matter of being explicit in itself
[17:55:29] toretore: if exited? then exitstatus else something_weird_happened end
[17:56:13] eam: WEXITSTATUS is 7 bits right?
[17:56:17] cout: I could probably argue it both ways
[17:56:37] cout: eam: seems to be 8 bits; not sure if that's guaranteed
[17:56:39] eam: or is that just shell convention?
[17:56:59] toretore: if you come back in a year and see `exitstatus || to_i` you'll probably not understand what it means
[17:57:03] nobitanobi: has joined #ruby
[17:57:37] sunrunner20: just found a script that has an integer with an underscore in it: 86_400
[17:57:37] cout: toretore: I think to_i is probably wrong but I don't know why
[17:57:42] skweek: has joined #ruby
[17:57:49] cout: toretore: so I'm using exitstatus || 127 for now
[17:57:51] toretore: sunrunner20: it is ignored
[17:57:57] apeiros: sunrunner20: underscores in integers are ignored
[17:58:13] sunrunner20: so its just there to pretend to be a thousands indicator
[17:58:32] apeiros: s/to pretend/
[17:58:54] eam: shell convetion is to set the 8th bit if something went wrong and exit(3) wasn't called
[17:59:23] eam: and to push that other 8 bites of data down into the exit code
[17:59:30] toretore: cout: yeah i don't know what the right status to return is, i'm just arguing that the abnormal case should be explicit and obvious
[17:59:40] eam: seems like you'd want to adopt a similar mechanism if you want to do the same
[17:59:51] mooser: has joined #ruby
[17:59:59] eam: the problem is you're wanting to return the full 16 bits (whether abort was called, etc) but only using the last 8 bits
[18:00:29] eam: so /bin/sh does that by reserving the high bit and mapping the behaviors in
[18:01:50] cout: eam: I'm wanting to stick to convention
[18:02:08] petruff1: has joined #ruby
[18:02:33] cout: eam: or rather, I'm wanting to stick to _correct_ convention (convention in ruby seems to be to blindly use exitstatus, which for reasons mentioned above is wrong)
[18:02:35] duderonomy: has joined #ruby
[18:02:36] mostlybadfly: has joined #ruby
[18:02:55] mjuszczak: has joined #ruby
[18:03:06] workmad3: has joined #ruby
[18:04:17] sonOfRa: has joined #ruby
[18:04:19] psychicist__: has joined #ruby
[18:05:52] cdg_: has joined #ruby
[18:07:52] Lavan: al2o3-cr , might you have a suggestion on attacking the next problem? now there's another ciphered text without a key, but they do tell you that the key consists of 3 descriptors, and the final result includes only english letters, spaces, and '?' '.'
[18:08:14] Oclair: has joined #ruby
[18:09:06] Jody: has joined #ruby
[18:09:21] Lavan: what i think you should do is brute force through all 3 descripors combination, stopping when you don't get any character that don't fall to the criteria (english letters, spaces,'?','.')
[18:09:42] Lavan: or maybe someone else has an idea
[18:11:21] Lavan: guys, a question for you all...
[18:13:05] hxegon: Lavan that sounds like you'd get a lot of false positives, but I can't think of a better soluion off the top of my head
[18:13:45] Lavan: suppose you have an array like this [[0,0,0],[0,0,0],[0,0,0]].you want to change it each iteration so it iterates through all combinations from [[0,0,0],[0,0,0],[0,0,0]] to [[255,255,255],[255,255,255],[255,255,255]]
[18:14:39] Lavan: I'm thinking of a way to implement it... i don't think it'll give us too many false positive as it would seem at glance... just a feeling. the problem is i can't be confident enough on the correctness of the former code.
[18:14:56] freeze: has joined #ruby
[18:15:21] Lavan: because it got the result with minor errors that would make the whole expression wrong in such test
[18:15:24] hxegon: is the key just three sub-arrays?
[18:15:36] Lavan: yes, the key is just three sub arrays
[18:17:09] yxhuvud: has joined #ruby
[18:17:14] mondongo: has joined #ruby
[18:17:51] hxegon: Lavan: hold on
[18:17:55] patarr: has joined #ruby
[18:18:18] mondongo: has left #ruby: ()
[18:20:05] synstack: has joined #ruby
[18:21:29] Lavan: ok no problem
[18:21:38] enterprisey: has joined #ruby
[18:23:08] rakm: has joined #ruby
[18:23:16] preyalone: has joined #ruby
[18:24:08] rakm: has joined #ruby
[18:24:14] chopin: has joined #ruby
[18:24:43] rakm: has joined #ruby
[18:25:33] jusa: has joined #ruby
[18:25:34] rakm: has joined #ruby
[18:26:18] rakm: has joined #ruby
[18:28:21] skade_: has joined #ruby
[18:31:57] GinoMan: has joined #ruby
[18:32:11] vuoto: has joined #ruby
[18:36:14] AndrewIsHere: has joined #ruby
[18:36:53] hotpancakes: has joined #ruby
[18:37:22] patarr: has joined #ruby
[18:39:51] hotpanca_: has joined #ruby
[18:41:45] jrafanie: has joined #ruby
[18:42:03] cfec0b8d: has joined #ruby
[18:42:12] workmad3: has joined #ruby
[18:42:46] roamingdog: has joined #ruby
[18:43:44] chouhoulis: has joined #ruby
[18:44:43] faces: has joined #ruby
[18:44:44] tercenya: has joined #ruby
[18:45:57] hxegon: Lavan: ok, so the brute force might take a while, considering it's worst case 256 ^ 9 * how long it takes to check if a key 'works' for the ciphertext
[18:46:29] Lavan: any other leads?
[18:46:46] Lavan: you are right...
[18:47:40] hxegon: No other leads though. Do you have the problem statement?
[18:47:54] hxegon: I have an easyish way to make subkey permutations though, so theres that
[18:48:11] mjuszczak: has joined #ruby
[18:48:29] Lavan: i have the problem statement
[18:49:10] hxegon: >> ((0..255).to_a * 3).permutation(3).next
[18:49:12] ruby[bot]: hxegon: # => [0, 1, 2] (https://eval.in/785730)
[18:49:15] gchristensen: has joined #ruby
[18:49:22] gchristensen: hi, is there a support schedule for ruby versions?
[18:49:30] hxegon: it doesn't start at 0, 0, 0, but it works it's way through all possible values of a subkey
[18:49:33] gchristensen: like how long will 2.3 be supported?
[18:49:57] Lavan: https://gist.github.com/Tony-Stark/de711327def767258881cd5ced0fe69c
[18:50:14] Lavan: doesn't have to start at 0
[18:50:56] hxegon: also, it's lazy so if you find your match earlier than 256 ^ 9 it won't try generating/going through the rest of the permutations
[18:51:59] hxegon: gchristensen: This is all I could find, but it's for 2.0 and 2.1 https://www.ruby-lang.org/en/news/2016/02/24/support-plan-of-ruby-2-0-0-and-2-1/
[18:52:37] Lavan: each time i .next the expression you wrote i get the next permutation?
[18:52:49] Lavan: i mean... how do i integrate it with the current code?
[18:53:04] Lavan: key.permutation(3).next?
[18:53:08] hxegon: >> foo = ((0..255).to_a * 3).permutation(3); [foo.next, foo.next] # Lavan
[18:53:09] ruby[bot]: hxegon: # => [[0, 1, 2], [0, 1, 3]] (https://eval.in/785731)
[18:53:21] hxegon: that probably helps
[18:55:00] hxegon: Lavan: you can use it in loops, or with #find
[18:55:21] hxegon: I'd suggest #find, as it's more idiomatic IMO
[18:55:49] hxegon: &ri Enumerable#find # Lavan
[18:55:49] `derpy: Lavan: http://ruby-doc.org/core-2.4.1/Enumerable.html#method-i-find
[18:56:44] LastWhisper____: btw figured i'd share the post I was rambling about earlier
[18:56:49] LastWhisper____: https://medium.com/@dezmathio/music-production-software-development-follow-similar-design-patterns-c9e6b1adc798
[18:57:05] gchristensen: hxegon: hmm thank you
[18:57:08] LastWhisper____: i ended up leaving the feedback effect out of it I felt it was a bit of an overcomplication
[18:58:01] tercenya: has joined #ruby
[18:58:02] centrx: has joined #ruby
[18:58:02] centrx: has joined #ruby
[18:59:48] Jody_: has joined #ruby
[19:00:45] GodFather__: has joined #ruby
[19:01:41] hxegon: LastWhisper____: I'll read this when I get a minute. I've been thinking about getting an OP-1 to try and get into music production, so this is right up my alley :)
[19:01:45] roamingdog: has joined #ruby
[19:02:24] LastWhisper____: sweet! the post is very ... basic i don't go into a lot of detail music production wise, it's just the main design pattern of software development & music production that follow similar patterns
[19:02:35] Lavan: this permutation trick, i have a problem with it.. each time if i set foo to what you wrote, and i set key to be key=[foo,foo,foo] then i need if i .next all/each/only one of the foos, i dont get all of the overall posiible permutations
[19:03:15] hxegon: .next is only supposed to get one possible permutation
[19:03:40] hxegon: if you try using foo.next to get 3 subkeys you won't cover the entire keyspace
[19:03:51] skweek: has joined #ruby
[19:04:09] Lavan: i want to apply each time 3 subkeys...
[19:04:14] GinoMan: has joined #ruby
[19:04:31] Lavan: and i want to apply all 3 subkeys combinations
[19:04:49] hxegon: you couldn't, for example, get [[0, 0, 0], [0, 0, 0], [0, 0, 0]] as a possible key this way
[19:05:20] hxegon: you could do something like define 3 of those enumerators and take permutations from each one for each of the 3 subkeys, but this doesn't cover everything either
[19:05:22] Lavan: it doesn't bother me.... [0,0,0],[0,0,0],[0,0,0] just won't do anything
[19:06:07] hxegon: bad example, a better one would be [[1, 2, 3], [1, 2, 3], [1, 2, 3]], which would be a valid possible subkey
[19:06:18] hxegon: valid possible key*
[19:06:58] Lavan: it is a valid key, what is the problem with it?
[19:07:14] Xakotu: has joined #ruby
[19:07:24] ldnunes_: has joined #ruby
[19:07:49] hxegon: the problem is you can't get it by going [foo.next, foo.next, foo.next] because you'd get 3 permutations of a subkey space. It would have to be 3 different possible subkeys.
[19:08:36] Lavan: yes, exactly, that's the problem i had with understanding your trick - it doesn't help me cover all "upper" permutations...
[19:09:17] hxegon: you could probably change my snippet to cover all possible permutations of keys rather than just subkeys somehow
[19:09:38] Lavan: i need all permutations from [0,0,0],[0,0,0],[0,0,0] to [255,255,255],[255,255,255],[255,255,255]
[19:09:38] cschneid_: has joined #ruby
[19:10:31] Lavan: at least that what i think i need
[19:10:35] gchristensen: has left #ruby: ("WeeChat 0.4.2")
[19:10:43] hotpancakes: has joined #ruby
[19:11:51] hxegon: there's definitely a way to do that with #permutation, but I can't quite get the right invocation in pry
[19:13:02] choke: has joined #ruby
[19:14:56] gusrub: has joined #ruby
[19:15:37] hxegon: almost got it
[19:15:47] Guest19790: has joined #ruby
[19:17:31] hxegon: >> foo = ((0..255).to_a * 9).permutation(9).lazy.map { |arr| arr.each_slice(3).to_a }; foo.next
[19:17:32] ruby[bot]: hxegon: # => [[0, 1, 2], [3, 4, 5], [6, 7, 8]] (https://eval.in/785733)
[19:18:00] patarr: has joined #ruby
[19:20:39] yqt: has joined #ruby
[19:23:28] Xakotu: has joined #ruby
[19:23:54] cagomez: has joined #ruby
[19:24:33] mtkd: has joined #ruby
[19:24:39] al2o3-cr: Lavan: you on the next level hehe :p
[19:26:34] al2o3-cr: so you're trying to get a permuations from 0 to 255
[19:27:37] vali: has joined #ruby
[19:29:38] Lavan: i think so, al2o3-cr
[19:29:59] Lavan: a huge permutation, maybe it's notthe right way at all..
[19:30:10] Lavan: maybe there's a different way i'm missing
[19:30:56] hxegon: There probably is
[19:32:23] hxegon: actually, the problem statement explicitly asks for a brute force, so you're good.
[19:32:28] havenwood: Lavan: You want 4558705201498672727040 different ones?
[19:32:50] hxegon: havenwood: 256 ^ 9?
[19:33:03] dcunit3d: has joined #ruby
[19:33:15] havenwood: >> 256 ** 9
[19:33:16] ruby[bot]: havenwood: # => 4722366482869645213696 (https://eval.in/785734)
[19:33:18] havenwood: >> 256.times.to_a.permutation(3).to_a.permutation(3).size
[19:33:23] ruby[bot]: havenwood: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
[19:33:38] havenwood: #=> 4558705201498672727040
[19:33:48] Lavan: >> 128**9
[19:33:53] ruby[bot]: Lavan: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
[19:34:04] havenwood: #=> 9223372036854775808
[19:34:07] Lavan: >> 128 ** 9
[19:34:08] ruby[bot]: Lavan: # => 9223372036854775808 (https://eval.in/785735)
[19:34:22] Lavan: still exagarated lol
[19:34:44] __Yiota: has joined #ruby
[19:35:33] al2o3-cr: Lavan: you'd be in the knackered yard long before :p
[19:36:13] hxegon: havenwood: is there a way to write it like that lazily?
[19:36:51] al2o3-cr: Lavan: i think you want something like this
[19:37:06] al2o3-cr: >> Enumerator.new { |y| 255.times { [*0..255].repeated_permutation(3) { |prm| y << [prm] } } }.take(3)
[19:37:08] ruby[bot]: al2o3-cr: # => [[[0, 0, 0]], [[0, 0, 1]], [[0, 0, 2]]] (https://eval.in/785737)
[19:37:14] havenwood: hxegon: There's no Enumerable#permutation so that throws a wrench in the mix.
[19:37:49] hxegon: al2o3-cr: my way works, but doesn't start at [0, 0, 0] [0, 0, 0] [0, 0, 0]. It will come around to that at some point though :)
[19:37:52] havenwood: hxegon: 256.times.to_a.permutation(3).to_a.permutation(3).lazy
[19:38:15] hxegon: havenwood: yeah I tried throwing #lazy in between there at a few places and got nothing
[19:38:24] cagomez: has joined #ruby
[19:38:35] havenwood: You unfortunately need an intermediary Array if you're going to use #permutation or #repeated_permutation.
[19:38:47] havenwood: Though I don't think repeated are relevant here.
[19:40:14] kobain: has joined #ruby
[19:40:59] ika_: has joined #ruby
[19:42:12] al2o3-cr: Lavan: have you got the readme for this one?
[19:42:28] u0_a170: has joined #ruby
[19:42:38] al2o3-cr: could you gist it?
[19:42:54] hxegon: al2o3-cr: https://gist.github.com/Tony-Stark/de711327def767258881cd5ced0fe69c
[19:43:10] u0_a170: yeaa thanks
[19:43:35] al2o3-cr: tnks hxegon
[19:43:46] hxegon: hi u0_a170, ika_
[19:43:58] ika_: I am new to ruby community and would like to get into contributing to ruby core development
[19:44:34] havenwood: ika_: Welcome!
[19:44:40] ika_: Can anyone tell me where is the good place to start hacking in ruby code :)
[19:44:42] Derperperd: has joined #ruby
[19:44:51] ika_: Are there some beginner C tasks
[19:44:56] Derperperd: has joined #ruby
[19:44:57] havenwood: ika_: The bug tracker is here: https://bugs.ruby-lang.org/projects/ruby-trunk/issues
[19:44:59] ika_: Like easy bugs to get into patching and coding
[19:45:14] al2o3-cr: Lavan: by the sounds of the you only need [0,0,0] to [255,255,255] as before
[19:45:29] Lavan: but there are 3 steps...
[19:45:31] havenwood: ika_: https://www.ruby-lang.org/en/community/ruby-core/#patching-ruby
[19:45:35] Lavan: each [0,0,0] is a step
[19:46:02] Lavan: three steps are like [0,1,2],[2,3,4],[17,32,11]
[19:46:17] al2o3-cr: are you sure
[19:46:28] havenwood: ika_: https://docs.ruby-lang.org/en/2.4.0/contributing_rdoc.html
[19:46:33] Lavan: but maybe you are rihgt
[19:47:39] Lavan: i mean.. no, i dont know
[19:47:43] ika_: havenwood I am generaly new to open source contributions has alwayse worked in a commercial companies. So is it possible to work on weekends like on part time and still give needed progress?
[19:48:27] al2o3-cr: Lavan: as i see it, is, as before with op, code, len but bruteforce
[19:49:15] havenwood: ika_: Yes. There are a wide variety of Ruby gems that are great for contributing to. Documentation for gems or Ruby-proper is a good way to start. Contributing to Ruby itself is a bit rockier than the path to contribute to most gems, but it's doable.
[19:49:18] havenwood: ika_: http://documenting-ruby.org/
[19:49:20] Lavan: you think that 3 steps can be equvivalent to say 32 steps?
[19:49:41] al2o3-cr: how'd you get 32 steps?
[19:50:07] al2o3-cr: unless i'm reading totally wrong
[19:50:15] havenwood: ika_: You might consider contributing to a popular gem like Rails or one of the smaller gems in its ecosystem: http://guides.rubyonrails.org/contributing_to_ruby_on_rails.html
[19:50:23] havenwood: ika_: Or there are countless other gems.
[19:50:39] Lavan: each triplet is a step. in the problem statement they say the key is consisted of 3 steps... if i just brute force as before, as far as i understand what you mean, i get a chain of more than 3 steps
[19:51:24] al2o3-cr: ah, maybe you're right
[19:51:36] ika_: havenwood generaly what I mean is that if you take a task is there a deadline. Or I can work it on free time without hurry
[19:51:55] Lavan: a step is : first byte- opcode, second byte- param, third byte -length
[19:52:04] al2o3-cr: Lavan: have you got the encrypted message, i'll play around.
[19:52:11] havenwood: ika_: It totally depends. There are plenty of things that aren't in a rush that you should have no want.
[19:52:13] Lavan: yes i have got it
[19:52:30] Lavan: i wanna like be able to understand the solution
[19:52:32] Lavan: just a sec
[19:52:43] ColeHub: has joined #ruby
[19:52:49] havenwood: ika_: Sporadic contribution is still much appreciated.
[19:53:26] al2o3-cr: Lavan: if i figure it out, i'll talk you though my methodolgy
[19:53:40] Lavan: https://filebin.ca/3L788OtAzZFM
[19:54:34] Lavan: that's the bin file with the encrypted message
[19:54:40] patarr: has joined #ruby
[19:54:44] ika_: havenwood: yes as I am still working in a commercial company I wont be able to contribute regularly. will be able to work on weekends few hours
[19:55:05] ika_: OK thanks you very much I will keep on reading guids and check the bug list
[19:55:13] ika_: Might find one suitable for me :)
[19:55:20] Ellimist: has joined #ruby
[19:55:55] al2o3-cr: Lavan: thx, i'll have a play.
[19:57:30] jose_leeto: has joined #ruby
[19:57:34] nobitanobi: has joined #ruby
[19:57:55] Cohedrin: has joined #ruby
[19:59:28] bash: has joined #ruby
[20:00:50] jose_leeto: some one knows if it is possible to use a rails validation method on a delegated attribute?
[20:01:27] skweek: has joined #ruby
[20:01:46] hxegon: ?rails jose_leeto
[20:01:46] ruby[bot]: jose_leeto: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[20:01:56] ika_: has left #ruby: ("Leaving")
[20:02:09] mooser: has joined #ruby
[20:03:13] rails4444: has joined #ruby
[20:03:38] anjen: has joined #ruby
[20:05:00] __Yiota: has joined #ruby
[20:05:44] Lavan: al203-cr , you might want to have a look at the previous problem statement
[20:06:08] Lavan: https://gist.github.com/Tony-Stark/8d9762f93c0ab9b6e111e6a05b496338
[20:06:51] milardovich: has joined #ruby
[20:07:04] milardovich: has joined #ruby
[20:09:59] xco: has joined #ruby
[20:10:15] xco: what’d be the easiest way for me to reverse something like this
[20:10:27] xco: text = “hello, boy”
[20:10:38] havenwood: xco: text.reverse
[20:10:55] xco: i want “boy, hello”
[20:11:04] minimalism: has joined #ruby
[20:11:07] God: has joined #ruby
[20:11:19] havenwood: xco: text.split(', ').reverse.join(', ')
[20:11:21] hxegon: >> "foo, bar".split(', ').reverse.join(', ')
[20:11:22] ruby[bot]: hxegon: # => "bar, foo" (https://eval.in/785756)
[20:12:09] xco: oh, thought i could get a simpler one. have this one :D….thank you!
[20:13:38] __Yiota: has joined #ruby
[20:14:33] postmodern: has joined #ruby
[20:15:06] patarr: Does ruby have a datastructure like an iterator that loops to the beginning after the end?
[20:15:27] apeiros: &ri Enumerable#cycle patarr
[20:15:28] `derpy: patarr: http://ruby-doc.org/core-2.4.1/Enumerable.html#method-i-cycle
[20:15:52] havenwood: >> 'patarr'.each_char.cycle.first 10
[20:15:58] ruby[bot]: havenwood: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
[20:16:03] havenwood: #=> ["p", "a", "t", "a", "r", "r", "p", "a", "t", "a"]
[20:16:41] u0_a170: has joined #ruby
[20:16:51] havenwood: >> example = [:x, :o].cycle; [example.class, example.size] # patarr
[20:16:52] ruby[bot]: havenwood: # => [Enumerator, Infinity] (https://eval.in/785769)
[20:17:18] BSaboia: has joined #ruby
[20:18:42] BSaboia: has joined #ruby
[20:20:35] lxsameer: has joined #ruby
[20:21:48] Cohedrin: has joined #ruby
[20:24:05] cagomez: has joined #ruby
[20:25:51] milardovich: has joined #ruby
[20:26:18] patarr: `derpy: awesome thanks! Do you by any chance also know of anything like chunk, given an input of truthy and falsy values, will only chunk the truthy ones? Aka, if I had truthy, truthy, truthy, falsy - that would be two chunks. But if I had falsy, falsy, truthy, truth - that would be 4 chunks [[falsy],[falsy],[truthy,truthy]]
[20:27:04] gusrub: has joined #ruby
[20:28:21] xco: has left #ruby: ()
[20:29:34] elomatreb: patarr: You likely mean apeiros, `derpy is a bot
[20:31:48] milardovich: has joined #ruby
[20:32:39] bernd27: has joined #ruby
[20:33:00] patarr: lol yes I meant that towards apeiros
[20:36:09] __Yiota: has joined #ruby
[20:38:28] jamesaxl: has joined #ruby
[20:44:03] mjuszczak: has joined #ruby
[20:44:59] cagomez: has joined #ruby
[20:46:49] rohitpaulk: has joined #ruby
[20:48:23] cyberRodent: has joined #ruby
[20:48:44] vikaton: has joined #ruby
[20:49:17] __Yiota: has joined #ruby
[20:49:18] jusa: has joined #ruby
[20:50:17] outreachdan: has joined #ruby
[20:51:44] amclain: has joined #ruby
[20:52:56] JoshS: has joined #ruby
[20:56:16] outreachdan: has joined #ruby
[20:57:01] roamingdog: has joined #ruby
[20:58:05] workmad3: has joined #ruby
[21:01:25] GinoMan2440: has joined #ruby
[21:02:00] cdg: has joined #ruby
[21:04:59] centrx: has joined #ruby
[21:04:59] centrx: has joined #ruby
[21:05:13] blackmes1: has joined #ruby
[21:09:44] eam: cout: I don't think there's a correct convention here
[21:09:53] Emmanuel_Chanel: has joined #ruby
[21:10:05] eam: you're gonna lose some data, different systems handle it in different ways
[21:10:20] jinie: has joined #ruby
[21:10:58] axyjo: has joined #ruby
[21:13:09] brent__: has joined #ruby
[21:20:25] patarr: has joined #ruby
[21:21:51] sp4rrow: has joined #ruby
[21:25:24] jenrzzz: has joined #ruby
[21:25:24] jenrzzz: has joined #ruby
[21:29:38] mim1k: has joined #ruby
[21:30:23] rwb: has joined #ruby
[21:30:31] hotpanca_: has joined #ruby
[21:32:41] workmad3: has joined #ruby
[21:33:02] GinoMan2440: has joined #ruby
[21:38:03] milardovich: has joined #ruby
[21:38:07] workmad3: has joined #ruby
[21:41:07] patarr: has joined #ruby
[21:41:48] cdg_: has joined #ruby
[21:43:45] pupsicle: has joined #ruby
[21:47:04] patarr: has joined #ruby
[21:47:04] GodFather__: has joined #ruby
[21:48:45] BSaboia: has joined #ruby
[21:52:09] romank: has joined #ruby
[21:52:39] hotpancakes: has joined #ruby
[21:53:25] jackrandom: has joined #ruby
[21:55:16] u0_a170: has joined #ruby
[21:57:37] bernd27: has joined #ruby
[21:57:56] hotpancakes: has joined #ruby
[21:57:59] oleo: has joined #ruby
[21:58:16] nobitanobi: has joined #ruby
[21:59:33] bernd9000: has joined #ruby
[22:04:01] cseder: has joined #ruby
[22:07:32] cseder: has joined #ruby
[22:09:45] centrx: has joined #ruby
[22:10:24] petruff1: has joined #ruby
[22:13:22] rkazak: has joined #ruby
[22:15:07] BSAlb: has joined #ruby
[22:15:29] cdg: has joined #ruby
[22:18:58] mjuszczak: has joined #ruby
[22:19:38] cagomez: has joined #ruby
[22:19:49] mjuszczak: has joined #ruby
[22:20:12] workmad3_: has joined #ruby
[22:22:22] SeepingN: has joined #ruby
[22:25:24] gusrub: has joined #ruby
[22:28:44] bash: has joined #ruby
[22:29:07] hotpancakes: has joined #ruby
[22:29:47] cdg_: has joined #ruby
[22:32:17] cagomez: has joined #ruby
[22:32:29] cagomez: has joined #ruby
[22:33:37] cagomez: has joined #ruby
[22:37:29] jenrzzz: has joined #ruby
[22:38:47] ColeHub: has joined #ruby
[22:43:30] ColeHub: has joined #ruby
[22:44:34] johnny56: has joined #ruby
[22:45:35] BSab: has joined #ruby
[22:45:39] hlmjr: has joined #ruby
[22:47:38] perniciouscaffei: has joined #ruby
[22:47:45] t-recx: has joined #ruby
[22:48:26] adam12: Anybody know of a non-ActiveSupport way to get list of timezones?
[22:49:01] jusa: has joined #ruby
[22:49:10] mjuszczak: has joined #ruby
[22:49:15] patarr: has joined #ruby
[22:49:17] cagomez: has joined #ruby
[22:49:49] elomatreb: adam12: Some people are recommending https://rubygems.org/gems/tzinfo
[22:49:58] adam12: Thanks. I had my eye on it.
[22:50:12] cagomez: has joined #ruby
[22:50:13] adam12: Will check it out.
[22:50:49] gnufied: has joined #ruby
[22:51:41] BSaboia: has joined #ruby
[22:54:11] Cohedrin: has joined #ruby
[22:55:56] cagomez: has joined #ruby
[22:56:08] adam12: elomatreb: worked a charm.
[22:57:00] anuxivm: has joined #ruby
[22:57:10] cagomez: has joined #ruby
[22:57:48] anuxivm: has left #ruby: ()
[23:04:11] nofxx: has joined #ruby
[23:04:14] jordanm: has joined #ruby
[23:05:23] milardovich: has joined #ruby
[23:06:03] chouhoul_: has joined #ruby
[23:06:27] milardovich: has joined #ruby
[23:07:19] oleo: has joined #ruby
[23:11:05] cschneid_: has joined #ruby
[23:12:45] alveric1: has joined #ruby
[23:13:33] hotpancakes: has joined #ruby
[23:14:10] cagomez: has joined #ruby
[23:17:27] skade_: has joined #ruby
[23:23:09] mtkd: has joined #ruby
[23:24:49] romank: has joined #ruby
[23:30:04] mim1k: has joined #ruby
[23:31:36] kobain: has joined #ruby
[23:32:25] Cohedrin: has joined #ruby
[23:34:38] djuber`: has joined #ruby
[23:36:08] jrafanie: has joined #ruby
[23:42:30] cschneid_: has joined #ruby
[23:42:43] DLSteve: has joined #ruby
[23:46:02] DLSteve: has joined #ruby
[23:46:48] Cohedrin: has joined #ruby
[23:50:35] milardovich: has joined #ruby
[23:50:50] milardovich: has joined #ruby
[23:54:25] ledestin: has joined #ruby
[23:57:23] romank: has joined #ruby
[23:57:49] duderono_: has joined #ruby