« Back to channel list

#ruby - 27 July 2015

« Back 1 day Forward 1 day »
[00:00:08] vimz: >> def foo; "#{__method__}"; end; def baz; foo; end; # expecting 'baz'
[00:00:09] ruboto: vimz # => :baz (https://eval.in/406415)
[00:00:19] vimz: banister horrah, thanks
[00:00:36] sinkensabe: has joined #ruby
[00:00:39] RobertBirnie: has joined #ruby
[00:03:51] blue_deref: has joined #ruby
[00:04:12] banister: vimz that's wrong
[00:04:22] banister: >> def foo; "#{__method__}"; end; def baz; foo; end; baz
[00:04:23] ruboto: banister # => "foo" (https://eval.in/406416)
[00:04:38] banister: vimz you should expect "foo", not "baz"
[00:04:59] banister: the only reason why you're getting :baz as a result there is because a function definition returns the name of the function as a symbol
[00:05:54] banister: note: you didn't invoke a function :)
[00:06:36] sevenseacat: has joined #ruby
[00:08:59] Matthews_: has joined #ruby
[00:09:44] Rollabunna: has joined #ruby
[00:11:38] vimz: banister oh, that's embarassing x) do you know how I could achieve "baz" ?
[00:11:50] banister: vimz use __method__ ?
[00:12:41] vimz: but __method__ is encapsulated inside foo, so foo will always return foo. I'll write a gist
[00:13:32] banister: vimz you can do it by doing stupid things
[00:13:39] banister: like looking at the stacktrace
[00:14:30] doctorly: has joined #ruby
[00:14:48] vimz: banister ah it is quite indepth, I thought there was a little trick, no worries
[00:14:56] vimz: unless you're in the middle of something
[00:15:04] banister: vimz you can maybe do it iwth caller_locations
[00:16:35] vimz: banister cool thanks a lot :) https://gist.github.com/anonymous/448b10c7462567438ea9
[00:17:28] vimz: it's late, i meant https://gist.github.com/anonymous/985585f267ada2398a6e
[00:17:57] banister: vimz: def foo; "called from #{caller_locations.first.label}"; end
[00:18:16] sarkyniin: has joined #ruby
[00:18:22] banister: >> def foo; "called from #{caller_locations.first.label}"; end; def bar; foo; end; def baz; foo; end; bar
[00:18:23] ruboto: banister # => "called from bar" (https://eval.in/406418)
[00:18:28] banister: >> def foo; "called from #{caller_locations.first.label}"; end; def bar; foo; end; def baz; foo; end; baz
[00:18:29] ruboto: banister # => "called from baz" (https://eval.in/406419)
[00:19:16] Rubie: has joined #ruby
[00:19:50] scottschecter: has joined #ruby
[00:21:30] werelivinginthef: has joined #ruby
[00:21:34] Vile`: has joined #ruby
[00:21:39] vimz: banister thanks, that's aweome :)
[00:22:11] tuxtgz: has joined #ruby
[00:23:09] Maletor: has joined #ruby
[00:26:42] fullofca_: has joined #ruby
[00:26:43] slackbotgz: has joined #ruby
[00:27:52] Westerbly_: has joined #ruby
[00:31:33] Averna: has joined #ruby
[00:31:51] Ropeney: has joined #ruby
[00:34:21] prestorium: has joined #ruby
[00:35:30] christiandsg: has joined #ruby
[00:37:56] bruno-: has joined #ruby
[00:38:02] djbkd: has joined #ruby
[00:38:05] Hongo: has joined #ruby
[00:38:07] Hongo: has left #ruby: ()
[00:39:56] Oog: has joined #ruby
[00:40:22] tsvenson: has joined #ruby
[00:40:56] einarj: has joined #ruby
[00:40:57] axisys: has joined #ruby
[00:40:58] prestorium: has joined #ruby
[00:41:29] st1gma: has joined #ruby
[00:41:55] mary5030: has joined #ruby
[00:42:12] st1gma: anybody in here have any experience with sockets? I'm trying to read from one, more specifically from an SMTP server. I can see the server sending me everything but when I do a socket.read I'm hung.
[00:42:36] st1gma: I can use the same code and point it to say google.com and I get something back no problem
[00:44:27] st1gma: any ideas?
[00:44:28] EminenceHC: has joined #ruby
[00:45:19] crdpink2: has joined #ruby
[00:50:41] prestorium: has joined #ruby
[00:55:37] bmurt: has joined #ruby
[00:56:02] coderkevin: has left #ruby: ()
[00:56:50] crdpink: has joined #ruby
[00:58:14] rbowlby_: has joined #ruby
[00:59:32] omegamike: has joined #ruby
[01:00:01] vimz: does anyone know where RSpec's actual_formatted and expected_formatted are defined?
[01:01:04] leesharma: has joined #ruby
[01:02:08] vimz: thought they'd be in here :P https://github.com/rspec/rspec-expectations/blob/master/lib/rspec/matchers/built_in/eq.rb
[01:04:01] Rollabunna: has joined #ruby
[01:04:13] vimz: what I got...good old google. better than githubs serch engine.
[01:04:18] Scripore: has joined #ruby
[01:04:38] j4cknewt: has joined #ruby
[01:05:27] brianpWins: has joined #ruby
[01:05:31] bubbys: has joined #ruby
[01:05:56] craysiii: google is love. google is life.
[01:06:14] Ox0dea: Famous last words.
[01:06:39] craysiii: are you not willing to bow down to the google overlords?
[01:08:03] iWaffles: has joined #ruby
[01:08:19] vimz: craysiii why not bing? ._____________________________.
[01:08:38] craysiii: everyone knows what bing is for.
[01:11:23] ledestin: has joined #ruby
[01:12:41] lannonbr: has joined #ruby
[01:17:45] haraoka: has joined #ruby
[01:17:45] RobertBirnie: has joined #ruby
[01:18:33] eilkahn_: has joined #ruby
[01:18:37] st1gma: lol craysili
[01:18:43] DJSpies: has joined #ruby
[01:20:03] diego1: has joined #ruby
[01:20:44] leex: has joined #ruby
[01:20:56] diego1: has joined #ruby
[01:21:35] bubbys: has joined #ruby
[01:22:19] mistermocha: has joined #ruby
[01:22:24] Oog: has joined #ruby
[01:23:21] havenwood: has joined #ruby
[01:25:37] leesharma: has left #ruby: ()
[01:27:37] DJSpies: has joined #ruby
[01:28:04] bmurt: has joined #ruby
[01:29:22] cajone: has joined #ruby
[01:29:29] juanpablo_: has joined #ruby
[01:32:10] cajone: has left #ruby: ()
[01:32:53] DJSpies: has joined #ruby
[01:35:37] neoseeker: has joined #ruby
[01:35:56] workmad3: has joined #ruby
[01:37:16] Caius: has joined #ruby
[01:37:40] tubulife-: has joined #ruby
[01:37:43] leesharma: has joined #ruby
[01:39:11] mistermocha: has joined #ruby
[01:39:48] neoseeker: has joined #ruby
[01:41:32] neoseeker: has joined #ruby
[01:42:03] chipotle: has joined #ruby
[01:44:21] michael_mbp: has joined #ruby
[01:44:55] mistermocha: has joined #ruby
[01:47:16] ohaibbq: has joined #ruby
[01:51:00] quazimod1: has joined #ruby
[01:51:11] quazimod1: what's that file specific include ruby introduced recetnly
[01:51:51] leesharma: has joined #ruby
[01:52:34] mary5030: has joined #ruby
[01:53:44] centrx: has joined #ruby
[01:53:54] havenwood: quazimod1: include? say more?
[01:54:02] tkuchiki: has joined #ruby
[01:54:34] Stratege: has joined #ruby
[01:54:47] Thomas-0725: has joined #ruby
[01:54:50] doctorly: has joined #ruby
[01:55:45] christiandsg: has joined #ruby
[01:56:38] mistermocha: has joined #ruby
[01:57:03] dseitz: has joined #ruby
[01:58:18] Rollabunna: has joined #ruby
[01:59:17] Ox0dea: quazimod1: Refinements.
[02:01:10] tuxtgz: has joined #ruby
[02:01:31] mistermocha: has joined #ruby
[02:01:32] Ox0dea: Sure thing.
[02:01:40] Ox0dea: Do note that they can be scoped more finely than "current file".
[02:01:52] quazimod1: Ox0dea: i'll read more nito them
[02:02:33] MatthewsFace: has joined #ruby
[02:03:26] j4cknewt: has joined #ruby
[02:04:33] j4cknewt: has joined #ruby
[02:05:07] sharpmachine: has joined #ruby
[02:06:53] hololeap: has joined #ruby
[02:08:38] diego1: has joined #ruby
[02:09:01] diego1: has joined #ruby
[02:11:04] tuxtgz: has joined #ruby
[02:11:09] omegamike: has joined #ruby
[02:11:42] freerobby: has joined #ruby
[02:11:47] willywos: has joined #ruby
[02:12:16] neoseeker: has joined #ruby
[02:13:02] iateadonut: has joined #ruby
[02:15:05] baweaver: has joined #ruby
[02:16:25] ddarkpassenger: has joined #ruby
[02:16:53] mdavid613: has joined #ruby
[02:17:24] markholmes: has joined #ruby
[02:20:25] theery: has joined #ruby
[02:20:36] jonee: has joined #ruby
[02:23:23] vimz: 'nineninety'.scan /nine|ninety/ #=> ["nine", "nine"] . I want => ["nine","ninety"] The problem is that my regex matches the second nine inside ninety before it match the entire word ninety. My regex needs to follow this logic: Match a group ONLY if the pattern is not included in a longer group. i.e. 'ninety' is longer than 'nine' by 2 chars. Can this be done with regex? What's a really good ruby book on regex as well, I'm fed up of hitting a brickwall w
[02:26:01] bmurt: has joined #ruby
[02:27:38] icebourg: has joined #ruby
[02:27:45] andrewjanssen: has joined #ruby
[02:28:42] Trynemjoel: has joined #ruby
[02:28:56] mjuszczak: has joined #ruby
[02:30:04] bmcginty: vimz: just a minute, let me play with this for you.
[02:31:54] craysiii: has joined #ruby
[02:32:09] vimz: bmcginty appreciate it...how did you learn regex btw? any recommendations?
[02:32:18] yeticry: has joined #ruby
[02:33:01] fullofcaffeine: has joined #ruby
[02:33:04] RustySpork: has joined #ruby
[02:33:29] bmcginty: vimz: I'm originally from python, and used resources there and via sed under linux.
[02:33:47] Ox0dea: A sufficiently general regular expression which would pluck 'nine' and 'ninety' from 'nineninety' would also have to grab 'nineni'.
[02:33:52] krz: has joined #ruby
[02:33:53] bmcginty: vimz: you can swap nine and ninety in your pattern, e.g. /ninety|nine/
[02:33:56] Ox0dea: I very much you'd want to special-case the '-ty' prefix.
[02:34:02] Ox0dea: *much doubt
[02:35:08] bmcginty: Ah, good. Someone with more knowledge. :) (And that's not meant to sound sarcastic.)
[02:35:30] dymk: I'm quite happy with my solution for having RAII work in the face of rb_raise
[02:35:52] bmcginty: vimz: are you trying to match en entire set of typed out numbers? (I assume it's not just ninety, but a bunch of them?)
[02:36:13] dymk: i used a similar approach as another person on the internet, where you throw a custom exception type and in the catch block call rb_error, and by then all dtors have ran correctly
[02:36:40] dymk: so yay mutexes actually release on rb_raise
[02:37:15] Ox0dea: Yay, but also -1 for using exceptions for control flow?
[02:37:27] dymk: Ox0dea, what's -l do?
[02:37:35] Ox0dea: It's a downvote. :P
[02:37:42] Trynemjoel: has joined #ruby
[02:37:45] dymk: Oh that's a 1, not al L
[02:38:01] dymk: hah yeah well, ruby has throw, this is literally the C++ equivalent I guess
[02:38:02] Ox0dea: vimz: The "language" of English numbers is recursively enumerable, so any hopes to fully match it with a regular expression are in vain.
[02:38:33] dymk: Ox0dea, lemme tell you that erlang is a much better VM to write native extension for https://github.com/dymk/all_the_tags/blob/master/c_src/erl_api/erl_api.cc
[02:38:38] Ox0dea: dymk: Ruby's `throw` doesn't mean what it does in most other languages.
[02:38:50] dymk: yeah it's for flow control, just like what I'm doing here :P
[02:38:56] Ox0dea: Fair enough.
[02:39:34] tabakhase: spec.executables cant do name-aliase or so hm? so i could not have a bin start and one called start, and then "provide" start as "RandomString-client" for example?
[02:39:36] dymk: srs tho whoever thought it was a good idea to have the interpreter longjump out of extension code needs to have a good stern talking to
[02:40:22] tabakhase: so my bin/start needs to be bin/gemName -- whats not really an issue doe, just wondering if those can be "mapped"
[02:40:37] Ox0dea: tabakhase: Doesn't it make things much easier to just name them differently?
[02:42:28] tabakhase: hm it might be a doubble quest - came with the quest for spec.files - where there seem to be multiple "aproaches"
[02:42:42] RustySpork: has left #ruby: ()
[02:43:09] tabakhase: a) use git-ls - b) scan filesystem - c) hardcode gem, gemspec, bin/**, lib/**
[02:43:55] tabakhase: where b) is a mess, a) is neat but brings some usageIssues doing testbuilds
[02:44:28] tabakhase: now saying stuff liike my vagrant file should not be the "gem" and when you want to develop on it, dont take the gem, get the github!" c) seems really reasonable...
[02:45:10] tabakhase: with that known, i would not add my bin/ -- actually put exe/MyGem and add that as executable
[02:45:28] tabakhase: and in my git bin/start is the bundler/rake calls
[02:46:21] S1kx: has joined #ruby
[02:46:21] tabakhase: sp the build gem would really only contain runCode, is that the clean way and those git lookup things are the hackyMagic?
[02:47:05] s00pcan: has joined #ruby
[02:51:53] arescorpio: has joined #ruby
[02:52:36] Rollabunna: has joined #ruby
[02:53:47] user1138: has joined #ruby
[02:54:08] minmax: has joined #ruby
[02:54:39] user1138: has joined #ruby
[02:55:23] PhantomS_: has joined #ruby
[02:55:45] dgutierrez1287: has joined #ruby
[02:55:57] Oog: has joined #ruby
[02:56:28] christiandsg: has joined #ruby
[02:57:01] decaff: has joined #ruby
[02:58:36] decaff_: has joined #ruby
[02:58:58] psye: has joined #ruby
[02:59:24] theery: has joined #ruby
[02:59:36] psye: has joined #ruby
[03:00:32] user1138_: has joined #ruby
[03:00:43] vimz: bmcginty sorry went afk, yeah it's a set of numbers, not just ninety. so we're look at eighty, seventy ect. could hardcode something but I like code that's reusable..even if Im not good enough to write it myself yet :P (tbf its only regex that properly stumps me)
[03:01:15] konsolebox: has joined #ruby
[03:01:33] charliesome: has joined #ruby
[03:01:44] dymk: Is there a builtin native method for getting an array's length in an extension?
[03:03:16] Ox0dea: dymk: The RARRAY_LEN() macro really ought to get a mention in extension.rdoc.
[03:03:32] dymk: Ox0dea, many things ought to get a mention in extension.rdoc :P
[03:03:43] Ox0dea: Aye, you're not wrong.
[03:03:59] krz: has joined #ruby
[03:04:02] n_blownapart: has joined #ruby
[03:05:21] Ox0dea: vimz: Is it part of your requirements to handle ill-formatted numbers, then?
[03:05:43] Ox0dea: Properly spelling it "ninety-nine" and otherwise delimiting the "parts" with spaces makes the task significantly less finicky.
[03:05:50] werelivinginthef: has joined #ruby
[03:07:50] [k-: has joined #ruby
[03:09:23] PanPan: has joined #ruby
[03:10:47] darkf: has joined #ruby
[03:11:10] dymk: What's ruby got the concept of an ID for?
[03:11:23] braincras: has joined #ruby
[03:11:26] dymk: seems the way to get a symbol's value is go from c string -> ID -> VALUE
[03:11:34] dymk: but I don't understand why that intermediate step exists
[03:11:46] bronson: has joined #ruby
[03:12:02] shevy: isn't an id also a value?
[03:12:28] dymk: the docs make it seem like a distinct concept
[03:12:29] theery: has joined #ruby
[03:12:55] Channel6: has joined #ruby
[03:17:06] tjohnson: has joined #ruby
[03:17:30] RobertBirnie: has joined #ruby
[03:18:06] Scriptonaut: has left #ruby: ()
[03:18:14] juanpablo_: has joined #ruby
[03:19:00] [k-: Symbols have #id2name for some reason
[03:19:34] Ox0dea: dymk: Symbols are just "interned" strings. ID is just a type alias for the native pointer type; they're used wherever possible in the interests of performance.
[03:19:54] henchman_21: has joined #ruby
[03:20:26] Rubie: has joined #ruby
[03:20:30] _gautam_: has joined #ruby
[03:21:33] nobitanobi: has joined #ruby
[03:21:41] theery: has joined #ruby
[03:22:40] Ox0dea: >> ['foo'.object_id, 'foo'.object_id, :foo.object_id, :foo.object_id] # dymk
[03:22:41] ruboto: Ox0dea # => [551097360, 551098280, 417458, 417458] (https://eval.in/406439)
[03:23:48] leat: has joined #ruby
[03:24:08] Feyn: has joined #ruby
[03:24:10] dymk: Ox0dea, oh so I can use that as identity then when checking if one thing is the same instance as another
[03:24:22] dymk: alright very cool
[03:24:29] RobertBirnie: has joined #ruby
[03:24:36] workmad3: has joined #ruby
[03:25:24] swgillespie: has joined #ruby
[03:25:50] tubulife-: has joined #ruby
[03:26:34] Ox0dea: dymk: Hm, I think you may've missed what I intended to demonstrate there.
[03:26:43] _blizzy_: has joined #ruby
[03:26:50] dymk: Ox0dea, no I think I got it
[03:27:09] minmax: [:foo.object_id,:bar.object_id,:foo.object_id]
[03:27:19] dymk: it can be thought of as a pointer to the memory of the instance in question
[03:27:21] craysiii: do symbol id's change every time the script is ran or is it generated
[03:27:41] cibs: has joined #ruby
[03:27:48] dymk: >> [:foo.object_id, :bar.object_id, :foo.object_id]
[03:27:49] ruboto: dymk # => [417458, 417618, 417458] (https://eval.in/406440)
[03:27:53] dymk: >> [:foo.object_id, :bar.object_id, :foo.object_id]
[03:27:54] ruboto: dymk # => [417458, 417618, 417458] (https://eval.in/406441)
[03:28:10] dymk: it seems they're deterministic right here unless ruboto is caching
[03:28:26] [k-: eval.in probably uses the same instance
[03:28:45] dymk: hah, that sounds exploitable
[03:29:00] lessless: has joined #ruby
[03:29:27] Ox0dea: [k-: Let's find out with the magical $$.
[03:30:10] konsolebox: has joined #ruby
[03:31:12] [k-: not the same process
[03:32:55] dymk: that great feeling when unittests are passing and your code isn't segfaulting
[03:32:59] GriffinHeart: has joined #ruby
[03:33:01] [k-: >> Symbol.all_symbols
[03:33:02] ruboto: [k- # => [:!, :"\"", :"#", :"$", :%, :&, :"'", :"(", :")", :*, :+, :",", :-, :".", :/, :":", :";", :<, :"=", ...check link for more (https://eval.in/406444)
[03:33:30] Henchman21: has joined #ruby
[03:33:54] [k-: i still dont believe that the id doesnt change
[03:34:01] sevenseacat: thats a lot of symbols
[03:34:07] sevenseacat: >> Symbol.all_symbols.count
[03:34:08] ruboto: sevenseacat # => 2511 (https://eval.in/406445)
[03:34:09] ddarkpassenger: has joined #ruby
[03:34:20] michael_mbp: has joined #ruby
[03:34:47] Ox0dea: [k-: Well, it's certainly not completely random.
[03:34:49] bmcginty: vimz: no problem, same afk here. There's very few examples on the net that I am seeing. The only thing close is something written in java, but it's readable.
[03:35:05] allcentury: has joined #ruby
[03:35:44] Ox0dea: brb, gonna try to hit this error: https://github.com/ruby/ruby/blob/trunk/symbol.c#L625
[03:36:27] [k-: the garbage collector will stop you!
[03:36:40] Ox0dea: >> GC.disable
[03:36:41] ruboto: Ox0dea # => false (https://eval.in/406446)
[03:36:50] [k-: hue hue
[03:38:45] Cache_Money: has joined #ruby
[03:39:03] dymk: what're my options when it comes to securing a private gem server?
[03:39:30] Scripore: has joined #ruby
[03:39:32] [k-: FreeBSD
[03:39:46] dymk: well more like will geminabox allow me to force ssh authentication or something similar :P
[03:39:54] dymk: sorry that was a pretty bad question, I will admit
[03:40:55] Ox0dea: Seems geminabox doesn't go out of its way to make using your own authentication middleware unnecessarily painful.
[03:41:21] dymk: mm man i'm a rails guy, i need my solutions to literally write themselves for me ;)
[03:41:47] dymk: honestly it'll be easier to just copy/paste the gem into a vendored directory I think
[03:45:07] i8igmac: has joined #ruby
[03:45:22] bmcginty: vimz: for the pure horror potential, I'm going to try to write something that will at least capture numbers to a certain length, say into the millions place. I'll assume the numbers will all be single words for now e.g. ninehundredthirty for 930.
[03:45:41] gix: has joined #ruby
[03:46:06] leesharma: has joined #ruby
[03:46:39] howdoi_: has joined #ruby
[03:46:54] Rollabunna: has joined #ruby
[03:47:15] Henchman21: has left #ruby: ("WeeChat 1.2")
[03:48:44] vimz: bmcginty haha horror potential okay, thanks a lot
[03:48:57] vimz: and yes, single words for now :)
[03:49:10] cats: has joined #ruby
[03:49:42] omegamike: has joined #ruby
[03:51:14] qiukun: has joined #ruby
[03:55:57] rbowlby: has joined #ruby
[03:56:08] icebourg: has joined #ruby
[03:57:15] fullofcaffeine: has joined #ruby
[03:57:59] tjbiddle: has joined #ruby
[03:58:21] dymk: you know, it's really quite moving to see stuff in development.log from over a year ago
[03:58:33] dymk: the initial "Processing by Rails::WelcomeController#index as HTML"
[04:00:18] Oog: has joined #ruby
[04:01:33] dfockler: has joined #ruby
[04:01:36] MatthewsFace: has joined #ruby
[04:01:39] deepu: has joined #ruby
[04:01:44] keen__________31: has joined #ruby
[04:02:09] theery: has joined #ruby
[04:05:00] kawaii-imouto: has joined #ruby
[04:09:04] Vile`: has joined #ruby
[04:10:01] schmooster: has joined #ruby
[04:11:30] pyon: has joined #ruby
[04:13:20] michael_mbp: has joined #ruby
[04:14:43] poguez_: has joined #ruby
[04:17:33] charliesome: has joined #ruby
[04:18:55] codecop: has joined #ruby
[04:19:25] XandnaX: has joined #ruby
[04:21:40] konsolebox: has joined #ruby
[04:23:57] nklv: has joined #ruby
[04:24:00] nklv: Any idea for EXCUSE why i was not working for few weeks?
[04:25:03] Aeyrix: You what?
[04:25:16] railswebdev: has joined #ruby
[04:25:20] [k-: ??tahw uoy
[04:25:25] lxsameer: has joined #ruby
[04:25:37] nklv: i havent worked for few weeks. i need an excuse to explain myself
[04:25:45] havenwood: nklv: bundling?
[04:26:01] Aeyrix: nklv: Why haven't you worked the last few weeks?
[04:26:18] [k-: its your fault that you couldnt resist looking at cat videos :3
[04:26:39] nklv: Aeyrix i was exhausted from working so i started procrastinating and doing interesting things instead of boring job
[04:27:05] crdpink2: has joined #ruby
[04:27:14] havenwood: nklv: professional development
[04:27:16] Aeyrix: nklv: Who do you need an excuse for?
[04:27:34] nklv: Aeyrix a client that im working for on a project
[04:27:44] nklv: havenwood whats bundling
[04:27:57] havenwood: nklv: http://bundler.io/
[04:28:05] havenwood: nklv: when you type: bundle install
[04:28:07] Aeyrix: nklv: Were you being paid during this time?
[04:28:23] nklv: Aeyrix during procrastinating? no
[04:28:30] Aeyrix: [14:27:13] <havenwood> nklv: professional development
[04:28:34] Aeyrix: Training.
[04:28:39] Aeyrix: Research and development.
[04:29:16] Ox0dea: nklv: You were in a fugue state.
[04:29:31] Aeyrix: Isn't that a pufferfish?
[04:29:36] nklv: "I was not working for few weeks on this crap boring project because of professional development of my person"
[04:29:38] Ox0dea: That's fugu.
[04:30:03] Ox0dea: nklv: Tell them you were transmogrified into a fugu fish.
[04:30:10] Aeyrix: nklv: "I took temporary leave from the project for my annual period of learning and development."
[04:30:14] Ox0dea: Fugu fish can't type, so you'll be in the clear.
[04:31:00] nklv: Aeyrix that doesnt sound like a good excuse
[04:31:14] Ox0dea: Except that periods are usually monthly, not annual.
[04:31:30] nklv: that annual period could waited till i complete project
[04:31:36] [k-: "Your project is silly & dumb. That's why i didnt work on it"
[04:31:46] Mendenhall: has joined #ruby
[04:31:51] nobitanobi: has joined #ruby
[04:31:55] nklv: well its not that silly and dumb
[04:32:01] tmtwd: has joined #ruby
[04:32:02] nklv: it was interesting, at least at beginning
[04:32:11] nklv: but when i had difficulties i procrastinated
[04:32:33] nklv: i got bored too
[04:33:10] astrobunny: has joined #ruby
[04:33:10] PhantomSpank: has joined #ruby
[04:33:16] havenwood: nklv: This project has been an interesting one and in order to deliver the best value I've spent several weeks further developing my expertise. I won't be charging anything for this time and am excited to get back to the project.
[04:33:48] [k-: "Your project presents no challenge to me. I was working on another project all this while."
[04:33:50] havenwood: nklv: Is another way to say you got bored.
[04:34:19] brianpWins: has joined #ruby
[04:35:03] havenwood: nklv: try sugar-coated honesty?
[04:35:05] nklv: also how to prevent procrastinating in future?
[04:35:16] keen__________32: has joined #ruby
[04:35:31] nklv: havenwood or i could not explain not working at all
[04:35:55] [k-: get a shocker. Each time you procrastinate, you zap yourself
[04:35:56] nklv: its not first time i end up not working for few weeks on project i have
[04:35:57] bmcginty: nklv: your situation sounds very, very familiar, minus the not working bit.
[04:35:57] havenwood: don't explain what doesn't need explaining
[04:36:28] nklv: [k- that wont force me to work on it. i will resist it, im unbreakable
[04:37:15] [k-: then you have no choice but to quit your job
[04:37:42] nklv: [k- and become jobless? how to get food and shelter then?
[04:38:15] wmoxam: find another job?
[04:38:23] nklv: wmoxam what job
[04:38:24] chipotle: has joined #ruby
[04:38:35] Aeyrix: nklv: If you don't want to do what you're doing
[04:38:36] nklv: all jobs are boring and bad, even worse than programming
[04:38:37] Aeyrix: find something you want to do.
[04:38:43] Aeyrix: lol so you want to just
[04:38:45] Aeyrix: live with money
[04:38:45] astrobunny: i misread that as find another woman
[04:38:47] Aeyrix: but not work for it
[04:38:52] nklv: Aeyrix exactly!
[04:38:55] bmcginty: nklv: Something I've found, though the shock theropy might work better, is to figure out a slightly better/different way to implement something you're tasked to do. e.g. okay, I've got to do this login form. However, the client didn't specify cookies or what, so I'll look into jwt, web tokens, and (carefully) implement that. Might take a bit longer, but better than doing nothing because the whole project is becoming so bloody ...
[04:38:58] Aeyrix: nklv: marry someone rich
[04:39:01] bmcginty: ... borring you could scream.
[04:39:03] Aeyrix: divorce them after 3 years
[04:39:17] existensil: has joined #ruby
[04:39:55] wmoxam: nklv: why do you think all jobs are boring and bad?
[04:40:01] Hobogrammer: has joined #ruby
[04:40:01] Aeyrix: wmoxam: effort
[04:40:03] texasmade: has joined #ruby
[04:40:05] nklv: bmcginty that sounds good advice. though not always you have choices like that
[04:40:30] nklv: Aeyrix i dont want to live off rich partner
[04:40:36] Aeyrix: nklv: you're not
[04:40:39] Aeyrix: you're making your own money
[04:40:40] Aeyrix: by divorcing them
[04:40:42] Aeyrix: and taking 50%
[04:40:49] nklv: thats stealing
[04:40:57] Aeyrix: actually it's forfeit
[04:41:05] nklv: wmoxam because.. they are boring and bad?
[04:41:11] Rollabunna: has joined #ruby
[04:41:23] [k-: you should become a farmer
[04:41:28] wmoxam: nklv: maybe you should look for one that isn't ;)
[04:41:58] Ox0dea: nklv: Read Ecclesiastes.
[04:42:00] nklv: [k- farmers spend hours daily on many things, physical work. not for me
[04:42:08] Aeyrix: Ox0dea: s'that?
[04:42:10] nklv: wmoxam i dont know of any jobs that isnt
[04:42:35] Ox0dea: Aeyrix: It's a book of the Bible.
[04:42:45] wmoxam: I don't think creating software is boring
[04:43:05] Ox0dea: Aeyrix: It's (allegedly) King Solomon discussing the meaninglessness of life, and toil in particular.
[04:43:22] Ox0dea: Seems relevant enough to nklv's predicament.
[04:43:24] nklv: sounds good, life is meaningless
[04:43:35] Ox0dea: nklv: All the true nihilists are in the ground.
[04:43:38] Xiti`: has joined #ruby
[04:43:53] nklv: Ox0dea so will I soon
[04:44:01] Ox0dea: All in good time.
[04:44:14] PaulCapestany: has joined #ruby
[04:44:45] nklv: wmoxam most software dev is very boring and repetitive and doesnt include any special analysis / insight
[04:45:12] christiandsg: has joined #ruby
[04:45:53] wmoxam: nklv: so you conceed that some of it is not 'boring and repetitive". Find a job with more of *that*
[04:45:54] nklv: i want analyze, describe complex things with simple algorithms, compare choices/things, choose best action in situations, etc
[04:46:23] nklv: wmoxam where is that job
[04:46:40] nklv: havent seen yet
[04:46:42] [k-: engineering
[04:46:54] [k-: yay i did it \o/
[04:47:06] wmoxam: nklv: what kind of work have you been doing?
[04:47:29] Ox0dea: nklv: Do a breakthrough in natural language processing that we may shovel away the snow of the AI winter.
[04:48:02] Sheperson: has joined #ruby
[04:48:18] [k-: >> [:foo.object_id, :bar.object_id, :foo.object_id]
[04:48:19] [k-: [11:27:51] <ruboto> dymk # => [417458, 417618, 417458] (https://eval.in/406441)
[04:48:20] ruboto: [k- # => [417458, 417618, 417458] (https://eval.in/406460)
[04:49:00] Ox0dea: [k-: Why does its being at least partly deterministic trouble you so?
[04:49:01] dymk: [k-, it doesn't make sense for it to be deterministic, but perhaps it is
[04:49:17] dymk: i like how the name [k- and the word deterministic lined up there
[04:49:36] dymk: only three letters off to have gone 3/3
[04:49:49] dymk: coulda made bash.org history
[04:50:16] [k-: screenshot pls
[04:50:28] Ox0dea: > screenshot irc
[04:50:51] nklv: wmoxam some boring apps in C++ or C#, or boring web development
[04:51:00] [k-: > > screenshot irc
[04:51:10] Aeyrix: > > using le maymay arrows on irc unironically
[04:51:26] Ox0dea: > mfw chevrons with spaces in
[04:51:34] ruboto: craysiii # => "hello" (https://eval.in/406461)
[04:51:44] dymk: >>> mfw three chevrons makes it look like a python shell
[04:51:45] ruboto: dymk # => /tmp/execpad-2d15edf2f99d/source-2d15edf2f99d:2: syntax error, unexpected '>' ...check link for more (https://eval.in/406462)
[04:51:56] dymk: oh yeah the robot didn't like that
[04:52:13] Ox0dea: >???> fuck the robot
[04:52:20] dymk: this native extension is seriously the bees knees
[04:52:24] wmoxam: nklv: ok, but are you working for companies whose main product is software?
[04:52:25] nklv: Ox0dea id like to do AI stuff but there are no AI jobs
[04:52:33] dymk: it's a big graph database so i can avoid postgres all together
[04:52:38] Ox0dea: nklv: "AI stuff"?
[04:52:39] [k-: an empty width character!
[04:52:45] nklv: wmoxam sometimes yes sometimes no
[04:52:48] baweaver: has joined #ruby
[04:53:21] djbkd: has joined #ruby
[04:53:32] nklv: Ox0dea yes, like ai for computer games or something
[04:54:12] schaerli: has joined #ruby
[04:54:18] [k-: you are going to use ruby for games?
[04:54:29] Aeyrix: [14:50:50] <nklv> wmoxam some boring apps in C++ or C#, or boring web development
[04:54:33] wmoxam: some would find computer game AI pretty boring :p
[04:54:34] Aeyrix: C++ or C#, I assume.
[04:54:52] nklv: wmoxam in most cases it is, thats the problem
[04:55:25] Ox0dea: /part #emotional-support
[04:57:21] jud: has joined #ruby
[04:58:09] nklv: Aeyrix yes
[04:58:35] chenillen: has joined #ruby
[04:59:17] [k-: ooo time for haskell propaganda
[04:59:19] WildBamboo-Josh: has joined #ruby
[04:59:23] qiukun: has joined #ruby
[04:59:52] shevy: is it useful to have the distinction between symbols as keys in a hash and strings?
[04:59:58] nklv: [k- i was at haskell channel one day. are they like sect?
[05:00:17] [k-: i couldnt understand them too
[05:00:25] [k-: very advanced speech going on there
[05:00:59] Ox0dea: Spacesuits and burritos and the like?
[05:02:02] [k-: ?try Ox0dea
[05:02:02] ruboto: Ox0dea, Why don't you try it and see for yourself?
[05:02:29] Ox0dea: IRC should not be a spectator sport.
[05:02:35] [k-: hue hue hue i managed to use it in ypu
[05:02:42] shock_one: has joined #ruby
[05:02:57] Ox0dea: shevy: Consider the case of URLs as keys.
[05:03:04] [k-: that is why you should try it!
[05:03:11] krz: has joined #ruby
[05:03:49] shevy: 'http://distrowatch.com/'
[05:04:04] Ox0dea: shevy: It's arguably overkill to use a more specialized class where a String would do, and converting URLs to Symbols seems a little silly.
[05:04:17] shevy: well you can combine both in the same hash right now
[05:04:27] shevy: you could have a symbol backup of every string key!
[05:04:43] shevy: it's like twice the power if you think about it
[05:04:45] Ox0dea: Redundancy all the things!
[05:04:49] sevenseacat: has joined #ruby
[05:05:11] shevy: ?try ruboto
[05:05:12] ruboto: ruboto, Why don't you try it and see for yourself?
[05:05:28] nklv: ?try shevy
[05:05:29] ruboto: shevy, Why don't you try it and see for yourself?
[05:05:32] riotjones: has joined #ruby
[05:05:34] shevy: I wish so much to just once in my life, break ruboto
[05:05:44] Ox0dea: >> 'x' * 1e17
[05:05:45] ruboto: Ox0dea # => float 1e+17 out of range of integer (RangeError) ...check link for more (https://eval.in/406463)
[05:05:53] Ox0dea: Stupid 32-bit host.
[05:06:03] GriffinHeart: has joined #ruby
[05:06:58] juanpablo_: has joined #ruby
[05:11:20] chrissonar: has joined #ruby
[05:12:17] astrobun_: has joined #ruby
[05:13:13] sharpmachine: has joined #ruby
[05:13:18] rickmasta: has joined #ruby
[05:13:19] atmosx: has joined #ruby
[05:13:24] workmad3: has joined #ruby
[05:13:58] tubulife-: has joined #ruby
[05:14:40] crdpink: has joined #ruby
[05:15:24] user1138_: has joined #ruby
[05:20:50] kokoleavia: has joined #ruby
[05:20:56] latemus: has joined #ruby
[05:21:59] GeissT: has joined #ruby
[05:22:44] dgutierrez1287: has joined #ruby
[05:24:25] MrSamuel: has joined #ruby
[05:24:58] Xzanron: has joined #ruby
[05:28:07] krz: has joined #ruby
[05:28:09] fedexo: has joined #ruby
[05:28:30] hdmudge: has joined #ruby
[05:28:55] yardenbar: has joined #ruby
[05:29:16] crazydiamond: has joined #ruby
[05:31:37] three18ti: has joined #ruby
[05:32:18] mello: has joined #ruby
[05:32:33] decaff: has joined #ruby
[05:33:45] craysiii: >> (1...50)
[05:33:46] ruboto: craysiii # => 1...50 (https://eval.in/406469)
[05:34:04] craysiii: i dont know what i expected.
[05:35:32] Rollabunna: has joined #ruby
[05:35:38] bluOxigen: has joined #ruby
[05:36:09] weemsledeux: has joined #ruby
[05:36:21] Radar: me makes 3
[05:36:49] sevenseacat: ACTION gets crystal ball
[05:37:40] Oog: has joined #ruby
[05:37:45] craysiii: >> (1...50).each { |n| n.times { puts n } }
[05:37:46] ruboto: craysiii # => 1 ...check link for more (https://eval.in/406475)
[05:38:06] craysiii: bot too smart
[05:39:14] GriffinHeart: has joined #ruby
[05:39:33] tjbiddle: has joined #ruby
[05:41:16] aevitas: has joined #ruby
[05:41:22] Oog_: has joined #ruby
[05:41:41] chinmay_dd: has joined #ruby
[05:42:43] djbkd_: has joined #ruby
[05:43:47] einarj: has joined #ruby
[05:44:25] baweaver: ACTION stares blankly
[05:45:10] aevitas: has joined #ruby
[05:48:58] Ox0dea: craysiii: puts 50.times.map { |n| [n] * n }
[05:49:15] chinmay_dd: has joined #ruby
[05:50:03] Aeyrix: Ox0dea: Why are you using alphanumeric characters?
[05:50:09] Mia: has joined #ruby
[05:50:09] Mia: has joined #ruby
[05:50:10] Ox0dea: Shit. You got me.
[05:50:56] EminenceHC: has joined #ruby
[05:51:23] Ox0dea: baweaver: There was some sort of Harry Potter marathon on this past weekend, and it reminded me of you. <3
[05:51:38] baweaver: I was watching it <3
[05:51:49] baweaver: Vacation is fun
[05:51:56] baweaver: though I fail at vacationing
[05:52:11] baweaver: already gone through most of Unix Powertools and TCP/IP Administration
[05:52:37] Ox0dea: What's that Ruby-ish fellow what does lots of UNIX-y books?
[05:53:02] usershell: has joined #ruby
[05:53:08] sevenseacat: ACTION confiscates baweaver's computer
[05:53:23] baweaver: jokes on you
[05:53:23] sevenseacat: though I failed at vacation last week also
[05:53:26] krokuz: has joined #ruby
[05:53:27] tkuchiki: has joined #ruby
[05:53:28] baweaver: they're on my kindle :D
[05:53:30] v0n: has joined #ruby
[05:53:35] sinkensabe: has joined #ruby
[05:53:42] sevenseacat: ACTION confiscates Kindle and goes through it
[05:53:54] Ox0dea: I was thinking of @jstorimer: http://www.jstorimer.com/pages/books
[05:53:55] baweaver: Most of it is fiction
[05:53:57] sevenseacat: you read what!? o.o
[05:54:41] last_staff: has joined #ruby
[05:54:46] baweaver: Name of the Wind, Lies of Locke Lamora, Mistborn, Stormlight Archive, Wheel of Time, Montemorency, Arsene Lupin, and a few others I forget
[05:55:00] Ox0dea: The first two are quite good.
[05:55:19] baweaver: That's this year so far.
[05:55:21] Ox0dea: LLL's author was in something of a troubled state for a while. :/
[05:55:29] emdub: has joined #ruby
[05:55:35] levifig: has joined #ruby
[05:55:36] baweaver: Scott Lynch
[05:55:45] bmcginty: vimz: My brain hath melted like an icecream cone. Got it to match bunches of numbers properly, then the parenthesies, oh the parenthesies for grouping, attempted to take over my brain. Anyhow, I'll gist what I've got, and if I get time tomorrow, I'll get back to it. Be warned, it's...icky.
[05:55:45] Radar: Troubled state?
[05:56:01] Ox0dea: Glitch in the wetware.
[05:56:12] Radar: [citation needed]
[05:56:15] bmcginty: baweaver: stormlight archive and that group are amazing!
[05:56:35] baweaver: Wheel of Time is a huge commitment, but worth it.
[05:56:41] baweaver: 14 books, most over 1000 pages.
[05:56:43] sepp2k: has joined #ruby
[05:57:01] sevenseacat: i have the first wheel of time book on my kindle
[05:57:03] baweaver: oi sepp2k, how's it going? (lemur)
[05:57:26] Oog: has joined #ruby
[05:59:06] xcesariox: has joined #ruby
[05:59:45] Ox0dea: baweaver: All caught up on ASoIaF, presumably?
[06:00:02] aganov: has joined #ruby
[06:00:14] Ox0dea: Blasphemy.
[06:00:19] sepp2k: baweaver: Hi. Well. How about you?
[06:00:19] sevenseacat: thats one series i have read
[06:00:27] Ox0dea: Too political?
[06:00:54] baweaver: Ah decent enough. Working out of SF. Where were you at again?
[06:01:54] tvw: has joined #ruby
[06:02:01] bmcginty: vimz: https://gist.github.com/anonymous/d1c7b32b89af36d7789a
[06:02:25] atmosx: baweaver: there are single books that feature ~ 1.000-1.200 pages
[06:02:27] Ox0dea: bcavileer: Saints preserve us.
[06:02:31] atmosx: 10 books 1.000 pages doesn't sound like much
[06:02:47] atmosx: ACTION my molecular biology has 1.600 IIRC.
[06:02:49] baweaver: 14 books averaging 1000 pages each
[06:02:57] [k-: >> 1.000
[06:02:58] ruboto: [k- # => 1.0 (https://eval.in/406484)
[06:03:00] atmosx: that's like a marathon
[06:03:08] baweaver: Did it in under 2 months
[06:03:35] atmosx: baweaver: how many hours per day?
[06:04:12] atmosx: ACTION is a slow reader
[06:04:16] Ox0dea: Some day we'll just drink books.
[06:04:18] baweaver: normally about 1.5 hours on weekdays and 5-6 on weekends
[06:04:23] timonv: has joined #ruby
[06:04:32] baweaver: I read like a monster, about 2-3 pages a minute.
[06:04:45] roolo: has joined #ruby
[06:05:01] eGGsha: has joined #ruby
[06:05:39] piyush: has joined #ruby
[06:05:43] atmosx: baweaver: how do you manage that?
[06:06:02] baweaver: Don't know, I just do
[06:06:20] piyush: hello friends, i am a php code i have few lines of ruby, can some one help me to understand that
[06:06:21] riotjones: has joined #ruby
[06:06:28] ruboto: Just ask your question, if anyone has or can, they will respond.
[06:06:31] piyush: it is related to soap rpc
[06:06:36] ruboto: apeiros is nobody
[06:07:01] baweaver: well that's rather harsh
[06:07:28] [k-: apeiros set it himself
[06:07:32] piyush: please help me to convert this into php http://prntscr.com/7xfyeq
[06:07:40] baweaver: What have you tried so far piyush? Do you have any code?
[06:07:46] [k-: we aren't php workers!
[06:08:03] baweaver: also I don't trust that link
[06:08:16] Ox0dea: Which circle of Hell is reserved for people who post images of code?
[06:08:17] ruboto: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[06:08:44] [k-: ?gist_usage
[06:08:45] ruboto: To properly use gist, please enable syntax highlighting, either by choosing the language manually or by entering a proper filename. If you post multiple things, separate them into multiple files. If you have a Github account, please update your gist with new information instead of posting a new one.
[06:08:45] piyush: baweaver, i have given code in link
[06:08:55] Aeyrix: piyush: no, you've given an image in the link
[06:08:56] baweaver: you gave an image
[06:09:13] piyush: yeah, code is written on it
[06:09:21] baweaver: also, we're not in the business of translating code for people
[06:09:24] baweaver: that's your job
[06:09:31] [k-: if you want help, you help us help you
[06:09:38] baweaver: ours is to push you in the right direction after you've tried
[06:09:44] sevenseacat: wait, you want to convert some code to php? and you're asking in #ruby ?
[06:09:52] sevenseacat: something does not compute
[06:09:54] baweaver: that being said I have strong doubts you'll get PHP help on #ruby
[06:10:04] Aeyrix: I still haven't gotten over the hilarity of posting a screenshot of code.
[06:10:12] Aeyrix: It's just missing a copyright watermark for premium laughs.
[06:10:16] [k-: shevy would gladly :>
[06:10:19] piyush: sevenseacat, becoz that is ruby code and i am php developer
[06:10:23] Aeyrix: "MORE LAUGHS AT 9GAG.COM"
[06:10:41] Ox0dea: piyush: Hey, you said you were a PHP code!
[06:10:41] baweaver: your problem is you don't understand code in general
[06:11:06] Aeyrix: Hey guys, serious question
[06:11:12] Aeyrix: how do you maintain momentum on your side projects?
[06:11:15] baweaver: If you did, this would not be hard to translate at all.
[06:11:19] [k-: anything is possible with webdevs
[06:11:20] Ox0dea: Aeyrix: Use them.
[06:11:25] baweaver: Aeyrix: make sure it gets used
[06:11:35] piyush: yeah, that is using soap libraries and tried to connect with a server using xsd files, am i right?
[06:11:36] Aeyrix: baweaver: What if it's something that kind of can't be used until it's "done"?
[06:11:39] baweaver: then people will naturally bug you on it.
[06:11:49] baweaver: then reevaluate for an MVP you can get out.
[06:12:06] Aeyrix: Can you rephrase that?
[06:12:14] Aeyrix: I'm fucking exhausted today. I've been in meetings all day.
[06:12:15] baweaver: minimum viable product
[06:12:18] sevenseacat: I have no side projects
[06:12:26] baweaver: what's the simplest thing you can get out the door right now
[06:12:26] sevenseacat: thats how I do it :thumbsup:
[06:12:38] lsmola: has joined #ruby
[06:12:42] Aeyrix: baweaver: Hm.
[06:12:45] baweaver: ACTION stares in horror at count
[06:12:50] Aeyrix: I guess not all of the functionality yeah
[06:13:06] Aeyrix: although I want to turn this into a paid service later down the line
[06:13:13] Aeyrix: (when it's done)
[06:13:21] baweaver: biggest thing is make it practical asap
[06:13:27] Oog: has joined #ruby
[06:13:42] Aeyrix: Alrighty.
[06:13:43] baweaver: the more esoteric the less you can get drive from it
[06:13:48] baweaver: unless you're me or Ox0dea
[06:13:58] riotjones: has joined #ruby
[06:14:02] Ox0dea: Esoterica is my shit.
[06:14:10] baweaver: then we just get our jollies from it
[06:14:19] Aeyrix: I wish I did. :v
[06:14:20] x44x45x41x4E: has joined #ruby
[06:14:24] sharpmachine: has joined #ruby
[06:14:25] Aeyrix: I just don't have the energy a lot of the time. ;_;
[06:14:33] rht: has joined #ruby
[06:14:41] baweaver: redbull gives you wiiiiings
[06:15:00] baweaver: and tachycardia
[06:15:01] Ox0dea: Aeyrix: Tried Ballmer peaking?
[06:15:08] Aeyrix: Not recently.
[06:15:14] Aeyrix: I need to go shopping.
[06:16:21] baweaver: A good few glasses of Balvenie 14 Caribbean does the trick. I've quantified my Ballmer's Peak and calibrated it fairly well
[06:16:38] Aeyrix: $$ on that?
[06:17:05] Aeyrix: $115/700mL
[06:17:06] [k-: baweaver: Ox0dea: Obfuscate: o
[06:17:07] Aeyrix: thanks Obama
[06:17:29] Aeyrix: baweaver: That sounds INCREDIBLE
[06:17:38] baweaver: ~$70 around here.
[06:17:50] Aeyrix: more economic alternatives?
[06:17:53] Aeyrix: $70 is my avg spend on spirits
[06:18:05] baweaver: Balvenie Double Wood ~$40
[06:18:18] Aeyrix: You're a belvanie fan through and through hey?
[06:18:23] Aeyrix: Balvenie even
[06:18:40] baweaver: Between that and Lagavulin
[06:18:42] Aeyrix: Double wood is $163
[06:18:48] Aeyrix: https://www.danmurphys.com.au/product/DM_793858/the-balvenie-14-year-old-caribbean-cask-scotch-whisky-700ml
[06:18:50] Aeyrix: https://www.danmurphys.com.au/product/DM_773978/the-balvenie-17-year-old-doublewood-scotch-whisky-700ml
[06:18:51] baweaver: the expensive one, yeah
[06:18:56] Aeyrix: > more economic
[06:18:59] Aeyrix: > you list a pricier one
[06:19:15] Ox0dea: Balvenie comes in a Pringles tube?
[06:19:39] Ox0dea: That's a bold move.
[06:19:54] Aeyrix: Ox0dea: favourites go
[06:20:13] Aeyrix: r u srs m9
[06:20:14] Ox0dea: It's whiskey.
[06:20:22] baweaver: http://www.bevmo.com/Shop/ProductDetail.aspx/Spirits/Scotch/Speyside/Balvenie/Balvenie-Scotch-12-Year-Double-Wood/3277
[06:20:35] Aeyrix: Crown Royal Canadian?
[06:20:46] Aeyrix: Which one?
[06:20:48] Aeyrix: https://www.danmurphys.com.au/dm/search/dm_search_results_gallery.jsp?bmForm=search&bmFormID=kWXx89u%2F14ece2b4a31&bmUID=kWXx89v&bmIsForm=true&bmPrevTemplate=%2Fspirits.jsp&bmEditable=searchterm&bmHidden=searchterm&searchterm=Crown&bmEditable=search&bmHidden=search&search=Crown&bmEditable=searchText&bmHidden=searchText&searchText=&bmEditable=attribute&bmHidden=attribute&attribute=&bmEditable=value&bmHidden=value&value=&bmHidden=searchSubmitted&sear
[06:20:48] Aeyrix: chSubmitted=true&bmText=searchInput&searchInput=Crown&bmFields=bmText%2CbmEditable%2CbmPrevTemplate%2CbmForm%2CbmIsForm%2CbmUID%2CbmHidden%2CbmFormID&bmHash=990f47dba2290f8608711d725ec918913e9a71ee
[06:20:56] Ox0dea: Wow, dude.
[06:20:59] Aeyrix: Didn't realise that was such a huge link.
[06:21:03] baweaver: https://www.danmurphys.com.au/product/DM_746470/the-balvenie-fifty-50-year-old-scotch-whisky-700ml - would recommend
[06:21:16] Aeyrix: baweaver: Yeah if I ever get access to my trust fund
[06:21:20] Aeyrix: I'll buy that and review it just for you
[06:21:20] Ox0dea: Anything but the weird fruit things they've been going toward as of late.
[06:21:58] Aeyrix: What's canadian whiskey vs, say
[06:22:07] Aeyrix: in what way?
[06:22:17] baweaver: depends on the person honestly.
[06:22:27] Aeyrix: scotch burns me p badly
[06:22:29] Aeyrix: bourbon doesn't
[06:22:31] Ox0dea: baweaver: Have I lost my personhood?!
[06:22:32] baweaver: Scotch is made in a specific region of Scotland
[06:22:54] baweaver: We both did some time ago for our crimes against Ruby
[06:23:06] baweaver: didn't you get Matz's memo?
[06:23:23] Ox0dea: Hey, "memo" is valid Japanese; I wonder what it means...
[06:23:26] Aeyrix: Ox0dea: Crown Royal Maple Finished Canadian Whisky 750mL
[06:23:41] Ox0dea: Yeah, that's not bad.
[06:23:49] Aeyrix: What's your favourite of the mix right now?
[06:23:52] Aeyrix: I'm going on your pref here.
[06:23:58] Ox0dea: Are you looking for something you wouldn't need to cut?
[06:24:27] Aeyrix: I tend to not do so
[06:24:33] Aeyrix: so, either way
[06:24:34] tabakhase: ooookkkkaayyy, i think (more like belive) i got it...
[06:24:36] Ox0dea: I don't even remember when I started drinking Crown on the rocks, but it's been my go-to for some time.
[06:24:47] Aeyrix: rocks being ice or soapstone? :^)
[06:26:51] Ox0dea: I had to check whether there wasn't some reference I'd missed.
[06:27:02] Guest32: has joined #ruby
[06:27:37] Aeyrix: I mean, do you use ice or soapstone
[06:27:57] Ox0dea: Does soapstone have some alternate meaning in this context?
[06:28:17] Aeyrix: Soapstone is used in place of ice when you don't want to dilute the drink.
[06:28:22] Aeyrix: Mostly for scotch, but for other spirits too.
[06:28:33] Aeyrix: I recommend against using it for things like vodka though.
[06:28:37] Aeyrix: For obvious reasons.
[06:29:07] Ox0dea: That's interesting. That massive Jesus statue in Rio is apparently made of soapstone; does that mean Scotch is permitted at Mass?
[06:29:33] Aeyrix: Cristo Redentor?
[06:29:43] Ox0dea: That one.
[06:29:47] Rollabunna: has joined #ruby
[06:30:02] acke: has joined #ruby
[06:30:03] Aeyrix: But yeah, so you have with ice?
[06:30:11] Aeyrix: I'm just going to buy your recommendation here. :^)
[06:30:22] Aeyrix: Which one are you going on atm?
[06:30:27] Ox0dea: Simple is good.
[06:30:47] Ox0dea: Calling the original "deluxe" seems a little disingenuous, but that one.
[06:33:58] craysiii: >> puts 50.times.map { |n| [n] * n }
[06:33:59] ruboto: craysiii # => 1 ...check link for more (https://eval.in/406490)
[06:34:00] christiandsg: has joined #ruby
[06:34:15] Ox0dea: craysiii: Do you test me?
[06:34:26] craysiii: no i was listening, you said to do it :)
[06:34:29] sevenseacat: craysiii: you have irb on your computer, you know
[06:34:33] sevenseacat: you can run all this there
[06:34:39] Aeyrix: Yeah but it's more fun to run it with ruboto.
[06:34:59] Aeyrix: Hooo boy I've had too much caffeine, I can feel it.
[06:35:11] craysiii: is it late or early for you Ae
[06:35:16] Ox0dea: It's having a deleterious effect on your typing speed.
[06:35:28] craysiii: does anyone here do typeracer.com
[06:35:53] craysiii: http://play.typeracer.com/?rt=trcraysiii
[06:35:54] Ox0dea: [finger flexing intensifies]
[06:36:21] craysiii: ACTION cracks his knuckles
[06:36:23] safeforge: has joined #ruby
[06:37:32] Aeyrix: craysiii: It's nearly home time.
[06:37:38] Aeyrix: I was feeling off though so I had another double hsot.
[06:37:40] Aeyrix: I regreti t.
[06:37:49] Aeyrix: Espresso.
[06:37:57] Ilyes512: has joined #ruby
[06:38:03] Aeyrix: Now I have a headache. :<
[06:38:19] Aeyrix: Also RE: typeracer
[06:38:22] Aeyrix: I peak at about 140wpm
[06:38:51] craysiii: nice, my peak is 110
[06:38:52] Aeyrix: This automatically makes me always correct in arguments by default.
[06:38:58] Aeyrix: Normally I hover around 100 though.
[06:38:59] Ox0dea: It is known.
[06:39:06] craysiii: im around 85 usually
[06:41:22] auzty: has joined #ruby
[06:41:43] craysiii: i dont see how people can type 140+
[06:41:55] Aeyrix: Ox0dea: https://www.danmurphys.com.au/product/DM_755206/crown-royal-de-luxe-canadian-whisky-750ml
[06:41:59] Aeyrix: craysiii: Mostly just practice.
[06:42:13] shpoont: has joined #ruby
[06:42:24] Ox0dea: Aeyrix: That's m'baby.
[06:42:42] Ox0dea: I sometimes get to wondering how many of those purple bags I'd have by now if I didn't toss them out.
[06:42:43] Aeyrix: Will purchase tonight or something.
[06:42:48] Aeyrix: Maybe I'll get it delivered.
[06:43:21] craysiii: the only dark i like is hennessy
[06:43:59] Aeyrix: I wonder how much it is delivered.
[06:44:08] Aeyrix: Probably like more than $20.
[06:44:13] werelivinginthef: has joined #ruby
[06:44:19] yokel: has joined #ruby
[06:44:42] Hounddog: has joined #ruby
[06:44:43] bayed: has joined #ruby
[06:46:08] Guest32: craysii you're damn fas
[06:46:58] Ox0dea: ACTION lets craysiii have this one.
[06:47:11] craysiii: i keep tripping over myself
[06:47:16] craysiii: reading too fast
[06:47:35] craysiii: Ox is a lot faster :P
[06:47:37] Ox0dea: That one with all the languages was brutal.
[06:47:40] Aeyrix: This keyboard
[06:47:54] [k-: if i do voice typing, will i win?
[06:48:19] Ox0dea: [k-: Definitely: https://www.youtube.com/watch?v=KyLqUf4cdwc
[06:48:38] towski_: has joined #ruby
[06:49:19] craysiii: dostoyevsky of course
[06:49:26] markholmes: has joined #ruby
[06:49:27] craysiii: i should have known with that messed up punctuation
[06:49:38] Aeyrix: Ugh I can't break 80
[06:49:41] Aeyrix: on this keyboard
[06:50:18] SebastianThorn: Aeyrix: haha, what brand?
[06:50:25] Ox0dea: craysiii: Dat 127 doe!
[06:50:37] Aeyrix: SebastianThorn: Logitech K120.
[06:50:38] Ox0dea: I fucked up right at the end too. :/
[06:50:42] craysiii: ACTION golf claps
[06:50:44] Aeyrix: Normally I use an Apple board.
[06:51:26] atmosx: has joined #ruby
[06:52:15] craysiii: sehr schnell.
[06:52:38] Ox0dea: Ooh, big one.
[06:52:39] danzilio: has joined #ruby
[06:53:42] [k-: that was a horrible video
[06:54:08] Ox0dea: Pretty painful.
[06:54:11] craysiii: omg Ox ive seen taht one before
[06:54:25] SebastianThorn: Aeyrix: i got a TypeMatrix 2030, had it for some years now i think, verry happy with it
[06:54:53] tjbiddle: has joined #ruby
[06:55:34] andikr: has joined #ruby
[06:55:38] craysiii: i user a razer blackwidow ultimate 10key-less
[06:55:42] Ox0dea: craysiii: I'm going to do this last one with my hands tied behind my back. ^_^
[06:55:46] juanpablo_: has joined #ruby
[06:55:50] Aeyrix: I can't believe I've done this
[06:55:52] Aeyrix: my head hurts
[06:55:53] sevenseacat: now you've definitely lost
[06:55:58] Aeyrix: coffee was a mistake
[06:56:04] duncannz: has joined #ruby
[06:56:32] Rubie: has joined #ruby
[06:56:47] Ox0dea: > I can't believe I've done this
[06:56:55] craysiii: fat fingers right now
[06:57:13] craysiii: 81%, said screw it
[06:57:14] Aeyrix: Ox0dea: https://www.youtube.com/watch?v=wKbU8B-QVZk
[06:57:32] Ox0dea: Aeyrix: I was, of course, cognizant of the reference.
[06:57:42] Aeyrix: I need that in my GECOS.
[06:57:44] craysiii: i havent seen it before :p
[06:57:50] Ox0dea: I done been ridin' this here Superhighway many years now.
[06:57:54] Aeyrix: craysiii: It's my favourite youtube clip of all time.
[06:58:22] craysiii: i think my most favorite is that of supa hot fire.
[06:58:28] Aeyrix: I'm not a rapper.
[06:58:48] craysiii: glasses. jacket. shirt. call me glassesjacketshirt man
[06:58:49] Ox0dea: s/^/But /
[06:59:43] Ox0dea: Do you remember where you were the first time you saw Dancing Baby?
[06:59:53] craysiii: yes actually.
[07:00:18] Aeyrix: Debit cards
[07:00:19] Aeyrix: I swipe that.
[07:01:16] ta: has joined #ruby
[07:01:33] qiukun: has joined #ruby
[07:01:40] craysiii: look, boom, bam, boop, bada bop, boom, POW
[07:01:58] [k-: https://youtu.be/zrWoG8IckyE
[07:01:58] Aeyrix: [ cheering intensifies ]
[07:02:06] tubuliferous_: has joined #ruby
[07:02:12] workmad3: has joined #ruby
[07:02:39] shibly: has joined #ruby
[07:02:44] lkba_: has joined #ruby
[07:02:56] tagrudev: has joined #ruby
[07:02:56] shibly: has left #ruby: ()
[07:03:00] shibly: has joined #ruby
[07:03:41] shibly: has left #ruby: ()
[07:04:15] AndChat-43764: has joined #ruby
[07:04:39] schaerli: has joined #ruby
[07:04:40] felixrsmith: has joined #ruby
[07:04:58] Oog: has joined #ruby
[07:05:02] cats: has joined #ruby
[07:05:34] craysiii: sweet dolla tea from McDonalds. i drink that
[07:05:46] safeforge: has joined #ruby
[07:06:42] matchaw: has joined #ruby
[07:08:51] [k-: no one laughed :(
[07:09:06] [k-: it's my favorite YouTube video
[07:09:10] Aeyrix: I'm trying to work out the logistics of dollar tea.
[07:09:24] craysiii: you're thinking too hard
[07:09:35] leesharma: has joined #ruby
[07:09:37] craysiii: sugar + water = dollar tea
[07:09:46] qiukun: has joined #ruby
[07:09:48] Aeyrix: ... no tea?
[07:09:56] craysiii: no no no. gotta maximize profits
[07:09:57] Ox0dea: sepp2k: Do you remember doing free QA on a gift horse?
[07:12:05] eGGsha: has joined #ruby
[07:15:00] astrobunny: has joined #ruby
[07:15:14] sharpmachine: has joined #ruby
[07:17:50] Juanchito: has joined #ruby
[07:18:51] aevitas: has joined #ruby
[07:19:20] Stan: has joined #ruby
[07:20:29] bigmac_: has joined #ruby
[07:21:27] decaff: has joined #ruby
[07:21:53] lsmola: has joined #ruby
[07:23:22] kannan4k: folks, I am learning Ruby, what does that mean in Ruby? @@_repos ||= []
[07:24:06] Rollabunna: has joined #ruby
[07:24:55] kannan4k: ^ I am from Python background, what deos that '@@' mean in ruby and why is '||' is used?
[07:25:05] allomov: has joined #ruby
[07:25:14] al2o3-cr: kannan4k: assigns an array to a class variable if nil
[07:25:54] vondruch: has joined #ruby
[07:26:06] [k-: you might want to look up class variables first
[07:26:07] kannan4k: al2o3-cr: '||' checks for nil?
[07:26:44] ksjdflsjldf: has joined #ruby
[07:26:57] al2o3-cr: ||= equates to foo || foo = bar
[07:27:10] [k-: || is a boolean operator
[07:27:15] omegamike: has joined #ruby
[07:27:47] [k-: nil is a falsey value
[07:27:58] [k-: ruby has short-circuiting
[07:28:00] kannan4k: [k-|, al2o3-cr: here is the class https://gist.github.com/kannan4k/62c0e455f83ba6016eaf
[07:28:14] [k-: so if the LHS is falsey, the RHS is ran
[07:28:30] [k-: if the LHS is truthy, the RHS is not ran
[07:28:49] [k-: and the RHS happens to be = []
[07:29:13] [k-: as all class variables are nil by default,
[07:29:30] [k-: when you run ||=[] the first time
[07:29:48] [k-: it evaluates to nil || = []
[07:30:01] [k-: since nil is falsey, RHS is evaluated
[07:30:16] [k-: so it becomes @@class_var = []
[07:30:29] ksjdflsjldf: has joined #ruby
[07:30:31] [k-: [] is a truthy value
[07:30:36] [k-: so if you run it again
[07:31:02] [k-: @@class_var ||= [] becomes truthy ||= []
[07:31:10] [k-: and the RHS is not ran
[07:31:27] [k-: so @@class_var isnt 'reset' to an empty array
[07:31:27] kannan4k: great, thanks [k-|, got you
[07:31:33] vdamewood: has joined #ruby
[07:31:38] DaniG2k: has joined #ruby
[07:31:48] [k-: you are welcome
[07:34:08] darithorn: has joined #ruby
[07:34:11] al2o3-cr: >> class Foo; @@foo = false; @@bar = 1; def self.test; @@foo ||= :changed; @@bar ||= 2; [@@foo, @@bar] end end
[07:34:12] ruboto: al2o3-cr # => :test (https://eval.in/406519)
[07:34:22] al2o3-cr: >> class Foo; @@foo = false; @@bar = 1; def self.test; @@foo ||= :changed; @@bar ||= 2; [@@foo, @@bar] end end; Foo.test
[07:34:23] ruboto: al2o3-cr # => [:changed, 1] (https://eval.in/406520)
[07:35:43] Ox0dea: >> @foo &&= @foo ||= 1
[07:35:44] ruboto: Ox0dea # => nil (https://eval.in/406521)
[07:36:04] [k-: &&= is ugly
[07:36:12] al2o3-cr: ?symbolhound
[07:36:13] ruboto: I don't know anything about symbolhound
[07:36:13] Ox0dea: Very noisy.
[07:36:34] Ox0dea: [k-: I trust you like <<= and >>=, though.
[07:36:36] haxrbyte: has joined #ruby
[07:36:56] krandi: has joined #ruby
[07:37:58] allomov: has joined #ruby
[07:38:33] icharlie: has joined #ruby
[07:38:56] [k-: referring to haskell?
[07:38:57] atmosx: has joined #ruby
[07:39:08] [k-: i think its =<< instead, though
[07:39:24] leesharma: has joined #ruby
[07:39:31] Muhannad: has joined #ruby
[07:39:51] [k-: yes it is: http://hackage.haskell.org/package/base-
[07:40:18] que__: has joined #ruby
[07:40:40] [k-: i do like >>=
[07:40:42] al2o3-cr: >> x = 256; x <<= 24
[07:40:43] ruboto: al2o3-cr # => 4294967296 (https://eval.in/406522)
[07:40:43] andikr: has joined #ruby
[07:40:50] Ox0dea: [k-: =<< = flip >>=
[07:40:56] Ox0dea: Which is beautiful.
[07:41:05] ruboto: craysiii # => 4 (https://eval.in/406523)
[07:41:14] que__: can someone explain me here. where does sending the responde for request happens ? ( it is an input module and it should send respond. ) https://gist.github.com/quejinho1988/5692f2202bbca1b056ad
[07:41:17] craysiii: thats useful
[07:41:48] shevy: Aeyrix I usually keep a todo list for side projects, and look for implementations that are simple, like 30 minutes to 3 hours or so as a range
[07:41:57] que__: i see line 101 and i dont understand what it does .
[07:42:12] apeiros: que__: is that a github bug again or does your code seriously have no indents at all?
[07:42:27] [k-: que__ that is understandable
[07:42:29] apeiros: ok, raw reveals no indents
[07:42:34] apeiros: no way I'm reading that.
[07:42:37] que__: aspiers: unfortunetly it is gist. https://github.com/logstash-plugins/logstash-input-http/blob/master/lib/logstash/inputs/http.rb
[07:42:45] que__: here is better looking and more readable .
[07:42:47] yokel: has joined #ruby
[07:42:47] [k-: i see the code and i dont understand what it does
[07:43:20] Ox0dea: >> def sum s; s.bytes.reduce(:+) - 96 * s.size end; [sum('setups'), sum('teardown')]
[07:43:21] ruboto: Ox0dea # => [100, 100] (https://eval.in/406524)
[07:43:22] que__: [k-: i gave the new link. that looks like a code now
[07:43:47] [k-: hold on there: username == @user && password == @password.value
[07:43:48] craysiii: Ox what kind of witchcraft are you conjuring
[07:44:01] [k-: who writes such code
[07:44:02] apeiros: que__: so you don't understand `@codecs[content_type] = LogStash::Plugin.lookup("codec", codec).new`?
[07:44:22] Ox0dea: craysiii: I just like that "setups" and "teardown" are both dollar words.
[07:44:30] einarj: has joined #ruby
[07:45:02] que__: apeiros: not really. i just write scripts ( simple ones ) this is like abstraction.
[07:45:09] que__: that is why i risk and ask here
[07:45:33] benlovell: has joined #ruby
[07:45:42] apeiros: okay, I'm not sure if that was a "yes, that's the line I have troubles with" or not
[07:45:56] craysiii: i admit it took me a minute to realize exactly what it did. thats cool though
[07:46:11] f4cl3y: has joined #ruby
[07:46:48] que__: apeiros: sorry. Issue is more complex. i try to make work nxlog with logstash over http protocol. since nxlog is screaming about "ERROR unexpected data from server" i try to figure out where does the logstash input sends respond request.
[07:47:18] apeiros: *sob*, ok. sorry, but this looks like it would be a neverending quest to figure out what you're asking. I'm out.
[07:47:38] `Nibble: has joined #ruby
[07:47:51] que__: i explained. question is. does someone see in the code where does this module send respond for request
[07:48:07] haxrbyte_: has joined #ruby
[07:49:01] chinmay_dd: has joined #ruby
[07:49:44] dgutierrez1287: has joined #ruby
[07:49:58] que__: or if it is still not clear. can someone explain me what does line 101 do
[07:50:13] Guest32: has joined #ruby
[07:51:30] luckyno7: has joined #ruby
[07:51:39] ljarvis: que__: line 132 runs the proc defined on line 109
[07:52:12] ljarvis: (of the formatted code, not that re-pasted code)
[07:53:30] que__: ljarvis: any comment on that 119 line ?
[07:53:31] Omni_: has joined #ruby
[07:54:20] ljarvis: que__: yes, it's an array of objects being returned to signify a successful response (200 OK)
[07:54:43] que__: returned by rescue => e ?
[07:54:47] ljarvis: see the rack documentation
[07:54:52] ljarvis: that's not line 119 is it
[07:55:06] ljarvis: 119: ['200', RESPONSE_HEADERS, ['ok']]
[07:55:21] que__: by how does it is sended ? i see an array
[07:55:30] ejnahc: has joined #ruby
[07:55:37] ljarvis: that's the return value of the proc
[07:56:11] ljarvis: the proc is then used on line 132: run(p)
[07:56:40] que__: ljarvis: hmmm so if i understood correctly. it will run ( the 119 ) only if i do the run on line 132 ( which requires authentication ) ?
[07:56:43] ljarvis: this run method is basically just a rack app
[07:57:18] ljarvis: que__: correct, the proc defined on 109 and all of its contents do nothing on their own
[07:57:44] andikr: has joined #ruby
[07:57:51] ljarvis: also, that does *not* require authentication, at least in that code it's optional
[07:57:59] que__: ljarvis: that helped a lot
[07:58:06] que__: thank You very much
[07:58:12] ljarvis: no problem
[07:58:44] armyriad: has joined #ruby
[08:02:34] andikr: has joined #ruby
[08:03:47] arquebus: has joined #ruby
[08:03:51] glennt: has joined #ruby
[08:04:24] cats: has joined #ruby
[08:05:04] hololeap: has joined #ruby
[08:06:37] schaerli: has joined #ruby
[08:08:33] Oog: has joined #ruby
[08:09:22] michael_mbp: has joined #ruby
[08:11:50] c0m0: has joined #ruby
[08:11:55] certainty: has joined #ruby
[08:11:59] kraljev11: has joined #ruby
[08:14:55] eGGsha: has joined #ruby
[08:15:53] sharpmachine: has joined #ruby
[08:16:09] solars: has joined #ruby
[08:17:30] joonty: has joined #ruby
[08:17:56] banister: has joined #ruby
[08:18:38] Rollabunna: has joined #ruby
[08:19:03] rdark: has joined #ruby
[08:22:43] christiandsg: has joined #ruby
[08:24:13] fabrice31: has joined #ruby
[08:24:59] bumbar_: has joined #ruby
[08:24:59] bumbar_: has joined #ruby
[08:27:55] MrSamuel: has joined #ruby
[08:29:38] yardenbar: has joined #ruby
[08:30:31] DaniG2k: has joined #ruby
[08:32:01] aleshgo: has joined #ruby
[08:33:04] axl_: has joined #ruby
[08:33:08] walteriz_: has joined #ruby
[08:36:17] livathinos: has joined #ruby
[08:40:16] yie_: has joined #ruby
[08:40:33] eGGsha: has joined #ruby
[08:41:17] qiukun: has joined #ruby
[08:44:26] white_bear: has joined #ruby
[08:44:31] juanpablo_: has joined #ruby
[08:44:49] Hellojere: has joined #ruby
[08:46:09] Zai00: has joined #ruby
[08:46:26] marr: has joined #ruby
[08:49:07] fabrice31_: has joined #ruby
[08:50:15] tubuliferous_: has joined #ruby
[08:50:53] workmad3: has joined #ruby
[08:50:53] kraljev11: has joined #ruby
[08:51:35] antgel: has joined #ruby
[08:52:33] yfeldblum: has joined #ruby
[08:53:10] safeforge: has joined #ruby
[08:54:45] ruurd: has joined #ruby
[08:55:21] yorickpeterse: morning children
[08:55:41] ruurd: morning headmaster
[08:55:52] adaedra: we're not all childrens
[08:56:10] apeiros: adaedra: you're certainly the child of somebody :-p
[08:57:20] adaedra: you don't know me
[08:58:03] ledestin: has joined #ruby
[08:58:12] professor_soap: has joined #ruby
[08:59:48] [k-: you don't know me; you don't know me; you don't know me; you don't know me; so shut up boy; shut up boy; shut up boy; shut up, shut up!
[09:00:00] chenillen: has joined #ruby
[09:00:01] Philipp__: has joined #ruby
[09:00:06] araujo: has joined #ruby
[09:00:24] GriffinHeart: has joined #ruby
[09:00:38] Oog: has joined #ruby
[09:00:55] quimrstorres: has joined #ruby
[09:01:27] sameerynho: has joined #ruby
[09:01:57] BeatzKilla: has joined #ruby
[09:02:09] white_bear: has joined #ruby
[09:04:33] quimrstorres: has joined #ruby
[09:07:22] yorickpeterse: now for an exciting day of writing blog posts/documentation
[09:08:32] anisha: has joined #ruby
[09:10:16] decaff: has joined #ruby
[09:10:39] lkba: has joined #ruby
[09:11:17] wpp: has joined #ruby
[09:11:39] vasilakisFiL: has joined #ruby
[09:11:51] vasilakisFiL: let's say that I have a method that does some very hard work
[09:12:02] vasilakisFiL: and I want it to return if the "hard work" exceeds 5 sec
[09:12:06] vasilakisFiL: how should I do that ?
[09:12:40] Rollabunna: has joined #ruby
[09:12:52] yorickpeterse: You use a loop and on every iteration check if the current time exceeds 5 seconds
[09:13:00] yorickpeterse: There's also the Timeout module but it has many issues
[09:13:05] yorickpeterse: namely it not being reliable
[09:13:33] yorickpeterse: http://www.mikeperham.com/2015/05/08/timeout-rubys-most-dangerous-api/
[09:13:36] professor_soap: vasilakisfil: one suggestion could be to save Time.now before the hard work starts and then Time.now when it stops and calculate the diff. No..?
[09:13:40] apeiros: there are ways to make it less problematic by now
[09:13:50] apeiros: but it's unexpectedly difficult to do something which seems so simple
[09:14:20] apeiros: if you can, do what mperham suggests in the linked article
[09:14:33] bronson: has joined #ruby
[09:14:45] Igorshp: has joined #ruby
[09:15:14] omegamike: has joined #ruby
[09:15:32] apeiros: if you can't, use Timeout and make sure to check out Thread::handle_interrupt
[09:15:48] surs: has joined #ruby
[09:15:59] vasilakisFiL: professor_soap I need to return just in 5 sec, not wait until "hard work" finishes because it might take more
[09:16:00] surs: has joined #ruby
[09:16:19] ljarvis: vasilakisfil: what is "the hard work" ?
[09:16:25] ljarvis: DB interaction? network stuff?
[09:16:30] apeiros: ah, right - vasilakisfil do you still have to finish the hard work in the background?
[09:16:37] apeiros: i.e. you return, but work is still being processed?
[09:16:41] sharpmachine: has joined #ruby
[09:16:48] TvL2386: has joined #ruby
[09:16:54] apeiros: (that'd be less problematic to implement)
[09:17:58] rbowlby: has joined #ruby
[09:17:59] vasilakisFiL: hmm a worker could be a could idea in my case.. I am trying to implement the Prefer Header with the "wait" preference in a rack api app
[09:18:11] eGGsha: has joined #ruby
[09:18:13] vasilakisFiL: http://tools.ietf.org/html/rfc7240#section-4.3
[09:19:28] M-_mis: has joined #ruby
[09:19:32] yorickpeterse: You'll probably have to use Timeout for that since you can't really control what happens in a request (thus you can't use something like select())
[09:19:41] yorickpeterse: along with dealing with all possible problems
[09:19:59] yorickpeterse: Since Timeout spawns a thread for every call to Timeout.timeout this might be a problem if you intend to handle a lot of concurrent requests
[09:20:07] vasilakisFiL: or I could delegate everyting in a worker and if worker takes longer time return a 202
[09:20:08] apeiros: sounds like what I asked above
[09:20:18] apeiros: you respond, but work is still finished and asynchronously delivered
[09:20:31] apeiros: so what you can do for this is have a queue with a timeout
[09:20:35] yorickpeterse: apeiros: that's one option, but it doesn't really prevent the work from not running for more than 5 seconds
[09:20:43] yorickpeterse: granted I'd argue that this is something a client should handle
[09:20:45] leafybasil: has joined #ruby
[09:20:52] yorickpeterse: e.g. the client itself should determine when something is taking too long
[09:20:53] apeiros: yorickpeterse: but as far as I understood, the work should be completed
[09:20:56] apeiros: even if it takes more than 5s
[09:21:01] vasilakisFiL: in my case yes
[09:21:03] apeiros: it's just that the response must happen after 5s
[09:21:15] apeiros: and that's a lot easier than having to interrupt work
[09:21:24] yorickpeterse: Then you'll need to delegate the work to a thread (pool) and poll it from the outside
[09:21:49] apeiros: damn, wasn't there a pop method on Queue which allowed for a timeout? o0
[09:22:37] yorickpeterse: No, it will raise an exception or not
[09:22:41] yorickpeterse: which is...stupid
[09:22:42] apeiros: ah well, polling pop(true), but that sucks.
[09:23:04] yorickpeterse: https://github.com/ruby-concurrency/concurrent-ruby might have something for it
[09:23:07] apeiros: oh, or abuse a pipe
[09:23:15] apeiros: IO.select takes a timeout
[09:23:25] TheHodge: has joined #ruby
[09:23:27] apeiros: and you could read the response directly from the pipe
[09:23:58] leafybas_: has joined #ruby
[09:24:25] apeiros: i.e., r,w = IO.pipe; Thread.new do work_hard(w) end; readable = IO.select([r], nil, nil, 5); if readable ???
[09:24:27] svdb64: has joined #ruby
[09:27:17] shpoont: has joined #ruby
[09:27:41] dfockler: has joined #ruby
[09:28:13] duncannz: has joined #ruby
[09:29:04] shpoont: has joined #ruby
[09:30:17] postmodern: has joined #ruby
[09:31:10] symm-: has joined #ruby
[09:31:34] Soda: has joined #ruby
[09:33:00] xcesariox: has joined #ruby
[09:35:08] araujo: has joined #ruby
[09:35:39] texasmade: has joined #ruby
[09:35:42] Ropeney: has joined #ruby
[09:36:50] walterizfie: has joined #ruby
[09:38:46] lxsameer_: has joined #ruby
[09:41:04] yfeldblum: has joined #ruby
[09:41:58] sameerynho: has joined #ruby
[09:42:16] allcentury: has joined #ruby
[09:44:16] nofxx: has joined #ruby
[09:44:58] Karpah: has joined #ruby
[09:45:04] dgutierrez1287: has joined #ruby
[09:45:54] riffraff: has joined #ruby
[09:46:00] troulouliou_div2: has joined #ruby
[09:46:18] M-_mis: (Serry, I know you're working and it's mis-topic, but figuring _why #cplusequality exists ???vet yet det I??? stil need hash a sewmantic rubyx ver, i! quess.. hhmmff, ici is howme imf sae hio. =?????? =)) Nowme dback 2oO reading and or er letting ui focus. xx (<3 )) ) (???)
[09:47:10] Karpah: !mute M-_mis
[09:47:10] ruboto: +q M-_mis!*@*
[09:47:10] ruboto: -o ruboto
[09:47:12] Karpah: quiet, you.
[09:47:54] adaedra: what was that
[09:48:00] apeiros: wtf was that? o0
[09:48:29] lkba_: has joined #ruby
[09:48:46] xkickflip: has joined #ruby
[09:49:13] ljarvis: went from English to lolwat real quick
[09:50:02] apeiros: ApplicationController.public_instance_methods.size # => 967
[09:50:08] apeiros: AAAAAAAAAAAAH!
[09:50:11] apeiros: ACTION runs away crying
[09:50:18] apeiros: also, lunch time???
[09:50:23] adaedra: ACTION gives apeiros a shotgun
[09:50:28] adaedra: go find who's responsible
[09:50:32] apeiros: fire. you have to kill it with fire.
[09:50:37] ruurd: has joined #ruby
[09:50:49] Zai00: has joined #ruby
[09:50:53] adaedra: ACTION takes the shotgun back and gives apeiros a flamethrower
[09:50:53] apeiros: why the F are they all public? it makes *zero* sense those are all public
[09:51:02] apeiros: ignoring the sheer amount for now???
[09:51:09] apeiros: adaedra: much thanks
[09:51:23] adaedra: it's called "come back"
[09:51:24] apeiros: ACTION back in ~30
[09:52:03] Oog: has joined #ruby
[09:52:05] astrobunny: has joined #ruby
[09:53:30] GriffinHeart: has joined #ruby
[09:53:49] arup_r: has joined #ruby
[09:54:53] platosha: has joined #ruby
[09:55:08] leesharma: has joined #ruby
[09:59:08] wenshan: has joined #ruby
[09:59:49] prosodyContext: has left #ruby: ()
[09:59:58] prosodyContext: has joined #ruby
[10:00:36] wenshan: hi, could someone give me a hand on writing specs? I'd like to test a ruby script which receives some input from either stdin or a file (with `ARGF.each`) and output the result to stdout. What's the conventional way of testing this kind of scripts? How would you stub stdin?
[10:01:26] Joost`: has joined #ruby
[10:01:39] Oog: has joined #ruby
[10:01:53] Joost`: I'm trying to build a project that uses ruby.. I've learned that I need rbenv to manage my ruby versions, but now I cannot seem to build it because version 2.0.0 is not in rbenv
[10:02:04] lxsameer_: has joined #ruby
[10:02:06] Joost`: there is 2.0.0-p645 in there, as well as 2.0.0-p0, but neither work
[10:02:46] j416: there are many ways; you don't _need_ any, they just make life easier
[10:02:51] lessless: has joined #ruby
[10:02:51] Joost`: the .ruby-version file indicates 2.0.0, and I get "rbenv: version `2.0.0' is not installed" when I'm on 2.0.0-p645
[10:03:00] j416: rvm, rbenv, chruby..
[10:03:08] Joost`: live's not really getting easier so far :P
[10:03:25] j416: I don't know rbenv so can't help
[10:03:36] j416: rubu --version says?
[10:03:48] dseitz: has joined #ruby
[10:03:50] j416: sorry phone kbd
[10:03:58] safeforge: has joined #ruby
[10:04:02] Joost`: ruby 2.0.0p645
[10:04:05] sameerynho: has joined #ruby
[10:04:15] Joost`: (except when I'm in the dir with the .ruby-version, then it errors out, of course)
[10:04:22] j416: should satisfy 2.0.0
[10:04:37] j416: I suppose
[10:04:50] prosodyContext: has left #ruby: ()
[10:04:51] Joost`: so.. switch to rvm while I'm still new?
[10:05:03] aevitas: has joined #ruby
[10:05:05] j416: rvm will likely give you
[10:05:09] j416: more headache
[10:05:26] j416: I prefer chruby, rbenv might be good
[10:05:30] leat: has joined #ruby
[10:05:33] Joost`: "There should be one-- and preferably only one --obvious way to do it."
[10:05:39] eGGsha: has joined #ruby
[10:05:43] shock_one: has joined #ruby
[10:05:49] ruurd: rvm is da bomb
[10:06:06] dumdedum: has joined #ruby
[10:06:49] adaedra: in sense it explodes everything and leaves just ruins?
[10:06:51] spider-mario: has joined #ruby
[10:06:55] sdothum: has joined #ruby
[10:07:01] Rollabunna: has joined #ruby
[10:07:08] prosodyContext: has joined #ruby
[10:07:25] ruurd: if necessary.... :-0
[10:07:33] riffraff: has joined #ruby
[10:08:00] arturmartins: has joined #ruby
[10:08:02] ruurd: I've got good experiences with it on OSX
[10:08:06] ruurd: And Linux BTW
[10:08:25] ruurd: On a Windows platform I would not even begin to use Ruby really...
[10:08:28] walteriz_: has joined #ruby
[10:08:44] lxsameer_: has joined #ruby
[10:09:57] Ropeney: has joined #ruby
[10:10:45] workmad3: has joined #ruby
[10:11:28] christiandsg: has joined #ruby
[10:11:33] Vile`: has joined #ruby
[10:13:07] Joost`: ruurd: on a windows platform.. the only sane move is to not be on a windows platform I guess
[10:15:11] r_rios: has joined #ruby
[10:16:39] rrios: has joined #ruby
[10:16:50] acke_: has joined #ruby
[10:17:08] haxrbyte: has joined #ruby
[10:17:25] sharpmachine: has joined #ruby
[10:17:38] ljarvis: 06:05 < ruurd> rvm is da bomb
[10:17:38] ljarvis: 06:06 < adaedra> in sense it explodes everything and leaves just ruins?
[10:18:15] usershell: has joined #ruby
[10:18:23] ruurd: Joost` jup
[10:18:37] Joost`: in any case, I'm still stuck on a pickle :/
[10:18:52] neektza_: has joined #ruby
[10:19:00] atmosx: has joined #ruby
[10:19:09] khebbie: has joined #ruby
[10:19:14] eregon_: has joined #ruby
[10:19:29] rflot_: has joined #ruby
[10:19:30] Joost`: perhaps I should post it on SO.. there have been similar questions though, but none of the accepted answers apply
[10:19:31] j416: read up on rbenv and chruby
[10:19:40] Joost`: which is why I'm hesitant
[10:19:41] khebbie_: has joined #ruby
[10:19:44] kalleth_: has joined #ruby
[10:19:50] _whitelogger___: has joined #ruby
[10:19:53] ss_much_: has joined #ruby
[10:19:54] tobyx_: has joined #ruby
[10:20:06] rrios: Hello. I running into this error when I try to use FileUtils.mv from Windows (Ruby 2.1.0): https://gist.github.com/romariorios/5ca79df28c419cb54a88
[10:20:09] {756d6f}: has joined #ruby
[10:20:12] calleerlandsson_: has joined #ruby
[10:20:12] heftig_: has joined #ruby
[10:20:13] sevenseacat: sounds like a good way to get your question closed, unless you clearly explain why none of the accepted answers apply'
[10:20:15] rrios: Even though the directory is there
[10:20:17] vinleod: has joined #ruby
[10:20:19] sevenseacat: (and one of the answers probably does apply)
[10:20:31] stamina: has joined #ruby
[10:20:51] ruurd: Joost` what platform are you on?
[10:21:03] Joost`: OSX 10.10
[10:21:12] sevenseacat: and the problem is?
[10:21:18] kannan4k: this line, @@_accessors[name].push name: fname.to_sym, type: type
[10:21:36] adaedra: what about it
[10:21:44] ruurd: Use RVM - I use it. It works
[10:21:46] kannan4k: what this line does? push a hash into a array?
[10:21:48] r__rios: has joined #ruby
[10:21:50] omegahm|BNC: has joined #ruby
[10:21:51] ejnahc_: has joined #ruby
[10:21:54] scpike_: has joined #ruby
[10:22:01] Joost`: sevenseacat: I'm trying to run a project that has 2.0.0 in its .ruby-version file, but rbenv does not seem to have that (2.0.0-p645 does not match), and returns rbenv: version `2.0.0' is not installed
[10:22:01] sevenseacat: need more context.
[10:22:03] Bish: https://github.com/webmachine/webmachine-ruby/blob/master/documentation/examples.md#post-to-create-a-new-resource-in-a-collection can you guys tell me, why it forces me to have the create_path, since it's not even used :/
[10:22:04] adaedra: ACTION gives ruurd "BEST ARGUMENT EVAR" award
[10:22:10] ruurd: Install Xcode, install brew,
[10:22:12] tabakhase__: has joined #ruby
[10:22:16] haxrbyte: has joined #ruby
[10:22:31] ruurd: Install RVM
[10:22:36] ruurd: Install the rubies you want
[10:22:36] sevenseacat: Joost`: either create a symlink from 2.0.0-pwhatever to 2.0.0, or just update the .ruby-version file
[10:22:40] kannan4k: sevenseacat: i am trying to understand what it does
[10:22:41] tagrudev: has joined #ruby
[10:22:44] mgorbach: has joined #ruby
[10:22:47] sevenseacat: kannan4k: need more context.
[10:22:56] xkickflip: has joined #ruby
[10:22:57] r_rios: has joined #ruby
[10:22:57] adaedra: kannan4k: what part you don't understand?
[10:23:02] [k-: i think i used brew to get me a new ruby
[10:23:04] ruurd: Create a gemset for your project
[10:23:08] noethics: has joined #ruby
[10:23:17] sevenseacat: welcome to 2010?
[10:23:21] Joost`: sevenseacat: I tried updating the .ruby-version file, but then I' run into "Your Ruby version is 2.0.0, but your Gemfile specified 2.0.0-p645"
[10:23:29] keen__________32: has joined #ruby
[10:23:40] sevenseacat: Joost`: you cant have different versions specified in the Gemfile and the .ruby-version file
[10:23:43] adaedra: chruby > *
[10:23:52] michael_mbp: has joined #ruby
[10:23:53] pocketprotector: has joined #ruby
[10:23:54] Joost`: sevenseacat: but my ruby version is not 2.0.0
[10:23:57] j416: adaedra +1
[10:23:58] kannan4k: adaedra, sevenseacat: last 2 arguments and push: push name: fname.to_sym, type: type
[10:24:02] ruurd: Why would you use the patchlevel in the ruby spec in a Gemfile?
[10:24:06] Joost`: sevenseacat: ruby --version gives me ruby 2.0.0p645
[10:24:20] sevenseacat: gist what you've got, because it doesnt make sense
[10:24:22] alem0lars: has joined #ruby
[10:24:28] sevenseacat: "but my ruby version is not 2.0.0"
[10:24:54] adaedra: kannan4k: is it better if I write `push({name: fname.to_sym, type: type})`?
[10:25:04] lele: has joined #ruby
[10:25:10] Joost`: sevenseacat: basically I'm trying to build https://github.com/github/choosealicense.com to learn about how they're using jekyll
[10:25:35] kannan4k: adaedra: https://gist.github.com/kannan4k/62c0e455f83ba6016eaf
[10:25:50] Joost`: their Gemfile reads from .ruby-version
[10:25:51] apfeluser: has joined #ruby
[10:26:02] Joost`: so when I include 2.0.0p645 in the .ruby-version, it propagates to the gemfile
[10:26:08] adaedra: kannan4k: yeah and
[10:26:25] Joost`: but when I do keep the .ruby-version on 2.0.0, rbenv complains that that's unequal to the 2.0.0p645 it has installed
[10:26:37] quimrstorres: has joined #ruby
[10:26:41] silverdust: has joined #ruby
[10:26:44] ruurd: Why specify the patch level?
[10:26:52] kannan4k: adaedra: is that trying to add a hash of {name:type} to the array @@_accessor?
[10:27:00] ruurd: Hah. What's in Gemfile.lock?
[10:27:03] adaedra: of all the arguments, kannan4k
[10:27:09] postmodern: Joost`, rbenv requires the fully qualified version for some reason, idk
[10:27:19] Joost`: ruurd: I didn't choose the patch level, the patch level choose me
[10:27:20] sevenseacat: ok, so nothing anywhere specifies 2.0.0p645 or whatever
[10:27:20] ruurd: rvm does not.
[10:27:22] x3cion: has joined #ruby
[10:27:23] postmodern: Joost`, what you should do is symlink 2.0.0 -> 2.0.0-p645
[10:27:30] postmodern: ruurd, nor does chruby :)
[10:27:32] sevenseacat: i suggested that already
[10:27:34] Joost`: sevenseacat: indeed, except rbenv's lack of 2.0.0
[10:27:52] Joost`: I'll give that a shot then.. where does this symlink go?
[10:27:59] Joost`: it seems weird to have to patch rbenv like that for a major version
[10:27:59] postmodern: Joost`, https://github.com/sstephenson/rbenv/issues/126#issuecomment-2442664
[10:28:04] ndrei: has joined #ruby
[10:28:08] adaedra: ruurd: what if I tell you the issue is not related to not using rvm
[10:28:39] postmodern: Joost`, me too, 2.0.0-pXXX shouldn't be any different from 2.0.0-pYYY
[10:28:50] sevenseacat: yeah well, rbenv can go jump.
[10:29:04] Joost`: so what do you recommend? rvm? chruby?
[10:29:08] Joost`: I get mixed messages :/
[10:29:09] pawz: has joined #ruby
[10:29:36] ruurd: rvm rvm rvm rvm
[10:29:44] schaerli_: has joined #ruby
[10:29:46] apfeluser: has joined #ruby
[10:29:53] ruurd: Joost` the rest of the people here are biased
[10:30:25] ruurd: sevenseacat hook line sinker
[10:30:27] adaedra: if this weren't an IRC channel, I'd ask to raise hands
[10:30:36] ruurd: <raises hands/
[10:30:39] postmodern: Joost`, you can do the symlink trick to just get rbenv working for now
[10:30:39] Joost`: the symlink worked, thanks :)
[10:30:42] radgeRayden: has joined #ruby
[10:30:46] Joost`: postmodern: yeah, my thoughts exactly
[10:30:49] yfeldblum: has joined #ruby
[10:30:58] einarj: has joined #ruby
[10:31:26] ruurd: O goody what an excellent solution - create a symlink. Now update your ruby BLAM project does not work anymore \0/ \0/
[10:31:28] adaedra: chruby > rbenv > * > hell > rvm
[10:31:53] ruurd: adaedra I can't help you being a klutz...
[10:31:58] sevenseacat: ruurd: I'm asking you nicely to stop trolling.
[10:32:16] Joost`: ruurd: I do not disagree with that, but it works now
[10:32:33] CloCkWeRX: has joined #ruby
[10:32:34] Joost`: and by the looks of it, I'm not getting too deep into ruby development, so that's fine for me
[10:32:44] Rubie: has joined #ruby
[10:33:15] juanpablo_: has joined #ruby
[10:33:20] ruurd: Joost` chruby or rvm is a matter of taste. I don't think they really differ that much. I chose rvm and it suits me fine. No extreme difficulties to speak of really.
[10:33:36] sevenseacat: they differ in very major and fundamental ways
[10:34:00] sevenseacat: I've used both.
[10:34:17] Joost`: what I don't get is why it's even necessary to finetune ruby versions to such precise releases
[10:34:22] ljarvis: yeah they differ a lot. I'm a huge fan of chruby
[10:34:24] Joost`: are they really that different?
[10:34:52] elaptics: depends on how you're looking at it
[10:34:54] ljarvis: Joost`: they're different enough to require releases
[10:35:06] [k-: i used rvm at first
[10:35:13] sevenseacat: it wouldnt be necessary, it's a bug in rbenv.
[10:35:17] sevenseacat: as was shown.
[10:35:22] [k-: not sure what happened to rvm anymore....
[10:35:24] Joost`: sevenseacat: that's not what I'm getting at
[10:35:30] [k-: i use rbenv now!
[10:35:45] sevenseacat: rvm went a bit off with the fairies, especially with rvm 2
[10:36:02] adaedra: it's a bloat
[10:36:44] khebbie: has joined #ruby
[10:37:15] khebbie_: has joined #ruby
[10:37:31] StAnger: has joined #ruby
[10:37:54] kannan4k: thanks adaedra
[10:38:23] tubuliferous_: has joined #ruby
[10:38:31] einarj: has joined #ruby
[10:38:58] phutchins: has joined #ruby
[10:39:10] sevenseacat: reading up on the updates to rvm2 now... my mind is boggled
[10:39:19] zeroDivisible: has joined #ruby
[10:39:19] [k-: the ruby-community does not seem to like rvm
[10:39:37] adaedra: [k-: hopefully, ruurd is here to show us the holy way.
[10:40:16] sevenseacat: there's like a dozen gems that make up rvm2
[10:40:22] StAnger: hello all, i have a question about factory_girl ( no am not using rails ). I know usually factory girl is to be used with one or other testing framework , however is it fesible/ideal to use it as a data source for classes ? like obj.find(@this_stuf) and value of @this_stuff setby factory_girl
[10:40:22] ruurd: It works for me and it keeps per project stuff squared away
[10:40:33] [k-: this is the ruby-community!
[10:41:01] StAnger: sevenseacat: thanks , any alternative to this ? other than using DB/flatfiles
[10:41:02] adaedra: ruurd: you know that "works for me" means nothing?
[10:41:25] sevenseacat: StAnger: why so against using a database for data storage?
[10:42:05] StAnger: sevenseacat: not against it but, it is relatively simple and app with 4 class so DB might be overkill
[10:42:41] sevenseacat: stick something like sequel in, done
[10:43:33] StAnger: sevenseacat: yea , might look at sqllite
[10:43:57] walterizfie: has joined #ruby
[10:44:06] nsuke: has joined #ruby
[10:44:23] StAnger: sevenseacat: thanks for the help/suggestion :)
[10:47:21] ynroot: has joined #ruby
[10:48:45] einarj: has joined #ruby
[10:49:09] ynroot: hi, having this error while installig rails https://gist.github.com/YannickNascimento/38eac31d3ed879beedba
[10:49:44] keen__________32: has joined #ruby
[10:50:14] ljarvis: ynroot: you need to install the ruby development env
[10:50:26] sevenseacat: you missed some dependencies.
[10:50:27] ljarvis: ynroot: so you have the header files which nokogiri relies on
[10:51:06] ljarvis: ynroot: probably apt-get install ruby-dev
[10:51:36] ljarvis: (if you're using apt)
[10:52:20] ynroot: im using opensuse
[10:52:23] ynroot: ruby 2.1.3p242 (2014-09-19 revision 47630) [x86_64-linux-gnu]
[10:52:45] ljarvis: ynroot: look for ruby-devel
[10:53:29] ljarvis: ynroot: please keep it in here
[10:54:24] kokoleavia: has joined #ruby
[10:54:42] sarkyniin: has joined #ruby
[10:55:55] heyimwill: has joined #ruby
[10:56:29] leesharma: has joined #ruby
[10:56:31] dorei: has joined #ruby
[10:57:57] catphish: has joined #ruby
[10:57:57] chills42: has joined #ruby
[10:58:15] catphish: was ruby changed at some point to allow you to set variables to constants in if statements?
[10:58:28] catphish: or is there some logic that decides if you are allowed to do it or not?
[10:58:43] ljarvis: ?code catphish
[10:58:44] ruboto: catphish, We can't help you without your code, please post it to https://gist.github.com
[10:59:12] decaff: has joined #ruby
[10:59:41] catphish: i recall that in that past, ruby didn't allow this, but i just did it and it works
[10:59:57] ljarvis: you did what? something without using code?
[11:00:26] apeiros: "setting variables to constants" doesn't make a whole lot of sense.
[11:01:13] Rollabunna: has joined #ruby
[11:01:22] rodfersou: has joined #ruby
[11:01:23] apeiros: what's that supposed to mean? got an example?
[11:01:31] nettoweb: has joined #ruby
[11:02:15] catphish: setting a variable to a constant, for example: a = 1
[11:02:30] apeiros: ok, nothing in that expression is a constant
[11:02:46] apeiros: and assignments in if conditions have been possible since before 1.8
[11:02:58] ynroot: ljarvis: after install ruby-devel it seems to install without error untill now
[11:03:04] catphish: i think the answer is that it generates a warning, but doesn't fail
[11:03:18] sevenseacat: how is a = 1 setting a variable to a constant??
[11:03:40] ljarvis: i just thought there was no code
[11:03:43] tobiasvl: I think he means that 1 is a constant value
[11:03:47] apeiros: ACTION assumes terminology mixup - literals vs. constants
[11:04:12] ljarvis: catphish: there's a warning if you use a literal in void context, or if you use true/false literal in a condition
[11:04:13] lessless: has joined #ruby
[11:04:17] catphish: apeiros is correct, i am using "constant" to refer to literal values
[11:04:18] astrobunny: has joined #ruby
[11:04:24] apeiros: ljarvis: there's also a warning with -w
[11:04:43] sevenseacat: thats not misleading at all >_>
[11:04:47] apeiros: catphish: don't ;-) constants and literals are not the same.
[11:05:09] catphish: apeiros: will try :)
[11:05:39] apeiros: not all literals are immutable. not all constants are immutable. not all immutables are constants. not all immutables are literals.
[11:06:40] apeiros: >> $DEBUG = true; if x = 1 then y = 2*x end
[11:06:41] ruboto: apeiros # => /tmp/execpad-b363b60d001f/source-b363b60d001f:2: warning: found = in conditional, should be == ...check link for more (https://eval.in/406671)
[11:06:45] apeiros: ljarvis: ^
[11:06:51] catphish: "not all literals are immutable" that part scares me
[11:07:07] apeiros: catphish: "hello".upcase!
[11:07:21] apeiros: also [], {}
[11:07:22] nettoweb: has joined #ruby
[11:07:31] apeiros: and all variants for array/string literals.
[11:07:49] chills42: has joined #ruby
[11:08:02] cornerma1: has joined #ruby
[11:08:27] doerteDev: has joined #ruby
[11:08:32] catphish: apeiros: what is "hello" in this scenario? surely "hello".upcase! is just creating an instance *from* the literal, then upcasing it?
[11:08:42] apeiros: "hello" is a literal
[11:08:53] catphish: yes, but that code isn't modifying the literal is it?
[11:09:02] apeiros: and .upcase! does not create a new instance, no.
[11:09:04] SuperTux88: has joined #ruby
[11:09:07] iamninja: has joined #ruby
[11:09:13] catphish: it's just creating an instance of string from the literal, then upcasing it
[11:09:33] catphish: i'm not saying upcase created an instance, i'm saying "hello" does
[11:09:57] catphish: so this does not demonstrate that the literal is mutable (imo)
[11:10:37] tobiasvl: "hello" created the instance, like you say. upcase! modifies it.
[11:10:47] tobiasvl: so that DOES demonstrate that the literal is mutable (imo)
[11:10:50] eGGsha: has joined #ruby
[11:10:50] catphish: i'm not sure what the "literal" is in this scenatio
[11:10:57] tobiasvl: if upcase! created an instance it would demonstrate the opposite
[11:11:02] tobiasvl: like upcase (without the!)
[11:11:11] sevenseacat: because we're using odd terminology
[11:11:35] tobiasvl: not as odd as calling a literal a constant ;)
[11:11:47] sevenseacat: "hello" is a string. it is a literal. it is mutable.
[11:11:48] allcentury: has joined #ruby
[11:12:01] sigurding: has joined #ruby
[11:12:10] christiandsg: has joined #ruby
[11:12:44] sevenseacat: >> "hello".tap { |s| s.upcase! }
[11:12:45] ruboto: sevenseacat # => "HELLO" (https://eval.in/406683)
[11:12:56] catphish: anyway, i think the answer to my question is that using = to assign a literal in an if statement just generates a warning
[11:12:56] sevenseacat: voila. "hello" turned into "HELLO"
[11:13:22] arup_r: has joined #ruby
[11:13:26] catphish: >> "hello".upcase!; "hello"
[11:13:27] ruboto: catphish # => "hello" (https://eval.in/406684)
[11:13:32] c355E3B: has joined #ruby
[11:13:39] sevenseacat: they're two different strings.
[11:13:47] sevenseacat: both contain the text 'hello'.
[11:14:00] Guest32: has joined #ruby
[11:14:04] sevenseacat: though the first turned into "HELLO"
[11:14:05] catphish: so what is the "literal" that you claim to have modified?
[11:14:24] sevenseacat: the only string containing "hello" that I used
[11:14:32] tobiasvl: catphish: the same one you modified, before returning a different literal
[11:14:38] workmad3: catphish: `"hello"` is a string literal... when the ruby interpreter sees that, it creates a string object with the characters h, e, l, l, o in it in that order
[11:14:46] [k-: >> x = ?h; y = x.upcase!; x
[11:14:47] ruboto: [k- # => "H" (https://eval.in/406685)
[11:15:00] catphish: workmad3: that's the definition i believe in too
[11:15:02] workmad3: catphish: the ruby interpreter creates a different string object every time it sees a string literal
[11:15:08] apeiros: catphish: re warning: as said, only with -w
[11:15:18] zeeraw: has joined #ruby
[11:15:24] catphish: apeiros: ah that explains why i don't see it normally
[11:15:26] sevenseacat: sometimes you do actually want to assign in conditionals.
[11:15:35] catphish: sevenseacat: i do what to do that :)
[11:16:36] sevenseacat: well, I'm glad it took us this long to decipher what you wanted to do.
[11:16:43] sarkyniin: has joined #ruby
[11:16:58] catphish: sevenseacat: i don't understand, my question was answered immediately
[11:17:05] nemesit|znc: has joined #ruby
[11:17:06] catphish: the rest of the discussion was academic
[11:17:09] apeiros: sevenseacat: I think catphish makes an odd distinction between the written code and the literal.
[11:17:19] soahccc: has joined #ruby
[11:17:23] phrozen77: has joined #ruby
[11:17:26] drPoggs: has joined #ruby
[11:17:26] apeiros: it probably would have to change the source-code's "hello" to "HELLO" for them to consider the literal mutable.
[11:17:28] elektronaut: has joined #ruby
[11:17:38] vasilakisFiL: how can I manage to merge this in rack? https://github.com/kollegorna/rack-prefer or is it pointless? I can add some tests ofcourse
[11:17:51] Trieste: has joined #ruby
[11:17:58] catphish: apeiros: as far as i understand, there is "written code" which is clearly immutible, and there is an instance of string, but nothing in between
[11:17:59] ljarvis: vasilakisfil: seems like a better use-case for middleware
[11:18:13] sharpmachine: has joined #ruby
[11:18:17] sevenseacat: aaargh the discussion continues
[11:18:21] sevenseacat: ACTION steps away from the computer
[11:18:29] apeiros: sevenseacat: guess why I said "??? ok"
[11:19:20] tobiasvl: catphish: well, there's symbols. symbol literals are basically string literals, but they are immutable and different instances of the same symbol point to the same string representation
[11:19:37] tobiasvl: not sure if that's what you want for something "in between" but
[11:19:39] vasilakisFiL: ljarvis I don't think so.. why middleware? you have everything in the request object
[11:19:39] apeiros: catphish: I don't intend to discuss it. you have a different understanding of what a literal is than what the consensus has. that's your choice. but don't be surprised if others have trouble understanding you if you use non-standard definitions of terminology.
[11:19:47] ndrei: has joined #ruby
[11:20:15] ljarvis: vasilakisfil: sorry I don't see how that's relevant, this entire thing is perfect for middleware
[11:20:16] catphish: apeiros: what do others think that a string literal is? the instance of string that the compiler produces?
[11:20:23] catphish: apeiros: if so, i'm entirely happy to accept that
[11:21:00] apeiros: catphish: you can't assign a piece of written code to a variable, can you?
[11:21:07] bauruine: has joined #ruby
[11:21:12] vasilakisFiL: a rack middleware would make sense if you want to record some information before calling your app and/or after
[11:21:25] vasilakisFiL: I have everything I need in rack::request object, I just add some helpers methods
[11:21:32] apeiros: oh, now I'm discussing it. mistaaake :D
[11:21:36] catphish: apeiros: i'd say you can assign 1 directly to a variable
[11:21:38] vasilakisFiL: I can't see why we need yet another middleware for that
[11:21:52] catphish: apeiros: but perhaps this is a pointless distinction
[11:21:56] apeiros: catphish: sorry. nvm. I really don't feel like discussing.
[11:22:44] sigurding_: has joined #ruby
[11:23:58] qiukun: has joined #ruby
[11:24:09] workmad3: catphish: I don't intend to go further in the discussion than this, but it may help to think of a literal as "A thing in the source code that evaluates to itself", e.g. a string literal "hello" will evaluate to a string "hello" when you type it into IRB or a script... same with numbers, hashes, arrays, etc.
[11:24:25] ljarvis: vasilakisfil: is your readme correct? you use request.wait shouldn't that be request.prefer.wait ?
[11:24:48] rrios: has joined #ruby
[11:24:54] ynroot: after install rails when im going to create a new project it says
[11:24:54] ljarvis: vasilakisfil: also, you're creating a new preferpresenter instance for every call to prefer, you should cache it
[11:24:55] ynroot: If 'rails' is not a typo you can use command-not-found to lookup the package that contains it, like this:
[11:24:57] ynroot: cnf rails
[11:26:11] catphish: workmad3: thanks, i agree with this definition entirely
[11:26:19] vasilakisFiL: yeah you are right thanks!
[11:27:02] RegulationD: has joined #ruby
[11:27:37] tmtwd: has joined #ruby
[11:27:42] Scripore: has joined #ruby
[11:27:58] krasnus: has joined #ruby
[11:28:51] ruboto: ynroot, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[11:30:07] tobyx: has joined #ruby
[11:31:01] _whitelogger___: has joined #ruby
[11:32:17] fabrice31: has joined #ruby
[11:32:55] fabrice31: has joined #ruby
[11:33:04] dgutierrez1287: has joined #ruby
[11:35:44] bruno-: has joined #ruby
[11:36:42] ldnunes: has joined #ruby
[11:37:18] symm-: has joined #ruby
[11:38:35] sigurding_: has joined #ruby
[11:38:45] dimasg: has joined #ruby
[11:40:36] sarkyniin: has joined #ruby
[11:41:32] freerobby: has joined #ruby
[11:41:50] anisha: has joined #ruby
[11:41:59] dtcristo: has joined #ruby
[11:43:14] antgel: has joined #ruby
[11:43:26] catphish: apeiros: i just realised, that warning doesn't occur if you *do* use a constant instead of a literal, so it turns out my poor terminology did ruin my question ;(
[11:44:04] catphish: interesting that it makes that distinction
[11:44:24] omegamike: has joined #ruby
[11:44:48] apeiros: it drops the warning if you have an expression instead of a literal RHS
[11:45:27] schaerli: has joined #ruby
[11:45:27] apeiros: oh, actually??? the warning with the literal also happens without -w
[11:46:10] aevitas_: has joined #ruby
[11:46:18] apeiros: seems I'm messing up ruby's flags anyway??? no wonder, barely used them the last few years :-|
[11:46:28] apeiros: -d sets $DEBUG
[11:46:49] apeiros: -w/-v set $VERBOSE
[11:49:56] IceyEC: has joined #ruby
[11:52:32] strixd: has joined #ruby
[11:52:35] ihatenigggers: has joined #ruby
[11:52:39] flughafen: sevenseacat:
[11:52:50] flughafen: just another eso on the barbie
[11:53:31] strixd: has joined #ruby
[11:54:11] yardenbar: has joined #ruby
[11:55:30] Rollabunna: has joined #ruby
[11:55:51] freeze: has joined #ruby
[11:56:13] bruno-: has joined #ruby
[11:57:00] leesharma: has joined #ruby
[11:59:45] kannan4k: folks, when does this code will execute? https://gist.github.com/kannan4k/62c0e455f83ba6016eaf#file-api-rb-L4-L9
[11:59:59] kannan4k: after the initialize or before?
[12:00:39] yorickpeterse: when the class is loaded
[12:01:17] [k-_: has joined #ruby
[12:01:18] StAnger: has joined #ruby
[12:01:37] bruno-: has joined #ruby
[12:01:38] tobiasvl: it's executed when the class is loaded (as the file is loaded and the code is read). it also only executes once per class, it has nothing to do with instances of the class
[12:02:19] eGGsha: has joined #ruby
[12:04:41] kannan4k: thanks, tobiasvl. so TSheets::Repository.classes this is a method returns a iterable?
[12:04:51] dtcristo: has joined #ruby
[12:05:14] Bloodshot: has joined #ruby
[12:05:22] yorickpeterse: send("hotel_#{item.class.name.underscore.sub(/_decorator$/,'')
[12:05:39] but3k4: has joined #ruby
[12:05:45] tobiasvl: kannan4k: yeah, it returns an Enumerable
[12:05:53] nobitanobi: has joined #ruby
[12:05:57] yorickpeterse: ihatenigggers: you might want to change your nick
[12:06:14] CloCkWeRX: has joined #ruby
[12:06:16] ihatenigggers: what is wrong with my nick? it doesn't even make sense
[12:06:32] dimasg: has joined #ruby
[12:06:34] sevenseacat: !kick ihatenigggers
[12:06:34] helpa: sevenseacat: No.
[12:06:35] ruboto: ruboto kicked ihatenigggers:
[12:06:35] ruboto: -o ruboto
[12:06:45] ihatenigggers: has joined #ruby
[12:06:50] sevenseacat: ihatenigggers: change it.
[12:06:51] yorickpeterse: Gee, I wonder what's wrong with using "nigger"
[12:06:57] sevenseacat: you have one minute.
[12:07:12] ihatenigggers: DON'T EVER USE THAT WORD yorickpeterse
[12:07:15] yorickpeterse: http://ruby-community.com/pages/user_rules rule 10 "Using a sexually or racially charged nickname"
[12:07:21] ihatenigggers: "niggger" on the other hand doesn't exist and it's okay to use
[12:07:24] sevenseacat: ACTION shrugs
[12:07:25] yorickpeterse: ihatenigggers: I'd listen to sevenseacat
[12:07:27] apeiros: !ban ihatenigggers bye
[12:07:35] yorickpeterse: apeiros: no ops for you
[12:07:42] ljarvis: !ban ihatenigggers bye
[12:07:50] ljarvis: !ban ihatenigggers !T 1d bye
[12:07:51] apeiros: nah, syntax
[12:07:51] ChanServ: +b ihatenigggers!*@*
[12:07:51] ChanServ: ChanServ kicked ihatenigggers: bye
[12:07:51] yorickpeterse: <ruboto> fuck the police
[12:07:58] ljarvis: apeiros: pls fix
[12:08:10] apeiros: yeah. I'll add a default of 1d
[12:08:24] apeiros: silly me, why do I use AKICK syntax???
[12:08:28] apeiros: s/use/copy/
[12:08:38] yorickpeterse: {:class => "sentiment #{value}"}.merge_with_string_preservation(html_options)
[12:08:42] yorickpeterse: I hate legacy Rails projects
[12:09:28] yorickpeterse: this is code from 2010 ._.
[12:09:32] ddv: lol what just happened
[12:09:53] [k-_: !ban <nick> <message>
[12:10:03] zeeraw: has joined #ruby
[12:10:04] [k-_: !tban <nick> <time> <message>
[12:10:33] rouj: has joined #ruby
[12:10:36] rouj: has left #ruby: ()
[12:10:42] apeiros: [k-_: na, just !ban [channel] nick [duration] [message [| secret message]]
[12:11:09] yorickpeterse: Also this project has its own asset manager thing
[12:11:17] yorickpeterse: and like semi randomly it decides to recompile files differently
[12:11:26] adaedra: | secret message
[12:11:30] adaedra: not so secret
[12:11:32] yorickpeterse: The functionality remains the same, it just throws newlines and what not around
[12:11:40] apeiros: adaedra: only if you use the command in the channel ;-)
[12:11:46] [k-_: !ban <nick> [message]
[12:11:52] [k-_: !tban <nick> <time> [message]
[12:12:13] GBrawl: has joined #ruby
[12:12:15] adaedra: apeiros: sneaky
[12:12:31] adaedra: ban <nick> [massage]
[12:12:31] white_bear: has joined #ruby
[12:13:56] apeiros: [k-_: I will not make two commands for ban. what I will make is separate commands with defaults. like !spam, !rude, !flood
[12:14:23] apeiros: and given the frequency, probably also !racist
[12:14:36] apeiros: this week.
[12:14:37] adaedra: that's racist
[12:14:44] apeiros: no, that's a promise :-p
[12:14:48] yorickpeterse: There are so many gifs I could link to now
[12:14:54] yorickpeterse: and probably get banned as a result
[12:15:00] apeiros: yorickpeterse: oh please do (in #ot)
[12:15:56] [k-_: "separate commands with defaults"
[12:16:01] [k-_: isnt that the same >.>
[12:16:17] apeiros: no. they all follow the same syntax.
[12:16:29] apeiros: it doesn't introduce different syntax like your solution.
[12:16:29] _blizzy_: has joined #ruby
[12:16:41] [k-_: but my solution is less work!
[12:16:51] apeiros: I don't think so.
[12:16:54] sgambino: has joined #ruby
[12:17:04] bruno-: has joined #ruby
[12:17:40] [k-_: time will tell, time will tell :>
[12:18:22] nateberkopec: has joined #ruby
[12:18:59] sharpmachine: has joined #ruby
[12:19:20] juanpablo_: has joined #ruby
[12:19:52] banister: has joined #ruby
[12:21:27] Zai00: has joined #ruby
[12:21:31] dimasg: has joined #ruby
[12:21:52] AugustoCesar: has joined #ruby
[12:22:05] Tamae: has joined #ruby
[12:22:12] yaw: has joined #ruby
[12:23:53] banister: has joined #ruby
[12:24:06] ruurd: sevenseacat whats that remark about rvm2? AFAIK I'm using the latest and that's somewhere 1.26-ish...
[12:24:07] AugustoCesar: has left #ruby: ()
[12:24:47] adaedra: they're planning a second one
[12:24:57] adaedra: total rewrite
[12:25:08] sevenseacat: its been in development for years
[12:25:13] sevenseacat: written in ruby
[12:25:17] adaedra: with laser cannons and cat pictures
[12:25:26] neanias: And python
[12:26:10] {756d6f}: has joined #ruby
[12:26:33] tubuliferous_: has joined #ruby
[12:27:06] Sheperson: has joined #ruby
[12:27:13] fabrice31: has joined #ruby
[12:27:42] yalue: has joined #ruby
[12:27:59] Sheperson: has left #ruby: ()
[12:28:03] Oog: has joined #ruby
[12:28:25] Kully3xf: has joined #ruby
[12:29:22] zeeraw: has joined #ruby
[12:30:23] banister: has joined #ruby
[12:30:28] farn: has joined #ruby
[12:30:54] sigurding: has joined #ruby
[12:31:02] sevenseacat: i like cat pictures.
[12:31:09] schaerli: has joined #ruby
[12:32:00] aryaching: has joined #ruby
[12:32:56] fabrice31: has joined #ruby
[12:33:59] ruurd: nowhere near something that makes you say rvm is hell. rvm2 might be but that's a different story.
[12:34:25] sevenseacat: I don't think we're going to get into this again.
[12:34:26] lannonbr: has joined #ruby
[12:34:32] sevenseacat: if you want to use RVM, power to you.
[12:34:40] ruurd: From what I see is that chruby and rvm1 almost have an equivalent strategy in how it performs its duties
[12:34:41] sevenseacat: but very few here will recommend it.
[12:35:09] sevenseacat: ruurd: so why is rvm1 20,000 lines of code then?
[12:35:14] ruurd: that doesn't mean that you all are 'right' is it...
[12:35:27] ruurd: maybe you should ask mpapis....
[12:35:28] ddv: is it really 20k loc?
[12:35:35] rideh: has joined #ruby
[12:36:06] sevenseacat: https://www.bountysource.com/fundraisers/489-rvm-2-0 "Convert 20,000 lines of shell script into Ruby."
[12:36:23] Polysics: has joined #ruby
[12:37:15] khebbie: has joined #ruby
[12:37:16] khebbie_: has joined #ruby
[12:37:24] ddv: insane in the membrane
[12:37:31] jhass: "Bourne Again Shell 160 3098 839 23770" (files, blank, comment, code)
[12:37:45] jhass: plus 603 Bourne Shell
[12:37:56] benlovell: has joined #ruby
[12:38:09] jhass: so it's actually closer to 25k
[12:38:20] ruurd: 750 wc -l in bin
[12:38:26] ruurd: 7796 in scripts
[12:39:14] yaw: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[12:39:45] sigurding_: has joined #ruby
[12:39:52] Silox|: has joined #ruby
[12:40:03] jhass: and chruby is 755 in total
[12:40:07] shiru: has joined #ruby
[12:40:11] ruurd: sevenseacat although I don't see why they should switch to ruby all the way other than way to many shell idiosyncracies
[12:40:44] davedev24: has joined #ruby
[12:40:45] sevenseacat: don't look at me. chruby+ruby-install have always worked for me just fine.
[12:40:58] sevenseacat: on multiple shells and multiple OSes
[12:41:21] apeiros: 2 is multiple too, right? same for me with rvm ;-D
[12:41:29] ruurd: ah you need to employ a different application for installing ruby then.
[12:41:52] jhass: ruby-install is 1400, so 2.1k vs 23k
[12:41:55] sevenseacat: ruurd: you're the one who said chruby and rvm do the same thing, and you werent aware of that?
[12:42:03] jhass: where will a bug easier to find for you? ;)
[12:42:10] lkba: has joined #ruby
[12:43:40] ruurd: not yet but that does at least account for the difference in size.
[12:43:56] sevenseacat: ACTION raises eyebrow
[12:44:30] tjbiddle: has joined #ruby
[12:45:29] wmoxam: ruurd: ruby version manager wars are very similar to editor wars, distro wars, etc
[12:45:34] shock_one: has joined #ruby
[12:45:47] sevenseacat: you're comparing 1400 LOC with 20000?
[12:45:52] shock_one: What do you think? https://gist.github.com/shockone/a593041ecfab350ce3a7
[12:45:55] sevenseacat: and 'that accounts for the difference in size'?
[12:45:57] sevenseacat: that doesnt make sense.
[12:46:31] jhass: shock_one: benchmark/ips it, I'd be curios how high the overhead is
[12:46:35] apeiros: shock_one: don't like, sorry.
[12:46:46] fgo: has joined #ruby
[12:46:48] apeiros: shock_one: strings are not the only objects to pass into []
[12:46:52] saransh__: has joined #ruby
[12:46:53] ruurd: well... how much of that is taking care of a bunch of nitty gritty details for a number of OS/Ruby combinations?
[12:47:08] sevenseacat: a lot more than in ruby-install, thats for sure.
[12:47:15] unshadow: has joined #ruby
[12:47:27] saransh__: how to run liquid template on local system?
[12:47:38] tuxtgz: has joined #ruby
[12:47:45] unshadow: I'm looking at Webrick's code, and found something I dont understand, what does this do ? return io.__send__(method, *arg)
[12:47:48] sigurding_: has joined #ruby
[12:47:51] unshadow: what's that __send__ ?
[12:48:01] unshadow: https://github.com/ruby/ruby/blob/c8b3f1b470e343e7408ab5883f046b1056d94ccc/lib/webrick/httprequest.rb#L520
[12:48:02] jhass: unshadow: you know what .send is?
[12:48:08] unshadow: jhass: yeha
[12:48:09] decaff: has joined #ruby
[12:48:15] jhass: __send__ is a backup of that
[12:48:30] ruurd: 2654 lines for handling ruby installs for 11 different types of ruby to begin with...
[12:48:31] jhass: &ri BasicObject#__send__
[12:48:31] `derpy: http://www.rubydoc.info/stdlib/core/BasicObject#__send__-instance_method
[12:48:43] shock_one: apeiros: yeah, I totally agree. But it's beta than nothing, right? It's like we have &method, which works only when there is one argument.
[12:48:54] fabrice31: has joined #ruby
[12:49:09] ruurd: 5550 lines for handling differences in operating system and/or distributions
[12:49:23] sevenseacat: thats a lot of code.
[12:49:45] jhass: ruurd: the argument boils down to, if you don't need that complexity, why deal with it
[12:49:45] Rollabunna: has joined #ruby
[12:50:01] jhass: if you need it, it's great that there's a tool that provides it
[12:50:04] saransh__: how can i run liquid template on my local system?
[12:50:16] ruurd: but you still need it because you need ruby_install alongside chruby.
[12:50:25] jhass: saransh__: get liquid, read its docs, do it
[12:50:28] ruurd: So basically how many LOC are they together?
[12:50:51] jhass: ruurd: scroll up, I pasted it
[12:50:55] ruurd: and how many ruby/os/distro combinations?
[12:51:13] bodgix: has joined #ruby
[12:51:13] sevenseacat: about as many as rvm.
[12:51:20] jhass: btw in my setup I don't need ruby-install, I just install my rubies via the regular package manager
[12:51:40] ruurd: as root that is...
[12:51:47] yqt: has joined #ruby
[12:52:37] marcelo_: has joined #ruby
[12:53:37] saransh__: <jhass>: I have seen the docs
[12:53:49] havenwood: has joined #ruby
[12:53:57] saransh__: but if you can give me a brief idea
[12:54:04] saransh__: that would be great
[12:54:09] jhass: saransh__: then show what you've tried so far and what errors you get. Use gist.github.com if that takes more than three lines
[12:54:21] s00pcan: has joined #ruby
[12:54:32] Axy: has joined #ruby
[12:55:06] saransh__: i have installed liquid, the template i want to run
[12:55:13] saransh__: i don't know how to run it?
[12:55:31] jhass: I have a hard time believing you actually looked at the docs
[12:55:33] jhass: http://www.rubydoc.info/gems/liquid#How_to_use_Liquid
[12:55:41] saransh__: that sounds stupid, but i don't have much experience in ruby
[12:55:49] schaerli: has joined #ruby
[12:57:06] r_baron: has joined #ruby
[12:57:11] sankaber: has joined #ruby
[12:57:13] n008f4g_: has joined #ruby
[12:57:56] iamninja: has joined #ruby
[12:58:05] Guest75590: has joined #ruby
[12:58:22] bmurt: has joined #ruby
[13:00:47] lxsameer: has joined #ruby
[13:00:57] christiandsg: has joined #ruby
[13:01:53] OlecraM_: has joined #ruby
[13:02:45] sigurding_: has joined #ruby
[13:03:08] iamninja: has joined #ruby
[13:03:27] prefixed: has joined #ruby
[13:03:31] walteriz_: has joined #ruby
[13:04:13] decoponio: has joined #ruby
[13:04:23] zeeraw: has joined #ruby
[13:04:39] eGGsha: has joined #ruby
[13:05:32] victortyau: has joined #ruby
[13:05:56] banister: has joined #ruby
[13:07:55] zeroDivisible: has joined #ruby
[13:08:21] Tomasso: has joined #ruby
[13:08:44] saransh__: <jhass>: I have a file theme.liquid
[13:08:49] saransh__: How can i run it?
[13:09:11] saransh__: without passing images and all
[13:09:31] Tomasso: i have a ruby object that have some blocks within Procs.. for example. Is there some way to make .to_json render those blocks as simple strings and not avoid them ?
[13:09:41] wmoxam: saransh__: you need to write a ruby program
[13:10:02] wmoxam: saransh__: otherwise how would you pass template variable, etc?
[13:10:35] sigurding_: has joined #ruby
[13:10:39] mistermocha: has joined #ruby
[13:10:59] jhass: Tomasso: implement an as_json method that returns a hash with the wanted representation
[13:11:16] swills: has joined #ruby
[13:11:29] ndrei: has joined #ruby
[13:12:12] saransh__: firstly can you tell me how to run a file having .liquid extension
[13:12:23] wmoxam: saransh__: I did :D
[13:13:10] jhass: saransh__: the way in my link is the only way
[13:13:21] saransh__: <wmoxam>: in normal case, how?
[13:13:33] wmoxam: saransh__: you need to write a ruby program
[13:13:34] schaerli: has joined #ruby
[13:13:48] wmoxam: saransh__: similar to the example on the liquid homepage
[13:13:50] jhass: saransh__: repeating your question won't get you a different answer to it
[13:15:30] wmoxam: jhass: I think saransh was expecting a liquid2html program being available
[13:15:53] jhass: I think saransh was immune to doing some actual learning
[13:15:55] Violentr: has joined #ruby
[13:16:03] sigurding_: has joined #ruby
[13:16:13] iamninja: has joined #ruby
[13:16:22] [k-_: i think all /web/ users are like that
[13:16:43] jhass: I think all people that do such generalizations are stupid
[13:16:48] bronson: has joined #ruby
[13:16:51] workmad3: jhass: burn :D
[13:17:03] wmoxam: jhass: it sounded like they are a frontend dev, backend stuff is pretty intimidating for many :p
[13:17:56] workmad3: jhass: also, a bit of a self-burn there too ;)
[13:18:04] jhass: workmad3: intentionally ;)
[13:18:22] jhass: wmoxam: I'm sure there's a JS implementation for liquid by now :P
[13:18:29] workmad3: jhass: yeah, I figured you'd spot it... I wasn't so sure about [k-_ so I figured I'd point it out to make him feel better :)
[13:18:29] freerobby: has joined #ruby
[13:18:40] workmad3: s/you'd spot it/you meant it/
[13:18:54] dopie: has joined #ruby
[13:19:14] wmoxam: jhass: ha, of course https://github.com/sirlantis/liquid-node
[13:19:45] sharpmachine: has joined #ruby
[13:20:08] axl__: has joined #ruby
[13:20:16] [k-_: yes [k-_ is stupid
[13:21:20] workmad3: [k-_: I'm not gonna feel much sympathy... I'm one of those /web/ people you tarred with your over-generalisation :P
[13:21:58] wmoxam: workmad3: I think he meant connected via mibbit
[13:22:14] workmad3: wmoxam: ah... that may make more sense :)
[13:22:58] aevitas: has joined #ruby
[13:22:59] allcentury: has joined #ruby
[13:24:21] [k-_: webchat, not really
[13:24:24] [k-_: but mibbit, oh mibbit
[13:25:48] platzhirsch: has joined #ruby
[13:25:48] willywos: has joined #ruby
[13:25:50] platzhirsch: has left #ruby: ()
[13:27:33] CloCkWeRX: has joined #ruby
[13:27:44] RegulationD: has joined #ruby
[13:28:04] hinbody: has joined #ruby
[13:28:06] Helheim: has joined #ruby
[13:28:59] walterizfie: has joined #ruby
[13:29:05] arup_r: has joined #ruby
[13:29:15] Igorshp: has joined #ruby
[13:30:04] sigurding_: has joined #ruby
[13:30:52] mikecmpbll: has joined #ruby
[13:31:47] bl4ckdu5t: has joined #ruby
[13:31:54] paulcsmith: has joined #ruby
[13:31:54] Papierkorb: has joined #ruby
[13:32:43] chills42: has joined #ruby
[13:34:16] OlecraM: has joined #ruby
[13:34:44] decoponio: has joined #ruby
[13:34:48] juanpablo_: has joined #ruby
[13:35:21] nettoweb: has joined #ruby
[13:35:33] sarkyniin: has joined #ruby
[13:35:56] Guest75590: when I use the equality matcher in RSpec and the expected and actual differ, I get a nicely formatted message showing me the differances. https://gist.github.com/anonymous/a8831a85f49cdd479484 Where does this formatting come from? There is nothing here that does it, that I can see https://github.com/rspec/rspec-expectations/blob/master/lib/rspec/matchers/built_in/eq.rb
[13:36:00] ynroot: has joined #ruby
[13:36:09] ArchRogem: has joined #ruby
[13:36:20] werelivinginthef: has joined #ruby
[13:36:25] tkuchiki: has joined #ruby
[13:36:33] Scripore: has joined #ruby
[13:36:36] Rubie: has joined #ruby
[13:36:45] dblessing: has joined #ruby
[13:37:01] JDeen: has joined #ruby
[13:37:27] platzhirsch: has joined #ruby
[13:38:01] malconis: has joined #ruby
[13:38:07] christiandsg: has joined #ruby
[13:38:17] whippythellama: has joined #ruby
[13:39:23] devdazed: has joined #ruby
[13:40:25] SOLDIERz: has joined #ruby
[13:40:47] safeforge: has joined #ruby
[13:41:24] d10n-work: has joined #ruby
[13:44:08] Rollabunna: has joined #ruby
[13:45:14] sigurding_: has joined #ruby
[13:46:10] radgeRayden: has joined #ruby
[13:46:20] JoshL: has joined #ruby
[13:46:47] icharlie: has joined #ruby
[13:46:51] ynroot: has joined #ruby
[13:47:08] umgrosscol: has joined #ruby
[13:47:32] catphish: has left #ruby: ("Leaving")
[13:48:23] atomical: has joined #ruby
[13:50:02] railsraider: has joined #ruby
[13:50:41] walterizfie: has joined #ruby
[13:50:42] bruno-: has joined #ruby
[13:51:50] danzilio: has joined #ruby
[13:55:21] iateadonut: has joined #ruby
[13:55:43] jhass: Guest75590: https://github.com/rspec/rspec-expectations/blob/master/lib/rspec/matchers/expecteds_for_multiple_diffs.rb I'd guess
[13:57:09] silkfox: has joined #ruby
[13:57:21] joneshf-laptop: has joined #ruby
[13:57:42] schaerli: has joined #ruby
[13:58:29] leesharma: has joined #ruby
[13:59:14] fabrice31_: has joined #ruby
[14:01:08] bruno-: has joined #ruby
[14:01:13] weemsledeux: has joined #ruby
[14:01:45] sigurding_: has joined #ruby
[14:02:02] The_Phoenix: has joined #ruby
[14:03:10] Scriptonaut: has joined #ruby
[14:03:22] banister: has joined #ruby
[14:03:28] Alayde: has joined #ruby
[14:03:32] Scriptonaut: hey guys, have any of you worked with the imgur api? I registered my application, but none of the gems I see show you how to query random images
[14:03:44] Scriptonaut: I want to be able to use a search term, and select various images based on that
[14:03:51] Scriptonaut: like: search 'cats'
[14:04:01] Scriptonaut: and then choose from a collection of results, anyone do anything like this before?
[14:04:17] ashleyhindle: I've not, but my twitter feed suggests otters are the new cats - not sure what's going on there
[14:04:45] CloCkWeRX: has joined #ruby
[14:05:27] prefixed: has joined #ruby
[14:05:38] Scriptonaut: I might have to roll my own
[14:06:22] ashleyhindle: I'm thinking I could launch ottur.com or otterur.com as an imgur for otters
[14:06:33] bruno-: has joined #ruby
[14:06:35] Scriptonaut: sounds like a plan you should
[14:07:21] juanpablo_: has joined #ruby
[14:07:24] charliesome: has joined #ruby
[14:07:30] ndrei: has joined #ruby
[14:07:55] abdulrehman: has joined #ruby
[14:08:03] Soda: has joined #ruby
[14:08:04] juanpablo_: has joined #ruby
[14:08:17] platzhirsch: hi abdulrehman
[14:08:42] abdulrehman: I'd like to tokenize sql in ruby, I thought about using erb but that's for different templating problems. any advice?
[14:09:04] riffraff: has joined #ruby
[14:09:36] workmad3: abdulrehman: as in you want to reduce an SQL string into tokens in a parse tree with ruby?
[14:09:48] workmad3: abdulrehman: https://github.com/cryodex/sql-parser
[14:10:12] p1k: has joined #ruby
[14:10:52] clocKwize: has joined #ruby
[14:11:20] abdulrehman: not so much, let me write up something quickly on a gist and I'll show you in sec
[14:11:42] havenwood: p1k: g'mornin
[14:12:03] nobitanobi: has joined #ruby
[14:12:48] abdulrehman: https://gist.github.com/AbdulR3hman/af1d5a6835374d9aa071
[14:13:17] _blizzy_: has joined #ruby
[14:13:21] decaff: has joined #ruby
[14:13:53] workmad3: abdulrehman: ... you want to reimplement SQL prepared statements in ruby...
[14:14:14] fractalis: has joined #ruby
[14:14:41] tubuliferous_: has joined #ruby
[14:15:04] jgpawletko: has joined #ruby
[14:16:05] ynroot: has joined #ruby
[14:16:18] abdulrehman: workmad3: yah something like that
[14:16:34] workmad3: abdulrehman: err... don't do that? just use prepared statements!
[14:16:36] abdulrehman: I am technically working with JRuby, so I have access to the JDBC
[14:16:53] hashrocket: has joined #ruby
[14:17:14] abdulrehman: ok, and use the subtitue method then? to change me '?' to the variables I'd want
[14:17:19] ynroot: cant install sqlite3 on opensuse
[14:17:21] ynroot: n error occurred while installing sqlite3 (1.3.10), and Bundler cannot continue.
[14:17:22] ynroot: Make sure that `gem install sqlite3 -v '1.3.10'` succeeds before bundling.
[14:17:35] workmad3: abdulrehman: no... let the prepared statement handle that
[14:17:38] sevenseacat: ynroot: you'll need the headers for that too.
[14:17:42] workmad3: abdulrehman: that's the *point* of prepared statements
[14:17:44] sevenseacat: ynroot: try sqlite3-devel or some such.
[14:18:07] abdulrehman: ok, then I'll just to do that.... many thanks workmad3:
[14:18:14] danman: has joined #ruby
[14:18:19] dtzitz: has joined #ruby
[14:18:29] dtzitz: has left #ruby: ()
[14:19:52] chills42: has joined #ruby
[14:20:31] sharpmachine: has joined #ruby
[14:20:48] _blizzy_: has joined #ruby
[14:23:04] railsraider: has joined #ruby
[14:25:18] benlovell: has joined #ruby
[14:25:46] sshuff: has joined #ruby
[14:27:14] deepu: has joined #ruby
[14:28:15] chouhoulis: has joined #ruby
[14:31:17] ynroot: sevenseacat: ok already done, thanks ready to go learning ruby on rails
[14:32:15] cubicool: has joined #ruby
[14:32:18] blue_deref: has joined #ruby
[14:33:12] weemsledeux: has joined #ruby
[14:33:23] cubicool: How does Sinatra (or any Ruby module) detect that it is (for lack of a better phrase) "being run" and invoke certain functions?
[14:33:51] rdar: has joined #ruby
[14:33:54] shevy: I am sure via require calls
[14:33:55] cubicool: I'd like to install something similar for my module, but just using __FILE__ == $FOO in my module obviously won't do it...
[14:34:09] CloCkWeRX: has joined #ruby
[14:34:16] yorickpeterse: cubicool: files are just executed line by line basically
[14:34:26] yorickpeterse: a require() just jumps to a given file and runs everything in it
[14:34:45] j4cknewt: has joined #ruby
[14:34:50] Igorshp: has joined #ruby
[14:35:06] adaedra: cubicool: by looking at $0
[14:35:47] havenwood: that variable is broke
[14:35:53] astrobunny: has joined #ruby
[14:36:22] sigurding: has joined #ruby
[14:36:34] L8: has joined #ruby
[14:37:54] fmcgeough: has joined #ruby
[14:37:57] kies^: has joined #ruby
[14:38:20] Rollabunna: has joined #ruby
[14:39:09] Channel6: has joined #ruby
[14:41:07] sargas: has joined #ruby
[14:41:09] mary5030: has joined #ruby
[14:41:12] railsraider_: has joined #ruby
[14:42:33] RegulationD: has joined #ruby
[14:42:49] mwksl: has joined #ruby
[14:44:09] c0ncealed: has joined #ruby
[14:45:27] DexterLB: has joined #ruby
[14:46:53] ynroot: Uptime: 45 minutes
[14:47:30] ynroot: Sysinfo for 'linux-gc9c.site': Running inside KDE 4.14.9 on openSUSE 13.2 (Harlequin) powered by Linux 4.1.2-1-desktop, CPU: Intel(R) Core(TM) i3-4005U CPU @ 1.70GHz at 1699-1700/1700 MHz, RAM: 2753/3874 MB, Storage: 145/463 GB, 212 procs, 0.76h up
[14:48:42] rippa: has joined #ruby
[14:48:48] christiandsg: has joined #ruby
[14:48:59] Xiti: has joined #ruby
[14:49:05] kokoleavia: has joined #ruby
[14:49:22] thiagovsk: has joined #ruby
[14:50:37] sarkyniin: has joined #ruby
[14:51:36] sigurding_: has joined #ruby
[14:51:56] mwksl: has joined #ruby
[14:52:00] arup_r: has joined #ruby
[14:52:42] ljarvis: ynroot: is there a point to your spam?
[14:53:36] fullofcaffeine: has joined #ruby
[14:53:48] khebbie: has joined #ruby
[14:53:54] khebbie_: has joined #ruby
[14:54:06] ynroot: ljarvis: testing man, this my second day on IRC, any problem on testing stuff
[14:54:13] snophey: has joined #ruby
[14:54:20] adaedra: testing what
[14:54:41] ljarvis: ynroot: yes, please dont do that in here
[14:54:47] ljarvis: this channel isn't for your testing
[14:54:55] gambl0re: has joined #ruby
[14:56:14] sinkensabe: has joined #ruby
[14:57:13] otisZart: has joined #ruby
[14:57:25] KinderSpiel: has joined #ruby
[14:57:56] mwksl: Are there any particular Ruby books you folks would recommend for an intermediate rubyist?
[14:57:59] apeiros: ein Klangkarussell
[14:58:06] KinderSpiel: Anyone can help me with finding real ruby jobs?
[14:58:21] sevenseacat: as opposed to...?
[14:58:24] rdark: fake ones
[14:58:27] mwksl: A fake ruby job
[14:58:33] sharpmachine: has joined #ruby
[14:58:35] prestorium: has joined #ruby
[14:58:37] Guest75590: is there an article on writing a spec for an rspec custom matcher? I can't find any and I've had a bug in my matcher that's been throwing me for a loop.
[14:58:37] jobewan: has joined #ruby
[14:58:50] Guest75590: bug in my custom matcher
[14:58:55] mwksl: KinderSpiel, I'd recommend checking this website: https://weworkremotely.com/
[14:59:00] nettoweb: has joined #ruby
[14:59:02] KinderSpiel: pretty much everything I see is for recruiter honeypots :)
[14:59:05] mwksl: It was created by one of the founders of 37Signals
[14:59:07] leesharma: has joined #ruby
[14:59:31] mwksl: It's at-least a good lead. You might be looking specifically at Rails though. Not sure how you feel about that
[14:59:35] casadei_: has joined #ruby
[14:59:42] EminenceHC: has joined #ruby
[14:59:58] christiandsg: has joined #ruby
[15:00:08] KinderSpiel: nah, man, I can't find work anywhere
[15:00:27] adaedra: Did you search?
[15:00:28] KinderSpiel: would work on pretty much anything, I've done Java in the past too
[15:00:28] mwksl: Location?
[15:00:47] prettiestPony11: has joined #ruby
[15:00:48] KinderSpiel: what bothers me is I see a lot of ads
[15:00:55] rbowlby_: has joined #ruby
[15:00:58] KinderSpiel: but when I send a CV, no erply from there
[15:01:07] mwksl: I'm in kinda the opposite situation.
[15:01:16] chinmay_dd: has joined #ruby
[15:01:17] mwksl: I got hired on as a Ruby Dev, and have been doing Business Integration the whole time
[15:01:18] KinderSpiel: Lisbon Portugal
[15:01:20] mwksl: It's so ridiculous
[15:01:26] mwksl: Portugal. Hmm :-/
[15:01:37] icebourg: has joined #ruby
[15:01:39] abdulrehman: is there a way to truncate a float not to round?
[15:01:48] dtzitz: has joined #ruby
[15:02:06] KinderSpiel: yeah, suppose so... but getting a remote gig should be that hard these days, should it?
[15:02:09] quimrstorres: has joined #ruby
[15:02:11] mwksl: Well, I live in the Midwest, in the United States and the work here for Ruby is non-existent. I've been told Oregon, Washington, and New York are worthwhile.
[15:02:12] workmad3: abdulrehman: ??
[15:02:33] mwksl: I don't think so. Check out that website, and see what it leads you to. I haven't used it, but I've heard good things
[15:03:24] quimrstorres: has joined #ruby
[15:03:36] mwksl: I've run across quite a few Rails jobs in Chicago, IL
[15:04:10] KinderSpiel: mwks, I sure will, website looks interesting
[15:04:13] snockerton: has joined #ruby
[15:04:57] fullofcaffeine: has joined #ruby
[15:05:15] mwksl: Okay! Good luck. :) You'll have to report back and tell us what you find.
[15:06:03] abdulrehman: workmad3: instead of rounding, is there a method which simpley truncate the float at a specific decimal?
[15:06:14] s2013: has joined #ruby
[15:06:27] sigurding_: has joined #ruby
[15:06:30] ljarvis: abdulrehman: what do you have and what do you want?
[15:06:32] vimz: How do I write a spec for a custom matcher? All I want to test is that the failure message, failure message when negated and description get called depending on the data.. Basically I've found a bug in my custom matcher and I want to stamp it out properly with TDD.
[15:06:33] abdulrehman: I can do it the long way to be honest, by change it to string and truncate anything after the ',' but being lazy
[15:06:48] dudedudeman: has joined #ruby
[15:06:55] ljarvis: Vimz: #rspec
[15:07:02] workmad3: abdulrehman: err... no, because that's not how floats work (they can be unrepresentable at pretty much any number of decimal points, not just large numbers)
[15:07:12] vimz: ljarvis nobody's evere there :'(
[15:07:18] workmad3: abdulrehman: e.g. 10.1 is unrepresentable... how do you just 'truncate' that?
[15:07:25] abdulrehman: ljarvis: for example float number 22.2229 truncate it to third decimal becomes 22.222, if we round it will become 22.223
[15:07:27] gregf_: abdulrehman: 10.25.to_s.sub("\..*","").to_i <= like that
[15:07:45] ljarvis: dont do that ^
[15:07:49] dudedudeman: has joined #ruby
[15:07:53] workmad3: adaedra: ah, you want to floor the numbers, rather than round them
[15:07:56] iWaffles: has joined #ruby
[15:07:57] ArchRogem: has joined #ruby
[15:08:03] gregf_: ljarvis: well he just wants it :/
[15:08:12] adaedra: workmad3: fix your tab key
[15:08:28] workmad3: adaedra: nah :P
[15:08:46] workmad3: adaedra: that wasn't a tab failure anyway... it was hitting b instead of d
[15:08:49] ljarvis: gregf_: they don't want an integer, so it's not right, casting to string and back again is almost never the answer
[15:08:52] workmad3: err... other way around :)
[15:08:53] railswebdev: has joined #ruby
[15:09:08] adaedra: workmad3: fix the whole keyboard then
[15:09:11] workmad3: but still... floor doesn't take a precision argumement... bah :(
[15:09:18] ljarvis: workmad3: TabFailure < GeneralTypeFailure
[15:09:19] workmad3: adaedra: I like my keyboard :P
[15:09:24] gregf_: abdulrehman: 10.25.to_s[/[^.]+/] or else *cries* . never ever had to do something like that :/
[15:09:32] vimz: does anyoone here have a bit of indepth knowledge regarding rspec? #rspec is a graveyard
[15:09:34] ljarvis: gregf_: srsly stahp
[15:10:00] ljarvis: Vimz: please just wait, spamming isn't going to help. Did you check the (well covered) rspec docs?
[15:10:01] dudedudeman: Vimz: i'd definitely hit up #rubyonrails guys
[15:10:02] adaedra: Rationnals seems to support truncating with an argument
[15:10:07] abdulrehman: gregf_: hahaha don't blame me man, the spec asks for that what can I do for them.... the business analyst are the one who sets the specs and they are really not aware
[15:10:09] abdulrehman: of the problem
[15:10:16] ljarvis: Vimz: also yes ror is probably a good place to ask as well
[15:10:18] adaedra: &ri Rationnal#truncate
[15:10:19] `derpy: No results
[15:10:26] adaedra: &ri Rational#truncate
[15:10:26] `derpy: http://www.rubydoc.info/stdlib/core/Rational#truncate-instance_method
[15:10:32] adaedra: one day I'll learn that
[15:10:48] vimz: ljarvis dudedudeman cool thanks
[15:10:53] workmad3: abdulrehman: you could push back on the requirement and say it's not a simple thing to implement
[15:11:12] adaedra: lol, truncating to a given place, not simple thing.
[15:11:21] msnyon: has joined #ruby
[15:11:31] dudedudeman: (not saying some of the folks on here haven't used or aren't experts at rspec, it's just that that is a heavily supported test suite by the rails community)
[15:11:45] mwksl: Vimz: also, you might be able to find what you need in a book like this: https://pragprog.com/book/achbd/the-rspec-book I know that's probably not the answer you were looking for, but just know that it's a resource as well.
[15:12:14] PhantomSpank: has joined #ruby
[15:12:14] abdulrehman: workmad3: hahahha I do sometimes... and some other times I find a work around it
[15:12:16] dgutierrez1287: has joined #ruby
[15:12:18] Scriptonaut: has left #ruby: ()
[15:12:30] gregf_: abdulrehman: 10.25.to_int or else. but out of curiosity. what are you trying to achieve?
[15:12:33] rideh: has joined #ruby
[15:12:36] tubuliferous_: has joined #ruby
[15:12:44] vimz: mwksl thanks, i am still learning rspec. really thought matcher testing would be google-able :s
[15:12:44] christia1: has joined #ruby
[15:13:23] mwksl: Vimz, I guarantee you already know more than me. :) I only have surface knowledge of it, but not much experience hehe.
[15:13:36] abdulrehman: gregf_: basically I have to get some prices for some shares which are much more than 10 decimal places, they want to truncate anything else after the 10th position and not rounding, the problem with rounding is maybe gonna effect other calculation down the pipe
[15:13:39] BeatzKilla: has joined #ruby
[15:14:03] mdavid613: has joined #ruby
[15:14:30] workmad3: abdulrehman: prices? don't use floats!!!!
[15:14:45] workmad3: abdulrehman: wrap them in BigDecimal (which, incidentally, supports a truncate method that does what you want)
[15:15:10] workmad3: abdulrehman: also, truncating is going to affect the calculation just as much as rounding would...
[15:15:16] gregf_: abdulrehman: share prices. you need to also realise that a few pennies here and there make a lot of difference :/
[15:15:39] shock_one: has joined #ruby
[15:16:05] jhass: today: #ruby saves world economy
[15:16:14] allomov: has joined #ruby
[15:17:22] Rubie: has joined #ruby
[15:17:50] workmad3: abdulrehman: tbh, I'd expect truncating to affect the calculation *more* than rounding would...
[15:18:23] mwksl_: has joined #ruby
[15:18:39] workmad3: although that'll depend on how the values are distributed
[15:19:10] snockerton: has joined #ruby
[15:20:05] exadeci: has joined #ruby
[15:20:23] abdulrehman: workmad3: they are not just simple prices, they are more than that... these has to do with indices and stock market and stuff
[15:20:51] workmad3: abdulrehman: still shouldn't be using floats... floats will be doing their own rounding when you create the values
[15:20:57] abdulrehman: gregf_: I guess that is why they are pushing for a truncate, but I thought a rounding should be more logical
[15:21:15] Scripore: has joined #ruby
[15:21:26] abdulrehman: workmad3: I am getting the value from db, and they are coming from db as string anyways
[15:21:42] Igorshp: has joined #ruby
[15:21:58] baroquebobcat: has joined #ruby
[15:22:01] sharpmachine: has joined #ruby
[15:22:03] sigurding_: has joined #ruby
[15:22:06] workmad3: abdulrehman: ok... so BigDecimal.new(str_value_from_db).truncate(10)
[15:22:26] christiandsg: has joined #ruby
[15:22:41] abdulrehman: workmad3: let me try that one sec
[15:23:11] abdulrehman: oh, and how do I stop the IRC notification who is going in/out they are moving the chat way too quick
[15:23:26] workmad3: depends on client
[15:23:35] mwksl_: You using irssi?
[15:24:17] abdulrehman: I am using the browswer, they won't let me use it any other way, irc.lc
[15:24:20] darix: in irssi all you need is /ignore -channel #ruby JOINS PARTS QUITS NICKS
[15:24:23] nobitanobi: has joined #ruby
[15:24:56] darix: i think somewhere on the irssi page i documented that once
[15:25:00] adaedra: he's on the web gateways
[15:25:15] Adran: has joined #ruby
[15:25:45] workmad3: abdulrehman: can you create an SSH connection out of your network?
[15:26:16] workmad3: abdulrehman: if so, you can always create a socks proxy with an SSH connection and use that to proxy a better IRC client connection ;)
[15:26:19] abdulrehman: no way man hahahah .... they have so much tighet security here, I can't sometime use normal https websites.... hahahha they have everything locked down
[15:26:22] adaedra: abdulrehman: click on the little icon on topleft, click options, check "Hide JOINS/PARTS/..."
[15:26:58] workmad3: abdulrehman: fun :P
[15:27:19] abdulrehman: adaedra: works
[15:27:39] abdulrehman: workmad3: trust me man, its sucks
[15:27:50] abdulrehman: I'll join a strart up soon or something
[15:27:54] abdulrehman: they are sooo uptight in here hahahah
[15:28:17] darix: workmad3: why proxy irc if you could just do mosh/ssh+tmux+irssi|weechat?
[15:29:14] Cache_Money: has joined #ruby
[15:29:22] abdulrehman: I'd need a unix terminal to do that workmad3:
[15:29:45] abdulrehman: sadly, we only use UX-HP which is not connected to the internet only our intranet
[15:30:25] abdulrehman: I am telling you, they are really uptight... and other IRC channels/websites are filtered out and blocked, no Idea how this one isnt
[15:30:31] abdulrehman: hahahahah just lucky i guess
[15:30:41] christiandsg: has joined #ruby
[15:30:59] abdulrehman: adaedra: hahahha for now
[15:31:35] s2013: has joined #ruby
[15:31:54] bruno-: has joined #ruby
[15:32:31] dfockler: has joined #ruby
[15:32:37] Rollabunna: has joined #ruby
[15:33:03] abdulrehman: anyway guys, thanks for the help....
[15:33:12] gregf_: mvn install
[15:33:17] gregf_: oops :/ sorry
[15:33:22] rehat: has joined #ruby
[15:33:42] Jarboe: has joined #ruby
[15:33:50] chinmay_dd: has joined #ruby
[15:34:35] riotjones: has joined #ruby
[15:35:27] gregf: has joined #ruby
[15:35:33] dseitz: has joined #ruby
[15:35:51] pengin: has joined #ruby
[15:36:54] bruno-: has joined #ruby
[15:37:29] Rollabun_: has joined #ruby
[15:37:53] shock_one: has joined #ruby
[15:38:16] shock_one: has joined #ruby
[15:38:22] workmad3: abdulrehman: did BigDecimal fit your needs then?
[15:41:09] yosafbridge: has joined #ruby
[15:41:12] ascarter: has joined #ruby
[15:42:11] abdulrehman: workmad3: nop, everytime I use BigDec it gives me an error
[15:42:21] abdulrehman: workmad3: NameError: uninitialized constant BigDecimal
[15:42:22] bruno-: has joined #ruby
[15:42:22] psy: has joined #ruby
[15:42:32] workmad3: abdulrehman: ah... do 'require "bigdecimal" ' first then
[15:43:03] casadei_: has joined #ruby
[15:43:22] workmad3: abdulrehman: it's frequently loaded as standard in a lot of environments, but it's part of the stdlib, not core ruby, so in gems, libraries and similar, you'll need to require it yourself
[15:43:39] rcvalle: has joined #ruby
[15:44:11] adaedra: 30 seconds
[15:44:13] Scripore: has joined #ruby
[15:44:16] `El`Santo: has joined #ruby
[15:44:57] usershell: has joined #ruby
[15:45:10] abdulrehman: workmad3: that doesn't do what I need
[15:45:20] abdulrehman: adaedra: your counting? hahahha
[15:45:28] adaedra: no, I'm bidding
[15:45:44] adaedra: Wait, it's the wrong way, isn't it
[15:45:53] abdulrehman: should go higher
[15:46:15] adaedra: this explain why I never win those
[15:46:15] lokulin: has joined #ruby
[15:46:27] abdulrehman: adaedra: good luck next time haha
[15:46:33] abdulrehman: workmad3: I did the following in the db
[15:46:40] abdulrehman: convert(numeric(11,10),msv.weight) as 'weight'
[15:46:51] abdulrehman: sql embded in my jruby
[15:47:25] Scripore: has joined #ruby
[15:49:16] marr: has joined #ruby
[15:49:58] varunwachaspati: has joined #ruby
[15:50:41] Ilyas: has joined #ruby
[15:51:31] Lingo: has joined #ruby
[15:55:01] abdulrehman: anyway, I'm off.... enough work for one day hahaha thanks all and maybe I'll see you tomorrow if they do not block me from accessing the channel hahah
[15:55:55] christia1: has joined #ruby
[15:56:29] theery: has joined #ruby
[15:57:27] yqt: has joined #ruby
[15:59:55] leesharma: has joined #ruby
[16:00:16] amclain: has joined #ruby
[16:00:25] workmad3: abdulrehman: you could always have a small netbook with a decent IRC client on it that you tether to your phone's mobile connection to get around corporate firewalls ;)
[16:00:34] shock_one: has joined #ruby
[16:01:53] jhass: or a SOCKS5 proxy to a $10/year VPS
[16:02:28] tennis: has joined #ruby
[16:02:34] jud^: has joined #ruby
[16:03:30] adaedra: yeah, let's break company's filtering, this can only go well
[16:04:50] dfockler: unless your sys admin is blocking SOCKS traffic, but how likely is that right?!
[16:05:09] mwksl_: http://shadowsocks.org/en/index.html Just use ShadowSOCKS! What could go wrong?!
[16:05:22] leesharma: has joined #ruby
[16:05:28] last_staff: has joined #ruby
[16:06:46] ddarkpassenger: has joined #ruby
[16:07:55] mleung: has joined #ruby
[16:08:06] jhass: well, or http://dnstunnel.de/
[16:08:24] jhass: TCP over DNS, what will go wrong?
[16:08:56] weemsledeux: has joined #ruby
[16:09:10] adaedra: "Easy deployment with pip, npm" wuuuuuuuut
[16:09:35] rideh: has joined #ruby
[16:09:38] darix: if you use a connection via phone already, mosh+tmux+irssi
[16:09:48] darix: but yeah why simple if we can complicate it
[16:10:02] adaedra: use pigeons
[16:11:08] ljarvis: tmux+irssi <3
[16:11:49] platzhirsch: has left #ruby: ()
[16:12:32] workmad3: adaedra: at least my suggestion was using a machine not on the company network, it was merely in physical proximity with company machines ;)
[16:12:37] darix: ljarvis: add juicessh+mosh to the mix ^^
[16:13:23] sdothum: has joined #ruby
[16:14:05] adaedra: workmad3: company may not allow to use a 3rd party machine on the workplace
[16:14:15] vimz: I swear there was a ruby block to supress all console output. silent{ puts 'hi' } #=> *nothing* have I misremembered?
[16:14:36] adaedra: It remembers me a gem
[16:15:28] MatthewsFace: has joined #ruby
[16:15:33] juanpablo__: has joined #ruby
[16:15:58] momomomomo: has joined #ruby
[16:16:19] workmad3: Vimz: are you possibly thinking of $stdin.noecho which will prevent user input from echoing to stdout inside the block provided?
[16:16:46] mollymorphic: has joined #ruby
[16:16:50] workmad3: e.g. $stdin.noecho { puts "Password: "; gets } #=> user's password, with no console output
[16:16:53] leesharma: has joined #ruby
[16:16:53] fractalis: has joined #ruby
[16:16:57] workmad3: s/output/echo
[16:17:16] jud: has joined #ruby
[16:17:44] sepp2k: has joined #ruby
[16:17:54] ljarvis: btw you need to require io/console for that
[16:18:08] michaeldeol: has joined #ruby
[16:18:54] darix: highline or so should filter it too
[16:19:09] pengin: has joined #ruby
[16:19:16] vimz: workmad3 that could be it, I'll try it out :)
[16:19:29] darix: or termios library for ruby
[16:19:34] workmad3: Vimz: there's also `capture(:stdout)` provided by rails, but it's being deprecated
[16:19:42] darix: Vimz: /usr/lib64/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/prompt.rb:67: $stderr.puts "Text will be echoed in the clear. Please install the HighLine or Termios libraries to suppress echoed text."
[16:20:28] baweaver: has joined #ruby
[16:20:46] havenwood: Vimz: Not a block, and in short-form, but you can easily make a block to silence stdout and stderr for the current process: $stdout = $stderr = StringIO.new; 'silent here'; $stdout, $stderr = STDOUT, STDERR
[16:20:52] [Butch]: has joined #ruby
[16:21:20] bricker: has joined #ruby
[16:22:59] christiandsg: has joined #ruby
[16:23:15] towski_: has joined #ruby
[16:23:40] havenwood: require 'stringio'
[16:24:50] shock_one: has joined #ruby
[16:25:01] fullofcaffeine: has joined #ruby
[16:25:27] havenwood: >> require 'stringio'; module Kernel; def silently; $stdout = $stderr = StringIO.new; yield; $stdout, $stderr = STDOUT, STDERR end end; silently { puts 'green'; warn 'red' }
[16:25:28] ruboto: havenwood # => [#<IO:<STDOUT>>, #<IO:<STDERR>>] (https://eval.in/406849)
[16:25:59] benlieb: has joined #ruby
[16:26:15] havenwood: Or I suppose better to /dev/null it?
[16:26:19] ruurd: has joined #ruby
[16:26:43] havenwood: To the black hole!
[16:27:53] svdb64: has joined #ruby
[16:28:10] nobitanobi: has joined #ruby
[16:28:29] darix: havenwood: isnt that what highline or termios do?
[16:29:13] adaedra: darix: wants to supress ruby output, not user entry, if I understood correctly
[16:29:42] darix: adaedra: i read it as "i want to hide the user input"
[16:29:42] ascarter: has joined #ruby
[16:29:58] darix: which especially makes sense with the password thing
[16:30:42] `El`Santo: has joined #ruby
[16:30:43] RobertBirnie: has joined #ruby
[16:31:53] banister: has joined #ruby
[16:32:03] adaedra: darix: but does not fill request of: silent{ puts 'hi' } #=> *nothing*
[16:32:36] Vile`: has joined #ruby
[16:33:18] juanpablo___: has joined #ruby
[16:33:59] adaedra: Vimz: there's this, can be used as inspiration, along with havenwood's suggestions
[16:34:01] adaedra: https://github.com/rubyworks/facets/blob/master/lib/core/facets/kernel/silence.rb
[16:35:13] adaedra: this { yield } thing is yucky though
[16:36:27] mdavid613: has joined #ruby
[16:36:54] fullofcaffeine: has joined #ruby
[16:37:46] NeverDie: has joined #ruby
[16:38:12] pengin: has joined #ruby
[16:38:15] RobertBirnie: has joined #ruby
[16:39:13] polpak: has joined #ruby
[16:39:51] sanguisdex: has joined #ruby
[16:41:29] carlosoliveira: has joined #ruby
[16:41:45] gwendall: has joined #ruby
[16:42:08] bizportal: has joined #ruby
[16:44:10] devdazed: has joined #ruby
[16:44:52] baweaver: has joined #ruby
[16:45:24] Rubie: has joined #ruby
[16:45:47] vimz: adaedra. that might just about do it..thanks all :)
[16:46:27] bootstrappm: has joined #ruby
[16:46:44] lostcuaz: has joined #ruby
[16:47:18] senayar: has joined #ruby
[16:48:13] railsraider: has joined #ruby
[16:49:01] diegoviola: has joined #ruby
[16:49:51] ddarkpassenger: has joined #ruby
[16:50:27] Scripore: has joined #ruby
[16:51:22] havenwood: darix: I'm not really familiar with termios but highline would do it nicely. Or I'd probably just write the single method myself unless I was using other highline stuff.
[16:51:26] fantazo: has joined #ruby
[16:51:27] havenwood: bootstrappm: g'mornin
[16:51:30] Muhannad: has joined #ruby
[16:52:40] leafybasil: has joined #ruby
[16:54:28] rbowlby: has joined #ruby
[16:54:32] prefixed: yo. anyone have any ideas as to how I can wait while some asynchronous code completes?
[16:55:45] michaeldeol: has joined #ruby
[16:55:49] crazydiamond: has joined #ruby
[16:56:08] _djbkd: has joined #ruby
[16:57:44] Kully3xf_: has joined #ruby
[16:58:26] khebbie: has joined #ruby
[16:58:30] khebbie_: has joined #ruby
[16:59:26] jhass: prefixed: asynchronous using what?
[16:59:52] prefixed: net-ssh. i am using exec
[17:01:28] jhass: prefixed: http://www.rubydoc.info/gems/net-ssh/Net/SSH/Connection/Session#exec!-instance_method
[17:01:49] prefixed: exec is too slow
[17:02:25] wpp: has joined #ruby
[17:02:27] jhass: oh, so you want to run multiple in parallel and wait for all of them? Why do I have to guess that?
[17:02:33] Jackneill: has joined #ruby
[17:02:47] prefixed: i think i might have a solution. sec
[17:02:49] usershell: has joined #ruby
[17:03:56] jhass: exec should return you the Channel on which you can call wait
[17:04:08] jhass: so try collecting them and then just .each(&:wait)
[17:04:35] paulcsmith: has joined #ruby
[17:04:43] Scripore: has joined #ruby
[17:05:41] calleerlandsson: has joined #ruby
[17:06:00] eam: prefixed: if you're looking for a simple gem to do multiplexed ssh: https://github.com/square/mssh
[17:07:08] wallerdev: has joined #ruby
[17:07:45] JimmyNeutron: has joined #ruby
[17:08:47] beef-wellington: has joined #ruby
[17:09:03] prefixed: I've never done anything like this before. Here's my method though. It isn't clear to me as to how I'd make the exec loop block until finished: http://pastebin.com/RsKrYFU7
[17:09:04] ruboto: prefixed, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/73e1e5b2b863a0726a5c
[17:09:04] ruboto: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[17:09:15] mikecmpbll: has joined #ruby
[17:10:45] icebourg: has joined #ruby
[17:10:47] ruurd: has joined #ruby
[17:11:01] codecop: has joined #ruby
[17:11:19] icebourg: has joined #ruby
[17:11:47] prefixed: I suppose exec could work for this
[17:12:14] sanguisdex: has joined #ruby
[17:14:11] Salve: has joined #ruby
[17:14:19] mdavid613: has joined #ruby
[17:14:26] prefixed: i can't believe I screwed this up so badly. what a moron
[17:15:36] fractalis: has joined #ruby
[17:15:59] apeiros: prefixed: ey, stop calling people morons, that's rude! ;-p
[17:16:11] ruurd: has joined #ruby
[17:17:10] icebourg: has joined #ruby
[17:17:33] Rubie: has joined #ruby
[17:18:04] ellisTAA: has joined #ruby
[17:18:20] blueOxigen: has joined #ruby
[17:19:24] prefixed: ok. non-ruby question: how do you guys get better at recognizing details?
[17:19:57] usershell: has joined #ruby
[17:20:59] busterarm: what kind of details?
[17:21:08] busterarm: (it's an interesting question)
[17:21:38] MrBeardy: has joined #ruby
[17:24:58] sp4rrow: has joined #ruby
[17:25:01] paulcsmith: has joined #ruby
[17:25:37] bhorn1|away: has joined #ruby
[17:25:43] jhass: ?guys prefixed
[17:25:43] ruboto: prefixed, we're not all guys - while you probably don't meant to be exclusive, not everybody feels that way. Maybe consider using "folks", "y'all" or "everyone" instead?
[17:26:23] jhass: to answer: usually you try to reduce the thing you look at to the minimum
[17:26:37] sshuff|gone: has joined #ruby
[17:26:42] jhass: for example in the code you pasted you could try to extract stuff into smaller methods with descriptive names
[17:26:57] jhass: finding the names already makes you think about the details of what you're extracting
[17:28:50] prefixed: jhass sorry. I generally consider "guys" to be gender-agnostic. However, for the benefit of immersion, i'll use this channel's vernaclar
[17:29:04] busterarm: so i have a cognitive distortion with filterting
[17:29:07] busterarm: err filtering
[17:29:38] prefixed: I tend to feel like I go too fast when programming. I gloss over the details because I'm so concerned with finishing
[17:29:39] busterarm: focus is something that is practiced, honestly
[17:29:43] MrBeardy: "guys" as a gender-agnostic definition is perfectly reasonable: http://dictionary.reference.com/browse/guy
[17:29:59] jhass: ?guys2 mrbeardy
[17:29:59] ruboto: mrbeardy, it doesn???t matter if it???s "normal"/gender neutral to say "guys" in your idiolect. "You guys" to refer to a mixed group is erasure. All we ask from you is to be a decent channel member and respect that. If you want to further discuss this, join #ruby-offtopic.
[17:30:04] blaines: has joined #ruby
[17:30:42] eam: jhass: that's veering into insanity
[17:30:48] k3asd`: has joined #ruby
[17:31:09] eam: you can't just say "it doesn't matter if it isn't; it is"
[17:31:11] tjohnson: has joined #ruby
[17:31:12] AnarchoHacker: has joined #ruby
[17:31:13] blaines_: has joined #ruby
[17:31:18] busterarm: that's the rules of the channel guys, if you want to debate it, #ruby-community
[17:31:23] busterarm: it is because "said so"
[17:31:51] eam: the irony
[17:31:54] MrBeardy: just seems like it takes less effort to gloss over it than to point it out
[17:31:54] busterarm: and I don't even disagree with you
[17:32:02] eam: busterarm: evidently not as you used "guys" :)
[17:32:21] eam: anyway, whenever I see this kind of nit-picky fringe social theory I'm gonna criticize it
[17:32:36] eam: it distracts from the reason we're here (which is ruby)
[17:33:40] busterarm: it is probably the second most common topic discussion after actual questions about ruby...
[17:33:53] jhass: take it to -offtopic or stop.
[17:33:57] ljarvis: so lets stop talking about it; any more discussion please move to -offtopic
[17:34:13] MrBeardy: could have all been avoided by ignoring it in the first place
[17:35:16] bootstrappm: +1 for inclusion
[17:35:31] timonv: has joined #ruby
[17:36:12] schaerli: has joined #ruby
[17:36:54] JohnBat26: has joined #ruby
[17:37:46] busterarm: i'm all for breaking down barriers
[17:38:00] benlovell: has joined #ruby
[17:38:42] eam: I'm into talking about ruby or related technology, personally
[17:38:44] CustosLimen: has joined #ruby
[17:39:09] rdark: has joined #ruby
[17:39:30] eam: would rather not spend time beating up on people for using subjective terminology
[17:39:38] bootstrappm: I'm into allowing everybody to talk about ruby feeling equally comfortable ;)
[17:39:43] jhass: !kick eam take it to #ruby-offtopic
[17:39:43] helpa: jhass: No.
[17:39:43] ruboto: ruboto kicked eam: it to #ruby-offtopic
[17:39:43] ruboto: -o ruboto
[17:39:47] shadoi: has joined #ruby
[17:39:50] bootstrappm: i'll go there toooo
[17:39:53] eam: has joined #ruby
[17:41:11] zapata: has joined #ruby
[17:41:44] webopsx: has joined #ruby
[17:41:47] postmodern: has joined #ruby
[17:43:45] benlovell: has joined #ruby
[17:44:07] Thr3d: has joined #ruby
[17:44:51] craysiii: has joined #ruby
[17:45:31] sarkyniin: has joined #ruby
[17:45:50] bronson: has joined #ruby
[17:46:47] dEPy: has joined #ruby
[17:47:08] kirun: has joined #ruby
[17:47:21] lkba_: has joined #ruby
[17:48:19] bruno-: has joined #ruby
[17:48:46] [Butch]: has joined #ruby
[17:49:09] bluOxigen: has joined #ruby
[17:49:25] RegulationD: has joined #ruby
[17:49:29] gix: has joined #ruby
[17:50:24] benlovell: has joined #ruby
[17:50:35] aryaching: has joined #ruby
[17:52:00] sypheren: has joined #ruby
[17:53:46] bruno-: has joined #ruby
[17:53:49] senayar: has joined #ruby
[17:53:49] senayar: has joined #ruby
[17:56:26] ynroot: has joined #ruby
[17:56:47] benlovell: has joined #ruby
[17:56:49] PaulCapestany: has joined #ruby
[17:56:51] j4cknewt: has joined #ruby
[17:58:06] shock_one: has joined #ruby
[17:58:16] solars: has joined #ruby
[17:59:10] bruno-: has joined #ruby
[17:59:44] charliesome: has joined #ruby
[17:59:44] allomov: has joined #ruby
[18:00:45] aevitas: has joined #ruby
[18:01:58] parduse: has joined #ruby
[18:02:09] deol: has joined #ruby
[18:03:09] allomov: has joined #ruby
[18:03:09] leex: has joined #ruby
[18:04:28] bruno-: has joined #ruby
[18:04:52] sargas: has joined #ruby
[18:06:22] michael_mbp: has joined #ruby
[18:07:22] Kully3xf: has joined #ruby
[18:08:36] benlovell: has joined #ruby
[18:08:56] rideh: has joined #ruby
[18:09:46] texasmade: has joined #ruby
[18:10:03] NeverDie: has joined #ruby
[18:10:20] dstarh: has joined #ruby
[18:10:25] sigurding: has joined #ruby
[18:10:28] senayar: has joined #ruby
[18:10:39] yaw: has joined #ruby
[18:10:45] {756d6f}: has joined #ruby
[18:11:05] parduse: has joined #ruby
[18:11:45] NeverDie: has joined #ruby
[18:12:46] ruurd: has joined #ruby
[18:13:25] momomomomo: has joined #ruby
[18:13:35] Igorshp: has joined #ruby
[18:13:40] nveselinov: has joined #ruby
[18:14:21] jenrzzz: has joined #ruby
[18:14:42] s2013: has joined #ruby
[18:15:03] benlovell: has joined #ruby
[18:16:05] shevy: at which point should a project become a deserving 1.0.0 version
[18:16:35] yorickpeterse: shevy: when the API is considered stable
[18:16:40] busterarm: is #ruby-lang shut down or something?
[18:16:56] busterarm: or is that more of a question for the #freenode channel?
[18:17:10] shevy: #ruby-lang merged into #ruby a while ago
[18:17:25] shevy: jhass killed #ruby-lang :>
[18:17:26] craysiii: were there any conflicts? ;)
[18:17:32] shevy: no. jhass won
[18:17:54] shevy: our former arch enemies at #ruby-lang are now allies
[18:18:22] acovrig: has joined #ruby
[18:18:40] acovrig: Is there any way to get the text of an element (mechanize) without getting the text of the children also?
[18:18:55] chris2: now there is talking all the time. so annoying. ;)
[18:19:27] swills: has joined #ruby
[18:19:59] acovrig: somehow I beat the ChanServ to it???s status line, did my question about machanize go through?
[18:20:23] acovrig: OK, thanks
[18:20:27] yaw: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[18:20:42] wmoxam: shevy: we all win
[18:20:47] childz: has joined #ruby
[18:20:50] wmoxam: winners all around
[18:21:16] acovrig: when I do .text on the td, I get the text I want, but sometimes there is a div/span/p inside that has text that gets roped into the td.text???
[18:21:18] shevy: well one win would be that the channel is bigger nowadays
[18:21:30] quimrstorres: has joined #ruby
[18:21:48] michaeldeol: has joined #ruby
[18:21:58] JDeen: has joined #ruby
[18:22:30] psye: has joined #ruby
[18:24:44] swills: has joined #ruby
[18:25:32] dfockler: all the people who usually answer questions are busy arguing
[18:25:50] benlovell: has joined #ruby
[18:26:19] ynroot: has joined #ruby
[18:26:29] childz: has left #ruby: ()
[18:26:44] chipotles: has joined #ruby
[18:27:02] bootstrappm: acovrig not any easy way that I know if. The solution to me would be to get the text of all the children (just one level deep) and subtract it from the general text
[18:28:25] acovrig: bootstrappm: since the div isn???t always there, wouldn???t I need something like if children.count > 0 so I don???t throw an exception from looking for the non-existant div?
[18:29:38] riotjones: has joined #ruby
[18:30:07] bootstrappm: no acovrig I don't think so. Use the .children method of the underlying Nokogiri instance then .each on it to get the text. If there's no children it'll just give you an empty array and the each won't do anything
[18:30:22] ndrei: has joined #ruby
[18:30:41] ljarvis: acovrig: css or xpath?
[18:30:45] ljarvis: or neither
[18:30:54] ljarvis: (if you're using the mechanize helper methods)
[18:31:10] yaw: has joined #ruby
[18:31:46] busterarm: dfockler: lol
[18:32:37] arup_r: >> require 'date'; p (Date.today .. Date.today.next_day(7)).size
[18:32:39] ruboto: arup_r # => nil ...check link for more (https://eval.in/406892)
[18:32:44] arup_r: why it is `nil` ?
[18:32:57] arup_r: >> require 'date'; p (Date.today .. Date.today.next_day(7)).to_a.size
[18:32:58] ruboto: arup_r # => 8 ...check link for more (https://eval.in/406894)
[18:33:08] arup_r: is giving correct result
[18:33:14] parduse: has joined #ruby
[18:33:31] bootstrappm: arup_r Ranges don't have a size method probs, letm e check
[18:33:40] arup_r: No it has
[18:33:50] arup_r: http://ruby-doc.org/core-2.2.0/Range.html#method-i-size
[18:33:50] bootstrappm: yeah, you're right
[18:34:03] bootstrappm: ahhh read that well
[18:34:08] bootstrappm: it says if not numeric then nil returned
[18:34:12] bootstrappm: there you go :)
[18:34:47] ljarvis: acovrig: but basically, you can use > text (css) or /text() (xpath): https://gist.github.com/leejarvis/5ae1b658d69ab60f3c62 if you only want the parent text
[18:34:50] arup_r: so i need to expend the array to get the count.. lol Ruby is weak in this part
[18:35:09] ljarvis: acovrig: if something isn't working or you have a feature suggestions, please let me know on the mechanize issue tracker
[18:35:29] ips|malc: has joined #ruby
[18:35:35] arooni-mobile: has joined #ruby
[18:36:16] podman: has joined #ruby
[18:36:33] roolo: has joined #ruby
[18:36:34] JoshGlzBrk: has joined #ruby
[18:36:48] blaines_: has joined #ruby
[18:37:04] acovrig: bootstrappm, ljarvis: thanks, I???ll look into that, unfortuantely this project just back-burnered for now though...
[18:37:29] Ox0dea: arup_r: You're trying to determine how many days are left in the current week, yes?
[18:37:35] Bish: can someone tell me how to handle HEAD requests with webmachine?
[18:37:42] benlovell: has joined #ruby
[18:37:49] ljarvis: Bish: yeah, first step: remove webmachine
[18:38:05] bootstrappm: arup_r feel free to contribute ;) the source is in the link you sent
[18:38:07] Bish: ljarvis, and replace it with what?
[18:38:17] parduse: has joined #ruby
[18:38:27] Bish: ljarvis, and what is the problem with webmachine?
[18:39:20] havenwood: Bish: What's the problem with HEAD requests? Added 'HEAD' to #allowed_methods and they don't work?
[18:39:24] ljarvis: Bish: actually I was mixing it up with something else; so I take that back. I don't know anything about webmachine I'm afraid
[18:39:49] paulcsmith: has joined #ruby
[18:39:52] Bish: havenwood, it doesn't do anything it just says 200 OK
[18:40:06] Bish: i don't know how to fill the response when using head
[18:40:07] havenwood: Bish: And what does a GET say?
[18:40:17] ljarvis: fill the response? it's a HEAD request..
[18:40:34] ljarvis: it has no body
[18:40:38] havenwood: Bish: 200 OK is correct?
[18:40:43] yfeldblum: has joined #ruby
[18:40:55] havenwood: Bish: If so, it's working. ;)
[18:40:55] Bish: what exactly does head do, since restful wiki says it "shows metadata of the resource"
[18:40:59] sinkensabe: has joined #ruby
[18:41:19] juanpablo___: has joined #ruby
[18:41:20] aevitas_: has joined #ruby
[18:41:20] Bish: ah. you want to tell me, showing the http headers is the point
[18:41:40] havenwood: Bish: A HEAD request MUST NOT return a message-body in the response.
[18:41:52] ljarvis: all 'bout those headers
[18:41:56] Bish: is it dirty to add custom headers when wanting to do crud?
[18:42:01] ljarvis: see curi -I also
[18:42:01] havenwood: Bish: Otherwise the metadata should be the same as the identical GET request.
[18:42:23] ljarvis: Bish: custom headers for what?
[18:42:42] Bish: well it's the first time im doing crud, and i want to find a clean way to display the fieldnames of the resource
[18:42:56] Bish: s/it's/its
[18:43:12] benlovell: has joined #ruby
[18:43:34] Bish: in this case, the fieldnames of the sql-table
[18:43:43] Ox0dea: Bish: Unnecessary substitution there.
[18:43:57] Contigi: has joined #ruby
[18:44:10] Bish: Ox0dea, not a native speaker ;)
[18:44:29] Ox0dea: No worries. Just thought I'd point it out.
[18:45:13] Bish: havenwood, would you be so kind and give me a hint, how i would do that ?
[18:45:19] workmad3: has joined #ruby
[18:46:21] symm-: has joined #ruby
[18:46:40] ruurd: has joined #ruby
[18:46:40] bruno-: has joined #ruby
[18:46:51] n008f4g_: has joined #ruby
[18:48:01] leesharma: has joined #ruby
[18:48:21] danman: has joined #ruby
[18:48:32] aryaching: has joined #ruby
[18:49:13] jackjackdripper: has joined #ruby
[18:49:47] Igorshp: has joined #ruby
[18:50:18] ndrei: has joined #ruby
[18:50:25] lannonbr: has joined #ruby
[18:50:57] Stany: has joined #ruby
[18:51:35] fantazo: has joined #ruby
[18:51:35] benlovell: has joined #ruby
[18:51:41] Ox0dea: Bish: Keep your scheming comments to yourself.
[18:53:29] pocketprotector: has joined #ruby
[18:53:52] Tamae: has joined #ruby
[18:55:28] Scripore: has joined #ruby
[18:57:01] blaines: has joined #ruby
[18:57:21] Kalov: has joined #ruby
[18:57:29] Kully3xf: has left #ruby: ()
[18:58:01] troulouliou_dev: has joined #ruby
[18:58:23] blaines_: has joined #ruby
[18:59:59] Mon_Ouie: has joined #ruby
[19:00:56] sargas: has joined #ruby
[19:01:01] Alina-malina: has joined #ruby
[19:01:45] chills42: has joined #ruby
[19:02:10] Matthews_: has joined #ruby
[19:02:29] stantonnet: has joined #ruby
[19:03:07] Bish: is it dirty to have the fieldnames of the crud resource in the header?
[19:03:21] matthew__: has joined #ruby
[19:03:48] ljarvis: Bish: more pointless than anything
[19:03:52] Zai00: has joined #ruby
[19:03:57] Bish: then how would i do that?
[19:04:14] Bish: have the field names in my web application
[19:04:23] ljarvis: what are you trying to do exactly?
[19:04:37] ruby-lang574: has joined #ruby
[19:04:43] higuys: has joined #ruby
[19:04:47] Bish: i need to have the field names of the resource in my webapplication, in this case the column names of the mysql-table;
[19:04:54] weemsledeux: has joined #ruby
[19:05:04] ruby-lang574: is anybody familiar with resque?
[19:05:26] ljarvis: Bish: that's so vague, but i'll try to make some assumptions. Are you using JSON?
[19:05:39] ljarvis: ruby-lang574: a little, though we switched to sidekiq quite some time ago
[19:05:45] ljarvis: Bish: so, you return the values as JSON
[19:06:29] ryanprior: has joined #ruby
[19:06:29] ljarvis: JSON encoded in the response body
[19:06:30] ruby-lang574: my understanding is that resque retrieves jobs from redis, am i correct? the thing is that since in am running on a VPS resque seems to require quite a bit of resources to run.
[19:06:58] ljarvis: ruby-lang574: that is correct
[19:07:02] ruby-lang574: i was wondering if i can push jobs from one or more servers that are not running workers into redis
[19:07:12] ruby-lang574: and have a dedicated system to run the workers
[19:07:21] jhass: ruby-lang574: sure, they just need a shared Redis instance
[19:07:27] ljarvis: ruby-lang574: yes, that's generally how it would be done in a production environment
[19:07:33] jhass: make sure employ proper authentication or at least firewalling
[19:07:39] ruby-lang574: i am using firewalling
[19:07:51] ruby-lang574: and basic authentication user and password
[19:07:59] spider-mario: has joined #ruby
[19:08:04] ryanprior: I have a big ugly destructuring line, can I get any suggestions for simplifying it or making better use of the language to make it readable? The line is: Conjur::Command.api.resources.map { |r| r.attributes["permissions"] }.reject(&:empty?).flatten.map { |r| r["role"] }.uniq.map { |r| r.split(":").drop(1).join(":") }
[19:08:08] ruby-lang574: all right thanks!! will try it
[19:08:32] Ox0dea: ryanprior: Can you given decent names to any of the intermediates?
[19:08:35] chipotles: has joined #ruby
[19:08:50] Bish: ljarvis, then i won't have the fieldnames without doing a query on the resource
[19:09:03] Ox0dea: ryanprior: Prefer flat_map over flatten.map.
[19:09:36] blue_deref: has joined #ruby
[19:10:31] sarkyniin: has joined #ruby
[19:12:15] bruno-: has joined #ruby
[19:12:49] ryanprior: Ox0dea: flat_map appears not to recursively flatten, so unfortunately it's not quite the same. I could give the intermediates names just to help the reader follow the logic.
[19:13:47] hahuang65: has joined #ruby
[19:14:04] ryanprior: I feel like there ought to be a standard way of destructuring like some_hash.map( |entry| entry[someattribute] ) since that's a common pattern?
[19:14:51] sinkensabe: has joined #ruby
[19:15:30] Ox0dea: ryanprior: You're right about #flat_map, but I figured it might nevertheless be applicable in your case.
[19:15:51] Ox0dea: map(&:[], 'foo') would be nice, but we don't have it and might never. :/
[19:16:15] Ox0dea: You could convert your Hash to an OpenStruct to expose its keys as methods, but that's surely overkill just to clean up a line.
[19:17:18] dwithers: has joined #ruby
[19:17:42] bruno-: has joined #ruby
[19:18:43] Ox0dea: ryanprior: You could hash.map(&_['foo']) with Uberscore (https://gist.github.com/0x0dea/628de90e12acc1874a9a).
[19:18:48] Ox0dea: (But don't._
[19:19:07] kraljev11: has joined #ruby
[19:20:01] jobewan: has joined #ruby
[19:21:03] ruurd: has joined #ruby
[19:22:01] Joost`: has left #ruby: ("-")
[19:23:07] quimrstorres: has joined #ruby
[19:24:27] jhass: shock_one: ^
[19:24:52] shinnya: has joined #ruby
[19:24:56] shock_one: jhass: excuse me?
[19:25:06] solars: has joined #ruby
[19:25:07] jhass: wasn't it you with &"foo"?
[19:25:20] webopsx: has joined #ruby
[19:25:28] chipotle: has joined #ruby
[19:26:37] shock_one: That's right, jhass. Maybe we could even pass the value to the constructor, like hash.map(&_ 'foo'), I'm not sure if the priorities are right.
[19:26:56] shock_one: Oops, it won't be a constructor.
[19:27:16] shock_one: Anyway, _ could be a method.
[19:27:43] shock_one: Or can't it?
[19:27:43] Scripore: has joined #ruby
[19:28:25] Igorshp: has joined #ruby
[19:28:43] Mon_Ouie: Is '&_.call("foo")' what you're trying to do?
[19:28:49] kadoppe: has joined #ruby
[19:29:05] shock_one: Mon_Ouie: I'm trying to make the interface prettier.
[19:30:33] sarkyniin: has joined #ruby
[19:31:27] shock_one: Wait a minute, I misunderstood the concept of the class. It's pretty fucking amazing, Ox0dea!
[19:31:54] allcentury: has joined #ruby
[19:32:20] Ox0dea: shock_one: Ha. Glad you like it, but it's really only for laughs.
[19:32:30] tanath: has joined #ruby
[19:32:57] shock_one: I'd also use "it" as the kernel method name.
[19:33:05] selva: has joined #ruby
[19:33:19] shock_one: But that might be after my yesterday's impression of Kotlan.
[19:33:42] shock_one: Kotlin, that is.
[19:33:50] parduse: has joined #ruby
[19:34:12] j4cknewt: has joined #ruby
[19:34:13] casadei_: has joined #ruby
[19:35:03] selva: Hello Everyone
[19:35:03] selva: lp={"place_entity_attributes"=>{ "id"=> "123456"}, "secondary_entity_id"=>"169435"}
[19:35:07] selva: I want to order this in reverse alphabetical order
[19:35:12] Cache_Money: has left #ruby: ()
[19:35:31] selva: >> sorted=lp.sort.reverse
[19:35:32] selva: => [["secondary_entity_id", "169435"], ["place_entity_attributes", {"id"=>"123456"}]]
[19:35:32] ruboto: selva # => undefined local variable or method `lp' for main:Object (NameError) ...check link for more (https://eval.in/406919)
[19:35:35] selva: Now It is sorted in reverse alphabetical as an array
[19:35:37] selva: but when i convert back to hash it doesn't preserve the order.
[19:35:37] selva: >> Hash[sorted]
[19:35:37] selva: => {"place_entity_attributes"=>{"id"=>"123456"}, "secondary_entity_id"=>"169435"}
[19:35:38] ruboto: selva # => undefined local variable or method `sorted' for main:Object (NameError) ...check link for more (https://eval.in/406920)
[19:35:58] selva: I am using Ruby = 1.8.7 & Rails 2.3.18
[19:35:58] selva: can anyone please help me on this
[19:36:24] shock_one: selva: bad luck, Hash in 1.8 doesn't preserve order.
[19:36:41] Antiarc: selva: Hashes in Ruby 1.8 are not ordered
[19:36:55] DLSteve: has joined #ruby
[19:37:12] shock_one: Ox0dea: why didn't you inherit from BasicObject?
[19:37:20] selva: Is there any workaround solutions
[19:37:23] Antiarc: selva: Look into ActiveSupport::OrderedHash - that should be included in your version of ActiveSupport
[19:37:25] Antiarc: As used by Rails
[19:37:31] yqt: has joined #ruby
[19:38:04] Ox0dea: shock_one: I remove every single method.
[19:38:33] shock_one: Ox0dea: I see, but isn't inheriting from BasicObject a better way?
[19:38:41] Ox0dea: I would still need to remove some methods.
[19:38:47] selva: Antiarc: thanks, but tried that too. it didn't help. at the time of convert back to hash, it doesn't preserve the order
[19:39:04] sargas: has joined #ruby
[19:39:08] Antiarc: You can't convert it back to a hash, you have to convert it back to an ActiveSupport::OrderedHash
[19:39:44] selva: Antiarc: how to do that
[19:39:45] rideh: has joined #ruby
[19:39:54] Antiarc: Look at the OrderedHash API docs - I don't know offhand
[19:40:05] Antiarc: If you upgrade to Ruby 1.9+ then hashes are ordered
[19:40:23] knrz: has joined #ruby
[19:41:06] tomaz_b: has joined #ruby
[19:41:09] Ox0dea: shock_one: Do you see how none of the code would change if I explicitly inherited from BasicObject?
[19:41:17] knrz: has left #ruby: ()
[19:41:19] Ox0dea: undef_method would have a little less work to do, but it only runs the once.
[19:42:37] sanguisdex: has joined #ruby
[19:42:43] allomov: has joined #ruby
[19:42:54] arup_r: suppose I have a hash which has package name and ranges of weekdays falls into the package. How can I get all possible full packages fall for any given date ranges ? https://gist.github.com/aruprakshit/bccee3f1524721743a7d
[19:43:13] centrx: has joined #ruby
[19:43:18] selva: Antiarc: https://gist.github.com/selvait90/58cdf5c46fe89feeeea7
[19:43:46] ramfjord: has joined #ruby
[19:43:51] Antiarc: selva: There's no OrderedHash method correlary to the Hash method. You'll need to check the API docs.
[19:44:00] selva: Antiarc: we have compatibility issues, so we can't upgrade it
[19:44:01] prestorium: has joined #ruby
[19:44:13] Antiarc: Its constructor probably accepts an array of [key, val] pairs
[19:44:16] gix: has joined #ruby
[19:44:42] Antiarc: You're looking for a method that takes an array of key/val pairs and returns an OrderedHash
[19:45:10] selva: Antiarc: http://apidock.com/rails/v2.3.8/ActiveSupport/OrderedHash it doesn't have much info
[19:45:40] Antiarc: http://apidock.com/rails/v2.3.8/ActiveSupport/OrderedHash/%5B%5D/class
[19:45:57] benlovell: has joined #ruby
[19:46:07] Antiarc: ActiveSupport::OrderedHash[oh.sort.reverse.flatten(1)]
[19:46:28] Antiarc: ActiveSupport::OrderedHash[*oh.sort.reverse.flatten(1)]
[19:46:30] Antiarc: That should do it
[19:46:45] Ox0dea: selva: It seems you have to explicitly request the OrderedHash's keys and work from there.
[19:46:49] ruurd: has joined #ruby
[19:47:06] Ox0dea: The #inspect representation might not be in order, but #keys will be.
[19:47:11] ellisTAA: has joined #ruby
[19:47:16] prettiestPony11: has joined #ruby
[19:49:05] weemsledeux: has joined #ruby
[19:49:52] selva: Antiarc: even thats not working
[19:49:53] selva: >> ActiveSupport::OrderedHash[*oh.sort.reverse.flatten(1)]
[19:49:54] ruboto: selva # => uninitialized constant ActiveSupport (NameError) ...check link for more (https://eval.in/406932)
[19:49:54] selva: => #<OrderedHash {"place_entity_attributes"=>{"id"=>"123456"}, "secondary_entity_id"=>"169435"}>
[19:50:02] Antiarc: Did you require ActiveSupport?
[19:50:13] Antiarc: Oh, that was ruboto
[19:50:44] bootstrappm: has left #ruby: ()
[19:50:59] Antiarc: (Why do you need ordered hashes, out of curiosity? That *usually* means you're doing something you probably shouldn't be)
[19:51:00] selva: Ox0dea: I couldn't get your thoughts, could you pls explain in detail
[19:51:17] EminenceHC: has joined #ruby
[19:51:38] selva: Antiarc: I am facing this issue https://github.com/rails/rails/issues/7256
[19:51:55] selva: In my application
[19:51:57] selva: lp={"place_entity_attributes"=>{ "id"=> "123456"}, "secondary_entity_id"=>"169435"}
[19:52:04] parduse: has joined #ruby
[19:52:23] sinkensabe: has joined #ruby
[19:53:19] pietr0: has joined #ruby
[19:53:23] bootstrappm: has joined #ruby
[19:53:26] arup_r: guys idea please
[19:53:31] selva: in the above part of Hash, if I have the secondary_entity_id attribute at first, the update_attributes process doesn't throw the error
[19:53:40] momomomomo: has joined #ruby
[19:54:07] aevitas: has joined #ruby
[19:54:15] kokoleavia: has joined #ruby
[19:55:17] goldfax: has joined #ruby
[19:55:37] anisha: has joined #ruby
[19:55:54] selva: Antiarc: I mean, I have scenario like in that github issue. When the application have secondary_entity_id at first it doesn't throw error. When it have secondary_entity_id at last, it throws error "ActiveRecord::RecordNotFound (Couldn't find PlaceEntity with ID=59790 for DiagnosticFacility with ID=):"
[19:56:01] lkba: has joined #ruby
[19:56:33] selva: So I wanted to keep the secondary_entity_id attribute first in the Hash
[19:56:51] dfockler: how the heck do I set a variable in one rspec test then use it in another rspec test?
[19:57:14] Antiarc: dfockler: You shouldn't; tests should be separate. Use let() to define values that are visible to to tests, though
[19:57:27] Antiarc: selva: I'd suggest looking at the implementation to see how it's trying to extract the ID; I would be extremely surprised if it's actually order-dependent
[19:57:31] danman: has joined #ruby
[19:59:22] selva: Antiarc: It was working good before, I have upgraded from 2.3.5 to 2.3.18 and it started throwing error only at times as i mentioned above
[19:59:31] JoshL: has joined #ruby
[19:59:50] sp4rrow: has joined #ruby
[20:00:39] selva: It works like charm when secondary_entity_id at first
[20:01:25] Frem: has joined #ruby
[20:01:42] selva: The implementation looks good, it has mentioned secondary_entity_id clearly
[20:01:45] selva: class DiagnosticFacility < Participation belongs_to :place_entity, :foreign_key => :secondary_entity_id
[20:02:07] selva: class DiagnosticFacility < Participation
[20:02:13] selva: belongs_to :place_entity, :foreign_key => :secondary_entity_id
[20:02:59] shock_one: Ox0dea: https://gist.github.com/shockone/d04f8adf563934f1431b
[20:03:34] _blizzy_: has joined #ruby
[20:04:24] Antiarc: The implementation of accepts_nested_attributes_for, I mean, in Rails
[20:04:36] shock_one: If you won't make a gem, I'll hate you.
[20:04:54] shock_one: (or will make it by myself).
[20:05:02] adaedra: doooo iiiiit
[20:05:02] fractalis: has joined #ruby
[20:05:55] shock_one: I chose it because an underscore is used as an argument that doesn't mean anything, Ox0dea.
[20:06:05] Ox0dea: shock_one: Go for it. The context class really oughtn't have any instance methods, though.
[20:06:05] shevy: The variable without a name.
[20:06:23] Ox0dea: Not even __id__ or __send__, in case the user wants to use those.
[20:08:03] adaedra: shock_one: actually, _ alone has a bit of a special meaning.
[20:08:21] shock_one: adaedra: that's what I'm saying.
[20:08:46] benlovell: has joined #ruby
[20:09:13] Ox0dea: shock_one: The Kernel method being _ doesn't interfere with it being used as a local identifier, for what that's worth.
[20:09:49] shock_one: Ox0dea: that's true, but it does interfere in people's minds.
[20:09:53] Bish: do i have to use mysql2 instead of mysql if i want utf8?
[20:10:18] Ox0dea: shock_one: Then again, here we are adding map chaining.
[20:11:11] galeido: has joined #ruby
[20:11:15] _blizzy_: has joined #ruby
[20:12:05] shock_one: Ox0dea: I didn't get it.
[20:13:02] neonalpine: has joined #ruby
[20:13:05] ruby-lang839: has joined #ruby
[20:13:12] Ox0dea: shock_one: As pertains interfering in people's minds?
[20:13:19] shock_one: Ox0dea: How about the name block-booster?
[20:13:47] Ox0dea: shock_one: Many Rubyists would be at least passing familiar with Underscore.js.
[20:14:05] Ox0dea: Not only does _ follow an established convention; it also has the benefit of not stealing an identifier.
[20:14:17] ruby-lang839: Im begin in ruby
[20:14:22] Ox0dea: ruby-lang839: Begin harder.
[20:14:44] Hanmac: has joined #ruby
[20:14:52] shock_one: Ox0dea: convinced.
[20:14:54] ruby-lang839: has left #ruby: ()
[20:15:07] Ox0dea: I've considered adding additional functionality to Uberscore.
[20:15:18] adaedra: ruby-lang839 didn't last long
[20:15:23] shock_one: Ox0dea: tell me.
[20:15:28] Ox0dea: Well, #zipmap would be nice.
[20:15:56] mwksl: has joined #ruby
[20:16:21] craysiii: adaedra i noticed that too lol
[20:16:39] Ox0dea: shock_one: We have to say zip(foo).map { |a, b| a + b }, but I think zip(foo, &_.+) would be nice.
[20:16:49] craysiii: why just say youre a beginner and leave?
[20:16:51] bootstrappm: has joined #ruby
[20:17:17] momomomomo: has joined #ruby
[20:17:23] Ox0dea: shock_one: Sorry, I meant #zip_with.
[20:17:50] nettoweb: has joined #ruby
[20:17:53] Ox0dea: https://bugs.ruby-lang.org/issues/4539
[20:18:06] Ox0dea: It's been in consideration for quite some time, but we'll probably not get it.
[20:18:49] dfockler: #zipzap, it'll delete half of your array
[20:19:05] shock_one: Ox0dea: I'd like to have Hash#map_values, which isn't happening as well. Let's think of a more flexible way to construct such calls.
[20:19:05] Ox0dea: dfockler: Which half?
[20:19:19] dfockler: every other element
[20:19:57] Ox0dea: shock_one: We have all sorts of ways to allow the context class to determine how it's being used.
[20:20:15] Blaguvest: has joined #ruby
[20:20:59] kokoleavia: has joined #ruby
[20:21:50] atmosx: has joined #ruby
[20:22:17] arup_r: suppose I have an array, and I want to group 3 elements there and want to check the total count how many 3 elements array exist there?
[20:22:26] ndrei: has joined #ruby
[20:22:29] arup_r: I tried something like
[20:22:39] dseitz: has joined #ruby
[20:22:39] arup_r: >> p (1..10).each_slice(3).count { |n| n.size == 3 }
[20:22:42] ruboto: arup_r # => 3 ...check link for more (https://eval.in/406946)
[20:22:47] hahuang65: has joined #ruby
[20:22:48] arup_r: but it is o(n2)
[20:22:53] tanath: has left #ruby: ("Leaving")
[20:23:02] arup_r: any cool way to do the same ?
[20:23:40] dfockler: >> (1..10).size / 3
[20:23:41] ruboto: dfockler # => 3 (https://eval.in/406947)
[20:24:04] romibuzi: has joined #ruby
[20:24:11] weaksauce: has joined #ruby
[20:24:55] dagda1: has joined #ruby
[20:24:59] wallerdev: has joined #ruby
[20:25:03] arup_r: I knew I am a dumb
[20:25:10] ellisTAA: has joined #ruby
[20:25:24] arup_r: dfockler, thanks
[20:25:31] dfockler: haha it's cool
[20:26:58] benlovell: has joined #ruby
[20:27:16] dfockler: depending on ruby's #size implementation it could be O(1) or O(n)
[20:27:21] shock_one: Ox0dea: maybe it would be better to have automatic currying, as in Haskell?
[20:27:22] sargas: has joined #ruby
[20:27:28] shock_one: [1,2,3].zip([4,5,6]).map(+)
[20:27:42] vimz: Right. How am I supposed to spec a custom matcher? Here I'm testing 'eq' works correctly. All specs shoud pass: https://gist.github.com/anonymous/68bb8f4d37a70a12723c Only the first exception passes. The expectations that contain failing expectations fail because the expectation inside them fails and doesnt return anything for the outerspec to evaluate.
[20:29:16] Igorshp: has joined #ruby
[20:29:20] Musashi007: has joined #ruby
[20:29:26] ndrei: has joined #ruby
[20:29:31] dfockler: shock_one: how would you handle arrays of different sizes?
[20:30:53] jhass: Vimz: you need to pass a block to expect
[20:31:00] acovrig: Is there any way (Xpath?) to find ???a??? elements (mechanize) that have an href begining with ???ViewAdmField????
[20:31:05] jhass: expect { stuff that raises }.to
[20:31:05] shock_one: dfockler: if there are less elements that there are parameters, we return a curried function, if more - the last argument is the rest of elements.
[20:31:08] cubicool: has left #ruby: ()
[20:31:11] paulcsmith: has joined #ruby
[20:32:27] safeforge: has joined #ruby
[20:32:43] Musashi007: has joined #ruby
[20:32:58] romibuzi: has joined #ruby
[20:33:18] yfeldblum: has joined #ruby
[20:33:24] Mia: has joined #ruby
[20:33:46] Mia: has joined #ruby
[20:34:28] Ox0dea: dfockler: Array#size is indeed O(1).
[20:34:51] Ox0dea: shock_one: That's an interesting approach, but it'd require monkey-patching, which is double-plus-ungood.
[20:34:52] Musashi007: has joined #ruby
[20:34:53] jhass: acovrig: yeah xpath has starts-with, a[starts-with(@href, "ViewAdmField")]
[20:35:02] Ox0dea: shock_one: Better to just make the context class really smart.
[20:35:09] jhass: er, single quotes I guess
[20:35:11] Kully3xf: has joined #ruby
[20:35:29] droidburgundy: has joined #ruby
[20:36:16] freerobby: has joined #ruby
[20:36:21] Musashi007: has joined #ruby
[20:36:29] Kully3xf: how can I throw a switch into a command
[20:36:30] Kully3xf: https://gist.github.com/anonymous/1847e9b505314f64ef49
[20:36:48] Mia: has joined #ruby
[20:36:48] Mia: has joined #ruby
[20:36:48] vimz: jhass ah yes . thanksies
[20:36:54] Kully3xf: I need to be able to throw in an additional flag to that command if there's an additional argument in the method
[20:36:54] sargas: has joined #ruby
[20:36:56] acovrig: jhass: .search("//a[starts-with(@href, 'ViewEntity.aspx?EntityID=')]") returns 0, but I can see one on the page...
[20:37:04] jhass: kully3xf: some syntax highlighting would be great on that one
[20:37:07] Kully3xf: is that possible? or should I jsut create an additional method
[20:37:24] sargas: has joined #ruby
[20:37:35] shock_one: Ox0dea: _ would break pry's last expression shortcut.
[20:37:39] jhass: acovrig: note that starts-with is very literal, no spaces, exact case etc
[20:37:44] Kully3xf: https://gist.github.com/anonymous/e9d9d0ad6cd2c4d72d0f
[20:38:09] acovrig: jhass: yes, HTML is <a href="/ViewEntity.aspx?EntityID=13940">Link-text-here</a>
[20:38:23] diegoviola: has joined #ruby
[20:38:25] jhass: acovrig: so it starts with /View not View
[20:38:36] acovrig: jhass: yea, just noticed that, it works now; thanks
[20:39:22] jhass: kully3xf: not sure I get your question
[20:39:34] pkrueger: has joined #ruby
[20:39:59] Kully3xf: so I want to include another flag, "--json-attributes" but only if they are passed
[20:40:08] Kully3xf: --json-attributes '{ \"pas\": { \"hostname\": \"#{instance[:hn]}\" } }' "
[20:40:22] Kully3xf: but only if a user requests that be added
[20:41:03] Kully3xf: so "do you want to add json attributes? y" then it adds it, if not don't. Wondering if there's a way to include an if statement mid command, or if I should just create a different method depending on user input
[20:41:07] Dreamer3: has joined #ruby
[20:42:00] jhass: >> add_a = true; add_b = false; "hey #{"aaa" if add_a}, ho #{"bbb" if add_b}"
[20:42:01] ruboto: jhass # => "hey aaa, ho " (https://eval.in/406969)
[20:42:12] jhass: kully3xf: ^ clear?
[20:43:07] Kully3xf: cool I'll play around with that
[20:43:35] Kully3xf: ah I see so you can further evaluate a #{} statement
[20:43:40] Kully3xf: I get it. Perfect, thanks
[20:44:57] jhass: kully3xf: pretty much any Ruby is valid inside #{} even further #{} ;)
[20:45:29] rideh: has joined #ruby
[20:45:43] ndrei: has joined #ruby
[20:46:22] duderonomy: has joined #ruby
[20:48:11] rodfersou: has joined #ruby
[20:48:15] mollymorphic: has joined #ruby
[20:48:44] nahtnam: has joined #ruby
[20:49:04] bronson: has joined #ruby
[20:49:22] Timba-as: has joined #ruby
[20:49:36] Zarthus: has joined #ruby
[20:50:28] Ox0dea: jhass: "Pretty much any"? What's not?
[20:51:21] jhass: I think we had this discussion before. I don't remember anything but I don't remember a definitive everything is allowed too
[20:51:31] benlovell: has joined #ruby
[20:51:45] Mon_Ouie: Something that uses __END__?
[20:51:45] jhass: not sure how you could even verify that
[20:52:25] Ox0dea: >> "#{__END__}"
[20:52:26] ruboto: Ox0dea # => undefined local variable or method `__END__' for main:Object (NameError) ...check link for more (https://eval.in/406972)
[20:52:28] Ox0dea: Mon_Ouie: You're good.
[20:53:11] romibuzi: has left #ruby: ()
[20:53:24] Ox0dea: BEGIN is also invalid, but END and at_exit are copacetic.
[20:53:40] ruurd: has joined #ruby
[20:54:17] dotix: has joined #ruby
[20:54:17] dotix: has joined #ruby
[20:54:42] arup_r: I have an array like [4,5,6,0,1,2,3,4,5,6,0,1,3] .. the digits are week day number... Now I want to count how many [4,5,6] array is present in the long array.
[20:54:57] arup_r: What is the better way to find it ?
[20:54:58] Mon_Ouie: each_cons + count
[20:55:34] arup_r: Mon_Ouie, that would't work
[20:55:56] arup_r: You answered my question or someone else ? :)
[20:56:37] ruby-lang787: has joined #ruby
[20:56:43] arup_r: If you answered me.. then that is not the solution of my question..
[20:56:45] leafybasil: has joined #ruby
[20:56:52] jhass: arup_r: elaborate?
[20:57:18] jhass: (on why it's not the solution)
[20:57:28] arup_r: How is it?
[20:57:45] ruby-lang787: is anybody familiar with grape apis and ruby HTTP apis in general?
[20:57:49] jhass: so you didn't even consider it yet
[20:57:55] rippa: each_cons will iterate over each group of 3
[20:58:11] jhass: >> [4,5,6,0,1,2,3,4,5,6,0,1,3].each_cons(3).count {|candidate| candidate == [4,5,6] }
[20:58:12] ruboto: jhass # => 2 (https://eval.in/406973)
[20:58:26] benlovell: has joined #ruby
[20:58:36] jhass: ?anyone ruby-lang787
[20:58:36] ruboto: ruby-lang787, Just ask your question, if anyone has or can, they will respond.
[20:58:37] Mon_Ouie: has joined #ruby
[20:58:38] arup_r: sorry I was reading it as each_slice.. sorry
[20:58:59] lguardiola: has joined #ruby
[20:59:27] ruby-lang787: i meant anybody. well my question is. what is a good way to load balance a grape ruby API
[20:59:53] ruby-lang787: and how sessions are handled when you are load balancing requests?
[21:00:07] MatthewsFace: has joined #ruby
[21:00:29] FernandoBasso: has joined #ruby
[21:00:49] nertzy: has joined #ruby
[21:01:25] jenrzzz: has joined #ruby
[21:02:24] quimrstorres: has joined #ruby
[21:02:53] shock_one: Ox0dea: enjoy. https://rubygems.org/gems/uberscore
[21:04:10] jsaak: has joined #ruby
[21:04:17] NeverDie: has joined #ruby
[21:04:38] j4cknewt: has joined #ruby
[21:06:32] rapha: has left #ruby: ("WeeChat 1.2")
[21:06:47] dagda1_: has joined #ruby
[21:07:02] wldcordeiro: has joined #ruby
[21:07:31] danman_: has joined #ruby
[21:07:48] senayar: has joined #ruby
[21:08:30] adgtl: has joined #ruby
[21:08:42] adgtl: https://ruby-operators.herokuapp.com/
[21:08:46] adgtl: https://ruby-operators.herokuapp.com/
[21:09:17] sinkensabe: has joined #ruby
[21:09:27] adgtl: And open for contribution https://github.com/anildigital/ruby-operators
[21:09:50] NeverDie: has joined #ruby
[21:10:11] Scripore: has joined #ruby
[21:10:32] PhantomSpank: has joined #ruby
[21:10:40] Ox0dea: Why didn't he stick around? :/
[21:10:46] Ox0dea: !~ should totally be called the bangarang.
[21:10:50] danman: has joined #ruby
[21:11:26] blaines: has joined #ruby
[21:11:37] bootstrappm: agreed Ox0dea, looked like a cool idea
[21:12:07] doerteDev: has joined #ruby
[21:12:09] Ox0dea: Can't think of anything clever for &&=, though.
[21:13:11] bootstrappm: kinda looks like eyes an a nose
[21:13:15] bootstrappm: &&= the platypus
[21:13:31] bootstrappm: http://www.zoo.org.au/sites/default/files/styles/zv_carousel_large/public/platypus-HS-animal-profile-web620.jpg?itok=vlgvXmwd
[21:13:54] bootstrappm: what's the twiddle wakka do?
[21:14:02] dfockler: two pretzels and a burger
[21:14:13] RickHull: bootstrappm: version constraints
[21:14:25] bootstrappm: anything else?
[21:14:25] Ox0dea: bootstrappm: It's for specifying "pessimistic" dependencies.
[21:14:28] RickHull: x ~> 1.0 (matches 1.anything but not 2.x)
[21:14:47] bootstrappm: because thats bundler that parses that right? not a part of the ruby lang?
[21:14:58] RickHull: it's a gem thing
[21:15:07] Ox0dea: But isn't it a syntax error in Ruby?
[21:15:19] RickHull: ah, i think so
[21:16:00] Xiti: has joined #ruby
[21:16:02] Ox0dea: You can pretty much arbitrarily chain the four unary operators, but > isn't one of them.
[21:16:11] pauly_oc: has joined #ruby
[21:17:46] arooni-mobile: has joined #ruby
[21:18:54] benlovell: has joined #ruby
[21:19:16] FernandoBasso: has joined #ruby
[21:20:40] zanloy: has joined #ruby
[21:21:55] pietr0_: has joined #ruby
[21:22:00] NeverDie: has joined #ruby
[21:23:20] gambl0re: has joined #ruby
[21:23:28] nettoweb: has joined #ruby
[21:24:43] swgillespie: has joined #ruby
[21:25:32] iWaffles: has joined #ruby
[21:26:07] Musashi007: has joined #ruby
[21:27:15] webopsx: has joined #ruby
[21:28:48] bruno-: has joined #ruby
[21:29:16] quimrstorres: has joined #ruby
[21:29:49] nettoweb: has joined #ruby
[21:29:55] tuxtgz: has joined #ruby
[21:30:24] Igorshp: has joined #ruby
[21:30:57] EagleDelta: has joined #ruby
[21:33:06] Helheim: has joined #ruby
[21:33:28] quimrstorres: has joined #ruby
[21:34:15] bruno-: has joined #ruby
[21:34:18] dimasg: has joined #ruby
[21:35:56] sp4rrow: has joined #ruby
[21:37:33] shock_one: has joined #ruby
[21:38:02] sdwrage: has joined #ruby
[21:39:44] bruno-: has joined #ruby
[21:40:23] mbeasley_: has joined #ruby
[21:40:23] user1138: has joined #ruby
[21:40:53] mbeasley_: has left #ruby: ()
[21:40:58] f4cl3y: has joined #ruby
[21:41:09] ascarter: has joined #ruby
[21:42:31] towski_: has joined #ruby
[21:44:29] rcvalle: has joined #ruby
[21:44:51] Emmanuel_Chanel: has joined #ruby
[21:44:54] benlovell: has joined #ruby
[21:45:08] bruno-: has joined #ruby
[21:46:19] freerobby: has joined #ruby
[21:47:55] theery: has joined #ruby
[21:48:59] paulcsmith: has joined #ruby
[21:49:28] Trynemjoel: has joined #ruby
[21:49:33] ramfjord: has joined #ruby
[21:50:24] bruno-: has joined #ruby
[21:51:51] kakusu: has joined #ruby
[21:52:41] s00pcan: has joined #ruby
[21:53:17] Yzguy: has joined #ruby
[21:53:54] ddarkpassenger: has joined #ruby
[21:55:50] goldfax: has joined #ruby
[21:56:17] pengin: has joined #ruby
[21:56:31] FernandoBasso: has joined #ruby
[21:58:01] dopie: has joined #ruby
[21:59:56] mleung: has joined #ruby
[22:00:31] benlovell: has joined #ruby
[22:01:02] user1138: has joined #ruby
[22:01:45] omegamike: has joined #ruby
[22:01:48] senayar: has joined #ruby
[22:02:40] swgillespie: has joined #ruby
[22:03:07] ruurd: has joined #ruby
[22:03:58] stantonnet: has joined #ruby
[22:04:09] ascarter: has joined #ruby
[22:04:12] leesharma: has joined #ruby
[22:04:40] n_blownapart: has joined #ruby
[22:07:01] gamename: has joined #ruby
[22:09:22] xkickflip: has joined #ruby
[22:11:27] khebbie: has joined #ruby
[22:11:49] uris: has joined #ruby
[22:12:56] mdavid613: has joined #ruby
[22:15:34] ascarter: has joined #ruby
[22:17:09] benlovell: has joined #ruby
[22:17:14] ruurd: has joined #ruby
[22:18:02] leesharma: has joined #ruby
[22:19:35] texasmade: has joined #ruby
[22:19:43] _blizzy_: has joined #ruby
[22:19:55] arooni-mobile: has joined #ruby
[22:20:14] neanderslob: has joined #ruby
[22:23:05] _djbkd: has joined #ruby
[22:24:46] blaines: has joined #ruby
[22:25:42] Muhannad: has joined #ruby
[22:26:11] zendrix: has joined #ruby
[22:27:29] _blizzy_: has joined #ruby
[22:27:41] wldcordeiro: has joined #ruby
[22:29:05] sypheren: has joined #ruby
[22:30:39] freerobby: has joined #ruby
[22:30:54] rcvalle: has joined #ruby
[22:30:54] surs: has joined #ruby
[22:32:03] mary5030: has joined #ruby
[22:33:03] svdb64: has joined #ruby
[22:33:08] decaff_: has joined #ruby
[22:33:27] sdwrage: has joined #ruby
[22:34:09] modern: has joined #ruby
[22:35:23] leesharma: has joined #ruby
[22:35:26] jsrn_: has joined #ruby
[22:35:41] sypheren: has joined #ruby
[22:35:45] michaeldeol: has joined #ruby
[22:36:58] pengin_: has joined #ruby
[22:37:02] dorei: has joined #ruby
[22:39:11] Scripore: has joined #ruby
[22:40:30] lannonbr: has joined #ruby
[22:40:45] mleung: has joined #ruby
[22:41:27] bruno-: has joined #ruby
[22:47:38] sypheren: has joined #ruby
[22:47:48] Stany: has joined #ruby
[22:48:48] mary5030: has joined #ruby
[22:50:43] dseitz: has joined #ruby
[22:51:11] neoseeker: has joined #ruby
[22:52:05] nb_bez___: has joined #ruby
[22:52:52] acovrig: Is it possible to clear a ncurses window without clearing the entire screen?
[22:53:41] NeverDie: has joined #ruby
[22:54:21] Ox0dea: acovrig: Using ncurses-ruby?
[22:54:29] acovrig: Ox0dea: yes
[22:54:59] Ox0dea: acovrig: Ncurses.erase should do it.
[22:55:03] paulcsmith: has joined #ruby
[22:55:41] Ox0dea: Or Ncurses.werase(foo) if you want to clear a specific window.
[22:57:45] acovrig: It seems to have been where I called my clear, werase seems to do the same as clear??? but if I move my clear up and redraw the 2nd window it works OK
[22:57:59] Vile`: has joined #ruby
[22:58:55] shevy: tis the reason for curses as part of the name
[22:59:30] acovrig: shevy: yea, but I get the feeling it???s the easiest way to have a status window on top of the output
[22:59:34] sypheren: has joined #ruby
[22:59:35] werelivinginthef: has joined #ruby
[23:00:38] Ox0dea: acovrig: Are you threaded?
[23:03:05] PaulCapestany: has joined #ruby
[23:03:47] casadei_: has joined #ruby
[23:04:31] surs: has joined #ruby
[23:04:38] sargas: has joined #ruby
[23:05:15] nobitanobi: has joined #ruby
[23:10:04] baweaver: has joined #ruby
[23:10:15] paulcsmith: has joined #ruby
[23:10:15] craysiii: does ruby have something like rspec's let built in?
[23:10:31] Ox0dea: craysiii: How do you mean?
[23:10:35] sypheren: has joined #ruby
[23:12:24] decaff_: has joined #ruby
[23:12:54] Dreamer3: has joined #ruby
[23:13:19] PaulCapestany: has joined #ruby
[23:13:31] craysiii: ill ask later after i've thought about it more and formulated a coherent question.
[23:14:11] dgutierrez1287: has joined #ruby
[23:23:39] weemsledeux: has joined #ruby
[23:24:05] j4cknewt: has joined #ruby
[23:28:09] GeissT: has joined #ruby
[23:28:49] deepu: has joined #ruby
[23:30:57] ivanskie: has joined #ruby
[23:31:10] paulcsmith: has joined #ruby
[23:31:14] Musashi007: has joined #ruby
[23:31:25] cornerma1: has joined #ruby
[23:36:44] ddarkpassenger: has joined #ruby
[23:39:12] jenrzzz: has joined #ruby
[23:41:55] diegoviola: has joined #ruby
[23:42:37] nobitanobi: has joined #ruby
[23:42:49] bruno-: has joined #ruby
[23:43:08] webopsx: has joined #ruby
[23:44:07] senayar: has joined #ruby
[23:45:52] michael_mbp: has joined #ruby
[23:46:16] xcyclist: has joined #ruby
[23:47:27] xcyclist: I am trying to do a simple hello world on cygwin, and it's yelling at me about rubygems and require, of all things. What's with that? It's just a two line hello.rb?
[23:48:04] bruno-: has joined #ruby
[23:48:09] xcyclist: All I have is #/usr/bin/ruby<LF>puts "Hello, world."<lf>
[23:48:09] juanpablo___: has joined #ruby
[23:48:13] MatthewsFace: has joined #ruby
[23:49:15] jenrzzz_: has joined #ruby
[23:50:20] willywos: has joined #ruby
[23:50:27] juanpablo____: has joined #ruby
[23:50:32] omegamike: has joined #ruby
[23:50:54] blaines: has joined #ruby
[23:52:23] Ropeney: has joined #ruby
[23:52:31] Ox0dea: xcyclist: Please post the exact admonishment you're receiving.
[23:53:47] rcvalle: has joined #ruby
[23:53:50] leesharma: has joined #ruby
[23:57:14] benlieb: has joined #ruby
[23:58:05] shevy: xcyclist can you start irb?
[23:59:25] mary5030: has joined #ruby