« Back to channel list

#ruby - 15 March 2016

« Back 1 day Forward 1 day »
[00:00:08] drbrain: the .find will return an array
[00:00:33] ur5us: has joined #ruby
[00:00:39] drbrain: the array will be one of the feelings, so [:euphoria, Set.new(…)]
[00:00:50] drbrain: name will get :euphoria, _ will get Set.new(…)
[00:00:59] Ox0dea: a11: Hash#find yields each key-value pair to the block; this code is only interested in the value, so it uses `_` to essentially ignore the key, indicating that it's not required for the block to do its thing.
[00:01:01] drbrain: _ is used because it is "ignored"
[00:01:25] s2013: has joined #ruby
[00:01:35] Radar: ariedler: I don't know of a name for that.
[00:01:55] mdw: has joined #ruby
[00:01:58] a11: drbrain, 0x0dea: thank you
[00:02:57] uglybandersnatch: has joined #ruby
[00:03:06] ReK2: has joined #ruby
[00:03:56] a11: drbrain, 0x0dea: How would I modify line 11 using proper_subset to detect a partial match?
[00:04:04] dikaio: has joined #ruby
[00:04:11] A124: has joined #ruby
[00:04:59] Ropeney: has joined #ruby
[00:05:58] Gasher: has joined #ruby
[00:06:14] Lucky_ABA: has joined #ruby
[00:08:11] ziyadb: has joined #ruby
[00:08:47] woodruffw: has joined #ruby
[00:09:17] woodruffw: has joined #ruby
[00:09:18] Ox0dea: a11: I think a better approach would be to use #max_by to determine the emotion which matches the greatest number of input feelings.
[00:09:24] wzy: has joined #ruby
[00:09:26] mistermocha: has joined #ruby
[00:10:14] `tim`: has joined #ruby
[00:10:36] Ox0dea: drbrain: Do you know offhand what this class is? https://eval.in/536451
[00:10:54] CloCkWeRX: has joined #ruby
[00:12:04] juanca_: has joined #ruby
[00:12:13] a11: OxOdea: thank you
[00:12:21] blandflakes: has joined #ruby
[00:12:21] Ox0dea: Sure thing.
[00:13:17] Ox0dea: https://git.io/va4d8 calls #extend, which introduces a singleton class, but the Class "generated" by Kernel#load isn't a singleton class.
[00:15:53] johnmilton: has joined #ruby
[00:16:27] tvon: has joined #ruby
[00:18:08] Ox0dea: https://eval.in/536452 gets there one method too late, but we can infer that it's #inspect that's missing from the output. This appears to be the singleton class of the cloned toplevel, but then why does it lie?
[00:19:03] BtcBen: has joined #ruby
[00:20:11] kies: has joined #ruby
[00:21:42] mary5030: has joined #ruby
[00:26:48] drbrain: I thought a singleton class of an anonymous object (class here) would look like: #<Class:#<Class:0x007fd4f2190108>>
[00:27:06] pokonelakokode: has joined #ruby
[00:27:07] pawnbox: has joined #ruby
[00:27:26] drbrain: so I think va4d8 looks OK to me because it's an anonymous class (the one cloned from toplevel)
[00:29:06] drbrain: Ox0dea: ↑
[00:29:11] Ox0dea: Oh, right.
[00:29:15] Ox0dea: It's a new default definee.
[00:29:58] drbrain: what are you making?
[00:30:26] Ox0dea: I'm trying to make #load do something more useful than shovel the new stuff into an anonymous Module.
[00:30:34] Ox0dea: Preferably without resorting to C.
[00:31:05] Ox0dea: I can swap out the Module just fine, and that puts the constants in the right place; not so happy for methods.
[00:31:27] bezhermo_: has joined #ruby
[00:31:48] bezhermo_: Do I really need to have a CORS middleware to allow POST requests to my Rack app?
[00:36:12] SenpaiSilver: has joined #ruby
[00:38:00] Guest34101: has joined #ruby
[00:39:25] Lucky_ABA: has joined #ruby
[00:40:24] stannard: has joined #ruby
[00:40:30] CloCkWeRX: has joined #ruby
[00:41:18] Lucky_ABA: has joined #ruby
[00:41:26] drbrain: since you can grab the module with TracePoint, can you give it a name directly?
[00:41:31] drbrain: bezhermo_: no*
[00:42:01] drbrain: bezhermo_: * if you create sessions in your app, you probably want CORS protection
[00:43:19] bezhermo_: drbrain: My Rack app is a super simple one: https://gist.github.com/bezhermoso/ffe79962000c3d50ad88
[00:44:18] bezhermo_: However, issuing a POST request via `curl` to a URL gives me a "Method Not Allowed" error. Issuing an OPTIONS request only gives me GET, HEAD, and OPTIONS, which I assumed was the problem.
[00:44:39] drbrain: it says faye is pub-sub, but I'm not sure what its API looks like
[00:45:21] bezhermo_: drbrain: `Api` for now is just logging requests on screen.
[00:45:21] drbrain: hrm, the docs seem to point at you not needing CORS
[00:45:33] drbrain: http://faye.jcoglan.com/ruby.html
[00:46:03] bezhermo_: Oh its not really Faye I'm having problems with. I just want to specify a handler to process POST requests on "/"
[00:46:20] johnny56: has joined #ruby
[00:46:45] Ox0dea: drbrain: I can, but how does that help with getting hold of (and replacing) the default definee?
[00:47:15] failshell: has joined #ruby
[00:47:16] drbrain: bezhermo_: oh, then you probably don't need CORS at all
[00:47:40] bezhermo_: That is my impression as well.
[00:48:15] bezhermo_: But can't get POST to work. I feel like I'm missing something considering doing a POST request gives me a "Method Not Allowed" 405 code
[00:48:26] ruid: has joined #ruby
[00:48:38] ruid: has joined #ruby
[00:48:39] janzo: has joined #ruby
[00:48:48] drbrain: Ox0dea: you want to use the same definee for mulitple loads?
[00:48:52] bezhermo_: My expectation is I should be able to inspect the `env` param on the Api middleware and do most of my logic there
[00:48:55] drbrain: that I'm not sure of
[00:49:17] ruind: has joined #ruby
[00:49:23] Ox0dea: drbrain: No, not necessarily; I'd like to be able to say `load 'foo.rb', M` and have methods defined therein end up on M rather than the top level.
[00:49:57] drbrain: ACTION nods
[00:50:04] drbrain: I'm unsure, I haven't poked around in this much
[00:50:32] bezhermo_: drbrain: Hm, it seems to work now after moving my middleware before Faye. There must be something there. Thanks for confirming that I was on the right track
[00:50:57] drbrain: bezhermo_: cool
[00:52:10] Ox0dea: Swapping the anonymous module for M is as simple as querying ObjectSpace for the new guy, but the default definee is just a VALUE in an rb_thread_t.
[00:52:28] Ox0dea: I could muck about in Thread.current's internal memory, but I was hoping there'd be a less brittle approach.
[00:53:36] SenpaiSilver: has joined #ruby
[00:53:53] dikaio: has joined #ruby
[00:54:30] tvon: has joined #ruby
[00:55:02] DmitryBochkarev: has joined #ruby
[00:57:15] pawnbox: has joined #ruby
[00:58:16] lemur: has joined #ruby
[00:59:55] johnmilton: has joined #ruby
[01:00:32] trosborn: has joined #ruby
[01:00:33] Azure: has joined #ruby
[01:04:14] swills: has joined #ruby
[01:04:34] htmldrum: has joined #ruby
[01:04:35] zacts|pi: has joined #ruby
[01:04:52] fullofca_: has joined #ruby
[01:05:51] chouhoulis: has joined #ruby
[01:06:47] baweaver: has joined #ruby
[01:06:51] chouhoulis: has joined #ruby
[01:07:09] bjpenn: has joined #ruby
[01:07:40] bronson: has joined #ruby
[01:08:11] ohaibbq: has joined #ruby
[01:11:31] jrafanie: has joined #ruby
[01:16:08] htmldrum: has joined #ruby
[01:19:52] jenrzzz: has joined #ruby
[01:22:57] gigetoo: has joined #ruby
[01:25:22] bezhermoso: has joined #ruby
[01:26:06] elifoster: has joined #ruby
[01:26:26] weemsledeux: has joined #ruby
[01:27:07] pawnbox: has joined #ruby
[01:27:26] SenpaiSilver: has joined #ruby
[01:28:24] juanca_: has joined #ruby
[01:29:42] nanoz: has joined #ruby
[01:29:49] juanca_: has joined #ruby
[01:30:41] LoneHerm_: has joined #ruby
[01:31:09] haraoka: has joined #ruby
[01:33:46] dikaio: has joined #ruby
[01:34:50] jyaworski: has joined #ruby
[01:35:41] brentw: has joined #ruby
[01:37:03] brentw: had a question regarding this class I was hoping someone could look at. In the test casue Board#[] is returning 'X' instead of :X http://hastebin.com/upuxiruxim.rb
[01:37:37] brentw: and i can't figure out why
[01:37:40] Didac: has joined #ruby
[01:38:19] `tim`: has joined #ruby
[01:39:02] SenpaiSilver: has joined #ruby
[01:41:34] ur5us: has joined #ruby
[01:44:24] Rafael: has joined #ruby
[01:45:04] Guest98810: has left #ruby: ()
[01:46:36] nanoz]: has joined #ruby
[01:48:17] rafaelaraujo: has joined #ruby
[01:48:27] havenwood: brent_: It seems you're probably setting it so with #[]= or #place_mark (though it looks like you're ignoring the nested Arrays so it's not quite right).
[01:49:48] jyaworski: has joined #ruby
[01:51:44] brentw: havenwood: am i?
[01:52:09] brentw: i thought def [](col, row); @grid[col][row]
[01:52:12] havenwood: brent_: Show the code you're using that gives you the unexpected String value?
[01:52:14] brentw: was fixing that for me
[01:52:31] havenwood: brent_: That's the getter not the setter.
[01:53:14] brentw: what about the []=?
[01:53:26] brentw: it's a long spec file
[01:53:40] mdih: has joined #ruby
[01:54:14] havenwood: brent_: I'd suggest trying it in a REPL (irb or pry) and check what's getting set.
[01:54:16] RegulationD: has joined #ruby
[01:54:18] ruby[bot]: Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (https://pryrepl.org/): gem install pry pry-doc
[01:54:36] brentw: http://hastebin.com/oxotidoqed.lua
[01:54:49] brentw: i believe it's on like 35 of that file
[01:55:01] s2013: has joined #ruby
[01:55:50] ascarter: has joined #ruby
[01:56:29] havenwood: brent_: => #<Board:0x007fdb65c19bf0 @grid=[:X, [nil, nil, nil], [nil, nil, nil], [nil, nil, nil]], @marks=[:X, :O]>
[01:56:44] havenwood: brent_: See how the :X is not on your actual grid?
[01:57:05] havenwood: brent_: Try it in IRB or Pry!
[01:57:59] ruind: has joined #ruby
[01:59:06] ensyde_: has joined #ruby
[02:01:13] mistermocha: has joined #ruby
[02:01:53] ruby[bot]: -bbb $a:wename$#ruby-banned KliKK!*@*$#ruby-banned wename!*@*$#ruby-banned
[02:02:49] brentw: havenwood: ugggh, [row, col] instead of [row][col]
[02:03:40] lyoshajapan: has joined #ruby
[02:03:49] bronson: has joined #ruby
[02:05:37] LoneHerm_: has joined #ruby
[02:06:18] brentw: thanks, now just need to get it to check if it's in a row correctly
[02:06:36] arlek: has joined #ruby
[02:07:09] pawnbox: has joined #ruby
[02:07:42] LoneHerm_: has joined #ruby
[02:07:49] ade: has joined #ruby
[02:07:56] statelesscode: has joined #ruby
[02:08:22] znz_jp: has joined #ruby
[02:09:59] braincra-: has joined #ruby
[02:10:04] ade: hello guys
[02:10:23] havenwood: ade: 38.32 Down 0.04 (0.10%)
[02:11:24] gbgdev: has joined #ruby
[02:13:35] sucks: has joined #ruby
[02:14:29] trosborn: has joined #ruby
[02:16:10] astrobun_: has joined #ruby
[02:16:29] babblebre: has joined #ruby
[02:16:49] Ox0dea: $ pkgfile t
[02:16:51] Ox0dea: community/mathomatic
[02:16:53] Ox0dea: havenwood: What's that?
[02:17:10] havenwood: Ox0dea: stock symbol
[02:18:23] mistermocha: has joined #ruby
[02:21:50] bjpenn: has joined #ruby
[02:29:37] Uber|Dragon: has joined #ruby
[02:30:04] jenrzzz: has joined #ruby
[02:30:32] hxegon: has joined #ruby
[02:30:52] yann2: has joined #ruby
[02:30:58] yann2: has left #ruby: ()
[02:31:29] gbgdev_: has joined #ruby
[02:31:44] tvon: has joined #ruby
[02:32:55] mistermocha: has joined #ruby
[02:34:20] a11: has joined #ruby
[02:36:14] chagel: has joined #ruby
[02:36:16] DLSteve: has joined #ruby
[02:36:19] rrrepsaj: has joined #ruby
[02:42:12] uglybandersnatch: has joined #ruby
[02:45:10] vdamewood: has joined #ruby
[02:45:36] blackmesa: has joined #ruby
[02:45:56] gamov: has joined #ruby
[02:46:57] fullofcaffeine: has joined #ruby
[02:47:16] pawnbox: has joined #ruby
[02:48:52] Chagel_: has joined #ruby
[02:51:10] duncannz: has joined #ruby
[02:56:01] ascarter: has joined #ruby
[02:58:27] ur5us: has joined #ruby
[02:58:58] baweaver: has joined #ruby
[03:01:10] hahuang61: has joined #ruby
[03:03:51] floatingpoint: has joined #ruby
[03:05:49] bronson: has joined #ruby
[03:06:43] chipotle: has joined #ruby
[03:06:45] toddr: has joined #ruby
[03:08:42] toddr: has joined #ruby
[03:12:09] Snaggle: has joined #ruby
[03:17:06] pawnbox: has joined #ruby
[03:17:41] zast: has joined #ruby
[03:20:36] nanoz: has joined #ruby
[03:21:49] uglybandersnatch: has joined #ruby
[03:22:21] moeabdol1: has joined #ruby
[03:23:12] Snaggle: I’m trying to install the pango gem from a local gem downloaded from rubygems.org, but when I do ‘gem2.2 install --local --install-dir <LOCALINSTALLDIR> /downloaded/pango-2.2.5.gem’, I get an error about “Could not find a valid gem 'glib2' (= 2.2.5) in any repository”. But ‘gem2.2 list —local’ says that glib2 (2.2.5) is present (it was installed the same way as I’m trying to install pango. Adding -V to the inst
[03:23:13] Snaggle: command doesn’t provide any further details as to why pango is not finding glib2. Is there some other way to get gem2.2 to be more precise as to why it’s failing?
[03:24:24] mallu: has joined #ruby
[03:24:55] chagel: has joined #ruby
[03:26:12] DmitryBochkarev: has joined #ruby
[03:26:55] stardiviner: has joined #ruby
[03:27:35] ascarter: has joined #ruby
[03:28:37] drbrain: Snaggle: is glib2 installed into <LOCALINSTALLDIR>?
[03:28:56] drbrain: --install-dir says "all gems must be in <localinstalldir>"
[03:31:00] Snaggle: drbrain: sort of. I’m doing this for an OS X package manager, and when running the install command <LOCALINSTALLDIR> is a staging directory. The built package then gets installed into the final install location....
[03:31:16] chouhoul_: has joined #ruby
[03:31:43] Snaggle: posting a gist to clarify...
[03:31:47] freerobby: has joined #ruby
[03:32:07] tomchapin: has joined #ruby
[03:32:37] bjpenn: has joined #ruby
[03:33:34] skydiver: has joined #ruby
[03:33:40] bry4n_: has joined #ruby
[03:33:43] Snaggle: https://gist.github.com/nieder/db6454457ee928399a40
[03:33:52] a11: has joined #ruby
[03:34:41] drbrain: so `gem list -d glib2` has <LOCALINSTALLDIR> in the Installed location: ?
[03:34:56] drbrain: "Installed at:"
[03:35:15] ledestin_: has joined #ruby
[03:35:28] Snaggle: Installed at: /sw/lib/ruby/gems/2.2
[03:36:04] ascarter_: has joined #ruby
[03:37:36] drbrain: that's why you get the error
[03:38:08] drbrain: you should be able to gem install --local --install-dir … /sw/lib/ruby/gems/2.2/gems/glib2*.gem
[03:38:21] drbrain: err, I think the second "gems" is "cache"
[03:38:36] drbrain: since you have --local RubyGems can't fetch it
[03:38:45] drbrain: so you have to install it manually
[03:41:46] terminal_: has joined #ruby
[03:43:58] Snaggle: But glib2 is already installed… or am I sending it to the wrong place? I’m confused as to why glib2 builds OK and finds its dependencies using the identical install command, but pango doesn’t.
[03:45:52] ascarter: has joined #ruby
[03:47:47] chagel: has joined #ruby
[03:48:12] Snaggle: And that’s because it wasn’t :( I was missing the —force option
[03:48:15] poerror: has joined #ruby
[03:50:02] Snaggle: drbrain: thanks for your help. sorry about the noise
[03:50:22] drbrain: Snaggle: no worries
[03:50:33] drbrain: Snaggle: --install-dir requires all dependencies exist in the same directory
[03:50:35] tenzan: has joined #ruby
[03:50:46] drbrain: so you can do things like create stand-alone gem installs
[03:52:43] tenzan: has joined #ruby
[03:52:49] chagel: has joined #ruby
[03:52:56] trosborn: has joined #ruby
[03:55:42] tvon: has joined #ruby
[03:55:47] Snaggle: has left #ruby: ()
[03:56:27] tvon_: has joined #ruby
[03:56:31] ascarter: has joined #ruby
[03:56:36] RIK: has joined #ruby
[03:56:43] poerror: has joined #ruby
[03:56:56] RIK: hi. i'm having a problem trying to follow http://sklise.com/2013/03/08/sinatra-warden-auth/
[03:57:22] RIK: when i throw all the code into files and try to test it, the model.rb section doesn't load in the require. it doesn't like data_mapper
[03:57:27] RIK: but.. that worksfinein irb.
[03:57:38] RIK: can someone help me to understand what i'm doing wrong?
[03:58:14] bezhermoso: has joined #ruby
[03:58:34] A124: has joined #ruby
[03:59:31] dfockler: has joined #ruby
[04:00:28] drbrain: by "try and test it" you mean "ruby somefile.rb" and by "in irb" you mean "require 'somefile'" in irb?
[04:02:38] bezhermoso: has joined #ruby
[04:04:21] bjpenn: has joined #ruby
[04:04:25] chagel: has joined #ruby
[04:05:24] flappynerd: has joined #ruby
[04:06:40] dfockler: has joined #ruby
[04:08:12] blandflakes: has joined #ruby
[04:08:19] RIK: drbrain: sorry. i was AFK for a call. effectively correct, except that instead of ruby somefile it's rackup, for a sinatra app
[04:08:47] aupadhye: has joined #ruby
[04:10:18] pawnbox: has joined #ruby
[04:10:30] ascarter: has joined #ruby
[04:11:19] Cohedrin: has joined #ruby
[04:11:32] drbrain: ok, does `ruby -e 'p Gem.ruby'` say the same thing as `Gem.ruby` from irb?
[04:12:04] Moosashi: has joined #ruby
[04:12:18] flappynerd: has left #ruby: ("Leaving")
[04:12:24] RIK: yes. both return /usr/local/bin/ruby21
[04:13:13] krz: has joined #ruby
[04:13:49] braincrash: has joined #ruby
[04:14:31] drbrain: can you make a gist of the error you get?
[04:14:39] ruby[bot]: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[04:15:54] RIK: https://gist.github.com/anonymous/f9d267982b88df6cb277
[04:16:23] ascarter: has joined #ruby
[04:16:27] drbrain: I think `rackup` might be running ruby 2.1
[04:16:43] drbrain: you can check by adding `p Gem.ruby` at the very top of model.rb
[04:17:11] pawnbox: has joined #ruby
[04:17:17] RIK: you're right. it's using ruby20, not ruby21.
[04:17:42] drbrain: maybe reinstalling rack will update it
[04:18:10] RIK: yeah...
[04:20:15] RIK: can you ask gem to uninstall and reinstall all the gems?
[04:20:41] drbrain: from one version to the other?
[04:20:48] drbrain: not easily
[04:21:04] RIK: well, fortunately i seem to have relatively few.
[04:21:48] drbrain: well, you could `gem install --force` for /usr/local/lib/ruby/gems/2.0/cache/*
[04:21:48] ascarter: has joined #ruby
[04:22:01] pawnbox: has joined #ruby
[04:22:20] LoneHermit: has joined #ruby
[04:25:29] RIK: ACTION watches bundle install do its thing
[04:25:49] RIK: aaaand i am back to the first error
[04:26:57] drbrain: does the rackup error have 2.1 in the path now?
[04:27:03] RIK: checking...
[04:27:26] drbrain: it should say "/usr/local/lib/ruby/gems/2.1/gems/rack-1.6.4/bin/rackup:4:in `<top (required)>'"
[04:27:27] RIK: once ri installs the documentation for sinatra
[04:27:43] drbrain: instead of "gems/2.0/gems" like your gist ↑
[04:27:51] lyoshajapan: has joined #ruby
[04:29:09] RIK: https://gist.github.com/anonymous/5176ab98284579041f15
[04:29:21] drbrain: ok, better
[04:29:39] RIK: indeed. we have eliminated one show stopper. on to the next!
[04:30:57] drbrain: I guess now `gem install data_mapper`
[04:31:14] treaki_: has joined #ruby
[04:31:24] RIK: same issue.
[04:31:35] x77686d: has joined #ruby
[04:31:56] bjpenn: has joined #ruby
[04:32:41] drbrain: Does `ruby -r data_mapper -e 0` give a similar error?
[04:32:51] drbrain: "cannot load such file"?
[04:32:56] RIK: no. that executes successfully.
[04:33:15] drbrain: that seems weird
[04:33:44] drbrain: can you add app.rb and model.rb to that gist?
[04:34:00] RIK: sure. they're literally cut-and-pasted from http://sklise.com/2013/03/08/sinatra-warden-auth/ thoug.
[04:35:12] drbrain: ah, I downloaded https://github.com/sklise/sinatra-warden-example
[04:35:40] RIK: i was wondeing if those are all old versions
[04:35:55] RIK: and if so, is the solution to remove the version numbers.
[04:36:09] RIK: i haven't dealt with bundlinggems ever.
[04:38:02] bronson: has joined #ruby
[04:38:23] tvon: has joined #ruby
[04:39:20] drbrain: I think changing "data_mapper" to "dm-core" will get you moving along
[04:39:29] ascarter: has joined #ruby
[04:39:58] RIK: it gets me a new error!
[04:41:24] RIK: builder seems to be trying to figure out some constant from the filename
[04:41:44] RIK: rik@puppies:~/gunparts-db% rackup app.rb :(
[04:41:44] RIK: /usr/local/lib/ruby/gems/2.1/gems/rack-1.6.4/lib/rack/builder.rb:43:in `const_get': uninitialized constant App (NameError)
[04:42:00] RIK: which is got form the filena,e
[04:42:39] drbrain: try rackup config.ru
[04:42:48] drbrain: https://github.com/sklise/sinatra-warden-example/blob/master/config.ru
[04:43:03] RIK: ACTION whistles innocently.
[04:43:06] RIK: guess what file i was missing
[04:43:11] RIK: i don't know what the config.ru is for, either.
[04:43:32] RIK: oh hey, WEBrick
[04:43:43] drbrain: it works around the App NameError
[04:44:23] terminal_: has joined #ruby
[04:44:45] RIK: i wonder why it's webrick,andnot ... whatever the sinatra exmaples gotme earlier
[04:45:32] Didac: has joined #ruby
[04:45:56] drbrain: maybe you didn't install thin or whichever other web server you had on ruby 2.0?
[04:46:19] RIK: +i suspect so.
[04:47:23] RIK: hm. no.
[04:47:45] drbrain: you might be able to tell rackup which web server you want to use, try --help
[04:48:28] pawnbox: has joined #ruby
[04:48:38] RIK: you can. i'm fialing to cause it to work though
[04:48:48] drbrain: WEBrick is OK
[04:49:11] RIK: yes, it's just not what i was expecting.
[04:49:16] pawnbox: has joined #ruby
[04:49:51] ascarter: has joined #ruby
[04:49:57] bezhermoso: has joined #ruby
[04:50:02] failshell: has joined #ruby
[04:50:50] RIK: got it!
[04:51:25] trosborn: has joined #ruby
[04:54:32] hk238: has joined #ruby
[04:55:55] pawnbox: has joined #ruby
[04:56:09] RIK: now i can't require th emodel in an irb session
[04:56:19] RIK: irb(main):001:0> require './model'
[04:56:19] RIK: NameError: uninitialized constant User::BCryptHash
[04:56:38] uglybandersnatch: has joined #ruby
[04:56:40] drbrain: you might need to Bundler.require or something like that first
[04:57:05] RIK: yeah. and it changedname.
[04:57:24] poerror: has joined #ruby
[04:58:11] gix: has joined #ruby
[04:58:25] RIK: hm. no.
[05:00:39] RIK: aha. yes.
[05:00:45] RIK: but i didn' tknow the way to do so before.
[05:00:56] drbrain: so… better?
[05:01:18] govg: has joined #ruby
[05:01:19] bjpenn: has joined #ruby
[05:03:33] blackgoat: has joined #ruby
[05:03:42] RIK: success.
[05:04:04] RIK: i have an example web app with Sinatra, Warden and DataMapper.
[05:04:08] RIK: that is 100% of what I need.
[05:04:19] RIK: thank you for all your help.
[05:04:25] drbrain: no problem!
[05:04:29] RIK: i would have bashed my head against that for a long time.
[05:05:29] RIK: andnow, the sleeps!
[05:06:30] ascarter: has joined #ruby
[05:10:28] moeabdol1: has joined #ruby
[05:10:49] howdoi: has joined #ruby
[05:10:51] htmldrum: has joined #ruby
[05:14:25] bezhermoso: has joined #ruby
[05:16:42] tvw: has joined #ruby
[05:16:53] CloCkWeRX: has joined #ruby
[05:17:12] lyoshajapan: has joined #ruby
[05:18:09] pawnbox: has joined #ruby
[05:18:34] brentw: has joined #ruby
[05:21:59] tristanp: has joined #ruby
[05:25:02] mistermocha: has joined #ruby
[05:25:31] chagel: has joined #ruby
[05:27:13] ascarter: has joined #ruby
[05:28:32] neanderslob_: has joined #ruby
[05:28:49] bezhermo_: has joined #ruby
[05:29:00] ascarter: has joined #ruby
[05:31:29] neanderslob_: has joined #ruby
[05:31:42] Moosashi: has joined #ruby
[05:33:25] lyoshajapan: has joined #ruby
[05:34:56] adgtl: has joined #ruby
[05:35:16] last_staff: has joined #ruby
[05:37:45] Chagel_: has joined #ruby
[05:38:02] adgtl: has joined #ruby
[05:38:55] tvon: has joined #ruby
[05:41:53] uglybandersnatch: has joined #ruby
[05:42:08] mistermocha: has joined #ruby
[05:43:20] chagel: has joined #ruby
[05:44:22] ascarter: has joined #ruby
[05:46:58] beergineer: has joined #ruby
[05:47:12] chouhoulis: has joined #ruby
[05:47:26] moeabdol1: has joined #ruby
[05:49:18] djbkd: has joined #ruby
[05:49:21] Uber|Dragon: has joined #ruby
[05:49:47] sauvin: has joined #ruby
[05:50:16] bjpenn: has joined #ruby
[05:50:32] Rahul_Roy: has joined #ruby
[05:51:37] skade: has joined #ruby
[05:53:37] mary5030: has joined #ruby
[05:54:59] chagel: has joined #ruby
[05:55:56] plonk: has joined #ruby
[05:55:57] plonk: has joined #ruby
[05:56:11] hxegon: has joined #ruby
[05:57:29] plonk: has joined #ruby
[05:57:30] plonk: has joined #ruby
[05:57:48] beergineer: https://gist.github.com/anonymous/3adf948389949eee3900
[05:58:10] beergineer: why do we need one after the other, seems like both of them create a singleton_methods
[05:59:25] hahuang65: has joined #ruby
[06:00:12] ascarter: has joined #ruby
[06:00:55] adgtl: has joined #ruby
[06:02:15] tjbiddle: has joined #ruby
[06:02:42] x77686d: has joined #ruby
[06:02:59] crdpink2: has joined #ruby
[06:03:49] hxegon: has joined #ruby
[06:05:09] ascarter: has joined #ruby
[06:05:30] plonk: has joined #ruby
[06:05:30] plonk: has joined #ruby
[06:07:36] chagel: has joined #ruby
[06:09:21] bronson: has joined #ruby
[06:10:28] bklane: has joined #ruby
[06:10:32] plonk: has joined #ruby
[06:10:32] plonk: has joined #ruby
[06:10:39] LoneHermit: has joined #ruby
[06:11:37] blandflakes: has joined #ruby
[06:12:53] kam270: has joined #ruby
[06:12:57] ascarter: has joined #ruby
[06:13:48] kam270: has joined #ruby
[06:14:50] shevy: beergineer please write valid ruby code
[06:15:25] kam270: has joined #ruby
[06:15:34] bjpenn: has joined #ruby
[06:19:14] chagel: has joined #ruby
[06:23:30] crdpink: has joined #ruby
[06:24:09] plonk_: has joined #ruby
[06:24:09] plonk_: has joined #ruby
[06:25:31] fullofcaffeine: has joined #ruby
[06:27:13] govg: has joined #ruby
[06:28:46] plonk: has joined #ruby
[06:28:46] plonk: has joined #ruby
[06:30:08] Peanutt: has joined #ruby
[06:31:22] _djbkd: has joined #ruby
[06:31:29] skade: has joined #ruby
[06:32:02] jenrzzz: has joined #ruby
[06:32:11] ascarter: has joined #ruby
[06:32:32] pawnbox: has joined #ruby
[06:33:57] chagel: has joined #ruby
[06:38:23] intrigueD: has joined #ruby
[06:38:46] davee_: has joined #ruby
[06:40:07] DoubleMalt: has joined #ruby
[06:40:31] plonk: has joined #ruby
[06:40:31] plonk: has joined #ruby
[06:41:08] bjpenn: has joined #ruby
[06:41:12] cpup: has joined #ruby
[06:45:32] plonk: has joined #ruby
[06:45:32] plonk: has joined #ruby
[06:46:57] ascarter: has joined #ruby
[06:47:38] BaroMeter: has joined #ruby
[06:48:14] moeabdol1: has joined #ruby
[06:48:51] solars: has joined #ruby
[06:49:06] plonk: has joined #ruby
[06:49:06] plonk: has joined #ruby
[06:49:52] poerror: has joined #ruby
[06:51:22] chagel: has joined #ruby
[06:53:55] troulouliou_div2: has joined #ruby
[06:54:51] chipotle: has joined #ruby
[06:55:06] rht: has joined #ruby
[06:55:17] plonk: has joined #ruby
[06:55:17] plonk: has joined #ruby
[06:58:37] pawnbox: has joined #ruby
[06:59:04] codecop: has joined #ruby
[06:59:47] ur5us: has joined #ruby
[07:00:06] ur5us: has joined #ruby
[07:03:52] uglybandersnatch: has joined #ruby
[07:03:53] Mon_Ouie: has joined #ruby
[07:04:44] tjbiddle: has joined #ruby
[07:05:01] jas02: has joined #ruby
[07:05:32] aganov: has joined #ruby
[07:09:21] mhoungbo: has joined #ruby
[07:10:22] emesa: has joined #ruby
[07:10:42] fostertheweb: has joined #ruby
[07:10:46] bjpenn: has joined #ruby
[07:13:46] ascarter: has joined #ruby
[07:14:07] lyoshajapan: has joined #ruby
[07:17:20] terlar: has joined #ruby
[07:17:29] bezhermoso: has joined #ruby
[07:18:48] uglybandersnatch: has joined #ruby
[07:19:39] skade: has joined #ruby
[07:20:36] scepticulous: has joined #ruby
[07:20:38] _blizzy_: has joined #ruby
[07:20:40] pwnd_nsfw: has joined #ruby
[07:23:23] tristanp_: has joined #ruby
[07:24:39] emilkarl: has joined #ruby
[07:25:34] tesuji: has joined #ruby
[07:26:32] cold_zero: has joined #ruby
[07:27:33] rdark: has joined #ruby
[07:28:49] emilkarl: has joined #ruby
[07:28:55] BtcBen: has joined #ruby
[07:29:39] PaulCapestany: has joined #ruby
[07:31:41] emilkarl: has joined #ruby
[07:31:55] bigkevmcd: has joined #ruby
[07:33:08] djbkd: has joined #ruby
[07:33:27] liquid-silence: has joined #ruby
[07:33:38] liquid-silence: has joined #ruby
[07:35:37] rrrepsaj: has joined #ruby
[07:38:36] bezhermoso: has joined #ruby
[07:38:55] firstdayonthejob: has joined #ruby
[07:40:03] roshanavand: has joined #ruby
[07:40:04] siaW: has joined #ruby
[07:40:06] tvon: has joined #ruby
[07:40:22] bjpenn: has joined #ruby
[07:40:28] bronson: has joined #ruby
[07:41:59] lxsameer: has joined #ruby
[07:43:39] ascarter: has joined #ruby
[07:48:49] Xeago: has joined #ruby
[07:50:15] roshanavand: has joined #ruby
[07:50:34] poerror: has joined #ruby
[07:52:44] chagel: has joined #ruby
[07:53:50] fexilal: has joined #ruby
[07:54:18] pawnbox: has joined #ruby
[07:55:14] kam270: has joined #ruby
[07:55:36] bjpenn: has joined #ruby
[07:56:15] RegulationD: has joined #ruby
[07:56:49] skade: has joined #ruby
[07:57:34] kam270: has joined #ruby
[07:59:16] yardenbar: has joined #ruby
[07:59:53] cold_zero: has joined #ruby
[08:00:41] yardenbar: Hi all, I'm getting "Can't create Java VM" when invoking OpenNLP.load, can anyone comment on the memory requirements of this library?
[08:01:00] jaruga: has joined #ruby
[08:06:38] terlar: has joined #ruby
[08:06:56] riotjones: has joined #ruby
[08:08:24] vondruch_: has joined #ruby
[08:09:01] biberu: has joined #ruby
[08:09:58] bjpenn: has joined #ruby
[08:10:18] biberu: has joined #ruby
[08:10:34] skade: has joined #ruby
[08:11:07] atmosx: has joined #ruby
[08:11:41] mary5030: has joined #ruby
[08:13:45] aufi: has joined #ruby
[08:16:39] leksster: has joined #ruby
[08:16:44] avelldiroll: has joined #ruby
[08:18:16] nerium: has joined #ruby
[08:18:29] steffkes: has joined #ruby
[08:18:38] steffkes: has joined #ruby
[08:19:37] andikr: has joined #ruby
[08:20:11] pawnbox: has joined #ruby
[08:20:18] lyoshajapan: has joined #ruby
[08:20:41] agit0: has joined #ruby
[08:20:47] ascarter: has joined #ruby
[08:22:51] symm-: has joined #ruby
[08:25:12] bjpenn: has joined #ruby
[08:25:20] mark2: has joined #ruby
[08:26:07] tAn: has joined #ruby
[08:27:20] kam270: has joined #ruby
[08:28:01] patrick_star: has joined #ruby
[08:28:47] SkepBrain: has joined #ruby
[08:31:18] tomphp: has joined #ruby
[08:34:14] Spami: has joined #ruby
[08:36:21] moeabdol1: has joined #ruby
[08:36:55] Xeago: has joined #ruby
[08:37:04] tomphp: has joined #ruby
[08:41:34] tvon: has joined #ruby
[08:42:06] nerium: has joined #ruby
[08:42:08] jenrzzz: has joined #ruby
[08:42:59] ascarter: has joined #ruby
[08:44:11] chipotle: has joined #ruby
[08:44:34] tomphp: has joined #ruby
[08:45:50] maner: has joined #ruby
[08:46:32] tomphp: has joined #ruby
[08:46:50] lele: has joined #ruby
[08:47:24] failshell: has joined #ruby
[08:48:59] adgtl: has joined #ruby
[08:49:38] tomphp: has joined #ruby
[08:50:15] merida: has joined #ruby
[08:52:05] DoubleMalt: has joined #ruby
[08:52:15] mikecmpbll: has joined #ruby
[08:53:24] SCHAAP137: has joined #ruby
[08:55:28] anisha: has joined #ruby
[08:57:23] RegulationD: has joined #ruby
[08:57:27] nerium: has joined #ruby
[08:57:57] qhp: has joined #ruby
[08:58:44] ziyadb: has joined #ruby
[09:00:05] kiidbrian: has joined #ruby
[09:03:06] vondruch: has joined #ruby
[09:03:19] niksrc: has joined #ruby
[09:04:46] igam: has joined #ruby
[09:09:07] bjpenn: has joined #ruby
[09:09:35] roshanavand: has joined #ruby
[09:10:20] chipotle: has joined #ruby
[09:12:43] pawnbox: has joined #ruby
[09:13:03] bronson: has joined #ruby
[09:13:38] aupadhye: has joined #ruby
[09:14:10] blandflakes: has joined #ruby
[09:15:45] siaW: has joined #ruby
[09:16:24] adgtl: has joined #ruby
[09:16:28] roshanavand: has joined #ruby
[09:16:32] shredding: has joined #ruby
[09:17:22] trosborn: has joined #ruby
[09:17:26] baweaver: has joined #ruby
[09:20:17] tomphp: has joined #ruby
[09:20:27] ascarter: has joined #ruby
[09:22:17] tAn: has joined #ruby
[09:22:29] cold_zero: has joined #ruby
[09:23:29] poerror: has joined #ruby
[09:24:38] vdamewood: has joined #ruby
[09:24:45] blackgoat: has joined #ruby
[09:24:46] Couch: has joined #ruby
[09:25:00] pawnbox: has joined #ruby
[09:25:26] bollullera: has joined #ruby
[09:26:44] the_drow: has joined #ruby
[09:26:45] flughafen: has joined #ruby
[09:30:18] _joes__: has joined #ruby
[09:31:43] chipotle: has joined #ruby
[09:32:37] lxsameer: has joined #ruby
[09:34:25] graffix: has joined #ruby
[09:34:26] Mia: has joined #ruby
[09:34:26] Mia: has joined #ruby
[09:35:53] trosborn: has joined #ruby
[09:36:35] skade: has joined #ruby
[09:37:13] anisha: has joined #ruby
[09:40:10] binaryplease: has joined #ruby
[09:40:36] sepp2k: has joined #ruby
[09:43:34] mrgrieves: has joined #ruby
[09:44:23] watersoul: has joined #ruby
[09:45:20] n008f4g_: has joined #ruby
[09:46:24] Eaven: has joined #ruby
[09:47:20] Polysics: has joined #ruby
[09:47:21] jas02: has joined #ruby
[09:48:53] tAn: has joined #ruby
[09:49:19] Gasher: has joined #ruby
[09:50:00] ascarter: has joined #ruby
[09:50:21] workmad3: has joined #ruby
[09:53:50] chagel: has joined #ruby
[09:54:02] bjpenn: has joined #ruby
[09:55:19] nfk|laptop: has joined #ruby
[09:55:37] LoneHermit: has joined #ruby
[09:56:35] roshanavand: has joined #ruby
[09:57:21] andrewvos: has joined #ruby
[09:57:30] uglybandersnatch: has joined #ruby
[09:58:11] nettoweb: has joined #ruby
[10:01:36] evidex: has joined #ruby
[10:03:45] tAn: has joined #ruby
[10:04:05] mdw: has joined #ruby
[10:04:34] jas02: has joined #ruby
[10:05:42] ascarter: has joined #ruby
[10:05:57] siaW: has left #ruby: ()
[10:06:18] jas02: has joined #ruby
[10:08:17] bjpenn: has joined #ruby
[10:08:19] trosborn: has joined #ruby
[10:08:53] roshanavand: has joined #ruby
[10:09:11] mdw: has joined #ruby
[10:11:12] Trynemjoel: has joined #ruby
[10:14:41] tAn: has joined #ruby
[10:15:36] chagel: has joined #ruby
[10:16:24] sdothum: has joined #ruby
[10:17:24] mahk: has joined #ruby
[10:17:32] gbgdev: has joined #ruby
[10:18:31] merida_: has joined #ruby
[10:19:06] ponga: has joined #ruby
[10:19:27] roshanavand: has joined #ruby
[10:21:04] ascarter: has joined #ruby
[10:24:36] moeabdol1: has joined #ruby
[10:24:37] FooMunki: has joined #ruby
[10:27:16] s00pcan_: has joined #ruby
[10:27:19] Meow-J: has joined #ruby
[10:28:02] merida: has joined #ruby
[10:30:19] s00pcan__: has joined #ruby
[10:31:58] s00pcan_: has joined #ruby
[10:32:48] Azure: has joined #ruby
[10:33:44] Xeago: has joined #ruby
[10:36:09] snowy: has joined #ruby
[10:36:16] jas02: has joined #ruby
[10:37:49] adgtl: has joined #ruby
[10:38:51] roshanavand: has joined #ruby
[10:40:26] tAn: has joined #ruby
[10:41:12] tAn: has joined #ruby
[10:42:23] stannard: has joined #ruby
[10:43:56] bronson: has joined #ruby
[10:44:00] tvon: has joined #ruby
[10:46:48] Pupp3tm4st3r: has joined #ruby
[10:46:59] tAn: has joined #ruby
[10:47:44] skade: has joined #ruby
[10:48:15] failshell: has joined #ruby
[10:48:46] rodfersou: has joined #ruby
[10:49:42] moeabdol1: has joined #ruby
[10:50:47] nerium: has joined #ruby
[10:51:07] mrgrieves: has left #ruby: ()
[10:51:34] mrgrieves: has joined #ruby
[10:56:12] sysodaff: has joined #ruby
[10:56:34] mikar: has joined #ruby
[10:57:09] vondruch: has joined #ruby
[10:58:56] binaryplease: has joined #ruby
[10:59:56] tAn: has joined #ruby
[11:00:00] merida: has joined #ruby
[11:00:11] c355E3B: has joined #ruby
[11:00:37] audiodude: has joined #ruby
[11:02:22] last_staff: has joined #ruby
[11:02:23] chipotle: has joined #ruby
[11:02:55] trinaldi: has joined #ruby
[11:03:42] davedev24: has joined #ruby
[11:05:02] mistermocha: has joined #ruby
[11:06:33] jaiks1: has joined #ruby
[11:06:54] flughafen_: has joined #ruby
[11:07:18] Cork: has joined #ruby
[11:08:04] jxs__: has joined #ruby
[11:08:10] flughafen: has joined #ruby
[11:08:33] davedev24: has joined #ruby
[11:09:13] pawnbox: has joined #ruby
[11:09:55] marr: has joined #ruby
[11:11:21] ferr: has joined #ruby
[11:12:32] htmldrum: has joined #ruby
[11:13:07] rrrepsaj: has joined #ruby
[11:13:51] trosborn: has joined #ruby
[11:14:00] mja: has joined #ruby
[11:14:44] anisha: has joined #ruby
[11:15:35] Tempesta: has joined #ruby
[11:16:41] shredding: has joined #ruby
[11:17:50] adgtl: has joined #ruby
[11:18:12] s00pcan: has joined #ruby
[11:18:45] baweaver: has joined #ruby
[11:21:02] johnmilton: has joined #ruby
[11:21:22] Jackneill: has joined #ruby
[11:22:10] pawnbox: has joined #ruby
[11:23:37] mikeiniowa: has joined #ruby
[11:23:39] poerror: has joined #ruby
[11:24:45] duckpuppy: has joined #ruby
[11:26:16] nerium: has joined #ruby
[11:26:56] roshanavand: has joined #ruby
[11:28:27] uglybandersnatch: has joined #ruby
[11:28:32] maner: has joined #ruby
[11:28:42] DoubleMalt: has joined #ruby
[11:29:15] ldnunes: has joined #ruby
[11:34:33] tvw: has joined #ruby
[11:35:06] vondruch: has joined #ruby
[11:35:55] pawnbox: has joined #ruby
[11:36:19] plonk: has joined #ruby
[11:36:20] plonk: has joined #ruby
[11:38:35] but3k4: has joined #ruby
[11:38:55] workmad3_: has joined #ruby
[11:39:12] tAn: has joined #ruby
[11:39:15] djbkd: has joined #ruby
[11:39:24] jas02: has joined #ruby
[11:39:25] plonk: has joined #ruby
[11:39:25] plonk: has joined #ruby
[11:40:06] sysodaff: has joined #ruby
[11:40:23] davedev24: has joined #ruby
[11:40:43] y0da: has joined #ruby
[11:44:09] lxsameer: has joined #ruby
[11:44:48] tvon: has joined #ruby
[11:46:05] pawnbox: has joined #ruby
[11:47:47] failshell: has joined #ruby
[11:48:28] plonk: has joined #ruby
[11:48:45] adgtl: has joined #ruby
[11:48:45] adgtl: has joined #ruby
[11:49:07] plonk: has joined #ruby
[11:50:15] aupadhye: has joined #ruby
[11:51:30] plonk_: has joined #ruby
[11:51:30] plonk_: has joined #ruby
[11:52:40] plonk: has joined #ruby
[11:52:40] plonk: has joined #ruby
[11:53:30] jottr: has joined #ruby
[11:53:35] dionysus69: has joined #ruby
[11:54:54] BSaboia: has joined #ruby
[11:56:18] joonty: has joined #ruby
[11:57:17] moos3: has joined #ruby
[12:00:27] moeabdol2: has joined #ruby
[12:01:36] mhoungbo_: has joined #ruby
[12:01:45] pawnbox: has joined #ruby
[12:02:03] Xeago: has joined #ruby
[12:02:17] ascarter: has joined #ruby
[12:05:07] synthroid: has joined #ruby
[12:06:16] nfk|laptop: has joined #ruby
[12:06:38] bezhermoso: has joined #ruby
[12:06:43] freakcoder: has joined #ruby
[12:08:36] tAn: has joined #ruby
[12:10:41] rickmasta: has joined #ruby
[12:14:10] andrewvos: has joined #ruby
[12:14:17] zapata: has joined #ruby
[12:14:29] gregf_: hmm, very quiet nowadays. is there a a rubyconf going on everywhere?
[12:14:51] apeiros: ruby is just too easy
[12:14:54] apeiros: nobody got questions
[12:15:14] workmad3: we've solved all the problems! time to go home
[12:15:54] bronson: has joined #ruby
[12:16:57] gregf_: haha, *doesn't think that will ever be the case as long as there are computers* *hides*
[12:17:37] tknz: has joined #ruby
[12:17:39] tkiel: has joined #ruby
[12:17:46] workmad3: gregf_: that's the solution! destroy all the computers
[12:17:57] blackmesa: has joined #ruby
[12:18:29] poerror: has joined #ruby
[12:18:37] flughafen: i bet that alpha thing that beat the go champion was written in ruby because it was so awesome.
[12:19:08] Ishido: has joined #ruby
[12:19:46] gregf_: workmad3: true, but majority of the problems are by humand that write code ;)
[12:19:51] apeiros: gregf_: s/computers/humans/
[12:20:06] apeiros: we're awesome at coming up (or creating) new problems
[12:20:29] workmad3: flughafen: you mean AlphaGo?
[12:20:36] failshell: has joined #ruby
[12:20:42] workmad3: flughafen: it lost a game, so obviously it wasn't a ruby program :)
[12:21:06] merida_: has joined #ruby
[12:21:35] rrrepsaj: has joined #ruby
[12:23:14] flughafen: hacked together with lisp?
[12:23:29] flughafen: https://xkcd.com/224/
[12:24:10] uglybandersnatch: has joined #ruby
[12:24:35] vondruch: has joined #ruby
[12:25:46] merida: has joined #ruby
[12:26:22] jyaworski: has joined #ruby
[12:27:42] igam: flughafen: perl what? Who still uses perl? Is there even legacy perl scripts remaining anywhere?
[12:28:19] flughafen: it was a reference to that xkcd comic
[12:28:28] igam: My point here is that in 20 years, you'll still be doing Lisp, perl will be entirely forgotten. And python and ruby either will be forgotten, or will have changed so unrecognizably you can as well consider them read right now.
[12:29:07] igam: cf. http://informatimago.com/develop/lisp/com/informatimago/small-cl-pgms/wang.html
[12:30:03] igam: I can guarantee you that the lisp programs I write today will still be runnable in Lisp in 40 years. I'm sure perl or ruby programs I wrote a few years ago don't even run anymore on current installations of ruby (and perl is not installed on my system anyways).
[12:30:20] siaw_: has joined #ruby
[12:30:27] blackmesa: has joined #ruby
[12:31:12] igam: I'm just mentionning thins because the other meme in this xkcd quote is that of eternity…
[12:31:33] gregf_: igam: dont be so sure about programming languages :| *i can understand is you say 'Lisp' as a hobby*
[12:33:36] freakcoder1: has joined #ruby
[12:36:30] igam: gregf_, I don't know about hobby; several lisp startups have been bought for hundreds or thousands of millions by companies like yahoo or google…
[12:37:16] igam: We only know a few, like ViaWeb -> Yahoo, and ITA Software -> Google, but there are probably more.
[12:37:24] sysodaff_: has joined #ruby
[12:38:38] tristanp: has joined #ruby
[12:38:59] adgtl: has joined #ruby
[12:39:05] plonk_: has joined #ruby
[12:39:05] plonk_: has joined #ruby
[12:39:18] jyaworski_: has joined #ruby
[12:42:08] sysodaff_: has joined #ruby
[12:43:11] merida_: has joined #ruby
[12:44:27] skade: has joined #ruby
[12:45:11] but3k4: has joined #ruby
[12:45:59] gregf_: i dont mind working on list, if it helps me pay my bills :)
[12:46:11] gregf_: er, Lisp thats was
[12:49:16] gregf_: haha, startups reminds me of ........ https://twitter.com/DesignUXUI/status/699665090795077632 *this*
[12:53:41] dionysus69: what is a ruby path used by rvm??
[12:55:43] ramortegui: has joined #ruby
[12:56:39] hs366: has joined #ruby
[12:56:50] Xentil: has joined #ruby
[12:56:58] aryaching: has joined #ruby
[12:57:15] linoj: has joined #ruby
[12:57:49] aegis3121: has joined #ruby
[12:59:39] plonk: has joined #ruby
[12:59:39] plonk: has joined #ruby
[13:00:17] shevy: dionysus69 rvm should sit in your home dir
[13:00:31] dionysus69: yes it does but where is ruby executable inside it?
[13:00:38] shevy: must be in the bin/ subdirectory
[13:00:47] fostertheweb: has joined #ruby
[13:00:49] skade: has joined #ruby
[13:01:12] bezhermoso: has joined #ruby
[13:01:33] dionysus69: shevy: /home/webgen/.rvm/rubies/ruby-2.2.1/bin/ruby does this sound legit? ruby in the end being exe itself?
[13:01:39] ledestin: has joined #ruby
[13:03:04] TvL2386: has joined #ruby
[13:03:24] dionysus69: ok cool thanks shevy x)
[13:03:28] apeiros: dionysus69: it's easy to verify?
[13:03:39] apeiros: I mean, go to the directory and check the filetype…
[13:04:11] shevy: dionysus69 you can think of this as having been compiled with: ./configure --prefix=/home/webgen/.rvm/rubies/ruby-2.2.1/ as prefix; from there, it has all the relative subdirectories ... bin/ lib/ and some more
[13:04:56] dionysus69: You've set the `passenger_ruby` option to '/home/webgen/.rvm/rubies/ruby-2.2.1/bin/ruby'. However, because you are using RVM, this is not allowed: the option must point to an RVM wrapper script, not a raw Ruby binary
[13:05:06] dionysus69: I am dealing with passenger atm
[13:05:32] shevy: very weird error message
[13:05:43] dionysus69: this is http server choking
[13:05:50] shevy: "You must kill a cat before you may use this software."
[13:05:54] dionysus69: so I guess i ll look for the wrapper
[13:06:30] shevy: They don't like "raw ruby binaries" - perhaps you need to coat it with sugar and a xmas box :)
[13:07:22] dionysus69: ok I found some weird way Finally, invoke passenger-config with its full path, passing --ruby-command as parameter:
[13:07:27] dionysus69: The output tells you what value to set.
[13:07:42] joneshf-laptop: has joined #ruby
[13:08:12] apeiros: the reason is iirc explained - rvm sets up the environment for you. using the raw executable won't do that.
[13:08:18] rrrepsaj: has joined #ruby
[13:08:26] nerium: has joined #ruby
[13:08:28] avahey: has joined #ruby
[13:08:33] apeiros: hence you need a wrapper if you use an rvm ruby via anything else than a login shell of the rvm user.
[13:08:51] gbgdev: has joined #ruby
[13:08:55] binaryplease: has joined #ruby
[13:09:01] malconis: has joined #ruby
[13:09:02] dionysus69: this should be the value /home/webgen/.rvm/gems/ruby-2.2.1/wrappers/ruby
[13:09:42] shevy: the latter is a shell script?
[13:11:00] fostertheweb: has joined #ruby
[13:11:33] sdothum: has joined #ruby
[13:11:50] dionysus69: dunno didnt check
[13:11:55] ruind: has joined #ruby
[13:12:06] dionysus69: but it works, now I am at the rails error finally
[13:14:08] dionysus69: shevy: http://pastebin.com/b7HW1z5J
[13:14:10] ruby[bot]: dionysus69: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/86a6af0efa55bb1fae41
[13:14:10] ruby[bot]: dionysus69: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[13:14:34] davedev24: has joined #ruby
[13:14:43] shevy: yeah a shell script
[13:14:58] shevy: sourcing another shell script :)
[13:15:03] dionysus69: ye gist has its own downsides. I sometimes dont want it to save all the puke stuff I want to paste
[13:15:20] andrewvos: CTRL+SHIFT+N
[13:15:35] cdg: has joined #ruby
[13:15:37] dionysus69: ctrl+shift+p for me but still
[13:15:43] malconis: has joined #ruby
[13:16:27] resin: has joined #ruby
[13:16:31] adaedra: You can delete gists also.
[13:17:36] shevy: that's an extra click!
[13:18:36] pwnd_nsfw`: has joined #ruby
[13:19:59] jrafanie: has joined #ruby
[13:21:01] evidex: has joined #ruby
[13:21:10] Some-body_: has joined #ruby
[13:22:01] sergey_makagon: has joined #ruby
[13:22:37] TomyLobo: has joined #ruby
[13:25:37] mhoungbo_: has joined #ruby
[13:25:56] AlexRussia: has joined #ruby
[13:28:32] `tim`: has joined #ruby
[13:32:02] decoponio: has joined #ruby
[13:32:12] poerror: has joined #ruby
[13:35:33] Infra-Red: has joined #ruby
[13:36:17] chagel: has joined #ruby
[13:37:52] eurialo: has joined #ruby
[13:40:30] solars: has joined #ruby
[13:40:33] anagha_: has joined #ruby
[13:40:34] joonty: has joined #ruby
[13:40:40] skade: has joined #ruby
[13:41:14] djbkd: has joined #ruby
[13:42:06] jyaworski: has joined #ruby
[13:42:16] pawnbox: has joined #ruby
[13:43:42] bricker: has joined #ruby
[13:44:16] pawnbox: has joined #ruby
[13:44:18] dionysus69: ye seriously I had 100 gists accumulated and I spend 10 minutes deleting them
[13:44:23] brg: has joined #ruby
[13:44:33] liquid-silence: has joined #ruby
[13:44:33] liquid-silence: has joined #ruby
[13:44:40] dionysus69: around 3 clicks per deleted gist
[13:45:57] htmldrum: has joined #ruby
[13:46:00] tvon: has joined #ruby
[13:46:26] floatingpoint: has joined #ruby
[13:46:45] joneshf-laptop: has joined #ruby
[13:47:10] shevy: yeah, I gave up on that, the old ones just linger now
[13:47:14] jxs__: has joined #ruby
[13:48:07] tvon: has joined #ruby
[13:48:24] vikas027: has joined #ruby
[13:48:39] CloCkWeRX: has joined #ruby
[13:49:01] bronson: has joined #ruby
[13:49:20] tjbiddle: has joined #ruby
[13:51:01] Guest57: has joined #ruby
[13:51:43] apeiros: dionysus69: huh? it's one click per gist + 1 additional about every 10 to "turn the page"
[13:52:26] apeiros: oh, no, right, you have to click to get into the gist, so 2 clicks per gist.
[13:52:40] graffix: has joined #ruby
[13:53:53] whippythellama: has joined #ruby
[13:54:10] mfaeh: has joined #ruby
[13:55:18] maner: has joined #ruby
[13:56:05] tAn: has joined #ruby
[13:56:25] vikas027: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[13:58:04] dionysus69: ye and then you have to confirm that you really want to delete the gist :D
[13:58:58] Pupp3tm4_: has joined #ruby
[13:59:02] apeiros: ok, you win. 3 clicks.
[13:59:54] aryaching_: has joined #ruby
[14:01:26] ruind: has joined #ruby
[14:01:30] atmosx: System Information: Model: MacBook Air (13-inch, Mid-2011)
[14:02:04] pwnd_nsfw`: has joined #ruby
[14:02:13] plonk: has joined #ruby
[14:02:13] plonk: has joined #ruby
[14:02:36] griffindy: has joined #ruby
[14:02:54] plonk: has joined #ruby
[14:02:54] plonk: has joined #ruby
[14:03:06] tvon: has joined #ruby
[14:03:33] plonk_: has joined #ruby
[14:04:33] plonk: has joined #ruby
[14:04:33] plonk: has joined #ruby
[14:05:38] plonk: has joined #ruby
[14:05:38] plonk: has joined #ruby
[14:05:41] idle_task: has joined #ruby
[14:06:02] shevy: you became a macster!
[14:06:10] shevy: atmosx are you still working in pharmacy btw?
[14:06:31] atmosx: shevy: no, I work as sysadmin now
[14:06:54] atmosx: shevy: devops/sysadmin whatever people call it these days, I admin systems and write code, depending on the task.
[14:07:16] bkxd: has joined #ruby
[14:07:23] atmosx: shevy: you?
[14:07:50] plonk: has joined #ruby
[14:07:50] plonk: has joined #ruby
[14:08:29] nerium: has joined #ruby
[14:08:32] TomyLobo: atmos? you're gonna kill everyone with poisonous gas are you?
[14:08:35] fostertheweb: has joined #ruby
[14:08:38] Hammy_Work: has joined #ruby
[14:08:45] plonk: has joined #ruby
[14:08:45] plonk: has joined #ruby
[14:10:18] shevy: atmosx nah still doing crapton of weird exams, next ones upcoming are one about plant ultrastructure (electron microscopy, fine structure of cells) and a boring one about physics in agriculture, like how much force to apply or energy to use as expenditure to move some stupid hydraulic valves and objects and thermocalculations bla bla bla
[14:11:02] EdwardIII: array.map {|v| "string" => v } isn't valid syntax? i want to convert ['a', ...] into ['string' => 'a', ...]
[14:11:14] Infra-Red: has joined #ruby
[14:11:21] shevy: what is "string" => v
[14:11:31] shevy: it seems as if you want a hash but you don't use {}
[14:11:39] EdwardIII: i want an array of hashes
[14:11:56] shevy: how do hashes look :)
[14:12:05] EdwardIII: ok, done - but in some places ruby seems to just dwim
[14:12:09] EdwardIII: in regards to this
[14:12:09] TomyLobo: array.map {|v| {"string" => v} }
[14:12:24] EdwardIII: e.g. ['a' => 'b']
[14:12:54] igam: has joined #ruby
[14:13:18] shevy: ruby allows you to be lazy
[14:13:27] TomyLobo: i try to avoid being lazy
[14:13:31] shevy: but the last one becomes: ['a' => 'b'] # => [{"a"=>"b"}]
[14:13:36] TomyLobo: doesnt make it easier for the next person to read
[14:13:46] Infra-Red: has joined #ruby
[14:13:59] shevy: yeah. don't become too lazy EdwardIII!
[14:14:37] havenwood: Or do. Automate everything. It's a nice programmer virtue!
[14:14:39] EdwardIII: i'm thirsty for berevity
[14:14:50] EdwardIII: and a spellchecker
[14:15:11] TomyLobo: thirsty for being bereaved?
[14:15:53] havenwood: EdwardIII: `Hash['a', 'b']` or `['a', 'b'].each_slice(2).to_a`
[14:16:25] plonk_: has joined #ruby
[14:16:25] plonk_: has joined #ruby
[14:16:59] plonk: has joined #ruby
[14:16:59] plonk: has joined #ruby
[14:17:58] plonk: has joined #ruby
[14:17:58] plonk: has joined #ruby
[14:18:07] EdwardIII: havenwood: i think the rigth approach is to use {} here
[14:18:23] EdwardIII: havenwood: the outcome i wanted was [{'a' => 'b'}]
[14:18:30] plonk: has joined #ruby
[14:18:32] havenwood: EdwardIII: Oh!
[14:18:49] EdwardIII: those are interesting though, thanks!
[14:19:09] tomatoes: has joined #ruby
[14:19:31] davedev24: has joined #ruby
[14:19:35] plonk: has joined #ruby
[14:19:35] plonk: has joined #ruby
[14:19:38] merida: has joined #ruby
[14:19:52] shevy: EdwardIII you are thirsty for beverage?
[14:19:53] andrewvos: has joined #ruby
[14:19:57] shevy: or thirty for brevity
[14:20:08] plonk: has joined #ruby
[14:20:08] plonk: has joined #ruby
[14:20:09] Rutix: has joined #ruby
[14:20:09] Rutix: has joined #ruby
[14:20:39] freerobby: has joined #ruby
[14:20:40] plonk: has joined #ruby
[14:20:40] plonk: has joined #ruby
[14:20:47] TomyLobo: is foo.bar[baz] (foo.bar[baz]) or foo.bar([baz])?
[14:21:02] EdwardIII: shevy: often both
[14:21:02] TomyLobo: is foo.bar[baz] (foo.bar)[baz] or foo.bar([baz])?
[14:21:28] plonk: has joined #ruby
[14:21:28] plonk: has joined #ruby
[14:21:42] TomyLobo: shevy, i think he is thirty-four beverages
[14:21:53] plonk_: has joined #ruby
[14:21:53] plonk_: has joined #ruby
[14:22:26] bry4n_: has joined #ruby
[14:22:27] plonk: has joined #ruby
[14:22:27] plonk: has joined #ruby
[14:22:35] binaryplease: has joined #ruby
[14:22:40] EdwardIII: one little thing that's got me thinking, sometimes method_name! seems to denote it's going to change state, but sometimes it seems to denote it might throw an exception rather than just return nil?
[14:22:41] TomyLobo: and i seriously hope it's (foo.bar)[baz] and that that isn't whitespace-dependent
[14:22:42] tAn: has joined #ruby
[14:22:48] TomyLobo: otherwise that would be very confusing
[14:23:12] TomyLobo: EdwardIII, ! means it changes state, in all cases i have seen so far
[14:23:17] TomyLobo: that's not saying much, though
[14:23:33] aegis3121: Typically for activeRecord it indicates it will throw an error
[14:23:35] EdwardIII: well the big one i've seen is a_model.save! if you want it throw exceptions on validation errors
[14:23:48] aegis3121: more or less, I always think of a `!` as indicating: "I might do something you don't expect, be alert!"
[14:24:08] moeabdol: has joined #ruby
[14:24:30] aegis3121: mutate is a good rule-of-thumb, but not all mutating methods indicate with a `!` so I don't like to rely on that.
[14:25:03] GreyHands: has joined #ruby
[14:25:11] plonk: has joined #ruby
[14:25:11] plonk: has joined #ruby
[14:25:30] EdwardIII: this is going to expose me as an absolutely crappy programmer but... should i be worried about mutating from a thread-safe perspective? unless the objects/vars i'm working with are global i should be ok right?
[14:25:44] canton7: typically "bang" methods only ever exist when there's a corresponding "non-bang " variant. The bang variant is more likely to do something unexpected: mutate, throw an exception, etc, so be aware
[14:25:57] TomyLobo: EdwardIII, globalness is the wrong criterion
[14:26:16] EdwardIII: maybe "shared resource" is better criterion?
[14:26:20] TomyLobo: availability to concurrently running threads is a better one
[14:26:33] fullofcaffeine: has joined #ruby
[14:27:24] plonk_: has joined #ruby
[14:27:24] plonk_: has joined #ruby
[14:27:55] plonk: has joined #ruby
[14:27:55] plonk: has joined #ruby
[14:28:07] Infra-Red: has joined #ruby
[14:28:28] plonk: has joined #ruby
[14:28:28] plonk: has joined #ruby
[14:28:31] hxegon: has joined #ruby
[14:29:08] plonk: has joined #ruby
[14:29:08] plonk: has joined #ruby
[14:29:12] apeiros: TomyLobo: as per matz himself, all ! means is "be careful"
[14:29:31] apeiros: but in core it's (afaik) only ever used in the paired form of non-mutating/mutating
[14:30:24] apeiros: !fixcon plonk
[14:30:24] ruby[bot]: +bbbb $a:plonk$#ruby-fix-your-connection plonk!*@*$#ruby-fix-your-connection plonk_!*@*$#ruby-fix-your-connection *!*@unaffiliated/plonk$#ruby-fix-your-connection
[14:30:25] ruby[bot]: ruby[bot] kicked plonk: join/part detected
[14:30:40] ruby[bot]: -b *!*@unaffiliated/work-op/x-9031893$#ruby-banned
[14:32:08] EdwardIII: righty-ho then
[14:32:48] canton7: the bot made almost as much noise as plonk :P
[14:34:59] cpup: has joined #ruby
[14:35:39] baweaver: has joined #ruby
[14:36:01] apeiros: canton7: you should go see an opticien
[14:37:04] bjpenn: has joined #ruby
[14:38:49] bricker: has joined #ruby
[14:38:56] TomyLobo: from my perspective the bot made more noise :)
[14:39:07] TomyLobo: (i have joins/quits hidden)
[14:39:08] shevy: I only saw the bot action, this is the first time I read plonk :-)
[14:41:08] jyaworski_: has joined #ruby
[14:41:21] tpo: has joined #ruby
[14:41:55] steffkes: has joined #ruby
[14:42:41] blandflakes: has joined #ruby
[14:44:29] mhoungbo_: has joined #ruby
[14:48:22] rippa: has joined #ruby
[14:49:26] zeroDivisible: has joined #ruby
[14:49:36] platzhirsch: has joined #ruby
[14:51:01] dgncn: has joined #ruby
[14:51:50] lxsameer: has joined #ruby
[14:52:32] aufi: has joined #ruby
[14:53:20] diegoviola: has joined #ruby
[14:53:37] kobain: has joined #ruby
[14:53:57] tomatoes: has joined #ruby
[14:54:11] tjbiddle: has joined #ruby
[14:54:47] blandflakes: has joined #ruby
[14:55:14] gbgdev: has joined #ruby
[14:59:34] RegulationD: has joined #ruby
[15:01:21] slawrence00: has joined #ruby
[15:01:33] dreinull: has joined #ruby
[15:02:28] bricker: has joined #ruby
[15:02:38] CloCkWeRX: has joined #ruby
[15:03:57] th_: has joined #ruby
[15:04:00] Pupp3tm4st3r: has joined #ruby
[15:04:05] LukeVLDB: has joined #ruby
[15:04:11] bjpenn: has joined #ruby
[15:04:21] havenwood: LukeVLDB: hi
[15:04:31] LukeVLDB: I was wondering if i can ask a python question here and see if anyone knows it because i can't talk in the python room
[15:04:39] tvon: has joined #ruby
[15:05:02] havenwood: LukeVLDB: Do you need to be registered and identified to talk in the #python channel?
[15:05:39] LukeVLDB: registered then it said go to freenode so i went there to talk to someone and i cant even talk in there either,
[15:06:50] LukeVLDB: I just wanted to know what this meant - header2.extend(file2.readline() for h in xrange(3))
[15:07:07] th_: hello people !i have 14 lines of simple and well commented code that have left me completely confused. if you can explain what i'm doing wrong, i'd appreciate it: http://pastebin.com/1KqtwH2Q
[15:07:08] ruby[bot]: TH_: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/38748b1c6831dad868be
[15:07:08] ruby[bot]: TH_: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[15:07:11] havenwood: LukeVLDB: Try: #python-unregistered
[15:07:31] LukeVLDB: okay havenwood
[15:08:09] LukeVLDB: wont let me talk in there either
[15:08:17] chipotle: has joined #ruby
[15:08:25] havenwood: LukeVLDB: I was gunna point you to the Freenode register/identify page but the site is down. Try: /msg nickserv help identify
[15:08:55] shevy: LukeVLDB the snakes be silent!
[15:08:58] havenwood: LukeVLDB: Anyways, happy to try to help you register and identify in the #ruby-offtopic channel.
[15:09:01] jaiks: has joined #ruby
[15:09:16] ruby[bot]: you need to be identified with NickServ, see /msg NickServ HELP
[15:09:18] Hanmac: TH_ you might checkout this: @matrix = Array.new(10) { Array.new(10, 0) }
[15:09:21] igam: has joined #ruby
[15:09:32] th_: thanks very much, i will indeed !
[15:09:46] tvw: has joined #ruby
[15:09:57] LukeVLDB: joining the ruby off topic channel now
[15:10:37] aclearman037: has joined #ruby
[15:10:43] naftilos76: has joined #ruby
[15:10:46] aegis3121: has joined #ruby
[15:11:14] openstruct: has joined #ruby
[15:11:30] naftilos76: Is there a ruby method that can evaluate ruby+html code ?
[15:12:00] adaedra: you could at least wait a little before repeating your question in another channel...
[15:12:26] tjohnson: has joined #ruby
[15:12:41] frustrum: has joined #ruby
[15:12:53] havenwood: naftilos76: What would evaluating ruby+html code be like? What does that mean? Say more?
[15:12:56] havenwood: n1colas: hi
[15:13:29] ericwood_: naftilos76: like erb?
[15:13:42] machinewar: has joined #ruby
[15:13:54] ericwood_: do you want a templating language? if so erb is kind of the defacto tool for ruby interpolation
[15:14:15] machinewar: is there a way to stream writing to a file similar to reading. Pretty much want to write a huge file, but not hold the entire thing in memory before its persisted to disc
[15:14:47] adaedra: machinewar: you can use flush to force a write.
[15:15:16] haylon: has joined #ruby
[15:15:23] machinewar: adaedra: good idea thanks didn't think about that
[15:16:02] e1z0: has left #ruby: ("Leaving")
[15:16:17] mallu: has joined #ruby
[15:16:34] havenwood: naftilos76: Please say so in all channels if you're crossposting. That way folk don't waste time on questions already answered, etc. It's curtesy.
[15:17:43] aswen: has joined #ruby
[15:17:50] niksrc: has joined #ruby
[15:17:53] naftilos76: ericwood_, : i have a text that contains both html and ruby which is actually retrieved from a database. Is there a way to evaluate that in a view?
[15:18:29] ericwood_: that's a weird thing
[15:18:33] ericwood_: would need an example
[15:18:42] ericwood_: like, that sounds like its own weird invented format
[15:18:49] ericwood_: that's not a standard thing outside of erb
[15:18:59] naftilos76: let me work on it a little bit more
[15:19:03] havenwood: naftilos76: You can eval Ruby... but... where's the Ruby coming from?
[15:19:24] bronson: has joined #ruby
[15:19:25] axl_: has joined #ruby
[15:19:28] ericwood_: this whole thing sounds sketchy
[15:19:34] dopamean_: has joined #ruby
[15:19:51] naftilos76: havenwood, let me think about it a little bit before confusing you more
[15:21:18] mfaeh: has joined #ruby
[15:22:38] PedramT: has joined #ruby
[15:23:22] adgtl: has joined #ruby
[15:24:30] machinewar: has left #ruby: ()
[15:24:59] dhollinger: has joined #ruby
[15:25:40] last_staff: has joined #ruby
[15:27:16] jas02: has joined #ruby
[15:27:31] th_: hanman: i was going to ask you why my code did not work as expected, but i figured out why... object IDs. had that problem before >.< thank you again, very much. so fast
[15:27:58] jaiks: has joined #ruby
[15:28:43] Infra-Red: has joined #ruby
[15:31:03] blandflakes: has joined #ruby
[15:31:37] blackmesa: has joined #ruby
[15:31:57] bjpenn: has joined #ruby
[15:32:37] freerobby: has joined #ruby
[15:35:06] Pupp3tm4st3r: has joined #ruby
[15:36:05] andrewvos: has joined #ruby
[15:36:42] stunder001: has joined #ruby
[15:38:27] LukeVLDB: has left #ruby: ()
[15:39:32] gbgdev: has joined #ruby
[15:41:06] KensoDev: has joined #ruby
[15:42:47] merida: has joined #ruby
[15:43:08] djbkd: has joined #ruby
[15:43:10] Infra-Red: has joined #ruby
[15:43:46] adgtl: has joined #ruby
[15:44:21] tvon: has joined #ruby
[15:44:46] dikaio: has joined #ruby
[15:44:54] cym3try: has joined #ruby
[15:45:08] moos3_: has joined #ruby
[15:46:47] cym3try: total n00b here. Can you hlp me why the gems are not being recognised by this ruby script? http://pastebin.com/En17A1PE
[15:46:48] ruby[bot]: cym3try: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
[15:48:29] cym3try: script: https://github.com/snmaynard/redis-audit
[15:48:30] platzhirsch: has joined #ruby
[15:48:51] RIK: cym3try: run: ruby -e 'p Gem.ruby', and then put "p Gem.ruby" at the top oif your script and run it.
[15:49:06] RIK: see if the answers are the same or not
[15:49:19] chouhoul_: has joined #ruby
[15:50:11] Pupp3tm4st3r: has joined #ruby
[15:50:40] mozzarella: has joined #ruby
[15:50:43] shotwhat: has joined #ruby
[15:50:45] cym3try: I get -e:1: uninitialized constant Gem (NameError) with both
[15:50:52] dionysus69: has joined #ruby
[15:51:19] cym3try: (i am on ubuntu btw)
[15:51:25] RIK: what version of Ruby do you have there?
[15:51:49] cym3try: ruby 1.8.7 (2012-02-08 patchlevel 358) [x86_64-linux]
[15:51:54] RIK: run: gem info
[15:51:54] shotwhat: Would love to know what you think about Dpr, a light weight http client for Ruby. https://medium.com/@Sudhagar/dpr-the-simplest-rest-client-in-ruby-6dd7e6b5cdb3#.rot9ewkin
[15:52:16] cym3try: Unknown command info
[15:52:16] havenwood: cym3try: Ruby 1.8 is past end of life! Back in 1.8 you had to `require 'rubygems'` but you don't now that RubyGems ships with Ruby.
[15:52:51] RIK: okay. so with that and what havenwood said, add the line: require 'rubygems'
[15:52:52] havenwood: cym3try: Rubies 2.1+ are currently maintained.
[15:52:54] danjack_: is there some sort of gem which makes hashes accessible through function names, like if I have a = { b: 1 }, i would have to access it through a[:b], but I want to be able to do so with a.b ?
[15:52:55] RIK: put that at the top of your code
[15:52:57] RIK: and try again
[15:53:38] shotwhat: join #python
[15:54:09] cym3try: yeah that did the trick. I will upgrade to new ruby then
[15:54:13] RIK: anyone tried to install ruby-gpgme on FreeBSD recently? it won't compile for me.
[15:54:52] RIK: it's failing with /usr/local/lib/libassuan.so: undefined reference to `gpgrt_asprintf'
[15:55:08] colegatron: has joined #ruby
[15:56:25] chouhoulis: has joined #ruby
[15:56:52] `tim`: has joined #ruby
[15:56:53] havenwood: rik: Worked for me just now: sudo pkg install gpgme && sudo gem install ruby-gpgme
[15:57:19] RIK: havenwood: which version of FreeBSD are you running?
[15:57:21] bjpenn: has joined #ruby
[15:58:06] RIK: hm. i'm on 10.0-Release.
[15:58:22] d0nn1e: has joined #ruby
[15:58:27] havenwood: rik: 10.1-RELEASE here
[15:58:50] dostoyevsky: >> /😊{2}/.match('😊😊')
[15:58:51] havenwood: and 10.2 is out!
[15:58:52] ruby[bot]: dostoyevsky: # => #<MatchData "😊😊"> (https://eval.in/536860)
[15:58:58] dostoyevsky: ruby is so cool
[15:59:16] RIK: i know. i need to do a tidy-up and upgrade.
[15:59:18] tomatoes: has joined #ruby
[15:59:24] nando293921: has joined #ruby
[15:59:51] RIK: i'm wondering whether i should just create a new VM, and install what i need on there, and move data over.
[16:01:06] PedramT: has joined #ruby
[16:01:09] freakcoder: has joined #ruby
[16:01:26] baweaver: has joined #ruby
[16:01:43] marxarelli: has joined #ruby
[16:02:37] ivanskie: has joined #ruby
[16:03:12] RIK: i guess i'll have to update, and come back later.
[16:04:11] synthroid: has joined #ruby
[16:06:06] amclain: has joined #ruby
[16:06:15] blandflakes: has joined #ruby
[16:08:13] poerror: has joined #ruby
[16:08:13] govg: has joined #ruby
[16:08:30] _stu_: has joined #ruby
[16:08:46] [Butch]: has joined #ruby
[16:09:56] Uber|Dragon: has joined #ruby
[16:10:35] blandflakes: has joined #ruby
[16:12:23] dikaio: has joined #ruby
[16:13:52] DmitryBochkarev: has joined #ruby
[16:14:22] nerium: has joined #ruby
[16:14:42] zotherstupidguy: has joined #ruby
[16:14:45] ivanskie: has joined #ruby
[16:15:03] TomyLobo: i always wondered: why are people using freebsd?
[16:15:25] havenwood: ACTION chants BSD, BSD!
[16:15:29] Guest38: has joined #ruby
[16:15:30] eam: TomyLobo: as opposed to?
[16:15:41] solars: has joined #ruby
[16:16:19] BTRE: has joined #ruby
[16:16:53] eam: well, the licensing terms are drastically different. Might matter if you're, say, building an embedded system for distribution
[16:17:10] TomyLobo: hasnt stopped google :)
[16:17:37] eam: because google's business model is to give away android for free
[16:17:47] eam: but it will stop any business model predicated on selling the software with a contract
[16:17:59] shevy: TomyLobo probably in 2002 or so the difference was less decisive
[16:18:12] shevy: nowadays of course the answer is linux :)
[16:18:21] eam: well, not necessarily
[16:18:32] TomyLobo: 2002... back then there wasn't even windows server 2003 *cough*
[16:18:41] TomyLobo: back then, windows xp was hot shit
[16:18:42] eam: there are a few particular use cases where FreeBSD will outperform linux
[16:19:07] shevy: TomyLobo yeah win xp was cool
[16:19:09] eam: ZFS and the related licensing issues preventing it from becoming mainline in linux are one big such case
[16:19:20] eam: the others tend to be fairly technical and specific
[16:19:36] TomyLobo: ZFS support on linux is pretty stable now i hear
[16:19:39] eam: it's not
[16:19:49] sucks: has joined #ruby
[16:19:58] shevy: we will have it!
[16:20:01] shevy: ACTION shakes fist.
[16:20:12] jds: has joined #ruby
[16:20:16] TomyLobo: ok, sun arseholery aside, what else is there?
[16:20:54] d0nn1e: has joined #ruby
[16:20:55] shevy: openbsd - it is so secure that you can not even run it!
[16:21:13] eam: TomyLobo: in a prior job I worked at one of the largest FreeBSD shops in the world (and they *also* had one of the largest linux footprints in the world)
[16:21:23] shevy: exotic things... haiku ... reactos ... and the ultimate linux killer, GNU hurd
[16:21:35] eam: as I said, depending on the workload, each can outperform the other in particular scenarios
[16:21:51] eam: and ZFS is just one example of license conflict
[16:21:52] adgtl: has joined #ruby
[16:22:15] TomyLobo: shevy, reactos was supposed to be a windows killer
[16:22:20] TomyLobo: that worked out well...
[16:22:31] TomyLobo: eam, yeah, intentional license conflict
[16:22:49] eam: intent is irrelevant in business
[16:23:17] shevy: TomyLobo nono, just legacy-using part, not trying to kill windows
[16:23:23] eam: what matters is what works best
[16:23:56] govg: has joined #ruby
[16:24:32] eam: TomyLobo: I should mention I spent much of my time overseeing a migration from FreeBSD to Linux
[16:24:47] futilegames: has joined #ruby
[16:24:53] bjpenn: has joined #ruby
[16:24:58] eam: lest you suspect that my explanation of why FreeBSD has some advantages is an indicator of bias
[16:25:44] TomyLobo: eam, of course. i'm just saying that ZFS being more readily available on freebsd was by design, not by accident
[16:25:54] TomyLobo: CDDL is not MPL is what i'm saying :)
[16:26:05] finisherr: has joined #ruby
[16:26:05] eam: by design how?
[16:26:23] uglybandersnatch: has joined #ruby
[16:26:25] finisherr: has left #ruby: ()
[16:26:52] havenwood: TomyLobo: Lots of folk use OS X in development. For them the BSDs are close cousins and much more similar environments. They tend to be simpler to administrate and more similar amongst themselves.
[16:26:59] TomyLobo: hmm well, cddl seems to be mpl-based
[16:27:00] rafaelaraujo: has joined #ruby
[16:27:09] TomyLobo: looks like i forgot about that
[16:27:13] TomyLobo: http://www.golem.de/0412/35017.html
[16:27:43] TomyLobo: havenwood, i see
[16:27:53] TomyLobo: see i cannot relate to that. i havent touched an osx, ever
[16:27:56] shevy: oh right, I forgot the macsters
[16:27:58] eam: havenwood: I don't know anyone who's happy about OSX as an environment, though
[16:28:12] darkf: has joined #ruby
[16:28:13] shevy: OSX has so pretty colours
[16:28:17] havenwood: TomyLobo: Even down to being able to use the same package manager, like pkgsrc, on OS X and NetBSD,e tc.
[16:28:22] TomyLobo: well, actually i once installed mac os x on pearpc
[16:28:27] TomyLobo: it was too slow to evaluate
[16:28:43] TomyLobo: this was back in the powerpc days
[16:28:43] havenwood: eam: Nobody? Not even misguided folk? :P
[16:28:52] eam: havenwood: ;)
[16:29:11] babblebre: has joined #ruby
[16:29:51] TomyLobo: is osx's "x" button designed with fitt's law in mind these days?
[16:30:15] TomyLobo: fitts' law*
[16:30:31] eam: I'm not sure osx has quite so much in common with any of the bsds
[16:30:40] TomyLobo: fitts's law* according to wikipedia
[16:30:45] havenwood: eam: It does!
[16:30:49] eam: the de-facto packaging system is brew, the system internals and apis are all very different
[16:30:59] shevy: brew! ruby!
[16:31:20] minimalism: has joined #ruby
[16:31:29] eam: havenwood: some of the userland is inherited, but that's a fairly superficial difference (and folks tend to install the gnu version of utilities more often than not)
[16:31:41] havenwood: "The two operating systems do share a lot of code, for example most userland utilities and the C library on OS X are derived from FreeBSD versions."
[16:31:47] havenwood: "or example, both libdispatch (Grand Central Dispatch in Apple's marketing) and libc++ were written for OS X and worked on FreeBSD before any other OS."
[16:31:56] eam: havenwood: derived from, but substantially different
[16:31:57] shevy: they are like brother and sister!
[16:31:59] havenwood: A bunch of shared code with FreeBSD and NetBSD.
[16:32:09] eam: havenwood: you know what other system shares code with BSD? Windows.
[16:32:10] dfockler: has joined #ruby
[16:32:13] shevy: one day they will see the light and migrate to linux (the kernel)
[16:32:19] havenwood: Same lineage, no doubt. A lot of overlap between Darwin and FreeBSD devs even.
[16:32:35] darix: shevy: apply?
[16:32:36] swills: has joined #ruby
[16:32:42] darix: i dont think they link the GPL all that much
[16:32:56] eam: you can find "c. regents of california uc berkeley" strings all over Windows binaries
[16:33:18] shevy: darix good point
[16:33:19] hakunin: has joined #ruby
[16:33:28] mdw: has joined #ruby
[16:33:43] TomyLobo: eam, the network stack is bsd-derived, like in virtually any os
[16:33:55] TomyLobo: but other than that?
[16:34:00] merida: has joined #ruby
[16:34:04] Xeago: has joined #ruby
[16:34:05] ruby[bot]: this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
[16:34:23] TomyLobo: not like there's anything else going on
[16:34:31] TomyLobo: are you an op?
[16:34:57] apeiros: /cs access #ruby list
[16:34:59] fullofcaffeine: has joined #ruby
[16:35:31] TomyLobo: good. hard to tell if people minimod or are genuine ops
[16:35:43] snockerton: has joined #ruby
[16:35:52] ruby[bot]: don't be mean to adaedra
[16:36:31] ruby[bot]: shevy is the hound of baskerville (see http://irclog.whitequark.org/ruby/2015-08-13#13699759)
[16:37:02] adaedra: TomyLobo: that's a suggestion for now. It's indeed better to have these discussions moved to -ot, it's easier to see if someone just popped to ask a question, which tend to be more difficult in dense conversations.
[16:37:32] Phage: has joined #ruby
[16:37:32] eam: TomyLobo: cmon over to -ot
[16:37:54] Phage: Can it be true, that I can't find any decent gem for image processing (stripping meta-data) ?
[16:37:58] dreinull: how do I tell ruby to return 10.00 instead of 10.0 as float?
[16:38:11] govg: has joined #ruby
[16:38:12] adaedra: dreinull: 10.0 and 10.00 are the same number.
[16:38:22] dreinull: adaedra obviously :)
[16:38:33] dreinull: it's an aesthetic choice
[16:38:59] adaedra: Maybe you want to have those floats converted as a string?
[16:39:09] th_: has joined #ruby
[16:39:23] dreinull: adaedra possible
[16:39:30] shevy: dreinull format them as strings on output padded
[16:39:49] n008f4g_: has joined #ruby
[16:39:50] roshanavand: has joined #ruby
[16:39:54] dreinull: @phage: https://rubygems.org/gems/rmagick/versions/2.15.4
[16:40:06] bjpenn: has joined #ruby
[16:40:36] shevy: '%.2f' % '10.0' # => "10.00"
[16:40:44] dreinull: shevy I always fear the format function...
[16:40:47] dreinull: oh, thanks.
[16:40:55] adaedra: shevy extra quotes?
[16:41:23] Phage: dreinull: thanks
[16:41:46] jackjackdripper: has joined #ruby
[16:42:17] sucks_: has joined #ruby
[16:42:28] mistermocha: has joined #ruby
[16:43:00] jackjackdripper: has joined #ruby
[16:43:13] mistermocha: has joined #ruby
[16:44:08] shinnya: has joined #ruby
[16:44:27] shevy: adaedra my strings are padded with love
[16:45:21] shevy: dreinull yeah there are some other ways. one might be '10.0'.ljust(5, '0') # => "10.00"
[16:46:07] mistermocha: has joined #ruby
[16:47:43] shevy: and perhaps you could modify ruby itself to remember how you input numbers, like x = 10.000 :)
[16:50:02] Xeago: has joined #ruby
[16:50:13] PedramT: has joined #ruby
[16:50:24] dionysus69: has joined #ruby
[16:50:58] davee_: has joined #ruby
[16:51:01] bronson: has joined #ruby
[16:51:21] last_staff: has joined #ruby
[16:52:34] WhoLettuce: has joined #ruby
[16:52:47] graffix: has joined #ruby
[16:52:56] WhoLettuce: Can someone tell me what channel I can go to to get to the html section
[16:53:08] WhoLettuce: I tried joining #html but it won't let me type there
[16:53:24] apeiros: ?register WhoLettuce
[16:53:24] ruby[bot]: WhoLettuce: you need to be identified with NickServ, see /msg NickServ HELP
[16:53:28] apeiros: probably that
[16:54:02] roshanavand: has joined #ruby
[16:55:08] WhoLettuce: I think I am now registered
[16:55:10] dikaio: has joined #ruby
[16:55:17] poerror: has joined #ruby
[16:55:23] WhoLettuce: has left #ruby: ()
[16:55:31] gregf_: WhoLettuce: thats the problem with copypasting *runs*
[16:55:37] WhoLettuce: has joined #ruby
[16:55:44] WhoLettuce: still doesn't work
[16:55:51] WhoLettuce: Won't let me type there
[16:55:55] tomchapin: has joined #ruby
[16:57:09] WhoLettuce: Can anyone here help me with html?
[16:57:18] WhoLettuce: Or tell me how I can type in the channel #html?
[16:57:26] chipotle: has joined #ruby
[16:57:52] hahuang65: has joined #ruby
[16:58:03] roshanavand: has joined #ruby
[16:58:25] tomchapin: has joined #ruby
[16:59:05] choke: has joined #ruby
[17:01:05] terminal_: has joined #ruby
[17:02:41] lessless: has joined #ruby
[17:04:55] anisha: has joined #ruby
[17:05:24] hahuang65: has joined #ruby
[17:05:30] riotjones: has joined #ruby
[17:06:23] reprazent: has joined #ruby
[17:06:27] shevy: WhoLettuce come on man
[17:06:32] dreinull: shevy the '%.2f' % x works just fine, thanks a lot
[17:08:28] baweaver: has joined #ruby
[17:13:16] symm-: has joined #ruby
[17:14:45] polishdub: has joined #ruby
[17:14:46] moos3: has joined #ruby
[17:16:37] y2mq37: has joined #ruby
[17:16:37] gregf_: WhoLettuce: whats your actual problem? html is not very tightly coupled to ruby
[17:16:53] WhoLettuce: I am asking in php
[17:16:56] WhoLettuce: They are helping me
[17:17:17] dionysus69: has joined #ruby
[17:17:19] gregf_: we can help too, provided you ask a question :|
[17:18:07] ljames: has joined #ruby
[17:18:41] rnda: has joined #ruby
[17:20:57] Xeago: has joined #ruby
[17:21:36] stunder001: has joined #ruby
[17:21:54] poerror: has joined #ruby
[17:22:41] infernix: has joined #ruby
[17:23:07] PedramT: has joined #ruby
[17:24:01] bjpenn: has joined #ruby
[17:25:03] dopamean_: has joined #ruby
[17:28:25] baweaver: has joined #ruby
[17:29:43] mistermocha: has joined #ruby
[17:30:24] mistermocha: has joined #ruby
[17:31:17] Xeago: has joined #ruby
[17:33:03] blandflakes: has joined #ruby
[17:33:19] moos3: has joined #ruby
[17:34:35] Abrin_AWAY: has joined #ruby
[17:34:59] tvw: has joined #ruby
[17:35:16] chouhoulis: has joined #ruby
[17:35:23] Rahul_Roy: has joined #ruby
[17:35:31] yardenbar: has joined #ruby
[17:36:23] VeryBewitching: has joined #ruby
[17:36:56] boontdustie: has joined #ruby
[17:37:12] yeticry: has joined #ruby
[17:37:20] skade: has joined #ruby
[17:38:49] mrgrieves: has joined #ruby
[17:38:57] jackjackdripper1: has joined #ruby
[17:39:16] bjpenn: has joined #ruby
[17:42:35] norc: has joined #ruby
[17:43:09] boontdustie: has joined #ruby
[17:44:07] tAn: has joined #ruby
[17:45:20] bkulbida: has joined #ruby
[17:45:26] Mon_Ouie: has joined #ruby
[17:47:29] codecop: has joined #ruby
[17:47:40] nofxx: has joined #ruby
[17:48:20] Xeago: has joined #ruby
[17:48:59] tvon: has joined #ruby
[17:49:07] snockerton: has joined #ruby
[17:49:18] [Butch]: has joined #ruby
[17:49:28] fmcgeough: has joined #ruby
[17:50:07] rails_deploy_hel: has joined #ruby
[17:50:09] bkulbida: has joined #ruby
[17:50:44] Xeago: has joined #ruby
[17:50:58] mostlybadfly: has joined #ruby
[17:51:00] rails_deploy_hel: Hi guys, I have problem with deploying rails app on Ubuntu server with Capistrano, Nginx and Passenger. I have been spending few days trying to find solution, but I am still having problems. Anyone can help?
[17:53:07] RoR_need_help: has joined #ruby
[17:53:15] RoR_need_help: Hi guys, I have problem with deploying rails app on Ubuntu server with Capistrano, Nginx and Passenger. I have been spending few days trying to find solution, but I am still having problems. Anyone can help?
[17:53:41] bjpenn: has joined #ruby
[17:54:00] norc: ?rubyonrails
[17:54:00] ruby[bot]: norc: I don't know anything about rubyonrails
[17:54:03] ruby[bot]: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[17:54:29] blandflakes: has joined #ruby
[17:54:58] djbkd: has joined #ruby
[17:55:06] mwlang: has joined #ruby
[17:55:53] swills: has joined #ruby
[17:56:01] symm-_: has joined #ruby
[17:56:34] mrgrieves: has joined #ruby
[17:56:35] digitalcakes: has joined #ruby
[17:57:24] n008f4g_: has joined #ruby
[17:57:45] blandflakes: has joined #ruby
[17:59:56] cricket42: Hi guys, I have problem with deploying rails app on Ubuntu server with Capistrano, Nginx and Passenger. I have been spending few days trying to find solution, but I am still having problems. Anyone can help?
[18:01:05] RegulationD: has joined #ruby
[18:01:58] tvon: has joined #ruby
[18:02:17] B4daBing73: has joined #ruby
[18:02:27] sneakerhax: has joined #ruby
[18:03:10] firstdayonthejob: has joined #ruby
[18:03:52] freerobby: has joined #ruby
[18:04:16] dopie: has joined #ruby
[18:04:18] godzillaenlacasa: has joined #ruby
[18:05:15] rodrigodata: has joined #ruby
[18:07:11] frustrum: has joined #ruby
[18:09:47] baweaver: has joined #ruby
[18:11:37] SCHAAP137: has joined #ruby
[18:12:47] chouhoulis: has joined #ruby
[18:14:07] xaxisx: has joined #ruby
[18:15:03] RegulationD: has joined #ruby
[18:16:41] poguez_: has joined #ruby
[18:19:41] Infra-Red: has joined #ruby
[18:21:28] cdg: has joined #ruby
[18:22:25] Pupp3tm4st3r: has joined #ruby
[18:24:41] pbruna: What is the preferred solution these days to run your own Gemserver? Is there a version with some ACL?
[18:25:13] weemsledeux: has joined #ruby
[18:25:42] mdw: has joined #ruby
[18:26:23] bronson: has joined #ruby
[18:26:26] bjpenn: has joined #ruby
[18:28:51] futilegames: has joined #ruby
[18:30:13] sepp2k: has joined #ruby
[18:33:34] blackmesa: has joined #ruby
[18:34:11] finisherr: has joined #ruby
[18:39:00] jterra: has joined #ruby
[18:40:24] crowell: has joined #ruby
[18:40:25] crowell: has joined #ruby
[18:40:29] RIK: here's a challenge for people...
[18:41:55] PedramT: has joined #ruby
[18:41:57] RIK: i'm writing an application using Sinatra and DataMapper. DataMapper is needed for the ORM layer that has a few objects that need to be related together. I want the database on disk to be encrypted, because i'm going to back it up to the cloud.
[18:42:32] RIK: my current idea is that i have sqlite in ram, and spool it out to disk via gpgme, but it seems a little clunky.
[18:42:42] RIK: does anyone have a better idea?
[18:43:21] mistermo_: has joined #ruby
[18:45:50] flazz: has joined #ruby
[18:46:03] flazz: what is the correct style for multi-line method calls?
[18:46:06] BTRE: has joined #ruby
[18:46:37] _blizzy_: has joined #ruby
[18:46:57] shortdudey123: has joined #ruby
[18:48:23] poerror: has joined #ruby
[18:49:18] dhollinger: has joined #ruby
[18:50:14] stunder_: has joined #ruby
[18:51:16] tobiasvl: flazz: https://github.com/bbatsov/ruby-style-guide is often used as a style guide
[18:51:24] flazz: tobiasvl: ty
[18:51:29] tobiasvl: (there is no "correct" style though)
[18:51:35] flazz: even better
[18:52:55] PsionTheory: has joined #ruby
[18:53:21] myntcake: has joined #ruby
[18:55:02] rafaelaraujo: has left #ruby: ()
[18:56:32] shevy: flazz I tend to group them for readability
[18:56:35] intrigueD: has joined #ruby
[18:56:49] Renich: has joined #ruby
[18:56:57] Uber|Dragon: has joined #ruby
[18:57:06] shevy: but it's quite rare to see them used really
[18:57:57] tvw: has joined #ruby
[19:01:10] bezhermoso: has joined #ruby
[19:02:24] spider-mario: has joined #ruby
[19:03:50] chipotle: has joined #ruby
[19:07:20] Regulati_: has joined #ruby
[19:07:36] davedev24: has joined #ruby
[19:07:58] frustrum: has joined #ruby
[19:09:33] baweaver: has joined #ruby
[19:10:08] RIK: the answer to my question appears to be 'use sqlcipher, dummy'. i just need to convince the sqlite gem to build against it. i might fork that, and make a fresh gem with the specifics.
[19:10:15] RIK: because i'm nice, and becaus ei've never made a gem.
[19:11:17] shevy: so ambitious
[19:11:42] RIK: well, th ehard work of creating sqlcipher is done.
[19:12:22] mrgrieves: has joined #ruby
[19:12:32] RIK: maybe DataMapper extension, instead.
[19:13:29] roshanavand: has joined #ruby
[19:14:54] last_staff: has joined #ruby
[19:16:02] th_: has joined #ruby
[19:16:30] yardenbar: has joined #ruby
[19:19:12] aegis3121: has joined #ruby
[19:19:52] postmodern: has joined #ruby
[19:20:22] mrgrieves: has joined #ruby
[19:21:25] rmulligan: has joined #ruby
[19:22:16] rmulligan: has joined #ruby
[19:23:12] roshanavand: has joined #ruby
[19:23:14] jackjackdripper: has joined #ruby
[19:23:26] mdw: has joined #ruby
[19:26:32] yqt: has joined #ruby
[19:28:56] govg: has joined #ruby
[19:30:41] baweaver: has joined #ruby
[19:31:49] bjpenn: has joined #ruby
[19:33:15] dopamean_: has joined #ruby
[19:34:43] stunder_: has joined #ruby
[19:35:41] shevy: grand vision meets real expectations...
[19:36:42] znz_jp: has joined #ruby
[19:36:59] baweaver: has joined #ruby
[19:37:00] shevy: don't let your dreams fade away rik!
[19:37:04] roshanavand: has joined #ruby
[19:38:55] pragmatism: has joined #ruby
[19:39:26] Xeago: has joined #ruby
[19:42:27] rdark: has joined #ruby
[19:47:16] roshanavand: has joined #ruby
[19:47:47] bjpenn: has joined #ruby
[19:47:53] hostess: has joined #ruby
[19:48:53] jenrzzz: has joined #ruby
[19:49:02] moos3: has joined #ruby
[19:50:15] bricker: has joined #ruby
[19:50:22] tacit7: has joined #ruby
[19:52:15] bronson: has joined #ruby
[19:52:35] freerobby: has joined #ruby
[19:53:31] anisha: has joined #ruby
[19:54:01] tummy: has joined #ruby
[19:54:22] Rahul_Roy: has joined #ruby
[19:54:57] tummy: Been trying to get seeing-is-believing package install and working with Atom, but haven't had any luck. Any recommendations on a working alternative?
[19:56:20] bttf: has joined #ruby
[19:56:34] mistermocha: has joined #ruby
[19:57:10] mdw7: has joined #ruby
[19:58:13] Eiam: has joined #ruby
[19:58:34] sp4rrow: has joined #ruby
[19:59:46] rrrepsaj: has joined #ruby
[20:00:02] weemsledeux: has joined #ruby
[20:01:12] Jimmie: has joined #ruby
[20:01:20] Jimmie: How do I join the php channel?
[20:02:22] `tim`: has joined #ruby
[20:02:59] dmr8: has joined #ruby
[20:03:33] ur5us: has joined #ruby
[20:03:50] bjpenn: has joined #ruby
[20:03:51] mistermocha: has joined #ruby
[20:05:54] solars: has joined #ruby
[20:06:18] chouhoulis: has joined #ruby
[20:06:37] yasha_: has joined #ruby
[20:07:59] blackgoat: has joined #ruby
[20:08:41] mistermocha: has joined #ruby
[20:10:02] x77686d: has joined #ruby
[20:10:39] mdw: has joined #ruby
[20:14:13] blackmesa: has joined #ruby
[20:14:25] baweaver: has joined #ruby
[20:15:21] apeiros: so #ruby is the go-to channel for problems with all the following channels today: #html, #python and #php (or ##php?)
[20:15:26] apeiros: fascinating.
[20:15:30] bjpenn: has joined #ruby
[20:16:59] rickmasta: has joined #ruby
[20:17:18] roshanavand: has joined #ruby
[20:17:25] TheCubeLord: has joined #ruby
[20:18:31] freerobby: has joined #ruby
[20:19:28] TheCubeLord: how do you define a function?
[20:19:53] tenderlove: has joined #ruby
[20:20:04] WhoLettum: has joined #ruby
[20:20:18] apeiros: TheCubeLord: if you ask a question of this level, you should consider reading any of the freely available materials which teach you ruby.
[20:20:50] TheCubeLord: ACTION starts looking through the website the community gives him
[20:22:06] RickHull: has joined #ruby
[20:22:15] WhoLettum: I am trying to join the php channel It says I must be invited?
[20:22:45] RickHull: looking at http://ruby-doc.org/stdlib-2.3.0/libdoc/socket/rdoc/TCPSocket.html I see TCPSocket < IPSocket < BasicSocket
[20:22:50] apeiros: aaand help with other channels no. 5 today… what's up with that today?
[20:22:54] apeiros: WhoLettum: #freenode
[20:23:11] trosborn: has joined #ruby
[20:23:15] RickHull: BasicSocket defines #getpeereid
[20:23:26] cdg: has joined #ruby
[20:23:44] RickHull: yet TCPSocket#getpeereid #=> NoMethodError
[20:23:46] babblebre: has joined #ruby
[20:23:50] RickHull: what's up with that?
[20:23:52] TheCubeLord: WhoLettum join ##php not #php
[20:24:25] WhoLettum: I just had to rregistar
[20:24:28] WhoLettum: Hue hue hue
[20:24:58] apeiros: RickHull: subclasses can undefine methods. not sure that's the case here, but it's a possibility.
[20:25:26] apeiros: reading getpeereid, it seems to make sense TCPSocket (or probably IPSocket already) undefines that one.
[20:25:46] RickHull: yeah, that's what I figured, thanks.
[20:25:53] RickHull: gotta love inheritance hierarchies ;)
[20:26:05] TheCubeLord: who uses hexchat
[20:28:13] uglybandersnatch: has joined #ruby
[20:28:24] Gadgetoid: has left #ruby: ()
[20:28:27] tvon: has joined #ruby
[20:29:02] mdw7: has joined #ruby
[20:30:01] bronson: has joined #ruby
[20:30:02] tvon: has joined #ruby
[20:32:28] kobain: has joined #ruby
[20:32:39] j0n3: has joined #ruby
[20:36:07] mallu: has joined #ruby
[20:36:18] e: has joined #ruby
[20:37:20] Hanmac: new apple ad about "live photo" ... my reaction: "thats a FUCKING VIDEO!!"
[20:39:12] freakcoder: has joined #ruby
[20:39:30] weaksauce: it is and it isn't
[20:39:58] beergineer: has joined #ruby
[20:40:06] yardenbar: has joined #ruby
[20:40:30] davee_: has joined #ruby
[20:41:18] tummy: has joined #ruby
[20:42:53] stunder_: has joined #ruby
[20:43:15] platzhirsch: has left #ruby: ()
[20:43:28] rmulligan: has joined #ruby
[20:44:46] apeiros: !unban plonk
[20:44:48] ruby[bot]: -bbbb $a:plonk$#ruby-fix-your-connection plonk!*@*$#ruby-fix-your-connection plonk_!*@*$#ruby-fix-your-connection *!*@unaffiliated/plonk$#ruby-fix-your-connection
[20:44:52] bjpenn: has joined #ruby
[20:46:12] mdw: has joined #ruby
[20:46:47] agit0: has joined #ruby
[20:47:01] _stu_: has joined #ruby
[20:47:04] PedramT: has joined #ruby
[20:48:22] PedramT_: has joined #ruby
[20:49:05] blackmesa: has joined #ruby
[20:49:26] Didac: has joined #ruby
[20:49:46] plonk_: has joined #ruby
[20:49:47] platzhirsch: has joined #ruby
[20:50:06] mdw7_: has joined #ruby
[20:50:53] mdw7: has joined #ruby
[20:53:03] tubbo: weaksauce: no, it is.
[20:53:36] tubbo: weaksauce: the iPhone can just no longer take pictures.
[20:53:48] ruby[bot]: this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
[20:53:55] tubbo: know what
[20:53:57] adaedra: ?o... beat me
[20:54:12] weaksauce: lol fine. it's a video with a full 12
[20:54:16] weaksauce: mp picture embedded
[20:54:41] apeiros: seriously? is telling nicely not enough? do I have to take out the kick-boot?
[20:54:48] tubbo: weaksauce's sauce is so weak, he's not even in -offtopic
[20:54:55] weaksauce: :) i'm done
[20:58:20] rickmasta: has joined #ruby
[20:58:23] treehug88: has joined #ruby
[21:01:43] emesa: has joined #ruby
[21:01:50] colegatron_origi: has joined #ruby
[21:03:52] Diabolik: how can i amend this regex: (http|https)?:\/\/(www\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|)(\d+)(?:|\/\?)
[21:04:00] Diabolik: to match https://player.vimeo.com/video/30893836
[21:08:04] axl_: has joined #ruby
[21:08:24] elifoster: has joined #ruby
[21:08:24] apeiros: the cheap shot would be to amend the (www\.) part to also allow player\. I'd say
[21:08:39] apeiros: oh, and allow the s in videos to be optional
[21:09:16] apeiros: not sure whether it's the right approach, though. not even sure you should do this with a regex at all. too much unknown.
[21:10:12] frustrum: has joined #ruby
[21:10:15] Diabolik: apeiros so (www\.|player\.)
[21:10:33] nerium: has joined #ruby
[21:10:59] Diabolik: still no match according to rubular
[21:12:02] apeiros: then figure how far it matches and after that figure how to further amend the regex
[21:13:17] shevy: Diabolik did you build the regex from scratch?
[21:13:25] Maletor: has joined #ruby
[21:13:39] ziyadb: has joined #ruby
[21:14:06] mdw: has joined #ruby
[21:14:45] Nawn: has joined #ruby
[21:15:18] Diabolik: no, i feel that if i had i wouldn't be asking this q
[21:15:52] weaksauce: Diabolik just for that style url?
[21:16:18] Diabolik: yes or www.vimeo.com
[21:16:43] weaksauce: build it up from the ground up on rubular.
[21:17:07] weaksauce: start with "https?:\/\/" and keep adding to it
[21:17:09] crayon: has joined #ruby
[21:17:30] apeiros: depending on whether they have testcases for what it should match, that may not be the best idea.
[21:17:40] crayon: how can i run wpscan for example as a hosted service that end users can call from a web page?
[21:17:42] crayon: https://github.com/wpscanteam/wpscan
[21:18:05] Don_John: has joined #ruby
[21:18:16] jenrzzz: has joined #ruby
[21:19:20] dikaio: has joined #ruby
[21:20:04] s00pcan: has joined #ruby
[21:20:26] kam270: has joined #ruby
[21:21:25] devbug: has joined #ruby
[21:21:34] mariano_: has joined #ruby
[21:21:55] jkahn: has joined #ruby
[21:25:32] n008f4g_: has joined #ruby
[21:25:49] choke: has joined #ruby
[21:26:33] j2k: has joined #ruby
[21:27:47] poerror: has joined #ruby
[21:29:28] toretore: has joined #ruby
[21:31:02] mdw7: has joined #ruby
[21:31:21] alexherbo2: adaedra: done https://github.com/alexherbo2/dotfiles/blob/master/bin/explorer :D
[21:31:33] j2k: has joined #ruby
[21:32:29] alexherbo2: explorer is surely misnomer but I don’t find a proper name / description
[21:32:44] mdw7_: has joined #ruby
[21:32:57] Didac: has joined #ruby
[21:33:10] bjpenn: has joined #ruby
[21:33:27] adaedra: ACTION takes 20cc of context
[21:33:52] baweaver: has joined #ruby
[21:34:50] freerobby: has joined #ruby
[21:36:19] yqt: has joined #ruby
[21:37:40] alexherbo2: adaedra: ? :O
[21:38:12] adaedra: Your message comes a little out of nowhere, took me time to see what you could have been referring to
[21:38:43] mostlybadfly: has joined #ruby
[21:39:53] BSaboia: has joined #ruby
[21:39:54] alexherbo2: I achivied my goal, thanks :D
[21:40:20] rffleaie: has joined #ruby
[21:40:32] bjpenn_: has joined #ruby
[21:41:12] bronson: has joined #ruby
[21:41:15] alexherbo2: Is &[ planned ?
[21:41:24] matp: has joined #ruby
[21:41:53] ivanskie: has joined #ruby
[21:42:27] intrigueD: has joined #ruby
[21:42:38] weaksauce: is there a non block form of select that tests for equality?
[21:42:56] weaksauce: s/select/reject
[21:42:56] alexherbo2: (I refer to the safe navigation operator)
[21:43:10] alexherbo2: There is &. syntax but no &[ syntax
[21:43:23] Uber|Dragon: has joined #ruby
[21:43:38] weaksauce: [1,2,3].reject(2) # == [1,3]
[21:43:39] alexherbo2: &[ could be added?
[21:44:03] aegis3121: >> h = {a: 'apple'}; h&.[](:a)
[21:44:05] ruby[bot]: aegis3121: # => "apple" (https://eval.in/537101)
[21:44:08] jackjackdripper: has joined #ruby
[21:44:47] pawnbox: has joined #ruby
[21:45:25] aegis3121: The method is called :[]. Someone more equipped than me could better explain why.
[21:45:59] chipotle: has joined #ruby
[21:46:04] alexherbo2: aegis3121: thanks
[21:47:13] alexherbo2: looks cumbersome though
[21:47:32] aegis3121: Use fetch instead
[21:47:51] aegis3121: >> h = {a: 'apple'); h&.fetch(:b, 'bear')
[21:47:52] ruby[bot]: aegis3121: # => /tmp/execpad-596259a669ff/source-596259a669ff:2: syntax error, unexpected ')', expecting '}' ...check link for more (https://eval.in/537102)
[21:48:09] aegis3121: if I could do syntax
[21:48:28] aegis3121: >> blah = 'me'; b&.fetch(:a)
[21:48:29] ruby[bot]: aegis3121: # => undefined local variable or method `b' for main:Object (NameError) ...check link for more (https://eval.in/537103)
[21:48:41] aegis3121: (I have clearly not played with the lonely operator enough)
[21:50:44] poerror: has joined #ruby
[21:52:21] jottr: has joined #ruby
[21:55:56] mdw: has joined #ruby
[21:55:58] techietrash: has joined #ruby
[21:56:28] paultreny: has joined #ruby
[21:56:57] freakcoder: has joined #ruby
[22:00:08] sp4rrow: has joined #ruby
[22:01:56] tvon: has joined #ruby
[22:02:04] jottr: has joined #ruby
[22:03:27] raz: has left #ruby: ("*fump*")
[22:03:29] ivanskie: has joined #ruby
[22:04:53] shevy: >> RUBY_VERSION
[22:04:55] ruby[bot]: shevy: # => "2.3.0" (https://eval.in/537105)
[22:05:22] Zarthus_: has joined #ruby
[22:06:01] debclair: has joined #ruby
[22:07:11] mallu: has joined #ruby
[22:07:37] baweaver: has joined #ruby
[22:08:43] BTRE: has joined #ruby
[22:09:10] uglybandersnatch: has joined #ruby
[22:09:13] Elysia: has joined #ruby
[22:09:17] adaedra: You finally registered?
[22:10:01] debclair: Hello there, quick question, I got an observation in my code in a job interview recommending me to "Learn when it is right to use features of the language like -unless- to make code more legible and not the contrary". Thoughts?
[22:10:59] mdw: has joined #ruby
[22:11:09] baweaver: https://github.com/bbatsov/ruby-style-guide and read through Eloquent Ruby
[22:11:28] baweaver: They'll teach you how to write Ruby like Ruby.
[22:12:16] tvon: has joined #ruby
[22:13:35] baweaver: though really if that's what cost you in an interview, the job isn't worth it.
[22:15:36] debclair: baweaver, I seemed to have failed to abide by the "do not use -unless- with -else-" seems to be the only one.
[22:16:11] baweaver: was that the only thing you got dinged on>
[22:16:14] RIK: i would agree - you need to know the rules of the language and th econventions, so that you know when to break them.
[22:16:17] baweaver: and did that cost you the interview?
[22:17:11] baweaver: In an interview, I can tell the difference between someone who's done a lot of Ruby and someone who's done a lot of programming outside of ruby
[22:17:39] baweaver: I've turned down people that knew Ruby but were bad at programming in general
[22:18:10] baweaver: but rarely will I ever turn someone down who's a great programmer that doesn't know ruby / javascript to an extreme.
[22:18:25] eam: we don't even require someone know a particular language, so long as they demonstrate competence in some language
[22:19:43] gbgdev: has joined #ruby
[22:20:45] debclair: that and a couple more things like variable naming were the reasons(which I am finding kinda exaggerated though I might give them that one) but the unless thing was what struck me as weird
[22:22:24] baweaver: I like them to at least know _some_ of the language we're hiring for as it's a smaller team.
[22:23:05] baweaver: debclair: If all it was was stylistic stuff, don't sweat it, it was a bad company.
[22:23:21] Eaven: has joined #ruby
[22:23:30] baweaver: but make sure to evaluate the other parts of the interview for anything else you might have missed as well, because I just can't see that as the only reason for saying no.
[22:25:18] shevy: adaedra I did it only so I could trigger the ?adaedra
[22:25:40] Felix444: has joined #ruby
[22:26:02] freerobby: has joined #ruby
[22:27:42] trosborn: has joined #ruby
[22:28:29] weaksauce: debclair maybe they were trying to let you down easy
[22:28:59] weaksauce: but using unless with an else would be somewhat of a flag
[22:29:28] debclair: baweaver, yeah, I am taking the other things they told me into account too, but this seemed rather far-fetched to me and I wanted someone else's opinion. Thank you very much.
[22:29:51] baweaver: read over those two so you have that backing for next time just in case
[22:30:30] htmldrum: has joined #ruby
[22:30:38] rffleaie: has joined #ruby
[22:30:45] debclair: weaksauce, it was a train problem involving graphs, which I solved using object lists and dijkstra, I don't know, I felt kinda good doing it, it was fun.
[22:31:38] digitalcakes: has joined #ruby
[22:34:55] poerror: has joined #ruby
[22:35:44] unreal: has joined #ruby
[22:36:52] weaksauce: debclair cool. was it whiteboard or do you still have the code?
[22:38:20] workmad3_: has joined #ruby
[22:38:43] n008f4g_: has joined #ruby
[22:39:57] bezhermoso: has joined #ruby
[22:39:59] zenlot6: has joined #ruby
[22:40:28] riceandbeans: anyone know why a yaml file parses fine by a third party app that's running jruby, then I take the yaml file and template it with ERB to sub out values on certain lines, ruby on linux and windows both load it just fine when I do require 'yaml';YAML.load_file('file.yaml') but the jruby app returns the following error
[22:40:43] riceandbeans: yaml-cpp: error at line 0, column 0: bad conversion
[22:42:35] malconis_: has joined #ruby
[22:43:05] baweaver: has joined #ruby
[22:43:36] shevy: have you made sure the encoding is valid
[22:44:05] shevy: and the yaml file works in irb?
[22:44:30] lyro: has joined #ruby
[22:44:39] bezhermoso: has joined #ruby
[22:44:40] lyro: has left #ruby: ("Leaving")
[22:45:56] axl_: has joined #ruby
[22:48:45] skade: has joined #ruby
[22:49:29] toretore: riceandbeans: gist the file
[22:49:57] toretore: or better yet, upload it binarily
[22:50:47] Eaven: has joined #ruby
[22:51:01] stannard: has joined #ruby
[22:51:21] kobain: has joined #ruby
[22:51:29] digitalcakes: has joined #ruby
[22:53:56] yardenbar: has joined #ruby
[22:55:39] linoj: has joined #ruby
[22:55:45] rffleaie: has joined #ruby
[22:57:40] riceandbeans: shevy: I just said I tested the yaml file loading in irb on both linux and windows
[22:59:15] shevy: riceandbeans good, so you know that the yaml file is valid
[22:59:31] riceandbeans: yaml-cpp says it's not though
[23:00:04] Didac: has joined #ruby
[23:00:12] shevy: probably an amateur wrote yaml-cpp
[23:02:29] Moosashi: has joined #ruby
[23:03:48] mistermocha: has joined #ruby
[23:03:49] DiCablo: has joined #ruby
[23:04:02] rmulliga`: has joined #ruby
[23:05:22] Eaven: has joined #ruby
[23:05:27] binaryplease: has joined #ruby
[23:06:36] NeckBeardPrince: has joined #ruby
[23:10:29] poerror: has joined #ruby
[23:10:55] frustrum: has joined #ruby
[23:16:00] moei: has joined #ruby
[23:16:53] ensyde_: has joined #ruby
[23:17:20] tekk: has joined #ruby
[23:17:30] sdwrage: has joined #ruby
[23:17:42] linoj: has joined #ruby
[23:18:01] stunder001: has joined #ruby
[23:19:42] bezhermoso: has joined #ruby
[23:19:43] jackjackdripper1: has joined #ruby
[23:20:15] bezhermoso: has joined #ruby
[23:22:06] EasyCo_: has joined #ruby
[23:23:11] ensyde_: has joined #ruby
[23:24:09] Moosashi: has joined #ruby
[23:24:37] Don_John_: has joined #ruby
[23:26:30] diegoviola: has joined #ruby
[23:27:23] DLSteve: has joined #ruby
[23:29:19] bjpenn: has joined #ruby
[23:29:20] tvon: has joined #ruby
[23:31:26] babblebre: has joined #ruby
[23:32:05] n008f4g_: has joined #ruby
[23:33:02] mescyn: has joined #ruby
[23:35:02] drbrain: shevy: uh… not helpful
[23:35:30] drbrain: riceandbeans: can you post the YAML file yaml-cpp doesn't like?
[23:35:42] Ebok: has joined #ruby
[23:35:54] bezhermoso: has joined #ruby
[23:36:49] mescyn: I'm trying to implement a bitwise 32 bit shift in ruby. However, at the boundaries where I would have expected a promotion to a BigNum, that doesn't seem to be the case. https://gist.github.com/bemitc/4502601fd0a103b4c60b for example, if I rotate 1 to the right by 1, I get 0x80000000
[23:36:56] mescyn: err rotate, not shift
[23:38:09] drbrain: mescyn: are you on a 64 bit ruby?
[23:38:18] tvon: has joined #ruby
[23:38:59] safe: has joined #ruby
[23:39:37] drbrain: so you shouldn't ever promote to bignum for 32 bit shifts
[23:39:48] drbrain: … shift on 32 bit values
[23:40:24] mescyn: what would be the cause of a rotate of 1 by 1 bit producing 0x80000000 then? I would expect I would have 63 bits to work with in that case.
[23:40:26] eam: wouldn't it promote around 62 bits or so? sign, tag
[23:41:07] eam: >> [ (2**62 - 1).class, (2**62).class ]
[23:41:08] ruby[bot]: eam: # => [Bignum, Bignum] (https://eval.in/537142)
[23:41:17] eam: oh maybe ruby[bot] is using 32bit ruby
[23:41:20] bronson: has joined #ruby
[23:41:20] Ox0dea: eam: eval.in is 32-bit, yeah.
[23:41:44] eam: >> 1 << 31
[23:41:45] ruby[bot]: eam: # => 2147483648 (https://eval.in/537144)
[23:41:47] drbrain: for your implementation 1 >> 1 == 0, then you | that with the left side
[23:41:50] Ox0dea: >> '%b' % 0x80000000 # mescyn
[23:41:51] ruby[bot]: Ox0dea: # => "10000000000000000000000000000000" (https://eval.in/537145)
[23:42:01] jud: has joined #ruby
[23:42:01] Ox0dea: Your implementation of 32-bit right rotate is correct.
[23:42:12] drbrain: which returns 0x80000000
[23:42:14] drbrain: seems correct?
[23:42:35] eam: (32 - count) is gonna only move you 32 bits in other words
[23:43:07] shinnya: has joined #ruby
[23:43:35] drbrain: mescyn: what value do you expect for 1.ror(1)?
[23:44:14] mescyn: 0xffffffff
[23:44:28] Gasher: has joined #ruby
[23:44:33] mescyn: wait, no thats not right
[23:47:06] drbrain: I think you should get 0x80000000 https://en.wikipedia.org/wiki/Circular_shift#Example
[23:52:10] mescyn: yeah, i thought it was a problem with my rotate implementation (since it went away when i switched to bit-twiddle) but you're right, that is the correct value
[23:52:29] mleung: has joined #ruby
[23:55:50] stannard_: has joined #ruby
[23:56:44] weemsledeux: has joined #ruby
[23:57:28] graffix: has joined #ruby
[23:57:49] headius: riceandbeans: what version of JRuby? sounds like a bug if it works in CRuby but not JRuby
[23:57:53] headius: but maybe a bug we've fixed
[23:59:26] chipotle: has joined #ruby
[23:59:41] dikaio: has joined #ruby
[23:59:59] dopamean_: has joined #ruby