« Back to channel list

#ruby - 12 March 2019

« Back 1 day Forward 1 day »
[00:18:33] orbyt_: has joined #ruby
[00:21:39] Creatornator: has joined #ruby
[00:23:15] t0xik: has joined #ruby
[00:26:33] skyikot: has joined #ruby
[00:31:49] al2o3-cr: &>> [[1234].pack('V'), 0x04d2]
[00:31:49] rubydoc: # => ["\xD2\x04\x00\x00", 1234] (https://carc.in/#/r/6h1w)
[00:37:03] tiogrand: has joined #ruby
[00:37:53] tiogrand: has joined #ruby
[00:38:24] Creatornator: has joined #ruby
[00:41:59] nowhere_man: has joined #ruby
[00:54:50] r29v: has joined #ruby
[00:54:53] laaron: has joined #ruby
[00:57:48] tdy: has joined #ruby
[01:00:23] AJA4351: has joined #ruby
[01:23:50] cnsvc: has joined #ruby
[01:24:50] jrafanie: has joined #ruby
[01:28:23] mangold: has joined #ruby
[01:29:08] ansraliant: has joined #ruby
[01:35:41] kapil____: has joined #ruby
[01:41:02] jrafanie: has joined #ruby
[01:54:51] Swyper: has joined #ruby
[01:54:51] Creatornator: has joined #ruby
[02:03:21] Swyper: has joined #ruby
[02:25:20] Swyper: has joined #ruby
[02:32:55] arescorpio: has joined #ruby
[02:33:32] memofun: has joined #ruby
[02:35:11] Swyper: has joined #ruby
[03:07:16] code_zombie: has joined #ruby
[03:19:28] conta: has joined #ruby
[03:26:24] segy: has joined #ruby
[03:42:31] sagax: has joined #ruby
[03:49:06] Creatornator: has joined #ruby
[03:49:55] lukelukeluke: has joined #ruby
[04:09:38] nowhere_man: has joined #ruby
[04:10:54] braincrash: has joined #ruby
[04:28:19] iMadper: has joined #ruby
[04:30:30] crankharder: has joined #ruby
[04:30:59] emilford: has joined #ruby
[04:31:14] Devalo: has joined #ruby
[04:38:37] ur5us: has joined #ruby
[04:42:11] emilford: has joined #ruby
[04:47:02] mangold: has joined #ruby
[05:00:26] emilford: has joined #ruby
[05:14:01] emilford: has joined #ruby
[05:21:25] mangold: has joined #ruby
[05:22:00] emilford: has joined #ruby
[05:30:39] sleetdrop: has joined #ruby
[05:30:58] laaron: has joined #ruby
[05:32:51] emilford: has joined #ruby
[05:38:31] ausmat: has joined #ruby
[05:43:33] sauvin: has joined #ruby
[05:47:13] Swyper: has joined #ruby
[06:01:12] akem: has joined #ruby
[06:01:59] darkphnx4: has joined #ruby
[06:03:31] emilford: has joined #ruby
[06:03:48] haylon_: has joined #ruby
[06:03:56] Prira: has joined #ruby
[06:04:33] Devalo: has joined #ruby
[06:05:36] wget: has joined #ruby
[06:05:36] wget: has joined #ruby
[06:06:29] ausmat: has joined #ruby
[06:06:49] daemonwrangler_: has joined #ruby
[06:07:27] al2o3-cr: has joined #ruby
[06:08:17] j416: has joined #ruby
[06:08:34] c0san0stra: has joined #ruby
[06:08:38] ablackack: has joined #ruby
[06:11:10] emilford: has joined #ruby
[06:11:43] Eldritch: has joined #ruby
[06:13:03] infernix: has joined #ruby
[06:13:41] Mon_Ouie: has joined #ruby
[06:14:14] cgfbee: has joined #ruby
[06:15:38] michael_mbp: has joined #ruby
[06:17:09] Creatornator: has joined #ruby
[06:18:12] conta: has joined #ruby
[06:33:21] qual: has joined #ruby
[06:38:26] Devalo: has joined #ruby
[06:39:37] bambanx: has joined #ruby
[06:40:30] bambanx: has joined #ruby
[06:41:49] bambanx: has joined #ruby
[06:45:13] am0123: has joined #ruby
[06:58:16] am0123: has joined #ruby
[07:02:20] alem0lars: has joined #ruby
[07:07:52] skyikot: has joined #ruby
[07:20:31] Tharbakim: has joined #ruby
[07:20:31] Tharbakim: has joined #ruby
[07:22:37] laaron: has joined #ruby
[07:23:42] themsay: has joined #ruby
[07:28:54] nowhere_man: has joined #ruby
[07:30:20] alem0lars: has joined #ruby
[07:37:21] Dbugger: has joined #ruby
[07:38:20] aupadhye: has joined #ruby
[07:44:18] reber: has joined #ruby
[07:45:51] andikr: has joined #ruby
[07:46:17] hightower2: has joined #ruby
[07:46:32] hightower2: has joined #ruby
[07:50:21] Onwarion: has joined #ruby
[07:51:27] clemens3_: has joined #ruby
[07:55:19] alem0lars: has joined #ruby
[07:58:06] alem0lars: has joined #ruby
[08:02:12] GreyHame: has joined #ruby
[08:12:47] aufi: has joined #ruby
[08:22:22] r3m: has joined #ruby
[08:23:36] TomyWork: has joined #ruby
[08:25:49] alem0lars: has joined #ruby
[08:26:58] laaron: has joined #ruby
[08:30:14] tuor: has joined #ruby
[08:30:51] Ai9zO5AP: has joined #ruby
[08:31:19] tuor: Hi, this is how my code is right now: https://dpaste.de/ok5i
[08:31:45] segy: has joined #ruby
[08:32:02] Cthulu201: has joined #ruby
[08:33:17] tuor: Are there any "don't do that!" in it? Or do you have any sugsetion what I should do differently for reason x? I wrote ruby befor like 3 or 4 years ago and learned a lot with this channel. But don't hit me if I can't remember all of what you told me. ;)
[08:33:55] tuor: So I'm still a beginner. ;)
[08:34:16] Stan: has joined #ruby
[08:35:06] DaRock: has joined #ruby
[08:37:05] alem0lars: has joined #ruby
[08:40:35] ur5us: has joined #ruby
[08:41:12] schleppel: has joined #ruby
[08:46:59] alem0lars: has joined #ruby
[08:48:31] Devalo: has joined #ruby
[08:52:01] emilford: has joined #ruby
[08:55:51] alem0lars: has joined #ruby
[08:58:50] alem0lars: has joined #ruby
[08:59:15] qual: has joined #ruby
[08:59:38] schleppel: has joined #ruby
[09:01:12] dhollin3: has joined #ruby
[09:01:50] alem0lars: has joined #ruby
[09:03:31] emilford: has joined #ruby
[09:05:05] mikecmpbll: has joined #ruby
[09:05:58] alem0lars: has joined #ruby
[09:07:25] alem0lars: has joined #ruby
[09:07:47] claudiuinberlin: has joined #ruby
[09:12:19] alem0lars: has joined #ruby
[09:14:41] SegFaultAX: has joined #ruby
[09:15:11] lxsameer: has joined #ruby
[09:15:26] GodFather: has joined #ruby
[09:24:25] ericboehs: has joined #ruby
[09:24:49] alem0lars: has joined #ruby
[09:28:55] Sylario: has joined #ruby
[09:33:49] r3m: has joined #ruby
[09:35:32] ur5us: has joined #ruby
[09:36:01] themsay: has joined #ruby
[09:36:10] DaRock: has joined #ruby
[09:36:18] canton7: Tuor, don't use 'and', use '&&'
[09:36:36] emilford: has joined #ruby
[09:36:42] canton7: line 33, you access `params['path']` a *lot*, which means a lot of hash lookups
[09:37:30] canton7: line 7, I'd make 'default_config_file_path' a constant
[09:38:16] canton7: personally as a user I'd expect some sort of warning or message if I supplied a path, but the code decides to ignore it for some reason
[09:42:19] alem0lars: has joined #ruby
[09:43:33] al2o3-cr: has joined #ruby
[09:45:39] themsay: has joined #ruby
[09:49:17] aupadhye: has joined #ruby
[09:49:50] marmotini_: has joined #ruby
[09:50:24] marmotini_: has joined #ruby
[09:50:35] alem0lars: has joined #ruby
[09:52:46] TomyWork: has joined #ruby
[09:53:10] gregf_: has joined #ruby
[09:53:43] mangold: has joined #ruby
[09:58:41] aupadhye: has joined #ruby
[10:00:40] tuor: Thx for your comments, this is what I got up with: https://dpaste.de/C0u4
[10:04:04] nowhere_man: has joined #ruby
[10:04:56] Bish: can somebody tell me what problem conditionvariable solves
[10:04:58] dionysus69: has joined #ruby
[10:05:03] Bish: i don't quit get it what its good forẞ
[10:05:32] Bish: canton7: why does and or && matter
[10:06:24] canton7: Bish, the precedence is different. '&&' is meant for combining conditions, 'and' is meant for control flow
[10:06:35] emilford: has joined #ruby
[10:06:47] canton7: `puts 1 > -1 and 257 < 256` #=> false, but `puts 1 > -1 && 257 < 256` #=> true
[10:08:20] alem0lars: has joined #ruby
[10:08:40] Bish: oh i see
[10:14:36] ellcs: has joined #ruby
[10:16:25] schleppel: has joined #ruby
[10:16:53] ljarvis: Tuor: just use "path = params[:path] || DEFAULT_CONFIG_FILE_PATH; if path.to_s.empty? # error code; else # normal flow end"
[10:17:21] Bish: does Hash check existence of a thing with === ?
[10:18:06] alem0lars: has joined #ruby
[10:18:18] ljarvis: Bish: what do you mean "check existence of a thing"?
[10:18:47] Bish: well, if i do h[some_method_creating_a_new_object] = true
[10:19:03] Bish: == of those 2 objects is false, === of these 2 objects is true
[10:19:26] ljarvis: do you have code?
[10:19:38] Bish: not really, trying to artificially create one right now
[10:19:58] ljarvis: ok, I don't really understand the question
[10:21:19] alem0lars: has joined #ruby
[10:21:26] Bish: class Test; def === b;true;end;end;
[10:21:36] Bish: h={};class Test; def === b;true;end;end;h[Test.new] = 1; h[Test.new] = 1;h
[10:21:49] Bish: can i somehow make that hash check for equality with === ?
[10:22:15] Bish: >> h={};class Test; def === b;true;end;end;h[Test.new] = 1; h[Test.new] = 1;h
[10:22:17] ruby[bot]: Bish: # => {#<Test:0x406b9848>=>1, #<Test:0x406b980c>=>1} (https://eval.in/1082865)
[10:23:25] ljarvis: what do you mean check for equality? none of your code is doing that
[10:25:59] Bish: well Hash has 2 elements i want it to be one
[10:26:00] apparition: has joined #ruby
[10:26:06] alem0lars: has joined #ruby
[10:26:08] Bish: at some point Hash checks for equality
[10:27:04] Bish: oh im guessing i might be able to do that with the default proc
[10:27:36] ski7777: has joined #ruby
[10:27:40] ljarvis: &>> h = {}; class Test; def eql?(_); true; end; def hash; 1; end; end; h[Test.new] = 1; h[Test.new] = 1; h.size
[10:27:42] rubydoc: # => 1 (https://carc.in/#/r/6h2w)
[10:27:50] ljarvis: you want #eql? and #hash
[10:27:53] Bish: well that's not what i am asking
[10:28:04] Bish: i don't want to change == of "Test"
[10:28:25] ljarvis: you're not..
[10:28:30] ljarvis: Test.new == Test.new will be false
[10:28:41] ljarvis: &>> h = {}; class Test; def eql?(_); true; end; def hash; 1; end; end; h[Test.new] = 1; h[Test.new] = 1; [h.size, Test.new == Test.new]
[10:28:43] rubydoc: # => [1, false] (https://carc.in/#/r/6h2x)
[10:28:45] Bish: isn't eql? a alias of == or the other way around?
[10:28:51] ryouba: good morning everybody!
[10:29:06] ljarvis: eql? is for hashing
[10:29:12] Bish: well for the object im working on, it is :(
[10:29:34] tuor: I have the rescue part in my code, how can I fail in a part of the script and jump to that rescue part. Like `error = 'failure reason; go to rescue`
[10:30:13] ljarvis: well eql? is the same as == for a lot of classes, because that makes sense for hashing
[10:30:40] Bish: Tuor: wrap it the code inside begin; <code>; rescue ErrorType => e; end;
[10:30:55] Bish: and lines behind that rescue will work for that errortype
[10:31:13] ljarvis: Tuor: either use exceptions and rescue, or simplify with multiple methods
[10:31:15] Bish: ljarvis: yeah and my question is if i can change that :/, i want a hash that uses ===
[10:31:27] ljarvis: Bish: ok i dont think i can help
[10:32:05] Bish: ljarvis: background is my ORM, it uses equality(==) if content of rows are the same and === for the database ids
[10:32:18] ljarvis: that sounds like a bad idea
[10:32:27] Bish: i liked it until now
[10:32:30] Bish: and why?
[10:32:47] ljarvis: because [open arms to demonstrate current situation]
[10:32:56] emilford: has joined #ruby
[10:33:15] ljarvis: you need to be careful overriding standard operators like that
[10:33:15] Bish: i don't follow
[10:33:21] alem0lars: has joined #ruby
[10:33:33] Bish: last time i checked === can be whatever you like there is no "standard"
[10:33:41] Bish: and == works correctly
[10:35:38] ljarvis: my point is that === is a standard operator, and you have to be careful when overriding them. Why do you want == and === to return differently? surely if the DB id refers to the same value then so with the contents?
[10:37:06] Bish: why do == and === exists if you want them to be the same, the fuck?
[10:37:30] ljarvis: ok well i hope someone else can help you
[10:37:36] alem0lars: has joined #ruby
[10:37:37] Bish: ljarvis: yes, to the last part
[10:38:00] Bish: and sure, === is a standard operator.. but NOWHERE used in the codebase of ruby standardlibrary (atleast as i hae seen)
[10:38:09] Bish: just for "case" and everyone knows that
[10:38:30] Bish: afaik === is exactly that the "case" equality
[10:38:31] tuor: ljarvis: I'm trying to put it into a function. but how can I let the function fail? If I'm not happy with the given path the function should fail.
[10:44:17] tuor: I tried it but it doesn't fail on an empty string: https://dpaste.de/QL2u
[10:44:57] ski7777: has joined #ruby
[10:51:06] TomyWork: has joined #ruby
[10:51:58] ski7777: has joined #ruby
[10:52:10] tuor: It is working like this: https://dpaste.de/tWbz
[10:52:38] tuor: ACTION is going afk, but come back later and will read if someone mentions him!
[11:00:41] themsay: has joined #ruby
[11:01:35] emilford: has joined #ruby
[11:14:04] steven: has joined #ruby
[11:14:28] steven: has left #ruby: ()
[11:16:12] ski7777: has joined #ruby
[11:20:13] mangold: has joined #ruby
[11:24:12] _whitelogger: has joined #ruby
[11:25:46] DTZUZO: has joined #ruby
[11:34:33] conta: has joined #ruby
[11:35:16] kapil____: has joined #ruby
[11:43:55] ski7777: has joined #ruby
[11:51:12] ubuntuisloved: has joined #ruby
[11:57:11] laaron: has joined #ruby
[12:01:42] al2o3-cr: Bish: just use the shit handed to you, know?
[12:03:00] al2o3-cr: and i know you know!
[12:04:17] al2o3-cr: can ruby do this, can ruby do that...
[12:04:34] Bish: al2o3-cr: what?
[12:05:23] laaron: has joined #ruby
[12:05:38] Bish: al2o3-cr: i don't follow, what are you refering to?
[12:06:21] al2o3-cr: this, that andtother
[12:06:36] Bish: get a better hobby than trolling
[12:07:10] al2o3-cr: OK! Bish...
[12:08:04] tiogrand: has joined #ruby
[12:11:59] aufi: has joined #ruby
[12:12:16] al2o3-cr: Bish: what is your language of choice?
[12:12:39] Bish: that depends on the purpose
[12:12:46] ldnunes: has joined #ruby
[12:12:59] al2o3-cr: Bish: so... you use ruby?
[12:13:03] Bish: for web, yes
[12:19:05] al2o3-cr: ljarvis: how good is the zen shit?
[12:20:01] ljarvis: depends which plan, 30mbps here
[12:20:19] AJA4350: has joined #ruby
[12:21:57] al2o3-cr: ljarvis: that business?
[12:25:39] nowhere_man: has joined #ruby
[12:27:02] ubuntuisloved: has joined #ruby
[12:27:55] conta: has joined #ruby
[12:31:49] ljarvis: al2o3-cr: no I don't think so
[12:33:23] am0123: has joined #ruby
[12:35:04] nowhere_man: has joined #ruby
[12:38:32] Bish: cache.each do |k,(last_filled:,data:)| pattern matching like this possible in ruby?
[12:40:50] sagax: has joined #ruby
[12:42:58] am0123: has joined #ruby
[12:43:44] Bish: gotta know what "shit" is handed to me
[12:44:29] ubuntuisloved: has joined #ruby
[12:58:06] naught-fowl: has joined #ruby
[12:58:11] DaRock: has joined #ruby
[13:00:37] ellcs: has joined #ruby
[13:01:12] tuor: I improved failure handling. How does it look now? https://dpaste.de/o4Dt
[13:03:51] ubuntuisloved: has joined #ruby
[13:06:18] aqd: has joined #ruby
[13:08:05] ski4x7: has joined #ruby
[13:16:11] conta: has joined #ruby
[13:16:33] al2o3-cr: Bish: ruby is what's handed to you.
[13:18:18] orbyt_: has joined #ruby
[13:18:40] Bish: al2o3-cr: so i better write my own brainfuck interpreter so i don't have to know about it's features
[13:20:59] mangold: has joined #ruby
[13:22:15] tiogrand: has joined #ruby
[13:23:05] tiogrand: has joined #ruby
[13:24:54] griffindy: has joined #ruby
[13:25:47] Bish: how bad is spawning a thread that is sleeping all day, unless it's woken up
[13:26:29] laaron: has joined #ruby
[13:26:33] segy: has joined #ruby
[13:27:42] jrafanie: has joined #ruby
[13:28:07] faces: has joined #ruby
[13:29:44] memofun: has joined #ruby
[13:32:53] ams__: has joined #ruby
[13:39:08] tiogrand_: has joined #ruby
[13:40:06] tiogrand_: has joined #ruby
[13:44:14] c-c: Bish: why would you do that?
[13:45:18] Bish: c-c: puh... i have a call inside my code that gets a Coupon code from a database
[13:45:30] Bish: it has to be a single code (bad software design)
[13:45:45] Bish: but it also has to be fast, because it gets called thousand times a second
[13:46:05] Bish: so i have a thread in background, that manages the cache (gets codes from the database ⇒ ram, when neeeded)
[13:46:06] c-c: Bish: and the coupon code is so hot it can't wait for a process to be spawned. So much hotter than f.ex. unicorns or similar.
[13:46:46] Bish: no, it's just i have to start that thread somewhere, and doing it in the "get" call would mean, if i have to check if that thread is already spawned every call
[13:47:12] c-c: I wouldn't use threads, just an extra complexity layer
[13:47:47] Bish: so, the get methods manages the cache itself?
[13:48:05] c-c: So, its sleeping all day but gets called thousand times a second. Ok I think this is beyond my skill, bordering on paradoxical.
[13:48:23] Rapture: has joined #ruby
[13:48:50] Bish: why is everyone in this channel in troll mood today? if you got so much better to do, go ahead and do it
[13:49:04] AJA4350: has joined #ruby
[13:50:01] c-c: Bish I have zero patience for antisocial comments.
[13:50:17] qual_: has joined #ruby
[13:50:43] cd: has joined #ruby
[13:50:52] c-c: Bish: if ppl don't understand your question, you need to rephrase your q. Not call channel members "trolls".
[13:51:03] c-c: ACTION thats an order
[13:52:14] Bish: i did an antisocial comment?
[13:52:26] Bish: "that is beyond my skill"? do you mean that one?
[13:54:09] phaul: Tuor: why don't you raise something that has the info about the error instead of using globals to store the error?
[13:57:40] phaul: RuntimeError can have a message raise message, just raise it, and when rescue, rescue it into a variable, then you can get your message via #message
[13:59:46] Creatornator: has joined #ruby
[14:00:20] Onwarion_re: has joined #ruby
[14:01:12] gnufied: has joined #ruby
[14:01:35] clemens3: has joined #ruby
[14:01:36] Mia: has joined #ruby
[14:01:36] Mia: has joined #ruby
[14:01:38] garyserj: has joined #ruby
[14:01:58] fmccann_: has joined #ruby
[14:02:20] Junaos_: has joined #ruby
[14:02:54] LenPayne_: has joined #ruby
[14:04:15] chihhsin_: has joined #ruby
[14:04:24] wmoxam_: has joined #ruby
[14:04:40] mkroman_: has joined #ruby
[14:04:46] marens_: has joined #ruby
[14:04:46] marens_: has joined #ruby
[14:04:48] raddazong: has joined #ruby
[14:04:55] VladGh_: has joined #ruby
[14:05:12] _phaul: has joined #ruby
[14:05:12] Nilium_: has joined #ruby
[14:05:52] _phaul: https://gist.github.com/phaul/e2d7f1bb6a3df741a763a29ce497fdba
[14:08:32] xMopx-: has joined #ruby
[14:08:41] priodev_: has joined #ruby
[14:10:18] Sirecote: has joined #ruby
[14:10:31] Leopere: has joined #ruby
[14:12:20] Davey: has joined #ruby
[14:12:21] Davey: has joined #ruby
[14:14:13] Creatornator: has joined #ruby
[14:16:24] bga57: has joined #ruby
[14:16:55] Emmanuel_Chanel: has joined #ruby
[14:17:10] dhollin3: has joined #ruby
[14:17:19] lxsameer: has joined #ruby
[14:17:58] Koshian: has joined #ruby
[14:23:31] tuor: phaul: I'll read and try to understand. ;)
[14:24:31] tuor: ah I understand. This would be a lot better then what I do. :) I will change it. thx!
[14:26:01] lukelukeluke: has joined #ruby
[14:28:21] spacesuitdiver: has joined #ruby
[14:31:14] dberger: has joined #ruby
[14:32:05] tuor: done and some other small changes (comments most of it): https://dpaste.de/58qd
[14:36:37] Swyper: has joined #ruby
[14:42:28] krawchyk: has joined #ruby
[14:44:15] dberger: hm, i thought [[:word]] was unicode aware? but /[[:word]]/.match("Ἑλλάς123_456") returns nil
[14:44:37] dberger: whereas /\p{L}/.match("Ἑλλάς123_456") gives me a match
[14:46:23] al2o3-cr: dberger: never use posix shit
[14:47:30] dberger: because it doesn't work as advertised? or it's just generally unwise? or ????
[14:48:03] al2o3-cr: dberger: you want to match unicode?
[14:49:30] al2o3-cr: use character properties.
[14:51:05] TomyWork: I have a certain HTTP server I need to deal with, that sends chunked encoding in an odd way. With chunked encoding, you have a CRLF following each chunk. Unfortunately, this server delays that CRLF until the start of the next chunk, which can be hours later. Do you think there's a ruby library that can deal with that and still timely call handlers, even though that CRLF hasn't arrived yet?
[14:52:37] dberger: al2o3-cr, roger roger
[14:54:22] dberger: TomyWork, https://github.com/ggiamarchi/ruby-uploader perhaps?
[14:54:26] Inline: has joined #ruby
[14:58:00] ellcs: has joined #ruby
[14:58:54] segy: has joined #ruby
[14:59:20] za1b1tsu: has joined #ruby
[15:00:44] bnd__: has joined #ruby
[15:00:54] Creatornator: has joined #ruby
[15:02:07] krawchyk_: has joined #ruby
[15:02:16] polishdub: has joined #ruby
[15:04:37] Nicmavr: has joined #ruby
[15:05:58] TomyWork: dberger wrong direction :)
[15:06:01] TomyWork: the server sends chunks
[15:06:08] TomyWork: it's basically an event system
[15:06:16] TomyWork: every event is a chunk
[15:07:46] tuor: Thx for all your help today! I'll leave now. bye.
[15:07:54] tuor: has left #ruby: ("cu")
[15:08:53] ellcs1: has joined #ruby
[15:09:19] rippa: has joined #ruby
[15:14:51] akem: has joined #ruby
[15:16:31] dberger: TomyWork, dunno if this helps: https://github.com/excon/excon#chunked-requests
[15:16:55] dberger: another popular client lib is faraday, maybe it has something
[15:24:50] TomyWork: dberger the thing is, to make this work with python's "requests" library, i had to write this beauty: https://gist.github.com/TomyLobo/9700b225aa4bffa283b34c1a1604ffb1
[15:26:16] TomyWork: and i would like to simultaneously get rid of the python (i'm really not that good at python and i prefer ruby) and get rid of that kludge, if possible
[15:35:57] orbyt_: has joined #ruby
[15:37:27] jaddison: has joined #ruby
[15:44:02] stryek: has joined #ruby
[15:47:14] crankharder: has joined #ruby
[15:48:20] tdy: has joined #ruby
[15:53:24] skyikot: has joined #ruby
[15:59:16] Bish: if a coniditonvariable#wait times out, does i still hold the mutex lock? i guess so, right?
[15:59:16] millerti: has joined #ruby
[16:04:24] crankharder: has joined #ruby
[16:05:14] mikecmpbll: has joined #ruby
[16:07:35] shlomif2: has joined #ruby
[16:07:50] e: has joined #ruby
[16:08:53] bmurt: has joined #ruby
[16:14:08] griffindy: has joined #ruby
[16:18:22] saysjonathan: has joined #ruby
[16:21:00] BrianWGray: has joined #ruby
[16:25:41] BrianWGray: has joined #ruby
[16:26:53] Devalo: has joined #ruby
[16:27:57] am0123: has joined #ruby
[16:29:07] hightower2: has joined #ruby
[16:29:47] GreyHame: has joined #ruby
[16:33:49] GreyHame: has joined #ruby
[16:34:12] BrianWGray: has joined #ruby
[16:36:17] GreyHame: has joined #ruby
[16:37:21] n13z: has joined #ruby
[16:43:18] dalpo: has joined #ruby
[16:43:55] BrianWGray: has joined #ruby
[16:48:27] Eiam: has joined #ruby
[16:54:37] hello_world: has joined #ruby
[16:54:52] hello_world: so many people here
[16:55:00] [Butch]: has joined #ruby
[16:55:37] hello_world: not sure if I should ask a question about ROR here though
[16:55:57] orbyt_: has joined #ruby
[16:57:54] Renich: has joined #ruby
[17:00:19] i9zO5AP: has joined #ruby
[17:00:46] jcarl43: has joined #ruby
[17:04:40] phaul: ?rails hello_world
[17:04:41] ruby[bot]: hello_world: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[17:05:25] cthu|: has joined #ruby
[17:09:49] skyikot: has joined #ruby
[17:10:27] hightower2: has joined #ruby
[17:11:37] shansen: has joined #ruby
[17:12:07] Tau: has joined #ruby
[17:13:10] whoami: has joined #ruby
[17:16:12] themsay: has joined #ruby
[17:21:21] Swyper: has joined #ruby
[17:25:18] cthu|: has joined #ruby
[17:25:54] catphish: has joined #ruby
[17:26:25] jordanm: has joined #ruby
[17:26:32] catphish: i'd like to represent some integers in a base-26 alpha format, is there a trivial approach to this?
[17:28:35] ellcs: i just googled the answer: 46.to_s(26).tr( "0123456789abcdefghijklmnopq", "abcdefghijklmnopqrstuvwxyz" )
[17:28:54] catphish: ellcs: that's clever, thanks!
[17:31:44] ubuntuisloved: has joined #ruby
[17:37:21] ytti: i'm noting that the offset between each of those characters is identical
[17:37:45] ytti: which suggests alternative, more programmatic implementation
[17:39:10] Swyper: has joined #ruby
[17:40:25] Ai9zO5AP: has joined #ruby
[17:41:18] ytti: actually no
[17:42:06] ytti: otherwise something like this would have worked 46.to_s(26).each_char.map{|c|(c.ord+49).chr}.join
[17:43:27] Macrobiotic: has joined #ruby
[17:44:04] Ai9zO5AP: has joined #ruby
[17:44:31] claudiuinberlin: has joined #ruby
[17:45:16] Devalo: has joined #ruby
[17:50:27] t0x: has joined #ruby
[17:50:56] gix: has joined #ruby
[17:52:35] Swyper: has joined #ruby
[17:56:02] Ai9zO5AP: has joined #ruby
[18:04:58] hiroaki: has joined #ruby
[18:05:03] conta: has joined #ruby
[18:05:19] gix: has joined #ruby
[18:07:01] mochiyoda: has left #ruby: ("Konversation terminated!")
[18:12:31] crankharder: has joined #ruby
[18:15:04] laaron: has joined #ruby
[18:23:50] cthu|: has joined #ruby
[18:27:27] ozzloy: has joined #ruby
[18:27:27] ozzloy: has joined #ruby
[18:27:38] Xiti: has joined #ruby
[18:28:22] am0123: has joined #ruby
[18:29:28] orbyt_: has joined #ruby
[18:36:01] mikecmpbll: has joined #ruby
[18:40:03] tiogrand: has joined #ruby
[18:42:10] millerti: has joined #ruby
[18:43:06] ellcs: has joined #ruby
[18:44:36] Dbugger: has joined #ruby
[18:45:52] Devalo: has joined #ruby
[18:48:12] xco: has joined #ruby
[18:49:01] sagax: what best way to execute some external script in ruby?
[18:49:07] sagax: execute and get output
[18:51:47] sagax: backtick/system/exec/sh/popen/popen2e/process.spawn
[18:58:33] sagax: wow https://i.stack.imgur.com/1Vuvp.png
[19:00:12] sagax: well, i need backticks
[19:01:31] segy: has joined #ruby
[19:10:35] NoidedSuper: has joined #ruby
[19:10:45] laaron: has joined #ruby
[19:11:50] yxhuvud: has joined #ruby
[19:14:22] sagax: yes, backticks and system - all what i need
[19:31:30] Swyper: has joined #ruby
[19:34:32] sameerynho: has joined #ruby
[19:34:47] ravenousmoose: has joined #ruby
[19:36:00] laaron: has joined #ruby
[19:39:19] hiroaki: has joined #ruby
[19:42:39] memofun: has joined #ruby
[19:46:43] laaron: has joined #ruby
[19:47:35] AJA4350: has joined #ruby
[19:52:37] conta: has joined #ruby
[20:08:13] tiogrand: has joined #ruby
[20:08:49] tiogrand: has joined #ruby
[20:14:16] crankharder: has joined #ruby
[20:15:10] ur5us: has joined #ruby
[20:18:11] dar123: has joined #ruby
[20:18:58] dar123: where does ruby (not rails) get gem list from?
[20:22:42] jrafanie_: has joined #ruby
[20:26:21] orbyt_: has joined #ruby
[20:29:41] SeepingN: has joined #ruby
[20:35:16] ravenousmoose: has joined #ruby
[20:44:00] dinfuehr_: has joined #ruby
[20:45:42] tiogrand: has joined #ruby
[20:46:12] am0123: has joined #ruby
[20:56:11] laaron: has joined #ruby
[20:56:51] yqt: has joined #ruby
[20:57:08] cnsvc: has joined #ruby
[20:57:24] Madper|Unsupport: has joined #ruby
[20:58:57] dustym: has joined #ruby
[20:59:23] Guest78365: has joined #ruby
[20:59:54] Celmor: has joined #ruby
[21:00:48] Celmor: I'm learning ruby and rails and wondering why I don't need the curly brackets when specifying a hash in a function, e.g. Subject.where(:visible => true)
[21:01:29] Celmor: is it only allowed to omit them in that case where a hash is expected as a parameter?
[21:04:26] cnsvc: has joined #ruby
[21:04:42] Caeso: has joined #ruby
[21:07:22] Stan: has joined #ruby
[21:20:04] Stan: has joined #ruby
[21:27:31] mochiyoda: has joined #ruby
[21:29:30] mniip: has joined #ruby
[21:34:03] am0123_: has joined #ruby
[21:36:35] stooj: has joined #ruby
[21:37:22] nowhere_man: has joined #ruby
[21:37:49] gfawcett: has joined #ruby
[21:38:23] xco: has left #ruby: ()
[21:38:55] orbyt_: has joined #ruby
[21:45:02] skyikot: has joined #ruby
[21:48:28] mochiyoda: has left #ruby: ("Konversation terminated!")
[21:49:43] xrexeon: has joined #ruby
[21:54:05] gfawcett: has joined #ruby
[21:54:39] stooj: has joined #ruby
[21:57:54] Swyper: has joined #ruby
[22:02:22] ausmat: has joined #ruby
[22:05:44] phaul: Celmor: it's probably to do with keyword arguments.
[22:06:30] phaul: f({:a => 1}) is the same as f(:a => 1) is the same as f(a: 1)
[22:06:30] skyikot: has joined #ruby
[22:12:28] priodev: has joined #ruby
[22:12:47] Swyper: has joined #ruby
[22:15:47] mikecmpb_: has joined #ruby
[22:17:40] laaron: has joined #ruby
[22:21:05] moei: has joined #ruby
[22:24:57] ellcs: has joined #ruby
[22:31:09] crankharder: has joined #ruby
[22:32:41] orbyt_: has joined #ruby
[22:37:48] dar123: has joined #ruby
[22:39:34] spacesuitdiver: has joined #ruby
[22:44:51] Caeso: has joined #ruby
[22:45:44] eddof13: has joined #ruby
[22:50:40] snapcase: has joined #ruby
[22:51:28] nowhere_man: has joined #ruby
[22:59:32] laaron: has joined #ruby
[22:59:46] code_zombie: has joined #ruby
[23:01:46] SeepingN: has joined #ruby
[23:02:12] Macrobiotic: has joined #ruby
[23:18:54] Swyper: has joined #ruby
[23:20:17] laaron: has joined #ruby
[23:22:21] dar123: has joined #ruby
[23:23:33] nowhere_man: has joined #ruby
[23:29:03] xrexeon: has joined #ruby
[23:32:21] jrafanie: has joined #ruby
[23:33:22] Swyper: has joined #ruby
[23:39:51] orbyt_: has joined #ruby
[23:45:02] hell0h0la: has joined #ruby
[23:52:45] markoong: has joined #ruby
[23:55:34] mozzarella: has joined #ruby