« Back to channel list

#ruby - 27 December 2017

« Back 1 day Forward 1 day »
[00:01:08] cdg: has joined #ruby
[00:04:44] alfiemax: has joined #ruby
[00:05:27] milardovich: has joined #ruby
[00:09:17] my123: has joined #ruby
[00:09:17] my123: has joined #ruby
[00:15:27] milardovich: has joined #ruby
[00:25:52] mtkd: has joined #ruby
[00:26:25] zautomata1: has joined #ruby
[00:33:23] postmodern: has joined #ruby
[00:39:27] cschneid_: has joined #ruby
[00:45:02] MrBusiness: has joined #ruby
[00:45:21] milardov_: has joined #ruby
[00:45:58] zwliew: has joined #ruby
[00:49:05] zautomata2: has joined #ruby
[00:50:21] ramfjord: has joined #ruby
[00:53:27] zautomata3: has joined #ruby
[01:02:39] cdg: has joined #ruby
[01:10:54] marius: has joined #ruby
[01:13:49] ledestin: has joined #ruby
[01:20:55] meesles: has joined #ruby
[01:22:28] zautomata4: has joined #ruby
[01:28:26] Vapez: has joined #ruby
[01:30:43] Vapez: I am trying to remove a snapshot with https://www.vmware.com/support/developer/vc-sdk/visdk41pubs/ApiReference/vim.vm.Snapshot.html#remove - code: vm.RemoveSnapshot_Task(removeChildren: TRUE) and it says undefined method `RemoveSnapshot_Task'
[01:31:32] numbdewd: yeah, thats the spirit! hack those fkers!
[01:32:25] Vapez: what do you mean?
[01:35:28] numbdewd: Who? Me..??! ..nothing..why??
[01:35:57] jeffreylevesque: has joined #ruby
[01:42:53] johnzorn: has joined #ruby
[01:55:01] dmgk: has left #ruby: ()
[01:56:49] s3nd1v0g1us: has joined #ruby
[01:57:17] s3nd1v0g1us: has joined #ruby
[02:03:22] zautomata4: has joined #ruby
[02:15:17] zautomata: has joined #ruby
[02:15:45] meinside: has joined #ruby
[02:21:01] zautomata1: has joined #ruby
[02:21:46] hightower2: has joined #ruby
[02:26:30] zautomata2: has joined #ruby
[02:30:25] mtkd: has joined #ruby
[02:31:33] gizmore|2: has joined #ruby
[02:41:02] zautomata3: has joined #ruby
[02:45:41] alfiemax: has joined #ruby
[02:50:32] ramfjord: has joined #ruby
[02:51:22] cadillac_: has joined #ruby
[02:56:51] nso95: has joined #ruby
[02:56:57] cdg: has joined #ruby
[03:00:05] nadir: has joined #ruby
[03:00:26] cadillac_: has joined #ruby
[03:03:54] chiggins: has left #ruby: ("WeeChat 1.7.1")
[03:15:20] alfiemax: has joined #ruby
[03:21:01] konsolebox: has joined #ruby
[03:26:32] Guest8: has joined #ruby
[03:28:55] alien_frog: has joined #ruby
[03:47:07] vichib: has joined #ruby
[03:51:55] alfiemax: has joined #ruby
[04:06:45] baweaver: ACTION wanders in
[04:10:56] gix: has joined #ruby
[04:13:11] baweaver: havenwood: they added the case equality option to predicates! :D
[04:17:34] KeyJoo: has joined #ruby
[04:19:27] christiandsg: has joined #ruby
[04:20:05] meesles: has joined #ruby
[04:24:13] webguynow: has joined #ruby
[04:26:16] baweaver: >> {case_eq: Benchmark.measure{100_000.times{a.none?(String)}}.real, regular: Benchmark.measure{100_000.times{a.none?{|v|v.is_a?(String)}}}.real}
[04:26:17] ruby[bot]: baweaver: # => uninitialized constant Benchmark (NameError) ...check link for more (https://eval.in/925724)
[04:26:56] baweaver: Ah, right, 2.5 isn't on there and benchmark doesn't autorequire
[04:27:18] baweaver: > Benchmark.measure{100_000.times{a.none?(String)}}.real # => 0.04654746095184237
[04:27:18] baweaver: > Benchmark.measure{100_000.times{a.none?{|v|v.is_a?(String)}}}.real # => 0.04917551507242024
[04:27:49] baweaver: Interesting that that's roughly the same speed, if not faster for case matching
[04:28:56] baweaver: If anyone else wants to know what I'm talking about, this happened in 2.5.x: https://medium.com/@baweaver/new-in-enumerable-triple-equals-predicates-c1fcd0eabf6d
[04:28:58] baweaver: Which is awesome because I really wanted that one <3
[04:38:13] baweaver: havenwood: super interesting that the predicate method has a massive growth curve after about 3 million elements
[04:38:58] baweaver: At 300 million you get 1.8301783410133794 vs 0.05512196198105812
[04:39:29] baweaver: eam / apeiros / dminuoso : that may be fun to play with if you want to dig around on perf/allocation
[04:39:54] baweaver: Few patch hack variant tests and benchmarks - https://twitter.com/keystonelemur/status/945874311390400513
[04:40:17] baweaver: much past 300m and my mac gets mad at me and runs out of ram because math is a thing
[04:46:18] konsolebox: has joined #ruby
[04:50:46] ramfjord: has joined #ruby
[04:52:37] zautomata4: has joined #ruby
[04:56:45] alfiemax: has joined #ruby
[05:02:25] Nahra: has joined #ruby
[05:03:37] meesles: has joined #ruby
[05:03:50] zautomata4: has joined #ruby
[05:05:17] abraham_: has joined #ruby
[05:09:43] marius: has joined #ruby
[05:15:52] zautomata: has joined #ruby
[05:19:26] zautomata1: has joined #ruby
[05:21:26] mihael_k33hl: has joined #ruby
[05:24:11] zautomata2: has joined #ruby
[05:24:27] christiandsg: has joined #ruby
[05:24:32] marius: has joined #ruby
[05:24:37] mihael_k33hl: What's the best unit test framework for ruby?
[05:27:51] pwnd_nsfw: mihael_k33hl, the one you're best familiar with
[05:27:57] pwnd_nsfw: RSpec is super nice
[05:28:07] pwnd_nsfw: and minitest is widely used
[05:28:46] mihael_k33hl: pwnd_nsfw: i'm new to ruby and want to use the defacto unit testing for ruby
[05:28:57] pwnd_nsfw: That'd probably be minitest then
[05:29:01] mihael_k33hl: pwnd_nsfw: I've read RSpec is used for integration testing?
[05:29:08] baweaver: welcome to Ruby, we have tons of options for everything
[05:29:14] pwnd_nsfw: RSpec can be used for all levels of testing
[05:29:22] baweaver: define integration testing
[05:29:40] baweaver: because those words are thrown around quite arbitrarily
[05:29:46] mihael_k33hl: pwnd_nsfw: thanks, I did some googling and I've read something about Test::Unit that comes bundled with Ruby, isn't that good?
[05:29:49] baweaver: unit, integration, acceptance
[05:30:08] pwnd_nsfw: Does it come bundled with ruby?
[05:30:17] mihael_k33hl: baweaver: Oh, uhhhm, integration testing for me is making sure that all parts of my program works as I intended
[05:30:26] pwnd_nsfw: that's pretty broad haha
[05:30:31] mihael_k33hl: baweaver: working together*
[05:31:08] mihael_k33hl: pwnd_nsfw: https://www.jetbrains.com/help/ruby/testing-frameworks.html, it says it comes bundled with Ruby
[05:31:21] pwnd_nsfw: ACTION shrugs
[05:31:41] baweaver: Looks like it's not in more recent versions
[05:32:08] baweaver: Try looking at v2.2+ and it's not there.
[05:32:30] mihael_k33hl: oh I see, anyway I'll take a look at minitest, did some googling but I'd also like to get it from people around here, thanks
[05:33:20] baweaver: 21>> require 'test/unit'; Test::Unit
[05:33:21] ruby[bot]: baweaver: # => Test::Unit ...check link for more (https://eval.in/925751)
[05:33:24] baweaver: 22>> require 'test/unit'; Test::Unit
[05:33:26] ruby[bot]: baweaver: # => Test::Unit (https://eval.in/925752)
[05:33:31] baweaver: 23>> require 'test/unit'; Test::Unit
[05:33:32] ruby[bot]: baweaver: # => Test::Unit (https://eval.in/925753)
[05:33:43] baweaver: Hm, docs are doing odd things then
[05:33:56] pwnd_nsfw: baweaver, what's your preference?
[05:34:03] baweaver: either that or it's packaged separately as a gem and eval.in has it installed
[05:34:22] baweaver: As to why, more support, more literature, more options
[05:34:34] pwnd_nsfw: Syntax is nice as well
[05:34:56] baweaver: Myron literally just finished a book on it as well
[05:34:57] baweaver: though the concepts mostly transfer over to Minitest
[05:35:14] baweaver: 99% of the time if I end up in a codebase at work somewhere it's RSpec as well which is a significant driving force
[05:35:56] jenrzzz: has joined #ruby
[05:35:56] jenrzzz: has joined #ruby
[05:38:56] baweaver: Now I'm sure that number changes as you get closer in proximity to Seattle or to a wild havenwood
[05:39:27] baweaver: anyways, off I go. Time to play more Pokemon and stop cheating on my "don't program for a week" deal I made myself.
[05:42:47] iamarun: has joined #ruby
[05:43:06] kn-928: has joined #ruby
[05:44:05] aupadhye: has joined #ruby
[05:44:30] aupadhye: has joined #ruby
[05:47:29] mihael_k33hl: what's the standard ruby directory hierarchy? different folders for spec and test/unit?
[05:51:32] nso95: has joined #ruby
[05:54:19] darkhanb: has joined #ruby
[05:55:38] marius: has joined #ruby
[05:55:48] nso95: has joined #ruby
[05:57:23] bkxd: has joined #ruby
[05:58:35] chmurifree: has joined #ruby
[06:01:19] nicesignal: has joined #ruby
[06:01:42] nkts: has joined #ruby
[06:06:46] Dimik: has joined #ruby
[06:09:20] ghormoon: has joined #ruby
[06:14:35] zautomata3: has joined #ruby
[06:22:22] marius: has joined #ruby
[06:23:30] jenrzzz: has joined #ruby
[06:23:31] jenrzzz: has joined #ruby
[06:27:11] cschneid_: has joined #ruby
[06:38:30] InfinityFye: has joined #ruby
[06:38:53] iamarun: has joined #ruby
[06:41:07] rippa: has joined #ruby
[06:43:01] zautomata4: has joined #ruby
[06:45:06] InfinityFye: has left #ruby: ("Leaving")
[06:48:02] al2o3-cr: has joined #ruby
[06:50:54] ramfjord: has joined #ruby
[07:01:23] rabajaj: has joined #ruby
[07:02:05] Rr4sT: has joined #ruby
[07:05:03] zautomata: has joined #ruby
[07:06:39] cschneid_: has joined #ruby
[07:09:43] zautomata1: has joined #ruby
[07:12:01] t0adst00l: has joined #ruby
[07:12:02] prometheus_falli: has joined #ruby
[07:14:57] zautomata2: has joined #ruby
[07:19:42] mihael_k33hl: Anyone using minitest? Where can I find the docs pertaining what other test I can use, I don't know the term but the ones like " assert_equal" etc.?
[07:21:12] mihael_k33hl: Oh, it's on ruby-doc, hehe
[07:21:22] zautomata4: has joined #ruby
[07:22:58] anisha: has joined #ruby
[07:25:22] zapata: has joined #ruby
[07:31:43] zautomata: has joined #ruby
[07:32:06] apeiros: has joined #ruby
[07:34:00] _aeris_: has joined #ruby
[07:43:28] zautomata1: has joined #ruby
[07:43:52] Ishido: has joined #ruby
[07:44:42] singalaut: has joined #ruby
[07:45:53] Puffball: has joined #ruby
[07:48:05] dminuoso: baweaver: What can I say. I can determine such problems at compile time!
[07:48:38] cschneid_: has joined #ruby
[07:49:04] Asher: has joined #ruby
[07:49:05] dminuoso: baweaver: But those numbers are a bit surprising.
[07:49:52] jnollette: has joined #ruby
[07:50:31] zautomata2: has joined #ruby
[07:50:37] ramfjord: has joined #ruby
[07:51:09] gix-: has joined #ruby
[07:51:24] dionysus69: has joined #ruby
[07:54:40] amatas: has joined #ruby
[07:55:11] redondos: has joined #ruby
[07:55:28] zautomata3: has joined #ruby
[08:01:48] t0adst00l: has joined #ruby
[08:02:41] stealth[]: has joined #ruby
[08:05:03] benjen: has joined #ruby
[08:05:26] singalaut: has left #ruby: ("nuhun")
[08:06:05] ur5us: has joined #ruby
[08:16:03] biberu: has joined #ruby
[08:19:05] ur5us: has joined #ruby
[08:19:13] mihael_k33hl: Using minitest I'm getting the error: uninitialized constant MiniTest::Test (NameError). I already added minitest in my Gemfile and run bundle
[08:19:17] christiandsg: has joined #ruby
[08:19:24] apeiros: my patch is in ruby!
[08:19:31] apeiros: it only took 9 years, lol
[08:19:36] apeiros: https://bugs.ruby-lang.org/issues/836
[08:20:18] kelseynz: has joined #ruby
[08:21:51] howdoi: has joined #ruby
[08:23:08] apeiros: mihael_k33hl: depending on how your code works, you still have to `require 'minitest'`
[08:29:10] cschneid_: has joined #ruby
[08:30:35] apeiros: baweaver: wow, your numbers go against expectations :-S
[08:43:16] marr: has joined #ruby
[08:49:51] adac: has joined #ruby
[08:51:19] jnollette: has joined #ruby
[08:51:36] s2013: has joined #ruby
[08:54:46] alex``: has joined #ruby
[08:58:41] heftig: has joined #ruby
[09:02:46] hanetzer: apeiros: nice, I felt the same when I got a patch into the linux kernel not too long ago :)
[09:02:59] apeiros: hanetzer: nice! I can imagine :D
[09:04:35] darkhanb: has joined #ruby
[09:04:36] apeiros: hanetzer: it was somewhat surprising, given that I wrote it 9y ago :D I almost missed it in the NEWS section.
[09:05:13] hanetzer: heh. my patch was fairly small and simple. just added support to another chip in a family
[09:06:05] hanetzer: was accepted by linus walleji[sp?] fairly quickly, and made it upstream pretty fast :)
[09:06:19] claudiuinberlin: has joined #ruby
[09:07:03] darkhanb_: has joined #ruby
[09:07:08] hanetzer: right now I'm working on something more ambitious: support for a whole new soc! :P
[09:07:40] mark_66: has joined #ruby
[09:07:49] cschneid_: has joined #ruby
[09:08:03] hanetzer: I've been working on the clock and reset generator driver, and a bit on the rtc (which I must say is the most asshole-ish piece of silicon I ever had the displeasure to lay eyes upon the datasheet of0
[09:10:26] apeiros: hanetzer: sounds interesting - #ruby-offtopic?
[09:10:41] hanetzer: #ruby-sleeping ;) later o/
[09:10:50] apeiros: well then, sleep tight! :)
[09:11:03] hanetzer: I'll prolly be on later today/tomorrow
[09:13:31] supergeek: has joined #ruby
[09:14:09] apeiros: ACTION thinks the color coding scheme of unicode's emoticon should include a "random" skin color modifier
[09:14:34] DoubleMalt: has joined #ruby
[09:19:34] supergeek: has joined #ruby
[09:21:24] christiandsg: has joined #ruby
[09:32:01] bkxd: has joined #ruby
[09:36:49] milardovich: has joined #ruby
[09:39:28] DmitryBochkarev: has joined #ruby
[09:41:02] iamarun: has joined #ruby
[09:42:27] iamarun: has joined #ruby
[09:43:24] cschneid_: has joined #ruby
[09:45:00] iamarun: has joined #ruby
[09:46:04] iamarun: has joined #ruby
[09:47:17] iamarun: has joined #ruby
[09:47:47] aef: has joined #ruby
[09:48:26] iamarun: has joined #ruby
[09:51:31] adac: has joined #ruby
[09:57:24] yxhuvud: has joined #ruby
[09:58:26] mihael_k33hl: I have a class that depends on the sqlite3 gem, is it necessary to create unit tests though? or just directly integration tests?
[10:00:43] apeiros: "is it necessary" no, unit tests are never "necessary". they're just a good idea.
[10:01:21] apeiros: and probably more to the point of what you intended to know: as long as you test your class' functionality and not sqlite3's, tests will be a good idea.
[10:04:00] InfinityFye: has joined #ruby
[10:05:36] mtkd: has joined #ruby
[10:06:26] InfinityFye: has left #ruby: ()
[10:11:40] Barrt: has joined #ruby
[10:11:53] hightower2: has joined #ruby
[10:14:15] dellavg_: has joined #ruby
[10:20:24] Puffball: has joined #ruby
[10:22:40] apeiros: mihael_k33hl: just as a feedback - for people who try to help, an answer is a good idea. it's not motivating if you feel like talking to a wall.
[10:23:02] Defenestrate: has joined #ruby
[10:23:48] tvw: has joined #ruby
[10:35:49] quobo: has joined #ruby
[10:41:21] tvw: has joined #ruby
[10:45:48] c0ncealed: has joined #ruby
[10:46:55] miskatonic: has joined #ruby
[10:47:21] tvw: has joined #ruby
[10:47:35] ltem: has joined #ruby
[10:56:06] Barrt: has joined #ruby
[11:01:34] SirOliver: has joined #ruby
[11:02:04] iamarun: has joined #ruby
[11:09:53] mikecmpbll: has joined #ruby
[11:10:46] xco: has joined #ruby
[11:13:55] konsolebox: has joined #ruby
[11:16:48] Serpent7776: has joined #ruby
[11:19:08] s2013: has joined #ruby
[11:24:30] alfiemax: has joined #ruby
[11:28:02] adac: has joined #ruby
[11:30:42] dellavg_: has joined #ruby
[11:34:21] tomphp: has joined #ruby
[11:35:57] apeiros__: has joined #ruby
[11:38:02] milardovich: has joined #ruby
[11:41:55] dellavg_: has joined #ruby
[11:42:11] SirOliver: has joined #ruby
[11:43:21] Mia: has joined #ruby
[11:43:55] TomyLobo: has joined #ruby
[11:49:38] _ch4l45h45k4: has joined #ruby
[11:55:05] despai: has joined #ruby
[11:57:50] mostlybadfly: has joined #ruby
[12:02:14] apeiros: has joined #ruby
[12:04:13] apeiros__: has joined #ruby
[12:10:25] jottr: has joined #ruby
[12:18:34] jnollette: has joined #ruby
[12:19:20] Psybur: has joined #ruby
[12:19:38] IanMalcolm: has joined #ruby
[12:20:11] mihael_k33hl: apeiros__: Hey man, sorry man, I went to buy dinner, was just able to read your reply right now
[12:20:19] jottr: has joined #ruby
[12:20:46] IanMalcolm: has joined #ruby
[12:21:09] mihael_k33hl: apeiros__: I appreciate the help though, I decided to just create spec tests rather than unit tests, as I've read unit tests shouldn't invoke third party elements or gems, and my class does that being heavy dependent on sqlite3 :)
[12:23:45] jottr: has joined #ruby
[12:24:48] SirOliver: has joined #ruby
[12:25:23] apeiros: mihael_k33hl: you're mixing up things here, though
[12:25:39] yeticry: has joined #ruby
[12:25:44] apeiros: the "unit" in "unittest" does not mean you can't use it for anything other than unit tests.
[12:25:58] apeiros: and you'll essentially write unit tests in spec too.
[12:26:14] apeiros: ACTION assumes rspec
[12:26:22] apeiros: (not that it'd matter, though)
[12:26:32] guardianx: has joined #ruby
[12:26:40] arquebus: has joined #ruby
[12:27:43] mihael_k33hl: apeiros: hmmm, cause I read somewhere about unit tests, and I quote "First, you have to understand that unit tests, should not interact with external resources like DB or files, so lets call this tests integration or feature test."
[12:28:12] apeiros: yes. one is a pattern, or philosophy. the other is a library.
[12:28:15] apeiros: the two are not the same.
[12:28:16] leitz: has joined #ruby
[12:28:43] cschneid_: has joined #ruby
[12:28:52] mihael_k33hl: apeiros: I'll be creating the spec tests using minitest :)
[12:29:15] apeiros: note: I'm not telling you what to do. just that you seem to draw wrong conclusions.
[12:29:19] nicesignal: has joined #ruby
[12:30:44] mihael_k33hl: apeiros: Oh yeah, I find it really helpful to get some insights from experienced, if not expert, ruby users :)
[12:34:36] jenrzzz: has joined #ruby
[12:34:36] jenrzzz: has joined #ruby
[12:41:18] capadesu_: has joined #ruby
[12:41:54] koneko: has joined #ruby
[12:42:10] zoiloftt: has joined #ruby
[12:42:13] AJA4350: has joined #ruby
[12:42:14] leitz: If you're building a gem with a current-ish version of ruby, do you still need to install rubygems?
[12:42:39] apeiros: leitz: no. been ages.
[12:42:55] apeiros: ever since 1.9, rubygems is included. that's about 10y I think?
[12:43:13] apeiros: https://www.ruby-lang.org/en/news/2007/12/25/ruby-1-9-0-released/
[12:43:23] zoiloftt: wow 10 years already.
[12:43:40] leitz: apeiros, thanks! Working on my gem. In irb if I "require 'rubygems' " it gives false.
[12:43:57] apeiros: zoiloftt: yeah. you're old. welcome gramps.
[12:44:17] apeiros: leitz: yes, which means it's already loaded.
[12:44:42] apeiros: failure to load is an exception. not just a meager return value.
[12:44:57] leitz: Ah, so the others (json, pp) that return true are there by default but not loaded?
[12:45:48] apeiros: what do you mean by "there by default"?
[12:46:09] apeiros: there's core, stdlib, gems and "custom"
[12:46:14] leitz: apeiros, I don't need to install them as gems after building and installing ruby.
[12:46:19] apeiros: core = stuff integrated into ruby, present when you start the interpreter
[12:46:30] apeiros: stdlib = stuff shipped with ruby, but not loaded. you have to require.
[12:46:38] apeiros: gems = all the stuff you install as gems
[12:46:51] leitz: json and pp are stdlib, I take it?
[12:46:53] apeiros: custom = whatever you do to load other stuff. like require_relative from wherever.
[12:47:28] apeiros: I still hope stdlib will be gemified. would facilitate updating libs out of rubys own cycle.
[12:48:02] leitz: That works. Style question: if a "toy" bit of code requires a gem the main code does not, do you put that in the gemspec?
[12:48:50] leitz: I'm not yet smart enough to build two related gems. :(
[12:48:54] apeiros: add_development_dependency, yes.
[12:49:05] jottr_: has joined #ruby
[12:49:24] apeiros: http://guides.rubygems.org/specification-reference/#add_development_dependency
[12:50:44] leitz: ACTION goes to read.
[12:51:58] despai: has joined #ruby
[12:53:28] leitz: Hmm...did 'add_dependency' change to 'requirement'? Or 'add_runtime_dependency'?
[12:54:57] alfiemax: has joined #ruby
[12:55:39] apeiros: add_dependency is an alias of add_runtime_dependency afaik
[12:57:04] chocoelho: has joined #ruby
[13:02:24] KeyJoo: has joined #ruby
[13:04:32] leitz: Will putting "#!/usr/bin/env ruby" as the first line impact windows users?
[13:04:41] leitz: Working through the warnings from gem build.
[13:05:16] leitz: I've been using "ruby -Ilib bin/chargen.rb" as I work on it.
[13:05:22] aScottishBoat: has joined #ruby
[13:05:25] jespada: has joined #ruby
[13:06:46] mikkelsen: has joined #ruby
[13:07:31] apeiros: where did you put that?
[13:07:37] apeiros: in a file in lib dir?
[13:13:08] leitz: apeiros, in bin. https://github.com/LeamHall/2d6_ogl_chargen/blob/master/bin/chargen.rb
[13:13:18] k0mpa: has joined #ruby
[13:13:29] leitz: That code does not contain the gemspec I'm editing now.
[13:14:10] synthroid: has joined #ruby
[13:17:17] apeiros: that generates a warning when running `gem build`? o0
[13:17:28] apeiros: can you copy & paste the warning please?
[13:18:54] leitz: https://gist.github.com/LeamHall/2116cc3fcad638a1f5f5128eb2c3c22e
[13:19:09] leitz: That's the current error and the new gemspec.
[13:20:12] apeiros: if you read the messages closely, it does *not* complain about *having* a #! line
[13:20:38] apeiros: it complains about #! being missing, and not being executable (chmod 0755)
[13:20:42] s3nd1v0g1us: has joined #ruby
[13:22:06] s3nd1v0g1us: has joined #ruby
[13:22:27] leitz: RIght, that's the question. If I put the "#!" line in will it impact people running the code on Windows? I'm on Linux.
[13:22:50] leitz: And, another style question, drop the ".rb" extension or keep?
[13:24:18] linduxed: has joined #ruby
[13:24:58] apeiros: #! in gem executables is fine. rubygems will rewrite as necessary anyway.
[13:25:08] apeiros: for executables: drop
[13:25:25] apeiros: you don't run `bundle.rb` or `rails.rb` either.
[13:25:33] arquebus: has joined #ruby
[13:29:40] shinnya: has joined #ruby
[13:31:01] leitz: Actually, I don't run either. :D
[13:31:11] s2013: has joined #ruby
[13:31:40] kelseynz: has joined #ruby
[13:31:51] apeiros: well, `gem.rb` then
[13:36:05] jottr_: has joined #ruby
[13:38:06] ltem: has joined #ruby
[13:39:35] cschneid_: has joined #ruby
[13:39:57] warrshrike: has joined #ruby
[13:40:10] warrshrike: Guys I want to parse C++ code using ruby
[13:40:28] warrshrike: essentially, the comments first of all need to be identified and stored in an array
[13:40:32] warrshrike: whats a good way to do this?
[13:40:43] warrshrike: if conditions and string matching?
[13:41:32] DmitryBochkarev: has joined #ruby
[13:44:17] elsevero: has joined #ruby
[13:44:21] leitz: warrshrike, does rdoc give you what you want? The /* */ bits could be tough. I don't know a lot of ruby, though.
[13:44:32] apeiros: d'oh, ruby-toolbox is down.
[13:44:44] apeiros: warrshrike: there are a couple of parser generator libraries for ruby
[13:44:45] warrshrike: leitz: whats r doc
[13:44:57] apeiros: and if you want to roll it by hand, I'd at the very least use stringscanner
[13:45:24] warrshrike: apeiros: no its like a one odd thing id prefer to roll it by hand
[13:45:34] warrshrike: apeiros: do you recommend if conditions
[13:45:50] apeiros: I just wrote my rec
[13:46:05] warrshrike: rec? recommendation?
[13:46:35] leitz: apeiros, the ruby-toolbox thing looks old, but there seems to be a lot of potentially good code/ideas. Is toolbox different than gems for a reason?
[13:47:05] apeiros: warrshrike: yes
[13:47:21] alfiemax: has joined #ruby
[13:47:25] apeiros: leitz: ruby-toolbox mostly was a categorization of existing gems
[13:47:37] apeiros: rubygems' own service is rather limited there
[13:47:53] leitz: warrshrike, rdoc is a ruby tool to create documentation.
[13:48:04] leitz: Try gem specification rdoc
[13:48:14] despai: has joined #ruby
[13:48:40] leitz: apeiros, ah. Now and again I look for ways to contribute back to the community. Usually I find my skills lacking.
[13:50:42] leitz: Goal for 2018 is going deeper into Ruby with some OOD/A/P and testing.
[13:52:34] warrshrike: does gets give nil if no stdin is present?
[13:53:19] apeiros: it'll try to read any arguments passed to the script as files.
[13:53:27] apeiros: and nil when it's through those.
[13:53:40] apeiros: &ri Kernel#gets
[13:53:41] `derpy: http://ruby-doc.org/core-2.4.1/Kernel.html#method-i-gets
[13:55:25] warrshrike: can strings include? method for checking for substrings give the index at which substring starts
[13:56:03] apeiros: warrshrike: do you not know how to use the documentation?
[13:56:20] warrshrike: apeiros: normally yes but for this particular question im not able to find
[13:56:32] apeiros: where did you look?
[13:56:32] warrshrike: how to get the index at which substring starts
[13:56:41] apeiros: &ri String#index
[13:56:41] `derpy: http://ruby-doc.org/core-2.4.1/String.html#method-i-index
[13:56:42] warrshrike: i googled for 5 minutes
[13:56:46] SirOliver: has joined #ruby
[13:56:54] apeiros: yeah, google is a bad replacement for language docs.
[13:57:05] apeiros: use ri locally, or a page like ruby-doc.org
[13:58:02] apeiros: also IMO invest about ~1h to skim through ruby's core classes. no need to learn it by heart or somesuch. just skim it so you've got an idea what's there.
[13:59:23] warrshrike: okay yeah sounds like a good idea ~_~
[14:12:46] stealth[]: has left #ruby: ("Leaving")
[14:15:13] IanMalcolm: has joined #ruby
[14:17:45] cschneid_: has joined #ruby
[14:18:21] mihael_k33hl: How do you stub module methods in minitest?
[14:24:38] apeiros: has joined #ruby
[14:27:04] mihael_k33hl: I have a Class with Module method included that writes to a file, what's the best approach of stubbing or mocking it? Or stub the module method to write the file into a temporary directory?
[14:29:43] DLSteve: has joined #ruby
[14:31:27] J4ck_4l0n3: has joined #ruby
[14:32:00] J4ck_4l0n3: has left #ruby: ("WeeChat 2.0.1")
[14:32:34] mtkd: has joined #ruby
[14:35:51] k0mpa: has joined #ruby
[14:39:26] za1b1tsu: has joined #ruby
[14:39:55] za1b1tsu: Hello, regarding rspec should I use shoulda matcher or go for standard rspec
[14:40:00] jeffreylevesque: has joined #ruby
[14:43:32] leitz: za1b1tsu, I'm not an expert but I tend to start with the basics and move forward from there. rspec is pretty good.
[14:47:05] Flashynuff: has joined #ruby
[14:51:37] cadillac_: has joined #ruby
[14:51:45] alfiemax: has joined #ruby
[14:57:07] drewmcmillan: has joined #ruby
[14:58:35] despai: has joined #ruby
[15:09:08] apeiros: fun, 2.fdiv(BigDecimal("4")) => 0.5 as expected in 2.5, but in 2.4.3 it's still => 2.2006004337e-314
[15:12:37] Guest66: has joined #ruby
[15:14:17] kn-928: has joined #ruby
[15:19:01] marius: has joined #ruby
[15:19:39] haxx0r: has joined #ruby
[15:20:03] haxx0r: i have an array of providers. i want to compare each against each other. what's beast
[15:20:07] haxx0r: next if i == a ?
[15:20:22] haxx0r: or is there some cool enumerator
[15:20:27] haxx0r: providers = [aol, tesco, cp, toggl, mega]
[15:20:41] haxx0r: provders._unknown_enumerator_
[15:20:46] haxx0r: need some magic here :D
[15:20:59] pwnd_nsfw: https://stackoverflow.com/questions/3580049/whats-the-ruby-way-to-iterate-over-two-arrays-at-once
[15:21:58] haxx0r: providers.zip(providers)
[15:22:17] havenwood: haxx0r: zipping it with itself?
[15:22:17] pwnd_nsfw: comparing an array against itself? :P
[15:22:40] haxx0r: that'S what i want
[15:22:49] pwnd_nsfw: Interesting
[15:23:04] haxx0r: [0,1,2,3,4]. i want [0,1], [0,2], [0,3], [0,4], then [1,2], [1,3]...
[15:23:14] apeiros: that's product
[15:23:16] cschneid_: has joined #ruby
[15:23:31] apeiros: but you're most likely doing this *very* inefficiently
[15:23:42] apeiros: >> [0,1,2].product([0,1,2])
[15:23:43] ruby[bot]: apeiros: # => [[0, 0], [0, 1], [0, 2], [1, 0], [1, 1], [1, 2], [2, 0], [2, 1], [2, 2]] (https://eval.in/926226)
[15:23:52] haxx0r: 2 loops are the efficient ay?
[15:24:01] apeiros: it's the same terrible, no
[15:24:06] haxx0r: no. that's not what i want
[15:24:09] nofxx: has joined #ruby
[15:24:09] apeiros: it's n**2 items
[15:24:20] haxx0r: becasuse in my case [0,1] == [1,0]
[15:24:21] haxx0r: same providers
[15:24:38] apeiros: your description is gently put confusing :-p
[15:24:54] haxx0r: >> [0,1,2].zip([0,1,2])
[15:24:55] ruby[bot]: haxx0r: # => [[0, 0], [1, 1], [2, 2]] (https://eval.in/926227)
[15:24:59] jespada: has joined #ruby
[15:25:23] apeiros: 16:23 haxx0r: [0,1,2,3,4]. i want [0,1], [0,2], [0,3], [0,4], then [1,2], [1,3]...
[15:25:27] haxx0r: if [0,1,2] then i want [0,1], [0,2], [1,2]
[15:25:39] apeiros: is that no longer correct?
[15:25:46] haxx0r: it's same
[15:26:21] apeiros: well, I'm back working. maybe somebody else understands.
[15:26:33] haxx0r: [0,1,2,3,4] should result in: [0,1], [0,2], [0,3], [0,4], [1,2], [1,3], [1,4], [2,3], [2,4], [3,4]
[15:27:03] havenwood: haxx0r: No [0, 0] then?
[15:27:20] havenwood: haxx0r: why?
[15:27:30] haxx0r: no need to compare
[15:27:35] haxx0r: i want compare providers against each other
[15:27:36] apeiros: IMO wrong question
[15:27:43] apeiros: what do you want to do from that?
[15:27:53] haxx0r: ok, real life example
[15:27:54] apeiros: you want to find which items occur more than once?
[15:27:55] al2o3-cr: haxx0r: you want combinations.
[15:28:06] al2o3-cr: >> [0,1,2,3,4].combination(2).to_a
[15:28:07] haxx0r: i want to compare bitcoin price on 6 different exchangs
[15:28:08] ruby[bot]: al2o3-cr: # => [[0, 1], [0, 2], [0, 3], [0, 4], [1, 2], [1, 3], [1, 4], [2, 3], [2, 4], [3, 4]] (https://eval.in/926228)
[15:29:21] webguynow: has joined #ruby
[15:29:27] haxx0r: my hero <3
[15:34:57] lxsameer: has joined #ruby
[15:35:43] pastorinni: has joined #ruby
[15:36:22] cschneid_: has joined #ruby
[15:37:39] alfiemax: has joined #ruby
[15:38:00] haxx0r: al2o3-cr combinations kinda duplicates the array. is there a call_by_reference option possible?
[15:38:25] al2o3-cr: a what now?
[15:38:37] haxx0r: the objects are pretty big (each provider contains 2 arrays of about 1 1000 hashes)
[15:38:47] haxx0r: markets = [
[15:38:47] haxx0r: cryptopia = Cryptopia.new(market),
[15:38:47] haxx0r: bitfinex = Bitfinex.new(market),
[15:38:47] haxx0r: bittrex = Bittrex.new(market)
[15:39:01] haxx0r: say i have 9 different markets
[15:39:01] haxx0r: each market contains a complete order-book
[15:39:10] haxx0r: (buy and sell orders. list of thousands... )
[15:39:21] apeiros: >> x = "hi"; y = "there"; [x,y].combination(2).to_a.flatten.map(&:object_id).uniq
[15:39:22] ruby[bot]: apeiros: # => [541429050, 541429040] (https://eval.in/926230)
[15:39:30] apeiros: haxx0r: ^ no it does not duplicate the data
[15:39:33] haxx0r: if i run combination with 9 markets
[15:39:42] haxx0r: ok. thanks
[15:40:20] apeiros: and yes, combinations become big quickly. hence my question what you want to achieve with all of this. but hey, have fun brute forcing your problem :)
[15:41:03] haxx0r: arbitrage finding between exchanges.
[15:41:22] haxx0r: especially in low liquidity markets like Monero/USDT or ETC/USDT
[15:41:24] iamarun: has joined #ruby
[15:41:49] haxx0r: x = b.sell(amount)
[15:41:49] haxx0r: y = c.buy(amount)
[15:41:49] haxx0r: percent = (x / y * 100 - 100).round(2)
[15:41:49] haxx0r: # if percent > 0.2
[15:41:50] haxx0r: p "[#{Time.now} | #{percent}% | #{(x-y).round(5)}] [Sell:Bitfinex #{amount}#{to} for #{x.round(5)} #{from}] [Buy:Cryptopia #{amount}#{to} for #{y.round(5)} #{from}]"
[15:41:51] milardovich: has joined #ruby
[15:41:58] al2o3-cr: ?gist haxx0r
[15:41:58] ruby[bot]: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[15:41:58] ruby[bot]: haxx0r: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[15:42:03] haxx0r: "[2017-12-27 22:16:42 +0700 | 0.94% | 6.73196] [Sell:Cryptopia 2XMR for 724.54201 USDT] [Buy:Bittrex 2XMR for 717.81005 USDT]"
[15:42:07] haxx0r: this works fine so far
[15:42:11] apeiros: don't spam the channel with >3 lines of code, see topic
[15:42:42] apeiros: so the end result after everything has been done is in fact a list with a pairing of all exchanges?
[15:42:45] haxx0r: it works fine between 2 exchanges. but now it should work for n exchangs
[15:43:00] apeiros: or is the result something like "optimal trade is between A & B"? as in, a single result?
[15:43:13] haxx0r: just pick those where a arbitrage is
[15:43:22] haxx0r: single result
[15:43:50] haxx0r: now A and D is possible. in 5 seconds (orderbooks refreshed) it might be D & C and in 10 seconds B & E
[15:44:07] apeiros: sounds like you want a min and a max. minimum sell and maximum buy.
[15:44:33] milardovich: has joined #ruby
[15:45:17] apeiros: and minmax is a shitload faster than combination(2) (O(n) vs. O(n^2))
[15:45:42] haxx0r: i have to compare orderbooks with each other at each second
[15:45:56] Ishido: has joined #ruby
[15:46:00] apeiros: eh, actually not minmax since it's two different "properties" you're looking it. but min + max is still O(n).
[15:46:05] haxx0r: i have to compare a[buy] with b[sell] c[sell] d[sell].
[15:46:35] apeiros: why not just a[buy] with min(sell)?
[15:46:55] apeiros: errr, max(sell)
[15:47:05] haxx0r: because every second orders/bids coming across all exchanges.
[15:47:05] haxx0r: most likely no arbitrage is possible because of 2x 0.2% fee.
[15:47:22] haxx0r: however, in moving markets (say bitcoin crash) markets don't adjust quick enough.
[15:47:32] apeiros: the "every second stuff changes" is not any different depending on which algorithm you use.
[15:47:57] haxx0r: if on Bitfinex the price drops by 100$ but on bittrex the price drops only 5$, then i can sell on bittrex and buy cheaper on bitfinex, yields me 95$ net profit
[15:48:27] aScottishBoat: has joined #ruby
[15:48:52] haxx0r: b.sell(amount)
[15:48:52] haxx0r: c.buy(amount)
[15:49:07] haxx0r: if b.sell > c.buy , then we have profit
[15:50:08] haxx0r: i'll show you real life example
[15:50:12] h4un: has joined #ruby
[15:50:31] haxx0r: https://i.imgur.com/l85a9wF.png
[15:50:36] h4un: when is ruby 3 cumming out?
[15:51:22] apeiros: I'm pretty sure what you want is find max sell and min buy and pair those instead of pairing all.
[15:51:22] haxx0r: this is between 2 exchanges. that's easy for me. but i need to run it against 9 exchanges. so i think this combination thing is perfect
[15:51:36] aScottishBoat: has joined #ruby
[15:52:08] apeiros: h4un: no date has been set.
[15:53:39] cschneid_: has joined #ruby
[15:55:24] alfiemax: has joined #ruby
[15:56:41] mikkelsen: has joined #ruby
[16:01:19] cdg: has joined #ruby
[16:04:22] chocoelho: has joined #ruby
[16:06:38] loincloth: has joined #ruby
[16:06:38] nckpz: has joined #ruby
[16:06:56] snowcrshd: has joined #ruby
[16:13:00] pastorinni: has joined #ruby
[16:14:10] vichib: has joined #ruby
[16:15:25] hahuang65: has joined #ruby
[16:17:44] graaff: has joined #ruby
[16:18:00] abraham_: has joined #ruby
[16:21:39] selim: has joined #ruby
[16:27:27] troys: has joined #ruby
[16:28:38] Barrt: has joined #ruby
[16:33:39] sauvin: has joined #ruby
[16:36:38] mtkd: has joined #ruby
[16:40:38] mrBen2k2k2k: has joined #ruby
[16:43:20] IanMalcolm: has joined #ruby
[16:45:07] c0dy: has joined #ruby
[16:51:59] zwliew: has joined #ruby
[16:53:07] cdg: has joined #ruby
[16:56:03] AJA4350: has joined #ruby
[17:00:22] alfiemax_: has joined #ruby
[17:01:26] cschneid_: has joined #ruby
[17:04:02] apeiros: has joined #ruby
[17:06:02] dviola: has joined #ruby
[17:14:29] synthroid: has joined #ruby
[17:17:09] c0ncealed: has joined #ruby
[17:17:31] ltt: has joined #ruby
[17:18:02] IanMalcolm: has left #ruby: ("WeeChat 2.0.1")
[17:19:27] cadillac_: has joined #ruby
[17:19:50] chocoelho: has joined #ruby
[17:21:56] mr_foto: has joined #ruby
[17:27:12] apeiros: has joined #ruby
[17:27:53] apeiros: has joined #ruby
[17:28:33] cadillac_: has joined #ruby
[17:31:02] LocaMocha: has joined #ruby
[17:32:01] apeiros: has joined #ruby
[17:32:50] claudiuinberlin: has joined #ruby
[17:33:03] J4ck_4l0n3: has joined #ruby
[17:33:39] J4ck_4l0n3: guys how do i send http packets with data like username, passwords and other things in ruby?
[17:35:08] apeiros: &ri Net::HTTP J4ck_4l0n3
[17:35:08] `derpy: J4ck_4l0n3: http://ruby-doc.org/stdlib-2.4.1/libdoc/net/http/rdoc/Net/HTTP.html
[17:35:21] johno84: has joined #ruby
[17:35:27] apeiros: there is a couple of gems out there which provide (or aim to) an easier interface than Net::HTTP
[17:35:36] apeiros: e.g. httparty
[17:35:56] J4ck_4l0n3: and another question, is there any trobuleshooting for the installation of ror?
[17:36:06] apeiros: ?rails J4ck_4l0n3
[17:36:06] ruby[bot]: J4ck_4l0n3: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[17:36:39] J4ck_4l0n3: ok i'm goimg to #RubyOnRails, bye :)
[17:36:43] J4ck_4l0n3: has left #ruby: ("WeeChat 2.0.1")
[17:38:09] reber: has joined #ruby
[17:41:06] cschneid_: has joined #ruby
[17:49:28] Riddell: has joined #ruby
[17:49:47] Toggi3: has joined #ruby
[17:52:23] cadillac_: has joined #ruby
[17:55:15] alfiemax: has joined #ruby
[17:55:48] cadillac_: has joined #ruby
[17:56:14] dionysus69: has joined #ruby
[17:58:48] sanscoeur: has joined #ruby
[17:59:51] bmurt: has joined #ruby
[18:02:49] k0mpa: has joined #ruby
[18:07:40] ltt_: has joined #ruby
[18:10:54] cdg: has joined #ruby
[18:12:28] cdg_: has joined #ruby
[18:13:45] Exagone313: has joined #ruby
[18:14:52] cadillac_: has joined #ruby
[18:20:06] cloaked1: has joined #ruby
[18:20:07] cloaked1: has joined #ruby
[18:23:11] aesthetikx: has joined #ruby
[18:24:26] larcara: has joined #ruby
[18:25:07] alfiemax: has joined #ruby
[18:27:11] cadillac_: has joined #ruby
[18:29:58] cschneid_: has joined #ruby
[18:30:08] nogic: has joined #ruby
[18:38:07] cadillac_: has joined #ruby
[18:41:46] mtkd: has joined #ruby
[18:46:01] abraham_: has joined #ruby
[18:48:01] cdg: has joined #ruby
[18:54:27] alfiemax_: has joined #ruby
[18:56:25] dionysus69: when I run shell script from ruby, how do i see shell script stdout in real time?
[18:56:38] dionysus69: if i do puts `file.sh` then it outputs after it is done
[18:59:14] alfiemax: has joined #ruby
[19:00:44] d^sh: has joined #ruby
[19:02:06] chocoelho: has joined #ruby
[19:02:14] ramfjord: has joined #ruby
[19:02:57] apeiros: dionysus69: Kernel#spawn is the swiss-army knife, but clumsy. system() will just reuse your process' stdout & stderr
[19:03:12] n13z: has joined #ruby
[19:03:29] dionysus69: thought system() was same as backticks :S :)
[19:03:33] dionysus69: will try that then
[19:04:28] dionysus69: that worked thanks apeiros :)
[19:05:21] adac: has joined #ruby
[19:05:33] sameerynho: has joined #ruby
[19:08:36] alfiemax_: has joined #ruby
[19:12:22] alex``: has joined #ruby
[19:12:36] cdg: has joined #ruby
[19:13:24] pastorinni: has joined #ruby
[19:15:43] Psybur: has joined #ruby
[19:18:23] snsei1: has joined #ruby
[19:19:42] chmurifree: has joined #ruby
[19:20:02] Exagone313: has joined #ruby
[19:23:18] jamesaxl: has joined #ruby
[19:27:09] jottr_: has joined #ruby
[19:27:25] synstack: has joined #ruby
[19:27:26] synstack: has joined #ruby
[19:29:32] pastorinni: has joined #ruby
[19:30:46] NightMonkey: has joined #ruby
[19:31:03] elementaru: has joined #ruby
[19:32:04] mostlybadfly: has joined #ruby
[19:32:32] tsglove: has joined #ruby
[19:36:37] minimalism: has joined #ruby
[19:37:54] Dimik: has joined #ruby
[19:39:59] Lloyd: has joined #ruby
[19:40:01] pmarreck: has joined #ruby
[19:40:15] Flashynuff: has joined #ruby
[19:40:23] iamdevnul: has joined #ruby
[19:41:09] mrsolo: has joined #ruby
[19:41:11] amitchellbullard: has joined #ruby
[19:41:25] doesntbyte: has joined #ruby
[19:41:25] colstrom: has joined #ruby
[19:41:38] Flabbergazta: has joined #ruby
[19:41:38] ircmaxell: has joined #ruby
[19:41:44] jimeh: has joined #ruby
[19:41:51] dmnd: has joined #ruby
[19:42:10] spooky_d: has joined #ruby
[19:42:12] skawa: has joined #ruby
[19:42:25] micalexander: has joined #ruby
[19:42:37] oblak: has joined #ruby
[19:42:40] Travis-42: has joined #ruby
[19:42:45] seanh: has joined #ruby
[19:42:57] machty: has joined #ruby
[19:43:01] jottr: has joined #ruby
[19:43:04] wsmoak: has joined #ruby
[19:43:10] pizzaops: has joined #ruby
[19:43:12] justinweiss: has joined #ruby
[19:43:18] chrisseaton: has joined #ruby
[19:43:22] andywojo: has joined #ruby
[19:43:28] schaary: has joined #ruby
[19:43:29] howdoi: has joined #ruby
[19:43:30] bove: has joined #ruby
[19:43:31] caw__: has joined #ruby
[19:43:42] Tony-St4rk: has joined #ruby
[19:43:54] Yonk: has joined #ruby
[19:43:56] peteretep: has joined #ruby
[19:44:20] fury: has joined #ruby
[19:44:24] auv: has joined #ruby
[19:44:24] r3my: has joined #ruby
[19:44:34] cttttt: has joined #ruby
[19:44:42] danzilio: has joined #ruby
[19:44:43] hayden___: has joined #ruby
[19:44:44] knowtheory: has joined #ruby
[19:44:44] pfg: has joined #ruby
[19:44:53] kspencer: has joined #ruby
[19:45:02] charles81_: has joined #ruby
[19:45:11] nOgAnOo: has joined #ruby
[19:45:12] andersh: has joined #ruby
[19:45:13] boxrick: has joined #ruby
[19:45:17] pwillard: has joined #ruby
[19:45:28] stephenh: has joined #ruby
[19:45:36] cstrahan: has joined #ruby
[19:45:36] avdi: has joined #ruby
[19:45:45] afisher: has joined #ruby
[19:45:47] jmhmccr: has joined #ruby
[19:45:47] solidsnack: has joined #ruby
[19:45:52] petems: has joined #ruby
[19:46:18] kireevco: has joined #ruby
[19:46:23] Majost: has joined #ruby
[19:46:25] cardoni: has joined #ruby
[19:46:26] teej: has joined #ruby
[19:46:39] jxf: has joined #ruby
[19:46:41] BuildTheRobots: has joined #ruby
[19:46:55] justache: has joined #ruby
[19:47:04] olivierjanss: has joined #ruby
[19:47:17] swgillespie: has joined #ruby
[19:47:19] skmp: has joined #ruby
[19:47:26] bosma: has joined #ruby
[19:47:27] rann: has joined #ruby
[19:47:57] incomprehensibly: has joined #ruby
[19:48:15] graingert: has joined #ruby
[19:48:19] ShekharReddy: has joined #ruby
[19:48:46] mitsuhiko: has joined #ruby
[19:48:48] jhill_: has joined #ruby
[19:49:10] err_ok: has joined #ruby
[19:49:26] ec: has joined #ruby
[19:49:37] DukeDave: has joined #ruby
[19:49:51] aarongodin: has joined #ruby
[19:50:39] rjungemann: has joined #ruby
[19:50:48] foamz: has joined #ruby
[19:51:27] yo61: has joined #ruby
[19:51:33] Meow-J_: has joined #ruby
[19:51:41] QualityAddict: has joined #ruby
[19:51:48] mattwc: has joined #ruby
[19:51:52] HalcyonicStorm: has joined #ruby
[19:52:29] justizin: has joined #ruby
[19:52:35] gmcintire: has joined #ruby
[19:52:54] Guest9063: has joined #ruby
[19:53:02] adambeynon: has joined #ruby
[19:53:05] JJonah: has joined #ruby
[19:53:06] bcavileer: has joined #ruby
[19:53:11] Psybur: has joined #ruby
[19:53:20] lipoqil: has joined #ruby
[19:53:46] spastorino: has joined #ruby
[19:54:02] deimos: has joined #ruby
[19:54:11] Diabolik: has joined #ruby
[19:54:16] rfv: has joined #ruby
[19:54:20] craysiii: has joined #ruby
[19:54:30] hsiktas: has joined #ruby
[19:54:34] manveru: has joined #ruby
[19:55:01] darix: dionysus69: there is also popen(234)
[19:55:31] cadillac_: has joined #ruby
[19:57:02] KnownSyntax: has joined #ruby
[19:57:27] kapowaz: has joined #ruby
[19:57:50] ckrailo: has joined #ruby
[19:57:59] [diecast]: has joined #ruby
[19:58:13] kaia: has joined #ruby
[19:58:27] mroth: has joined #ruby
[19:58:33] rflot: has joined #ruby
[19:59:14] tsglove: has left #ruby: ("Leaving")
[19:59:33] alfiemax: has joined #ruby
[20:00:17] zwliew: has joined #ruby
[20:01:59] ltt: has joined #ruby
[20:04:01] jottr_: has joined #ruby
[20:05:37] ReinH: has joined #ruby
[20:12:46] jottr: has joined #ruby
[20:14:16] talntid: has joined #ruby
[20:15:14] talntid: Any ruby people here from Austin, TX area? Hows the ruby market around there? Thinking of expanding my business in that area, because not enough Ruby devs in my area...
[20:15:39] talntid: might do Salt Lake City also, so same question there...
[20:18:33] sammi`_: has joined #ruby
[20:19:05] cadillac_: has joined #ruby
[20:19:27] pilne: has joined #ruby
[20:20:17] NightMonkey: has joined #ruby
[20:26:01] reber: has joined #ruby
[20:26:05] kies: has joined #ruby
[20:27:03] jnollette: has joined #ruby
[20:28:58] abraham_: has joined #ruby
[20:29:43] vipaca: has joined #ruby
[20:30:09] ur5us: has joined #ruby
[20:33:38] koneko: has joined #ruby
[20:34:03] ltt: has joined #ruby
[20:39:17] nixy: has joined #ruby
[20:43:42] jwheare: has joined #ruby
[20:45:09] chocoelho: has joined #ruby
[20:50:14] ruby-lang534: has joined #ruby
[20:51:36] jwheare: has joined #ruby
[20:52:34] k0mpa: has joined #ruby
[20:53:44] paulrf: has joined #ruby
[20:54:23] jottr_: has joined #ruby
[21:04:07] ur5us: has joined #ruby
[21:06:09] Vapez: has joined #ruby
[21:08:04] ltt_: has joined #ruby
[21:09:35] cdg: has joined #ruby
[21:10:15] oleo: has joined #ruby
[21:11:13] Psybur: has joined #ruby
[21:15:32] ltem: has joined #ruby
[21:16:51] swills_: has joined #ruby
[21:21:32] dalitom: has joined #ruby
[21:21:47] dalitom: Hey guys... noob question
[21:21:59] dalitom: how do I calculate large numbers in Ruby
[21:22:40] dalitom: for example 17591917608960 % 1,073,741,824
[21:26:05] apeiros: >> 17591917608960 % 1_073_741_824
[21:26:07] ruby[bot]: apeiros: # => 805306368 (https://eval.in/926426)
[21:26:09] apeiros: dalitom: ^
[21:27:00] Guest67616: has joined #ruby
[21:27:15] koenrh: has joined #ruby
[21:27:26] tfitts: has joined #ruby
[21:27:38] Brak____________: has joined #ruby
[21:27:46] dalitom: result should be 16,383.75
[21:27:55] galeido: has joined #ruby
[21:28:00] apeiros: how do you figure?
[21:28:02] maciuszek: has joined #ruby
[21:28:05] HashNuke: has joined #ruby
[21:28:06] meinside: has joined #ruby
[21:28:10] daxroc: has joined #ruby
[21:28:15] dalitom: calculated on a calculator
[21:28:27] nixy: Sounds like you need a new calculator
[21:28:37] apeiros: or watch better for typos
[21:28:56] zipkid: has joined #ruby
[21:29:29] apeiros: >> 17591917608960.divmod(1_073_741_824)
[21:29:30] ruby[bot]: apeiros: # => [16383, 805306368] (https://eval.in/926427)
[21:29:46] apeiros: >> 16383 * 1_073_741_824 + 805306368
[21:29:48] ruby[bot]: apeiros: # => 17591917608960 (https://eval.in/926428)
[21:30:10] Nuck: has joined #ruby
[21:30:15] Chew: has joined #ruby
[21:30:28] apeiros: I claim the mistake is on your side dalitom
[21:31:21] apeiros: what does the % operator do on your calculator?
[21:32:02] apeiros: as in, what's the name of the operation
[21:32:07] dalitom: yup I was wrong
[21:32:18] podman: has joined #ruby
[21:32:21] dalitom: thanks !!! and sorry
[21:32:28] dalitom: it has been a long day
[21:32:33] apeiros: lol :) well, glad you figured your problem.
[21:32:33] mr-robert: has joined #ruby
[21:32:58] darthThorik: has joined #ruby
[21:32:59] jnix: has joined #ruby
[21:33:59] ggherdov: has joined #ruby
[21:35:13] nadir: has joined #ruby
[21:35:42] jeffreylevesque: has joined #ruby
[21:37:07] PaulCapestany: has joined #ruby
[21:45:00] oleo: has joined #ruby
[21:47:40] vichib: has joined #ruby
[21:49:59] jottr: has joined #ruby
[21:50:45] elphe: has joined #ruby
[21:52:09] orbyt_: has joined #ruby
[21:52:40] oleo: has joined #ruby
[21:53:48] akkad: talntid see austin ruby channel
[21:54:46] alfiemax: has joined #ruby
[21:55:05] dinfuehr: has joined #ruby
[21:55:58] jobewan: has joined #ruby
[21:56:50] Vapez_: has joined #ruby
[22:02:03] jobewan: has joined #ruby
[22:02:52] alfiemax: has joined #ruby
[22:05:28] nicesignal: has joined #ruby
[22:05:28] jottr: has joined #ruby
[22:08:09] cdg: has joined #ruby
[22:10:13] Vapez: has joined #ruby
[22:19:49] dviola: has joined #ruby
[22:24:31] J4ck_4l0n3: has joined #ruby
[22:25:26] DoubleMalt: has joined #ruby
[22:25:27] darkhanb: has joined #ruby
[22:25:41] J4ck_4l0n3: is ruby good for desktop applications? i see it used always with raiks, but it has a role in desktop/commandline programming on not?
[22:28:33] Zarthus: i've heard of ruby gtk, but i don't know of any popular gui ruby applications
[22:28:42] Zarthus: it has plenty of use in CLI programming
[22:29:39] J4ck_4l0n3: Zarthus: what use?
[22:29:39] Zarthus: just download any gem at all that ships a binary, chances are it has a cli interface
[22:29:54] J4ck_4l0n3: is there rubyQT?
[22:30:06] Zarthus: can't you google that easily? :P
[22:30:17] J4ck_4l0n3: lol ur right XD
[22:32:05] the_f0ster: has joined #ruby
[22:35:47] craysiii: i'm learning about TomDoc, but a little confused about the syntax to use when a method has named parameters. am i doing it right? i don't feel so. https://gist.github.com/craysiii/e810369dcc59da42c19cb0d3114cd07a
[22:36:10] talntid: akkad what austin ruby channel?
[22:36:37] jobewan: has joined #ruby
[22:40:16] elphe: has joined #ruby
[22:43:14] alfiemax: has joined #ruby
[22:52:17] jenrzzz: has joined #ruby
[22:52:17] jenrzzz: has joined #ruby
[22:57:27] discopatrick: has joined #ruby
[23:02:15] jobewan: has joined #ruby
[23:03:18] bkxd: has joined #ruby
[23:05:18] Riddell: has joined #ruby
[23:06:30] ledestin: has joined #ruby
[23:14:53] cdg: has joined #ruby
[23:19:32] J4ck_4l0n3: has left #ruby: ("WeeChat 2.0.1")
[23:19:32] haxx0r: has joined #ruby
[23:22:54] jenrzzz_: has joined #ruby
[23:24:27] mtkd: has joined #ruby
[23:26:14] jwheare: has joined #ruby
[23:29:47] ghoti: has joined #ruby
[23:31:22] Toggi3: has joined #ruby
[23:32:27] vichib: has joined #ruby
[23:33:40] orbyt_: has joined #ruby
[23:36:38] jobewan: has joined #ruby
[23:41:25] JusticeFries: has joined #ruby
[23:44:25] alfiemax: has joined #ruby
[23:45:04] aesthetikx: has joined #ruby
[23:55:13] despai: has joined #ruby
[23:57:46] elphe: has joined #ruby
[23:58:12] johno84: has joined #ruby
[23:58:41] despai_: has joined #ruby