« Back to channel list

#ruby - 24 September 2017

« Back 1 day Forward 1 day »
[00:00:31] orbyt_: has joined #ruby
[00:02:04] goyox86__: has joined #ruby
[00:06:30] zachk: has joined #ruby
[00:12:06] zachk: has joined #ruby
[00:16:44] goyox86__: has joined #ruby
[00:19:13] millerti: has joined #ruby
[00:31:11] milardovich: has joined #ruby
[00:32:45] creeg: has joined #ruby
[00:33:17] havenwood: has joined #ruby
[00:33:18] havenwood: has joined #ruby
[00:33:21] FahmeF: has joined #ruby
[00:34:07] jpterry: has joined #ruby
[00:34:44] FastJack: has joined #ruby
[00:35:04] MrBusiness: has joined #ruby
[00:38:48] nankyoku_: has joined #ruby
[00:44:00] xco: has joined #ruby
[00:49:11] goyox86__: has joined #ruby
[00:53:09] bronson: has joined #ruby
[00:54:28] reaVer: has joined #ruby
[01:01:26] xco: has left #ruby: ()
[01:02:19] nobitanobi: has joined #ruby
[01:05:35] imode: has joined #ruby
[01:07:42] cdg: has joined #ruby
[01:10:04] gizmore: has joined #ruby
[01:16:13] nankyokusei: has joined #ruby
[01:16:29] s2013: has joined #ruby
[01:18:03] beilabs: has joined #ruby
[01:29:32] itmerc[m]: has joined #ruby
[01:40:44] beilabs: has joined #ruby
[01:46:31] enterprisey: has joined #ruby
[01:47:30] tAn: has joined #ruby
[01:55:59] mjolnird: has joined #ruby
[01:57:23] dinfuehr: has joined #ruby
[01:57:45] orbyt_: has joined #ruby
[02:00:37] d^sh: has joined #ruby
[02:23:01] nicesignal: has joined #ruby
[02:25:53] uZiel: has joined #ruby
[02:27:27] reaVer: has joined #ruby
[02:40:43] selim: has joined #ruby
[02:44:16] coderphive: has joined #ruby
[02:46:05] arescorpio: has joined #ruby
[02:53:05] harai: has joined #ruby
[02:54:03] bronson: has joined #ruby
[02:54:59] goyox86__: has joined #ruby
[02:57:31] Dimik: has joined #ruby
[03:00:59] harfangk: has joined #ruby
[03:02:45] goyox86_: has joined #ruby
[03:03:11] nobitanobi: has joined #ruby
[03:05:48] nankyoku_: has joined #ruby
[03:06:09] goyox86_: has left #ruby: ()
[03:06:39] goyox86: has joined #ruby
[03:08:11] nankyoku_: has joined #ruby
[03:12:11] SuperLag: has joined #ruby
[03:19:43] goyox86: has left #ruby: ()
[03:23:20] goyox86: has joined #ruby
[03:24:20] pabs: has joined #ruby
[03:27:36] goyox86: has joined #ruby
[03:30:49] dstrunk: has joined #ruby
[03:35:14] jgpawletko: has joined #ruby
[03:38:59] gix: has joined #ruby
[03:42:54] cconstantine: has joined #ruby
[03:45:03] cconstantine: I've got a really wierd problem. I'm using pipes (reader, writer = IO.pipe) to test some IPC code I'm writing. I have a thread sitting on reader.gets, and when I call reader.close it not only closes that pipe (and kicks the reader.gets), it also makes any call to `puts` raise an IOError (stream closed). Why would closing a pipe cause stdout to close?
[03:55:49] jphase: has joined #ruby
[04:17:55] ayonkhan: has joined #ruby
[04:19:19] harai: has joined #ruby
[04:25:14] mrgaturus: has joined #ruby
[04:25:52] mrgaturus: has left #ruby: ("Konversation terminated!")
[04:37:06] harai: has joined #ruby
[04:39:42] rh10: has joined #ruby
[04:41:14] rh10: guys, which way better to deploy ruby (rails) to 2 servers, with auto-up processes on failure and app server passenger?
[04:41:32] rh10: ruby app*
[04:43:13] rh10: and one more moment.. how to upgrade app (it's using mysql) more smoothly, without break for users?
[04:43:38] rh10: gyman, how to deploy ruby (rails) to 2 servers more handy ?
[04:44:33] bougyman: these are complex questions which require a lot more information about your architecture and app.
[04:45:01] bougyman: perhaps better asked in #rubyonrails, too
[04:45:18] Defenestrate: has joined #ruby
[04:45:18] Defenestrate: has joined #ruby
[04:45:22] bzb: has joined #ruby
[04:54:00] dminuoso_: has joined #ruby
[04:55:23] bronson: has joined #ruby
[04:55:41] __Yiota: has joined #ruby
[04:58:22] kapil___: has joined #ruby
[05:03:15] tamouse__: has joined #ruby
[05:03:55] nobitanobi: has joined #ruby
[05:09:54] raynold: has joined #ruby
[05:20:32] shinnya: has joined #ruby
[05:21:54] milardovich: has joined #ruby
[05:25:19] baweaver: ohai tamouse__ / pontiki
[05:25:32] tamouse__: hihi lemur!
[05:27:00] milardovich: has joined #ruby
[05:32:37] nankyokusei: has joined #ruby
[05:36:06] nankyoku_: has joined #ruby
[05:36:54] govg: has joined #ruby
[05:38:02] waveprop: has joined #ruby
[05:39:14] rh10: bougyman, thanks
[05:50:19] govg: has joined #ruby
[05:51:10] Hackbinary_: has joined #ruby
[05:53:00] ornerymoose: has joined #ruby
[06:00:27] dminuoso_: has joined #ruby
[06:03:00] s2013: has joined #ruby
[06:04:47] apparition: has joined #ruby
[06:06:12] milardovich: has joined #ruby
[06:09:27] milardovich: has joined #ruby
[06:10:54] scatterp: i am trying to use quickfix_ruby and i am getting errors with the config can anyone help with that ?
[06:11:04] _aeris_: has joined #ruby
[06:19:48] govg: has joined #ruby
[06:21:39] dminuoso_: scatterp: Probably not since you are not telling us what problems you are experiencing.
[06:21:50] dminuoso_: Also, you seem to be using a ruby gem that was released once, and never maintained again.
[06:23:43] uZiel: has joined #ruby
[06:24:32] dminuoso_: https://raw.githubusercontent.com/quickfix/quickfix/master/src/ruby/QuickfixRuby.cpp
[06:24:41] dminuoso_: An 8.5MiB C++ source file.
[06:24:48] enko: has joined #ruby
[06:25:10] dminuoso_: Guess their compiler doesn't support #include ?
[06:25:18] dminuoso_: Or a linker?
[06:25:44] enko: Hello everyone. I have minimal programming knowledge and looking to get into trying to teach myself ruby on rails. Could anyone suggest a good book or tutorial for someone on OSX?
[06:25:46] dminuoso_: Ohh, swig. Nevermind.
[06:26:06] dminuoso_: enko: Rails has excellent official guides.
[06:26:17] dminuoso_: enko: http://guides.rubyonrails.org/
[06:26:31] dminuoso_: enko: Keep in mind, that it's useful to learn some basic Ruby first.
[06:26:34] ruby[bot]: You can find a list of recommended books at http://ruby-community.com/pages/links
[06:26:58] dminuoso_: Also for further rails related questions?
[06:27:00] dminuoso_: enko: ?rails
[06:27:03] dminuoso_: ?rails enko
[06:27:03] ruby[bot]: enko: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[06:27:23] enko: dminuoso_ oh ok, i dont know anything about it other than its a really good framework, i thought it was just called ruby on rails. What can you suggest to start with ruby?
[06:28:10] dminuoso_: enko: How good is your "minimal programming knowledge" ?
[06:29:02] enko: some visual basic, some scripting for windows
[06:30:15] dminuoso_: enko: Rails is "just" a collection of Ruby libraries, designed to write web applications with. So a fair chunk will be spent in Ruby syntax.
[06:30:29] enko: ok, i understand that.
[06:31:17] dminuoso_: enko: The Well-Grounded Rubyist, Second Edition
[06:31:36] dminuoso_: enko: Its linked in the the list you were shown before, it's one of the more recommended books that is adequate for beginners to the language
[06:32:13] enko: that's great, thank you dminuoso_
[06:39:53] enko: dminuoso can you suggest an IDE for OSX?
[06:40:06] dminuoso_: enko: The one you prefer most.
[06:40:23] dminuoso_: There's no other topic you will find less of a consensus on, other than the answer I've just given.
[06:40:39] enko: dminuoso im from windows and just got this imac today so i really dont even have a starting point
[06:40:52] dminuoso_: enko: What editors are you used to on windows?
[06:41:14] enko: visual studio code, visual studio, ahk-studio
[06:41:31] dminuoso_: enko: VS code is available for OSX
[06:42:35] enko: alright, ill have to get that one then :)
[06:43:30] dminuoso_: enko: As for other editors: vim, emacs, textmate, sublime, atom - those are other popular choices should you be interested.
[06:45:34] dminuoso_: Or even Xcode would work I guess
[06:45:51] enko: dminuoso_ do you dev on osx?
[06:46:06] harai: has joined #ruby
[06:46:15] enko: what is your preferred editor?
[06:46:18] DTZUZO: has joined #ruby
[06:46:43] tamouse__: i fired up Xcode for the first time to work on project this week; been working on macs for a long time
[06:47:14] dminuoso_: enko: vim for ruby code, Atom for my JS stuff (nuclide is just too good to pass up on)
[06:47:41] dminuoso_: As for other languages, Im testing both. Haskell is much more fun in Atom, for C++ it's back to vim
[06:47:51] enko: yea i've tried vim in the past on linux, that is just too advanced for me haha
[06:48:17] tamouse__: learn your editor well and deeply. it's where you'll be spending 90% of your time
[06:48:53] rippa: has joined #ruby
[06:50:07] jnollette: has joined #ruby
[06:54:15] dminuoso_: tamouse__: If only. :(
[06:56:16] bronson: has joined #ruby
[06:56:51] DTZUZO: has joined #ruby
[06:58:23] dminuoso_: Time spent in meetings, debugging, issue tracker, confluence
[06:58:55] dminuoso_: At times it feels like I only spent 30% of my time in my editor. :(
[06:59:17] tamouse__: ah :/ yes, that happens
[07:04:43] nobitanobi: has joined #ruby
[07:05:03] tamouse__: some of my most productive days are the ones i can't connect to our issue tracker
[07:07:41] TomyLobo: has joined #ruby
[07:07:58] dextrey: has joined #ruby
[07:11:51] dionysus69: has joined #ruby
[07:13:16] phaul: has joined #ruby
[07:20:57] enko: tamouse__ what is your preferred IDE?
[07:21:33] tamouse__: when i use an IDE, it's one of the JetBrains IDEs: RubyMine for ruby, WebStorm for JS
[07:21:54] dminuoso_: enko: My recommendation, try them out for a while - and make sure you explore the editors plugin ecosystem, and then decide for yourself.
[07:22:31] tamouse__: for regular coding, i'm in emacs
[07:22:41] tamouse__: which, like, don't learn; learn vim
[07:23:06] tamouse__: or visual code, atom, sublime
[07:23:44] enko: going to download all these, I can already assume the jetbrains ones are not free right?
[07:23:59] tamouse__: that is very correct. they are $$$$
[07:24:22] elomatreb: You can get the for cheaper (or free?) if you have an educational email somewhere
[07:24:36] tamouse__: i don't know as i'd suggest an IDE for starting out
[07:28:04] enko: tamouse__ not sure what your last comment meant exactly.
[07:28:06] uZiel: has joined #ruby
[07:28:30] tamouse__: if you're a beginner, don't use an IDE
[07:28:42] enko: oh ok, irb then?
[07:29:02] tamouse__: an IDE is damn site more than just a repl
[07:32:06] milardovich: has joined #ruby
[07:32:58] teatime: enko: he's saying just use an editor, like Notepad++ or whatever's popular on windows these days
[07:33:29] tamouse__: you can't tell from there :)
[07:34:32] dminuoso_: Im not sure whether that is useful advice. An IDE can be very helpful to a beginner, because he doesn't necessarily have to use a bunch of separate tools to get the job done.
[07:35:05] teatime: it's not like there are a ton of separate tools involved in a language like ruby
[07:35:22] teatime: and to the degree that there are, it's gotta be helpful to understand what they are, what they do, before it's automated for you
[07:35:24] dminuoso_: Well there's that I guess.
[07:36:06] tamouse__: my analogy, bad as it might be, i'm not going to tell a beginner to use the radial arm saw if they've not ever cut wood before
[07:38:05] tamouse__: in addition, all those other tools are going to be necessary to know when you have to work in a place where your IDE can't go
[07:39:03] sspreitz: has joined #ruby
[07:42:33] MarkBilk: has joined #ruby
[07:44:17] webguynow: has joined #ruby
[07:47:26] tamouse__: i mean, look, my opinions on this aren't that strong; try stuff out, figure out what works for you. i'll say don't pick something you can't customize to your personal style of working. don't use regular notepad.exe or textedit.app, use a real code editor that won't muck up your files
[07:47:59] elomatreb: And get used to working with version control as early as possible
[07:48:13] teatime: I agree with all of that.
[07:48:22] tamouse__: (i'm teaching a git class in a couple weeks)
[07:49:00] teatime: tamouse__: I use and love git, of course, but I am surprised hg didn't catch on more just from being more user-friendly.
[07:49:09] uZiel: has joined #ruby
[07:49:35] tamouse__: teatime: i don't know why either
[07:49:57] tamouse__: it just seemed like everyone picked git
[07:50:32] elomatreb: My guess is that it's because because people learn about VCS by learning about github
[07:50:37] elomatreb: *most people, today
[07:51:22] tamouse__: yeah, today i think that's true
[07:52:17] tamouse__: for me, it was just what was being used in all the projects i was working on
[07:53:04] ndrst: has joined #ruby
[07:54:23] claudiuinberlin: has joined #ruby
[07:57:16] FahmeF: has joined #ruby
[08:01:23] _main_: has joined #ruby
[08:01:58] VladGh_: has joined #ruby
[08:02:23] _main_: has joined #ruby
[08:04:26] romain_t: has joined #ruby
[08:10:02] Defenestrate: has joined #ruby
[08:10:26] nicolai86: has joined #ruby
[08:12:06] dminuoso_: tamouse__: the only ones seriously using hg are facebook :p
[08:12:15] dminuoso_: And that's out of necessity
[08:12:49] marr: has joined #ruby
[08:13:17] dminuoso_: Well and mozilla I guess
[08:13:57] teatime: necessity?
[08:14:03] dminuoso_: But then again facebook seems to be only doing it because they have the resources to rewrite hg in rust.
[08:14:26] dminuoso_: teatime: Yeah, git diff performs horribly when your repositories reach facebook-esque sizrs.
[08:14:51] teatime: that... doesn't sound right...
[08:15:05] dminuoso_: teatime: It's directly linked to the amount of files you have in the repository.
[08:15:17] dminuoso_: And facebook likes to have one gigantic, enormoug singleton repository.
[08:16:02] dminuoso_: https://code.facebook.com/posts/218678814984400/scaling-mercurial-at-facebook/
[08:25:43] mkali: has joined #ruby
[08:31:58] scatterp: hey dminuoso sorry for the late response
[08:34:24] scatterp: dminuoso_ i installed quickfix and tried to run the ruby example executor.rb in the project i am working on (peatio) after experiancing an error i replaced the content of the file with helloworld just to test and error went away after some further testing i found that by commenting lines 105 - 11- the problem went away basiclly the error is that the project failed to start is as if the program
[08:34:25] scatterp: never returns execution flow to the main application (peatio) can any one tell me why this is ? see https://github.com/quickfix/quickfix/blob/master/examples/executor/ruby/executor.rb
[08:37:30] dminuoso_: scatterp: How about you start with showing us your code, and the exact error you have gotten?
[08:37:44] scatterp: dminuoso_ sure one moment
[08:38:53] harai: has joined #ruby
[08:40:00] scatterp: and thank you for helping me also (and from the rest of the team trying to make this work
[08:40:32] scatterp: dminuoso the full code is here https://github.com/scatterp2/peatio/tree/testing01 and executor.rb can be found here https://github.com/scatterp2/peatio/tree/testing01/app/api/api_v3
[08:42:54] scatterp: http://paste.ubuntu.com/25605852 contains the log output
[08:44:57] scatterp: dminuoso_ this also describes the situation https://sourceforge.net/p/quickfix/mailman/message/10834350/
[08:45:26] scatterp: and here a possible cause https://sourceforge.net/p/quickfix/mailman/message/24307014/
[08:49:57] oleo: has joined #ruby
[08:51:18] ur5us: has joined #ruby
[08:56:40] Jameser: has joined #ruby
[08:57:17] bronson: has joined #ruby
[08:58:34] scatterp: dminuoso if i dont add FileStorePath=x to the config file then it starts up ok and quickruby errors FileStorePath missing from the config and if i add it then it crashs so it seems to be somewhere in the config check method
[09:05:30] nobitanobi: has joined #ruby
[09:06:33] FastJack_: has joined #ruby
[09:09:57] ur5us: has joined #ruby
[09:10:13] quobo: has joined #ruby
[09:18:50] buggy2: has joined #ruby
[09:19:05] buggy2: can I mute microphone on windows using ruby?
[09:19:23] scatterp: dminuoso_ still here ?
[09:25:01] Guest54461: has joined #ruby
[09:25:16] lxsameer: has joined #ruby
[09:25:16] Guest54461: has left #ruby: ()
[09:25:48] ur5us: has joined #ruby
[09:29:10] InfinityFye: has joined #ruby
[09:31:33] ur5us: has joined #ruby
[09:32:14] dhollinger: has joined #ruby
[09:33:02] apparition: has joined #ruby
[09:40:47] ur5us: has joined #ruby
[09:41:39] Zarthus: buggy2: probably, through virue of system calls
[09:42:16] buggy2: Zarthus: could you maybe point me to some examples?
[09:42:40] Zarthus: I always used a batch file to do it, but I think I doiwnloaded something from the web for that
[09:43:13] buggy2: I would like to use my own program to do that, not somebody's
[09:43:19] Zarthus: http://www.nirsoft.net/utils/nircmd.html
[09:43:52] buggy2: I've seen that, maybe I would consider using it but it looks like it's proprietary software
[09:44:20] Zarthus: windows itself is propietary
[09:44:53] buggy2: true, but I'm not on windows myself and I wanted to make this script for a friend :)
[09:44:55] Zarthus: http://www.nirsoft.net/code_samples.html looks ike source code may be found here
[09:46:13] garyserj_: has joined #ruby
[09:46:56] buggy2: it looks like those are samples for some smaller tools they made
[09:47:05] Zarthus: I'd argue c# is probably better equipped to deal with this, but I don't know how to use the windows kernel system calls myself
[09:48:36] buggy2: I will probably try searching for some info on that if I can't find anything else
[09:49:04] buggy2: thanks for your help
[09:50:01] Zarthus: https://superuser.com/questions/55598/super-key-to-pause-mute-mic-and-mute-speakers-in-windows
[09:51:27] buggy2: ok so autohotkey is free software
[09:51:35] buggy2: and it seems simple to use
[09:51:38] Zarthus: a lot of stufdf is free software
[09:52:32] milardovich: has joined #ruby
[09:52:41] teatime: AHK is an infuriating programming language, but it is just useful enough to justify its use on windows.
[09:52:55] teatime: like, I hate it, but I am glad it exists, if that makes sense?
[09:53:02] buggy2: yeah I get it
[09:53:28] teatime: but yeah I think your best bet is to find some way to mute/unmute from the command line
[09:53:35] scatterp: i installed quickfix and tried to run the ruby example executor.rb in the project i am working on (peatio) after experiancing an error i replaced the content of the file with helloworld just to test and error went away after some further testing i found that by commenting lines 105 - 11- the problem went away basiclly the error is that the project failed to start is as if the program never returns
[09:53:35] scatterp: execution flow to the main application (peatio) https://github.com/quickfix/quickfix/blob/master/examples/executor/ruby/executor.rb the full code is here https://github.com/scatterp2/peatio/tree/testing01 and executor.rb can be found here https://github.com/scatterp2/peatio/tree/testing01/app/api/api_v3 and http://paste.ubuntu.com/25605852 contains the log output
[09:53:40] teatime: and then call that from ruby, assuming there's something else you want to do from ruby
[09:53:40] scatterp: can anyone help with this ?
[09:54:22] buggy2: it's shame there isn't any way without installing additional software but after hours spend on searching this is probably the best what I can get
[09:55:34] teatime: buggy2: it's *possible* without additional stuff, but it will be super complex and not-fun. you will have to learn way more about crappy windows APIs than you would ever desire to.
[09:56:04] buggy2: teatime: I was afraid that :(
[09:56:24] teatime: windows is complex and crappy, audio subsystems are complex and crappy, and you want to do both :)
[09:56:56] scatterp: buggy2 i think also multiple applications will try to "initilize your mic" for example skype voip dialers etc etc so it will be a battle
[09:57:18] buggy2: haha yeah for me it's enough that windows is crappy so I was hoping there was a simpler way
[09:58:26] buggy2: scatterp: oops
[09:58:26] buggy2: wait so I can use autohotkey to mute the mic globally right? but some other program might turn it on when I don't want it to?
[09:59:35] scatterp: buggy2 yeah i would access the device manager and disable it as hardware really not to sure what to suggest you are using an os that comes with a built in keylogger
[09:59:49] buggy2: has joined #ruby
[10:03:37] jinie: has joined #ruby
[10:04:00] Zarthus: i still find it funny you need like an entire gem to run something as a daemon on windows
[10:04:12] Zarthus: and then there is `Thread#daemon` for Linux
[10:04:30] Zarthus: er, Process#daemon rather
[10:09:09] mathys: has joined #ruby
[10:09:14] Sammichmaker: has joined #ruby
[10:18:19] ruby-lang768: has joined #ruby
[10:20:29] MyMind: has joined #ruby
[10:24:04] Defenestrate: has joined #ruby
[10:25:55] uZiel: has joined #ruby
[10:26:21] rfoust: has joined #ruby
[10:26:28] nankyokusei: has joined #ruby
[10:27:28] scatterp: can any one tell me how i can make this "threaded" https://github.com/scatterp2/peatio/blob/testing01/app/api/api_v3/executor.rb and redirect stdout to a logfile ?
[10:30:41] mikecmpbll: has joined #ruby
[10:37:42] rgr_: has joined #ruby
[10:56:35] mikecmpbll: has joined #ruby
[10:57:00] ahrs: has joined #ruby
[10:58:35] bronson: has joined #ruby
[11:03:55] sepp2k: has joined #ruby
[11:05:08] Jameser: has joined #ruby
[11:06:16] nobitanobi: has joined #ruby
[11:28:48] workmad3: has joined #ruby
[11:28:55] maesitos: has joined #ruby
[11:29:31] maesitos: What's the point of 'attr_reader :var' if I can do this https://pastebin.com/raw/x6p5PGkE
[11:29:31] ruby[bot]: maesitos: as I told you already, please use https://gist.github.com
[11:30:36] johno84: has joined #ruby
[11:31:04] maesitos: ruby[bot]: you are a Nazi are you going to ban be or what. By the way I'm posting the raw version of pastebin
[11:32:34] teatime: it's a bot.
[11:33:18] Jameser: has joined #ruby
[11:33:56] maesitos: still a Nazi
[11:35:51] dminuoso_: maesitos: Just because you can mutate it does not mean you shouldn't.
[11:36:03] dminuoso_: I think that was one negation too many.
[11:38:14] sepp2k1: has joined #ruby
[11:40:57] milardovich: has joined #ruby
[11:53:34] Tharbakim: has joined #ruby
[11:53:34] Tharbakim: has joined #ruby
[11:58:23] jenrzzz: has joined #ruby
[11:58:23] jenrzzz: has joined #ruby
[12:00:38] hinbody: has joined #ruby
[12:10:25] Rutix: has joined #ruby
[12:10:25] Rutix: has joined #ruby
[12:12:18] t-recx: has joined #ruby
[12:23:10] mikecmpbll: has joined #ruby
[12:23:39] walri: you are forgiven
[12:31:01] dar123: has joined #ruby
[12:32:29] maesitos: has joined #ruby
[12:40:11] unshadow: has joined #ruby
[12:42:06] unshadow: has joined #ruby
[12:43:39] mjolnird: has joined #ruby
[12:47:17] _aeris_: has joined #ruby
[12:47:36] banisterfiend: has joined #ruby
[12:49:40] paranoicsan: has joined #ruby
[12:49:48] uZiel: has joined #ruby
[12:51:20] mjolnird: has joined #ruby
[12:51:57] Alucard4200: has joined #ruby
[12:52:04] nankyoku_: has joined #ruby
[12:59:31] bronson: has joined #ruby
[13:05:27] jottr: has joined #ruby
[13:07:00] nobitanobi: has joined #ruby
[13:13:14] nofxx: has joined #ruby
[13:26:51] millerti: has joined #ruby
[13:27:16] charliesome_: has joined #ruby
[13:32:23] anisha: has joined #ruby
[13:32:35] rabajaj: has joined #ruby
[13:37:41] mkali: has joined #ruby
[13:38:22] quobo: has joined #ruby
[13:39:49] milardovich: has joined #ruby
[13:45:04] zautomata: has joined #ruby
[13:45:35] uZiel: has joined #ruby
[13:50:04] Rodya_: has joined #ruby
[13:53:17] scatterp: can some one help me with threads i have some code that never returns control to the calling code for some reason ?
[13:53:43] havenwood: scatterp: have a gist handy?
[13:54:41] hinbody: has joined #ruby
[13:54:53] scatterp: not a gist sorry i never used that let me show you what i have
[13:54:57] dminuoso_: ACTION pokes havenwood 
[13:55:49] dminuoso_: def compose(*f) fn, *fns = f.reverse; ->(*args) { fns.reduce(fn.(*args)) { |a,n| n.(a) } }; end
[13:55:55] dminuoso_: havenwood: ^- any sleeker way of doing that?
[13:56:20] scatterp: i installed quickfix and tried to run the ruby example executor.rb in the project i am working on (peatio) after experiancing an error i replaced the content of the file with helloworld just to test and error went away after some further testing i found that by commenting lines 105 - 11- the problem went away basiclly the error is that the project failed to start is as if the program never returns
[13:56:20] scatterp: execution flow to the main application (peatio) https://github.com/quickfix/quickfix/blob/master/examples/executor/ruby/executor.rb the full code is here https://github.com/scatterp2/peatio/tree/testing01 and executor.rb can be found here https://github.com/scatterp2/peatio/tree/testing01/app/api/api_v3 and http://paste.ubuntu.com/25605852 contains the log output
[13:56:23] dminuoso_: Next level is going to be something that'll work with methods too. ;p
[13:57:40] havenwood: dminuoso_: just a nit, but i think a tiny tad nicer to spare the reverse: *fns, fn = f
[13:57:41] scatterp: havenwood 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 peatio starts when i uncomment it peatio does not start since its threaded it should not effect the main.thread
[13:58:03] havenwood: dminuoso: mmmm
[13:59:24] scatterp: I also had the exact same error with fix-engine and i resolved it in the same way (with out this problem)
[14:00:22] johno84: has joined #ruby
[14:00:55] havenwood: scatterp: I don't get what you're asking. What is peatio?
[14:01:42] havenwood: scatterp: Your threaded code is blocking unexpectedly? Or something else?
[14:02:05] havenwood: "Peatio is a free and open-source crypto currency exchange implementation with the Rails framework and other cutting-edge technology."
[14:02:09] scatterp: yes the threaded code is blocking unexpectedly
[14:02:14] DLSteve: has joined #ruby
[14:02:20] scatterp: blocking peatio that is
[14:02:50] scatterp: so if i comment line 117 #t1 = Thread.new{gogogo()}
[14:02:53] matthewd: scatterp: Try reducing your problem to a short example script. It can help your understanding, and if not, it's much easier to explain to others.
[14:03:50] scatterp: matthewd thanks for the tip but i dont know really how to do that beyond what i did already which was get it down to 1 line (117) i think i suck at explaining myself which is more of the problem
[14:04:34] scatterp: so if i comment line 117 #t1 = Thread.new{gogogo()} peatio starts uncomment it (which should not effect peatio due to it being threaded) and it peatio does not start
[14:05:23] charliesome: has joined #ruby
[14:06:08] FahmeF: has joined #ruby
[14:10:20] ShalokShalom_: has joined #ruby
[14:12:52] beilabs: has joined #ruby
[14:14:59] dminuoso_: havenwood: The reverse is for keeping the order of composition in line with what one would expect from maths.
[14:15:09] havenwood: dminuoso_: ah, right - i always forget that
[14:15:15] havenwood: makes sense
[14:15:30] havenwood: (i'm pre-coffee)
[14:15:40] dminuoso_: Ah yeah that explains it.
[14:15:42] dminuoso_: Im post-coffee.
[14:17:21] AlexRussia: has joined #ruby
[14:17:24] dminuoso_: havenwood: Ever since I started writing Haskell, its the only order that makes any sense to me. :P
[14:17:31] ldepandis: has joined #ruby
[14:17:54] dminuoso_: But then again f . g looks pretty close to f ○ g - and it even reads "f after g"
[14:18:51] dminuoso_: Even things like Kleisli composition seems so rudimentary, that it makes me cry that most languages dont have this support builtin.
[14:19:21] teatime: I guess I need to try learning Haskell for a fourth or so time
[14:21:15] dminuoso_: Though I guess Haskell can also do it in the other direction with >>>
[14:21:18] dminuoso_: ACTION shrugs
[14:22:15] zapata: has joined #ruby
[14:27:38] nicolai86: has joined #ruby
[14:37:16] Ishido: has joined #ruby
[14:39:29] dinfuehr: has joined #ruby
[14:40:50] nicolai86: has joined #ruby
[14:44:19] yeticry: has joined #ruby
[14:46:09] nicolai86_: has joined #ruby
[14:47:48] DipoleHourglass: has joined #ruby
[14:56:33] beilabs: has joined #ruby
[15:00:24] bronson: has joined #ruby
[15:11:12] __Yiota: has joined #ruby
[15:18:41] griffindy: has joined #ruby
[15:21:57] orbyt_: has joined #ruby
[15:23:08] tamouse__: has joined #ruby
[15:23:49] conta: has joined #ruby
[15:23:50] beilabs: has joined #ruby
[15:23:57] tamouse__: has joined #ruby
[15:25:56] al2o3-cr: has joined #ruby
[15:28:55] DTZUZO: has joined #ruby
[15:30:02] Pisuke: has joined #ruby
[15:34:16] kapil___: has joined #ruby
[15:40:27] milardovich: has joined #ruby
[15:44:45] FahmeF: has joined #ruby
[15:46:26] Dimik: has joined #ruby
[15:50:37] __Yiota: has joined #ruby
[15:51:57] eb0t: has joined #ruby
[15:53:01] conta: has joined #ruby
[15:59:07] coderphive: has joined #ruby
[16:05:01] beilabs: has joined #ruby
[16:11:20] s2013: has joined #ruby
[16:22:41] milardovich: has joined #ruby
[16:34:21] dviola: has joined #ruby
[16:35:17] Rodya_: has joined #ruby
[16:37:13] jottr: has joined #ruby
[16:44:51] zautomata: has joined #ruby
[16:45:57] sepp2k: has joined #ruby
[16:49:42] Asher1: has joined #ruby
[16:50:59] Asher1: has joined #ruby
[16:51:10] dstrunk: has joined #ruby
[16:53:39] kith: has joined #ruby
[16:56:18] oryman: has joined #ruby
[16:56:36] Asher: has joined #ruby
[17:01:56] bronson: has joined #ruby
[17:03:39] bdonnahue: has joined #ruby
[17:08:29] nobitanobi: has joined #ruby
[17:10:04] ledestin: has joined #ruby
[17:13:34] dextrey: has joined #ruby
[17:25:00] comrumino: has joined #ruby
[17:27:08] dionysus69: has joined #ruby
[17:31:43] comrumino: could someone help me w/ puma build. the error tells me to get `gem install puma -v '2.14.0'` to work --- http://stro.nz/public/gem_make.out
[17:36:52] havenwood: comrumino: It looks like that OpenSSL >= 1.1 incompatibility was fixed around Puma 3.7.1.
[17:37:10] havenwood: comrumino: Can you bump your Puma version to latest?
[17:38:08] comrumino: havenwood, isn't my repo, it's a pkgbuild we support. ideally I would have it use /usr/lib/openssl-1.0/
[17:38:26] comrumino: I'm not to familar w/ ruby however
[17:38:40] havenwood: comrumino: Is latest Puma an option? 3.10.0 - Russell's Teapot, would be ideal.
[17:38:48] havenwood: comrumino: bundle update puma
[17:39:05] havenwood: It should *just work*. Maybe a config change or two.
[17:39:29] comrumino: It used to just work -- it still uses ruby-2.3 ...
[17:40:43] havenwood: comrumino: Your Ruby/Puma/OpenSSL combo don't work, probably because of OpenSSL changes. I'd suggest using the latest Ruby 2.3 with the latest Puma.
[17:41:29] havenwood: comrumino: Can you reproduce the issue with Puma 3.10.0?
[17:41:30] havenwood: (It appears to me to be fixed.)
[17:41:41] havenwood: comrumino: https://github.com/puma/puma/issues/1181
[17:42:34] FahmeF_: has joined #ruby
[17:43:08] comrumino: havenwood, non-issue w/ the lastest puma. I'll try sed the version and test the package then PR their repo if it still works w/ the version bump
[17:43:12] comrumino: havenwood, thanks!
[17:43:29] havenwood: comrumino: you're welcome!
[17:46:00] dminuoso_: havenwood: Yeah I give up.
[17:46:07] otherj: has joined #ruby
[17:46:15] dminuoso_: havenwood: Every solution I think of requires something you'd only find in say Haskell, OCaml, Elixir...
[17:46:56] dminuoso_: Have you tried F*?
[17:47:05] jgpawletko: has joined #ruby
[17:47:20] dminuoso_: That's F for real nerds.
[17:47:30] dminuoso_: Has dependent types
[17:48:02] dminuoso_: (Which has the bizarre implication that even just type checking is not guaranteed to halt)
[18:02:35] scatterp: havenwood any idea about my blocking problem i am still stuck :/
[18:03:30] havenwood: scatterp: It looks like the #start method calls code that gets an exclusive lock, I haven't looked into why.
[18:03:34] Azure: has joined #ruby
[18:04:06] havenwood: scatterp: Have you narrowed it down to a couple-line test-case?
[18:04:19] havenwood: (Which can be independently run without the rest of your app.)
[18:04:23] ahrs: has joined #ruby
[18:05:12] havenwood: scatterp: Also make sure you enable `Thread.abort_on_exception = true` to percolate up errors in the Thread you spawn.
[18:05:43] scatterp: havenwood not sure yet how to do that because i can not recreate the way the file is called by the rest of the app because i do not understand how that happens if i could do that i would
[18:06:02] scatterp: havenwood when you say #start method .. do you mean where it says "begin"
[18:06:32] scatterp: havenwood is there a way to prevent that exclusive lock ?
[18:06:47] havenwood: scatterp: Just to rule out related issues, put this right before you create your thread and confirm the results are the same: Thread.abort_on_exception = true
[18:06:56] scatterp: ok one moment
[18:07:55] coderphive: has joined #ruby
[18:08:52] maffeprog: has joined #ruby
[18:09:50] scatterp: hi maffeprog
[18:10:11] scatterp: havenwood its the same with the Thread.abort_on_exception = true
[18:12:21] havenwood: maffeprog: hi
[18:13:07] scatterp: havenwood maffeprog is working with me he is a little more experianced than me i think
[18:14:01] havenwood: I'm busy trying to get this F* code to compile to FSharp and OCaml, now I know that F* is a thing.
[18:14:52] havenwood: Hah, *and* it targets Kremlin too? What is that?!
[18:15:41] scatterp: i heard of C and R never F
[18:16:18] havenwood: scatterp: http://beza1e1.tuxen.de/one_letter_proglangs.html
[18:18:16] zautomata: has joined #ruby
[18:18:34] sepp2k1: has joined #ruby
[18:19:01] havenwood: All verification conditions discharged successfully \o/
[18:23:49] Azure: has joined #ruby
[18:23:58] coderphive: has joined #ruby
[18:28:12] dminuoso_: ACTION high fives havenwood 
[18:29:58] goyox86: has joined #ruby
[18:32:56] ltem: has joined #ruby
[18:32:56] idscipuls: has joined #ruby
[18:41:18] dionysus69: has joined #ruby
[18:47:51] guardian: has left #ruby: ("WeeChat 1.9")
[18:54:43] john__: has joined #ruby
[19:02:05] idscip: has joined #ruby
[19:02:42] bronson: has joined #ruby
[19:02:49] nofxxx: has joined #ruby
[19:03:00] idscip: has left #ruby: ()
[19:11:26] jacm93: has joined #ruby
[19:14:12] bruno-: has joined #ruby
[19:19:01] snsei: has joined #ruby
[19:20:37] idscip: has joined #ruby
[19:28:05] Asher: has joined #ruby
[19:29:39] Asher: has joined #ruby
[19:30:17] idscip: has joined #ruby
[19:30:42] andrevan: has joined #ruby
[19:31:27] Ouchy: has joined #ruby
[19:33:03] gusrub: has joined #ruby
[19:33:40] marr: has joined #ruby
[19:34:26] imode: has joined #ruby
[19:38:17] raynold: has joined #ruby
[19:41:39] snsei: has joined #ruby
[19:43:17] Dimik: has joined #ruby
[19:47:26] coderphive: has joined #ruby
[19:49:49] s2013: has joined #ruby
[19:51:47] phaul: has joined #ruby
[19:52:28] QualityAddict: has joined #ruby
[19:59:25] orbyt_: has joined #ruby
[20:08:43] Alucard4200: has left #ruby: ("No boundaries on the net!")
[20:15:29] gigetoo: has joined #ruby
[20:25:48] bdonnahue: has joined #ruby
[20:27:34] gusrub: has joined #ruby
[20:29:05] jnollette: has joined #ruby
[20:29:08] Cohedrin_: has joined #ruby
[20:33:31] br0d1n: has joined #ruby
[20:34:36] ur5us: has joined #ruby
[20:35:10] ur5us: has joined #ruby
[20:37:21] milardovich: has joined #ruby
[20:40:31] pskosinski: ['f', 'O', 'o', 'B', 'a', 'R'].sort sorts placing big letters on beginning and small later. Can I easily make it sort the other way around? a-z, A-Z?
[20:42:23] pskosinski: I could split it into two arrays, one with small letters, one with big, but I wonder if there's an easier, quicker way…
[20:44:17] sspreitz: has joined #ruby
[20:49:19] dminuoso_: has joined #ruby
[20:50:10] cagmz: has joined #ruby
[20:53:58] pskosinski: ['a', 'T', 'b', 'O', 'Z'].sort_by{|c| (c =~ /[A-Z]/) ? (c.ord + 100) : c.ord}
[20:54:11] pskosinski: Oh well, probably not most beautiful but works and I learned something new
[20:54:56] quobo: has joined #ruby
[20:58:29] gusrub: has joined #ruby
[20:59:25] s3nd1v0g1us: has joined #ruby
[21:00:29] s3nd1v0g1us: has joined #ruby
[21:03:42] bronson: has joined #ruby
[21:05:39] al2o3-cr: >> ['f', 'O', 'o', 'B', 'a', 'R'].sort_by(&:swapcase) # pskosinski
[21:05:40] ruby[bot]: al2o3-cr: # => ["a", "f", "o", "B", "O", "R"] (https://eval.in/867317)
[21:06:59] al2o3-cr: ?cookie al2o3-cr
[21:06:59] ruby[bot]: al2o3-cr: here's your cookie: 🍪
[21:07:09] al2o3-cr: thanks ruby[bot]
[21:08:08] nocaberi: has joined #ruby
[21:08:46] enterprisey: has joined #ruby
[21:09:52] nobitanobi: has joined #ruby
[21:11:14] pskosinski: al2o3-cr: That surely looks shorter, thank you! Could you give me a tip, what is going on there? I've never seen that &: before and can't find what it is
[21:11:21] nofxx: has joined #ruby
[21:12:00] al2o3-cr: pskosinski: it symbol to proc it basically the same as sort_by { |c| c.swapcase }
[21:12:50] pskosinski: al2o3-cr: Thanks!
[21:13:13] al2o3-cr: pskosinski: sure, np. :)
[21:18:58] jinie: has joined #ruby
[21:19:20] selim: has joined #ruby
[21:22:48] jottr: has joined #ruby
[21:25:10] goyox86: has joined #ruby
[21:25:27] tohuw: has joined #ruby
[21:25:27] tohuw: has joined #ruby
[21:26:43] milardovich: has joined #ruby
[21:40:17] gigetoo: has joined #ruby
[21:40:21] gigetoo_: has joined #ruby
[21:40:55] goyox86: has joined #ruby
[21:43:36] opekktar: has joined #ruby
[21:43:55] opekktar: has left #ruby: ()
[21:53:16] fChanX: has joined #ruby
[21:59:59] gusrub: has joined #ruby
[22:03:12] Puffball: has joined #ruby
[22:05:49] Asher: has joined #ruby
[22:11:01] hinbody: has joined #ruby
[22:12:06] voiceftp: has left #ruby: ("Leaving")
[22:12:27] voiceftp: has joined #ruby
[22:15:03] orbyt_: has joined #ruby
[22:28:17] bdonnahue: has joined #ruby
[22:32:48] goyox86__: has joined #ruby
[22:32:53] charliesome: has joined #ruby
[22:33:58] snsei: has joined #ruby
[22:38:09] numbdewd: has joined #ruby
[22:38:25] gusrub: has joined #ruby
[22:44:03] dstrunk: has joined #ruby
[22:56:25] enko: has joined #ruby
[22:59:18] Keltia: has joined #ruby
[23:04:50] bronson: has joined #ruby
[23:09:11] fChanX: has left #ruby: ("Leaving")
[23:16:50] ornerymoose: has joined #ruby
[23:17:43] shinnya: has joined #ruby
[23:19:03] arescorpio: has joined #ruby
[23:26:37] enterprisey: has joined #ruby
[23:32:29] FahmeF: has joined #ruby
[23:33:23] snath: has joined #ruby
[23:33:39] snath: has left #ruby: ()
[23:36:11] snsei: has joined #ruby
[23:50:14] snsei: has joined #ruby
[23:52:00] bmurt: has joined #ruby
[23:52:07] nankyokusei: has joined #ruby
[23:53:02] ornerymoose: has joined #ruby
[23:53:52] houhoulis: has joined #ruby
[23:54:05] nankyoku_: has joined #ruby