« Back to channel list

#ruby - 09 February 2016

« Back 1 day Forward 1 day »
[00:00:26] tildes: has joined #ruby
[00:01:22] krobzaur: has joined #ruby
[00:07:08] firstdayonthejob: has joined #ruby
[00:07:51] hfp: Hi, does anyone else encounter this issue when running bundle install? Gem::RemoteFetcher::FetchError: bad response Forbidden 403 (https://rubygems.global.ssl.fastly.net/gems/rb-inotify-0.9.6.gem)
[00:07:55] weemsledeux: has joined #ruby
[00:07:57] hfp: Or is it only me
[00:08:05] JoshGlzBrk: has joined #ruby
[00:10:42] ysz: has joined #ruby
[00:13:43] davux: has joined #ruby
[00:14:09] davux: hi! is there a way to test .erb templates online? I have an error in a Chef template and I can't figure out what is wrong with it.
[00:15:04] Conflict: has joined #ruby
[00:19:00] zacstewart: has joined #ruby
[00:21:23] askhat: has joined #ruby
[00:22:52] dasher00: has joined #ruby
[00:24:03] despai: has joined #ruby
[00:25:01] karmatr0n: has joined #ruby
[00:26:04] agent_white: davux: There is a #chef channel
[00:27:38] rietta: hfp, I am not using that gem in any of my projects, but it???s not just you.
[00:27:41] s00pcan_: has joined #ruby
[00:28:21] zenlot2: has joined #ruby
[00:28:28] ur5us: has joined #ruby
[00:28:32] rietta: `curl --head https://rubygems.global.ssl.fastly.net/gems/rb-inotify-0.9.6.gem` returns:
[00:28:33] rietta: HTTP/1.1 403 Forbidden
[00:28:34] yfeldblum: has joined #ruby
[00:28:35] rietta: x-amz-request-id: DE59DDB0A7741CB5
[00:28:36] rietta: x-amz-id-2: z/jbbxnLiehWoU92c+QK+ReX80jH99eA4DP/dGr4RG5hB9+eqKS1ApIPjabw/AwL53uu9I27j/Y=
[00:28:38] rietta: Content-Type: application/xml
[00:28:39] rietta: Server: AmazonS3
[00:28:41] rietta: Via: 1.1 varnish
[00:28:42] rietta: Fastly-Debug-Digest: c543323ad00febdf427b8ae0a8ffe4a4312e04b721d2523eb87dcfd41304012e
[00:28:44] rietta: Transfer-Encoding: chunked
[00:28:45] rietta: Accept-Ranges: bytes
[00:28:47] rietta: Date: Tue, 09 Feb 2016 00:28:11 GMT
[00:28:48] rietta: Via: 1.1 varnish
[00:28:50] rietta: Connection: keep-alive
[00:28:51] rietta: X-Served-By: cache-sea1927-SEA, cache-iad2140-IAD
[00:28:52] rietta: X-Cache: MISS, MISS
[00:28:53] rietta: X-Cache-Hits: 0, 0
[00:29:21] ur5us_: has joined #ruby
[00:29:21] havenwood: rietta: For more than a couple lines please paste to a gist! ;)
[00:29:45] rietta: Sure thing.
[00:31:36] rietta: Had to rejoin IRC after a few years off. So many users on Slack brought back the good memories.
[00:32:04] chadhs: has joined #ruby
[00:32:31] havenwood: hfp: Looks like 0.9.6 was yanked.
[00:32:32] UserInNeed_: So I installed the Celluloid gem
[00:32:47] UserInNeed_: I want to asynchrously do puts'es
[00:32:54] UserInNeed_: How do I do this
[00:33:04] havenwood: rietta: This is what happens when folk yank gems! :O
[00:33:06] seitensei: has joined #ruby
[00:33:10] havenwood: No yanking!
[00:33:24] UserInNeed_: I know this is a terrible idea but I added it into Kernel in an irb
[00:33:40] UserInNeed_: no Kernel.async.puts methods magically appeared
[00:34:21] rietta: Async puts? Um, just run in real threads but that is hard to do with a single Ruby process on MRI. What are you trying to do?
[00:34:46] UserInNeed_: I'm trying to write an irc client for learning purposes
[00:35:19] rietta: http://ruby-doc.org/core-2.3.0/Thread.html
[00:35:27] UserInNeed_: I know how to threads
[00:35:33] davedev24: has joined #ruby
[00:35:34] rietta: Sorry to presume.
[00:35:35] UserInNeed_: I'm holding the PickAxe in my hand right now
[00:35:52] UserInNeed_: I was just assuming that there was a way to do it with celluloid
[00:37:06] rietta: A lot of stuff is not threadsafe. I have no direct experience with Celluoid myself. And classic MRI still has the global thread lock to the best of my knowledge.
[00:38:18] UserInNeed_: ok, i'll try just using mri threads
[00:38:47] UserInNeed_: Celluloid uses real threads thugh, so if one thread deadlocks, then the rest don't freeze
[00:39:19] rietta: Hope that works. I still don???t know how to write a test for a multi-threaded race condition like there is with the uniqueness validation in some Rails apps.
[00:39:51] rietta: It???s nearly impossible to coax the Ruby process to run concurrently.
[00:39:59] rietta: Because of the GIL
[00:40:44] aupadhye: has joined #ruby
[00:41:53] havenwood: rietta: The GVL actually releases the lock for IO.
[00:42:11] toretore: UserInNeed_: as usual with concurrency, you'll have to figure out how to define your problem more precisely before you can have a solution for it
[00:42:18] rietta: The global interpreter lock - Python and Ruby both use the pattern as do other interpreted languages
[00:43:01] toretore: UserInNeed_: "async puts" sounds like you want some sort of async sink where you write log or other data
[00:43:14] toretore: which is then queued to be written
[00:43:20] baweaver: has joined #ruby
[00:44:01] DLSteve: has joined #ruby
[00:44:01] UserInNeed_: no, i want to diplay irc messages while still being able to type
[00:44:25] UserInNeed_: i'm writing an irc client
[00:44:50] toretore: this is why you must identify the primitives to actually get a good solution
[00:44:51] UserInNeed_: another question
[00:45:13] UserInNeed_: how can i use curses to get a typing thing to display at the botton of the secreen
[00:45:19] UserInNeed_: text input box*
[00:45:22] havenwood: UserInNeed_: Just for the heck of it here's a little Celluloid::IO example you could play with, for what it's worth: require 'celluloid/io'; class MostlyIdle; include Celluloid::IO; def puts *stuff; super *stuff end end; mostly_idle = MostlyIdle.new; mostly_idle.async.puts "the 'why' is a little harder"
[00:45:56] hfp: havenwood: Indeed, I didn't think about checking the page. Never happened to me before, I was confused... I updated my bundle and it's fine now.
[00:46:03] chadhs: has joined #ruby
[00:46:17] havenwood: hfp: yeah, yanking causes chaos - hence the RubyGems folk aren't fond o fit
[00:46:56] havenwood: There was a gem... and it
[00:48:03] DmitryBochkarev: has joined #ruby
[00:48:51] UserInNeed_: here's what i have right now: loop do { while s.gets.chomp { puts; } s.puts gets.chomp; }
[00:49:37] UserInNeed_: doesn't the thing gets stored in $_ ?
[00:50:42] exadeci: has joined #ruby
[00:50:53] UserInNeed_: also, why is ruby so perlish
[00:52:49] eam: if only ruby had an implicit loop iterator
[00:54:41] Graphettion: has joined #ruby
[00:54:48] Ropeney: UserInNeed_: Because they make 1 liners in the terminal quick and easy to write, using them in your program is your choice
[00:55:15] UserInNeed_: but, like, can you just say
[00:55:29] UserInNeed_: puts while gets for a simple cat program?
[00:55:57] eam: UserInNeed_: s.each_line { |l| puts l }
[00:56:47] Mojo_Nixon: has joined #ruby
[00:57:30] karmatr0n: has joined #ruby
[00:57:36] chadhs: has joined #ruby
[00:59:39] chadhs: has joined #ruby
[01:02:12] aupadhye: has joined #ruby
[01:03:13] chadhs: has joined #ruby
[01:03:41] dopamean_: has joined #ruby
[01:06:47] UserInNeed_: while s.gets.chomp
[01:06:48] UserInNeed_: s.puts gets.chomp
[01:06:49] jtdowney: has joined #ruby
[01:08:40] DrCode: has joined #ruby
[01:08:43] andrew: has joined #ruby
[01:09:23] andrewh: has joined #ruby
[01:10:59] Mon_Ouie: puts $_ while gets
[01:11:11] Mon_Ouie: $_ is not an implicit argument in Ruby
[01:16:03] TomPeed: has joined #ruby
[01:16:24] mfb2: has joined #ruby
[01:17:05] houhoulis: has joined #ruby
[01:17:27] techietrash: has joined #ruby
[01:17:40] KnownSyntax: has joined #ruby
[01:17:57] paultreny: has joined #ruby
[01:19:11] askhat: has joined #ruby
[01:19:21] KnownSyntax: has joined #ruby
[01:20:12] Jonah11_: has joined #ruby
[01:20:31] KnownSyntax: has joined #ruby
[01:26:21] andrew: has joined #ruby
[01:28:43] karmatr0n: has joined #ruby
[01:31:22] benlieb: has joined #ruby
[01:32:28] hawkweed: has joined #ruby
[01:34:54] zacstewart: has joined #ruby
[01:35:42] malconis: has joined #ruby
[01:36:02] chadhs: has joined #ruby
[01:39:11] cornfeedhobo: has joined #ruby
[01:39:25] cornfeedhobo: is it not possible to remove something from rubygems.com?
[01:39:58] cornfeedhobo: is it possible to remove something from rubygems.com?** i don't see any options for it ...
[01:41:51] sankaber: has joined #ruby
[01:42:30] oncall-pokemon: has joined #ruby
[01:42:42] jcp: So, https://bugs.ruby-lang.org/issues/11969. How do I get the right people to have a look at my patch?
[01:43:58] Lucky_ABA: has joined #ruby
[01:44:28] sepp2k: has joined #ruby
[01:45:36] freerobby: has joined #ruby
[01:45:43] hawkweed: has joined #ruby
[01:47:44] goctintuc: has joined #ruby
[01:49:29] griffindy: has joined #ruby
[01:51:05] bb010g: has joined #ruby
[01:51:22] naag: has joined #ruby
[01:51:25] DonOtreply: has joined #ruby
[01:52:40] Lucky_ABA: has joined #ruby
[01:52:48] dyce: for ruby on rails, running in production doesnt have any of the images css and js?
[01:53:31] chadhs: has joined #ruby
[01:53:49] naag: has joined #ruby
[01:56:36] lemur: has joined #ruby
[02:00:15] JoshGlzBrk: has joined #ruby
[02:03:22] goctintuc: has left #ruby: ()
[02:04:15] tildes: has joined #ruby
[02:05:45] DonOtreply: has joined #ruby
[02:07:16] shellie_: has joined #ruby
[02:07:59] FooMunki: has joined #ruby
[02:10:48] s00pcan: has joined #ruby
[02:10:51] floror: has joined #ruby
[02:10:54] cantaberry: has joined #ruby
[02:11:43] diegoviola: dyce: you need to run `rake assets:precompile`
[02:12:28] diegoviola: dyce: also, this channel is for #ruby, ask rails questions in #RubyOnRails
[02:12:37] dyce: alright thanks
[02:12:47] Darmani: has joined #ruby
[02:12:56] diegoviola: s/#ruby/ruby/
[02:12:56] Darmani: Hi everyone ^^
[02:15:17] davedev24: has joined #ruby
[02:17:04] askhat: has joined #ruby
[02:20:56] despai: has joined #ruby
[02:22:39] dlitvak: has joined #ruby
[02:23:16] rkazak: has joined #ruby
[02:23:28] gambl0re: has joined #ruby
[02:24:53] idefine: has joined #ruby
[02:25:04] djbkd: has joined #ruby
[02:28:44] s00pcan: has joined #ruby
[02:29:08] arescorpio: has joined #ruby
[02:29:13] gigetoo: has joined #ruby
[02:29:51] idefine: has joined #ruby
[02:30:30] zacstewart: has joined #ruby
[02:36:21] kirillzh: has joined #ruby
[02:37:00] Yzguy: has joined #ruby
[02:37:53] celly: has joined #ruby
[02:38:35] andrewh: has joined #ruby
[02:38:51] Channel6: has joined #ruby
[02:40:34] bahar: has joined #ruby
[02:44:46] karmatr0n: has joined #ruby
[02:45:57] djbkd: has joined #ruby
[02:49:13] terminalrecluse: has joined #ruby
[02:51:27] andrew: has joined #ruby
[02:51:58] andrewh: has joined #ruby
[02:54:52] LoneHerm_: has joined #ruby
[02:56:26] sdothum: has joined #ruby
[02:57:17] ESpiney: has joined #ruby
[02:58:01] mfb2: has joined #ruby
[02:59:44] solocshaw: has joined #ruby
[03:01:06] Jonah11_: has joined #ruby
[03:02:53] rbennacer: has joined #ruby
[03:05:37] sdothum: has joined #ruby
[03:07:31] konsolebox: has joined #ruby
[03:08:55] chadhs: has joined #ruby
[03:09:38] kknight: has joined #ruby
[03:10:54] sneakerhax: has joined #ruby
[03:11:02] sociologic: has joined #ruby
[03:12:41] Ruby_Rocks_007: has joined #ruby
[03:13:43] dexter-tzu: has joined #ruby
[03:14:24] askhat: has joined #ruby
[03:14:27] idefine: has joined #ruby
[03:15:08] moeabdol: has joined #ruby
[03:15:58] dlitvak: has joined #ruby
[03:17:05] karmatr0n: has joined #ruby
[03:17:35] IrishGringo: has joined #ruby
[03:18:17] andrew: has joined #ruby
[03:18:48] andrewh: has joined #ruby
[03:19:23] stannard: has joined #ruby
[03:21:34] bronson_: has joined #ruby
[03:22:31] Pharaoh2: has joined #ruby
[03:24:24] peeja: has joined #ruby
[03:25:14] benlieb: has joined #ruby
[03:28:24] slackR: has joined #ruby
[03:30:00] Janno: has joined #ruby
[03:30:24] mib_mib: has joined #ruby
[03:30:37] mib_mib: hi - rails question - How would i see the 'generated sql' for a query that is a 'count', i.e. MyModel.where(some: 'thing').to_sql works, but not MyModel.where(some: 'thing').count.to_sql doesnt (since its evaluuated)
[03:30:46] mib_mib: if anyone knows the 'arel' library...
[03:31:05] howdoi: has joined #ruby
[03:31:48] sonne: has joined #ruby
[03:32:40] sankaber: has joined #ruby
[03:32:42] naag: mib_mib: you will probably have better luck asking in #RubyOnRails
[03:34:07] lessless: has joined #ruby
[03:35:40] bahar: has joined #ruby
[03:36:42] arescorpio: has joined #ruby
[03:37:05] code2Learn: has joined #ruby
[03:41:56] psye: has joined #ruby
[03:43:15] baweaver: has joined #ruby
[03:46:08] DmitryBochkarev: has joined #ruby
[03:46:42] ensyde: has joined #ruby
[03:47:57] djbkd: has joined #ruby
[03:49:13] coyo: has joined #ruby
[03:51:42] cornfeedhobo: has left #ruby: ("when i leave, come together like butt cheeks")
[03:55:00] wald0: has joined #ruby
[03:55:31] nodejunkie: has joined #ruby
[03:57:31] speakingcode: has joined #ruby
[03:59:22] speakingcode: has joined #ruby
[04:00:45] stardiviner: has joined #ruby
[04:02:19] baweaver: has joined #ruby
[04:05:10] devbug_: has joined #ruby
[04:05:33] celly: has joined #ruby
[04:06:42] chalcolite: has joined #ruby
[04:06:49] chalcolite: has joined #ruby
[04:07:21] UtkarshRay: has joined #ruby
[04:08:47] arlek: has joined #ruby
[04:10:04] dlitvak: has joined #ruby
[04:10:42] askhat: has joined #ruby
[04:12:51] celly_: has joined #ruby
[04:13:45] braincrash: has joined #ruby
[04:15:25] dfockler: has joined #ruby
[04:16:48] azure32: has joined #ruby
[04:18:08] dcunit3d: has joined #ruby
[04:18:31] kp666: has joined #ruby
[04:18:32] M-Technic: has joined #ruby
[04:20:04] krzkrz: has joined #ruby
[04:20:48] ensyde: has joined #ruby
[04:22:24] kies^: has joined #ruby
[04:22:42] Pharaoh2: has joined #ruby
[04:26:56] yqfvwal: has joined #ruby
[04:32:52] tildes: has joined #ruby
[04:34:51] devbug_: has joined #ruby
[04:35:24] zacstewart: has joined #ruby
[04:36:30] code2Learn: has joined #ruby
[04:36:45] UserInNeed_: >> print "Hello"
[04:36:47] ruby[bot]: UserInNeed_: # => Hellonil (https://eval.in/515308)
[04:36:54] UserInNeed_: >> print "Hello\n"
[04:36:55] ruby[bot]: UserInNeed_: # => Hello ...check link for more (https://eval.in/515309)
[04:37:08] UserInNeed_: >> 100.times { puts "Hello" }
[04:37:09] ruby[bot]: UserInNeed_: # => Hello ...check link for more (https://eval.in/515310)
[04:38:08] UserInNeed_: i was trying to flood the chat
[04:38:25] RickHull: there are easier ways to get b&
[04:38:41] gix: has joined #ruby
[04:39:28] Ox0dea: UserInNeed_: Of what are you in need?
[04:39:41] UserInneed: has joined #ruby
[04:39:59] UserInNeed_: has left #ruby: ("Leaving")
[04:40:51] DmitryBochkarev: has joined #ruby
[04:44:02] mickey_mouse: has joined #ruby
[04:44:36] DmitryBochkarev: has joined #ruby
[04:45:44] LoneHerm_: has joined #ruby
[04:46:10] themsay2: has joined #ruby
[04:46:18] pawnbox: has joined #ruby
[04:47:06] terminalrecluse: has joined #ruby
[04:59:08] stardiviner: has joined #ruby
[05:03:09] aryaching: has joined #ruby
[05:04:45] devbug: has joined #ruby
[05:08:51] pawnbox: has joined #ruby
[05:09:11] jeromegn: has joined #ruby
[05:09:18] askhat: has joined #ruby
[05:09:24] jeromegn: has left #ruby: ()
[05:14:21] baweaver: UserInNeed: with?
[05:14:45] baweaver: you said you need help
[05:15:05] baweaver: rather difficult without a question.
[05:15:10] RickHull: no, that was your alter ego UserInNeed_
[05:15:18] UserInneed: i'm writing an irc client
[05:15:32] UserInneed: how do i async puts at the same time as gets'ing a string
[05:16:05] baweaver: probably EventMachine or something of the like.
[05:16:31] UserInneed: i'm trying to use celluloid but it isn't working
[05:16:42] baweaver: same general idea.
[05:17:28] baweaver: then again Ruby doesn't work exceptionally well with async either.
[05:17:38] baweaver: Akka (JVM) or Node would probably be easier.
[05:17:48] speakingcode: has joined #ruby
[05:20:11] havenwood: UserInNeed: Did you look at Celluloid::IO? The concurrent-ruby gem is worth looking at in general: https://github.com/ruby-concurrency/concurrent-ruby
[05:20:26] UserInneed: i actually just installed celluloid io.
[05:21:02] erbse: has joined #ruby
[05:22:20] erbse: hi, how to convert a yield function to array? I have a function like def foo { yield 1; yield 2; yield 3; }, I want convert it to [1, 2, 3]
[05:23:07] C0deMaver1ck: has joined #ruby
[05:23:20] dfockler: erbse: Can you just yield the array?
[05:23:26] dfockler: yield [1, 2, 3]
[05:23:36] Ox0dea: >> def foo; yield 1; yield 2; yield 3; end; enum_for(:foo).to_a # erbse
[05:23:37] ruby[bot]: Ox0dea: # => [1, 2, 3] (https://eval.in/515340)
[05:24:40] erbse: Ox0dea: thanks! that's what I want
[05:24:45] Ox0dea: Sure thing.
[05:25:29] yqfvwal: I want to convert a string to array. Is there a better looking solution then str.split("")?
[05:25:50] Ox0dea: >> 'yqfvwal'.chars
[05:25:51] ruby[bot]: Ox0dea: # => ["y", "q", "f", "v", "w", "a", "l"] (https://eval.in/515341)
[05:26:04] yqfvwal: Ox0dea, thanks!
[05:26:19] diego1: has joined #ruby
[05:26:50] konsolebox: has joined #ruby
[05:28:30] diego1: has joined #ruby
[05:29:30] JoshGlzBrk: has joined #ruby
[05:29:48] pawnbox: has joined #ruby
[05:29:50] bluOxigen: has joined #ruby
[05:30:48] eGGsha: has joined #ruby
[05:31:09] yoongkang: has joined #ruby
[05:34:36] krobzaur: has joined #ruby
[05:34:42] RegulationD: has joined #ruby
[05:38:31] the_drow: has joined #ruby
[05:39:54] stardiviner: has joined #ruby
[05:41:50] tAn: has joined #ruby
[05:41:51] the_drow: Hi guys, how do I tell rake-compiler to use ccache while compiling if it's available?
[05:41:56] adgtl: has joined #ruby
[05:42:11] mold: has joined #ruby
[05:44:35] Ox0dea: the_drow: Well, that's not good. https://git.io/vgE0j
[05:44:55] materia: has joined #ruby
[05:44:55] solocshaw1: has joined #ruby
[05:44:56] adgtl: has joined #ruby
[05:45:00] ESpiney: has joined #ruby
[05:45:11] materia: programmers like you people should read this book: http://www.amazon.com/Hackers-Life-Starter-Security-Penetration/dp/149932023X
[05:45:14] materia: programmers like you people should read this book: http://www.amazon.com/Hackers-Life-Starter-Security-Penetration/dp/149932023X
[05:45:18] materia: programmers like you people should read this book: http://www.amazon.com/Hackers-Life-Starter-Security-Penetration/dp/149932023X
[05:45:22] materia: programmers like you people should read this book: http://www.amazon.com/Hackers-Life-Starter-Security-Penetration/dp/149932023X
[05:45:26] materia: programmers like you people should read this book: http://www.amazon.com/Hackers-Life-Starter-Security-Penetration/dp/149932023X
[05:45:30] materia: programmers like you people should read this book: http://www.amazon.com/Hackers-Life-Starter-Security-Penetration/dp/149932023X
[05:45:32] baweaver: !troll materia
[05:45:32] ruby[bot]: +bb materia!*@*$#ruby-banned *!*@gateway/web/freenode/ip.5.254.65.180$#ruby-banned
[05:45:35] the_drow: But ccache is on my path and it's still not being used
[05:46:10] the_drow: Ox0dea, Also, is there any way to tell rake-compiler to invoke make -j <number of jobs>?
[05:48:05] baweaver: aside, use !ops if you need to get our attention.
[05:48:22] baweaver: ...though using it without cause is a good way to get banned.
[05:48:39] the_drow: I really need to make my docker container build faster... Caching native extensions would sure help.
[05:50:46] Kryptonical: has joined #ruby
[05:52:25] stardiviner: has joined #ruby
[05:52:37] the_drow: I can invoke make with https://github.com/rake-compiler/rake-compiler/issues/114
[05:55:09] psye: has joined #ruby
[05:55:23] stardiviner: has joined #ruby
[05:58:07] psye: has joined #ruby
[05:58:22] nertzy: has joined #ruby
[05:59:35] moei: has joined #ruby
[05:59:45] ESpiney_: has joined #ruby
[06:03:51] bluOxigen_: has joined #ruby
[06:05:04] marxarelli: has joined #ruby
[06:06:48] speakingcode: has joined #ruby
[06:07:12] azure32: has joined #ruby
[06:11:11] palaeophile: has joined #ruby
[06:11:18] LoneHerm_: has joined #ruby
[06:12:00] bluOxigen: has joined #ruby
[06:12:34] sandstrom: has joined #ruby
[06:12:54] ur5us: has joined #ruby
[06:13:21] griffindy: has joined #ruby
[06:14:45] ensyde: has joined #ruby
[06:16:04] Puffball: has joined #ruby
[06:17:03] ferr: has joined #ruby
[06:17:05] ur5us: has joined #ruby
[06:21:37] remyg: has joined #ruby
[06:22:31] fedexo: has joined #ruby
[06:24:20] ayonkhan: has joined #ruby
[06:25:32] last_staff: has joined #ruby
[06:25:54] ledestin: has joined #ruby
[06:29:02] Ruby_Rocks_007: has joined #ruby
[06:29:47] zacstewart: has joined #ruby
[06:30:06] aryaching: has joined #ruby
[06:34:31] skweek: has joined #ruby
[06:35:22] yfeldblum: has joined #ruby
[06:36:51] yfeldblum: has joined #ruby
[06:37:08] chouhoul_: has joined #ruby
[06:39:11] toretore: has joined #ruby
[06:42:16] greg: has joined #ruby
[06:45:34] palaeophile: has joined #ruby
[06:49:58] norc: has joined #ruby
[06:50:03] norc: ast>> let(:shared_let) { {'in_a' => 'block'} }
[06:50:04] ruby[bot]: norc: I have parsed your code, the result is at https://eval.in/515407
[06:50:40] ziyadb: has joined #ruby
[06:55:23] benlieb: has joined #ruby
[06:56:30] Bloomer: has joined #ruby
[06:57:19] SOLDIERz: has joined #ruby
[06:59:51] Xeago: has joined #ruby
[07:00:11] Radar: good morning flughafen
[07:00:22] flughafen: good morning Radar
[07:03:34] fedexo_: has joined #ruby
[07:03:47] flughafen: how are you guys/gals doing
[07:03:54] yoongkang: has joined #ruby
[07:03:57] fedexo__: has joined #ruby
[07:04:18] solars: has joined #ruby
[07:04:18] TomyLobo: has joined #ruby
[07:04:27] claw: has joined #ruby
[07:04:28] Radar: Doing well :) Reviewing the chapters of Multitenancy with Rails currently. At the end of Chapter 3 and looking to add more content to it to cover some things that I missed.
[07:08:23] kknight: has joined #ruby
[07:08:37] lurch_: has joined #ruby
[07:10:15] scepticulous: has joined #ruby
[07:11:30] celly: has joined #ruby
[07:11:40] atmosx: has joined #ruby
[07:12:10] themsay: has joined #ruby
[07:13:39] JohnBat26: has joined #ruby
[07:13:40] DonOtreply: has joined #ruby
[07:14:29] lxsameer: has joined #ruby
[07:14:34] LoneHerm_: has joined #ruby
[07:17:17] Infra-Red: has joined #ruby
[07:17:32] JohnBat26: has joined #ruby
[07:18:57] moeabdol1: has joined #ruby
[07:20:39] kknight: has left #ruby: ("Leaving")
[07:20:58] stannard: has joined #ruby
[07:21:35] remyg: has joined #ruby
[07:23:56] konsolebox: has joined #ruby
[07:25:38] plonk: has joined #ruby
[07:25:38] plonk: has joined #ruby
[07:27:34] ur5us: has joined #ruby
[07:27:43] Ishido: has joined #ruby
[07:30:43] kknight: has joined #ruby
[07:32:05] zacstewart: has joined #ruby
[07:32:52] konsolebox: has joined #ruby
[07:33:10] mondok: has joined #ruby
[07:36:14] azure32: has joined #ruby
[07:37:08] bougyman: has joined #ruby
[07:37:32] firstdayonthejob: has joined #ruby
[07:37:34] erbse: has left #ruby: ()
[07:38:19] vdamewood: has joined #ruby
[07:39:01] Bugboy1028: has joined #ruby
[07:39:13] shevy: ready for take-off flughafen?
[07:39:15] DoubleMalt: has joined #ruby
[07:41:14] flughafen: ask Radar if he sees anything
[07:41:37] Radar: I am back in Australia (in Brisbane currently). I won't see anything.
[07:41:52] Dragooon: has joined #ruby
[07:43:29] duncannz: has joined #ruby
[07:43:59] LoneHermit: has joined #ruby
[07:45:52] aganov: has joined #ruby
[07:45:55] dseitz: has joined #ruby
[07:46:38] BTRE: has joined #ruby
[07:47:47] burgestrand: has joined #ruby
[07:47:49] karapetyan: has joined #ruby
[07:48:45] ta: has joined #ruby
[07:48:47] sandstrom: has joined #ruby
[07:49:41] azure32: has joined #ruby
[07:53:26] bronson_: has joined #ruby
[07:54:46] parallelogrammat: has joined #ruby
[07:55:41] codecop: has joined #ruby
[07:58:28] askhat: has joined #ruby
[07:59:06] dionysus69: has joined #ruby
[07:59:22] Xeago: has joined #ruby
[08:01:41] diegoviola: has joined #ruby
[08:02:10] sandstrom: has joined #ruby
[08:03:09] Cyrus: has joined #ruby
[08:04:18] william3: has joined #ruby
[08:05:08] SCHAAP137: has joined #ruby
[08:06:13] aufi: has joined #ruby
[08:07:54] Silox|: has joined #ruby
[08:09:26] yoongkang: has joined #ruby
[08:10:54] sandstrom: has joined #ruby
[08:11:15] jxs_: has joined #ruby
[08:15:28] TomyWork: has joined #ruby
[08:17:07] alexherbo2: has joined #ruby
[08:17:26] Spami: has joined #ruby
[08:17:48] seitensei: has joined #ruby
[08:19:15] karapetyan: has joined #ruby
[08:23:13] sandstrom: has joined #ruby
[08:25:48] sepp2k: has joined #ruby
[08:27:04] tvw: has joined #ruby
[08:31:16] supralocal: has joined #ruby
[08:31:28] kenndel: has joined #ruby
[08:31:33] devbug_: has joined #ruby
[08:32:59] zacstewart: has joined #ruby
[08:33:03] sandstrom: has joined #ruby
[08:36:16] RegulationD: has joined #ruby
[08:37:15] pranny: has joined #ruby
[08:38:00] mlehrer: has joined #ruby
[08:38:10] mlehrer_: has joined #ruby
[08:39:37] Xeago: has joined #ruby
[08:39:43] supergeek: has joined #ruby
[08:41:02] the_drow: has joined #ruby
[08:43:05] bahar: has joined #ruby
[08:43:48] mark4: has joined #ruby
[08:43:48] darkxploit: has joined #ruby
[08:44:26] sandstrom: has joined #ruby
[08:45:14] chouhoulis: has joined #ruby
[08:48:48] pawnbox: has joined #ruby
[08:49:21] einarj: has joined #ruby
[08:50:34] mauricio: has joined #ruby
[08:52:32] mdw: has joined #ruby
[08:53:06] sandstrom: has joined #ruby
[08:53:09] lipoqil: has joined #ruby
[08:53:28] ferr: has joined #ruby
[08:56:59] baweaver: has joined #ruby
[08:57:00] arlek: has joined #ruby
[08:57:51] EdwardIII: hmm i'm currently deciding whether to build my app multitenancy or just deploy a different instance for each client
[08:58:38] EdwardIII: probably won't exceed around 10 clients so i'm guessing it's probably not worth the extra complexity
[08:59:44] phatypus: has joined #ruby
[09:00:20] pawnbox_: has joined #ruby
[09:01:25] pandaant: has joined #ruby
[09:03:16] sandstrom: has joined #ruby
[09:03:29] ur5us: has joined #ruby
[09:05:21] patrist: has joined #ruby
[09:06:27] karapetyan: has joined #ruby
[09:09:28] lubekpl: has joined #ruby
[09:09:46] sandstrom: has joined #ruby
[09:10:11] lipoqil: adaedra: It's you?
[09:11:57] lubekpl_: has joined #ruby
[09:12:20] celly: has joined #ruby
[09:13:06] sftrabbit: has joined #ruby
[09:13:54] sandstrom: has joined #ruby
[09:14:21] ready2: has joined #ruby
[09:14:41] lubekpl: has joined #ruby
[09:17:54] binaryplease: has joined #ruby
[09:18:54] blaxter: has joined #ruby
[09:19:00] benlieb: has joined #ruby
[09:22:32] anisha: has joined #ruby
[09:22:52] atmosx: has joined #ruby
[09:22:59] sftrabbit: has left #ruby: ()
[09:23:52] william3: has joined #ruby
[09:24:35] sandstrom: has joined #ruby
[09:24:57] moeabdol2: has joined #ruby
[09:26:48] srenatus: has joined #ruby
[09:27:47] Xeago: has joined #ruby
[09:28:27] paul98: hey any one able to help with the following https://gist.github.com/anonymous/0ea18a0ae141de8df257 ? i don't really know much about ruby
[09:30:08] ddv: paul98: read line 27
[09:30:26] ddv: paul98: what distro is this?
[09:33:15] pranny: has joined #ruby
[09:34:16] zacstewart: has joined #ruby
[09:35:36] TheHodge: has joined #ruby
[09:36:58] TomyWork: has joined #ruby
[09:37:33] jud: has joined #ruby
[09:37:54] dmolina: has joined #ruby
[09:38:37] EdwardIII: Radar: have you made many mult-tenancy apps in the past?
[09:40:06] pandaant: has joined #ruby
[09:41:05] karapetyan: has joined #ruby
[09:43:05] Gnut: has joined #ruby
[09:43:55] anisha: has joined #ruby
[09:44:54] quaristice: has joined #ruby
[09:46:12] chouhoulis: has joined #ruby
[09:46:20] sandstrom: has joined #ruby
[09:50:09] wethu: has joined #ruby
[09:50:15] blaxter: has joined #ruby
[09:52:07] rdark: has joined #ruby
[09:53:44] rdark: has joined #ruby
[09:53:48] spex: has joined #ruby
[09:54:51] dlitvak: has joined #ruby
[09:58:47] pawnbox: has joined #ruby
[10:00:08] norc: has joined #ruby
[10:00:15] norc: >> p a if a = 1
[10:00:17] ruby[bot]: norc: # => /tmp/execpad-bb7fbfccfb81/source-bb7fbfccfb81:2: warning: found = in conditional, should be == ...check link for more (https://eval.in/515549)
[10:00:21] norc: Why does this require parens around the conditional?
[10:01:02] apeiros: hm? it does not?
[10:01:18] iMessage: has joined #ruby
[10:01:23] apeiros: it warns you that you have an assignment, which likely should be a comparison
[10:02:07] apeiros: oh, interesting, it's not just a warning
[10:02:47] apeiros: I think I see now what you meant. weird.
[10:03:13] blackmesa: has joined #ruby
[10:04:19] norc: Oh I should know better.
[10:04:22] apeiros: but a paren doesn't help, a remains undefined.
[10:04:30] apeiros: this is odd.
[10:04:55] william3: has joined #ruby
[10:05:04] iMessage: Did anyone have problems while running tabula-extractor by a command line ? I've installed this way https://github.com/tabulapdf/tabula-extractor/wiki/Using-the-command-line-tabula-extractor-tool and when I'm typing "tabula" in terminal I get "unknown command"
[10:05:09] sandstrom: has joined #ruby
[10:05:12] iMessage: This is MAC OS X
[10:05:16] paul98: ddv: this is ubuntu and i did the apt-get install ruby-full as well
[10:05:39] joonty: has joined #ruby
[10:05:48] ddv: paul98: you need to do sudo apt-get install build-essential
[10:06:33] norc: apeiros: No the parens do help
[10:06:36] norc: That is the bizarre thing.
[10:06:40] norc: >> p a if (a = 1)
[10:06:42] ruby[bot]: norc: # => /tmp/execpad-25efcc80ceb5/source-25efcc80ceb5:2: warning: found = in conditional, should be == ...check link for more (https://eval.in/515554)
[10:06:52] Domaldel: has joined #ruby
[10:06:59] norc: But I think I know where to look
[10:07:26] norc: apeiros: Ok this is really strange. On my pry shell that actually works.
[10:07:29] apeiros: norc: in what way did it help?
[10:07:34] apeiros: norc: on the second line? :)
[10:07:34] urtokk: has joined #ruby
[10:07:47] evidex: has joined #ruby
[10:07:48] apeiros: I run it with ruby -e because of that
[10:07:56] norc: apeiros: No it makes perfect sense now.
[10:08:22] apeiros: not to me :-/ I mean I can understand how it probably happens, but that doesn't fit with how it should work IMO
[10:08:22] norc: It is this monstrous lvar cache hack in the parser.
[10:08:31] norc: Im willing to bet that this will work fine on jruby
[10:09:23] yardenbar: has joined #ruby
[10:09:33] apeiros: i.e. IMO that behavior is a bug
[10:09:57] norc: Not sure whether its even fixable considering how the lvar cache works and that we have a LR parser.
[10:10:19] pranny: has joined #ruby
[10:10:43] Mon_Ouie: has joined #ruby
[10:11:26] FooMunki: has joined #ruby
[10:12:13] apeiros: dunno. in my language I read the full lexical scope before executing. lvars are stored in an array. the name association is stored elsewhere and only for eval and a local_variable_get equivalent
[10:12:23] karapetyan: has joined #ruby
[10:12:32] moeabdol: has joined #ruby
[10:12:33] apeiros: i.e. a code block has full knowledge of all lvars in it before it starts to execute
[10:13:36] apeiros: it's probably not the fastest way to work with it, but faster than referring to them by name
[10:13:38] norc: apeiros: The issue is how Ruby implements shadowing lvars with conflicting method names.
[10:13:45] norc: So the order in which things are found is rather important.
[10:14:05] apeiros: ah true. you can all a method before an assignment in the same lexical scope.
[10:14:14] apeiros: luckily I don't have that ambiguity
[10:14:22] apeiros: actually s/luckily/by design/
[10:14:31] sandstrom: has joined #ruby
[10:14:37] paul98: ddv: cheers it still fails but i've other stuff to be worrying about will pick up on it later! thanks for the pointers
[10:15:04] norc: def a; 1; end; puts a if a = 2
[10:15:09] norc: apeiros: what would you expect this to return?
[10:15:30] moeabdol1: has joined #ruby
[10:15:31] norc: (Honest question)
[10:16:36] apeiros: with the current way ruby works, I'd expect it to print 2
[10:17:13] apeiros: given that the `if a = 2` is necessarily executed before `puts a`
[10:17:39] norc: Hehe, if lvar resolution and shadowing was done at execution stage in the VM that would certainly be possible.
[10:17:56] ElFerna: has joined #ruby
[10:18:21] norc: But that would probably change lexical scope semantics wrt blocks/procs, no?
[10:18:26] apeiros: it can be done when the AST is built
[10:18:39] seitensei: has joined #ruby
[10:19:11] Zai00: has joined #ruby
[10:19:24] apeiros: personally I'd favor if the existence of an lvar would always shadow, even before assignment
[10:19:52] apeiros: that'd probably be unexpected at first, but make things much more clear than the current way where an unexecuted branch can shadow a method
[10:20:11] LoneHerm_: has joined #ruby
[10:20:34] apeiros: (see `ruby -e 'def a; 1; end; if false then a = 2; end; puts a'`)
[10:20:45] shredding: has joined #ruby
[10:21:38] marr: has joined #ruby
[10:23:07] rsc___: has joined #ruby
[10:23:34] stardiviner: has joined #ruby
[10:23:48] turner_: has joined #ruby
[10:24:12] norc: apeiros: If you resolve var/method at runtime, it would necessitate lvar either always or never shadowing.
[10:24:27] norc: I think.
[10:25:56] EdwardIII: hrm where do i know apeiros from
[10:26:37] PedramT: has joined #ruby
[10:27:31] aryaching: has joined #ruby
[10:28:18] tvw: has joined #ruby
[10:28:33] adgtl: has joined #ruby
[10:28:59] pawnbox_: has joined #ruby
[10:29:33] ponga: has joined #ruby
[10:31:01] norc: apeiros: The more I think about it though, the modifier_ keywords are just rather silly for exactly this reason.
[10:31:15] Zai00: has joined #ruby
[10:32:23] norc: Hah. I just looked at parse.y more closely and found some interesting things
[10:32:28] norc: >> puts a rescue NameError
[10:32:29] ruby[bot]: norc: # => NameError (https://eval.in/515599)
[10:32:36] norc: That is a useful modifier :D
[10:32:41] sandstrom: has joined #ruby
[10:33:12] mdw: has joined #ruby
[10:33:24] greg: has joined #ruby
[10:34:03] pranny: has joined #ruby
[10:34:05] aryaching: has joined #ruby
[10:35:18] zacstewart: has joined #ruby
[10:36:49] atmosx_: has joined #ruby
[10:36:59] krobzaur: has joined #ruby
[10:38:00] TheWhip: has joined #ruby
[10:38:22] PedramT: has joined #ruby
[10:39:24] last_staff: has joined #ruby
[10:40:48] PedramT_: has joined #ruby
[10:42:30] norc: apeiros: foo = -> { puts a }; a = 1; foo.call
[10:42:36] norc: Would you expect that to succeed too?
[10:43:05] Mon_Ouie: x rescue NameError is completely different from begin; x; rescue NameError; end btw
[10:43:43] karapetyan: has joined #ruby
[10:43:46] huyderman: has joined #ruby
[10:45:11] norc: Mon_Ouie: How is that different?
[10:45:37] Mon_Ouie: >> x rescue LoadError
[10:45:38] ruby[bot]: Mon_Ouie: # => LoadError (https://eval.in/515609)
[10:45:48] Mon_Ouie: it's 'rescue; NameError; end'
[10:46:03] devbug: has joined #ruby
[10:47:12] chouhoulis: has joined #ruby
[10:48:01] norc: >> a rescue 1
[10:48:02] ruby[bot]: norc: # => 1 (https://eval.in/515612)
[10:50:32] norc: Mon_Ouie: Interesting, I followed this down the rabbit whole and made some interesting discoveries how and when the catch entries for catch/retry come into existence.
[10:50:37] dlitvak: has joined #ruby
[10:51:22] roshanavand: has joined #ruby
[10:52:57] kibogol: has joined #ruby
[10:53:42] kibogol: How does one install gems to the system /usr/local directory heirarchy?
[10:54:43] tesuji: has joined #ruby
[10:54:53] bronson_: has joined #ruby
[10:57:15] Mon_Ouie: By default, gem installs to GEM_HOME; you can pass an install directory with -i.
[10:57:38] existensil: has joined #ruby
[10:58:16] baweaver: has joined #ruby
[10:58:56] ferr: has joined #ruby
[10:59:23] dlitvak: has joined #ruby
[11:00:24] PedramT: has joined #ruby
[11:01:53] vondruch_: has joined #ruby
[11:05:19] ocbtec: has joined #ruby
[11:07:56] dlitvak_: has joined #ruby
[11:08:19] s00pcan: has joined #ruby
[11:09:29] kerunaru: has joined #ruby
[11:10:47] PedramT: has joined #ruby
[11:13:05] pranny: has joined #ruby
[11:13:14] celly: has joined #ruby
[11:14:10] dextertzu: has joined #ruby
[11:15:00] karapetyan: has joined #ruby
[11:15:10] xapak: has joined #ruby
[11:16:47] s00pcan_: has joined #ruby
[11:19:38] Mon_Ouie: has joined #ruby
[11:20:45] PedramT: has joined #ruby
[11:21:54] mikecmpbll: has joined #ruby
[11:23:33] stannard: has joined #ruby
[11:23:44] peitera: has joined #ruby
[11:24:55] symm-: has joined #ruby
[11:25:09] y2mq37: has joined #ruby
[11:26:48] turner_: has joined #ruby
[11:26:50] krzkrz: has joined #ruby
[11:28:22] apeiros: norc: with current ruby: no. I'd want it to work, though (and in my language it would)
[11:28:28] apeiros: and now you make me try
[11:29:14] xapak: Could someone please help me find out why this thing is not ???returning??? values properly? https://gist.github.com/anonymous/261099ebc81b23da937a
[11:29:31] PedramT: has joined #ruby
[11:29:45] xapak: If I use puts it will print the results, but duplicated. If I don???t use it, it won???t print proper results. :'(
[11:30:05] joonty: has joined #ruby
[11:30:33] apeiros: xapak: .each returns the receiver
[11:30:46] sgambino: has joined #ruby
[11:30:47] apeiros: >> [1,2,3].each do "this is irrelevant" end
[11:30:49] ruby[bot]: apeiros: # => [1, 2, 3] (https://eval.in/515654)
[11:31:06] TheWhip: has joined #ruby
[11:31:19] apeiros: you probably want map
[11:31:24] xapak: apeiros, what do you suggest? A variable, add results there, and simply set the variable to the end?
[11:31:31] xapak: Hmm... let me check that.
[11:31:56] apeiros: >> [1,2,3].map { |e| "now it is relevant #{e}" }
[11:31:58] ruby[bot]: apeiros: # => ["now it is relevant 1", "now it is relevant 2", "now it is relevant 3"] (https://eval.in/515655)
[11:32:14] apeiros: each is for side-effects. map is for return value.
[11:33:56] aryaching_: has joined #ruby
[11:34:23] xapak: In my own gist, if I change it to maps, I get the ???puts??? behaviour of duplicated results. If I run the Dir.glob outside, it works as intended.
[11:34:24] TheWhip: has joined #ruby
[11:34:28] kibogol: setting environment variable GEM_HOME did not function as claimed. It put the executables under ~/.gem in spite of that.
[11:34:32] xapak: apeiros, do you see perhaps why?
[11:34:59] apeiros: xapak: update the gist
[11:34:59] rsc___: has joined #ruby
[11:35:08] sts: hello folks. When I develop some code on a machine, where the same class is installed system wide, how can I exclude the system wide path for running it from my home directory?
[11:35:22] apeiros: xapak: also, pretty please use .rb as filesuffix.
[11:35:52] chipotle: has joined #ruby
[11:36:08] apeiros: sts: $LOAD_PATH governs how base require works. Dont' remember which variable controls gem's require, though.
[11:36:35] lxsameer: has joined #ruby
[11:36:55] zacstewart: has joined #ruby
[11:36:56] sts: apeiros: can i remove a path from LOAD_PATH?
[11:37:16] apeiros: sts: it's an ordinary array.
[11:37:25] apeiros: also $LOAD_PATH != LOAD_PATH.
[11:38:22] xapak: apeiros, https://gist.github.com/anonymous/37638fee29789d0d40ac
[11:38:48] xapak: Where Gems are read from is GEM_PATH.
[11:38:54] xapak: ENV["GEM_PATH"]
[11:38:58] bigkevmcd: has joined #ruby
[11:39:04] xapak: Where they are installed is ENV["GEM_HOME"]
[11:39:20] apeiros: xapak: because a single iteration of your map returns an array. so of course you get an array of arrays. see flat_map for that.
[11:39:33] aryaching: has joined #ruby
[11:39:38] bigkevmcd: has joined #ruby
[11:40:13] xapak: apeiros, arrgh, my bad. Used @project_directory again instead of just ???project???
[11:40:55] Skelz0r: has joined #ruby
[11:41:28] xapak: apeiros, you helped me picture my problems. Thanks! :)
[11:43:39] Kruppe: has joined #ruby
[11:44:49] Mon_Ouie: kibogol: Possibly you have --user-install in your ~/.gemrc or in /etc/gemrc?
[11:45:47] sandstrom: has joined #ruby
[11:46:50] bluOxigen: has joined #ruby
[11:46:58] bluOxigen: has joined #ruby
[11:47:22] dtordable: has joined #ruby
[11:47:55] chouhoulis: has joined #ruby
[11:49:06] EdwardIII: is there some otherworldly metaprogramming i can use to get all named, required params as a dict?
[11:49:17] EdwardIII: hash, sorry
[11:50:47] aryaching: has joined #ruby
[11:51:13] burgestrand: has joined #ruby
[11:52:19] TheWhip: has joined #ruby
[11:52:25] EdwardIII: inside the method? like this? https://gist.github.com/EdwardIII/466bb6457d67c99b50a3
[11:53:46] unsymbol: EdwardIII: not sure i understand the question, could you say a little more about what you're trying to do?
[11:53:54] rkoller: has joined #ruby
[11:54:21] EdwardIII: unsymbol: getting a big fat bunch of params that i need to add a few things to, then pass on to an api
[11:54:44] EdwardIII: if i use **opts i don't get the validation that all params are present and correct (which i want)
[11:54:54] Zai00: has joined #ruby
[11:55:04] Danielpk: has joined #ruby
[11:55:34] trinaldi: has joined #ruby
[11:56:45] apeiros: EdwardIII: it'd be ugly and you'd still have to either use something like binding_of_caller or pass in the method name + binding
[11:57:21] apeiros: method(__method__).params gets you the info, and Binding#local_variable_get the data
[11:57:22] kibogol: Bingo, --user-install is in /etc/gemrc ! Was in...
[11:57:44] apeiros: I think I've even written such an abomination once. just to test how ugly it'd be :)
[11:57:52] EdwardIII: hehe maybe i should just pass it on
[11:58:03] EdwardIII: ultimately it's going to a soap api, i think savon or the endpoint will complain if something it expects is missing
[11:58:28] dlitvak: has joined #ruby
[11:58:32] apeiros: if you have a sane xsd, it should
[11:58:37] pranny: has joined #ruby
[11:58:53] apeiros: personally I'm a fan of early failure instead of delayed. but sometimes that's just not worth the effort.
[11:59:44] blackmesa: has joined #ruby
[12:00:05] aryaching: has joined #ruby
[12:00:35] shevy: fail early, fail often
[12:00:39] shevy: - PHP !!!
[12:01:11] xapak: has left #ruby: ()
[12:02:51] pihpah: has joined #ruby
[12:03:15] pihpah: I got this following error while running berks init . Unable to activate berkshelf-api-client-2.0.0, because httpclient-2.7.1 conflicts with httpclient (~> 2.6.0)
[12:03:23] Shaboum: has joined #ruby
[12:03:40] pihpah: gem list tells I have two version of httpclient installed
[12:03:55] pihpah: httpclient (2.7.1, 2.6.0.1)
[12:04:24] apeiros: sounds like something required httpclient without specifying a version, which activated the newest
[12:04:33] shevy: yeah it dislikes 2.7.1
[12:05:04] apeiros: and then something else tried to activate a specific version (~ 2.6.0) which failed because 2.7.1 was already required (activation happens with a gem before the actual require, require does it automatically)
[12:05:19] apeiros: shevy: stop making me look like I'd like php! :<
[12:05:24] pihpah: berks init . is he exact command I ryun
[12:05:46] shevy: I just thought fit it would fit to php :D
[12:06:17] pihpah: apeiros: so, what should I do?
[12:06:23] shevy: pihpah are you able to use only one httpclient version?
[12:06:27] apeiros: file a bugreport with berks?
[12:06:32] apeiros: uninstall 2.7.1?
[12:06:37] sandstrom: has joined #ruby
[12:06:38] apeiros: run it with a Gemfile? I don't know.
[12:07:02] pihpah: apeiros: uninstall is the solution I guess
[12:07:02] apeiros: install a newer version of berks?
[12:09:52] skakri: has joined #ruby
[12:11:28] jottr: has joined #ruby
[12:12:11] apeiros: seems I've not gisted that params code. wouldn't be surprised, iirc it was ugly as hell :D
[12:12:32] geoffyoungs: has joined #ruby
[12:13:35] aryaching: has joined #ruby
[12:16:15] sandstrom: has joined #ruby
[12:16:57] gregf_: i just tried what apeiros said and it does work ;)
[12:17:21] gregf_: oh, it was sometime back indeed :|
[12:17:40] gregf_: >> def foo fname, lname; method(__method__).parameters.map(&:last).map{ |m| [m, binding.local_variable_get(m)] }.to_h;end; foo("bar", "baz")
[12:17:41] ruby[bot]: gregf_: # => {:fname=>"bar", :lname=>"baz"} (https://eval.in/515699)
[12:18:14] pihpah: apeiros: I've uninstalled one of those gem versions but still the same error
[12:18:39] sdothum: has joined #ruby
[12:19:06] apeiros: gregf_: you have to select the right kind of params first, or only use it with kwargs-only methods
[12:19:31] aryaching_: has joined #ruby
[12:19:32] seitensei: has joined #ruby
[12:19:41] humanitarian: has joined #ruby
[12:19:49] apeiros: >> def foo(a,b=1,*args,c:,d:2,**kwargs);end; method(:foo).parameters
[12:19:50] ruby[bot]: apeiros: # => [[:req, :a], [:opt, :b], [:rest, :args], [:keyreq, :c], [:key, :d], [:keyrest, :kwargs]] (https://eval.in/515703)
[12:20:07] apeiros: i.e. keyreq, key and keyrest
[12:20:14] gregf_: hmm, indeed
[12:20:31] apeiros: aaand you just told me I searched for the wrong thing on gist :D
[12:20:36] apeiros: I searched for params, but it's parameters
[12:20:44] apeiros: https://gist.github.com/apeiros/6e2984f24e31b15aa3cc
[12:21:18] EdwardIII: shevy: PHP you say?
[12:22:54] EdwardIII: shevy: heh why?
[12:23:08] gregf_: apeiros++
[12:23:23] shevy: because of code like this: http://www.biophp.org/minitools/protein_properties/
[12:24:39] mfb2: has joined #ruby
[12:24:56] stannard: has joined #ruby
[12:25:47] bluOxigen_: has joined #ruby
[12:25:57] pawnbox: has joined #ruby
[12:25:58] TomyWork: has joined #ruby
[12:26:03] blackmesa: has joined #ruby
[12:26:36] gregf_: shevy: that is such ugly code. PHP code can be written so much much more better :/
[12:26:50] shevy: gregf_ :D
[12:26:51] EdwardIII: shevy: other than this code being disgusting, why did you bring it up though heh? because of 'fail early, fail often'?
[12:27:04] Azure|dc: has joined #ruby
[12:27:06] shevy: EdwardIII just compare bioperl and biopython to biophp
[12:27:11] aryaching: has joined #ruby
[12:27:12] shevy: then build a castle out of sand
[12:27:21] ddv: you can make shit in every language
[12:27:49] mottel: has joined #ruby
[12:27:53] EdwardIII: it'd be nice for there to be a conclusive answer to this so we didn't always have to discuss it heh
[12:27:54] dlitvak_: has joined #ruby
[12:28:07] EdwardIII: some metric that shows PHP is not as good as the alternatives
[12:28:08] krzkrz: has joined #ruby
[12:28:16] shevy: we can use inferior languages to build awesome things
[12:28:38] EdwardIII: in code complete mcconnell has a table that says if you use vb your project will take longer
[12:29:11] IrishGringo: has joined #ruby
[12:29:35] shevy: there are always some absolute numbers, like amount of code versus amount of features, ease of readability, maintainability, how much the language itself supports, how big its ecosystem is
[12:29:58] mottel: I am creating stats for a ticket support system and I am a bit confused. I want to show the number of the tickets that are open and the waiting time for the customer was more than 24 hours. Then the tickets that have a waiting time more than 48 hours and then for 72 hours. I feel that what I did is wrong. Could you please check this (https://gist.github.com/anonymous/b029a6e87571fca3a5b8)
[12:30:47] dlitvak_: has joined #ruby
[12:31:04] linduxed: has joined #ruby
[12:31:14] karapetyan: has joined #ruby
[12:31:26] ddv: mottel: #RubyOnRails, also use scopes, don't do that in your view and maybe replace erb with something better like haml or slim
[12:32:18] mottel: or maybe something like this: https://gist.github.com/anonymous/6bcf865715534d7e8a6c
[12:32:33] shazaum: has joined #ruby
[12:32:44] mottel: ddv: can you show me an example of what you mean by scope? thank you
[12:33:38] ElFerna: has joined #ruby
[12:33:51] ddv: mottel: http://guides.rubyonrails.org/active_record_querying.html#scopes
[12:33:58] linduxed: has joined #ruby
[12:34:27] mottel: ddv: thank you.
[12:35:52] DoubleMalt: has joined #ruby
[12:37:16] duckpuppy: has joined #ruby
[12:37:44] RegulationD: has joined #ruby
[12:38:20] zacstewart: has joined #ruby
[12:40:54] mottel: ddv: Thank you for your help. As I am learning, why should I not be using erb? are there any pitfalls or do others offer more features?
[12:41:03] vondruch: has joined #ruby
[12:41:06] EdwardIII: i just started using erb, new to rails
[12:41:33] ddv: mottel: lets discuss this in #RubyOnRails
[12:41:53] sts: has left #ruby: ()
[12:42:04] bahar: has joined #ruby
[12:43:38] NoIdea__: has joined #ruby
[12:44:24] NoIdea__: I'm beginning in Ruby (but I do not need help :D), I'm just here to ask you, is that needed or better too learn C to work (I'm still a student)?
[12:44:47] dlitvak: has joined #ruby
[12:45:29] dionysus69: has joined #ruby
[12:48:13] ohaibbq: has joined #ruby
[12:48:26] rodfersou: has joined #ruby
[12:48:40] chouhoulis: has joined #ruby
[12:48:54] aryaching: has joined #ruby
[12:50:10] sandstrom: has joined #ruby
[12:50:33] nfk: has joined #ruby
[12:50:59] pawnbox: has joined #ruby
[12:51:16] sgambino: has joined #ruby
[12:51:33] lipochromogen: has joined #ruby
[12:52:04] mottel: has left #ruby: ()
[12:53:26] burgestrand: has joined #ruby
[12:53:28] shevy: what is with those ultra short joiners
[12:53:29] mdw: has joined #ruby
[12:54:07] eGGsha: has joined #ruby
[12:55:22] shevy: EdwardIII what is also cool about http://www.biophp.org/minitools/protein_properties/demo.php is that the button on bottom is called "Sutmit" :D
[12:55:27] Dragooon: has joined #ruby
[12:56:47] bronson_: has joined #ruby
[12:56:53] william3: has joined #ruby
[12:59:14] blackmesa: has joined #ruby
[12:59:57] EdwardIII: hehe all the best forms have a reset button though
[13:00:08] EdwardIII: exactly the same size, appearance and 0px in distance away from the submit button
[13:02:49] william3: has joined #ruby
[13:03:17] johnmilton: has joined #ruby
[13:04:56] Ishido: has joined #ruby
[13:07:14] shevy: it's why I like classes and modules
[13:07:27] shevy: you can put stuff into logical subcomponents
[13:07:44] pokui: has joined #ruby
[13:08:02] Xeago: has joined #ruby
[13:09:42] pdoherty: has joined #ruby
[13:10:44] LoneHerm_: has joined #ruby
[13:10:49] rickmasta: has joined #ruby
[13:11:16] ferr: has joined #ruby
[13:11:46] rickmasta: has joined #ruby
[13:12:25] symm-: has joined #ruby
[13:13:42] adgtl: has joined #ruby
[13:13:55] sandstrom: has joined #ruby
[13:13:57] synthroid: has joined #ruby
[13:14:03] celly: has joined #ruby
[13:18:07] karapetyan: has joined #ruby
[13:18:25] jottr: has joined #ruby
[13:19:39] askhat: has joined #ruby
[13:21:11] rdar: has joined #ruby
[13:21:14] dlitvak: has joined #ruby
[13:21:58] askhat: has joined #ruby
[13:24:52] adgtl: has joined #ruby
[13:25:03] EdwardIII: hrm is there an example somewhere of how to do camelize_keys recursively?
[13:28:06] shredding: has joined #ruby
[13:28:43] yoongkang: has joined #ruby
[13:28:43] devbug: has joined #ruby
[13:29:46] rbennacer: has joined #ruby
[13:30:32] sandstrom: has joined #ruby
[13:34:21] linduxed: has joined #ruby
[13:34:29] roshanavand: has joined #ruby
[13:34:36] gaspaio: has joined #ruby
[13:35:28] gaspaio: hey all. Newbie question: I have a huge variable declared in a ruby file. How do I load that variable info some other ruby file ?
[13:37:26] JDiPierro: has joined #ruby
[13:37:37] askhat: has joined #ruby
[13:38:51] shevy: gaspaio make it a constant
[13:39:19] zacstewart: has joined #ruby
[13:40:16] arup_r: has joined #ruby
[13:40:46] arup_r: If I do `rvm list known` .. it is not showing the 2.3. What should i do ?
[13:41:21] EdwardIII: ah neat, found one on hashtie
[13:41:33] gaspaio: shevy: thanks a lot, that works.
[13:42:57] askhat: has joined #ruby
[13:43:48] jxs_: has joined #ruby
[13:44:26] jxs_: has joined #ruby
[13:44:28] arup_r: nvm, i got it ..
[13:49:26] chouhoulis: has joined #ruby
[13:49:28] millerti: has joined #ruby
[13:49:34] sandstrom: has joined #ruby
[13:50:48] sankaber: has joined #ruby
[13:51:58] pawnbox_: has joined #ruby
[13:52:34] shevy: hmmm what are the advantages of having the toplevel namespace a class or a module? Reason I ask is... I have a class right now as a toplevel namespace in one project while 98% of my other projects use a module toplevel ... so now I am tempted to turn that class into a module, but I can not remember why I picked a class back then.... (some years ago)
[13:53:26] sleaved: has joined #ruby
[13:54:02] stannard: has joined #ruby
[13:58:15] havenwood: shevy: Are you creating instances of the Class?
[13:59:06] havenwood: shevy: That's what classes are for!
[13:59:46] blackmesa: has joined #ruby
[14:00:41] shevy: havenwood I don't know!
[14:00:51] shevy: I think so
[14:00:58] shevy: but then I lose the possibility to include it! :(
[14:01:37] ElFerna: has joined #ruby
[14:01:40] f3ttX]: has joined #ruby
[14:03:17] bluOxigen: has joined #ruby
[14:03:38] arup_r: has left #ruby: ()
[14:06:55] gbert: has joined #ruby
[14:07:25] cdg: has joined #ruby
[14:08:35] sandstrom: has joined #ruby
[14:08:54] failshell: has joined #ruby
[14:10:53] bruce_lee: has joined #ruby
[14:11:30] bruce_lee: has joined #ruby
[14:11:43] UtkarshRay: has joined #ruby
[14:12:36] pihpah: has joined #ruby
[14:12:44] treehug88: has joined #ruby
[14:12:55] pihpah: `berks install` issues Could not parse `/home/pihpah/github/cookbooks/metadata.rb': undefined method `source' for #<Ridley::Chef::Cookbook::Metadata:0x000000028d37c0>
[14:14:49] PedramT: has joined #ruby
[14:15:29] PedramT: has joined #ruby
[14:18:09] sgambino: has joined #ruby
[14:19:23] ruby-lang356: has joined #ruby
[14:20:26] seitensei: has joined #ruby
[14:20:28] troulouliou_div2: has joined #ruby
[14:21:48] Channel6: has joined #ruby
[14:22:14] IrishGringo: has joined #ruby
[14:23:34] dlitvak_: has joined #ruby
[14:24:21] sandstrom: has joined #ruby
[14:25:46] s00pcan: has joined #ruby
[14:25:55] s00pcan_: has joined #ruby
[14:26:04] mfb2: has joined #ruby
[14:26:35] VeryBewitching: has joined #ruby
[14:26:58] VeryBewitching: Good morning folks.
[14:27:59] platzhirsch: has joined #ruby
[14:28:54] zacstewart: has joined #ruby
[14:30:09] centrx: has joined #ruby
[14:30:50] loz: has joined #ruby
[14:31:37] mary5030: has joined #ruby
[14:31:47] tvw: has joined #ruby
[14:31:48] solars: anyone using the whenever gem and knows if it can list all jobs so I can create some kind of timetable?
[14:32:25] Xiti: has joined #ruby
[14:32:54] freerobby: has joined #ruby
[14:33:21] ramortegui: has joined #ruby
[14:34:35] dajobat: has joined #ruby
[14:34:43] dajobat: Afternoon everyone.
[14:35:02] astrobunny: has joined #ruby
[14:35:30] atomical: has joined #ruby
[14:38:20] rsc___: has joined #ruby
[14:38:39] Jardayn: has joined #ruby
[14:38:56] stannard: has joined #ruby
[14:39:06] krobzaur: has joined #ruby
[14:40:36] makaveli0227TL: has joined #ruby
[14:41:13] symm-: has joined #ruby
[14:41:37] stannard: has joined #ruby
[14:41:45] askhat: has joined #ruby
[14:42:49] sandstrom: has joined #ruby
[14:42:58] stannard: has joined #ruby
[14:43:48] pihpah: berks configure tells Could not find command "configure"
[14:44:12] greg: has joined #ruby
[14:44:46] weemsledeux: has joined #ruby
[14:44:51] TomPeed: has joined #ruby
[14:45:50] pihpah: I've wasted half my day on that shit and still it does not work. A simple command like `berks init` just does not work.
[14:46:28] platzhirsch: http://www.urbandictionary.com/define.php?term=berk
[14:47:48] havenwood: solars: crontab -l
[14:48:49] havenwood: pihpah: You might try the #berkshelf channel if you haven't already.
[14:49:17] roshanav_: has joined #ruby
[14:49:44] tjohnson: has joined #ruby
[14:50:10] chouhoulis: has joined #ruby
[14:50:29] darkf: has joined #ruby
[14:51:50] astrobunny: has joined #ruby
[14:52:54] loz: has joined #ruby
[14:53:22] pihpah: I'll give a shot but serisouly, wtf. My day is ruined. It's kind of one installs git, then spends the whole day trying to figure out why `git init .` command does not work. Did that command ever fail you? You doubt that.
[14:53:50] pihpah: Seems like the Ruby community is driven by half-assed programmers.
[14:54:12] solars: havenwood, I meant in ruby, of course :) but found it already, thanks
[14:54:33] yorickpeterse: pihpah: because one library is a representation of an entire community right?
[14:54:37] havenwood: pihpah: I don't know what you're going on about. Go gripe to Chef or Berkshelf.
[14:55:11] havenwood: pihpah: PS - `git init .` has nothing to do with Ruby.
[14:55:27] DefV: Linus is kind of a half-assed programmer :-/
[14:55:34] blandflakes: has joined #ruby
[14:56:06] platzhirsch: philtr: sorry to hear you have to work with Chef
[14:58:25] gaspaio: has joined #ruby
[15:00:06] rbennacer: has joined #ruby
[15:00:16] platzhirsch: pihpah: it's open source anyway
[15:00:24] platzhirsch: create a pull request and fix it https://github.com/berkshelf/berkshelf
[15:00:34] platzhirsch: not necessarily in that order
[15:00:53] sandstrom: has joined #ruby
[15:01:03] baweaver: has joined #ruby
[15:01:09] momomomomo: has joined #ruby
[15:01:12] ddv: so we have another clueless sysadmin who doesn't know how to program but has to use orchestration tools that in reality do require programming experience
[15:01:17] rbennacer: has joined #ruby
[15:01:37] subsimious: has joined #ruby
[15:02:14] TomPeed: has joined #ruby
[15:02:22] shevy: pihpah some projects are good, others are not so good. it is better to use the good projects and ignore the bad ones
[15:02:50] blackmesa: has joined #ruby
[15:03:17] burgestrand: has joined #ruby
[15:03:37] platzhirsch: what the snake said
[15:03:44] apeiros: pihpah: you're frustrated, I understand that. but throwing stuff like "Seems like the Ruby community is driven by half-assed programmers." is neither productive nor otherwise a good idea, especially in a channel of the ruby community.
[15:04:13] apeiros: (leaving the whole "single datapoint extrapolation" stupidity aside)
[15:04:19] burgestrand: has joined #ruby
[15:05:02] yoongkang: has joined #ruby
[15:06:35] shevy: this confuses me a bit: https://github.com/danmaclean/gee_fu
[15:06:42] shevy: "Install redis (on OSX with homebrew use) brew install redis"
[15:06:43] evidex: has joined #ruby
[15:07:06] shevy: that's a quite OSX centric installation guide right? does gem not work on OSX or why not generalize this via "gem install redis"?
[15:07:21] apeiros: yupp, that's osx centric.
[15:07:32] apeiros: it's an external dependency
[15:07:34] havenwood: shevy: They're trying to show installing the Redis package.
[15:07:35] yorickpeterse: shevy: They're probably referring to the Redis server, not the Gem
[15:07:42] apeiros: the gem won't work anywhere else either if you don't have redis installed.
[15:08:34] apeiros: and as yorickpeterse says, redis ain't a gem :)
[15:09:12] karapetyan: has joined #ruby
[15:09:52] dajobat: Just out of interest, what's the general consensus with respect to brackets around conditionals in if statements?
[15:10:09] dajobat: Should they always be there/ only be there if there are multiple conditions/ never be there?
[15:10:21] apeiros: dajobat: preferably never
[15:10:39] apeiros: having to put some there is IMO an indicator that you should probably break a large conditions apart.
[15:10:51] diegoviola: has joined #ruby
[15:12:28] x77686d: has joined #ruby
[15:13:35] B1n4r10: has joined #ruby
[15:13:40] sdothum: has joined #ruby
[15:15:15] sankaber: has joined #ruby
[15:15:27] DoubleMalt: has joined #ruby
[15:15:43] dajobat: cool, seems reasonable
[15:15:52] dajobat: apeiros: Cheers.
[15:16:51] arthropododo: has joined #ruby
[15:16:57] karapetyan: has joined #ruby
[15:17:13] ohaibbq: has joined #ruby
[15:19:03] konsolebox: has joined #ruby
[15:19:33] mondok: has joined #ruby
[15:19:42] pdoherty: has joined #ruby
[15:20:59] EdwardIII: hrm i'm using savon which uses gyoku, it says you can pass in convert_request_keys_to: :camelcase, but it doesn't seem to do anything
[15:21:16] EdwardIII: trying to diagnose it now but it's a little tricky heh
[15:21:50] sandstrom: has joined #ruby
[15:22:19] Conflict: has joined #ruby
[15:23:52] sucks: has joined #ruby
[15:25:07] despai: has joined #ruby
[15:26:29] jgt4: has joined #ruby
[15:26:48] Danielpk: has joined #ruby
[15:27:40] vbatts|work: has left #ruby: ("found the other side of the rainbow")
[15:28:44] s2013: has joined #ruby
[15:29:06] Ishido: has joined #ruby
[15:31:31] sandstrom: has joined #ruby
[15:32:25] davedev24: has joined #ruby
[15:32:45] freerobby: has joined #ruby
[15:33:07] aufi: has joined #ruby
[15:33:47] colli5ion: has joined #ruby
[15:34:33] SenpaiSilver: has joined #ruby
[15:34:56] damonkelley: has joined #ruby
[15:36:17] minimalism: has joined #ruby
[15:36:45] SenpaiSilver: has joined #ruby
[15:37:05] idefine: has joined #ruby
[15:37:33] DmitryBochkarev: has joined #ruby
[15:37:36] chipotle: has joined #ruby
[15:39:59] askhat: has joined #ruby
[15:40:11] mfb2: has joined #ruby
[15:40:46] IrishGringo: has joined #ruby
[15:41:27] sgambino: has joined #ruby
[15:44:36] KnownSyntax: has joined #ruby
[15:45:01] LoneHermit: has joined #ruby
[15:45:31] dopamean_: has joined #ruby
[15:47:20] kegster: has joined #ruby
[15:47:25] EdwardIII: hrm trying to step through the whole request cycle is taking a looong time with byebug, is there a way i can say 'just break if you hit anything in this file'? or even better, 'if the ruby filename matches glob *gyu*'?
[15:47:43] seitensei: has joined #ruby
[15:47:57] EdwardIII: hrm i see i can break on class:method, i'll give that a spin
[15:49:18] shevy: yorickpeterse ah I see
[15:51:07] chouhoulis: has joined #ruby
[15:51:18] idefine: has joined #ruby
[15:51:51] haylon: has joined #ruby
[15:51:59] rickmasta: has joined #ruby
[15:52:20] kies^: has joined #ruby
[15:52:35] Pumukel: has joined #ruby
[15:55:22] eGGsha: has joined #ruby
[15:56:13] floatingpoint: has joined #ruby
[15:56:47] Kedare: has joined #ruby
[15:58:23] marxarelli: has joined #ruby
[15:58:43] idefine: has joined #ruby
[15:59:25] SenpaiSilver_: has joined #ruby
[15:59:37] podman: has joined #ruby
[15:59:48] plonk: has joined #ruby
[15:59:48] plonk: has joined #ruby
[16:00:19] poguez_: has joined #ruby
[16:00:36] marxarel_: has joined #ruby
[16:01:20] SenpaiSilver_: has joined #ruby
[16:01:21] cschneid_: has joined #ruby
[16:01:21] bronson_: has joined #ruby
[16:03:06] SenpaiSilver_: has joined #ruby
[16:04:09] ElFerna: has joined #ruby
[16:04:11] d10n-work: has joined #ruby
[16:05:09] griffindy: has joined #ruby
[16:05:50] blackmesa: has joined #ruby
[16:07:03] whippythellama: has joined #ruby
[16:10:07] decoponio: has joined #ruby
[16:10:35] baweaver: has joined #ruby
[16:10:42] Gnut: has joined #ruby
[16:11:05] EdwardIII: do you guys actually use something like byebug for all your debugging? or do you hook it into vim, use an ide or whatever?
[16:11:27] neohunter: has joined #ruby
[16:12:45] Smcdrc: has joined #ruby
[16:13:00] DmitryBochkarev: has joined #ruby
[16:13:11] centrx: EdwardIII, I don't use anything special for debugging
[16:13:18] centrx: Except in rare cases
[16:13:21] Bloomer: has joined #ruby
[16:13:26] EdwardIII: just 'p var'?
[16:13:40] platzhirsch: has left #ruby: ()
[16:14:00] havenwood: EdwardIII: Tenderlove wrote an article about puts debugging recently: http://tenderlovemaking.com/2016/02/05/i-am-a-puts-debuggerer.html
[16:14:05] EdwardIII: ACTION reads
[16:15:08] adgtl: has joined #ruby
[16:17:04] RegulationD: has joined #ruby
[16:18:05] sgambino: has joined #ruby
[16:18:06] EdwardIII: some good stuff in that article whether you use puts or a proper debugger
[16:18:07] zast: has joined #ruby
[16:18:36] adaedra: I personally use pry + pry-byebug
[16:21:07] polishdub: has joined #ruby
[16:23:30] glovemaking: has joined #ruby
[16:23:43] idefine: has joined #ruby
[16:24:04] LoneHerm_: has joined #ruby
[16:24:11] rkazak: has joined #ruby
[16:26:12] EdwardIII: i love actual debuggers
[16:26:43] EdwardIII: like just then, once i figured out how to use byebug properly i could dip into the guts of savon and find that i just needed to ensure i used symbols for my keys or it wouldn't bother to camelise them
[16:27:15] DoubleMalt: has joined #ruby
[16:29:38] jackjackdripper: has joined #ruby
[16:29:52] finisherr: has joined #ruby
[16:30:33] shevy: EdwardIII I don't need much debugging for my own code, sometimes I make use of pp though
[16:30:38] zacstewa_: has joined #ruby
[16:33:08] last_staff1: has joined #ruby
[16:34:25] Smcdrc: I love awesomeprint gem. It is usually one of the first gems I install
[16:35:01] Abrin: has joined #ruby
[16:35:18] ElFerna: has joined #ruby
[16:36:50] Guest7350: has joined #ruby
[16:38:31] ElFerna: has joined #ruby
[16:39:01] Mojo_Nixon: has joined #ruby
[16:39:05] askhat: has joined #ruby
[16:39:42] yos7ph: has joined #ruby
[16:41:21] Ruby_Rocks_007: has joined #ruby
[16:43:15] rsalazar: has joined #ruby
[16:45:03] rsalazar: has left #ruby: ()
[16:45:03] hamed_r: has joined #ruby
[16:47:42] f4cl3y: has joined #ruby
[16:47:53] alexis: has joined #ruby
[16:48:15] alexis: Hi everyone.
[16:48:47] alexis: I'm trying to install a specific gem and have issues with it, after some search I'm not more advanced, so I figured I would ask.
[16:49:23] alexis: When trying to install the gem named "curb", I have some failures.
[16:49:36] alexis: I've been successful at installing the same gem as packaged for debian
[16:50:01] alexis: I would need to find a way to link the gem that I installed with debian to my "bundle".
[16:50:19] alexis: OR to fix the dependencies (I guess) in order for the gem to compile
[16:50:42] alexis: Anyone got ideas about that?
[16:50:50] alexis: Thanks for your time.
[16:51:13] zacstewart: has joined #ruby
[16:51:36] dmitch: has joined #ruby
[16:51:45] chouhoulis: has joined #ruby
[16:52:32] shevy: you can put what you tried into a pastie
[16:52:36] shevy: (remote one)
[16:52:42] TomyLobo: has joined #ruby
[16:53:14] shevy: Fetching: curb-0.9.1.gem (100%)
[16:53:14] shevy: Building native extensions. This could take a while...
[16:53:24] shevy: seems as if you must compile it so you may need some headers
[16:53:32] chipotle: has joined #ruby
[16:53:51] alexis: yeah, I think I installed them.
[16:53:59] alexis: here is the output of the "bundle install" command
[16:54:01] alexis: http://paste.notmyidea.org/paste/DFXjKcby#UW8Nh9Z4
[16:54:17] Spami: has joined #ruby
[16:54:26] valera: has joined #ruby
[16:54:33] diegoviola: has joined #ruby
[16:54:52] alexis: I installed ruby-dev and libcurl4-openssl-dev
[16:54:55] shevy: hmm it works without error for me here
[16:55:07] idefine: has joined #ruby
[16:55:18] shevy: I use ruby 2.3.0p0 (2015-12-25 revision 53290) and curl 7.47.1
[16:55:52] centrx: good for you
[16:56:25] tvw: has joined #ruby
[16:56:31] dmitch: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[16:56:32] alexis: Here I use the default versions provided with debian 8.
[16:56:39] alexis: That is ruby 2.1.5p273 (2014-11-13)
[16:57:16] alexis: and libcurl4 7.38.0-4
[16:57:28] msisk: has joined #ruby
[16:58:02] shevy: yeah for some reason it does not want to continue to compile it for you
[16:58:05] ElFerna: has joined #ruby
[16:58:06] alexis: Does anyone know a way to include an already installed gem to a bundle?
[16:58:25] Lucky_ABA: has joined #ruby
[16:58:31] [Butch]: has joined #ruby
[16:59:30] chrisarcand: alexis: 'Adding to a bundle' is just bundler adding it to its lock file. The gem can already be installed with whatever path you have set.
[17:00:02] chrisarcand: ie if you installed the gem and add it to your bundle, you'll notice Bundler outputs 'Using 'the_gem' (version)' instead of Installing...
[17:00:02] wtiger: has joined #ruby
[17:00:29] wtiger: what are some good os ruby projects for a beginner to contribute to?
[17:00:34] william3: has joined #ruby
[17:00:39] wtiger: *os = open source
[17:00:54] rbennacer: has joined #ruby
[17:01:07] astrobunny: has joined #ruby
[17:01:54] alexis: chrisarcand: I installed it with apt, so I suppose it's not in the PATH bundle is looking for?
[17:02:07] alexis: chrisarcand: how can I tell bundle to look at the correct location?
[17:02:20] Bloomer_: has joined #ruby
[17:02:56] tomchapin: has joined #ruby
[17:03:33] amclain: has joined #ruby
[17:03:52] davedev24: has joined #ruby
[17:04:33] karapetyan: has joined #ruby
[17:05:55] yoongkang: has joined #ruby
[17:07:26] chrisarcand: alexis: I'm not the most familiar with how bundler/rubygems pathing works, especially with ruby via apt, but you'll want to look at `gem environment`, `which ruby`, `which gem` etc and make sure all looks correct.
[17:07:56] Pumukel: has joined #ruby
[17:08:23] gambl0re: has joined #ruby
[17:08:30] ensyde: has joined #ruby
[17:09:08] duckpuppy: has joined #ruby
[17:09:19] davedev24: has joined #ruby
[17:09:31] desiccate: has joined #ruby
[17:10:39] askhat_: has joined #ruby
[17:12:40] idefine: has joined #ruby
[17:13:22] askhat: has joined #ruby
[17:15:29] JDiPierro: has joined #ruby
[17:16:03] azure32: has joined #ruby
[17:17:06] ElFerna: has joined #ruby
[17:17:42] kfpratt: has joined #ruby
[17:17:57] crime: has joined #ruby
[17:18:26] crime: the zen of python is just jihadism, making everybody do something one specific way
[17:19:59] azure32: thats one way to put a very negative spin on something
[17:20:08] centrx: python is murder
[17:20:24] joonty: has joined #ruby
[17:20:35] desiccate: has joined #ruby
[17:20:46] eam: ideological cleansing
[17:21:04] crime: I mean, jihadism isnt necessarily explicitly negative, depends on who's talking. I'm just saying that it's nice to do things your own way
[17:21:20] eam: crime: you'd like perl
[17:21:26] crime: If we were a bunch of jihadists, that'd be just swell
[17:21:36] eam: Coders Going Their Own Way
[17:21:42] crime: perl is ok, I think perl-ers have already killed perl6 tho
[17:21:45] crime: which is a shame
[17:21:47] azure32: this is the first thing I see when I log on in the morning
[17:21:56] crime: good morning
[17:22:01] eam: good morning everyone
[17:22:04] azure32: good morning!
[17:22:08] crime: i just dropped by to talk ruby and commit crimes
[17:22:15] crime: ya know, the usu'
[17:22:33] azure32: typical day at the office, dontcha know
[17:22:44] EdwardIII: i kinda like python's exception love
[17:22:49] EdwardIII: makes it easier to avoid accidents
[17:22:51] Bloomer: has joined #ruby
[17:22:54] azure32: ^python has its uses
[17:23:44] eam: I like that python is ref counted
[17:25:17] gizmore: has joined #ruby
[17:25:28] crime: ya know, on the other side of the jihadist coin, there is potential for an argument that TIMTOWTDI is basically just hedonism, right? no moral baseline for implementation
[17:25:53] crime: what language would a buddhist write? probably asm or C?
[17:25:58] rbennacer: has joined #ruby
[17:26:08] eam: purity of form
[17:26:09] devbug: has joined #ruby
[17:26:10] EdwardIII: something with no state seems a bit more zen
[17:26:16] gizmore: crime: intercal
[17:26:17] tildes: has joined #ruby
[17:26:22] azure32: they want a higher state of being, not lower
[17:26:26] crime: i love lisp but hate emacs
[17:26:39] crime: yeah, no state for sure
[17:26:42] tvw: has joined #ruby
[17:26:46] rakm: has joined #ruby
[17:27:06] crime: i was sort of thinking erlang. let it crash resonates with personal mindfulness, right?
[17:27:08] idefine_: has joined #ruby
[17:27:45] adgtl: has joined #ruby
[17:28:42] KensoDev: has joined #ruby
[17:31:25] davidfrey: has joined #ruby
[17:32:37] karapetyan: has joined #ruby
[17:36:15] zacstewart: has joined #ruby
[17:36:42] sneakerhax: has joined #ruby
[17:38:20] diego2: has joined #ruby
[17:38:30] elifoster: has joined #ruby
[17:38:39] kknight: has joined #ruby
[17:39:52] diego3: has joined #ruby
[17:40:08] diego3: has joined #ruby
[17:42:24] GinoManWorks: has joined #ruby
[17:43:41] adgtl: has joined #ruby
[17:44:00] Infra-Red: has joined #ruby
[17:44:09] stannard_: has joined #ruby
[17:44:49] jorrin: has joined #ruby
[17:46:26] LoneHermit: has joined #ruby
[17:46:51] fedexo: has joined #ruby
[17:46:56] fedexo_: has joined #ruby
[17:47:17] PD028300: has joined #ruby
[17:47:19] despai: has joined #ruby
[17:47:45] mdw: has joined #ruby
[17:50:16] ElFerna: has joined #ruby
[17:52:01] baweaver: has joined #ruby
[17:52:29] chouhoulis: has joined #ruby
[17:53:00] JDiPierro: has joined #ruby
[17:53:11] lubekpl: has joined #ruby
[17:55:57] zacstewa1t: has joined #ruby
[17:57:00] gisli: has joined #ruby
[17:57:05] gisli: has left #ruby: ("WeeChat 1.2")
[17:57:14] sucks: has joined #ruby
[17:57:22] selfadhesivefilm: has joined #ruby
[17:59:30] SCHAAP137: has joined #ruby
[18:00:32] the_drow: has joined #ruby
[18:00:35] Infra-Red: has joined #ruby
[18:02:08] Xiti`: has joined #ruby
[18:02:12] flughafen_: has joined #ruby
[18:02:27] tildes: has joined #ruby
[18:02:35] tw1sted: has joined #ruby
[18:03:17] Frem: has joined #ruby
[18:03:58] acidrainfall: has joined #ruby
[18:04:31] Wolland: has joined #ruby
[18:04:58] askhat: has joined #ruby
[18:05:21] baweaver: has joined #ruby
[18:05:28] acidrainfall: How can I check if a variable is empty?
[18:05:53] acidrainfall: Anything I append to the array (.defined? .any? etc) complains about NilClass.
[18:06:08] acidrainfall: I want to say "If you're going to complain about NilClass, just skip it."
[18:07:12] eam: >> nil.nil?
[18:07:19] eam: where's the bot :(
[18:07:26] eam: well drat
[18:07:32] acidrainfall: ah perfect thank you so much
[18:07:42] acidrainfall: I don't know why that was so hard to find, I was probably asking the wrong question
[18:09:11] crime: oh a variable
[18:09:14] eam: crime: .empty? will be true for [], but raise for nil
[18:09:46] speakingcode: has joined #ruby
[18:09:53] acidrainfall: yeah I tried .empty.
[18:09:57] acidrainfall: .nil is what I needed
[18:10:37] acidrainfall: I'm defining arrays at the top and will offer a selection as part of this script, but my syntax checker complains that I have variables I'm not using anywhere else in the script.
[18:10:45] jmdade: has joined #ruby
[18:11:00] acidrainfall: If there are 4 host groups and the selection only allows for one, there will always be 3 variables that exist with data but aren't used. That's not a problem is it?
[18:11:08] eam: acidrainfall: nil is also false, so you can use it directly in a conditional
[18:11:21] acidrainfall: I didn't know if that worked in ruby or not
[18:11:26] Ilyes512: has joined #ruby
[18:11:34] eam: if whatever; not_nil; else either_nil_or_false; end
[18:12:25] dlitvak: has joined #ruby
[18:12:48] evidex: has joined #ruby
[18:13:11] benlieb: has joined #ruby
[18:13:38] krobzaur: has joined #ruby
[18:13:57] bluOxigen: has joined #ruby
[18:14:03] fedexo: has joined #ruby
[18:14:04] fedexo_: has joined #ruby
[18:15:01] mostlybadfly: has joined #ruby
[18:15:01] camillo: has joined #ruby
[18:15:08] dangeranger: has joined #ruby
[18:17:55] Mon_Ouie: has joined #ruby
[18:18:00] kirillzh: has joined #ruby
[18:20:13] astrofog: has joined #ruby
[18:20:22] intrigueD: has joined #ruby
[18:20:32] bronson_: has joined #ruby
[18:20:55] yqfvwal: has joined #ruby
[18:21:03] dfockler: has joined #ruby
[18:21:13] stannard: has joined #ruby
[18:21:19] idefine: has joined #ruby
[18:21:24] Infra-Red: has joined #ruby
[18:22:06] ohaibbq: has joined #ruby
[18:22:39] yqfvwal: Hi! Is there syntactic sugar to manipulate a variable, with a default value before being used?
[18:23:19] crime: like var = var || 5?
[18:23:25] Infra-Red: has joined #ruby
[18:23:26] crime: because that'd be var ||= 5
[18:24:25] alexis: Thanks all. See ya
[18:24:26] alexis: has left #ruby: ("WeeChat 1.0.1")
[18:24:37] dmitch: has joined #ruby
[18:24:52] yqfvwal: crime, I want to set var to zero if not defined otherwise increment it by one
[18:25:29] baweaver: that sounds like a programming construct
[18:25:35] crime: if var.nil? var=0; var+=1
[18:25:37] baweaver: something conditional
[18:25:47] Devalo: has joined #ruby
[18:26:01] yqfvwal: yes, I know, but I thought there was some other possibility than using conditionals, but thanks
[18:26:04] floror: has joined #ruby
[18:26:06] arlek: has joined #ruby
[18:26:20] crime: but it IS a conditional, since you have a condition that you are checking for
[18:26:34] Blaguvest: has joined #ruby
[18:26:38] baweaver: v = v ? v + 1 : 0
[18:26:51] baweaver: still an if branch though
[18:27:03] baweaver: ternary, but semantics
[18:27:15] william3: has joined #ruby
[18:27:21] yqfvwal: baweaver, thanks, did not think about
[18:27:32] kies^: has joined #ruby
[18:27:46] hahuang61: has joined #ruby
[18:28:03] yqfvwal: baweaver, ARGF.each { a = a ? a + 1 : 0 } does not work
[18:28:15] yqfvwal: puts a, Name error
[18:28:33] crime: are they strings?
[18:29:00] idefine: has joined #ruby
[18:29:03] baweaver: what's the actual error?
[18:29:10] baweaver: because that each isn't going to work
[18:29:33] apeiros: yqfvwal: you only set a inside the block
[18:29:35] apeiros: it won't exist outside
[18:29:44] kirillzh: has joined #ruby
[18:29:47] krobzaur: has joined #ruby
[18:29:49] yqfvwal: apeiros, ah ok, how do I make it global?
[18:29:50] apeiros: also it'll be overridden on each iteration anyways
[18:29:57] baweaver: never global
[18:30:19] codecop: has joined #ruby
[18:30:45] yqfvwal: hmm, ok, seems the best way to initialize a to zero before using each on argf
[18:31:36] apeiros: yqfvwal: .each_with_index { |line, a| ???
[18:31:44] baweaver: yqfvwal: what's the entire code?
[18:31:50] ruby[bot]: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[18:31:55] crime: yeah paste your code somewhere
[18:32:09] baweaver: don't use ! methods
[18:32:12] apeiros: yqfvwal: but for your approach - why didn't you set `a` outside the loop instead of testing on every single iteration whether it exists?
[18:32:18] crime: i cant wait to see whatever this is
[18:32:19] baweaver: there are exceptions but more of a headache in most cases.
[18:32:38] baweaver: without the entire context most of this advice is probably bad.
[18:32:40] yqfvwal: It was just some experimenting. I wanted to increment a variable, everytime an enter is pressed, and write it on stdout
[18:32:46] dajobat: Cheerio all
[18:33:21] yqfvwal: a = 0;ARGF.each {a += 1};puts a # this is all I want to do
[18:33:28] marxarelli: yqfvwal: ARGF.each.reduce(0) { |a| a + 1 } would probably work well for you
[18:33:29] baweaver: a = 0; loop do gets && a +=1 end
[18:33:36] ElFerna: has joined #ruby
[18:33:47] baweaver: marxarelli: won't work
[18:33:55] baweaver: reduce takes two arguments to the block
[18:33:58] x77686d: has joined #ruby
[18:34:02] baweaver: that'll just treat it as one array
[18:34:06] marxarelli: blocks don't have strict arity
[18:34:08] Infra-Red: has joined #ruby
[18:34:29] newbie22: has joined #ruby
[18:35:16] marxarelli: |*a| would expand the block arguments to an array, but not |a|
[18:35:56] newbie22: Hello everyone
[18:36:00] fedexo: has joined #ruby
[18:36:20] fedexo_: has joined #ruby
[18:36:46] marxarelli: blocks don't enforce their arity. i.e. (proc {}).call(1, 2, 3, ...) executes fine
[18:36:57] marxarelli: lambdas do, however
[18:37:15] marxarelli: i.e. (lambda {}).call(1, 2, 3) raises ArgumentError
[18:38:49] william3: has joined #ruby
[18:39:02] krobzaur: has joined #ruby
[18:39:58] karapetyan: has joined #ruby
[18:40:23] adgtl: has joined #ruby
[18:40:24] oncall-pokemon: has joined #ruby
[18:40:36] djbkd: has joined #ruby
[18:40:38] pdoherty: has joined #ruby
[18:41:48] flughafen_: has joined #ruby
[18:42:30] Infra-Red: has joined #ruby
[18:43:07] idefine: has joined #ruby
[18:43:18] kknight: has joined #ruby
[18:43:41] benlieb: has joined #ruby
[18:45:40] dionysus69: has joined #ruby
[18:47:23] despai: has joined #ruby
[18:48:54] Devalo: Hello. I have a file with lines of text, and I want to delete a specific line. (todo-app). Gisted method: http://tinyurl.com/j3eljw9. So what I'm trying to do is create a temporary file, read my "db-file" with lines of text, and push all lines of text except the one with the specific index. I call the method with Todo.new.delete(ARGV[1]). What happens is the whole file gets erased instead of the particular line, and "012" gets stored i
[18:48:54] Devalo: n the file. I feel like I'm close, but I'm not sure how to solve this. Any pointers?
[18:50:42] moeabdol1: has joined #ruby
[18:51:25] crime: i think index, l should be l, index
[18:51:31] kknight: has joined #ruby
[18:51:35] kirillzh: has joined #ruby
[18:51:59] Ruby_Rocks_007: has joined #ruby
[18:52:45] kknight: has joined #ruby
[18:52:50] msisk: has joined #ruby
[18:53:04] mikolalysenko: has left #ruby: ()
[18:53:10] chouhoulis: has joined #ruby
[18:55:21] Devalo: crime: I've tried that. Nothing happens when I switch them around.
[18:55:36] crime: well that is weird
[18:56:16] baweaver: marxarelli: That one I know, the reduce arity not as much. Just thinking of nested arrays in each type blocks for some reason.
[18:56:18] shadoi: has joined #ruby
[18:56:49] baweaver: though at that point just use length/size/count
[18:57:37] apeiros: Devalo: you're using .to_i on the wrong variable
[18:57:44] apeiros: additionally to what crime said
[18:57:44] idefine: has joined #ruby
[18:57:45] marxarelli: baweaver: yeah, true
[18:58:07] baweaver: not common I don't pass the iterator with it :)
[18:58:48] Ruby_Rocks_007: has joined #ruby
[19:00:35] Devalo: apeiros and crime: Thanks. That's perfect. I've been staring at this for too long.. lol. Thank you so much for your help.
[19:00:51] apeiros: Devalo: IMO readlines + delete_at is still easier ;-p
[19:00:53] crime: Devalo: <3
[19:02:19] jackjackdripper: has joined #ruby
[19:03:21] jackjackdripper: has joined #ruby
[19:03:34] mdw: has joined #ruby
[19:04:54] askhat: has joined #ruby
[19:05:01] jackjackdripper: has joined #ruby
[19:05:33] darkxploit: has joined #ruby
[19:06:26] firstdayonthejob: has joined #ruby
[19:06:42] yoongkang: has joined #ruby
[19:06:50] voteless: has joined #ruby
[19:07:24] jackjackdripper1: has joined #ruby
[19:08:12] jackjackdripper1: has joined #ruby
[19:09:02] kibogol: has left #ruby: ()
[19:09:46] roshanavand: has joined #ruby
[19:10:49] sankaber: has joined #ruby
[19:11:49] s2013: has joined #ruby
[19:13:09] roshanav_: has joined #ruby
[19:13:46] Jet4Fire: has joined #ruby
[19:13:48] dlitvak: has joined #ruby
[19:14:20] Felix444: has joined #ruby
[19:14:39] dmolina: has joined #ruby
[19:15:12] Ruby_Rocks_007: has joined #ruby
[19:15:30] diego2: has joined #ruby
[19:15:41] Coldblackice: has joined #ruby
[19:16:15] Dave321: has joined #ruby
[19:16:43] Dave321: In Ruby 1.8.7, is it possible to get the backtrace of a thread if you have an instance of the thread object?
[19:17:11] dangeranger: has joined #ruby
[19:17:52] evidex: has joined #ruby
[19:18:17] Zai00: has joined #ruby
[19:19:24] humd1ng3r: has joined #ruby
[19:19:33] eam: Dave321: you could raise it
[19:21:15] Eiam: has joined #ruby
[19:22:00] circ-user-6hGio: has joined #ruby
[19:22:06] william3: has joined #ruby
[19:22:17] baweaver: has joined #ruby
[19:23:01] mfb2: has joined #ruby
[19:23:51] Dave321: eam: true, but I don't want execution to halt on my thread, I want to figure out what's going on in the thread
[19:25:58] __butch__: has joined #ruby
[19:26:10] rsc___: has joined #ruby
[19:28:06] s2013: has joined #ruby
[19:28:24] symbol: has joined #ruby
[19:28:31] j0n3: has joined #ruby
[19:28:42] __butch__: has joined #ruby
[19:30:08] __butch__: has joined #ruby
[19:30:47] failshell: has joined #ruby
[19:31:20] Xeago: has joined #ruby
[19:31:34] ur5us: has joined #ruby
[19:31:52] ur5us: has joined #ruby
[19:32:38] solars: has joined #ruby
[19:33:59] selfadhe_: has joined #ruby
[19:34:37] apeiros: Dave321: an object does not have a backtrace
[19:35:11] LoneHermit: has joined #ruby
[19:36:59] Dave321: apeiros: the thread instance has a backtrace in newer versions of Ruby, but the method doesn't exist in 1.8.7. I was checking if there was an alternate way to get this information
[19:37:39] wald0_: has joined #ruby
[19:38:20] apeiros: you could try to use set_trace_func and eval "Thread.current" via the binding
[19:38:35] davidboy: has joined #ruby
[19:38:55] apeiros: actually it'd be plain Thread.current. and only work if the callback is invoked in that thread
[19:39:11] davidboy: has left #ruby: ()
[19:42:11] PedramT: has joined #ruby
[19:47:27] s2013: has joined #ruby
[19:48:34] diego1: has joined #ruby
[19:49:41] babblebre: has joined #ruby
[19:49:57] diego1: has joined #ruby
[19:50:21] karapetyan: has joined #ruby
[19:51:05] s00pcan: has joined #ruby
[19:52:48] kirun: has joined #ruby
[19:52:51] blackmesa: has joined #ruby
[19:53:29] pawnbox: has joined #ruby
[19:53:59] chouhoulis: has joined #ruby
[19:54:39] johnzorn: has joined #ruby
[19:55:31] dopamean_: has joined #ruby
[19:55:37] mic_e: has joined #ruby
[19:56:10] sepp2k: has joined #ruby
[19:56:25] easyecho: has joined #ruby
[19:57:13] anisha: has joined #ruby
[19:59:28] Kallis: has joined #ruby
[19:59:31] johnzorn: has joined #ruby
[20:00:46] johnzorn: has joined #ruby
[20:01:43] johnzorn: has joined #ruby
[20:02:19] armyriad: has joined #ruby
[20:02:23] RegulationD: has joined #ruby
[20:03:34] ss_much: has joined #ruby
[20:05:04] askhat_: has joined #ruby
[20:07:17] yoongkang: has joined #ruby
[20:07:49] moeabdol: has joined #ruby
[20:10:07] arlek: has joined #ruby
[20:10:54] bluOxigen_: has joined #ruby
[20:16:13] PedramT: has joined #ruby
[20:16:53] ta: has joined #ruby
[20:17:09] Xeago: has joined #ruby
[20:18:53] diegoviola: has joined #ruby
[20:19:04] shredding: has joined #ruby
[20:21:21] s00pcan: has joined #ruby
[20:23:07] s00pcan: has joined #ruby
[20:23:45] s00pcan: has joined #ruby
[20:25:02] william3: has joined #ruby
[20:27:47] idefine: has joined #ruby
[20:27:56] chouhoulis: has joined #ruby
[20:28:00] idefine: has joined #ruby
[20:31:15] akem: has joined #ruby
[20:31:42] stannard: has joined #ruby
[20:32:21] mary5030: has joined #ruby
[20:32:46] skweek: has joined #ruby
[20:34:55] tomchapin: has joined #ruby
[20:36:58] idefine: has joined #ruby
[20:36:59] zeroDivisible: has joined #ruby
[20:37:47] dmitch: has joined #ruby
[20:38:07] tvw: has joined #ruby
[20:39:20] mfb2: has joined #ruby
[20:40:53] chris2: has joined #ruby
[20:42:04] idefine: has joined #ruby
[20:42:56] yfeldblum: has joined #ruby
[20:44:52] yqt: has joined #ruby
[20:45:25] johnnyt: has joined #ruby
[20:46:17] krobzaur_: has joined #ruby
[20:46:58] floatingpoint: why does ruby have elsif and not "elseif?" did the creators of ruby not know how to spell or something?
[20:47:40] PedramT: has joined #ruby
[20:48:07] crime: it just does
[20:48:30] tomchapin: has joined #ruby
[20:48:31] idefine: has joined #ruby
[20:48:38] centrx: It's shorter
[20:48:48] floatingpoint: why not ef then
[20:49:28] centrx: Still retains enough letters to be meaningful
[20:49:36] dopamean_: has joined #ruby
[20:49:37] floatingpoint: and elif doesn;t
[20:49:39] centrx: Also Perl uses elsif
[20:49:54] floatingpoint: and we all know how much of a disaster perl is
[20:49:57] djellemah_: has joined #ruby
[20:50:32] centrx: elsif vs elif is not a big deal
[20:50:45] floatingpoint: exactly because both are incorrect
[20:50:45] centrx: You can use "else if" anyway
[20:50:57] floatingpoint: elseif is the correct answer
[20:51:01] floatingpoint: so, go change ruby
[20:51:08] pushcx: floatingpoint: Can't you pick a fight about something interesting instead?
[20:51:44] Cohedrin: has joined #ruby
[20:52:00] floatingpoint: just another thing to dislike about ruby. add it to the list
[20:52:41] adaedra: if you're just here to explain us why ruby is such a terrible language, you can leave now.
[20:53:10] adaedra: go do some PHP or something.
[20:53:15] acidrainfall: doesn't bash use elsif too?
[20:53:35] cdg: has joined #ruby
[20:53:44] PedramT_: has joined #ruby
[20:53:46] x77686d: has joined #ruby
[20:54:06] floatingpoint: php and bash are also terrible
[20:54:23] pawnbox: has joined #ruby
[20:54:27] floatingpoint: bash is, quite possibly, the worst
[20:54:41] adaedra: do you have anything interesting to discuss or are you here just for the troll?
[20:54:48] baweaver: has joined #ruby
[20:55:09] devFrederick: has joined #ruby
[20:55:24] shevy: did he not like say the same thing 2 weeks ago already
[20:55:29] shevy: he is stuck in a loop {}
[20:55:48] crime: >perl >disaster
[20:56:00] celly: has joined #ruby
[20:56:17] crime: still around, still new releases, still thousands of users, still super fast, still leading regex implementation, still new ideas (perl6)
[20:56:32] crime: perl is literally the farthest language from disaster I can possibly think of
[20:56:36] floatingpoint: i found some perl in my codebase the other day
[20:56:36] acidrainfall: Why do people hate on other languages?
[20:56:47] Sou|cutter: because it's easier than writing code
[20:56:48] adaedra: because they have nothing better to do.
[20:56:50] baweaver: has joined #ruby
[20:56:51] floatingpoint: i immediately deleted it and scolded the person who wrote it
[20:56:52] TomPeed: why do people hate on beer
[20:56:54] acidrainfall: Sou|cutter: valid
[20:57:01] SCHAAP137: has joined #ruby
[20:57:05] acidrainfall: TomPeed: because IPA isn't beer, it's fizzy weed water and it's awful.
[20:57:13] Radar: TomPeed: because it's bitter like your many exes
[20:57:23] ferr: has joined #ruby
[20:57:25] Radar: Too harsh?
[20:57:26] TomPeed: Radar that's the truth
[20:57:45] crime: floatingpoint: what company are you with?
[20:57:47] shevy: I found that beer is not making programming easier :(
[20:58:01] floatingpoint: floatingpoint.inc
[20:58:11] crime: shevy: try to reproduce the bug by drinking more
[20:58:19] crime: floatingpoint: thats what I thought.
[20:58:41] adaedra: shevy: that's because you didn't hit ballmer peak.
[20:59:05] kirillzh: has joined #ruby
[20:59:54] ElFerna: has joined #ruby
[21:00:25] TomPeed: https://xkcd.com/323/
[21:00:32] william3: has joined #ruby
[21:00:49] treehug88: has joined #ruby
[21:01:11] bauruine: has joined #ruby
[21:01:17] Infra-Red: has joined #ruby
[21:01:38] acidrainfall: So, to bring the topic back
[21:01:48] acidrainfall: I know ruby isn't a scripting language per se, which is hard for me
[21:02:15] acidrainfall: But I'm trying to learn it by applying my present needs
[21:02:16] hahuang61: has joined #ruby
[21:03:01] acidrainfall: So I'm writing a script that kicks off a cluster restart for elasticsearch. I took an existing script that was written for ES 1.x and updated it for 2.x, added a bunch of validation it didn't have, and now I'm adding in some arrays of hostnames and want to offer a selection.
[21:03:24] acidrainfall: So script would run, say "Which cluster?", and you'd get 1, 2, 3 (for example), and once you've selected which one you want, the script will restart that cluster.
[21:03:39] chris2: has joined #ruby
[21:04:00] pushcx: Sounds like a great use for Ruby.
[21:04:07] acidrainfall: It's going really well so far.
[21:04:14] urbanmonk: has joined #ruby
[21:04:17] acidrainfall: The script itself works really well, but without a cluster selection option.
[21:04:48] acidrainfall: How would you do it? I want something like `answer = gets; cluster = ##{answer} ?
[21:04:49] pushcx: Sounds like you want to check ARGV or use `gets`
[21:04:51] acidrainfall: or something like that?
[21:04:55] acidrainfall: gets is perfectly fine
[21:05:12] acidrainfall: It's how to assign the array properly
[21:05:29] pushcx: cluster = gets.chomp.to_i
[21:06:15] acidrainfall: hold on let me get you a code example
[21:06:35] pdoherty: has joined #ruby
[21:07:04] hightower3: Hey, I have a Ruby source file with documentation in comments, using notation like @param, @result, @override etc. Which markup library/language is that?
[21:07:52] adaedra: yard, probably
[21:08:03] celly: has joined #ruby
[21:08:28] acidrainfall: http://fpaste.org/320478/55052104/
[21:08:32] yoongkang: has joined #ruby
[21:08:53] acidrainfall: So, there are 3 arrays, and I want a numeric answer to result in the variable `cluster` getting the value of one of the 3 arrays, based on user selection.
[21:08:56] acidrainfall: Am I making sense? :(
[21:09:02] acidrainfall: This is harder to describe than I figured.
[21:09:07] hightower3: adaedra, that's right, thanks
[21:10:41] crime: acidrainfall: when you say 'the value of one of the 3 arrays' do you mean a single element from one of the arrays or one of the arrays as a whole?
[21:10:50] acidrainfall: crime: the entire array.
[21:10:59] acidrainfall: You know what, I got it.
[21:11:03] acidrainfall: Does ruby have `case` ?
[21:11:09] acidrainfall: that's what I need.
[21:11:11] crime: case some_condition
[21:11:15] adaedra: ?cheatseat
[21:11:15] ruby[bot]: adaedra: I don't know anything about cheatseat
[21:11:17] idefine: has joined #ruby
[21:11:19] ruby[bot]: adaedra: I don't know anything about cheatset
[21:11:20] acidrainfall: I was looking for a stupid one-liner when there probably wasn't one.
[21:11:23] acidrainfall: cheatseat? hah
[21:11:28] adaedra: grah, how do you write that
[21:11:36] ruby[bot]: acidrainfall: I don't know anything about cheatsheet
[21:11:47] crime: ?skynet_plans
[21:11:47] adaedra: ah, we don't have that?
[21:11:47] ruby[bot]: crime: I don't know anything about skynet_plans
[21:11:54] acidrainfall: Suuuuure you don't.
[21:11:58] adaedra: liar, ruby[bot].
[21:12:09] crime: ?three_laws
[21:12:09] ruby[bot]: crime: I don't know anything about three_laws
[21:12:25] crime: dangerous
[21:12:39] Ruby_Rocks_007: has joined #ruby
[21:12:57] BraddPitt: does anyone know of frameworks similar to this https://github.com/workshopper/workshopper but for building Ruby CLI tutorials?
[21:13:18] BraddPitt: something more robust than Thor or similar, like a full on framework aimed at making tutorials/running against a test suite
[21:13:52] Ox0dea: BraddPitt: Extract the relevant code from the Koans?
[21:13:53] crime: acidrainfall: all you gotta do is have an array list_of_clusters or whatever, with each element in that array being one of your lists of cluster occupants, than you can just say something like list_of_clusters[answer.to_i - 1]
[21:14:09] acidrainfall: crime: That would work too, good point.
[21:14:17] crime: of course
[21:14:24] acidrainfall: I'll see which one comes out cleaner
[21:14:44] crime: I like to do things in one line, but yeah, whatever is best to u
[21:14:57] BraddPitt: Ox0dea I meant a framework for building my own
[21:15:02] BraddPitt: if that makes sense
[21:15:51] crime: BraddPitt: you could use Highline for CLI, whatever you want for testing, and build your thing
[21:17:08] BraddPitt: thanks crime, looks like I'll build my own
[21:17:23] crime: it'll come out great :)
[21:18:48] shadoi: has joined #ruby
[21:18:58] yqfvwal: has joined #ruby
[21:19:01] baweaver: has joined #ruby
[21:19:03] BraddPitt: followup, does anyone know of something similar that uses (n)curses?
[21:19:08] s2013: has joined #ruby
[21:19:09] BraddPitt: or is that asking for a whole world of trouble?
[21:19:34] crime: a gem, or an application?
[21:19:58] crime: dispel is a gem that is supposed to cure curses, mostly complete but not maintained much any more
[21:20:07] crime: ruco text editor is built with it
[21:20:10] BraddPitt: i'll forego it for now
[21:20:42] acidrainfall: So if I did this: http://fpaste.org/320480/45505283/
[21:20:56] acidrainfall: At the `else`, how can I force it to go do a gets again?
[21:20:58] idefine: has joined #ruby
[21:21:09] acidrainfall: If they don't put in 1, 2, or 3, I want it to say 'Nope, select again.''
[21:21:22] crime: acidrainfall: put cluster_select
[21:21:26] crime: where else is
[21:21:30] crime: it can call itself
[21:21:50] acidrainfall: would that break the `elasticsearch_cluster = cluster_select()` ?
[21:21:53] crime: and at the beginning it should check to see if the string is one of the ones you want
[21:21:55] acidrainfall: That was my first though.
[21:22:17] synthroid: has joined #ruby
[21:22:19] claw: hey guys ? "<foo:attr name="size" value="1929927113" />" how to get the value of value with nokogiri
[21:22:23] rickmasta: has joined #ruby
[21:22:25] crime: no, that just aliases elasticsearch_cluster to your method here, it can still call itself
[21:22:40] acidrainfall: `def cluster_select` is a method?
[21:22:45] acidrainfall: well, cluster_select()?
[21:22:51] acidrainfall: I was wondering what the right term for this was.
[21:23:15] karapetyan: has joined #ruby
[21:23:19] LoneHerm_: has joined #ruby
[21:23:21] idefine_: has joined #ruby
[21:23:57] crime: what i was getting at before though is that if you write it this way, when you want to add more clusters, they're hardcoded into this in a sense, whereas if you had an array of them, all you'd have to do is add to that array and pick an index
[21:24:23] crime: like if you had a list_of_clusters array, that array could be thousands of objects long
[21:24:34] crime: and you would still only need a couple lines of code to do it
[21:24:52] crime: but doing it this way, if you had a thousand objects to check for, that's basically a thousand or more lines you have to go write
[21:25:07] claw: got it : x.xpath('newznab:attr[@name="size"]').attr('value').text
[21:25:08] SCHAAP137: has joined #ruby
[21:25:23] JStoker: has joined #ruby
[21:25:24] EvilJStoker: has joined #ruby
[21:25:48] acidrainfall: crime: you're right.
[21:26:27] acidrainfall: so list_of_clusters [ [ 'server1'. 'server2',], ['server1-stg', 'server2-stg'] ] ?
[21:26:42] acidrainfall: I can do that.
[21:26:46] crime: right again
[21:27:59] chris2: has joined #ruby
[21:29:25] crime: acidrainfall: to clarify though, I'd still have your other lists, apollo, engine, enginestg, etc. put those lists in your list_of_clusters by name, so you would know which sub array is which. so list_of_clusters[apollo, engine, enginestg]
[21:29:31] crime: that way they're still there
[21:30:40] acidrainfall: comments are sufficient?
[21:30:53] acidrainfall: http://fpaste.org/320482/05345014/
[21:31:18] roddutra: has joined #ruby
[21:34:27] crime: acidrainfall: http://fpaste.org/320483/05364614/
[21:34:45] askhat: has joined #ruby
[21:35:39] crime: at the end, I forgot this, but it would be 'cluster = pick_cluster'
[21:35:53] shazaum: has joined #ruby
[21:36:03] crime: that would call the method until the user puts in a good answer, and set cluster to the result
[21:36:39] freerobby: has joined #ruby
[21:37:24] evidex: has joined #ruby
[21:37:37] stevemackinnon: has joined #ruby
[21:38:06] Xeago: has joined #ruby
[21:38:19] Xeago: has joined #ruby
[21:38:45] dudedudeman: has joined #ruby
[21:39:08] EvilJStoker: has joined #ruby
[21:39:09] JStoker: has joined #ruby
[21:39:12] chouhoulis: has joined #ruby
[21:39:29] sneakerhax: has joined #ruby
[21:40:07] intrigueD: has joined #ruby
[21:40:42] acidrainfall: Ohhhh I see, I didn't know that was possible. That's what I wanted to do, an array of variables. Thanks.
[21:40:44] acidrainfall: oh he's gone :(
[21:43:29] blackmesa: has joined #ruby
[21:43:51] circ-user-6hGio: has joined #ruby
[21:44:25] jgt4: has joined #ruby
[21:45:36] nunchuck: has joined #ruby
[21:47:08] epistrephein: has joined #ruby
[21:47:17] ElFerna: has joined #ruby
[21:48:28] sucks_: has joined #ruby
[21:48:59] celly: has joined #ruby
[21:51:29] karapetyan: has joined #ruby
[21:51:50] wireddude: has left #ruby: ()
[21:52:17] nullwarp: for some reason my gnu social instance is not using https loading all the js/css
[21:54:02] jottr: has joined #ruby
[21:55:21] BraddPitt: heh, regarding my ruby CLI/curses interface builder, I just found this trending on github: https://github.com/peter-murach/tty-prompt
[21:55:25] BraddPitt: looks like exactly what I need
[21:58:04] floror: has joined #ruby
[21:58:17] BraddPitt: if it works, it works
[21:58:19] BraddPitt: thats all i need
[21:58:21] shadoi: has joined #ruby
[21:58:32] acidrainfall: It's just such a pain to use.
[21:58:51] william3: has joined #ruby
[21:59:49] freerobby: has joined #ruby
[22:01:39] AlexJakeGreen: has joined #ruby
[22:02:12] shevy: BraddPitt how do you use curses there?
[22:03:08] shevy: cool link
[22:03:15] shevy: I shall use that!
[22:03:26] acidrainfall: http://fpaste.org/320496/14550553/
[22:03:30] acidrainfall: So ruby is complaining about this
[22:03:41] acidrainfall: ./test.rb:42:in `pick_cluster': undefined local variable or method `list_of_clusters' for main:Object (NameError)
[22:03:41] acidrainfall: from ./test.rb:51:in `<main>'
[22:03:51] blackmesa: has joined #ruby
[22:03:51] acidrainfall: oh the lines probably don't match up
[22:04:01] acidrainfall: subtract 2 lines
[22:04:09] acidrainfall: line 1 in the paste is line 3 in the script
[22:05:14] segfalt``: has joined #ruby
[22:06:05] BraddPitt: oops, sorry
[22:07:24] DoubleMalt: has joined #ruby
[22:08:48] TinkerTyper: has joined #ruby
[22:09:26] shevy: acidrainfall is this method not known?
[22:09:32] idefine: has joined #ruby
[22:09:39] acidrainfall: the method seems fine
[22:09:42] acidrainfall: I figured it out.
[22:09:52] johnnyt: has joined #ruby
[22:09:55] acidrainfall: It didn't have a definition for list_of_clusters because I wasn't passing it in.
[22:10:04] acidrainfall: Things I have to get used to - scopes are very strict in ruby
[22:10:20] yqfvwal: Why is def def = 42 not an error?
[22:11:10] Mon_Ouie: It is though
[22:11:13] Mon_Ouie: >> def def = 42
[22:11:15] ruby[bot]: Mon_Ouie: # => /tmp/execpad-23654122b336/source-23654122b336:2: syntax error, unexpected '=', expecting ';' or '\n' ...check link for more (https://eval.in/515926)
[22:11:45] xapak: has joined #ruby
[22:11:50] yqfvwal: Mon_Ouie, ok that is weird, in irb it does not say anything
[22:11:51] mondok: has joined #ruby
[22:12:31] pushcx: yqfvwal: in irb it's waiting for the 'end' to throw the error
[22:12:34] Mon_Ouie: IRB uses a simpler tokenizer to know if the input is terminated, you probably to enter 'end' once or twice for it to detect it
[22:12:53] Mon_Ouie: probably need to*
[22:13:00] yqfvwal: Mon_Ouie, ah I see, thanks
[22:13:02] xapak: Is there any relatively reliable implementation of a pragmatic ???Dir[path].empty????? So far I???m simply listing entries and not counting the ???.??? and ???..???, but I???m not sure if that???s the proper way. :(
[22:13:24] idefine: has joined #ruby
[22:13:47] acidrainfall: Awwwwwwwwwwwwwwwwwwww yeah
[22:13:50] acidrainfall: This is getting FUN
[22:13:56] acidrainfall: I just used an until loop
[22:15:12] eGGsha: has joined #ruby
[22:15:47] yqfvwal: In the book "Well-Grounded Rubyist" it is written that one could potentially name a method def. How would one achieve that?
[22:16:04] acidrainfall: "it is written that"
[22:16:08] acidrainfall: you make it sound like a religious text
[22:16:18] Ox0dea: >> def def; 42; end; send :def # yqfvwal
[22:16:19] ruby[bot]: Ox0dea: # => 42 (https://eval.in/515927)
[22:16:25] TinkerTyper: has joined #ruby
[22:16:33] Ox0dea: xapak: You could use Dir.rmdir and exceptions as control flow. :P
[22:17:30] yqfvwal: acidrainfall, I am sorry, english is not my native language. How would I word that better?
[22:17:38] yqfvwal: Ox0dea, cool thanks
[22:17:51] shevy: xapak I think . and .. may be dropped in future releases of ruby, there is some discussion on the bug tracker
[22:17:58] acidrainfall: yqfvwal: Oh, there was nothing wrong with it. I just found it amusing.
[22:18:05] Ox0dea: yqfvwal: In general, you can name a method whatever you like; it's calling it that becomes tricky if you've given it a name that conflicts with a keyword or the like.
[22:18:14] acidrainfall: yqfvwal: Your question was very well worded.
[22:18:49] xapak: Ox0dea, :iseewhatyoudidthere:
[22:19:03] floatingpoint: anyone have any idea why this block is expecting another "end" in it? http://hastebin.com/ipetawuruz.rb
[22:19:14] idefine: has joined #ruby
[22:19:27] xapak: shevy, yeah, there should be a pragmatic approach, or another method: real_empty?, so purists don???t start hating change on entries?
[22:19:55] Ox0dea: They won't be dropped; there's discussion of an option to ignore them.
[22:20:19] finisherr: has joined #ruby
[22:20:20] xapak: Much, much better. :D
[22:20:56] Ox0dea: floatingpoint: Ruby spells it `elsif`.
[22:21:51] floatingpoint: so you're telling me i have to fork ruby to get the correct syntax?
[22:22:10] floatingpoint: elseif isn't even a word
[22:22:33] luvenfu: has joined #ruby
[22:22:36] shevy: floatingpoint stop
[22:22:44] Ox0dea: Alternatively, keep going.
[22:22:46] nofxx: has joined #ruby
[22:22:46] nofxx: has joined #ruby
[22:23:22] shevy: nah adaedra already got his eyes on him
[22:23:27] shevy: <floatingpoint> bash is, quite possibly, the worst
[22:23:27] shevy: <adaedra> do you have anything interesting to discuss or are you here just for the troll?
[22:23:49] last_staff: has joined #ruby
[22:24:00] shevy: it'll be 50 more lines before a ban ... do you really wanna go through that Ox0dea :(
[22:24:18] circ-user-6hGio: has joined #ruby
[22:24:40] shevy: what was the dude with the beard again...
[22:25:11] dcunit3d: has joined #ruby
[22:25:21] idefine: has joined #ruby
[22:26:24] skweek: has joined #ruby
[22:27:54] roddutra: has joined #ruby
[22:28:46] rattatmatt: has joined #ruby
[22:29:13] roddutra: has joined #ruby
[22:29:14] luvenfu: has left #ruby: ()
[22:29:58] djbkd: has joined #ruby
[22:30:13] djbkd: has joined #ruby
[22:32:20] jgpawletko: has joined #ruby
[22:33:29] haylon: has left #ruby: ("WeeChat 1.3")
[22:33:34] djbkd: has joined #ruby
[22:33:45] al2o3-cr: has joined #ruby
[22:34:31] idefine: has joined #ruby
[22:34:54] askhat: has joined #ruby
[22:34:54] djbkd: has joined #ruby
[22:35:10] Ruby_Rocks_007: has joined #ruby
[22:35:51] x77686d: has joined #ruby
[22:36:50] acidrainfall: I thought `else if` does work?
[22:37:09] xapak: has left #ruby: ()
[22:37:14] adaedra: if you use else if, you have to close twice, I guess.
[22:37:23] acidrainfall: elsif doesn't bother me anyway
[22:37:25] adaedra: Not at all.
[22:37:41] acidrainfall: you're right it's not odd
[22:37:44] adaedra: else keeps the first if "open", and your second if opens a new one.
[22:37:55] acidrainfall: it's else { if (thing) { } }
[22:38:08] acidrainfall: yeah that makes sense.
[22:38:14] peterevjan: has joined #ruby
[22:38:24] azure32: has joined #ruby
[22:38:41] adaedra: C++ "else if" is in fact application of the optional {} on 1-statements clauses on if/else
[22:39:39] mwlang: has joined #ruby
[22:39:57] chouhoulis: has joined #ruby
[22:40:26] acidrainfall: In English that means...? :(
[22:41:51] shevy: you must have written that with a french accent adaedra :)
[22:42:15] adaedra: `if (a) {} else if (b) {}` is the same as `if (a) {} else { if (b) {} }`
[22:42:18] Ox0dea: acidrainfall: There's really no such thing as "else if" in language where it's spelled that way.
[22:42:18] dopie: has joined #ruby
[22:42:23] Ox0dea: *languages
[22:42:37] Ox0dea: It's just an `else` with an `if` attached.
[22:42:52] shevy: ok acidrainfall now I also don't know what that means
[22:43:01] adaedra: shevy: I d??nt s??e wh??t yo?? m??n.
[22:43:02] yoongkang: has joined #ruby
[22:43:07] zenlot1: has joined #ruby
[22:43:21] skweek: has joined #ruby
[22:43:26] dopie: has joined #ruby
[22:43:28] shevy: the () caught me off-guard, like a sneaky lisp attack
[22:44:13] pawnbox: has joined #ruby
[22:44:14] KillerFox: has joined #ruby
[22:44:24] Ox0dea: adaedra: `else if` is never the right call in Ruby.
[22:44:49] mwlang: has joined #ruby
[22:45:02] adaedra: Ox0dea: I know. I was just explaining C++ way of doing it, as someone mentioned it earlier.
[22:45:20] Ox0dea: Right, but "the C++ way" can't be grafted onto Ruby.
[22:45:23] shevy: matz does not like C++
[22:45:44] Ox0dea: You could make an `else if` syntactically valid, but you'd be in for a surprise if you tried to use another one right after.
[22:46:42] bhaak: has joined #ruby
[22:47:08] havenwood: shevy: "And after two years of C++ programming, it still surprised me."
[22:47:32] shevy: my own code surprises me still too!
[22:47:37] adaedra: tbf, after so many years, Ruby still surprises me.
[22:47:41] adaedra: sometimes thanks to Ox0dea.
[22:47:41] havenwood: shevy: It fails the principle of least Matz surprise.
[22:47:56] shevy: Ox0dea's code is deliberately scary
[22:48:23] shevy: it's like you are in university and you learn all about the fancy stuff. then you go to work and notice that work is totally different from what you learned
[22:49:15] adaedra: Seems you can totally use a language without mastering every aspect of it.
[22:49:32] acidrainfall: adaedra: I see that you've excluded the circumflex
[22:50:12] adaedra: acidrainfall: it's the hardest one to type on my keyboard.
[22:50:41] acidrainfall: Ox0dea: adaedra: shevy: So if (condition) { action } else { if (condition) { action } } is the expanded else if logic
[22:50:54] acidrainfall: adaedra: aren't they phasing the circumflex out?
[22:51:04] acidrainfall: I saw something about that, a few french/belgian friends of mine were freaking out about it
[22:51:23] acidrainfall: http://www.npr.org/sections/thetwo-way/2016/02/05/465699842/gone-mot-the-french-uproar-over-removing-some-circumflex-accents
[22:51:25] acidrainfall: that's what I saw.
[22:52:02] adaedra: it's a 25 years old reform which concern only o and i letters iirc, and only if not making the sense of the word change. Furthermore, old spellings are still valid.
[22:52:33] acidrainfall: The actual construction of French is so much more controlled and complicated.
[22:52:46] acidrainfall: English is very laissez faire.
[22:52:47] hahuang61: has joined #ruby
[22:53:12] adaedra: If you are interested in the discussion, I invite you to continue in #ruby-offtopic
[22:53:15] idefine: has joined #ruby
[22:53:28] acidrainfall: Naw I'm done. :)
[22:53:44] acidrainfall: Thanks for the help with my Ruby issues, my script is working splendidly.
[22:54:05] shevy: <adaedra> Seems you can totally use a language without mastering every aspect of it.
[22:54:08] adaedra: correction then: it's u and i.
[22:54:08] shevy: adaedra yeah!
[22:54:09] rbennacer: has joined #ruby
[22:54:24] shevy: I use a mini-ruby subset of ruby
[22:54:35] symbol: has joined #ruby
[22:54:41] shevy: -> is BANNED
[22:54:47] shevy: lonely operator is BANNED
[22:55:00] djbkd: has joined #ruby
[22:55:16] adaedra: You mean, you're using ruby 1.8 ?
[22:55:29] shevy: I would if I could!
[22:55:44] shevy: but it is a fossil version now :(
[22:55:45] adaedra: ACTION shrugs
[22:56:05] shevy: I'd like to try 1.0 but it does not compile for me
[22:58:16] tomchapin: has joined #ruby
[22:59:25] Ox0dea: shevy: Even with charliesome's patch?
[22:59:43] shevy: I don't remember
[22:59:46] Ox0dea: https://github.com/charliesome/historical-rubies
[22:59:51] CihanKaygusuz: has joined #ruby
[23:00:25] benlieb: has joined #ruby
[23:01:10] idefine: has joined #ruby
[23:01:52] Ox0dea: acidrainfall: This should help: https://eval.in/515942
[23:02:04] Ox0dea: Those are equivalent.
[23:02:04] solocshaw: has joined #ruby
[23:02:31] Ox0dea: `else if` just takes advantage of the fact that an `else` binds to the nearest "active" `if`.
[23:02:38] idefine: has joined #ruby
[23:04:44] ss_much: has joined #ruby
[23:04:51] pawnbox: has joined #ruby
[23:06:32] nettoweb: has joined #ruby
[23:06:55] Cihan: has joined #ruby
[23:06:59] dfockler: has joined #ruby
[23:07:23] Carella: has joined #ruby
[23:10:11] carella__: has joined #ruby
[23:10:12] IrishGringo: has joined #ruby
[23:10:37] djbkd: has joined #ruby
[23:11:23] dlitvak: has joined #ruby
[23:11:24] LoneHerm_: has joined #ruby
[23:11:29] idefine: has joined #ruby
[23:11:35] shadoi: has joined #ruby
[23:12:06] tomchapin: has joined #ruby
[23:13:37] yfeldblum: has joined #ruby
[23:14:15] yfeldblum: has joined #ruby
[23:15:16] Xeago: has joined #ruby
[23:17:08] rakm: has joined #ruby
[23:17:36] TinkerTy_: has joined #ruby
[23:22:43] arthropododo: has joined #ruby
[23:25:18] TinkerTyper: has joined #ruby
[23:27:27] pestle: has joined #ruby
[23:28:04] TomPeed: has joined #ruby
[23:28:53] ivan_livecoding: has joined #ruby
[23:28:55] CloCkWeRX: has joined #ruby
[23:29:06] B1n4r10: has joined #ruby
[23:29:53] djbkd: has joined #ruby
[23:30:35] elifoster: has joined #ruby
[23:30:56] rattatmatt: has joined #ruby
[23:32:04] askhat: has joined #ruby
[23:32:10] qpls: has joined #ruby
[23:32:33] TinkerTyper: has joined #ruby
[23:32:33] seitensei: has joined #ruby
[23:33:31] seitensei: has joined #ruby
[23:34:09] iamnix: has joined #ruby
[23:34:54] pawnbox: has joined #ruby
[23:35:03] iamnix: has joined #ruby
[23:35:07] idefine: has joined #ruby
[23:35:34] jackjackdripper: has joined #ruby
[23:35:39] Nanuq: has joined #ruby
[23:35:56] IrishGringo: has joined #ruby
[23:36:11] duckpuppy: has joined #ruby
[23:36:15] jackjackdripper: has joined #ruby
[23:37:10] jackjackdripper: has joined #ruby
[23:39:17] weemsledeux: has joined #ruby
[23:40:15] DmitryBochkarev: has joined #ruby
[23:41:58] chouhoulis: has joined #ruby
[23:43:00] kirillzh: has joined #ruby
[23:43:42] jackjackdripper: has joined #ruby
[23:45:01] revvy: has joined #ruby
[23:47:59] Ropeney: has joined #ruby
[23:49:36] Nanuq: has joined #ruby
[23:51:07] davedev24: has joined #ruby
[23:55:11] dlitvak: has joined #ruby
[23:55:16] gatman: has joined #ruby
[23:55:34] Ox0dea: How best to (de)serialize a NaN without throwing away its payload?
[23:56:31] havenwood: Ox0dea: NaN has a payload?
[23:56:36] Ox0dea: havenwood: Certainly.
[23:56:50] Ox0dea: In IEEE 754, anyway.
[23:57:30] Ox0dea: havenwood: https://eval.in/514889
[23:58:08] havenwood: Ox0dea: [BUG] Segmentation fault at 0x00000000000000
[23:58:20] Ox0dea: havenwood: You'll need to change some 8s to 16s. :P