« Back to channel list

#ruby - 25 September 2017

« Back 1 day Forward 1 day »
[00:01:26] dionysus69: has joined #ruby
[00:02:31] FastJack: has joined #ruby
[00:05:06] balazs_: has joined #ruby
[00:05:06] charliesome_: has joined #ruby
[00:06:58] MrSparkle: has joined #ruby
[00:10:28] orbyt_: has joined #ruby
[00:11:42] naprimer: has joined #ruby
[00:13:51] minimalism: has joined #ruby
[00:22:01] snsei1: has joined #ruby
[00:26:55] Rodya_: has joined #ruby
[00:34:38] Defenestrate: has joined #ruby
[00:34:40] Defenestrate: has joined #ruby
[00:39:41] cschneid_: has joined #ruby
[00:40:04] snsei: has joined #ruby
[00:48:02] imode: has joined #ruby
[00:52:26] milardovich: has joined #ruby
[01:05:00] learningruby: has joined #ruby
[01:05:50] bronson: has joined #ruby
[01:07:24] learningruby: What is the difference between (1) a class method, and (2) an instance method of Class? For example, the method "new" as in Person.new, is it a class method of Person or an instance method of Class?
[01:08:30] gizmore|2: has joined #ruby
[01:10:12] tamouse__: learningRuby: *very* simplisitcally, a class method is one you call on the class, such as .new
[01:10:35] tamouse__: an instance method is called on an instance of the class, such as person.name
[01:11:00] tamouse__: i say very simplistically, because it can get a lot more complicated
[01:11:24] nobitanobi: has joined #ruby
[01:12:36] al2o3-cr: >> Array.method(:new)
[01:12:37] ruby[bot]: al2o3-cr: # => #<Method: Class#new> (https://eval.in/867389)
[01:13:17] moei: has joined #ruby
[01:13:19] learningruby: tamouse__: but any class is an instance of Class
[01:13:35] tamouse__: how deep down this hole do you need to go?
[01:14:10] tamouse__: al2o3-cr's showing that the .new method on Array is an instance method of Class
[01:14:11] learningruby: I don't know, I'm just confused haha
[01:14:17] ornerymoose: has joined #ruby
[01:14:24] tamouse__: do you need to know it specifically, right now?
[01:14:45] nankyokusei: has joined #ruby
[01:15:01] learningruby: I'm trying to have a good understanding of the language.
[01:15:14] tamouse__: you'll get that after you write a fair bit of it
[01:15:29] elomatreb: >> class Person; end; Person.method(:new).owner
[01:15:30] ruby[bot]: elomatreb: # => Class (https://eval.in/867390)
[01:16:08] elomatreb: Oh, I missed a bit. Ignore me
[01:17:20] learningruby: so, I guess that .new is an instance method of Class that is inherited by every class, but a class method is something defined in the class that will be invoked as if it was an instance method of Class... correct me if I'm wrong
[01:18:05] zautomata: has joined #ruby
[01:18:33] learningruby: oh, and I guess a class method is a singleton method of the class that defines it..
[01:20:46] elomatreb: There is no fundamental difference between class objects and instances, it's "just" a system
[01:21:31] learningruby: elomatreb: yeah, that's a good point! it's just abstractions, right?
[01:22:11] elomatreb: You can reimplement a system like the Class.new gets you an instance by yourself, entirely, if you want
[01:23:38] tamouse__: https://github.com/ruby/ruby/blob/trunk/class.c#L15
[01:24:52] DTZUZO: has joined #ruby
[01:30:33] Ouchy: has joined #ruby
[01:32:31] coderphive: has joined #ruby
[01:39:10] ornerymoose: has joined #ruby
[01:48:22] d^sh: has joined #ruby
[01:54:42] nowhere_man: has joined #ruby
[01:55:50] hinbody: has joined #ruby
[01:59:54] d^sh: has joined #ruby
[02:06:38] Jameser: has joined #ruby
[02:07:07] beilabs: has joined #ruby
[02:08:26] __Yiota: has joined #ruby
[02:13:31] cschneid_: has joined #ruby
[02:14:19] jnollette: has joined #ruby
[02:15:10] arescorpio: has joined #ruby
[02:17:43] gusrub: has joined #ruby
[02:18:23] cschneid_: has joined #ruby
[02:19:08] coderphive: has joined #ruby
[02:20:40] nankyoku_: has joined #ruby
[02:21:10] chihhsin: has joined #ruby
[02:24:37] zack6849: has joined #ruby
[02:24:37] zack6849: has joined #ruby
[02:27:05] raz: has joined #ruby
[02:27:12] harfangk: has joined #ruby
[02:30:40] creat: has joined #ruby
[02:36:29] ahrs: has joined #ruby
[02:39:27] astrobunny: has joined #ruby
[02:48:57] __Yiota: has joined #ruby
[02:53:17] s2013: has joined #ruby
[03:05:06] harfangk: has joined #ruby
[03:06:35] bronson: has joined #ruby
[03:06:40] nowhere_man: has joined #ruby
[03:20:43] cschneid_: has joined #ruby
[03:27:21] A124: has joined #ruby
[03:29:18] milardovich: has joined #ruby
[03:37:30] gix: has joined #ruby
[03:41:59] __Yiota: has joined #ruby
[03:42:41] Defenestrate: has joined #ruby
[03:42:41] Defenestrate: has joined #ruby
[03:42:42] bronson: has joined #ruby
[03:53:47] claw: has joined #ruby
[03:55:11] Averna: has joined #ruby
[04:00:05] harai: has joined #ruby
[04:03:45] Rodya_: has joined #ruby
[04:06:27] Averna: has joined #ruby
[04:09:37] cschneid_: has joined #ruby
[04:09:57] cschneid_: has joined #ruby
[04:14:05] knight33: has joined #ruby
[04:24:17] s2013: has joined #ruby
[04:30:22] cgfbee: has joined #ruby
[04:39:38] dinfuehr: has joined #ruby
[04:44:13] dminuoso_: has joined #ruby
[04:54:12] _whitelogger: has joined #ruby
[04:56:54] beilabs: has joined #ruby
[05:04:22] beilabs_: has joined #ruby
[05:07:49] nowhere_man: has joined #ruby
[05:12:47] nobitanobi: has joined #ruby
[05:13:36] Ouchy`w: has joined #ruby
[05:16:59] Ouchy: has joined #ruby
[05:18:25] rabajaj: has joined #ruby
[05:24:15] uZiel: has joined #ruby
[05:26:47] ur5us: has joined #ruby
[05:29:48] mkali: has joined #ruby
[05:32:01] kapil___: has joined #ruby
[05:36:26] biberu: has joined #ruby
[05:37:07] ur5us: has joined #ruby
[05:40:38] Ouchy`w: has joined #ruby
[05:40:51] aupadhye: has joined #ruby
[05:44:13] Ouchy: has joined #ruby
[05:46:49] webguynow: has joined #ruby
[05:57:48] rabajaj: has joined #ruby
[06:00:00] Dimik: has joined #ruby
[06:00:24] scatterp: i dont understand how its possible that when i comment line 117 here https://github.com/scatterp2/peatio/tree/testing01/app/api/api_v3/executor.rb main.thread runs when i uncomment it main.thread does not run since its threaded it should not effect the main.thread the threaded code is blocking unexpectedly
[06:06:03] quobo: has joined #ruby
[06:07:17] havenwood: scatterp: what happens if you comment out line 108?
[06:07:54] havenwood: but leave line 117
[06:08:00] havenwood: uncommented
[06:09:25] havenwood: scatterp: you'd get a lot easier to get help if you can extract out a minimal reproducible testcase - no code more than is needed to reproduce the error
[06:09:49] havenwood: you'd find it a lot easier to get help, i mean**
[06:14:12] andikr: has joined #ruby
[06:14:37] scatterp: havenwood if i comment 108 not 117 it still blocks if i comment 107 it does not block
[06:14:57] scatterp: i will try my best to build a testcase some how
[06:15:55] matthewd: Without looking at any code, I don't like the sound of this library
[06:17:05] dminuoso_: ACTION throws a lemma in havenwood's direction
[06:17:09] scatterp: matthewd me also.. and i looked at a lot (all) of google under various keywords but that is not the point a thread should be a thread i have been reading this morning that a thread is not nessasarilly isolated in ruby and reading also about race conditions
[06:18:46] matthewd: Camelcase methods... maybe SWIG generated? Basically one gem release, years ago. Sounds more like someone ticked a "has ruby version available" checkbox than a serious attempt to provide something usable.
[06:21:45] scatterp: i thought camelcase was the corrrect way to define a method (based on the ruby class i took last week)
[06:23:53] Azure: has joined #ruby
[06:27:56] dminuoso_: matthewd: Indeed. It's fully swigged. https://github.com/quickfix/quickfix/tree/master/src/ruby
[06:28:43] dminuoso_: scatterp: That's a good indicator that it was a bad class, because the Ruby standard is snake_case for methods and variables, InitialCase for constants.
[06:29:30] dminuoso_: Or is it called InitialCaps? idk
[06:33:59] scatterp: oh ok i learned something new :)
[06:34:10] scatterp: i think i might have an idea whats going wrong ..
[06:35:31] dminuoso_: Or actually SCREAMING_CASE for constants inside modules/classes, and UpperCamelCase for class/module constants.
[06:35:39] scatterp: since the GIL does not support true parallelism when the quickfix opens a socket and listens for a connection (tcp/ip stuff) it causes a race condition becuse it needs all of thread time to do that
[06:36:03] scatterp: and threads in ruby are not native threads
[06:36:04] dminuoso_: scatterp: Wrong. The GIL is released on blocking IO.
[06:36:11] dminuoso_: And threads in ruby are native threads.
[06:36:30] matthewd: That matches my theory, FWIW
[06:36:54] matthewd: dminuoso_: Some rando SWIGged library doing IO seems unlikely to be releasing the GVL.
[06:37:02] dminuoso_: Haha. Good point
[06:38:05] nobitanobi: has joined #ruby
[06:38:22] matthewd: scatterp: If you must use this library... does it have a mode where it can help with the parsing, but leave the actual IO up to you?
[06:41:03] scatterp: matthewd the thing is i am trying to connect to (from) https://github.com/ctubio/Krypto-trading-bot/ which also uses the same library (successfully)
[06:41:29] scatterp: no it doesnt have a mode like that
[06:41:53] paranoicsan: has joined #ruby
[06:42:08] matthewd: Well that's written in C++, so I doubt it's using this gem
[06:42:28] scatterp: this gem is a wrapper around the c++ code from what i can understand
[06:43:00] matthewd: I'm making no claim about the quality of the underlying C++ library. I'm claiming it is a bad wrapper.
[06:44:51] scatterp: is it possible to bypass the gvl and just let it run in its own space if it works it works if it crashes it crashes and the main.thread continues like every other thing running on the operating system
[06:45:23] scatterp: like a cronjob to force the gvl to unlock or something :/
[06:45:45] matthewd: The lock isn't there for decoration
[06:46:28] matthewd: You can try using this library in a separate process, and then communicate back to the main one
[06:47:11] scatterp: hmm yeah good idea
[06:47:31] scatterp: how would they talk
[06:47:43] scatterp: some kind of telnet style chat ?
[06:49:04] matthewd: Possibly. I don't know enough about what this is supposed to be doing.
[06:49:53] scatterp: quickfix is an implementation of FIX API specification for financial communications
[06:50:05] anisha: has joined #ruby
[06:50:16] scatterp: peatio is a trading exchange crypto coins with its own api (which sucks)
[06:50:46] scatterp: krypto-trading-bot is a FIX API compatable bot that makes trading decisions
[06:51:37] techn1cs: has joined #ruby
[06:52:04] milardovich: has joined #ruby
[06:57:04] dminuoso_: >> <scatterp> is it possible to bypass the gvl and just let it run in its own space if it works it works if it crashes it crashes and the main.thread continues like every other thing running on the operating system
[06:57:08] dminuoso_: Yes. It's called processes.
[07:00:14] conta: has joined #ruby
[07:02:18] xcesariox: has joined #ruby
[07:05:54] beilabs: has joined #ruby
[07:11:05] tAn: has joined #ruby
[07:13:12] eroux: has joined #ruby
[07:19:34] InfinityFye: has joined #ruby
[07:22:13] burgestrand: has joined #ruby
[07:23:24] uZiel: has joined #ruby
[07:24:27] bigkevmcd: has joined #ruby
[07:26:55] tohuw: has joined #ruby
[07:26:55] tohuw: has joined #ruby
[07:27:44] Silthias: has joined #ruby
[07:28:53] claudiuinberlin: has joined #ruby
[07:29:39] mark_66: has joined #ruby
[07:33:48] dionysus69: has joined #ruby
[07:34:02] Ouchy: has joined #ruby
[07:34:05] Ouchy`w: has joined #ruby
[07:37:29] claudiuinberlin: has joined #ruby
[07:40:10] phaul: has joined #ruby
[07:41:04] TheBrayn: has joined #ruby
[07:46:05] vondruch: has joined #ruby
[07:47:51] tohuw: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[07:48:24] scatterp: when run directly ruby executor.rb (removing peatio and simplifying the problem) it crashes segfault this suggests as matthewd said the wrapper is bad since others reported success with the jruby version
[07:50:52] cloutz: has joined #ruby
[07:52:46] govg: has joined #ruby
[07:55:20] elsevero: has joined #ruby
[07:55:41] Lyubo1: has joined #ruby
[07:58:57] burgestrand: Yay, segfaults \o/
[07:58:59] Mortomes|Work: has joined #ruby
[07:59:17] mikecmpbll: has joined #ruby
[08:04:28] anisha: has joined #ruby
[08:13:35] marr: has joined #ruby
[08:13:42] xcesariox: has joined #ruby
[08:14:49] ams__: has joined #ruby
[08:23:41] Nahra: has joined #ruby
[08:25:45] Aloy: has joined #ruby
[08:27:00] Cohedrin_: has joined #ruby
[08:28:42] konsolebox: has joined #ruby
[08:30:49] mim1k: has joined #ruby
[08:34:12] aufi: has joined #ruby
[08:40:05] milardovich: has joined #ruby
[08:42:44] claudiuinberlin: has joined #ruby
[08:47:41] claudiuinberlin: has joined #ruby
[08:55:30] jinie: has joined #ruby
[08:57:51] zautomata: has joined #ruby
[08:58:35] lxsameer: has joined #ruby
[09:00:45] ben_: has joined #ruby
[09:02:04] drptbl: has joined #ruby
[09:02:15] morfin: has joined #ruby
[09:02:41] morfin: how can i ensude Sidekiq web is using proper settings?
[09:04:46] hs366: has joined #ruby
[09:09:59] TomyWork: has joined #ruby
[09:12:28] anisha: has joined #ruby
[09:12:41] jaruga: has joined #ruby
[09:16:47] montyboy: has joined #ruby
[09:18:41] surrounder: has joined #ruby
[09:19:21] benjen: has joined #ruby
[09:22:17] bruce_lee: has joined #ruby
[09:22:17] bruce_lee: has joined #ruby
[09:25:26] paranoic_: has joined #ruby
[09:31:27] sepp2k: has joined #ruby
[09:35:26] paranoicsan: has joined #ruby
[09:36:06] octomancer: has joined #ruby
[09:39:44] mark_66: has left #ruby: ("PART #elixir-lang :PART #crystal-lang :PONG :orwell.freenode.net")
[09:49:47] Serpent7776: has joined #ruby
[09:49:50] kaibro: has joined #ruby
[09:56:25] phaul: has joined #ruby
[10:01:04] claudiuinberlin: has joined #ruby
[10:02:27] enterprisey: has joined #ruby
[10:05:12] paranoicsan: has joined #ruby
[10:10:17] claudiuinberlin: has joined #ruby
[10:10:36] uZiel: has joined #ruby
[10:23:39] anisha_: has joined #ruby
[10:27:07] Dry_Lips: has joined #ruby
[10:27:07] Dry_Lips: has joined #ruby
[10:27:08] charliesome: has joined #ruby
[10:28:14] milardovich: has joined #ruby
[10:29:59] milardovich: has joined #ruby
[10:31:07] astrobun_: has joined #ruby
[10:33:59] t-recx: has joined #ruby
[10:48:39] kapil___: has joined #ruby
[10:50:40] bronson: has joined #ruby
[10:58:13] paranoicsan: has joined #ruby
[11:01:21] ben_: has joined #ruby
[11:04:28] andikr: has joined #ruby
[11:07:53] charliesome: has joined #ruby
[11:10:16] charliesome_: has joined #ruby
[11:13:02] dminuoso_: has joined #ruby
[11:15:25] alveric: has joined #ruby
[11:19:57] tvw: has joined #ruby
[11:25:10] numbdewd: has joined #ruby
[11:29:57] anisha: has joined #ruby
[11:37:54] claudiuinberlin: has joined #ruby
[11:42:10] noobineer: has joined #ruby
[11:50:48] bronson: has joined #ruby
[11:51:01] duckpupp1: has joined #ruby
[11:58:43] fChanX: has joined #ruby
[12:02:03] wald0: has joined #ruby
[12:02:13] dinfuehr: has joined #ruby
[12:02:43] milardovich: has joined #ruby
[12:02:56] mjolnird: has joined #ruby
[12:03:03] milardovich: has joined #ruby
[12:04:54] claudiuinberlin: has joined #ruby
[12:11:12] mostlybadfly: has joined #ruby
[12:11:25] phaul: has joined #ruby
[12:12:15] Sembei: has joined #ruby
[12:16:46] marr123: has joined #ruby
[12:16:50] ben_: has joined #ruby
[12:19:49] __Yiota: has joined #ruby
[12:20:18] ornerymoose: has joined #ruby
[12:21:52] bruno-: has joined #ruby
[12:23:22] d10n-work: has joined #ruby
[12:24:24] mim1k: has joined #ruby
[12:26:17] ornerymoose: has joined #ruby
[12:27:53] FastJack: has joined #ruby
[12:28:05] shinnya: has joined #ruby
[12:28:09] claudiuinberlin: has joined #ruby
[12:30:07] bmurt: has joined #ruby
[12:31:45] mson: has joined #ruby
[12:38:06] milardovich: has joined #ruby
[12:39:57] marr: has joined #ruby
[12:42:55] milardovich: has joined #ruby
[12:44:31] Kuukunen: has joined #ruby
[12:45:02] aliciaxx: has joined #ruby
[12:46:54] aliciaxx: hi guys. very new to ruby. can you tell me why this merge loses active_slave etc? https://gist.github.com/tomdoherty/cfc3412bdf457ca46a55fd1cd6364e57
[12:49:52] tcopeland: has joined #ruby
[12:51:55] daveomcd: has joined #ruby
[12:52:17] teatime: aliciaxx: it doesn't do "deep merge" or whatever you would call it
[12:53:20] teatime: aliciaxx: when the same key exists in both hashes (in this case bond0) the new value overwrites, they aren't merged
[12:57:25] skweek: has joined #ruby
[12:59:48] jphase: has joined #ruby
[13:00:17] mim1k_: has joined #ruby
[13:01:03] griffindy: has joined #ruby
[13:06:54] alex``: has joined #ruby
[13:07:41] cdg: has joined #ruby
[13:10:59] burgestrand: has joined #ruby
[13:12:11] orbyt_: has joined #ruby
[13:14:11] ben_: has joined #ruby
[13:16:30] webguynow: has joined #ruby
[13:17:25] gnufied: has joined #ruby
[13:17:37] charliesome: has joined #ruby
[13:23:55] webguynow: has joined #ruby
[13:26:12] huyderman: has joined #ruby
[13:28:56] scatterp: how can i start a thread that runs under jruby instead of ruby ?
[13:29:24] Papierkorb: You want to spawn a JRuby thread from MRI?
[13:29:44] Papierkorb: Not possible. You can start a JRuby process from MRI, or just use JRuby from the start
[13:30:17] fChanX: What is JRuby?
[13:30:24] fChanX: Sorry for newbieness.
[13:30:38] scatterp: fChanX some java+ruby thing
[13:31:02] Papierkorb: A hack would be starting a JRuby process where you use some kind of custom ruby code loader (Controlled through a protocol like drb), which you then use to feed the ruby code in. But, I don't recommend this. Just use JRuby
[13:31:02] havenwood: scatterp: You can use interprocess communication or a message queue to communicate between processes, if that's what you need. You can spawn a JRuby process from MRI. What are you trying to do?
[13:31:11] scatterp: ok so if i have my first appication lets say helloworld and i start a jruby process that runs helloworld2 is there a way they can share variables
[13:31:23] havenwood: scatterp: IPC
[13:31:46] scatterp: havenwood quickfix_ruby has a broken wrapper the quickfix_jruby version works
[13:31:50] havenwood: Probably a message queue of some sort or DRb like Papierkorb said.
[13:32:05] havenwood: fChanX: It's an implementation of Ruby on the JVM.
[13:32:10] claudiuinberlin: has joined #ruby
[13:32:17] Papierkorb: scatterp: JRuby is a complete Ruby implementation on top of the JVM, giving you access to many ruby gems (Excluding those which use native extensions), and to all Java libraries, at once
[13:32:18] scatterp: havenwood peatio the exchange is runing in ruby and fix-engine (depends quickfix_jruby) is runing in jruby
[13:32:30] havenwood: fChanX: It's a fast, well-respected implementation that stays pretty up-to-date with the reference implementation.
[13:32:40] scatterp: havenwood its fast ?
[13:32:47] havenwood: scatterp: JRuby?
[13:32:56] Papierkorb: Faster than MRI for most workloads
[13:33:04] Papierkorb: But also more resource hungry
[13:33:08] havenwood: It has a slow startup but optimizes nicely.
[13:33:15] scatterp: oh i thought it was slow maybe i should be trying to run peatio in jruby some day
[13:33:17] havenwood: Its JIT takes a bit of RAM.
[13:33:18] fChanX: Thanks :)
[13:34:00] DLSteve_: has joined #ruby
[13:34:53] scatterp: i am still here just interpreting all that was said..
[13:37:37] scatterp: ok will test the rest of the code base on jruby ...
[13:37:48] scatterp: meanwhile how do i start a JRuby process where you use some kind of custom ruby code loader (Controlled through a protocol like drb), which you then use to feed the ruby code in. ?
[13:38:15] scatterp: havenwood when i finally worked out how to reduce my problem (like you suggested) it was a segfault that caused the issue.
[13:38:32] Sh3rl0cK: has joined #ruby
[13:38:49] shime: has joined #ruby
[13:39:04] Papierkorb: scatterp: By writing the code for it. That are multiple problems. You can try building it, but I don't see much actual use for it.
[13:39:07] shime: has joined #ruby
[13:39:58] apparition: has joined #ruby
[13:40:16] mim1k: has joined #ruby
[13:40:17] Papierkorb: scatterp: First and foremost, there are many many security issues that have to be considered when building something like this (for production use). Just the knowledge on this could fill a book.
[13:41:51] scatterp: yes the FIX implementation will only be available to a specific endpoint this will be controlled via firewall and will be a local system connecting 127.0.0.1
[13:42:02] Papierkorb: scatterp: You can build it, as challenge for you ("research purposes"). In fact, if you're interested, you totally should. Just know that I can't blindly recommend this approach for production use (e.g., if you just started in a company as intern or otherwise beginner). For home use (That is, on your local computer, NOT on some webserver you rented).
[13:42:10] scatterp: the peatio project has had a full security review recently which is not enough..
[13:42:27] scatterp: so i do plan to test it with some fuzzers and do some checks as well
[13:42:36] Papierkorb: Oh if only an iptables entry would actually fix the security issues of that
[13:42:58] rfoust: has joined #ruby
[13:43:09] scatterp: security is very important i agree but i cant protect my wallet before i can walk outside :)
[13:43:13] knight33: has joined #ruby
[13:43:51] scatterp: so i have to make it function first also its opensource so its also available for others to review
[13:46:37] mim1k_: has joined #ruby
[13:46:42] griffindy: has joined #ruby
[13:48:56] tAn: has joined #ruby
[13:49:39] Ishido: has joined #ruby
[13:51:48] bronson: has joined #ruby
[13:52:12] glcx: has joined #ruby
[13:52:12] glcx: has joined #ruby
[13:53:07] oleo: has joined #ruby
[13:53:13] joast: has joined #ruby
[13:58:18] elbuki: has joined #ruby
[14:00:05] fChanX: has left #ruby: ("Leaving")
[14:03:34] __Yiota: has joined #ruby
[14:10:25] ShalokShalom_: has joined #ruby
[14:10:53] paranoicsan: has joined #ruby
[14:13:36] Ouchy: has joined #ruby
[14:14:12] Ouchy`w: has joined #ruby
[14:15:00] heftig: has joined #ruby
[14:15:21] mkali: has joined #ruby
[14:15:36] theunraveler: has joined #ruby
[14:16:04] knight33: has joined #ruby
[14:16:47] __Yiota: has joined #ruby
[14:16:55] darix: has joined #ruby
[14:17:14] claudiuinberlin: has joined #ruby
[14:17:51] Rapture: has joined #ruby
[14:19:07] webguynow: has joined #ruby
[14:19:23] oleo: has joined #ruby
[14:20:55] pskosinski: I wasn't using Ruby for long time. I think I used to use input = gets.chomp and it was working. Now I get error: undefined method `chomp' for nil:NilClass. Anything changed in Ruby or I remember something wrong? Why doesn't it work?
[14:21:15] ResidentBiscuit: has joined #ruby
[14:21:20] pskosinski: Why is gets returning nil instead of a string
[14:23:36] uZiel: has joined #ruby
[14:23:54] chouhoulis: has joined #ruby
[14:24:49] bmurt: has joined #ruby
[14:25:57] teatime: pskosinski: gets has interesting behavior if your script has arguments, you probably want to STDIN.gets explicitly even if that isn't your problem
[14:27:09] teatime: pskosinski: are you piping to your program?
[14:27:19] pskosinski: teatime: I just realized my script works… ah ;) yes, I'm piping
[14:27:29] pskosinski: works when typing into terminal, doesn't when piping
[14:27:42] teatime: what are you piping
[14:27:52] teatime: gets returns nil on EOF
[14:28:04] pskosinski: echo "1\n2\n3" | ruby test.rb
[14:28:42] pskosinski: So how can I read from pipe?
[14:31:03] teatime: well that should work afaict.
[14:31:58] teatime: that way of interpolating \n doesn't work in shell jsyk
[14:32:22] teatime: use printf instead of echo
[14:32:44] pskosinski: yeah, I forgot about echo -e
[14:33:00] teatime: pskosinski: do you get the first line(s) fine and just get the nil afterward? that's the expected behavior, gets returns nil on EOF
[14:33:40] Asher: has joined #ruby
[14:35:41] pskosinski: teatime: Yes, seems like it's what happenes, just undefined method chomp for nil class on the end, thank you for help! Looks like I need to rescue from that
[14:36:03] teatime: pskosinski: just need something like, while line = STDIN.gets
[14:37:17] pskosinski: teatime: Nice, that's even easier, thanks :)
[14:39:27] rowend: has joined #ruby
[14:40:36] chouhoulis: has joined #ruby
[14:42:27] dinfuehr: has joined #ruby
[14:45:15] polishdub: has joined #ruby
[14:53:30] bronson: has joined #ruby
[14:53:34] oleo: has joined #ruby
[14:54:12] raynold: has joined #ruby
[15:00:26] dtzuzu: has joined #ruby
[15:01:32] charliesome: has joined #ruby
[15:02:21] s2013: has joined #ruby
[15:02:27] claudiuinberlin: has joined #ruby
[15:04:29] mim1k: has joined #ruby
[15:06:03] DTZUZO: has joined #ruby
[15:11:38] pskosinski: >> "This is\na test".split(" ")
[15:11:39] ruby[bot]: pskosinski: # => ["This", "is", "a", "test"] (https://eval.in/867921)
[15:11:46] gusrub: has joined #ruby
[15:12:07] elbuki: has joined #ruby
[15:12:16] pskosinski: How can I split string on spaces, literally spaces, not any other "whitespace" character? I want to split on spaces but not on new lines.
[15:12:29] FahmeF: has joined #ruby
[15:12:56] pskosinski: It's weird behavior
[15:13:01] gizmore|2: pskosinski: regular expression to split could be / +/
[15:13:33] gizmore|2: but else your code above looks ok to me
[15:13:40] pskosinski: gizmore|2: Ah! Thanks! Are you WeChall guy?
[15:13:49] gizmore|2: heh. yeah :)
[15:14:07] pskosinski: Nice, I'm trying to solve a few challenges. :)
[15:14:21] teatime: pskosinski: like, exercises?
[15:14:29] gizmore: here is a ruby one: https://www.wechall.net/challenge/railsbin
[15:14:32] dtzuzu: has joined #ruby
[15:14:38] gizmore: not released yet, because it might be fixed
[15:14:41] DTZUZO: has joined #ruby
[15:15:10] chouhoul_: has joined #ruby
[15:15:50] pskosinski: Probably too hard to me but will try one day. ;)
[15:17:14] cabotto: has joined #ruby
[15:18:01] bruno-: has joined #ruby
[15:19:39] DipoleHourglass: has joined #ruby
[15:23:49] dextrey: has joined #ruby
[15:25:21] cpruitt: has joined #ruby
[15:26:46] FahmeF: has joined #ruby
[15:26:49] ephemera_: has joined #ruby
[15:28:54] mim1k: has joined #ruby
[15:29:37] meadmoon: has joined #ruby
[15:29:51] am55: has joined #ruby
[15:29:51] am55: has joined #ruby
[15:35:22] snath: has joined #ruby
[15:35:34] snath: has left #ruby: ()
[15:37:02] andikr: has joined #ruby
[15:42:18] chouhoulis: has joined #ruby
[15:42:48] tamouse__: has joined #ruby
[15:44:36] mim1k: has joined #ruby
[15:45:31] dionysus69: has joined #ruby
[15:46:06] MyMind: has joined #ruby
[15:52:09] gusrub: has joined #ruby
[15:55:11] voiceftp: has joined #ruby
[15:56:26] milardovich: has joined #ruby
[15:56:51] troys: has joined #ruby
[15:58:09] shime: has joined #ruby
[15:58:44] cagomez: has joined #ruby
[16:01:40] DTZUZO: has joined #ruby
[16:02:37] milardovich: has joined #ruby
[16:02:55] dtzuzu: has joined #ruby
[16:03:30] ule: Whats the best way to convert "true
[16:04:28] marxarelli: has joined #ruby
[16:04:49] ule: "true" to true ?
[16:05:05] ule: (String) to Bool)
[16:05:48] al2o3-cr: ule: !!"true"
[16:06:06] Ober: are there any ruby gems that install non-ruby items? say c libs, or even items written in another language?
[16:06:25] ule: al2o3-cr: I'm gonna test tahnks
[16:06:28] ule: thanks*
[16:08:54] ule: al2o3-cr: doesnt work for "false"
[16:09:12] ule: after upgrading to rails 4.2, now boolean params are failing since its converting somehow to strings
[16:09:14] teatime: ule: "false" is true :)
[16:09:23] matthewd: ule: "true" == "true"
[16:09:23] ule: you know what I mean
[16:09:38] ule: return true if self == true || self =~ (/^(true|t|yes|y|1)$/i)
[16:09:44] ule: return false if self == false || self.blank? || self =~ (/^(false|f|no|n|0)$/i)
[16:09:47] ule: I need something like this
[16:09:59] ule: I was actuallt expecting that rails have something like .to_bool
[16:09:59] Sylario: has joined #ruby
[16:10:07] matthewd: Ober: There might be some, but if you're asking whether that's a normal/sane thing to do: no.
[16:10:12] ule: ruby/rails doesn't matter
[16:12:15] paranoicsan: has joined #ruby
[16:13:23] ljarvis: ule: TRUE_VALUES = Set.new %w(true yes 1 t); TRUE_VALUES.include?(value.to_s) -- same with false
[16:13:42] Ober: matthewd so no libffi/clibs ever installed?
[16:15:18] r3QuiEm_cL: has joined #ruby
[16:15:20] ljarvis: ule: if you're using rails, just use `ActiveRecord::Type::Boolean.new.cast(value)`
[16:15:42] SpikeMaster: has joined #ruby
[16:15:43] ule: ljarvis: +++
[16:16:02] oleo: has joined #ruby
[16:17:04] ldepandis: has joined #ruby
[16:17:29] ule: undefined method `cast' for #<ActiveRecord::Type::Boolean:0x007fc4800d1ff0>
[16:18:10] havenwood: Ober: RubyGems do have extensions in a variety of other languages.
[16:18:26] ljarvis: ule: what rails version?
[16:18:45] ljarvis: ule: maybe try `ActiveRecord::ConnectionAdapters::Column.value_to_boolean(value)`
[16:18:50] ljarvis: and then upgrade your rails version
[16:19:20] ule: Thats from 2017/july
[16:19:56] ule: ActiveRecord::ConnectionAdapters::Column.value_to_boolean also fails
[16:20:05] ule: value_to_boolean not valid
[16:20:54] matthewd: I really recommend against using Rails [semi-] internals for this
[16:21:23] ule: I'm gonna try adding this to a global includer
[16:21:24] ule: return true if self == true || self.to_s.strip =~ /^(true|yes|y|1)$/i
[16:21:25] ule: return false
[16:21:37] ule: like ApplicationController
[16:21:41] bmurt: has joined #ruby
[16:22:07] matthewd: Consider whether it makes sense to treat all unknown values as false
[16:22:43] ule: oh yeah
[16:22:49] ule: good point
[16:23:16] ljarvis: ule: dont do that
[16:23:28] imode: has joined #ruby
[16:23:34] ljarvis: if you dont want to use rails stuff, use my first solution
[16:23:40] ljarvis: e.g. TRUE_VALUES = Set.new %w(true yes 1 t); TRUE_VALUES.include?(value.to_s)
[16:23:55] ljarvis: and then opposite for false
[16:23:58] ljarvis: everything else = nil
[16:26:52] PaulCapestany: has joined #ruby
[16:31:18] chouhoul_: has joined #ruby
[16:31:47] nicesignal: has joined #ruby
[16:33:26] FahmeF: has joined #ruby
[16:34:00] ule: found the correct rails version that does the trick here
[16:34:03] ule: ActiveRecord::Type::Boolean.new.type_cast_from_user
[16:35:51] phaul: has joined #ruby
[16:40:44] Puffball: has joined #ruby
[16:42:17] dtzuzu: has joined #ruby
[16:42:21] DTZUZO: has joined #ruby
[16:42:26] al2o3-cr: why doesn't "\"".encode(xml: :text) convert to "&quot;"?
[16:43:48] al2o3-cr: >> "&<>\"".encode(xml: :text)
[16:43:49] ruby[bot]: al2o3-cr: # => "&amp;&lt;&gt;\"" (https://eval.in/867952)
[16:45:12] bruno-_: has joined #ruby
[16:46:09] teatime: al2o3-cr: the docs are pretty explicit about what it does https://ruby-doc.org/core-2.2.0/String.html#method-i-encode
[16:46:12] al2o3-cr: oh, it uses attr value and double quotes
[16:46:48] teatime: as for why, I'd guess because <, >, and & are the things that can really mess up your xml/html
[16:47:18] al2o3-cr: >> "&<>\"".encode(xml: :attr)
[16:47:19] ruby[bot]: al2o3-cr: # => "\"&amp;&lt;&gt;&quot;\"" (https://eval.in/867957)
[16:47:37] al2o3-cr: i understand now :P
[16:47:46] gusrub: has joined #ruby
[16:48:57] al2o3-cr: &ri String#encode teatime
[16:48:57] `derpy: teatime: http://ruby-doc.org/core-2.4.1/String.html#method-i-encode
[16:49:19] al2o3-cr: use the bot it's up to date.
[16:49:39] mim1k: has joined #ruby
[16:50:18] dextrey: has joined #ruby
[16:51:43] orbyt_: has joined #ruby
[16:52:22] scatterp: to run a ruby file from jruby as ruby 2.2.1 what do you do ?
[16:53:27] morfin: btw jruby works under openjdk?
[16:54:21] chouhoulis: has joined #ruby
[16:57:50] FahmeF: has joined #ruby
[16:58:03] kies: has joined #ruby
[17:01:45] daveomcd: has joined #ruby
[17:02:46] SeepingN: has joined #ruby
[17:05:21] bronson: has joined #ruby
[17:08:23] Cohedrin_: has joined #ruby
[17:13:20] havenwood: morfin: yup
[17:15:17] skweek: has joined #ruby
[17:17:25] dionysus69: has joined #ruby
[17:24:39] bmurt: has joined #ruby
[17:24:48] charliesome: has joined #ruby
[17:25:01] ldepandis: has joined #ruby
[17:25:51] elsevero: has joined #ruby
[17:26:22] t-recx: has joined #ruby
[17:28:46] eckhardt: has joined #ruby
[17:31:30] jackjackdripper: has joined #ruby
[17:32:42] rippa: has joined #ruby
[17:35:35] kies: has joined #ruby
[17:36:38] knight33: has joined #ruby
[17:37:27] whippythellama_: has joined #ruby
[17:38:49] kapil___: has joined #ruby
[17:41:09] chouhoulis: has joined #ruby
[17:45:39] _sfiguser: has joined #ruby
[17:47:25] maesitos: has joined #ruby
[17:47:51] sepp2k: has joined #ruby
[17:48:14] maesitos: I've just finished "the well grounded Rubyist", what book would your recommend next?
[17:48:35] al2o3-cr: ?books maesitos
[17:48:36] ruby[bot]: maesitos: You can find a list of recommended books at http://ruby-community.com/pages/links
[17:50:01] al2o3-cr: maesitos: take a look at this: https://goo.gl/wpGhoQ
[17:50:17] maesitos: yeah I've been checking it
[17:51:00] maesitos: but I feel like reading more is kind of a lot, shouldn't I find a project or something?
[17:51:28] teatime: definitely. can do both, though.
[17:52:08] theunraveler: has joined #ruby
[17:52:29] lxsameer: has joined #ruby
[17:52:58] mtkd: has joined #ruby
[17:53:12] maesitos: so according to the list I should read now eloquent Ruby
[17:53:28] maesitos: I read by the way eloquent Javascript and I wound't say it's a good book
[17:53:50] maesitos: the examples are hard to follow
[17:54:40] orbyt_: has joined #ruby
[17:55:42] quobo: has joined #ruby
[17:56:18] tAn: has joined #ruby
[17:59:54] Ouchy`w: has joined #ruby
[18:03:53] Ouchy: has joined #ruby
[18:03:53] Ouchy: has joined #ruby
[18:05:45] bronson: has joined #ruby
[18:06:09] knight33: has joined #ruby
[18:06:11] nobitanobi: has joined #ruby
[18:09:13] al2o3-cr: maesitos: what did you think of the "the well grounded rubyist"?
[18:09:20] Cohedrin_: has joined #ruby
[18:09:26] maesitos: al2o3-cr: it's great
[18:09:38] conta: has joined #ruby
[18:10:28] maesitos: al2o3-cr: the last chapter was very gratifying
[18:10:42] al2o3-cr: maesitos: that's good to hear :)
[18:11:07] cdg: has joined #ruby
[18:12:31] baweaver: Eloquent Ruby and Eloquent Javascript really only share a name.
[18:12:38] maesitos: but I feel like I need to get my hands dirty now
[18:12:44] baweaver: I would't discount that book purely on that ;)
[18:13:05] maesitos: baweaver: that's good to hear
[18:13:13] baweaver: invariably you won't see much progress in learning until you do (get your hands dirty)
[18:13:20] maesitos: Eloquent JS is very pedantic
[18:13:47] baweaver: EJS is beginner oriented. ERb is more Intermediate oriented I'd argue.
[18:14:36] maesitos: yes EJS starts from the ground up
[18:15:08] maesitos: but that's why I say it's a bit pedant... the author tries to show off a bit imo
[18:16:15] maesitos: never mind it's a free book, I'd have to be grateful
[18:16:54] bathtub_shark: has joined #ruby
[18:17:05] maesitos: baweaver: so you recommend me to stop reading and dig my head in some code right?
[18:17:18] baweaver: Moreover that reading will only get you so far
[18:17:31] Dimik: has joined #ruby
[18:17:40] baweaver: and Eloquent Ruby will be helpful, yes, but moreso if you've already seen the trenches a bit for yourself
[18:17:50] ivanskie: has joined #ruby
[18:17:57] baweaver: Eloquent Ruby is entirely how to do Ruby like a Ruby programmer
[18:18:13] baweaver: and sometimes it helps to Ruby like a you programmer first to understand
[18:18:32] elsevero_: has joined #ruby
[18:18:49] baweaver: So whenever you see all these "Here's a simple way to do X" that you just struggled with a bit it starts to become clearer why they do certain things
[18:19:04] baweaver: Though there is certainly merit in not having to fall down the hole in the first place
[18:20:06] maesitos: so you say I need to feel the pain first
[18:21:33] maesitos: the thing is I tend to lose motivation with dummy projects...
[18:21:44] baweaver: You'll feel it one way or another honestly. Reading that book may spare you from some of it
[18:21:45] maesitos: but I don't feel ready for something serious
[18:22:09] Papierkorb: maesitos: You'll never feel ready without getting your hands dirty.
[18:22:21] ur5us: has joined #ruby
[18:22:37] baweaver: The thing about serious projects is that they tend to look terrifying if you take it in its entirety
[18:22:37] maesitos: Papierkorb: right
[18:22:44] Papierkorb: maesitos: You can't learn to walk without falling first
[18:22:54] maesitos: baweaver: just like watching a building right?
[18:22:56] baweaver: whenever most sane developers that've been at it for a while will break it apart into smaller, more manageable tasks.
[18:23:27] baweaver: You have to figure out your blueprint before you even lay the foundation
[18:23:46] maesitos: yeah well that happens to me in my own live, when I look back I cannot believe I did all that... But I feel stuck now
[18:24:11] Papierkorb: maesitos: Find a project that interests you ("How does this work?") and/or that is helpful to you ("This always annoyed me, there must be a better way!"). Do that right now. And then get onto it.
[18:24:20] teatime: maesitos: you can read 10 more books and still probably won't without some practical hands-on. It's the fastest way to learn.
[18:24:24] troulouliou_dev: has joined #ruby
[18:24:41] uZiel: has joined #ruby
[18:24:44] baweaver: The fun part is finding said project. For a newbie that's a task of its own
[18:24:49] TomyLobo: has joined #ruby
[18:25:12] baweaver: Namely because they haven't learned what problems they can solve yet while a programmer with some exp knows what nails need hammering
[18:25:33] baweaver: That said, what is your hobby maesitos?
[18:25:36] Papierkorb: baweaver, maesitos, hence why I generally advise to do something about an annoyance they're facing.
[18:25:47] dtomic: has joined #ruby
[18:25:50] maesitos: baweaver: I don't have any haha
[18:25:58] baweaver: What do you enjoy doing in your spare time.
[18:25:59] baweaver: Papierkorb: Indeed.
[18:26:03] baweaver: One makes more selling painkillers than vitamins.
[18:26:12] baweaver: maesitos: Nothing you enjoy doing for fun?
[18:26:21] maesitos: baweaver: my hobby is my business and I've hired several Rails developers believe it or not
[18:26:30] dtomic: Hey guys ...quick noob question if anyone is available
[18:26:32] Papierkorb: That's unexpected indeed
[18:26:39] Papierkorb: dtomic: Ask away
[18:26:40] maesitos: baweaver: not really... I like building stuff that's what I enjoy
[18:26:47] teatime: maesitos: I don't suppose you need any *nix sysadmins? ;)
[18:26:58] Papierkorb: maesitos: Building what kind of stuff?
[18:27:38] dtomic: trying to ssh to a remote server with default user and then execute sudo yum install command... how do I pass root password to execute that command
[18:27:51] maesitos: teatime: I'd love to... but my business now is small to hire a full time sysadmin but I'm working at it!
[18:28:04] teatime: dtomic: try -t option to ssh, perhaps
[18:28:07] maesitos: Papierkorb: anything... lately my business, I consider it a stuff haha
[18:28:15] zachk: has joined #ruby
[18:28:25] dstrunk: has joined #ruby
[18:28:28] tamouse__: has joined #ruby
[18:28:33] baweaver: dtomic: I'd look into using SSH keys for security, but past that it's setting up your SSH user with sudoer access
[18:28:53] maesitos: Papierkorb: anything... lately my business, I consider it stuff haha
[18:29:12] maesitos: baweaver: what's your hobby by the way
[18:29:13] dtomic: yeah I cannot do that .. only way I can execute command is to pass root password
[18:29:16] teatime: dtomic: you can also disable sudo asking for passwords, if that's acceptable to you
[18:29:58] baweaver: maesitos: several, but most recently Tak and making a game engine for it in Javascript.
[18:29:59] dtomic: I do not own server, just have root pass to execute yum install
[18:30:04] teatime: dtomic: sudo doesn't ask for root's password, btw, it's your user's password
[18:30:20] Papierkorb: maesitos: In any case, you said you have Rails devs, so I'll just assume you're fine with using Rails yourself. Build a helper tool (local web-application, or CLI script) helping with your daily routines. If you can't think of something in this moment, grab pen&paper and write everything down you do in the following days, what time it took, and what was annoying about it (if any). Few days later (or a week at max), take a look at your notes. You
[18:30:22] Papierkorb: WILL find something where you think "I can save time here if I had X". You now have your first project, that'll even have a real impact.
[18:30:27] zachk: has joined #ruby
[18:30:31] teatime: dtomic: if you want to use root's password, you want to use su -c instead of sudo
[18:30:54] baweaver: That said, this sounds like a security nightmare waiting to happen
[18:30:58] chouhoul_: has joined #ruby
[18:31:56] maesitos: Papierkorb: building a small Sass will be something that I'd enjoy doing
[18:32:03] chouhoul_: has joined #ruby
[18:32:14] maesitos: Papierkorb: if it ain't useful I get bored
[18:32:27] Papierkorb: maesitos: Excellent. Go for it. (Though I don't know what a Sass is ;) )
[18:32:50] teatime: software-as-a-service.
[18:33:01] maesitos: Papierkorb: a Saas... it's how the hippies call online services now a days
[18:33:23] maesitos: https://www.google.es/search?client=safari&rls=en&q=nowadays&ie=UTF-8&oe=UTF-8&gfe_rd=cr&dcr=0&ei=70vJWYGgM8ap8weUuafYBg
[18:34:05] maesitos: Papierkorb: ideally you ask for 20 bucks a moth or so
[18:35:11] Papierkorb: Well, the big question then is what it should do :P
[18:35:13] baweaver: maesitos: that's horrible business strategy
[18:35:18] baweaver: 19.99 is law
[18:35:27] maesitos: baweaver: xD
[18:36:02] baweaver: 4.99 and 9.99 are super common for those services.
[18:36:16] maesitos: baweaver: it depends
[18:36:33] maesitos: baweaver: now I see them getting more expensive
[18:36:40] Papierkorb: enterprise "Please contact us" (Meaning, oh shit, we don't know if our infrastructure will be able to handle that)
[18:37:24] maesitos: Papierkorb: that's the big question yes
[18:38:36] Pierreb|home: has joined #ruby
[18:38:44] Papierkorb: Ah well, I already showed you how to find an idea, maybe even something you can sell. ("The money is on the street. You just have to see it.")
[18:40:32] maesitos: You know the ugly part is JS
[18:40:48] maesitos: if I want to do web I need to interface with the user with JS and CSS
[18:41:04] maesitos: and it's a bit hostile
[18:41:37] woodruffw: has joined #ruby
[18:41:37] woodruffw: has joined #ruby
[18:42:02] paranoicsan: has joined #ruby
[18:44:06] harai: has joined #ruby
[18:45:31] john__: has joined #ruby
[18:46:36] bronson: has joined #ruby
[18:47:51] dviola: has joined #ruby
[18:53:32] morfin: there is no patches for older MRI?
[18:53:42] FrostCandy: has joined #ruby
[18:54:05] morfin: there was issue with GC as i remember causing UB and crash in miniruby/ruby
[18:54:19] baweaver: Depends on the version, but most everything before 2.1.x is EOL
[18:54:38] FrostCandy: if i have fields = {"f1"=>"one"} why can't I access it like fields.f1 ? I can do fields["f1"]
[18:54:48] baweaver: Shouldn't be.
[18:54:49] morfin: i had bug with gcc 7
[18:54:50] ski7777: has joined #ruby
[18:55:03] morfin: even miniruby ceashed :(
[18:55:17] jphase_: has joined #ruby
[18:55:20] baweaver: FrostCandy: It's not Javascript
[18:55:30] baweaver: we don't have dot notation for hashes
[18:55:49] FrostCandy: baweaver: lol ya, but im sure i've seen something.something in ruby, maybe it was differnet context.
[18:55:58] baweaver: Not that there aren't ways to do it anyways
[18:56:07] morfin: also do not forget symbol keys != string keys
[18:56:13] baweaver: primarily around method_missing, hashie, and some other fun bits
[18:56:30] baweaver: but that's also really dirty and slow, so best to avoid them
[18:56:32] havenwood: or turn the hash into an openstruct or struct
[18:56:35] morfin: myhash[:foo] = "test"; puts myhash["foo"] #bad
[18:56:49] matthewd: FrostCandy: a.b is used for methods
[18:57:01] baweaver: RE: GCC, I have very little knowledge there unfortunately.
[18:57:04] FrostCandy: baweaver: wow thanks, this site is super slow and i know they use hashie and it's spitting warnings heh
[18:57:13] morfin: baweaver, what?
[18:57:18] FrostCandy: matthewd: ok thanks ! that must be what I saw
[18:57:20] john__: has joined #ruby
[18:57:31] baweaver: As far as what the bug may be or how to solve it :/
[18:57:34] Cohedrin_: has joined #ruby
[18:57:35] morfin: Ruby always had bug in GC before Ruby 2.4
[18:57:51] morfin: but it was noticed until GCC 7 was released
[18:57:58] baweaver: Best I can guess if to file a bug on it
[18:58:20] morfin: there is bunch of reads of uninitialized variables in Ruby GC
[18:58:29] jamesaxl: has joined #ruby
[18:58:44] morfin: and maybe some other bad things leading to UB
[18:59:13] tolerablyjake: has joined #ruby
[18:59:38] tolerablyjake: has joined #ruby
[18:59:54] matthewd: morfin: We really aren't going to be able to give you more information than the issue in the bug tracker contains
[19:01:52] claudiuinberlin: has joined #ruby
[19:06:08] knight33: has joined #ruby
[19:06:47] ledestin: has joined #ruby
[19:06:52] yxhuvud: if you want older patches, maybe look in some distro that provide long term support for old versions. Like centos.
[19:07:51] tvw: has joined #ruby
[19:14:22] elsevero: has joined #ruby
[19:22:31] s2013: has joined #ruby
[19:23:14] maesitos: baweaver: The Ruby Way or Eloquent Ruby
[19:23:28] maesitos: what would you say
[19:24:02] jamesaxl: has joined #ruby
[19:24:33] FrostCandy: If I append an object to an array, then change something in the object it automatically changes the array element. How do I make the array store just a copy of the object? I'm using my_array << my_object to do the append. https://gist.github.com/sirchuck/3ad1f276a177fa337201601fd55b3e1b
[19:25:13] elomatreb: FrostCandy: You probably need to clone the element, with .dup
[19:25:31] FrostCandy: elomatreb: ok i'll research that thanks
[19:27:55] jamesaxl: has joined #ruby
[19:34:34] FrostCandy: electrostat: works great.
[19:34:40] jamesaxl: has joined #ruby
[19:35:34] bmurt: has joined #ruby
[19:36:21] Ouchy`w: has joined #ruby
[19:39:57] tAn: has joined #ruby
[19:40:46] eckhardt: has joined #ruby
[19:41:19] ski7777: has joined #ruby
[19:41:47] ski7777: has joined #ruby
[19:42:59] ski7777: has joined #ruby
[19:43:57] cdg: has joined #ruby
[19:45:27] sepp2k: has joined #ruby
[19:47:20] xevious: has joined #ruby
[19:47:46] xevious: has left #ruby: ("http://quassel-irc.org - Chat comfortably. Anywhere.")
[19:49:20] tamouse__: has joined #ruby
[19:52:03] PaulCapestany: has joined #ruby
[19:53:00] dionysus70: has joined #ruby
[19:53:18] ldepandis: has joined #ruby
[19:55:51] SeepingN: has joined #ruby
[19:58:17] voiceftp: has joined #ruby
[19:58:21] bronson: has joined #ruby
[19:58:25] ivanskie: has joined #ruby
[19:59:55] orbyt_: has joined #ruby
[20:02:48] rabajaj: has joined #ruby
[20:06:27] mtkd: has joined #ruby
[20:07:44] bmurt: has joined #ruby
[20:11:43] brent__: has joined #ruby
[20:14:12] hahuang65: has joined #ruby
[20:15:31] Toledo: has joined #ruby
[20:17:43] bmurt: has joined #ruby
[20:19:24] lacuna: has joined #ruby
[20:29:39] voice_ftp: has joined #ruby
[20:30:31] theunraveler: has joined #ruby
[20:30:56] jamesaxl: has joined #ruby
[20:31:16] ramfjord: has joined #ruby
[20:33:39] brw: has joined #ruby
[20:39:23] ur5us: has joined #ruby
[20:40:39] MarkBilk: has joined #ruby
[20:47:13] jinie: has joined #ruby
[20:47:56] _sfiguser: has joined #ruby
[20:48:41] brent__: has joined #ruby
[20:50:04] Algebr: has joined #ruby
[20:54:01] Algebr: when you get the common: 'Could not find foo in any of the sources', what is teh gem path like variable that you can dump to check where its looking for?
[20:56:20] shime: has joined #ruby
[21:00:05] Dimik: has joined #ruby
[21:00:46] cagomez: has joined #ruby
[21:00:56] Azure: has joined #ruby
[21:02:38] raynold: has joined #ruby
[21:05:57] ivanskie: has joined #ruby
[21:09:59] tamouse__: has joined #ruby
[21:10:39] enterprisey: has joined #ruby
[21:13:29] Algebr: I have unf_ext-0.0.7.4-x86-mingw32.gem in the root of my directory, where the gem file is, then I have gem 'unf_ext', :path => './', :platform => [:mingw] in the gemfile, and then I do bundle lock --add-platform x86-mingw32 but bundle craps out with: Could not find gem 'unf_ext x86-mingw32' in source at `./`. which seems odd to me
[21:13:55] shime: has joined #ruby
[21:14:56] cagomez: has joined #ruby
[21:15:36] cagomez: has joined #ruby
[21:19:12] sp4rrow: has joined #ruby
[21:20:53] ramfjord: has joined #ruby
[21:25:54] bmurt: has joined #ruby
[21:27:51] whippythellama_: has joined #ruby
[21:36:47] enterprisey: has joined #ruby
[21:37:03] ikopico: has joined #ruby
[21:44:49] Cohedrin_: has joined #ruby
[21:46:23] cout: has joined #ruby
[21:52:18] gmatute: has joined #ruby
[21:53:15] ineb: has joined #ruby
[21:53:35] mim1k: has joined #ruby
[22:06:03] Algebr: is a .gem file just a gzipped directory?
[22:06:06] Algebr: like a jar/war
[22:07:09] charliesome: has joined #ruby
[22:07:52] john__: has joined #ruby
[22:10:42] workmad3: has joined #ruby
[22:14:25] muzik: has joined #ruby
[22:21:08] ornerymoose: has joined #ruby
[22:24:55] mwlang: has joined #ruby
[22:25:58] FahmeF: has joined #ruby
[22:29:27] eckhardt: has joined #ruby
[22:31:58] Cohedrin_: has joined #ruby
[22:32:00] gmatute: has left #ruby: ()
[22:32:17] jphase: has joined #ruby
[22:32:32] sp4rrow: has joined #ruby
[22:34:40] blindMoe: has joined #ruby
[22:34:40] blindMoe: has joined #ruby
[22:40:44] quobo: has joined #ruby
[22:50:00] Cohedrin_: has joined #ruby
[22:53:24] darix: Algebr: it is a tar file with 1 tar.gz inside and some compressed yaml file (iirc)
[22:53:37] r3QuiEm_cL: has joined #ruby
[22:58:45] eckhardt: has joined #ruby
[23:08:01] ornerymoose: has joined #ruby
[23:10:06] shinnya: has joined #ruby
[23:10:59] harai: has joined #ruby
[23:11:24] eckhardt: has joined #ruby
[23:12:17] knight33: has joined #ruby
[23:12:34] alveric1: has joined #ruby
[23:13:02] tcopeland: has joined #ruby
[23:13:12] numbdewd: has joined #ruby
[23:16:14] ivanskie: has joined #ruby
[23:16:24] orbyt_: has joined #ruby
[23:20:25] eckhardt: has joined #ruby
[23:23:27] orbyt_: has joined #ruby
[23:23:31] braian: has joined #ruby
[23:24:55] brent__: has joined #ruby
[23:27:24] braian: has left #ruby: ("Leaving")
[23:28:37] __Yiota: has joined #ruby
[23:30:27] enterprisey: has joined #ruby
[23:34:04] cdg: has joined #ruby
[23:36:40] eckhardt: has joined #ruby
[23:36:42] zachk: has joined #ruby
[23:37:29] mikecmpbll: has joined #ruby
[23:38:00] enko: has joined #ruby
[23:41:04] tamouse__: has joined #ruby
[23:43:09] __Yiota: has joined #ruby
[23:43:50] nankyokusei: has joined #ruby
[23:47:53] scatterp: has joined #ruby
[23:53:30] jnollette: has joined #ruby
[23:54:03] mim1k: has joined #ruby
[23:54:46] Algebr: What is the right way to make a gem with precompiled ruby native extensions?
[23:54:50] Algebr: I am getting very confused.
[23:55:36] eam: Algebr: could you be more specific?
[23:55:53] bronson: has joined #ruby
[23:56:14] eckhardt: has joined #ruby
[23:56:15] mtkd: has joined #ruby
[23:56:30] coderphive: has joined #ruby
[23:57:07] Algebr: there is a project called unf_ext. I can build it finally on windows, the ruby + make dance. Now I want to make a gem but it has the compiled code in it, so that when I deploy an application using this gem, it doesn't make the target try to compile but just uses the precompiled gem