« Back to channel list

#ruby - 26 May 2016

« Back 1 day Forward 1 day »
[00:00:48] charliesome: has joined #ruby
[00:02:53] skalfyfan: has joined #ruby
[00:03:35] statelesscode: has joined #ruby
[00:04:02] xkapastel: has joined #ruby
[00:06:24] GinoMan2440: has joined #ruby
[00:07:01] jeanlinux: has joined #ruby
[00:07:27] charliesome_: has joined #ruby
[00:09:20] GodFather__: has joined #ruby
[00:11:39] neanderslob: has joined #ruby
[00:11:42] rodfersou: has joined #ruby
[00:16:24] malconis: has joined #ruby
[00:19:33] ramfjord_: What's up all. I'm looking that the connection_pool library, and I've noticed that if I check out a connection in Thread A, and A terminates before I call pool.checkin (as many times as I called checkout), then that connection will no longer be available for checking out in Thread B. Is there a way you can register an event to happen when a thread is joined?
[00:19:34] tristanp: has joined #ruby
[00:22:44] tristanp_: has joined #ruby
[00:22:55] ramfjord_: probably not eh... There might be other ways to do this, but the only ones I can see involve mutexes on class variables
[00:25:36] aaeron: has joined #ruby
[00:25:42] Es0teric: has joined #ruby
[00:27:06] gmas: has joined #ruby
[00:28:10] infernix: has joined #ruby
[00:32:53] pabloh: has joined #ruby
[00:34:45] pawnbox: has joined #ruby
[00:35:16] nankyokusei: has joined #ruby
[00:37:46] n_blownapart: has joined #ruby
[00:39:09] skolman_: has joined #ruby
[00:39:38] ReK2: has joined #ruby
[00:39:38] ReK2: has joined #ruby
[00:40:34] jancel: has joined #ruby
[00:41:26] Dios: has joined #ruby
[00:41:53] centrx: has joined #ruby
[00:43:20] Dios: has joined #ruby
[00:43:21] SilverKey: has joined #ruby
[00:43:30] Ropeney: has joined #ruby
[00:43:56] jrafanie: has joined #ruby
[00:45:18] Dios: has joined #ruby
[00:46:25] centrx: has joined #ruby
[00:46:32] youch: has joined #ruby
[00:47:15] Dios: has joined #ruby
[00:47:19] mib_mib: has joined #ruby
[00:47:27] hutch34_: has joined #ruby
[00:47:48] eGGshke: has joined #ruby
[00:48:22] mib_mib: hi all - i am generating a large json object and writing it to a file - however, this approach seems like it wont scale since i have to have the entire json blob in memory and write it all at once - i was thinking about instead creating a mix of csv/json, i.e. creating one json field per line in a file - is this not recommended?
[00:48:49] mib_mib: this assumes there are no newlines inside of each json
[00:49:39] bronson: has joined #ruby
[00:50:26] tristanp: has joined #ruby
[00:50:28] hobodave: has joined #ruby
[00:52:53] pabloh: has joined #ruby
[00:53:39] hobodave: has joined #ruby
[00:54:20] s2013: has joined #ruby
[00:56:30] hobodave: has joined #ruby
[00:56:43] harushimo: has joined #ruby
[00:57:19] harushimo: i'm sorry. I don't mean to bother anyone on the ruby channel
[00:57:25] harushimo: I have a question about jekyll
[00:57:37] harushimo: i did post the question in there
[00:57:45] harushimo: I mean in there channel
[00:58:00] harushimo: i think it has to do with my ruby but I just want to make sure
[00:58:01] sphex: has joined #ruby
[00:58:03] Radar: harushimo: What's the question?
[00:58:05] harushimo: https://gist.github.com/anonymous/0dbea9bd0a60c708fbba30453df2e84d
[00:58:42] harushimo: I don't get why I start the jekyll server. It keeps telling me ruby libraries
[00:59:03] harushimo: all the dependencies are install when I do a bundle
[00:59:17] Radar: harushimo: https://github.com/dtao/safe_yaml/issues/72#issuecomment-70564963
[00:59:42] Radar: harushimo: `bundle exec jekyll serve` might work also according to other commands in that issue.
[01:00:13] harushimo: I tried that too
[01:00:19] harushimo: I got the same error message
[01:00:26] harushimo: let me try again and I'll get back to you
[01:00:31] harushimo: thanks for the help Radar
[01:00:33] jancel: has joined #ruby
[01:00:34] harushimo: I appreciate it
[01:01:33] tristanp_: has joined #ruby
[01:01:47] yfeldblum: has joined #ruby
[01:01:59] beilabs: has joined #ruby
[01:02:12] jefeson: has joined #ruby
[01:03:55] paradisaeidae: has joined #ruby
[01:04:12] yfeldblum: has joined #ruby
[01:04:42] ramfjord_: ged_: are you the ged that makes the ruby PG gem?
[01:05:22] ensyde: has joined #ruby
[01:06:51] johnmilton: has joined #ruby
[01:06:53] ramfjord_: mib_mib: you might take a look at the Yajl parser: https://github.com/brianmario/yajl-ruby
[01:07:19] ramfjord_: you write/read multiple json object to/from a stream without having them all in memory at once
[01:07:26] _whitelogger: has joined #ruby
[01:07:44] alxndr: has joined #ruby
[01:10:46] benzrf: has joined #ruby
[01:10:50] tristanp: has joined #ruby
[01:12:31] pabloh: has joined #ruby
[01:14:51] yfeldblum: has joined #ruby
[01:15:59] xlegoman: has joined #ruby
[01:16:38] yfeldblum: has joined #ruby
[01:18:39] idefine: has joined #ruby
[01:19:57] Dios: has joined #ruby
[01:19:59] sdothum: has joined #ruby
[01:20:40] hunter9090: has joined #ruby
[01:20:40] s2013: has joined #ruby
[01:20:54] hunter9090: can anyone help with a omniauth question?
[01:21:13] bttf: has joined #ruby
[01:23:36] benzrf: no one can help you, hunter9090. you are beyond help. truly your fate is a terrible one
[01:23:37] tristanp: has joined #ruby
[01:23:53] benzrf: but more seriously, i wouldnt be surprised - try hanging around
[01:24:31] pabloh: has joined #ruby
[01:24:48] A124: I guess most read that, but perfect way to advocate Ruby to others https://blog.codinghorror.com/why-ruby/
[01:25:34] A124: And I have to agree on the cool factor. There are several very primising languages, but apart specific things and when you get two programmers in case one dies, not much.
[01:26:02] pawnbox: has joined #ruby
[01:28:56] youch: has joined #ruby
[01:29:18] tristanp_: has joined #ruby
[01:29:21] youch: has joined #ruby
[01:30:42] jaguarmagenta: has joined #ruby
[01:32:53] CloCkWeRX: has joined #ruby
[01:33:52] skalfyfan: has joined #ruby
[01:36:52] moeabdol: has joined #ruby
[01:38:02] skalfyfan: has joined #ruby
[01:38:25] tristanp: has joined #ruby
[01:39:41] nettoweb: has joined #ruby
[01:42:37] hayden__: has joined #ruby
[01:43:55] beilabs: has joined #ruby
[01:48:09] bronson: has joined #ruby
[01:48:31] kgrz: has joined #ruby
[01:49:25] hutch34_: has joined #ruby
[01:52:06] Dios: has joined #ruby
[01:54:30] razer_: has joined #ruby
[01:55:19] idefine: has joined #ruby
[01:55:27] markfletcher: has joined #ruby
[01:55:42] razer_: Shouldn't "ruby --verbose" do the same thing as "ruby -v" ?
[01:55:48] jeanlinux: has joined #ruby
[01:57:40] Radar: razer_: no
[01:57:46] Radar: ruby -v outputs the version
[01:58:04] Radar: razer_: and apparently it turns on verbose mode too
[01:58:12] Radar: -v print version number, then turn on verbose mode
[01:58:16] jenrzzz: has joined #ruby
[01:58:17] Radar: from ruby -h
[01:58:18] razer_: I know -v stands for verbose, but people think it stand for version because in verbose mode the version is also ouput and --version is the version command.
[01:58:41] razer_: I know other programs you can type -v or --verbose so I tried --verbose and it didn't work.
[01:58:58] razer_: Just thought that was curious thing.
[01:59:15] Radar: http://mislav.net/2011/06/ruby-verbose-mode/
[02:00:22] razer_: Oh, ok, I guess these options are not as clear cut
[02:00:55] tristanp: has joined #ruby
[02:01:59] paradisaeidae: has joined #ruby
[02:02:36] Devalo: has joined #ruby
[02:03:56] jeyraof: has joined #ruby
[02:04:07] jeyraof: #join #rust
[02:05:18] tristanp: has joined #ruby
[02:05:34] jord: has joined #ruby
[02:05:58] karmatr0n: has joined #ruby
[02:07:30] Coral: has joined #ruby
[02:11:00] jeyraof: has joined #ruby
[02:12:37] tuelz: has joined #ruby
[02:17:56] pawnbox: has joined #ruby
[02:18:14] jancel: has joined #ruby
[02:21:52] ryez: has joined #ruby
[02:23:30] mattwashere: has joined #ruby
[02:32:12] aibot: has joined #ruby
[02:32:35] idefine: has joined #ruby
[02:34:48] tristanp: has joined #ruby
[02:35:56] nankyokusei: has joined #ruby
[02:36:53] bmurt: has joined #ruby
[02:38:32] pawnbox: has joined #ruby
[02:38:41] tristanp: has joined #ruby
[02:40:45] gfvcastro: has joined #ruby
[02:46:32] Rodya_: has joined #ruby
[02:46:32] tristanp_: has joined #ruby
[02:47:16] craigp: has joined #ruby
[02:48:21] eGGshke: has joined #ruby
[02:48:45] bronson: has joined #ruby
[02:50:12] hutch34_: has joined #ruby
[02:50:42] SilverKey: has joined #ruby
[02:52:20] GinoMan2440_: has joined #ruby
[02:53:25] sstubben_: has joined #ruby
[02:54:20] tristanp: has joined #ruby
[02:54:29] sstubben: has joined #ruby
[02:55:13] dimasg: has joined #ruby
[02:55:38] mistermocha: has joined #ruby
[02:56:45] LoneHerm_: has joined #ruby
[02:58:48] robbyoconnor: has joined #ruby
[03:00:22] tristanp: has joined #ruby
[03:02:26] dionysus69: has joined #ruby
[03:02:52] gfvcastro: has joined #ruby
[03:04:24] robbyoconnor: has joined #ruby
[03:06:04] nando294121: has joined #ruby
[03:06:24] slackbotgz: has joined #ruby
[03:07:42] zast: has joined #ruby
[03:09:39] tristanp_: has joined #ruby
[03:11:59] ledestin: has joined #ruby
[03:12:31] tristanp_: has joined #ruby
[03:14:19] pawnbox: has joined #ruby
[03:14:49] mesamoo: has joined #ruby
[03:17:05] phredus_: has joined #ruby
[03:17:27] braincras: has joined #ruby
[03:19:00] nerium: has joined #ruby
[03:19:03] aibot: has joined #ruby
[03:21:17] k3rn31: has joined #ruby
[03:22:17] tristanp: has joined #ruby
[03:25:03] moeabdol: has joined #ruby
[03:28:34] paradisaeidae: has joined #ruby
[03:28:38] d0lph1n98: has joined #ruby
[03:33:10] bmurt: has joined #ruby
[03:33:23] Dios: has joined #ruby
[03:36:54] idefine: has joined #ruby
[03:37:03] JesseH: has joined #ruby
[03:37:47] tristanp: has joined #ruby
[03:40:15] moeabdol: has joined #ruby
[03:42:25] terminalrecluse: has joined #ruby
[03:43:09] jaequery: has joined #ruby
[03:43:28] karmatr0n: has joined #ruby
[03:46:20] Caerus|Away: has joined #ruby
[03:46:21] Cyrus: has joined #ruby
[03:46:39] shiver: has joined #ruby
[03:47:06] teotwaki: has joined #ruby
[03:47:17] tjvc: has joined #ruby
[03:47:17] tjvc: has joined #ruby
[03:47:23] iooner: has joined #ruby
[03:47:30] BiHi: has joined #ruby
[03:47:37] phredus_: has joined #ruby
[03:48:14] DEac-: has joined #ruby
[03:48:27] mistermocha: has joined #ruby
[03:48:34] moss: has joined #ruby
[03:49:01] cephalosporin: has joined #ruby
[03:49:32] bronson: has joined #ruby
[03:51:02] hutch34_: has joined #ruby
[03:52:27] skalfyfan: has joined #ruby
[03:53:31] kareeoleez: has joined #ruby
[03:54:28] tristanp_: has joined #ruby
[03:56:16] d0lph1n98: has joined #ruby
[03:56:44] phredus_: has joined #ruby
[03:58:46] hk238: has joined #ruby
[03:59:37] mattwashere: has joined #ruby
[04:02:15] ramfjord: has joined #ruby
[04:02:22] bronson: has joined #ruby
[04:04:02] jaguarmagenta: has joined #ruby
[04:04:26] gix: has joined #ruby
[04:05:19] tristanp: has joined #ruby
[04:06:23] Devalo: has joined #ruby
[04:08:08] pawnbox: has joined #ruby
[04:08:23] centrx: has joined #ruby
[04:09:08] phredus_: has joined #ruby
[04:09:48] tristanp: has joined #ruby
[04:09:49] jaguarmagenta: has joined #ruby
[04:13:52] rickmasta: has joined #ruby
[04:14:06] stardiviner: has joined #ruby
[04:15:01] SpikeMaster: has joined #ruby
[04:21:02] dhk: has joined #ruby
[04:21:21] seth: has joined #ruby
[04:22:33] tristanp_: has joined #ruby
[04:22:40] phredus_: has joined #ruby
[04:25:42] jaguarmagenta: has joined #ruby
[04:27:33] gsingh93: has joined #ruby
[04:28:01] Rodya_: has joined #ruby
[04:31:29] kgrz: has joined #ruby
[04:32:26] PaulCape_: has joined #ruby
[04:32:30] diegoaguilar: has joined #ruby
[04:33:41] tristanp: has joined #ruby
[04:34:41] karmatr0n: has joined #ruby
[04:36:49] s00pcan: has joined #ruby
[04:37:00] nankyokusei: has joined #ruby
[04:37:57] nettoweb: has joined #ruby
[04:38:42] dhk: has joined #ruby
[04:39:29] idefine: has joined #ruby
[04:42:06] GnuYawk: has joined #ruby
[04:42:12] GnuYawk: has joined #ruby
[04:42:16] tristanp_: has joined #ruby
[04:44:09] gfvcastro: has joined #ruby
[04:44:41] tildes_: has joined #ruby
[04:47:05] phredus_: has joined #ruby
[04:47:55] Alazoral: has joined #ruby
[04:48:52] Tempesta: has joined #ruby
[04:49:18] eGGshke: has joined #ruby
[04:51:06] rkazak: has joined #ruby
[04:51:19] jenrzzz: has joined #ruby
[04:51:48] hutch34_: has joined #ruby
[04:53:36] jaguarmagenta: has joined #ruby
[04:54:14] edwinvdgraaf: has joined #ruby
[04:54:21] tristanp: has joined #ruby
[04:54:58] alfie_max15: has joined #ruby
[04:55:34] d0lph1n98: has joined #ruby
[04:56:21] pawnbox: has joined #ruby
[04:58:02] PaulCapestany: has joined #ruby
[05:03:19] bronson: has joined #ruby
[05:03:34] craigp: has joined #ruby
[05:05:30] idefine: has joined #ruby
[05:09:23] sauvin: has joined #ruby
[05:10:33] beilabs_: has joined #ruby
[05:11:07] jaguarmagenta: has joined #ruby
[05:12:57] Devalo: has joined #ruby
[05:13:07] terminalrecluse: has joined #ruby
[05:14:32] giz|work: has joined #ruby
[05:16:09] beilabs: has joined #ruby
[05:17:58] jenrzzz: has joined #ruby
[05:18:47] sneakersec: has joined #ruby
[05:20:36] alfie_max15: has joined #ruby
[05:23:13] dionysus69: has joined #ruby
[05:23:46] han`: has joined #ruby
[05:24:16] han`: what is the difference between a = [1,2]; a | [2,3] and a = [1,2]; a |= [2,3]
[05:24:43] han`: oh duh never mind
[05:24:59] PaulCape_: has joined #ruby
[05:25:04] han`: took writing it out to figure out the answer
[05:25:17] Radar: one assigns the result to a, the other one doesn't
[05:25:52] han`: i was in irb just looking at the result and not thinking straight
[05:27:24] tristanp_: has joined #ruby
[05:29:16] dimasg: has joined #ruby
[05:31:16] tristanp: has joined #ruby
[05:33:26] zast: has left #ruby: ()
[05:34:56] tristanp_: has joined #ruby
[05:37:46] cgfbee: has joined #ruby
[05:38:42] soulisson: has joined #ruby
[05:40:08] soulisson: Hi, I'm a little bit rusty on the concept of exceptions. My understanding of an exception is it's an exceptional situation situation that occurred during program execution and it requires handling
[05:40:14] soulisson: is that correct?
[05:40:14] Cohedrin: has joined #ruby
[05:40:46] tristanp: has joined #ruby
[05:40:48] Radar: it doesn't require handling necessarily. The point of an exception is to show that indeed something exceptional happened
[05:42:20] soulisson: Radar, ok, so an exception is an exceptional situation that occurred during run time?
[05:45:22] blingrang: has joined #ruby
[05:48:45] charliesome: has joined #ruby
[05:50:03] jenrzzz: has joined #ruby
[05:51:02] PaulCapestany: has joined #ruby
[05:51:24] pabloh: has joined #ruby
[05:52:34] hutch34_: has joined #ruby
[05:54:34] moeabdol: has joined #ruby
[05:56:51] tristanp_: has joined #ruby
[05:57:47] soulisson: has joined #ruby
[05:59:24] nerium: has joined #ruby
[05:59:35] kareeoleez: has joined #ruby
[06:00:24] tristanp: has joined #ruby
[06:02:25] stardiviner: has joined #ruby
[06:03:56] hahuang65: has joined #ruby
[06:04:10] bronson: has joined #ruby
[06:05:55] tristanp: has joined #ruby
[06:06:29] kareeoleez: has joined #ruby
[06:08:09] Macaveli: has joined #ruby
[06:08:12] alfie_max15: has joined #ruby
[06:10:00] jancel: has joined #ruby
[06:10:01] djbkd: has joined #ruby
[06:12:20] strigonLeader: has joined #ruby
[06:12:32] bigkevmcd: has joined #ruby
[06:12:39] duncannz: has joined #ruby
[06:12:49] pwnd_nsfw`: has joined #ruby
[06:13:36] Axy: has joined #ruby
[06:15:49] alfie_max15: has joined #ruby
[06:16:07] Guest43: has joined #ruby
[06:17:40] hightower3: has joined #ruby
[06:18:11] lxsameer: has joined #ruby
[06:18:38] PaulCape_: has joined #ruby
[06:23:59] siovene: has joined #ruby
[06:24:46] fenre: has joined #ruby
[06:26:29] yfeldblum: has joined #ruby
[06:26:55] certainty: has joined #ruby
[06:27:16] yfeldblum: has joined #ruby
[06:27:55] tristanp: has joined #ruby
[06:30:02] dimasg: has joined #ruby
[06:30:36] firstdayonthejob: has joined #ruby
[06:30:52] pawnbox: has joined #ruby
[06:31:26] mnrmnaugh: has left #ruby: ("Leaving")
[06:33:02] codecop: has joined #ruby
[06:33:06] nhhc: has joined #ruby
[06:34:24] mnrmnaugh: has joined #ruby
[06:34:55] n1x-nz: has joined #ruby
[06:35:03] tristanp_: has joined #ruby
[06:35:13] roelof: has joined #ruby
[06:36:04] roelof: Hello, Am I right that Model.limit(10).order('updated_at desc') gives me the last 10 items that are updated ?
[06:36:18] Radar: ?rails roelof
[06:36:18] ruby[bot]: roelof: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[06:37:01] roelof: Radar: oke, I will ask there. Thanks for the help
[06:37:38] nankyokusei: has joined #ruby
[06:38:06] phredus_: has joined #ruby
[06:38:29] tristanp: has joined #ruby
[06:38:42] Billias_: has joined #ruby
[06:39:41] conta: has joined #ruby
[06:42:18] terlar: has joined #ruby
[06:42:58] okdas: has joined #ruby
[06:42:58] okdas: has joined #ruby
[06:44:26] PaulCapestany: has joined #ruby
[06:44:43] Billias: has joined #ruby
[06:44:45] Cohedrin: has joined #ruby
[06:46:37] dionysus69: are map and collect identical?
[06:46:40] giz|work: has joined #ruby
[06:46:58] tgeeky: >> map.method == collect.method
[06:46:58] ruby[bot]: tgeeky: # => undefined local variable or method `map' for main:Object ...check link for more (https://eval.in/577375)
[06:47:12] tgeeky: dionysus69: look at the source or docs, surely they will tell you
[06:47:17] Coral: has joined #ruby
[06:47:22] alfie_max15: has joined #ruby
[06:49:25] dionysus69: ok thanks tgeeky )
[06:49:51] eGGshke: has joined #ruby
[06:50:00] armyriad: has joined #ruby
[06:52:52] armyriad: has joined #ruby
[06:53:06] roelof: has left #ruby: ()
[06:53:23] hutch34_: has joined #ruby
[06:53:30] tgeeky: dionysus69: the answer is yes, by the way
[06:55:16] tuelz: has joined #ruby
[06:55:35] adac: has joined #ruby
[06:59:04] dionysus69: tgeeky: yep that was my suspicion :)
[07:02:06] Dimik: has joined #ruby
[07:02:37] Devalo: has joined #ruby
[07:02:41] certainty: has joined #ruby
[07:08:02] tristanp_: has joined #ruby
[07:10:59] PaulCape_: has joined #ruby
[07:11:42] tristanp: has joined #ruby
[07:13:53] terlar: has joined #ruby
[07:13:55] lxsameer: has joined #ruby
[07:13:55] lxsameer: has joined #ruby
[07:14:48] tristanp: has joined #ruby
[07:14:57] ferr: has joined #ruby
[07:16:13] PlasmaStar: has joined #ruby
[07:20:29] hightower2: has joined #ruby
[07:25:40] Madplatypus: has joined #ruby
[07:25:48] sstubben: has joined #ruby
[07:26:41] craigp: has joined #ruby
[07:28:07] charliesome: has joined #ruby
[07:28:09] tAn: has joined #ruby
[07:29:38] tao_: has joined #ruby
[07:29:47] DoubleMalt: has joined #ruby
[07:30:13] xall: has joined #ruby
[07:30:15] hinokata: has joined #ruby
[07:31:49] MatthewAllan93: has joined #ruby
[07:32:38] craigp: has joined #ruby
[07:33:01] MatthewAllan93: has left #ruby: ("WeeChat 1.5")
[07:33:01] TomyWork: has joined #ruby
[07:34:33] certainty: has joined #ruby
[07:36:18] freija_: has joined #ruby
[07:36:43] aufi: has joined #ruby
[07:37:25] tristanp: has joined #ruby
[07:38:13] PaulCapestany: has joined #ruby
[07:39:39] johnny56_: has joined #ruby
[07:40:47] tristanp: has joined #ruby
[07:50:26] mark_66: has joined #ruby
[07:51:18] eGGshke: has joined #ruby
[07:51:50] FooMunki: has joined #ruby
[07:52:34] aganov: has joined #ruby
[07:53:20] hightower2: has joined #ruby
[07:53:24] mikecmpbll: has joined #ruby
[07:54:09] hutch34_: has joined #ruby
[07:54:15] last_staff: has joined #ruby
[07:57:44] nerium: has joined #ruby
[07:58:51] jancel: has joined #ruby
[07:59:48] anisha: has joined #ruby
[08:02:25] tvw: has joined #ruby
[08:02:27] alfiemax: has joined #ruby
[08:02:43] tristanp_: has joined #ruby
[08:02:48] pawnbox: has joined #ruby
[08:04:06] joonty: has joined #ruby
[08:04:34] Couch: has joined #ruby
[08:05:03] bronson: has joined #ruby
[08:05:32] tristanp: has joined #ruby
[08:05:34] PaulCape_: has joined #ruby
[08:05:55] jaruga___: has joined #ruby
[08:07:15] mikecmpbll: has joined #ruby
[08:09:18] djbkd: has joined #ruby
[08:09:32] tristanp_: has joined #ruby
[08:10:49] tomphp: has joined #ruby
[08:11:31] weckl: has joined #ruby
[08:21:17] jaiks: has joined #ruby
[08:21:46] Coldblackice: has joined #ruby
[08:21:49] pawnbox: has joined #ruby
[08:23:07] ctp: has joined #ruby
[08:24:00] vdamewood: has joined #ruby
[08:24:38] A124: has joined #ruby
[08:26:11] pawnbox: has joined #ruby
[08:27:06] vdamewood: has joined #ruby
[08:29:35] PaulCapestany: has joined #ruby
[08:30:28] jaruga___: has joined #ruby
[08:31:19] _aeris_: has joined #ruby
[08:33:48] edwinvdgraaf: has joined #ruby
[08:34:37] Devalo: has joined #ruby
[08:34:50] norc: has joined #ruby
[08:38:14] tristanp: has joined #ruby
[08:38:48] senayar: has joined #ruby
[08:38:53] senayar: has joined #ruby
[08:39:38] jaguarmagenta: has joined #ruby
[08:40:28] tristanp_: has joined #ruby
[08:43:04] dimasg: has joined #ruby
[08:44:42] davee_: has joined #ruby
[08:47:14] Devalo: has joined #ruby
[08:48:20] certainty: has joined #ruby
[08:51:06] beilabs: has joined #ruby
[08:53:47] mnrmnaugh: has joined #ruby
[08:54:05] edwinvdgraaf: has joined #ruby
[08:54:23] c0mrad3: has joined #ruby
[08:54:56] hutch34_: has joined #ruby
[08:55:30] craigp: has joined #ruby
[08:55:51] tuelz: has joined #ruby
[08:56:38] y2mq37: has joined #ruby
[08:56:45] blaxter: has joined #ruby
[08:57:00] PaulCape_: has joined #ruby
[08:58:02] xall_: has joined #ruby
[08:58:40] ferr: has joined #ruby
[09:01:07] platzhirsch: has joined #ruby
[09:01:20] Devalo: has joined #ruby
[09:03:44] ur5us: has joined #ruby
[09:05:43] xall: has joined #ruby
[09:05:48] tristanp: has joined #ruby
[09:05:57] bronson: has joined #ruby
[09:06:02] pawnbox: has joined #ruby
[09:08:16] tristanp_: has joined #ruby
[09:09:09] pawnbox: has joined #ruby
[09:12:52] antgel: has joined #ruby
[09:13:18] edwinvdg_: has joined #ruby
[09:13:30] tristanp: has joined #ruby
[09:14:18] giz|work: has joined #ruby
[09:15:20] stardiviner: has joined #ruby
[09:16:11] tristanp_: has joined #ruby
[09:16:34] aharlan: has joined #ruby
[09:17:32] edavis: has joined #ruby
[09:17:55] GBrawl: has joined #ruby
[09:18:32] madgen: has joined #ruby
[09:22:15] PaulCapestany: has joined #ruby
[09:23:02] pawnbox: has joined #ruby
[09:25:04] Diabolik: has joined #ruby
[09:26:16] tristanp: has joined #ruby
[09:26:54] craigp: has joined #ruby
[09:28:44] evidex: has joined #ruby
[09:30:23] banister: has joined #ruby
[09:32:06] pawnbox: has joined #ruby
[09:33:51] Devalo: has joined #ruby
[09:36:33] dn5: has joined #ruby
[09:40:54] tristanp: has joined #ruby
[09:41:19] lxsameer: has joined #ruby
[09:41:27] skade: has joined #ruby
[09:41:56] banister: has joined #ruby
[09:42:22] alfiemax: has joined #ruby
[09:42:52] bsdnoob: has joined #ruby
[09:43:21] bsdnoob: while trying to run a ruby program I am getting error that libruby.so.2.2: cannot open shared object file
[09:44:20] edwinvdgraaf: has joined #ruby
[09:44:46] Devalo: has joined #ruby
[09:45:15] TTilus: your ruby installation seems broken
[09:45:39] futilegames: has joined #ruby
[09:45:48] TTilus: who maintains the system? did you install ruby yourself? if so, how?
[09:46:17] Mia: has joined #ruby
[09:46:17] Mia: has joined #ruby
[09:46:34] pawnbox: has joined #ruby
[09:48:50] PaulCape_: has joined #ruby
[09:49:34] futilegames: has joined #ruby
[09:50:18] TTilus: bsdnoob: happen to run arch? if so, (re)try `pacman -Syu` just to be sure
[09:50:38] bsdnoob: TTilus: it's fedora 24
[09:51:05] TTilus: ruby from distro packages?
[09:51:16] TTilus: does `ruby --version` work?
[09:51:37] bsdnoob: TTilus: ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]
[09:52:03] triangles: has joined #ruby
[09:52:12] TTilus: how about `ruby -e 'puts "test"'`
[09:52:54] mdw: has joined #ruby
[09:53:05] bsdnoob: TTilus: nothing happened ,
[09:53:08] dn5: bsdnoob: ` or just give us your ruby code
[09:53:14] dn5: that you are trying to execute
[09:53:26] phatypus: has joined #ruby
[09:54:18] TTilus: that would be the next thing
[09:54:45] bluOxigen: has joined #ruby
[09:55:17] eGGshke: has joined #ruby
[09:55:38] Devalo: has joined #ruby
[09:55:39] hutch34_: has joined #ruby
[09:56:32] pawnbox: has joined #ruby
[09:57:09] bsdnoob: dn5: https://github.com/evilsocket/bettercap
[09:57:13] tlaxkit: has joined #ruby
[09:57:20] nw1: has left #ruby: ("WeeChat 1.4")
[09:57:28] tristanp_: has joined #ruby
[09:58:08] vondruch_: has joined #ruby
[09:58:41] jhass: bsdnoob: you need to answer the question, how did you install ruby, exactly? also how did you install bettercap, exactly? and which command does give you the error, exactly?
[09:59:00] jhass: gist the full error output
[09:59:28] certainty: has joined #ruby
[09:59:48] bsdnoob: jhass: https://paste.fedoraproject.org/371020/25677414/
[10:00:33] jhass: why aren't you answering the other questions?
[10:00:51] dn5: obviously doesn't need help
[10:00:54] bsdnoob: jhass: I built it using "gem build bettercap.gemspec"
[10:00:58] blackgoat: has joined #ruby
[10:01:16] jhass: okay, 2/3
[10:01:23] jhass: the most important one still left
[10:01:27] bsdnoob: jhass: I installed it using sudo dnf install ruby-libs
[10:02:11] jhass: how long ago since you ran gem build bettercap.gemspec; gem install ./bettercap.gem (last part is guessed but something like it must have happened according to your error output)
[10:02:27] jhass: it looks like your ruby package was upgraded from 2.2 to 2.3 in the meantime
[10:02:45] jhass: try running sudo gem pristine bettercap
[10:03:11] bsdnoob: jhass: I built it quite a long time ago but today I was updated to fedora 24 with all new packages
[10:03:33] skade: has joined #ruby
[10:03:39] jhass: actually sudo gem pristine bettercap network_interface packetfu
[10:03:39] bsdnoob: So , I tried to build and run it again but ran into that error
[10:03:55] Azure: has joined #ruby
[10:04:05] dn5: do you use any rvm?
[10:04:08] jhass: gotta rebuild all involved gems
[10:04:10] jhass: dn5: they don't
[10:04:37] jhass: also thank your distro for undoing a sane ruby default, installing gems to ABI versioned directories
[10:05:09] bsdnoob: jhass: does gem pristine downloads files over internet ?
[10:05:09] dn5: why does fedore do that
[10:05:40] dn5: i ako nebudu imali tu informaciju da je nesto padalo im opet cu ih vratit sve u mail
[10:05:45] jhass: dn5: not sure but I'm sure part of the explanation includes "lol, yolo"
[10:05:54] tristanp: has joined #ruby
[10:06:21] dn5: fedora the explorer :>
[10:06:49] bsdnoob: jhass: Now it gives this error , https://paste.fedoraproject.org/371023/64257179/
[10:07:28] jhass: you ran the latter pristine command?
[10:07:49] jhass: what does a solo sudo gem pristine network_interface give?
[10:08:46] bsdnoob: jhass: ERROR: While executing gem ... (Gem::Exception) Failed to find gems ["network_interface"] >= 0
[10:09:10] jhass: that's curios
[10:09:31] jhass: anyway, sudo gem install network_interface then (that will require a network connection)
[10:11:00] bsdnoob: jhass: it gives me this https://paste.fedoraproject.org/371025/57439146/
[10:11:50] jhass: install the ruby-devel package or whatever it was called
[10:12:29] pawnbox: has joined #ruby
[10:12:43] sdothum: has joined #ruby
[10:13:54] aharlan: has joined #ruby
[10:14:11] bsdnoob: jhass: Now we're back at kernel_require.rb:55:in `require': libruby.so.2.2: cannot open shared object file: No such file or directory
[10:14:37] jhass: doing what?
[10:14:58] bsdnoob: jhass : sudo ./bettercap
[10:15:09] jhass: full error output as always
[10:15:12] PaulCapestany: has joined #ruby
[10:16:08] bsdnoob: jhass: https://paste.fedoraproject.org/371030/64257758/
[10:16:32] mdw: has joined #ruby
[10:17:00] jhass: you did do sudo gem install network_interface after installing ruby-devel ?
[10:17:06] bsdnoob: jhass: yep
[10:17:18] jhass: what's your gem env and sudo gem env output?
[10:19:42] bsdnoob: jhass: https://paste.fedoraproject.org/371031/14642579/
[10:21:15] jhass: nothing abnormal there, there was no error output for the sudo gem install network_interface? could you sudo gem uninstall network_interface and then reinstall?
[10:21:40] Xiti`: has joined #ruby
[10:21:54] ur5us: has joined #ruby
[10:22:39] hk238: has joined #ruby
[10:23:01] d0lph1n98: has joined #ruby
[10:23:11] pawnbox: has joined #ruby
[10:24:02] graphicmist: has joined #ruby
[10:25:05] jomofcw: has joined #ruby
[10:25:10] jomofcw: Hello :) !
[10:25:19] startupality: has joined #ruby
[10:25:37] jinie: has joined #ruby
[10:25:38] bsdnoob: jhass: https://paste.fedoraproject.org/371037/46425831/
[10:25:42] ICantCook: has joined #ruby
[10:27:06] jhass: bsdnoob: same dance for pcaprub now then
[10:27:31] stardiviner: has joined #ruby
[10:27:39] Devalo: has joined #ruby
[10:28:04] vinleod: has joined #ruby
[10:28:41] bsdnoob: jhass: this time we have a new error https://paste.fedoraproject.org/371039/42585071/
[10:30:13] jhass: bsdnoob: still the same dance, hitimes now
[10:30:14] craigp_: has joined #ruby
[10:30:26] bsdnoob: after reinstalling hitimes , I get https://paste.fedoraproject.org/371040/14642586/
[10:30:59] jomofcw: I've some ruby related problems installing the latest version of redmine (3.2.2). Doing "bundle install --without development test" echo me an eror about mysql2. So then I follow instruction and perform a "gem install mysql2 -v '0.3.21'". And then I receive a fail result, with tne ERROR : "ERROR: Error installing mysql2: ERROR: Failed to build gem native extension." and then... I srsly don't
[10:30:59] jomofcw: know what to do now :(.
[10:31:08] jomofcw: Can you help me please ?
[10:31:43] edwinvdgraaf: has joined #ruby
[10:31:50] jhass: bsdnoob: common, try to recognize the pattern
[10:31:58] bsdnoob: jhass: sure
[10:31:58] jhass: bsdnoob: nio4r now
[10:32:16] triangles2: has joined #ruby
[10:32:21] troulouliou_div2: has joined #ruby
[10:32:39] jhass: jomofcw: only with your full error output in a gist ;)
[10:32:47] jomofcw: jhass no problem :).
[10:33:18] jomofcw: jhass there we are : https://gist.github.com/anonymous/d6750ddcd140cded057ad002f35e837f
[10:33:39] tristanp_: has joined #ruby
[10:33:48] jomofcw: If it can help jhass I can get a pastie of the bundler error too.
[10:33:56] jhass: jomofcw: your issue is /usr/bin/ld: cannot find -lmysqlclient_r
[10:34:08] jhass: gotta look where you get that lib for your distro
[10:34:17] bsdnoob: jhass: I love you :D
[10:35:18] jomofcw: jhass hm I'm not the root of this server :/ so I probably need the help of the network administrator there :S.
[10:35:49] jhass: for example for arch it's libmariadbclient
[10:35:56] jhass: usr/lib/libmysqlclient_r.so
[10:36:47] jhass: I mean you could go all "compile this locally, set LIBRARY_PATH/LD_LIBRARY_PATH, blabla", but what mess would that create
[10:36:48] tristanp: has joined #ruby
[10:37:34] jhass: well, /usr/bin/ld: skipping incompatible /usr/lib/libmysqlclient_r.so when searching for -lmysqlclient_r si a bit curious though
[10:38:01] jhass: still I'd make sure the package is sanely installed first
[10:38:21] jomofcw: jhass yup that's what I'm asking to my network admin now.
[10:39:00] jhass: could be a 32bit/64bit issue
[10:39:23] nankyokusei: has joined #ruby
[10:39:40] jomofcw: OK thanks for the informations jhass ! Will wait for the network admin response.
[10:39:53] skade: has joined #ruby
[10:40:24] jaguarmagenta: has joined #ruby
[10:40:46] PaulCape_: has joined #ruby
[10:41:24] Azure: has joined #ruby
[10:41:35] phutchins: has joined #ruby
[10:42:06] freerobby: has joined #ruby
[10:42:25] GodFather__: has joined #ruby
[10:43:03] jomofcw: hm... trying to install rails give me the same type of erreor... is it the same issue please ? https://gist.github.com/anonymous/7e676e8215780d02c87f9618a77e4faa
[10:44:12] arlek: has joined #ruby
[10:45:25] binaryplease: has joined #ruby
[10:46:35] jhass: that's a curios nokogiri version
[10:46:42] jhass: no idea why it would pick that
[10:46:50] jhass: what's your gem -v ?
[10:48:41] jomofcw: 2.2.5 jhass
[10:48:56] jhass: that's a bit old, another thing you could consider upgrading
[10:49:40] jomofcw: how to please ? rvm gem get-stable ?
[10:49:43] jhass: actually, do you have git installed?
[10:49:49] jhass: oh, using RVM?
[10:49:55] jhass: rvm rubygems update iirc
[10:50:10] workmad3: has joined #ruby
[10:50:36] jomofcw: Dunno, probably I would say... lemme see.
[10:50:45] jomofcw: rvm rubygems update iirc > "Installed rubygems 2.2.5 is newer than update provided with installed ruby, skipping installation, use --force to force installation."
[10:52:18] jmignault: has joined #ruby
[10:52:54] startupality: has joined #ruby
[10:52:58] jomofcw: git version > "Segmentation fault"
[10:53:10] jomofcw: There seems to be some stuff broken there :/.
[10:53:56] jomofcw: jhass you mean "rvm rubygems update latest" ? > "Installed rubygems 2.2.5 is newer than update provided with installed ruby, skipping installation, use --force to force installation."
[10:54:13] jhass: or just rvm rubygems latest
[10:54:19] jhass: idk, I really don't use it anymore
[10:54:26] jhass: and yeah, won't help anyway until your git works
[10:54:49] jomofcw: rubygems 2.4.8 installed =).
[10:55:17] jomofcw: Then ? Waiting for next instructions :P.
[10:55:37] jomofcw: And anyway, I must already say thanks for your time jhass :).
[10:56:13] jomofcw: Shall I try to perform the gems update again ?
[10:56:16] vondruch_: has joined #ruby
[10:56:28] hutch34_: has joined #ruby
[10:56:31] tuelz: has joined #ruby
[10:56:58] jomofcw: same issue :'(.
[10:57:15] jhass: yup as said, broken git
[10:58:23] jomofcw: Dunno if I shall try to update it...
[10:58:58] jhass: you can update git but not fix libmysqlclient_r ?
[10:59:15] tlaxkit: has joined #ruby
[10:59:23] jomofcw: jhass dunno what i can do or not in fact... tias ^^.
[10:59:52] jomofcw: Hm I can't perform a "apt-get update" :/
[10:59:54] Devalo: has joined #ruby
[11:00:18] alfiemax: has joined #ruby
[11:00:34] jomofcw: Can't access apt-get at all :/... so I can't upgrade/fix git.
[11:00:48] tristanp: has joined #ruby
[11:00:53] gnufied: has joined #ruby
[11:01:36] jomofcw: Going to eat waiting the root answer.
[11:01:45] jomofcw: Thanks for your help jhass, brb.
[11:02:24] skade: has joined #ruby
[11:05:12] skade: has joined #ruby
[11:06:52] bronson: has joined #ruby
[11:07:04] PaulCapestany: has joined #ruby
[11:09:07] ocbtec: has joined #ruby
[11:09:49] Xiti: has joined #ruby
[11:10:29] pld: has joined #ruby
[11:11:16] certainty: has joined #ruby
[11:11:37] pld: hi, can i shorten these 3 lines to 1 line?
[11:11:40] pld: https://bpaste.net/show/631b73af95f0
[11:15:42] Hanmac: pid: checkout Enumerable#map and Array#join
[11:19:12] tristanp_: has joined #ruby
[11:21:14] tristanp: has joined #ruby
[11:21:16] k3rn31: has joined #ruby
[11:23:04] tristanm_: has joined #ruby
[11:23:37] johnmilton: has joined #ruby
[11:24:20] conta: has joined #ruby
[11:26:29] aadam21: has joined #ruby
[11:28:26] tristanp: has joined #ruby
[11:28:32] freerobby: has joined #ruby
[11:29:02] pwnd_nsfw`: has joined #ruby
[11:30:26] Ropeney: has joined #ruby
[11:31:09] pld: hanmac: thanks. i'm using " message.codepoints.map { |c| c.send(operator, offset).chr }.join" now. could i have done it with each_codepoint, too?
[11:32:27] Devalo: has joined #ruby
[11:33:40] PaulCape_: has joined #ruby
[11:33:40] evidex: has joined #ruby
[11:34:43] k3rn31: has joined #ruby
[11:34:49] jhass: since each_codepoint returns an Enumerator which includes Enumerable
[11:34:58] jmignault: has joined #ruby
[11:36:58] Hanmac: has joined #ruby
[11:37:54] Didac: has joined #ruby
[11:37:59] chris2: has joined #ruby
[11:38:17] GarethAdams: has joined #ruby
[11:40:09] hutch34_: has joined #ruby
[11:41:21] tristanp: has joined #ruby
[11:41:52] terlar: has joined #ruby
[11:46:09] Blaze_Boy: has joined #ruby
[11:46:24] charliesome: has joined #ruby
[11:47:18] m8: has joined #ruby
[11:49:44] tristanp_: has joined #ruby
[11:52:10] tristanp: has joined #ruby
[11:52:25] ferr: has joined #ruby
[11:52:38] certainty: has joined #ruby
[11:53:22] karmatr0n: has joined #ruby
[11:55:25] nerium: has joined #ruby
[11:57:01] duckpupp1: has joined #ruby
[11:57:07] tristanp_: has joined #ruby
[11:59:09] mistermocha: has joined #ruby
[11:59:10] Hanmac: has joined #ruby
[11:59:42] tuelz: has joined #ruby
[11:59:52] tristanp: has joined #ruby
[12:00:16] PaulCapestany: has joined #ruby
[12:02:19] jomofcw: jhass git and library problem fixed by root, installation in progress ;). Thanks for your help =).
[12:02:47] the_drow: has joined #ruby
[12:06:14] madgen: has joined #ruby
[12:07:40] Alazoral: has joined #ruby
[12:07:50] beilabs: has joined #ruby
[12:08:00] Ishido: has joined #ruby
[12:08:19] epistrephein: has joined #ruby
[12:09:00] synthroid: has joined #ruby
[12:10:52] hiyosi: has joined #ruby
[12:11:14] antgel: has joined #ruby
[12:13:16] Coral: has joined #ruby
[12:14:45] moos3: has joined #ruby
[12:15:54] mdw: has joined #ruby
[12:17:32] _aeris_: has joined #ruby
[12:17:54] giz|work: has joined #ruby
[12:18:55] dANOKELOFF_: has joined #ruby
[12:19:09] aadam21: has joined #ruby
[12:19:38] jomofcw: I succeed doing the upgrade. But I'm still stuck on an error web page saying "We're sorry, but something went wrong. We've been notified about this issue and we'll take a look at it shortly.". Is that a redmine message or a Ruby one ?
[12:19:51] GinoMan2440: has joined #ruby
[12:21:29] beilabs: has joined #ruby
[12:21:33] jaguarmagenta: has joined #ruby
[12:21:51] antgel: has joined #ruby
[12:24:52] PaulCape_: has joined #ruby
[12:26:05] kgrz: has joined #ruby
[12:27:56] GinoManWorks: has joined #ruby
[12:28:41] tristanp: has joined #ruby
[12:31:04] lxsameer: has joined #ruby
[12:33:08] hutch34: has joined #ruby
[12:34:21] nerium: has joined #ruby
[12:37:40] CJKinni`: has joined #ruby
[12:37:57] blackgoat: has joined #ruby
[12:40:27] nankyokusei: has joined #ruby
[12:40:31] nofxx: has joined #ruby
[12:40:32] nofxx: has joined #ruby
[12:40:44] joonty: has joined #ruby
[12:41:33] tristanp: has joined #ruby
[12:42:18] GodFather__: has joined #ruby
[12:46:15] st1gma: has joined #ruby
[12:47:08] xkapastel: has joined #ruby
[12:47:12] deadnull_: has joined #ruby
[12:47:29] |2701: has joined #ruby
[12:47:55] Devalo: has joined #ruby
[12:49:00] the_drow: has joined #ruby
[12:49:54] snowy: has joined #ruby
[12:50:59] Caerus: see ya #ruby
[12:51:54] PaulCapestany: has joined #ruby
[12:52:22] tristanp: has joined #ruby
[12:53:20] beilabs: has joined #ruby
[12:53:52] nando293921: has joined #ruby
[12:57:08] jhass: jomofcw: sort of in between, rails default 500 page. have a look at log/production.log and ask #redmine about it
[12:57:08] dimasg: has joined #ruby
[12:57:29] tristanp_: has joined #ruby
[12:58:32] jomofcw: jhass already done ! It seems to be a passenger problem.
[13:00:35] jomofcw: jhass and I have a "segmentation fault" too calling some passenger stuff, so I think it's broken as git was.
[13:01:01] jhass: might be safer to trash the whole system :P
[13:02:11] nando293921: has joined #ruby
[13:02:59] ramortegui: has joined #ruby
[13:03:08] jomofcw: jhass yea probably :P If I was the root, for sure that's what I've done since start xD.
[13:03:36] dimasg: has joined #ruby
[13:04:12] jhass: what's your uname -a? wouldn't surprise me if we're able to make you root...
[13:07:48] ferr: has joined #ruby
[13:10:21] shazaum: has joined #ruby
[13:11:01] ChiefAlexander: has joined #ruby
[13:13:01] tristanp: has joined #ruby
[13:13:26] jomofcw: jhass I fixed it ! In fact, it seems that the system doesn't remember wich version of Ruby to use after reboot :/... so "rvm use ruby-2.2.0" make it work now.
[13:13:28] hutch34: has joined #ruby
[13:14:06] jhass: jomofcw: rvm use --default 2.2
[13:15:12] jomofcw: jhass i'm currently using 2.2.0 not 2.2.4. Shall I upgrade ? If yes, how can I do it easily without losing all the things I just battle with :) ? please.
[13:15:35] moos3_: has joined #ruby
[13:15:52] jhass: yes. rvm install 2.2.5; rvm gemset migrate 2.2.0 2.2.5 or something?
[13:16:06] certainty: has joined #ruby
[13:17:36] jomofcw: 2.2.5 or 2.2.4 ?
[13:18:14] edwinvdgraaf: has joined #ruby
[13:19:24] babblebre: has joined #ruby
[13:19:28] PaulCape_: has joined #ruby
[13:22:49] jaguarmagenta: has joined #ruby
[13:22:51] doodleha_: has joined #ruby
[13:23:29] karmatr0n: has joined #ruby
[13:25:48] jhass: 2.2.5 of course
[13:25:57] jhass: if you upgrade, why would you to an old version
[13:26:02] tristanp: has joined #ruby
[13:26:11] jomofcw: it seems that the latest stable is 2.2.4
[13:26:17] jomofcw: for 2.2 branches
[13:26:30] jomofcw: i'm in 2.2.0 curently :p
[13:26:44] jomofcw: so 2.2.4 still be an update :P.
[13:26:45] the_drow: has joined #ruby
[13:27:22] the_drow: has joined #ruby
[13:27:36] JakFrist: has joined #ruby
[13:28:20] Mia: has joined #ruby
[13:28:28] madgen: has joined #ruby
[13:29:48] aegis3121: has joined #ruby
[13:29:53] mdw: has joined #ruby
[13:30:04] kareeoleez: has joined #ruby
[13:31:15] fmcgeough: has joined #ruby
[13:32:06] jomofcw: anyway... I'll get to 2.3 :D
[13:32:12] jomofcw: redmine is compatible.
[13:33:39] malconis: has joined #ruby
[13:35:17] gabrielrios: has joined #ruby
[13:36:55] sepp2k: has joined #ruby
[13:37:07] edwinvdg_: has joined #ruby
[13:39:56] jomofcw: jhass all is OK now ^^ ! 2.3 by default =). Already said but : thanks for your help and your time. Fixed !
[13:42:34] edwinvdgraaf: has joined #ruby
[13:43:00] chipotle: has joined #ruby
[13:43:29] tristanp_: has joined #ruby
[13:45:14] snowy: has joined #ruby
[13:46:34] PaulCapestany: has joined #ruby
[13:47:26] hightower2: has joined #ruby
[13:49:28] TvL2386: has joined #ruby
[13:49:41] mattwashere: has joined #ruby
[13:50:32] idefine: has joined #ruby
[13:50:59] tristanp: has joined #ruby
[13:52:01] davedev24: has joined #ruby
[13:52:37] aadam21: has joined #ruby
[13:53:13] aadam21: has joined #ruby
[13:53:19] ChiefAlexander: has joined #ruby
[13:53:56] jrafanie: has joined #ruby
[13:54:06] bmurt: has joined #ruby
[13:55:34] swills: has joined #ruby
[13:58:04] tristanp: has joined #ruby
[13:59:58] freerobby1: has joined #ruby
[14:00:15] k3rn31: has joined #ruby
[14:01:34] freerobby: has joined #ruby
[14:02:11] tAn: has joined #ruby
[14:02:27] startupality: has joined #ruby
[14:02:49] tAn: has joined #ruby
[14:03:49] Devalo: has joined #ruby
[14:06:43] lukec: has joined #ruby
[14:06:55] Vlat-: has joined #ruby
[14:07:18] mdw: has joined #ruby
[14:08:42] heinrich5991: has joined #ruby
[14:10:34] karmatr0n: has joined #ruby
[14:11:06] moeabdol: has joined #ruby
[14:11:20] SilverKey: has joined #ruby
[14:12:04] PaulCape_: has joined #ruby
[14:12:05] han`: has joined #ruby
[14:13:42] tristanp: has joined #ruby
[14:14:07] tao_: has joined #ruby
[14:14:51] tao_: has joined #ruby
[14:16:36] han`: has joined #ruby
[14:18:02] dopamean_: has joined #ruby
[14:19:37] woodruffw: has joined #ruby
[14:21:25] mattwashere: has joined #ruby
[14:23:58] aadam21: has left #ruby: ()
[14:24:44] kent\n: has joined #ruby
[14:24:44] kent\n: has joined #ruby
[14:25:45] edwinvdg_: has joined #ruby
[14:26:17] tristanp_: has joined #ruby
[14:27:49] kareeoleez: has joined #ruby
[14:29:16] giz|work: has joined #ruby
[14:29:36] Sou|cutter: has joined #ruby
[14:30:16] mattwashere: has joined #ruby
[14:30:22] Macaveli: has joined #ruby
[14:30:44] JesseH: has joined #ruby
[14:30:47] edwinvdgraaf: has joined #ruby
[14:30:49] mr_rich101: has joined #ruby
[14:31:35] habitullence: How to deal with unexpected values? Should I put in a guard or use exceptions? Suggestions...
[14:32:23] nadir: has joined #ruby
[14:32:26] phutchins: Expect them and you not be disappointed...
[14:32:55] dionysus69: has joined #ruby
[14:33:23] Vlat-: wrote 3 line according habitullence question, but phutchins answered with 8 words
[14:34:15] Blaze_Boy: has joined #ruby
[14:34:21] habitullence: I might need the eight lines though, wisdom that is beyond my grasp
[14:35:07] shevy: it is either beer - or wisdom
[14:35:27] binaryplease1: has joined #ruby
[14:35:35] habitullence: from great beer, comes great wisdom
[14:35:47] habitullence: and from great wisdom, comes great beer
[14:36:05] Vlat-: exceptions are for general stuff, like user can't log in, in case of DB connection failure, for example. Guards are for local stuff, like dude forgot @ from his/her email address
[14:36:08] Devalo: has joined #ruby
[14:36:16] Vlat-: IMHO, of course
[14:36:16] shevy: habitullence so true
[14:36:53] bronson: has joined #ruby
[14:36:58] cdg: has joined #ruby
[14:38:05] PaulCapestany: has joined #ruby
[14:39:33] ryez: has joined #ruby
[14:39:49] kobain: has joined #ruby
[14:40:09] jokke: hello, i assume someone here uses mac os. could that someone run following command for me and paste the output? openssl enc -h 2>&1 | grep '\-gcm'
[14:41:05] nankyokusei: has joined #ruby
[14:42:37] beilabs_: has joined #ruby
[14:42:40] polishdub: has joined #ruby
[14:42:49] habitullence: Vlat, I see what you're getting at.. I guess it comes down simply to what you consider an exception and where it can be dealt with. If you can deal with it locally, then do so, otherwise you need to throw it up the chain.
[14:43:08] habitullence: Sounds like a sensible approach
[14:44:08] snowy: has joined #ruby
[14:44:13] certainty: has joined #ruby
[14:45:03] kobain: has joined #ruby
[14:45:26] Vlat-: habitullence: exception is something big,terrible and loud. like a whole application crash. :) in my own way of thinking.
[14:45:54] ctp: has joined #ruby
[14:47:16] habitullence: Vlat: sounds right, thanks
[14:49:21] jancel: has joined #ruby
[14:49:53] Devalo: has joined #ruby
[14:52:24] rbennacer: has joined #ruby
[14:53:22] maloik: has joined #ruby
[14:53:43] rippa: has joined #ruby
[14:54:03] beilabs: has joined #ruby
[14:54:16] charliesome: has joined #ruby
[14:55:18] tristanp: has joined #ruby
[14:55:49] beilabs_: has joined #ruby
[14:55:58] tristanp: has joined #ruby
[14:57:32] skade: has joined #ruby
[14:58:32] gfvcastro: has joined #ruby
[14:59:55] Seanzie: has joined #ruby
[15:02:20] jefeson: has joined #ruby
[15:03:39] bruce_lee: has joined #ruby
[15:04:40] PaulCape_: has joined #ruby
[15:07:39] aegis3121: has joined #ruby
[15:07:46] rkazak: has joined #ruby
[15:08:08] certainty: has joined #ruby
[15:09:48] kareeoleez: has joined #ruby
[15:12:28] nankyokusei: has joined #ruby
[15:12:31] tax: has joined #ruby
[15:12:32] Blaze_Boy: has left #ruby: ("ERC (IRC client for Emacs 24.5.1)")
[15:14:26] maucar: has joined #ruby
[15:15:17] edwinvdgraaf: has joined #ruby
[15:16:22] tax: has joined #ruby
[15:16:53] pld: has joined #ruby
[15:16:55] johnmilton: has joined #ruby
[15:18:03] tens0r: has joined #ruby
[15:18:53] tens0r: has joined #ruby
[15:21:10] ChiefAlexander: has joined #ruby
[15:23:39] jaguarmagenta: has joined #ruby
[15:25:01] roamingdog: has joined #ruby
[15:25:31] tristanp_: has joined #ruby
[15:27:23] startupality: has joined #ruby
[15:29:16] tristanp: has joined #ruby
[15:30:27] jancel: has joined #ruby
[15:31:10] PaulCapestany: has joined #ruby
[15:31:16] ctp: has joined #ruby
[15:31:40] tristanp_: has joined #ruby
[15:37:56] kareeoleez: has joined #ruby
[15:38:06] bronson: has joined #ruby
[15:39:28] skade: has joined #ruby
[15:42:09] gfvcastro: has joined #ruby
[15:42:22] amclain: has joined #ruby
[15:43:48] tristanp: has joined #ruby
[15:43:58] mleung: has joined #ruby
[15:44:12] idefine: has joined #ruby
[15:44:46] tristanp: has joined #ruby
[15:44:55] i: has joined #ruby
[15:45:54] johnmilton: has joined #ruby
[15:46:41] nando293921: has joined #ruby
[15:46:48] tax: has joined #ruby
[15:47:36] symm-: has joined #ruby
[15:47:39] jancel: has joined #ruby
[15:51:16] benlieb: has joined #ruby
[15:51:21] pabloh: has joined #ruby
[15:52:27] norc: has joined #ruby
[15:52:30] pawnbox: has joined #ruby
[15:52:59] cajone: has joined #ruby
[15:53:19] tax: has joined #ruby
[15:54:44] kareeoleez: has joined #ruby
[15:56:56] tax: has joined #ruby
[15:57:15] PaulCape_: has joined #ruby
[15:57:25] gnufied__: has joined #ruby
[15:59:23] synthroid: has joined #ruby
[16:00:28] tax: has joined #ruby
[16:01:11] whathappens: has joined #ruby
[16:02:13] idefine: has joined #ruby
[16:02:17] moeabdol: has joined #ruby
[16:02:49] idefine: has joined #ruby
[16:02:54] Coldblackice: has joined #ruby
[16:03:11] jhack: has joined #ruby
[16:05:35] mistermocha: has joined #ruby
[16:05:43] eljimmy: has joined #ruby
[16:05:50] aegis3121: has joined #ruby
[16:06:08] tristanp_: has joined #ruby
[16:07:03] DrCode: has joined #ruby
[16:07:54] tristanm_: has joined #ruby
[16:08:18] shinnya: has joined #ruby
[16:08:24] ferr: has joined #ruby
[16:10:03] gizmore: has joined #ruby
[16:10:32] tristanp: has joined #ruby
[16:10:56] ljames: has joined #ruby
[16:11:04] Madplatypus: has joined #ruby
[16:11:45] mistermocha: has joined #ruby
[16:11:58] RobertBirnie: has joined #ruby
[16:12:10] malconis: has joined #ruby
[16:12:59] tristanp_: has joined #ruby
[16:15:50] tristanp: has joined #ruby
[16:16:34] pietr0: has joined #ruby
[16:17:47] Sou|cutter: in ruby 2.2 I have a `define_method(:foo) { super(args) }` sort of thing, and it works great. In 2.3 I get "super called outside of method" errors
[16:18:44] Sou|cutter: Do I have to fall back to the old alias_method_chain style of calling super there?
[16:19:11] jhass: there's http://devdocs.io/ruby~2.3/method#method-i-super_method now
[16:19:31] antgel: has joined #ruby
[16:19:32] jhass: method(__method__).super_method.call(args) is worth a shot
[16:19:45] jhass: but weird that you get them
[16:20:07] Sou|cutter: let me get a minimal reproduction case, just a sec
[16:20:36] jhass: >> class Foo; def foo; 1; end; end; class Bar < Foo; define_method(:foo) { super() }; end; Bar.new.foo
[16:20:37] ruby[bot]: jhass: # => 1 (https://eval.in/577773)
[16:20:48] jhass: mine doesn't reproduce at least
[16:21:24] tristanp: has joined #ruby
[16:22:15] borodin: has joined #ruby
[16:22:52] hk238: has joined #ruby
[16:23:19] PaulCapestany: has joined #ruby
[16:25:43] certainty: has joined #ruby
[16:26:09] havenwood: works on my machine
[16:26:20] araujo_: has joined #ruby
[16:26:35] Sou|cutter: hrm well this is weird
[16:26:42] daftdolphin: has joined #ruby
[16:27:09] dfockler: has joined #ruby
[16:27:20] nando293921: has joined #ruby
[16:27:27] Sou|cutter: https://travis-ci.org/tablexi/commutator/jobs/133148905
[16:27:29] Sou|cutter: https://github.com/tablexi/commutator/blob/master/lib/commutator/simple_client.rb#L21-L25
[16:27:37] fujinuma: has joined #ruby
[16:27:53] tristanp: has joined #ruby
[16:27:55] Sou|cutter: I don't like how that's written anyway, but I also don't know why behavior changed there.
[16:28:16] Sou|cutter: My minimal test cases are working ok
[16:29:12] fujinuma: I don't remember the site that have posts about ruby projects, exercises and algorithms
[16:29:45] fujinuma: for example; writing a HTTP Server.
[16:29:52] malconis: has joined #ruby
[16:30:17] jinie: has joined #ruby
[16:30:21] jhass: Sou|cutter: SimpleDelegator works through method_missing afaik
[16:30:31] fujinuma: never mind, just found it. practicingruby.com
[16:30:40] jhass: super calling method_missing would be odd behavior from the old Rubies side IMO
[16:30:54] craigp_: has joined #ruby
[16:31:38] Vlat-: has joined #ruby
[16:31:39] Amnez777: has joined #ruby
[16:31:44] mattwashere: has joined #ruby
[16:31:49] Sou|cutter: jhass: But my minimal cases with SimpleDelegator work ok
[16:31:50] daftdolphin: has left #ruby: ()
[16:31:58] smathy: has joined #ruby
[16:32:27] havenwood: fujinuma: https://lobste.rs/t/ruby
[16:32:37] jhass: do the tests mock/stub any of the methods?
[16:32:52] roamingdog: has joined #ruby
[16:33:14] Sou|cutter: not the failing ones anyway, let me see...
[16:33:17] giz|work: has joined #ruby
[16:33:18] mdw: has joined #ruby
[16:33:21] jhass: not sure I get the point of defining the methods anyway btw
[16:33:39] Es0teric: has joined #ruby
[16:33:57] fujinuma: havenwood: oh, what a gorgeous place :D
[16:33:57] jhass: anyway, most compatible way to avoid super in that context should be __getobj__.public_send(operation, kwargs)
[16:34:04] fujinuma: havenwood: thanks
[16:34:17] Es0teric: has joined #ruby
[16:34:40] rontec76: has joined #ruby
[16:35:22] Sou|cutter: jhass: **kwargs calls `#to_hash` on the argument. It's not very clear
[16:35:37] Sou|cutter: I'm actually calling those methods with a non-hash object
[16:35:49] Sou|cutter: the underlying aws lib needs a hash though
[16:35:56] elifoster: has joined #ruby
[16:36:03] jhass: that's ugly indeed
[16:36:06] Sou|cutter: yeah I'm a bastard
[16:36:08] gfvcastro: has joined #ruby
[16:36:53] Sou|cutter: jhass: good idea about going straight to __getobj__
[16:37:15] Sou|cutter: this lib has all sorts of wtfs, one day I might clean them all up
[16:37:40] Sou|cutter: It was extracted from a private codebase, I was not involved in all of it soooo :P
[16:38:03] jeredepp: has joined #ruby
[16:38:09] jhass: that's what they all say :P
[16:38:28] Sou|cutter: I can't be blamed for all the messes I make!
[16:38:46] araujo: has joined #ruby
[16:38:50] Sou|cutter: I am pretty sure I wrote that kwargs thing though :x
[16:38:53] jhass: I'll blame you for some you don't make instead, deal?
[16:38:54] araujo: has joined #ruby
[16:39:01] bronson: has joined #ruby
[16:39:02] daftdolphin: has joined #ruby
[16:39:57] jhass: btw I think I do would prefer a kwargs = kwargs.to_hash if kwargs.respond_to? :to_hash
[16:40:36] Sou|cutter: at the very least that would not require a comment in the code +1
[16:40:38] stardiviner: has joined #ruby
[16:41:09] jeredepp: Hello everybody, anyone can point me to the direction why this isn't grouping and summing my data ? @entries.group("project_task_user_id","day").order("day").select("day, SUM(duration) as total_duration, project_task_user_id")
[16:41:21] jhass: ?rails jeredepp
[16:41:21] ruby[bot]: jeredepp: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[16:41:31] jeredepp: sorry & Thanks
[16:41:38] jhass: no worries, yw
[16:41:44] jeredepp: has left #ruby: ()
[16:42:08] nowhere_man: has joined #ruby
[16:45:36] Sou|cutter: jhass: I wish I could make a test case for that, though. I remain uncertain why that would give a NoMethodError
[16:45:47] Sou|cutter: if it raised BadImplementationError I would understand
[16:46:18] jhass: ACTION shrugs
[16:46:40] Sou|cutter: problem solved, if not understood
[16:49:41] jaequery: has joined #ruby
[16:49:54] PaulCape_: has joined #ruby
[16:53:06] tristanp_: has joined #ruby
[16:55:03] nankyokusei: has joined #ruby
[16:55:29] tristanm_: has joined #ruby
[16:57:11] mooru: has joined #ruby
[16:57:30] tristanp: has joined #ruby
[17:01:23] tristanp_: has joined #ruby
[17:01:53] ChiefAlexander: has joined #ruby
[17:02:16] tomchapin: has joined #ruby
[17:02:42] speakingcode: has joined #ruby
[17:02:44] alfiemax: has joined #ruby
[17:03:15] 16WAAAYSE: has joined #ruby
[17:03:16] 7YUAA7IYC: has joined #ruby
[17:03:23] mikecmpbll: has joined #ruby
[17:03:38] jancel: has joined #ruby
[17:03:53] rbennacer: has joined #ruby
[17:04:32] frem_: has joined #ruby
[17:04:33] tuelz: has joined #ruby
[17:06:03] tildes_: has joined #ruby
[17:07:27] aegis3121: has joined #ruby
[17:08:06] shellie_: has joined #ruby
[17:08:06] lukeco: has joined #ruby
[17:09:43] DotKite: has joined #ruby
[17:11:07] Cohedrin: has joined #ruby
[17:12:11] rcvalle: has joined #ruby
[17:13:13] Vlat-: has joined #ruby
[17:13:17] DotKite: tryine to add a public method to the Integer class called digit_count. However when i call it, like so, 23.digit_count i get an error saying I have too many arguments. Here is my gist https://gist.github.com/Euklidian-Space/0924c86eb13ab2095b777df10d9770ea
[17:14:49] havenwood: DotKite: You're providing one argument when you call #digit_count here: https://gist.github.com/Euklidian-Space/0924c86eb13ab2095b777df10d9770ea#file-gistfile1-rb-L5
[17:16:24] PaulCapestany: has joined #ruby
[17:16:56] DotKite: havenwood, I do not have any parameters in the definition. How am I suppose to call it?
[17:18:44] malconis: has joined #ruby
[17:18:45] Sou|cutter: DotKite: Consider not using recursion
[17:18:45] havenwood: DotKite: (self / 10).digit_count
[17:22:49] pawnbox: has joined #ruby
[17:24:00] conta: has joined #ruby
[17:24:12] DotKite: Sou|cutter, is there something particularly wrong with using recursion here?
[17:24:25] jaguarmagenta: has joined #ruby
[17:25:15] madgen: has joined #ruby
[17:25:26] codecop: has joined #ruby
[17:25:35] ramfjord: has joined #ruby
[17:26:50] hahuang65: has joined #ruby
[17:26:55] alfiemax: has joined #ruby
[17:27:27] havenwood: class Integer; def digit_count; Math.log10(abs).floor.next end end
[17:28:05] havenwood: don't use it for 0 thought=!
[17:28:05] jefeson: has joined #ruby
[17:29:13] tristanp: has joined #ruby
[17:29:17] havenwood: >> class Integer; def digit_count; zero? ? 1 : Math.log10(abs).floor.next end end; -0.digit_count
[17:29:18] ruby[bot]: havenwood: # => 1 (https://eval.in/577800)
[17:30:35] havenwood: DotKite: just having some mathy fun
[17:30:40] kriskropd: has joined #ruby
[17:30:40] kriskropd: has joined #ruby
[17:31:06] startupality: has joined #ruby
[17:31:21] adaedra: there's no ceil? o.O
[17:31:44] jhass: >> 1.5.ceil
[17:31:45] ruby[bot]: jhass: # => 2 (https://eval.in/577805)
[17:31:51] i: has joined #ruby
[17:35:03] RegulationD: has joined #ruby
[17:39:55] bronson: has joined #ruby
[17:40:25] Macaveli: has joined #ruby
[17:41:46] havenwood: adaedra: 0.ceil != 0.floor.next
[17:42:22] hashrocket: has joined #ruby
[17:42:27] PaulCape_: has joined #ruby
[17:42:48] djbkd: has joined #ruby
[17:43:08] aegis3121: has joined #ruby
[17:45:17] zenguy_pc: has joined #ruby
[17:47:15] Sou|cutter: >> class Integer; def digit_count; to_s.gsub('-', '').size; end end; -101.digit_count
[17:47:16] ruby[bot]: Sou|cutter: # => 3 (https://eval.in/577824)
[17:47:37] Sou|cutter: I am really not making myself look good in here today lol
[17:48:33] adaedra: I think last time it was discussed, jhass said Math.log10 is probably faster, because you don't allocate a string.
[17:49:03] Sou|cutter: yeah, converting to a string is a total waste
[17:49:04] B1n4r10: has joined #ruby
[17:49:13] adaedra: using gsub here is another.
[17:49:58] adaedra: abs.to_s would take care of the sign
[17:50:03] startupality: has joined #ruby
[17:50:23] sneakerhax: has joined #ruby
[17:51:29] ksmutthu: has joined #ruby
[17:53:10] pabloh: has joined #ruby
[17:53:19] hutch34_: has joined #ruby
[17:53:43] Sou|cutter: ACTION nods
[17:56:33] stardiviner: has joined #ruby
[17:57:07] tristanp_: has joined #ruby
[17:57:22] HoloIRCUser1: has joined #ruby
[17:58:33] sandroqz: has joined #ruby
[17:59:12] yfeldblum: has joined #ruby
[17:59:15] tristanp: has joined #ruby
[17:59:50] yfeldblum: has joined #ruby
[17:59:51] agit0: has joined #ruby
[18:00:06] brendan-: has joined #ruby
[18:01:16] ramfjord: has joined #ruby
[18:01:27] tristanp: has joined #ruby
[18:01:30] CJKinni``: has joined #ruby
[18:01:52] pawnbox: has joined #ruby
[18:02:24] skolman_: has joined #ruby
[18:02:42] whathappens: has joined #ruby
[18:02:49] jancel: has joined #ruby
[18:04:14] whathapp_: has joined #ruby
[18:04:24] Devalo: has joined #ruby
[18:04:27] kareeoleez: has joined #ruby
[18:05:52] iamvery: has joined #ruby
[18:07:06] skolman_: has joined #ruby
[18:07:10] hutch34: has joined #ruby
[18:08:09] tAn: has joined #ruby
[18:08:56] whathappens: has joined #ruby
[18:10:11] zenguy_pc: has joined #ruby
[18:11:54] kareeoleez: has joined #ruby
[18:16:23] tAn: has joined #ruby
[18:16:54] jancel: has joined #ruby
[18:16:58] kirun: has joined #ruby
[18:17:37] tuelz: has joined #ruby
[18:17:56] apawl: has joined #ruby
[18:19:30] startupality: has joined #ruby
[18:19:31] spider-mario: has joined #ruby
[18:20:36] djbkd: has joined #ruby
[18:23:10] v0n: has joined #ruby
[18:24:00] startupality: has joined #ruby
[18:24:38] replay: has joined #ruby
[18:26:05] arlek: has joined #ruby
[18:26:39] certainty: has joined #ruby
[18:27:16] startupality: has joined #ruby
[18:28:00] diegoviola: has joined #ruby
[18:28:11] idefine: has joined #ruby
[18:28:31] Guest38693: has joined #ruby
[18:29:17] roamingdog: has joined #ruby
[18:29:36] startupality: has joined #ruby
[18:29:37] aadam21: has joined #ruby
[18:30:14] daidoji: has joined #ruby
[18:30:28] daidoji: hello, does anyone know if Mechanize supports socks5 proxies?
[18:31:30] zeroDi: has joined #ruby
[18:31:30] rbennacer: has joined #ruby
[18:32:04] tristanp_: has joined #ruby
[18:32:12] apawl: has left #ruby: ()
[18:32:24] gfvcastro: has joined #ruby
[18:35:01] xuex: has joined #ruby
[18:35:09] chouhoulis: has joined #ruby
[18:35:59] chouhoulis: has joined #ruby
[18:36:19] pld: has joined #ruby
[18:36:31] banister: has joined #ruby
[18:36:31] gusrub: has joined #ruby
[18:37:07] tristanp: has joined #ruby
[18:38:16] duckpupp1: has joined #ruby
[18:38:28] hutch34: has joined #ruby
[18:38:59] jancel: has joined #ruby
[18:40:36] daidoji: has joined #ruby
[18:40:52] bronson: has joined #ruby
[18:44:14] araujo_: has joined #ruby
[18:45:30] aadam21: has joined #ruby
[18:47:42] choke: has joined #ruby
[18:48:45] daidoji: hello, does anyone have code that shows how to use Mechanize with a socks5 proxy that requires a username/password?
[18:49:11] aadam21_: has joined #ruby
[18:50:27] startupality: has joined #ruby
[18:50:40] rbennacer: has joined #ruby
[18:51:16] alfiemax: has joined #ruby
[18:51:53] morenoh149: has joined #ruby
[18:52:01] morenoh149: how do I solve? ERROR: While executing gem ... (Gem::Exception)
[18:52:02] morenoh149: Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources
[18:52:30] tobiasvl: no idea, but perhaps as it suggests: install OpenSSL and rebuild ruby or use non-HTTPS sources
[18:52:50] morenoh149: I have openssl installed. how do I rebuild ruby?
[18:53:12] hxegon: morenoh149: what are you using to build ruby?
[18:53:28] hxegon: Is there some naming convention for methods that need blocks?
[18:53:40] morenoh149: I used this method hxegon https://medium.com/@heidar/switching-from-rbenv-to-postmodern-s-ruby-install-and-chruby-f0daa24b36e6#.zavq9t28u
[18:54:41] dhollinger: has joined #ruby
[18:54:51] hxegon: morenoh149: I would guess just use ruby-install <whatever version of ruby you're installing here>
[18:56:14] morenoh149: ruby-install ruby -- --with-openssl-dir=/usr/local/bin/openssl to be more exact
[18:57:11] Dimik: has joined #ruby
[18:57:26] blaxter: has joined #ruby
[18:57:59] rbennacer: has joined #ruby
[18:58:23] aadam21: has joined #ruby
[18:59:30] tristanp_: has joined #ruby
[18:59:45] dfockler: has joined #ruby
[19:00:21] banister: has joined #ruby
[19:00:31] mistermocha: has joined #ruby
[19:00:50] rbennacer: has joined #ruby
[19:01:03] blaxter: has joined #ruby
[19:03:00] panpainter: has joined #ruby
[19:03:16] rbennacer: has joined #ruby
[19:03:18] JakFrist: has joined #ruby
[19:03:34] tristanp: has joined #ruby
[19:03:57] mistermocha: has joined #ruby
[19:06:55] SilverKey: has joined #ruby
[19:06:59] tristanp_: has joined #ruby
[19:07:15] ChiefAlexander: has joined #ruby
[19:07:52] n_blownapart: has joined #ruby
[19:08:02] blandflakes: has joined #ruby
[19:08:43] mistermocha: has joined #ruby
[19:09:08] AlexRussia: has joined #ruby
[19:09:18] RegulationD: has joined #ruby
[19:13:56] daidoji: has joined #ruby
[19:15:20] cajone: has joined #ruby
[19:16:19] daidoji: has joined #ruby
[19:16:38] jancel: has joined #ruby
[19:24:43] jinie: has joined #ruby
[19:24:45] roamingdog: has joined #ruby
[19:25:08] sphex_: has joined #ruby
[19:25:10] jaguarmagenta: has joined #ruby
[19:28:15] LastWhisper____: has joined #ruby
[19:28:40] certainty: has joined #ruby
[19:30:23] alfiemax: has joined #ruby
[19:32:47] joenuts_: has joined #ruby
[19:33:32] hutch34: has joined #ruby
[19:33:54] bmurt: has joined #ruby
[19:34:14] joenuts_: is it possible in ruby to dereference a variable (string) such as "Connect::Entry::Reference:0x000000028618f0" ?
[19:35:17] Omni: has joined #ruby
[19:36:10] tristanp: has joined #ruby
[19:38:38] roamingdog: has joined #ruby
[19:39:18] startupality: has joined #ruby
[19:39:29] jhass: ?xy joenuts_
[19:39:29] ruby[bot]: joenuts_: it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
[19:39:45] charliesome: has joined #ruby
[19:40:04] kent\n: has joined #ruby
[19:40:04] kent\n: has joined #ruby
[19:40:55] charliesome: has joined #ruby
[19:41:01] joenuts_: let me rephrase then : is it possible in ruby to convert use a string to retrieve the value of a variable with a name stored in the string
[19:41:31] joenuts_: follow up, if that string references a variable defined in another class ( module? ) will the same be achievable?
[19:41:46] bronson: has joined #ruby
[19:42:09] jhass: your issue is that you end up in the situation with a desire for such a thing
[19:42:10] giz|work: has joined #ruby
[19:42:15] jhass: that's what we should fix/prevent
[19:42:32] choke: has joined #ruby
[19:43:07] joenuts_: so you're saying ruby has no mechanism for that, then?
[19:43:08] ChiefAlexander: has joined #ruby
[19:43:39] jhass: I don't quite follow what you tried to describe the second time
[19:45:14] joenuts_: I have a variable, name of "goodstuff", contents of "1" ( or hash actually ). I have a second variable name of "foo" contents of "goodstuff". I want to retrieve the results of 1 using foo as a reference
[19:45:43] jhass: no you don't, you want to use a hash instead
[19:46:24] jhass: better_name_than_data["goodstuff"] = {}; better_name_than_key = "goodstuff"; better_name_than_data[better_name_than_key]
[19:46:53] joenuts_: hmm.. sorry, I don't have a choice in the matter, I'm working on existing ruby code trying to decipher and build functionality
[19:47:17] joenuts_: inside a function, i have a string that represents a variable in another class that i'm trying to retrieve the value of
[19:47:43] joenuts_: it's way beyond my ability to rewrite / restructure the existing code
[19:47:55] jhass: public project?
[19:48:39] jhass: it's more likely that the other class already acts as a hash if retrieving a value it holds dynamically is a valid usecase for it
[19:48:45] jhass: so show code?
[19:49:31] joenuts_: https://github.com/enterprisemodules/connect/blob/master/lib/connect/selector.rb
[19:49:46] whathappens: has joined #ruby
[19:49:55] ishe: has joined #ruby
[19:50:38] jhass: now what do you want to do where, using the real names?
[19:51:13] joenuts_: inside def run, I want to add deep_merge as an available function to operate on hashes proficed to that selector
[19:52:04] xall: has joined #ruby
[19:52:09] jhass: my dictionary doesn't know "proficed"
[19:52:26] startupality: has joined #ruby
[19:52:30] joenuts_: apologies proficed = provided
[19:52:30] lukec: has joined #ruby
[19:52:42] daidoji: has joined #ruby
[19:53:21] joenuts_: at the point run is called, @se;ectpr os
[19:53:35] joenuts_: at the point run is called, @selector is ".deep_merge(#<Connect::Entry::Reference:0x000000028618f0>)."
[19:53:52] freerobby: has joined #ruby
[19:54:13] joenuts_: code that calls selector is "variable_one_hash.deep_merge( variable_two_hash )"
[19:54:33] apeiros: ACTION goes get some popcorn
[19:54:33] ishe: has joined #ruby
[19:54:37] sdothum: has joined #ruby
[19:54:56] jhass: sorry I have to spell it out before I can go on, what the fuck
[19:55:04] joenuts_: somewhere the code is building a dictionary and storing a hash, i need to get at that hash, and all i have is "#<Connect::Entry::Reference:0x000000028618f0>)"
[19:55:22] apeiros: I'm somewhat surprised I haven't found ObjectSpace in that code yet :D
[19:55:26] joenuts_: This is my maiden voyage in to ruby
[19:55:51] jhass: puppet is a poor first choice
[19:56:01] jhass: more wtfs in their tools than loc
[19:56:03] TTilus: Quite a maiden voyage...
[19:56:11] skolman_: has joined #ruby
[19:56:41] jhass: is @value your original value perhaps? *shrug*
[19:56:45] Omni_: has joined #ruby
[19:57:04] joenuts_: @value is the contents of the original variable ( a hash )
[19:58:21] joenuts_: http://pastebin.com/J5ADhd87
[19:58:22] ruby[bot]: joenuts_: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/bbf4d6b1190b9fbf9a45a47a46b872eb
[19:58:23] jhass: I don't think this was "designed" with non-literals in mind
[19:58:23] ruby[bot]: joenuts_: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[19:58:50] TTilus: Unsinkable joenuts_ meets puppet the iceberg on his maiden voyage over the ocean of Ruby.
[19:59:04] joenuts_: yeah, feels about right, ttilus
[19:59:21] kent\n: has joined #ruby
[19:59:55] cinch: has joined #ruby
[20:00:05] joenuts_: all i wanted to do was add ruby's deep_merge functionality to the code that was parsed by this ruby engine
[20:00:19] tristanp: has joined #ruby
[20:00:42] jhass: btw core ruby has no deep_merge, that's activesupport (rails) most of the time
[20:00:53] TTilus: Reasonable thing to ask
[20:00:58] joenuts_: If i can dereference that #<Connect::...> I think I can do the rest
[20:01:12] jhass: anyway, any change if you #{foo.inspect} instead of #{foo} ?
[20:01:21] jhass: ACTION doesn't trust anything there
[20:01:43] hutch34_: has joined #ruby
[20:01:45] apeiros: that code looks like a couple of bazookas with their auto-aim set to "user's foot"
[20:02:00] TTilus: Problem is that the codebase is a clusterfuck
[20:02:23] apeiros: string evals for method invocations :-/
[20:02:24] jhass: it's curios how they build a gazillion tools which all are clusterfucks
[20:04:32] jhass: "let's make this complex enough so nobody will ever fork us" perhaps?
[20:04:42] startupality: has joined #ruby
[20:04:56] joenuts_: so this is not the shining example of how ruby should be used?
[20:05:07] jhass: far from it
[20:05:47] joenuts_: so I'm pulling out the "Connect" with a substringmatch = @selector.match(/Connect[^>]*/), should I match the enclosing #< > or no?
[20:06:40] jhass: it won't work
[20:06:43] symm-: has joined #ruby
[20:06:43] tristanp_: has joined #ruby
[20:07:15] jhass: you won't get back an object from it's Object#to_s without utter hacks into MRIs internals that'll break with every single point release
[20:07:35] jhass: or iterating through all objects there are I guess, which is quite slow
[20:07:47] jhass: anycase is ugly and should not be done near production code
[20:07:58] joenuts_: so once it's changed to a string, i lose most everything huh?
[20:08:35] joenuts_: I may just reach out to the developer to find out how in the world he retrieves ( converts ) his #<...> to the value that is referenced
[20:08:56] jhass: it's done elsewhere?
[20:09:18] mdw: has joined #ruby
[20:09:48] joenuts_: I assume it has to be done elsewhere. the purpose of this engine is to parse text and build a variable dictionary, while adding *some* ruby functions, but not all
[20:10:40] jhass: I assumed those some methods would only take literals
[20:11:15] jhass: or idk, some custom parameters that are interpreted
[20:11:44] chouhoul_: has joined #ruby
[20:11:44] jhass: for example to_resource appears to only take a single quoted string literal
[20:12:27] jhass: for SLICE_REGEX let's assume the author misunderstood character classes and things of the | as an or there
[20:12:36] firstdayonthejob: has joined #ruby
[20:12:41] tristanp: has joined #ruby
[20:13:05] jhass: which again would mean a string literal single or double quoted this time and arbitrary whitespace as the second param?
[20:13:26] joenuts_: i see what you're saying, that it's designed to take a string. there are other functions elsewhere that take literals or variables, i'll use that as a starting point
[20:13:40] chouhoul_: has joined #ruby
[20:13:41] jhass: ah, any amount of string literals was the intent
[20:13:59] charliesome: has joined #ruby
[20:14:11] blackgoat: has joined #ruby
[20:14:11] jhass: slice_content the same, any amount of string literals
[20:14:52] joenuts_: https://github.com/enterprisemodules/connect/blob/master/lib/connect/interpolator.rb is an example of where variables are retrieved from inside string literals
[20:15:24] joenuts_: maybe this variable_values = variable_names.map { |n| connect_interpolate(n, xref) } connect_interpolate function is how i pull the actual variable
[20:15:36] banister: has joined #ruby
[20:15:42] zenguy_pc: has joined #ruby
[20:16:22] joenuts_: bah, fun times ahead. gunna take some headache medicine and bang away at this. thanks for your time everyone
[20:17:16] kareeole_: has joined #ruby
[20:17:42] tristanp_: has joined #ruby
[20:18:45] sbrown: has joined #ruby
[20:18:46] tomphp: has joined #ruby
[20:18:54] Devalo: has joined #ruby
[20:19:29] rbennacer: has joined #ruby
[20:22:32] wrkrcoop: has joined #ruby
[20:23:04] wrkrcoop: anyone know why this line says 1 for 0 arguments?? https://gist.github.com/anonymous/ed87d061d4d6a8e6db2b5203546037ed#file-debate-rb-L59
[20:23:09] wrkrcoop: initialize takes an argument
[20:23:47] jhass: I guess puppets main issue is that they're trying to look like ruby while its not ruby at all
[20:24:20] charliesome: has joined #ruby
[20:24:20] smathy: wrkrcoop, show the actual error.
[20:24:32] wrkrcoop: ArgumentError: wrong number of arguments calling `initialize` (1 for 0) <top> at debate.rb:60
[20:25:04] joenuts_: puppet has it's own syntax (semi-ruby), but then this "connect" engine has IT's own syntax ( semi-ruby ). and with ruby as the back end, I'm trying to get at the nuts and bolts
[20:25:17] art-solopov: has joined #ruby
[20:25:20] wrkrcoop: i am using jruby …
[20:25:46] smathy: wrkrcoop, you misspelt initialize in Moderator.
[20:25:53] wrkrcoop: what i thought i checked ><
[20:25:57] wrkrcoop: thanks smathy
[20:26:24] joonty: has joined #ruby
[20:26:41] wrkrcoop: ah man its not working as expected
[20:26:49] wrkrcoop: im trying to udnerstand threads …
[20:26:54] ramfjord: has joined #ruby
[20:27:02] daidoji: has joined #ruby
[20:27:17] wrkrcoop: i’m expecting the moderator to aska question, then create threads, where the candidates puts an answer, and meanwhile the method sleeps …
[20:29:01] B1n4r10: has joined #ruby
[20:29:05] jokke: has joined #ruby
[20:31:53] aadam21: has joined #ruby
[20:33:01] cdg: has joined #ruby
[20:33:27] daidoji: has joined #ruby
[20:36:05] aadam21: has joined #ruby
[20:36:20] ChiefAlexander: has joined #ruby
[20:37:18] tao_: has joined #ruby
[20:39:02] panpainter: has joined #ruby
[20:39:38] skweek: has joined #ruby
[20:41:58] djbkd: has joined #ruby
[20:42:07] tomphp: has joined #ruby
[20:42:16] jhack: has joined #ruby
[20:42:18] bruce_lee: has joined #ruby
[20:43:03] wrkrcoop: can someone help me understand why my output is getting messed up sometimes? https://gist.github.com/anonymous/637170c291c463d639452c778bf6b1a0#file-debate-rb-L64-L65
[20:43:14] ur5us: has joined #ruby
[20:43:24] LastWhisper____: has joined #ruby
[20:43:39] tAn: has joined #ruby
[20:43:54] wrkrcoop: sometimes cleaned_question is blank
[20:44:30] nofacade: has joined #ruby
[20:44:48] spudowiar: has joined #ruby
[20:45:32] groatyoats: has joined #ruby
[20:45:35] ule: hey guys.. any byebug users here?
[20:45:57] ule: this creazy is not stopping on my controller.. it's skipping.. whats the reasons for that?
[20:47:11] GodFather__: has joined #ruby
[20:47:14] djbkd: has joined #ruby
[20:48:10] pawnbox: has joined #ruby
[20:48:43] pawnbox: has joined #ruby
[20:49:00] jhack: has joined #ruby
[20:50:18] jhack: has joined #ruby
[20:50:21] tomphp: has joined #ruby
[20:51:50] skolman_: has joined #ruby
[20:52:11] ule: crazy cache
[20:52:21] ule: the only explanation for me
[20:54:55] eljimmy: has joined #ruby
[20:55:04] troulouliou_div2: has joined #ruby
[20:55:27] phutchins: has joined #ruby
[20:55:33] alfiemax: has joined #ruby
[20:56:21] chouhoulis: has joined #ruby
[20:56:54] diegoviola: has joined #ruby
[20:57:08] diegoviola: has joined #ruby
[20:58:29] banister: has joined #ruby
[20:58:56] banisterfiend: has joined #ruby
[21:00:03] eL_bAmba: has joined #ruby
[21:00:49] djbkd: has joined #ruby
[21:01:09] tao_: has joined #ruby
[21:05:03] wrkrcoop: if i make 2 threads, then both make http calls, and i call join on the threads … will that be ok?
[21:05:05] skolman: has joined #ruby
[21:05:18] mistermocha: has joined #ruby
[21:05:45] eljimador: has joined #ruby
[21:05:53] mistermocha: has joined #ruby
[21:06:09] daidoji: hello, does anyone here have code to use Mechanize with a Socks5 proxy that requires a username/password?
[21:06:15] daidoji: or know how I can accomplish such a thing?
[21:06:43] FooMunki: has joined #ruby
[21:06:54] tAn: has joined #ruby
[21:07:39] jhack: has joined #ruby
[21:08:01] tristanp: has joined #ruby
[21:09:03] bronson: has joined #ruby
[21:09:07] dimasg: has joined #ruby
[21:09:08] certainty: has joined #ruby
[21:09:50] tobiasvl: wrkrcoop: why do you need threads?
[21:10:00] wrkrcoop: tobiasvl: SPEED bro
[21:10:20] araujo_: has joined #ruby
[21:10:58] Maletor: has joined #ruby
[21:11:11] JesseH: has joined #ruby
[21:11:41] Maletor: Is there something wrong with a design pattern where you make all your objects have one method: "call".
[21:11:54] tAn: has joined #ruby
[21:12:11] Maletor: I guess what I'm trying to articulate is that this codebase is full of one method classes like that and it can't be sane.
[21:12:27] tobiasvl: wrkrcoop: you call gsub! instead of gsub
[21:12:33] yfeldblum: has joined #ruby
[21:12:38] tobiasvl: is one thing at least
[21:12:59] wrkrcoop: tobiasvl: yeah i figured that out
[21:13:13] wrkrcoop: now i get the whole mutual exclusion thing i guess …
[21:13:13] alfiemax: has joined #ruby
[21:13:19] jhass: maletor: I would agree, the code wants the pattern, you don't make the code fit into it
[21:13:39] yfeldblum: has joined #ruby
[21:14:00] jhass: so unless it really happens that it all perfectly fits into the pattern, which is rather unlikely, I'd say you're right
[21:14:14] johnmilton: has joined #ruby
[21:14:15] tobiasvl: wrkrcoop: mutual exclusion thing?
[21:14:41] wrkrcoop: tobiasvl: idk isnt that what mutual exclusion refers to, like u gotta protect stuff from other threads ???
[21:14:58] crystal77: has joined #ruby
[21:15:28] tobiasvl: is your program prone to have race conditions?
[21:15:33] tristanp_: has joined #ruby
[21:16:17] whathappens: has joined #ruby
[21:16:44] tobiasvl: each thread just basically puts a line
[21:16:52] wrkrcoop: tobiasvl: idk, but when i did gsub! it affected the question in other threads
[21:17:06] wrkrcoop: tobiasvl: i just wrote that to learn threading, im planning on making two get requests to seperate apis.
[21:17:14] tobiasvl: when you did gsub! you changed the original question variable
[21:17:18] tobiasvl: since gsub! is destructive
[21:17:22] tobiasvl: nothing to do with threads
[21:17:24] wrkrcoop: but im worried if i make the calls, then thread.join it wont work
[21:17:51] tAn: has joined #ruby
[21:18:56] panpainter: has joined #ruby
[21:20:34] tao_: has joined #ruby
[21:22:07] tristanp: has joined #ruby
[21:23:30] bobbycvi: has joined #ruby
[21:23:54] mattwashere: has joined #ruby
[21:24:11] Tass_: has joined #ruby
[21:25:38] B1n4r10: has joined #ruby
[21:25:44] mtkd: has joined #ruby
[21:25:57] jaguarmagenta: has joined #ruby
[21:27:36] skalfyfan: has joined #ruby
[21:28:12] vjacob: has joined #ruby
[21:28:34] darwingr: has joined #ruby
[21:28:59] startupality: has joined #ruby
[21:30:03] blandflakes: has joined #ruby
[21:30:23] ledestin: has joined #ruby
[21:32:22] tristanp_: has joined #ruby
[21:32:50] djbkd: has joined #ruby
[21:33:14] |2701: has joined #ruby
[21:34:00] tAn: has joined #ruby
[21:34:34] startupality: has joined #ruby
[21:35:16] postmodern: has joined #ruby
[21:36:22] tAn: has joined #ruby
[21:36:26] skalfyfan: has joined #ruby
[21:38:15] kareeoleez: has joined #ruby
[21:40:50] mac10: has joined #ruby
[21:41:10] mac10: hey guys! i deployed something to Heroku and it looks like my js/apis arent working. Do i need a a specific gem to make it work?
[21:41:28] spudowiar: has joined #ruby
[21:43:55] stardiviner: has joined #ruby
[21:44:20] choke: has joined #ruby
[21:44:21] charliesome: has joined #ruby
[21:45:07] dimasg: has joined #ruby
[21:46:32] hutch34_: has joined #ruby
[21:47:40] daemoen: has joined #ruby
[21:47:53] daidoji: has joined #ruby
[21:48:25] daemoen: lo folks...is there a way of passing an additional library path to bundle install for a given gem? tokyocabinet puts the libraries in /usr/include but the gem is only searching . and /usr/lib64, so it fails to compile
[21:48:32] tristanp: has joined #ruby
[21:49:52] jhass: daemoen: bundle config build.tokyocabinet --option-that-fixes-it=for gem install
[21:51:02] daemoen: jhass: ty; im not a ruby person so not overly familiar with gems and bundling
[21:51:12] daemoen: that should resolve my dilemma =D
[21:51:33] rbennacer: has joined #ruby
[21:51:33] Phanes: has joined #ruby
[21:51:36] Phanes: has joined #ruby
[21:52:37] nofxx: daemoen, considered redis for your use? Ask out of curiosity, so long don't hear about tokyocabinet...isn't it unmaintained?
[21:53:03] nofxx: or renamed... kyoto cabinet?
[21:53:13] daemoen: nofxx: i have no idea.... lets just say i discovered that eng doesnt want to update, and we are using rails v2.3.8 (yes, 2, not 3.2.8)
[21:53:45] nofxx: daemoen, ahh... makes sense now hehe... tokyo and rails 2 ~ 2011/2012 ... heh
[21:53:53] skalfyfan: has joined #ruby
[21:53:56] daemoen: you want something even more amusing?
[21:54:07] daemoen: were apparently using ruby 1.9.3 with rails 2...
[21:54:11] daemoen: ACTION facepalms
[21:54:29] nofxx: daemoen, actually, might be wrong, but I think it won't work in rails 2
[21:54:34] daemoen: i was actually amazed that it didnt go 'umm. no? you can't do this, that's bad'
[21:54:38] stardiviner: has joined #ruby
[21:54:38] jaequery: has joined #ruby
[21:54:56] daemoen: nofxx: i have no idea, im matching what we have in the gemfile and on the production servers...
[21:55:01] bluOxigen: has joined #ruby
[21:55:05] mac10: hey guys! the api works in my local host but not on heroku
[21:55:11] mac10: is this the correct way of doing it? https://devcenter.heroku.com/articles/platform-api-quickstart
[21:55:21] nofxx: daemoen, that was the big boom period of rails... and ruby too. Major update pita....
[21:55:52] mistermocha: has joined #ruby
[21:56:04] daemoen: nofxx: yep.... ironically, i had to support ror when it was *really* painful (07-09)
[21:56:15] daemoen: so it unfortunately made me very angry and hateful toward ruby
[21:56:35] mistermocha: has joined #ruby
[21:56:41] vjacob: has joined #ruby
[21:57:07] wrkrcoop: i need to use threads in my application to make two api calls simultaneously. does this look right? im getting exepected output but not sure if its just luck
[21:57:08] wrkrcoop: https://gist.github.com/anonymous/6e9afcc2d3f75cf0874535f27485f1d2
[21:57:09] daemoen: mac10: hmmm... from what im seeing here, you havent really provided enough info for anyone to help you to begin with ?
[21:57:11] jancel: has joined #ruby
[21:57:29] tao_: has joined #ruby
[21:57:39] mac10: so i created basic static site and deployed it on heroku
[21:58:02] mac10: daemoen: (a weather app) . everything works fine on localhost, however when I deployed it to heroku, the APIs arent running
[21:58:36] mac10: daemoen: so i was wondering if i need to do something for the api to work on heroku? add gems / do what the link i put down?
[21:59:29] benlieb: has joined #ruby
[22:00:24] swills: has joined #ruby
[22:01:06] nofxx: daemoen, been there too, suffered that too ;) good news is that things are more 'stable' now
[22:02:07] ramfjord: do many people here use yard for docs? I'm struggling for the life of me to link to a method on another class with a module - I would expect it to be {Mod::Klass#new} or something
[22:02:15] ramfjord: oh, maybe it's because I'm linking to new instead of initialize actually
[22:02:37] ramfjord: doh, that was it, nm
[22:04:27] blandflakes: has joined #ruby
[22:05:03] marr: has joined #ruby
[22:05:09] mdw: has joined #ruby
[22:05:25] yfeldblum: has joined #ruby
[22:05:30] wrkrcoop: does this look good? https://gist.github.com/anonymous/6e9afcc2d3f75cf0874535f27485f1d2
[22:06:35] nofxx: @foo ||= 1 on a getter.... I know this as memoize, it's also called marshalling?
[22:07:40] daemoen: jhass, nofxx: https://paste.fedoraproject.org/371300/43004411/
[22:08:10] tristanp_: has joined #ruby
[22:08:25] daemoen: i see the extconf.rb passing the option, but when it lists everything, the option is ignored/null....
[22:08:32] nofxx: daemoen, which distro are you? sure you got build-tools? gcc and friends
[22:08:47] daemoen: nofxx: quite positive. centos 6
[22:08:51] vjacob: any tips how to determine which programming language is best to use for a high-intensity Website? So far I have heard suggestions like C++, Java VM+Scala, Java + Spring framework, Clojure, Erlang... What are the types of questions to ask in the beginning to understand better how to research make such a decision? :)
[22:08:58] jhass: sure you actually got the header and the right option?
[22:09:02] nofxx: ahh.. tcutil.h , let me see if I have this daemoen
[22:09:12] jancel: has joined #ruby
[22:09:29] daemoen: tcutil.h is on the machine in /usr/include/tcutil.h, but that path isnt part of the gem's search path.
[22:09:56] daemoen: jhass: as for having the right option? no idea =D thats why im in here, lol
[22:10:13] daemoen: if i were just going to compile it manually, id modify the Makefile and extend the LDFLAGS to include -L/usr/include
[22:10:20] bronson: has joined #ruby
[22:10:26] jhass: that's wrong in itself
[22:10:36] jhass: -L is linker path, not preprocessor path
[22:10:40] jhass: that'd be -I
[22:10:43] daemoen: doh, sorry, -I
[22:10:53] daemoen: yeah, realized that after i typed it
[22:10:56] domah: has joined #ruby
[22:11:17] daidoji: has joined #ruby
[22:11:28] jhass: $CFLAGS = -I. -I/usr/include
[22:11:30] daemoen: would add it to the clfags
[22:11:31] nofxx: vjacob, high "intensity" website? You mean billions of hits? That's cache
[22:11:33] jhass: it should be alright, no?
[22:11:46] jhass: (copy pasted from your past)
[22:11:48] daemoen: interesting... i hadnt caught that part, yeah it should
[22:12:10] jhass: check mkmf.log
[22:12:17] jhass: maybe there's something else to it
[22:12:19] vjacob: nofxx, you mean a lot caching in the design or architecture will take care of that?
[22:12:47] daemoen: nofxx: nvm, jhass was right
[22:12:50] daemoen: its missing a different lib
[22:12:52] mattwashere: has joined #ruby
[22:13:22] nofxx: vjacob, yup, but caching can be done later, when needed... don't fall on early optimization problems
[22:13:47] daemoen: so rule of thumb is ignore what you see and aways look at the mkmf.log
[22:17:48] Krands: has joined #ruby
[22:17:50] daemoen: wheeee..... now onto the very last issue... which might be the most difficult of them all :|
[22:19:06] dopie: has joined #ruby
[22:19:20] mac10: has joined #ruby
[22:20:19] daemoen: jhass, nofxx: tyvm. all fixed =D
[22:20:42] panpainter: has joined #ruby
[22:21:11] panpainter: has joined #ruby
[22:21:18] nofxx: daemoen, walk in the park. ( jhass did all the hard work )
[22:21:33] daemoen: you were willing to look though as well :)
[22:21:57] mattwashere: has joined #ruby
[22:24:28] nofxx: vjacob, also you're missing the actual point... It's the same content for all hits? Even if you write all your code in C, have you considered your DB will be the bottleneck? Paralellize, go horizontal
[22:25:52] pietr0: has joined #ruby
[22:26:15] mistermocha: has joined #ruby
[22:26:44] nofxx: and more: actually you can choose the best fw/lang for the scenario... a working case: a site runs, assets and lil things in ruby/rails/sinatra and uses an nodejs/C++/elixir(erlang) api backend....
[22:27:01] mistermocha: has joined #ruby
[22:30:14] jancel: has joined #ruby
[22:30:31] zenguy_pc: has joined #ruby
[22:31:02] djbkd: has joined #ruby
[22:31:17] wrkrcoop: has joined #ruby
[22:31:24] banister: has joined #ruby
[22:33:05] idefine_: has joined #ruby
[22:35:32] skolman_: has joined #ruby
[22:36:12] skalfyfan: has joined #ruby
[22:36:27] PaulCapestany: has joined #ruby
[22:36:36] snockerton: has joined #ruby
[22:37:24] tristanp: has joined #ruby
[22:38:25] charliesome: has joined #ruby
[22:39:51] JesseH: has joined #ruby
[22:41:15] skolman_: has joined #ruby
[22:42:31] SilverKey: has joined #ruby
[22:42:53] mistermocha: has joined #ruby
[22:45:21] diegoaguilar: has joined #ruby
[22:45:41] whathappens: has joined #ruby
[22:46:09] roamingdog: has joined #ruby
[22:46:17] diegoaguilar: has joined #ruby
[22:47:33] Synthead: is there a way I can do .select, but instead of returning the selected value, return some other value?
[22:47:37] diegoaguilar: has joined #ruby
[22:48:48] benzrf: Synthead: how about doing a map, returning nil for items you want to remove, then using compact?
[22:48:51] tristanp_: has joined #ruby
[22:49:09] Synthead: benzrf: I was kind of thinking that, but that's a lot of logic
[22:49:18] sdothum: has joined #ruby
[22:49:19] Synthead: .select returns only the first value, which is faster
[22:49:49] benzrf: Synthead: hmm, what?
[22:49:53] benzrf: isn't #select just filter?
[22:50:04] havenwood: Synthead: Ruby doesn't have an equivalent to Elixir's filter_map, though it's been proposed.
[22:50:08] Synthead: benzrf: I'm pretty sure you're thinking of .find_all
[22:50:12] havenwood: Synthead: find you mean?
[22:50:18] benzrf: >> [1, 2, 3, 4, 5].select &:odd?
[22:50:19] ruby[bot]: benzrf: # => [1, 3, 5] (https://eval.in/577971)
[22:50:21] f0aly: has joined #ruby
[22:50:30] havenwood: Synthead: I think you might have confused #select with #detect.
[22:50:34] Synthead: oh, perhaps I'm mixed up :D
[22:51:31] benzrf: >> [1, 2, 3, 4].each {|x| break x.to_s if x.even?}
[22:51:31] Synthead: yeah, .detect is the one
[22:51:32] ruby[bot]: benzrf: # => "2" (https://eval.in/577972)
[22:51:42] havenwood: Synthead: https://bugs.ruby-lang.org/issues/5663
[22:51:54] benzrf: Synthead: why not just do your thing with the returned value, then?
[22:52:02] stardiviner: has joined #ruby
[22:52:14] Synthead: that's what I'm doing now
[22:52:21] Synthead: suppose that's a cleaner way to do it anyway :)
[22:53:11] havenwood: Synthead: That'd be find_value in Elixir, like find but returns the value of the function invocation.
[22:53:21] Es0teric: has joined #ruby
[22:53:21] mistermocha: has joined #ruby
[22:54:41] moeabdol: has joined #ruby
[22:54:59] mistermocha: has joined #ruby
[22:55:32] mistermocha: has joined #ruby
[22:56:55] aegis3121: has joined #ruby
[22:57:09] dimasg: has joined #ruby
[22:58:08] f0aly: has joined #ruby
[23:00:21] tristanp: has joined #ruby
[23:00:29] tildes_: has joined #ruby
[23:00:50] m_antis: has joined #ruby
[23:01:26] freerobby: has joined #ruby
[23:01:27] aegis3121: has joined #ruby
[23:03:27] aegis3121: has joined #ruby
[23:03:37] dfockler: has joined #ruby
[23:04:14] xlegoman: has joined #ruby
[23:04:55] Rakko: has joined #ruby
[23:05:09] aegis3121: has joined #ruby
[23:06:05] ramfjord_: has joined #ruby
[23:06:19] Rakko: Is there a standard way to have a script take arguments like OptionParser allows, but also have a non-optional "verb" in the command line (like git, tar, etc. have)?
[23:07:38] daidoji: has joined #ruby
[23:08:30] |meta: rakko, you could pass a keyword argument in as a hash, and use keys from the hash as options?
[23:09:47] dar123: has joined #ruby
[23:09:59] tuelz: has joined #ruby
[23:10:01] certainty: has joined #ruby
[23:10:10] kobain: has joined #ruby
[23:11:14] bronson: has joined #ruby
[23:11:43] banister: has joined #ruby
[23:11:55] sdothum: has joined #ruby
[23:13:12] nando293921: has joined #ruby
[23:13:41] dimasg: has joined #ruby
[23:13:42] sdothum: has joined #ruby
[23:15:57] wrkrcoop: has joined #ruby
[23:18:08] jhack: has joined #ruby
[23:18:17] rickmasta: has joined #ruby
[23:18:41] benzrf: Rakko: thor is good for that i think
[23:19:38] jenrzzz: has joined #ruby
[23:20:02] daidoji: has joined #ruby
[23:22:47] hutch34_: has joined #ruby
[23:23:33] Rakko: |meta: not sure what you mean. Using OptionParse, or another class?
[23:23:44] Rakko: benzrf: thanks, I'll check it out. I thought it was a build tool.
[23:24:09] |meta: oh I thought you wanted your method to take formatted arguments, not your while script
[23:24:17] |meta: ignore me
[23:25:35] Rakko: ah, ok :)
[23:26:40] jaguarmagenta: has joined #ruby
[23:28:11] tristanp_: has joined #ruby
[23:29:02] LastWhisper____: has joined #ruby
[23:29:47] mtkd: has joined #ruby
[23:32:20] vjacob: what's your favourite Ruby tutorial?
[23:32:46] pawnbox: has joined #ruby
[23:34:21] binaryplease: has joined #ruby
[23:34:25] daidoji1: has joined #ruby
[23:36:55] mistermocha: has joined #ruby
[23:37:05] neanderslob: has joined #ruby
[23:37:11] JoshGlzBrk: has joined #ruby
[23:37:29] dar123: has joined #ruby
[23:38:34] diegoaguilar: has joined #ruby
[23:38:49] daidoji1: has joined #ruby
[23:39:03] skolman_: has joined #ruby
[23:39:34] bronson: has joined #ruby
[23:39:39] stardiviner: has joined #ruby
[23:40:47] tristanp: has joined #ruby
[23:43:17] yfeldblum: has joined #ruby
[23:43:25] mistermocha: has joined #ruby
[23:43:54] yfeldblum: has joined #ruby
[23:44:07] mistermocha: has joined #ruby
[23:47:02] rickmasta: has joined #ruby
[23:48:36] stardiviner: has joined #ruby
[23:49:03] braincrash: has joined #ruby
[23:51:09] bronson: has joined #ruby
[23:52:51] dhodgkin: has joined #ruby
[23:57:13] jhack: has joined #ruby
[23:58:12] duckpupp1: has joined #ruby
[23:58:40] shevy: vjacob chris pine learn to program
[23:59:02] PaulCape_: has joined #ruby
[23:59:10] B1n4r10: has joined #ruby