« Back to channel list

#ruby - 15 October 2015

« Back 1 day Forward 1 day »
[00:00:15] diegobiavati: has joined #ruby
[00:00:27] shortdudey123: has joined #ruby
[00:01:18] hagabaka: has joined #ruby
[00:01:44] shtirlic: has joined #ruby
[00:01:45] oetjenj: has joined #ruby
[00:02:08] PaulCape_: has joined #ruby
[00:02:11] codex: has joined #ruby
[00:02:20] zenspider: has joined #ruby
[00:02:47] lady3bean: has joined #ruby
[00:04:09] dfockler: Sequel has a pretty simple to use ORM system
[00:05:22] Musashi007: has joined #ruby
[00:05:31] pepperbreath: has joined #ruby
[00:05:50] niemcu: has joined #ruby
[00:05:56] fullofcaffeine: has joined #ruby
[00:05:57] renderful: has joined #ruby
[00:07:00] Shoutsid: has joined #ruby
[00:07:27] ValicekB_: has joined #ruby
[00:09:51] duderonomy: has joined #ruby
[00:10:25] xcesariox: has joined #ruby
[00:10:42] rismoney1: has joined #ruby
[00:11:08] blue_deref: has joined #ruby
[00:11:37] yfeldblum: has joined #ruby
[00:12:10] failshell: has joined #ruby
[00:13:05] rickmasta: has joined #ruby
[00:14:02] tier: has joined #ruby
[00:16:51] Hanmac: has joined #ruby
[00:17:20] govg: has joined #ruby
[00:20:29] zenguy_pc: has joined #ruby
[00:20:55] CloCkWeRX: has left #ruby: ()
[00:23:32] dstarh: has joined #ruby
[00:24:05] GnuYawk: has joined #ruby
[00:24:28] nizmow: has joined #ruby
[00:25:03] tsou: has joined #ruby
[00:25:16] yfeldblum: has joined #ruby
[00:25:38] ericjphillips: has joined #ruby
[00:26:46] gregoriokusows-1: has joined #ruby
[00:26:52] nizmow: has joined #ruby
[00:27:26] ElSif: has joined #ruby
[00:28:21] x-light: has joined #ruby
[00:28:31] toretore: has joined #ruby
[00:28:48] malcolmva: has joined #ruby
[00:29:52] nertzy2: has joined #ruby
[00:30:03] f3lp: has joined #ruby
[00:31:06] Musashi007: has joined #ruby
[00:31:25] rodfersou: has joined #ruby
[00:31:45] workmad3: has joined #ruby
[00:36:56] bryanray: has joined #ruby
[00:37:19] northfurr: has joined #ruby
[00:39:09] pontiki: ACTION waves o/
[00:39:18] `tim`: has joined #ruby
[00:39:23] havenwood: pontiki: \o
[00:41:00] arthurix_: has joined #ruby
[00:43:19] shevy: hey pontiki where have you been the last 3 years!
[00:43:20] CloCkWeRX: has joined #ruby
[00:43:39] riotjones: has joined #ruby
[00:44:08] pontiki: in fucking minnesnowda :()
[00:45:18] yeltzooo: has joined #ruby
[00:46:09] rgtk_: has joined #ruby
[00:47:53] diegoaguilar: has joined #ruby
[00:49:06] tier: has joined #ruby
[00:51:37] chopin: has joined #ruby
[00:52:03] bl0ndie: has joined #ruby
[00:53:02] tynamite: has joined #ruby
[00:54:46] dopamean_: has joined #ruby
[00:55:07] dstarh: has joined #ruby
[00:57:12] arescorpio: has joined #ruby
[00:57:21] chopin: has joined #ruby
[00:57:33] fullofcaffeine: has joined #ruby
[00:59:14] rails897: has joined #ruby
[00:59:16] sankaber: has joined #ruby
[00:59:43] haraoka: has joined #ruby
[01:00:12] rails897: I'm trying to create an enum on Rails and I'm getting this error "You tried to define an enum named "status" on the model "Post", but this will generate a class method "public", which is already defined by Active Record."
[01:00:26] rails897: What does that mean?
[01:02:51] havenwood: ?rails rails897
[01:02:51] ruboto: rails897, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[01:03:24] fullofca_: has joined #ruby
[01:04:02] shevy: pontiki aha so you are now snowtiki
[01:05:24] luckyme: has joined #ruby
[01:06:34] bruno-: has joined #ruby
[01:06:38] user083: has joined #ruby
[01:07:15] mistermocha: has joined #ruby
[01:07:35] stardiviner: has joined #ruby
[01:07:44] unreal_: has joined #ruby
[01:08:57] sankaber: has joined #ruby
[01:10:15] rismoney1: has joined #ruby
[01:11:19] axisys: has joined #ruby
[01:12:00] devoldmx: has joined #ruby
[01:12:34] northfurr: has joined #ruby
[01:14:48] bmurt: has joined #ruby
[01:16:04] fastAndSlow: has joined #ruby
[01:16:33] fastAndSlow: has left #ruby: ()
[01:18:14] joneshf-laptop: has joined #ruby
[01:21:19] armyriad: has joined #ruby
[01:21:50] diegoviola: has joined #ruby
[01:22:53] pontiki: no, not yet, thank the norse all-father
[01:23:48] shmilan: has joined #ruby
[01:25:25] XxionxX: has joined #ruby
[01:26:42] t0code: has joined #ruby
[01:27:12] t0code: whats the proper way to modify a value in a hash?
[01:27:30] t0code: hash.[key]=value?
[01:27:38] eam: hash[key] = value
[01:28:02] shevy: t0code interesting how you used the . there :)
[01:30:08] t0code: when passing the key in which to adjust, do you have to initialize the corresponding name within the method for it to pass?
[01:30:23] thistle: has joined #ruby
[01:32:09] workmad3: has joined #ruby
[01:32:53] EminenceHC: has joined #ruby
[01:33:49] stardiviner: has joined #ruby
[01:35:02] rickmasta: has joined #ruby
[01:35:47] l_tonz: has joined #ruby
[01:36:05] BraddPitt: short of using ncurses, is there a simple library to make an interactive repl that can accept user input, selection and screen redrawing?
[01:36:05] favadi: has joined #ruby
[01:38:07] eam: what's selection?
[01:38:29] eam: if you just want a simple repl, readline oughta do
[01:38:44] saddad: has joined #ruby
[01:39:57] tkuchiki: has joined #ruby
[01:40:02] bnagy: there were a ton of things like that
[01:40:05] shevy: screen redrawing
[01:40:09] bnagy: highline, is that the name?
[01:40:14] shevy: BraddPitt so you will go the curses way!
[01:40:31] Melpaws: has joined #ruby
[01:40:53] BraddPitt: I mean like the ability to use arrow keys for option selection and stuff eam
[01:40:54] willardg: has joined #ruby
[01:41:02] BraddPitt: perhaps im not using the right words to describe this
[01:42:00] bnagy: that's going to be way harder
[01:42:08] bnagy: do selections with numbers
[01:42:37] bnagy: https://github.com/JEG2/highline
[01:42:58] bnagy: turns out puts `clear` works in irb :P
[01:43:01] jenrzzz_: has joined #ruby
[01:43:06] bnagy: which is cute
[01:43:47] porfa: has joined #ruby
[01:43:57] BraddPitt: doesn't work for me bnagy
[01:44:03] Maletor: has joined #ruby
[01:44:24] eam: BraddPitt: it should, clear just prints an ansi escape sequence
[01:44:25] bnagy: you're probably on !unix or !bash
[01:44:26] riotjones: has joined #ruby
[01:44:33] bryanray|home: has joined #ruby
[01:44:36] BraddPitt: cmd+L on osx
[01:44:45] bnagy: works on osx
[01:44:46] eam: BraddPitt: it oughta work on osx
[01:44:48] |ifei5g00d: has joined #ruby
[01:44:56] eam: BraddPitt: puts "\e[H\e[2J"
[01:45:34] Melpaws1: has joined #ruby
[01:45:36] eam: clear|xxd
[01:45:41] BraddPitt: system('clear')
[01:45:46] eam: maybe you have something odd preempting clear
[01:46:04] bryanray: has joined #ruby
[01:47:13] |ifei5good: has joined #ruby
[01:47:51] shevy: you two are like an interactive script
[01:47:52] s2013: has joined #ruby
[01:48:00] porfa: has joined #ruby
[01:48:02] devoldmx: has joined #ruby
[01:48:05] htmldrum: has joined #ruby
[01:48:19] mistermocha: has joined #ruby
[01:48:39] shevy: readline is nice on linux, every ruby repl can happily have a history that way
[01:48:44] oetjenj: has joined #ruby
[01:49:07] |ifei5g0_: has joined #ruby
[01:50:07] Porfa_: has joined #ruby
[01:50:39] mistermocha: has joined #ruby
[01:50:43] toretore: has joined #ruby
[01:50:52] BraddPitt: I just think it would be nice to redraw the screen so I could, in essence, have different windows or "tabs"
[01:51:41] |ifei5g00d: has joined #ruby
[01:52:34] |ifei5g00d: has joined #ruby
[01:54:43] fullofcaffeine: has joined #ruby
[01:55:17] shevy: I still want a RubyOS too
[01:56:19] arup_r: has joined #ruby
[01:56:30] shevy: like, everything that you want to do, be made available
[01:56:41] shevy: and ideally in a nice to read ruby API
[01:58:14] TheNet: has joined #ruby
[01:59:56] arup_r: shevy: o/
[02:00:58] tier: has joined #ruby
[02:01:24] l_tonz: has joined #ruby
[02:01:40] _wldcordeiro: has joined #ruby
[02:01:45] l_tonz: has joined #ruby
[02:03:05] _wldcordeiro: has joined #ruby
[02:03:39] finisherr: has joined #ruby
[02:03:40] |ifei5good: has joined #ruby
[02:07:47] |ifei5g00d: has joined #ruby
[02:08:01] Feyn: has joined #ruby
[02:09:36] krz: has joined #ruby
[02:10:24] chopin: has joined #ruby
[02:10:39] spuk: has joined #ruby
[02:13:35] jenrzzz: has joined #ruby
[02:14:14] RobertBirnie: has joined #ruby
[02:15:54] t0code: is this correct syntax?
[02:15:58] t0code: $newAcct.each {|key,value| puts "#{key} #{value}" }
[02:17:03] drbrain: t0code: you probably want to use @ (instance variable) instead of $ (global variable)
[02:17:29] BraddPitt: but otherwise yes t0code
[02:17:33] thistle: has joined #ruby
[02:18:03] t0code: noted. was just testing something using global.
[02:18:42] fullofca_: has joined #ruby
[02:18:44] t0code: im getting and "undefined method end" error...
[02:19:36] |ifei5good: has joined #ruby
[02:20:00] BraddPitt: post full code in gist t0code
[02:20:19] bryanray: has joined #ruby
[02:22:03] t0code: https://gist.github.com/anonymous/17a907e8a4083921332c
[02:22:24] Shoutsid: has joined #ruby
[02:24:16] bnagy: t0code: fix your indenting
[02:24:20] bnagy: then you'll find your bug
[02:24:49] bnagy: depending on your editor you can probably find a ruby formatter that will work with it
[02:25:14] bnagy: eg line 58 looks suspicious
[02:26:16] diegoaguilar: has joined #ruby
[02:26:32] sdwrage: has joined #ruby
[02:26:36] zenguy_pc: has joined #ruby
[02:27:46] baweaver: has joined #ruby
[02:28:54] ledestin: has joined #ruby
[02:29:14] BraddPitt: t0code small nitpick: use snake_case for variable, argument and method names and CamelCase for class/module names
[02:29:24] tier: has joined #ruby
[02:29:26] swgillespie: has joined #ruby
[02:32:32] swgillespie: has joined #ruby
[02:32:48] workmad3: has joined #ruby
[02:34:13] favadi: has joined #ruby
[02:35:01] |ifei5g00d: has joined #ruby
[02:35:49] fedexo: has joined #ruby
[02:38:39] l_tonz: has joined #ruby
[02:39:35] spuk_: has joined #ruby
[02:40:26] failshell: has joined #ruby
[02:40:37] |ifei5g00d: has joined #ruby
[02:41:21] t0code: i think ive messed it up more...
[02:41:24] t0code: https://gist.github.com/anonymous/660b7f5313640e5c5224
[02:41:29] mezcan: has joined #ruby
[02:43:27] Scripore: has joined #ruby
[02:44:58] drbrain: line 20 looks suspiciously under-indented
[02:45:00] l_tonz: has joined #ruby
[02:45:00] diego3: has joined #ruby
[02:45:13] diego3: has joined #ruby
[02:45:40] drbrain: line 25, 46 look suspiciously over-indented
[02:46:11] Renich: has joined #ruby
[02:46:55] drbrain: t0code: ???
[02:47:25] |ifei5good: has joined #ruby
[02:47:50] SylarRuby: has joined #ruby
[02:47:55] Hijiri: has left #ruby: ("WeeChat 1.0.1")
[02:49:00] solocshaw: has joined #ruby
[02:50:38] PhantomSpank: has joined #ruby
[02:50:56] duderonomy: has joined #ruby
[02:53:52] fullofcaffeine: has joined #ruby
[02:54:12] snath: has joined #ruby
[02:54:28] snath: has left #ruby: ()
[02:54:50] |ifei5g00d: has joined #ruby
[02:55:23] araujo: has joined #ruby
[02:58:24] roshanavand: has joined #ruby
[02:58:43] avahey: has joined #ruby
[03:00:25] |ifei5good: has joined #ruby
[03:00:36] gener1c_: has joined #ruby
[03:01:21] mrtomme: has joined #ruby
[03:09:19] michaeldeol: has joined #ruby
[03:11:46] gix: has joined #ruby
[03:14:18] braincrash: has joined #ruby
[03:14:51] mistermocha: has joined #ruby
[03:15:44] mistermocha: has joined #ruby
[03:18:38] dgynn: has joined #ruby
[03:19:46] gnufied: has joined #ruby
[03:20:18] freerobby: has joined #ruby
[03:20:21] nekomimimaid: has joined #ruby
[03:21:17] devoldmx: has joined #ruby
[03:22:13] Zackio: has joined #ruby
[03:23:16] jun: has joined #ruby
[03:25:10] iateadonut: has joined #ruby
[03:26:54] rismoney1: has joined #ruby
[03:27:34] tmtwd: has joined #ruby
[03:27:55] anekos: has joined #ruby
[03:28:17] jatb: has joined #ruby
[03:29:11] tmtwd: has joined #ruby
[03:29:20] stannard: has joined #ruby
[03:32:01] decaff: has joined #ruby
[03:32:11] decaff: quick question, what does the "<<" operator do?
[03:32:37] decaff: I've tried googling but google doesn't pick up those symbols, apparently neither does SO
[03:32:49] drbrain: decaff: what's on the left-hand side?
[03:32:54] drbrain: what type?
[03:33:10] decaff: devise_parameter_sanitizer.for(:account_update) << :name
[03:33:39] workmad3: has joined #ruby
[03:33:41] drbrain: probably an Array, so << appends :name to that Array
[03:33:42] decaff: normallly that would be left-shift no?
[03:34:03] havenwood: decaff: Check?: devise_parameter_sanitizer.for(:account_update).class
[03:34:08] drbrain: for Array it appends an item, modifying the LHS, for String it concatenates
[03:34:18] drbrain: for integers it is left-shift
[03:34:40] decaff: ahh, alright, that makes sense
[03:34:49] decaff: devise must have an array of parameters to sanitize, thanks
[03:35:48] datanoise: has joined #ruby
[03:36:00] banister: has joined #ruby
[03:38:46] Ebok: has joined #ruby
[03:39:36] Ebok: Hey. I've a rather simple question. I have to create a method that delivers a float unless its a round int.
[03:40:10] Ebok: Is there a simple way to look at a float, and if its a num.0 return an int?
[03:40:43] Ebok: <_< my gut feeling is to look at it as a string[-2..-1] == ".0"
[03:41:01] Ebok: However that feels sortve wonky
[03:43:59] fullofcaffeine: has joined #ruby
[03:44:16] monoprotic: Ebok floats arent represented exactly and so you may get something like 2.0000002 after an operation. you may want to check if the value is within some small deviation from an integer instead
[03:45:02] bnagy: return f.floor if f == f.floor; return f
[03:45:13] riotjones: has joined #ruby
[03:45:14] bnagy: second return is redundant, I guess
[03:46:29] Ebok: I'm going to look up #floor now
[03:47:31] Ebok: Nah. See I cant round the answer at all
[03:47:49] bnagy: it doesn't
[03:48:02] Ebok: floor rounds it down to the nearest int
[03:48:06] bnagy: it returns an int if it's say 2.0, otherwise it returns the float
[03:48:10] bnagy: which is what you asked for
[03:48:47] Ebok: I misread your answer slightly. Thanks
[03:49:16] bnagy: note what monoprotic said though
[03:49:24] s00pcan: has joined #ruby
[03:49:44] bnagy: for most uses you might want to return an int if it's within some epsilon (that you choose) of the whole number
[03:49:45] Ebok: Yeah. If I was writing this for me, I'd definitely be looking at the be_within() variables
[03:49:55] Musashi007: has joined #ruby
[03:50:01] darkf: has joined #ruby
[03:50:19] Ebok: However, the method needs to match something given to me, rather then something I'm doing on my own
[03:50:25] fullofcaffeine: has joined #ruby
[03:50:55] failshell: has joined #ruby
[03:50:55] Ebok: so floats that cascade into tiny values need to match their tiny floats
[03:51:14] monoprotic: for example if you have `f = 129.95 * 100`, bnagy's thing will return the error-y float of 12994.9999999 rather than 12995
[03:51:25] ramfjord: has joined #ruby
[03:51:31] jpfuentes2: has joined #ruby
[03:52:08] Ebok: Appreciate the help ^_^
[03:52:16] ausec: has joined #ruby
[03:53:04] mistermocha: has joined #ruby
[03:53:58] mistermocha: has joined #ruby
[03:56:37] lxb: has joined #ruby
[03:56:48] stardiviner: has joined #ruby
[03:59:07] thistle: has joined #ruby
[03:59:12] diegoviola: has joined #ruby
[04:03:41] ausec: has joined #ruby
[04:05:22] Ebok: Does anyone here know how to use cloud 9? c9.io ?
[04:05:31] monoprotic: i used it once
[04:05:57] Ebok: That's probably not going to help. I enjoy the thing mostly, since I'm on like 4-5 computers a day.
[04:06:16] Ebok: However, every now and then I end up highlighting my code with this strange orange cursor
[04:06:49] Ebok: And I have no idea how to make the highlighted areas stop being orange. Its like I added a comment, or claimed authorship or something.
[04:07:32] renderful: has joined #ruby
[04:07:33] Renich: has joined #ruby
[04:07:58] Ebok: Might be a Read/Write claim
[04:08:08] Gnomethrower: has joined #ruby
[04:08:27] monoprotic: https://www.filepicker.io/api/file/O9uTbYyXTwaHGuRFTd86 is it this?
[04:09:20] Ebok: Need to figure out how to turn that off now >_> lol
[04:10:15] htmldrum: has joined #ruby
[04:10:32] monoprotic: https://docs.c9.io/docs/share-a-workspace
[04:10:34] devoldmx_: has joined #ruby
[04:10:36] monoprotic: is the editor set to public maybe?
[04:10:49] postmodern: has joined #ruby
[04:11:40] Ebok: I managed to at least hide most of it
[04:11:53] Ebok: There is still a cursor claim, but that's tiny and ignorable
[04:15:30] fedexo: has joined #ruby
[04:17:58] konsolebox: has joined #ruby
[04:18:03] stardiviner: has joined #ruby
[04:19:55] cwong_on_irc: has joined #ruby
[04:20:34] cwong_on_irc: has joined #ruby
[04:20:41] dikaio: has joined #ruby
[04:21:17] Melpaws: has joined #ruby
[04:23:29] chopin: has joined #ruby
[04:25:48] braincra-: has joined #ruby
[04:25:56] RobertBirnie: has joined #ruby
[04:28:59] quazimodo: has joined #ruby
[04:29:07] quazimodo: possible to run zeus in a shell script?
[04:29:25] quazimodo: i keep getting bash: zeus: command not
[04:29:58] quazimodo: in fact i'm doing xterm -hold -e "/bin/bash zeus start" & from within my shell script. So i think chruby isn't setting up my paths
[04:30:41] darkxploit: has joined #ruby
[04:30:49] postmodern: quazimodo, you probably want 'bash -c "..."'
[04:30:55] PaulCapestany: has joined #ruby
[04:31:37] NotASpam: has joined #ruby
[04:31:47] NotASpam: Hello. FUCK ALL SPICS, NIGGERS, JEWS, CHRISTIANS, SAND NIGGERS, DUNE COONS, KIKES, CHINKS, WETBACKS, FAGS, DYKES, AND PEOPLE WHO LIKE PEACH ICE CREAM, JOIN #R.TREES FOR FREE OPS
[04:32:04] NotASpam: Hello. FUCK ALL SPICS, NIGGERS, JEWS, CHRISTIANS, SAND NIGGERS, DUNE COONS, KIKES, CHINKS, WETBACKS, FAGS, DYKES, AND PEOPLE WHO LIKE PEACH ICE CREAM, JOIN #R.TREES FOR FREE OPS
[04:32:14] quazimodo: postmodern: i'lltry
[04:32:19] NotASpam: Hello. FUCK ALL SPICS, NIGGERS, JEWS, CHRISTIANS, SAND NIGGERS, DUNE COONS, KIKES, CHINKS, WETBACKS, FAGS, DYKES, AND PEOPLE WHO LIKE PEACH ICE CREAM, JOIN #R.TREES FOR FREE OPS
[04:32:25] NotASpam: has left #ruby: ()
[04:33:19] postmodern: quazimodo, check `man bash`, "path foo" will expect foo to be a file in the $PWD
[04:33:22] quazimodo: no that's not it
[04:33:34] fedexo: has joined #ruby
[04:33:51] postmodern: quazimodo, oh also bash -l -c "..." that way login configuration files get loaded
[04:34:23] workmad3: has joined #ruby
[04:35:07] Shoutsid: has joined #ruby
[04:35:25] quazimodo: postmodern: geting there :)
[04:35:37] postmodern: quazimodo, also there's chruby-exec
[04:36:13] postmodern: quazimodo, also make sure you don't override PATH anywhere in your shell config
[04:36:24] postmodern: quazimodo, otherwise it will reset the inherited PATH
[04:36:46] postmodern: it sucks that shell is this complex, but it is what it is
[04:37:02] Melpaws1: has joined #ruby
[04:37:16] quazimodo: postmodern: no idea how to use chruby-exec in this instance
[04:37:26] TheNet: has joined #ruby
[04:37:31] quazimodo: now to invoke an interactive shell
[04:37:56] baweaver: !mute NotASpam
[04:37:57] ruboto: +q NotASpam!*@*
[04:37:57] ruboto: -o ruboto
[04:38:01] baweaver: just in case ;)
[04:38:09] psye: has joined #ruby
[04:38:32] quazimodo: postmodern: xterm -hold -e "bash -i -c 'zeus start'" &
[04:38:34] quazimodo: that's working
[04:38:48] opensource_ninja: has joined #ruby
[04:43:24] dravine: has joined #ruby
[04:46:08] konsolebox: has joined #ruby
[04:47:07] postmodern: quazimodo, awesome
[04:47:17] postmodern: quazimodo, different distros use different .bashrc files
[04:47:31] postmodern: quazimodo, ubuntu will not load anything else unless it's an interactive shell
[04:47:49] postmodern: quazimodo, fedora/redhat will load different config files if it's -i or -l
[04:48:02] postmodern: yay cross compatibility
[04:48:18] jun: has joined #ruby
[04:49:42] sdwrage: has joined #ruby
[04:50:13] datanoise: has joined #ruby
[04:50:34] freerobby: has joined #ruby
[04:50:43] konsolebox: has joined #ruby
[04:52:27] freerobby1: has joined #ruby
[04:55:25] freerobby: has joined #ruby
[04:55:59] jun: has joined #ruby
[04:57:53] bluOxigen: has joined #ruby
[04:59:54] sanjayu: has joined #ruby
[05:05:30] psk17_: has joined #ruby
[05:07:23] cwong_on_irc: has joined #ruby
[05:07:47] cwong_on_irc: has joined #ruby
[05:08:41] yeshacker: has joined #ruby
[05:09:41] shinnya: has joined #ruby
[05:13:04] saddad: has joined #ruby
[05:14:00] chrissonar: has joined #ruby
[05:14:09] dhjondoh: has joined #ruby
[05:14:25] ivanskie: has joined #ruby
[05:14:38] ivanskie: whats the offtopic channel again?
[05:14:40] fullofcaffeine: has joined #ruby
[05:14:53] ivanskie: whats it called rather
[05:15:06] ivanskie: had to re-install my textual
[05:15:38] havenwood: ivanskie: #ruby-offtopic
[05:15:42] TvL2386: has joined #ruby
[05:16:02] havenwood: you're welcome
[05:16:18] niemcu: has joined #ruby
[05:16:20] rickmasta: has joined #ruby
[05:17:51] lxsameer: has joined #ruby
[05:17:52] lxsameer: has joined #ruby
[05:19:25] htmldrum: has joined #ruby
[05:20:19] iamjarvo_: has joined #ruby
[05:22:40] robbyoconnor: has joined #ruby
[05:22:59] GriffinHeart: has joined #ruby
[05:24:55] fullofcaffeine: has joined #ruby
[05:25:02] cwong_on_irc: has joined #ruby
[05:25:05] jpfuentes2: has joined #ruby
[05:25:29] cwong_on_irc: has joined #ruby
[05:27:34] ICantCook: has joined #ruby
[05:28:29] datanoise: has joined #ruby
[05:29:57] finisherr: has joined #ruby
[05:30:16] diegoaguilar: has joined #ruby
[05:30:30] Shoutsid: has joined #ruby
[05:30:54] haraoka: has joined #ruby
[05:34:00] tagrudev: has joined #ruby
[05:35:05] workmad3: has joined #ruby
[05:35:25] last_staff: has joined #ruby
[05:37:16] yfeldblum: has joined #ruby
[05:37:24] codecop: has joined #ruby
[05:38:14] xxneolithicxx: has joined #ruby
[05:40:00] riotjones: has joined #ruby
[05:40:17] EminenceHC: has joined #ruby
[05:45:24] Shoutsid: has joined #ruby
[05:47:43] diegoaguilar: has joined #ruby
[05:48:24] mondayrain: has joined #ruby
[05:50:31] astrobun_: has joined #ruby
[05:50:31] tejasmanohar: has joined #ruby
[05:52:02] l_tonz: has joined #ruby
[05:55:20] Shoutsid: has joined #ruby
[05:56:59] krz: has joined #ruby
[05:58:00] yeticry: has joined #ruby
[06:01:20] tkuchiki: has joined #ruby
[06:01:30] sp4rrow_: has joined #ruby
[06:01:45] trautwein: has joined #ruby
[06:01:52] GeissT: has joined #ruby
[06:02:24] l_tonz: has joined #ruby
[06:05:40] Tariq: has joined #ruby
[06:07:43] tariqc: has joined #ruby
[06:07:56] lkba_: has joined #ruby
[06:08:47] tariqc: Is anyone here?
[06:08:58] renderful: has joined #ruby
[06:09:46] tariqc: I have an image that I have cropped in memory using RMagick, but when I try to turn it into a blob and then save it onto the file into the Parse database
[06:09:55] tariqc: It raises an error about there being null bytes
[06:10:51] fullofcaffeine: has joined #ruby
[06:11:45] dionysus69: has joined #ruby
[06:12:19] `tim`: has joined #ruby
[06:13:01] tariqc: hello certainty
[06:13:04] tariqc: can you help me?
[06:13:06] Shoutsid: has joined #ruby
[06:13:11] certainty: hello Tariq_
[06:13:19] certainty: i don't know
[06:13:30] Radar: Tariq_: no code == no help
[06:13:31] certainty: show the code and the exact error message
[06:14:54] Tariq: has joined #ruby
[06:15:07] Tariq: https://gist.github.com/tra38/ba92a066ce8b5ae5e495
[06:15:10] Tariq: Here's my code.
[06:15:24] Tariq: When I turn the cropped image into a blob
[06:15:38] Tariq: It gives me a null_byte error
[06:15:52] Tariq: stripping out the null bye using regex gives me an error about the "file name" being too long
[06:16:04] Tariq: the "file name" being that blobby nonsense
[06:16:07] jas02: has joined #ruby
[06:16:11] Tariq: I want to upload the cropped image over to the Parse database
[06:16:46] Tariq: Also, the website is based on Sinatra
[06:16:46] mloy_: has joined #ruby
[06:16:52] Tariq: if that can help you any
[06:17:33] mloy: has joined #ruby
[06:17:35] mloy_: has joined #ruby
[06:18:21] Radar: Tariq: Can you save the image locally somewhere and verify that it's actually a proper image?
[06:18:28] Radar: Tariq: Patience, young grasshopper.
[06:18:37] Tariq: Okay, I don't know how to save an image locally
[06:18:55] Radar: File.open("blah.jpg", "w+) { |f| f.write(@image.to_blob) }
[06:19:02] leafybasil: has joined #ruby
[06:19:06] Tariq: let me try that
[06:19:27] certainty: fixing little syntax errors is left as an exercise :)
[06:19:42] kalusn: has joined #ruby
[06:19:45] Radar: certainty: certaintly.
[06:20:12] djbkd: has joined #ruby
[06:20:38] ruurd: has joined #ruby
[06:20:38] Tariq: wher is it actually going to save at?
[06:20:39] certainty: so does the error occur in #to_blob or in Parse::File.new?
[06:20:49] Tariq: It occurs in Parse::File.new
[06:20:55] Radar: Tariq: Same directory your sinatra app is running in
[06:21:11] Ropeney: has joined #ruby
[06:21:17] Tariq: I found it
[06:21:21] Tariq: Yeah it looks like a valid image
[06:21:29] Tariq: It's cropped too.
[06:21:34] Radar: Ok, so that's fine.
[06:21:42] Radar: What parse gem are you using?
[06:21:52] Tariq: Parse-Ruby-Client
[06:21:56] Tariq: I believe the old one
[06:21:59] Tariq: not the most recent one
[06:22:03] Radar: https://rubygems.org/gems/Parse-Ruby-Client
[06:22:05] Radar: Not found
[06:22:06] Radar: try again
[06:22:36] Macaveli: has joined #ruby
[06:22:47] Tariq: That's odd, I was able to gem install it
[06:22:48] Tariq: https://github.com/adelevie/parse-ruby-client/tree/v0.3.0
[06:22:52] Tariq: this is the one I'm using
[06:23:12] Radar: Potentially old.
[06:23:29] Tariq: There is a more recent version
[06:23:40] Tariq: but I didn't want to use it because it seemed there's a lot of changes
[06:23:50] Radar: Changes can be for a good reason.
[06:23:57] Radar: Changes can be for a good reason.
[06:23:57] Tariq: Yeah, but if those changes include bugs
[06:24:05] Radar: And if they don't contain bugs?
[06:24:08] Tariq: I won't like those changes
[06:24:12] Radar: What if they contain compatibility fixes for the API?
[06:24:12] Tariq: It's not released yet
[06:24:15] Tariq: If it's not released.
[06:24:21] Tariq: then they aren't confident in it
[06:24:31] Radar: All yours certainty. Home time for me.
[06:24:48] Tariq: So you are saying just upgrade to the latest version
[06:24:51] Tariq: and see what happens?
[06:24:56] certainty: Radar: have fun :)
[06:25:10] toy: has joined #ruby
[06:25:11] certainty: Tariq: that's worth a shot
[06:25:14] acke: has joined #ruby
[06:25:19] Radar: > gets error with old gem
[06:25:21] Tariq: Give me a second.
[06:25:25] Radar: > refuses to even try upgrading to new gem
[06:25:33] Radar: > (even after suggested to do that)
[06:25:58] certainty: Tariq: also if that doesn't help please annotate the gist with the full error message and backtrace
[06:26:04] CrazyEddy: has joined #ruby
[06:27:05] Tariq: same exact null error
[06:27:10] Tariq: edidint in full error message
[06:27:12] Tariq: and backtrace
[06:27:55] firstdayonthejob: has joined #ruby
[06:27:59] Tariq: Edit complete
[06:28:08] Tariq: https://gist.github.com/tra38/ba92a066ce8b5ae5e495
[06:29:06] Pupp3tm4st3r: has joined #ruby
[06:29:54] devoldmx: has joined #ruby
[06:30:45] Shoutsid: has joined #ruby
[06:31:08] certainty: hmm that's strange.
[06:31:08] Tariq: Do I need more annotations?
[06:31:16] certainty: also no application trace. Is there more?
[06:31:49] Tariq: Where would I find an application trace?
[06:32:09] certainty: should be all in the output
[06:32:39] certainty: can you rescue exceptions in block and start a pry session in the rescue clause?
[06:32:59] certainty: then investigate the exception's #message and #backtrace
[06:33:21] Tariq: I just posted the application trace from the terminal
[06:33:31] certainty: i'm unsure if that error really happened in Rack::Utils.bytesize
[06:33:43] certainty: because you don't have much of a body, since this is a redirect
[06:34:13] tesuji: has joined #ruby
[06:34:21] SCHAAP137: has joined #ruby
[06:34:23] Tariq: Okay, so how would I write a resuce exception in block?
[06:34:42] Tariq: and where would I put it?
[06:34:47] l_tonz: has joined #ruby
[06:35:10] certainty: which is line 45 of the walk_images controller?
[06:35:32] kalusn: has joined #ruby
[06:35:37] Xiti: has joined #ruby
[06:35:46] certainty: you wrap it with begin #yourcode rescue => ex binding.pry end (you need to add pry to your gemfile)
[06:35:50] Tariq: :body => IO.read(@image.to_blob)
[06:35:51] workmad3: has joined #ruby
[06:36:58] certainty: could you try IO.binread please?
[06:37:34] Tariq: doing so now
[06:37:40] certainty: &ri IO#binread
[06:37:40] `derpy: No results
[06:37:48] certainty: &ri IO.binread
[06:37:48] `derpy: http://www.rubydoc.info/stdlib/core/IO#binread-class_method
[06:38:09] certainty: oh it accepts a filename
[06:38:12] certainty: that's wrong
[06:38:19] konsolebox: has joined #ruby
[06:38:25] Tariq: String contains null byte
[06:38:31] Tariq: same exact error
[06:38:34] certainty: yeah that's expected
[06:38:39] yeshacker: has joined #ruby
[06:38:44] certainty: wait why are you even reading this?
[06:38:49] certainty: just pass in the body
[06:38:55] certainty: the blob i mean
[06:39:36] Tariq: Uh, it got submitted
[06:39:45] Tariq: Let me check my database to see if it got through
[06:40:00] GriffinHeart: has joined #ruby
[06:40:07] Tariq: I guess I did IO.read because it worked when I was uploading files directly using HTML5
[06:40:14] Tariq: so I thought I had to do the same when I cropped the image
[06:40:24] Xeago: has joined #ruby
[06:40:31] Tariq: But I guess it was unnecessary
[06:40:40] certainty: ACTION was confused
[06:40:49] certainty: should've seen that earlier
[06:41:52] Tariq: It is odd to know that all files really can be reduced down to unreadable characters
[06:42:36] Tariq: When I exported that image to a blob
[06:42:40] Tariq: and then puts that blob out
[06:42:43] Tariq: I got a bunch of weird characters
[06:42:49] certainty: of course it did
[06:42:56] certainty: it's not text
[06:42:56] varunwachaspati: has joined #ruby
[06:43:05] certainty: ACTION feels trolled
[06:43:38] Tariq: I was surprised it could even attempt to output text
[06:43:44] Tariq: I shouldn't be surprised.
[06:43:50] Tariq: Anyway, thanks certainty for catching that error
[06:44:03] GriffinHeart: has joined #ruby
[06:45:48] Tariq: Cropping is now fully implemented
[06:45:54] Tariq: Thanks certainity
[06:46:59] axisys: has joined #ruby
[06:47:14] tubuliferous: has joined #ruby
[06:50:01] ta: has joined #ruby
[06:50:10] skade: has joined #ruby
[06:52:53] Stan: has joined #ruby
[07:00:40] khebbie: has joined #ruby
[07:01:24] TomyWork: has joined #ruby
[07:01:39] Spami: has joined #ruby
[07:05:13] fullofcaffeine: has joined #ruby
[07:06:55] solars: has joined #ruby
[07:07:02] LMity: has joined #ruby
[07:10:01] above: has joined #ruby
[07:10:55] eggoez: has joined #ruby
[07:11:04] Unicorn|: has joined #ruby
[07:12:28] adac: has joined #ruby
[07:12:52] eGGsha: has joined #ruby
[07:14:48] Scripore: has joined #ruby
[07:15:55] GriffinHeart: has joined #ruby
[07:16:03] bigkevmcd: has joined #ruby
[07:19:21] sp4rrow_: has joined #ruby
[07:19:46] ruurd: has joined #ruby
[07:20:24] voker57: has joined #ruby
[07:20:41] nfk|laptop: has joined #ruby
[07:24:14] twistedpixels: has joined #ruby
[07:24:25] rushed: has joined #ruby
[07:26:15] favadi: has joined #ruby
[07:27:27] jenrzzz: has joined #ruby
[07:27:31] Shoutsid: has joined #ruby
[07:28:06] soosfarm: has joined #ruby
[07:28:35] andikr: has joined #ruby
[07:28:41] Melpaws: has joined #ruby
[07:30:23] devoldmx: has joined #ruby
[07:30:50] roshanavand: has joined #ruby
[07:31:29] toy: hi can any one please help me with this error Error(404): #RubyOnRails Cannot send to channel
[07:32:59] GriffinHeart: has joined #ruby
[07:33:18] certainty: toy: you must register to be able to join #RubyOnRails
[07:33:25] Melpaws: has joined #ruby
[07:34:08] toy: yeah it is giving me too many accounts registered ..how can i delete or get the name of existing accounts
[07:36:07] lenwood: has joined #ruby
[07:36:11] JammyHammy: has joined #ruby
[07:36:34] workmad3: has joined #ruby
[07:36:47] jenrzzz: has joined #ruby
[07:37:24] Violentr: has joined #ruby
[07:38:09] ruurd: has joined #ruby
[07:39:45] Hounddog: has joined #ruby
[07:39:46] kalusn: has joined #ruby
[07:42:47] mark4: has joined #ruby
[07:44:43] tubuliferous: has joined #ruby
[07:44:56] Guest65: has joined #ruby
[07:45:17] kalusn: has joined #ruby
[07:45:36] eGGsha: has joined #ruby
[07:46:10] bin7me: has joined #ruby
[07:46:41] step1step2_: has joined #ruby
[07:48:24] zenguy_pc: has joined #ruby
[07:49:07] zhkirill: has joined #ruby
[07:51:06] Hounddog: has joined #ruby
[07:51:11] bayed: has joined #ruby
[07:51:45] futilegames: has joined #ruby
[07:51:47] shevy: toy #freenode should be able to help for questions like this too, if you can not find it in the freenode FAQ
[07:52:26] ndrei: has joined #ruby
[07:54:02] senayar: has joined #ruby
[07:54:03] senayar: has joined #ruby
[07:54:47] zotherstupidguy: has joined #ruby
[07:55:07] ruurd: has joined #ruby
[07:55:23] Xeago: has joined #ruby
[07:57:25] datanoise: has joined #ruby
[07:57:32] keen_: has joined #ruby
[07:58:26] joonty: has joined #ruby
[07:58:27] ecksit: has joined #ruby
[07:59:22] toy: yeah thanks shevy ..registered and i can send the message
[07:59:42] fullofcaffeine: has joined #ruby
[08:01:32] quazimodo: has joined #ruby
[08:01:55] norc: has joined #ruby
[08:02:43] shevy: now you are part of the fightclub!
[08:03:41] mikecmpbll: has joined #ruby
[08:04:46] adaedra: ACTION waves hello
[08:04:54] dnewkerk_: has joined #ruby
[08:05:07] anaeem1: has joined #ruby
[08:05:21] shevy: ACTION waves adaedra 
[08:05:45] Xeago: has joined #ruby
[08:05:51] futilegames: has left #ruby: ()
[08:06:01] herbst: has joined #ruby
[08:08:54] rgtk: has joined #ruby
[08:09:21] renderful: has joined #ruby
[08:10:14] lessless: has joined #ruby
[08:11:57] l_tonz: has joined #ruby
[08:12:19] bmalum: has joined #ruby
[08:12:32] BSaboia: has joined #ruby
[08:12:33] ruurd: has joined #ruby
[08:12:40] htmldrum: has joined #ruby
[08:15:01] solocshaw: has joined #ruby
[08:15:09] howdoi: has joined #ruby
[08:16:23] Igorshp: has joined #ruby
[08:17:24] ErfanBs: has joined #ruby
[08:17:55] DEA7TH: has joined #ruby
[08:18:48] failshell: has joined #ruby
[08:19:16] marienz: has joined #ruby
[08:19:21] mistermocha: has joined #ruby
[08:20:25] Peg-leg: has joined #ruby
[08:20:42] mistermocha: has joined #ruby
[08:23:15] stannard: has joined #ruby
[08:24:42] favadi: has joined #ruby
[08:25:26] jenrzzz: has joined #ruby
[08:26:36] marr: has joined #ruby
[08:27:25] ruby-lang297: has joined #ruby
[08:27:26] ruurd: has joined #ruby
[08:28:37] l_tonz: has joined #ruby
[08:29:06] blaxter: has joined #ruby
[08:29:27] BrunoSaboia: has joined #ruby
[08:29:38] chthon: has joined #ruby
[08:29:49] Zai00: has joined #ruby
[08:29:53] Zackio: has joined #ruby
[08:29:54] [k-: has joined #ruby
[08:35:46] bitsapien: has joined #ruby
[08:35:53] Kara: has joined #ruby
[08:36:04] karam: has joined #ruby
[08:36:18] auzty: has joined #ruby
[08:37:03] Oog: has joined #ruby
[08:37:24] workmad3: has joined #ruby
[08:38:24] dmolina: has joined #ruby
[08:38:25] norc: shevy: I wrote a line of code today.
[08:38:31] norc: Can you believe it
[08:40:03] Kendos-Kenlen: has joined #ruby
[08:40:18] acidrainfall: has joined #ruby
[08:41:07] adaedra: norc: congrats. How do you feel?
[08:41:21] lenwood: has joined #ruby
[08:41:24] norc: Pretty hungry actually
[08:43:08] kimegede: has joined #ruby
[08:44:03] arturmartins: has joined #ruby
[08:44:33] darkf_: has joined #ruby
[08:45:06] _blizzy_: has joined #ruby
[08:46:21] graingert: has joined #ruby
[08:50:05] n008f4g_: has joined #ruby
[08:50:42] lamer14448990361: has joined #ruby
[08:53:11] Ropeney: has joined #ruby
[08:53:47] Xeago: has joined #ruby
[08:54:04] jgt: has joined #ruby
[08:54:07] leat: has joined #ruby
[08:54:36] pzb: has joined #ruby
[08:54:58] rgtk: has joined #ruby
[08:55:00] ruurd: has joined #ruby
[08:56:49] senayar^: has joined #ruby
[08:56:55] certainty: norc: one line?
[08:57:26] certainty: task so simple, turned out to be a one-liner in ruby
[08:58:31] norc: That could be a useful metric for the complexity of a problem. Ruby LoC.
[08:59:11] norc: I am sure someone in controlling would approve of this.
[08:59:17] subscope: has joined #ruby
[08:59:21] Xeago: has joined #ruby
[09:03:50] graingert: has joined #ruby
[09:05:31] freezevee: has joined #ruby
[09:07:52] Xeago: has joined #ruby
[09:09:21] l_tonz: has joined #ruby
[09:09:25] lenwood: has joined #ruby
[09:09:31] AnoHito: has joined #ruby
[09:12:56] stardiviner: has joined #ruby
[09:13:46] demonlove: has joined #ruby
[09:15:11] terlar: has joined #ruby
[09:17:43] closer: has joined #ruby
[09:23:47] blackmesa: has joined #ruby
[09:24:09] rdark: has joined #ruby
[09:26:04] Kendos-Kenlen: has joined #ruby
[09:26:15] _whitelogger_: has joined #ruby
[09:26:16] tobyx: has joined #ruby
[09:28:10] eggoez: has joined #ruby
[09:28:11] elektronaut: has joined #ruby
[09:28:29] Senjai: has joined #ruby
[09:28:48] CloCkWeRX: has joined #ruby
[09:29:08] nettoweb: has joined #ruby
[09:31:42] wpp: has joined #ruby
[09:32:44] TrueNapsy: has joined #ruby
[09:33:14] arup_r: has joined #ruby
[09:33:32] ndrei: has joined #ruby
[09:34:24] Zai00: has joined #ruby
[09:34:25] DoubleMalt: has joined #ruby
[09:35:33] Spami: has joined #ruby
[09:38:11] workmad3: has joined #ruby
[09:38:54] monq: has joined #ruby
[09:42:30] mattprelude: has joined #ruby
[09:43:57] tobyx: has joined #ruby
[09:44:19] _whitelogger: has joined #ruby
[09:45:43] elektronaut: has joined #ruby
[09:47:34] Xeago: has joined #ruby
[09:47:45] rgtk_: has joined #ruby
[09:48:09] bitsapien: has joined #ruby
[09:48:13] fullofcaffeine: has joined #ruby
[09:48:40] karapetyan: has joined #ruby
[09:49:01] rismoney1: has joined #ruby
[09:49:24] troulouliou_div2: has joined #ruby
[09:50:59] GriffinHeart: has joined #ruby
[09:51:46] step1step2: has joined #ruby
[09:52:32] Igorshp: has joined #ruby
[09:54:46] tvw: has joined #ruby
[09:55:06] porfa: has joined #ruby
[09:56:40] roshanavand: has joined #ruby
[09:57:16] arup_r: has joined #ruby
[10:00:33] datanoise: has joined #ruby
[10:01:00] lubarch: has joined #ruby
[10:03:46] Zai00: has joined #ruby
[10:05:20] zenguy_pc: has joined #ruby
[10:05:55] adaedra: Ok, so I found in not so old code that I coded a Hash#fetch! to get a hash value or raise if not found... So, exactly what Hash#fetch did already.
[10:06:05] adaedra: I don't even know what I was thinking then.
[10:07:37] toy_: has joined #ruby
[10:08:21] workmad3: adaedra: maybe you were thinking "I want to raise an exception, and ! means 'raise an exception'!"
[10:08:22] lamer14449036960: has joined #ruby
[10:08:42] workmad3: (it doesn't, but people seem to think it does :( )
[10:09:10] jenrzzz: has joined #ruby
[10:10:15] renderful: has joined #ruby
[10:12:40] roshanavand: has joined #ruby
[10:12:41] Igorshp: has joined #ruby
[10:13:55] lessless: has joined #ruby
[10:14:05] Igorshp_: has joined #ruby
[10:14:49] solocshaw: has joined #ruby
[10:15:56] arup_r: has joined #ruby
[10:16:40] skade: has joined #ruby
[10:19:14] roshanavand: has joined #ruby
[10:19:51] failshell: has joined #ruby
[10:20:04] dEPy: has joined #ruby
[10:20:25] rickmasta: has joined #ruby
[10:20:31] ndrei: has joined #ruby
[10:29:09] dhjondoh: has joined #ruby
[10:30:11] dEPy: has joined #ruby
[10:32:12] dEPy: I have a (well not yet) simple cli app that requires login. Then based on the role of logged in user I wan't to restrict what he can or can not do.
[10:32:12] Kara: has joined #ruby
[10:32:58] karam: has joined #ruby
[10:33:30] dEPy: So.. Should I after login based on the user role return an instance of specific client like AdminClient, ExpertClient, CustomerClient... ?
[10:34:30] dEPy: I'm just thinking that if I do that, and if I expose my 'api' to a web app then calling wrong method on the client will just tell you the method does not exist rather than the fact that you don't have permission to do that.
[10:36:01] stamina: has joined #ruby
[10:38:03] phutchins: has joined #ruby
[10:38:48] GriffinHeart: has joined #ruby
[10:39:09] tagrudev: dEPy, maybe try #RubyOnRails
[10:39:33] dEPy: this has nothing to do with rails
[10:39:34] arup_r: has joined #ruby
[10:40:33] certainty: shevy: what's wieder boden?
[10:40:38] certainty: erm, wiener
[10:41:20] skade: has joined #ruby
[10:41:34] shredding: has joined #ruby
[10:41:41] Igorshp: has joined #ruby
[10:44:48] gregoriokusowski: has joined #ruby
[10:44:53] nfk|laptop: has joined #ruby
[10:48:43] l_tonz: has joined #ruby
[10:49:38] bmalum: has joined #ruby
[10:50:12] Igorshp_: has joined #ruby
[10:51:44] weihan: has joined #ruby
[10:51:50] Xeago: has joined #ruby
[10:55:57] lessless: has joined #ruby
[10:56:31] ledestin: has joined #ruby
[10:56:32] subscope: has joined #ruby
[10:56:42] roshanavand: has joined #ruby
[10:57:43] blackmes1: has joined #ruby
[10:58:47] toy_: for the beginer ruby which is good resource ?
[10:59:12] ndrei: has joined #ruby
[10:59:13] UtkarshRay: has joined #ruby
[10:59:54] bmalum: toy_ http://tryruby.org and https://github.com/vhf/free-programming-books/blob/master/free-programming-books.md#ruby
[11:01:09] devoldmx: has joined #ruby
[11:02:01] etrae: has joined #ruby
[11:02:04] datanoise: has joined #ruby
[11:02:49] pcw888: has joined #ruby
[11:03:39] DEA7TH: has joined #ruby
[11:04:43] Alina-malina: has joined #ruby
[11:05:31] lolmaus: has joined #ruby
[11:07:18] leafybasil: has joined #ruby
[11:07:57] jenrzzz: has joined #ruby
[11:08:25] rodfersou: has joined #ruby
[11:09:15] Senjai: has joined #ruby
[11:09:51] norc: workmad3: Rails does that all over the place, guess thats how it becomes popular.
[11:11:04] awrfas2: has joined #ruby
[11:13:34] atomical: has joined #ruby
[11:14:19] verto: has joined #ruby
[11:14:42] Rixius: has joined #ruby
[11:15:44] blackmes1: has joined #ruby
[11:17:45] sdothum: has joined #ruby
[11:19:58] basiles: has joined #ruby
[11:20:45] Xeago: has joined #ruby
[11:21:54] dagda1: has joined #ruby
[11:22:23] dagda1: does anybody know where the .rbenv log is?
[11:22:34] dagda1: I am having trouble installing a ruby version
[11:23:05] GriffinHeart: has joined #ruby
[11:23:09] lamer14449036960: ruby version manager ?
[11:23:37] dagda1: I'd rather not uninstall everything
[11:24:02] jhass: https://github.com/sstephenson/ruby-build/wiki#troubleshooting
[11:24:23] dagda1: thanks, I'll check that out
[11:25:01] shevy: certainty lol no idea
[11:25:02] hahuang65: has joined #ruby
[11:25:10] deepak: has joined #ruby
[11:27:53] Pupp3tm4st3r: has joined #ruby
[11:28:02] UtkarshRay: has joined #ruby
[11:29:23] shevy: you scared him away jhass
[11:29:25] jenrzzz: has joined #ruby
[11:29:36] jhass: looks like it
[11:29:42] Xeago: has joined #ruby
[11:29:44] jhass: so what's wiener boden? sounds like cake
[11:29:54] porfa: do i save my methods in a .rb file? if so, how do i "load" that file when i start a new script?
[11:29:58] Igorshp: has joined #ruby
[11:30:10] porfa: require 'wtv.rb' ?
[11:30:22] jhass: require_relative "wtv" most likely
[11:30:50] jhass: later when you learn about classes and proper project structures you'll put your classes each into its own file
[11:31:01] jhass: and have folders for the namespaces etc.
[11:31:05] jhass: but for now ^ is fine
[11:31:11] shevy: jhass I honestly have no idea... but that could actually make sense. I don't know of any sweets like that though, the only one I know is the "Sachertorte", wikipedia-quote "invented by Austrian Franz Sacher in 1832 for Prince Wenzel von Metternich in Vienna, Austria"
[11:32:50] shevy: Porfa always save code you may reuse one day in .rb files \o/
[11:32:53] syath: has joined #ruby
[11:35:02] porfa: i've been working weeks on a simple script that goes do somethings in some supplier website. that took me weeks, because i had a lot to learn, but yesterday, i've been able to make a new script, based on the the old one, that does the same thing but for a different supplier that has different conditions etc etc??? but like, 80% of the code is the same.. so I'm wondering if i can do (i guess is what you said shevy ) put that 80% code in indepe
[11:35:03] porfa: files, and just "code" what i need, I'm tired of copy pasta.
[11:35:15] shevy: keep things simple
[11:35:41] shevy: if you see code that can be re-used, the best thing is to usually put it into a separate (or same-named) module
[11:36:05] porfa: i read a new word here, "module" hmm
[11:36:09] shevy: that, or you would subclass... but modules are somehow much easier
[11:36:41] shevy: Porfa you should create a gem, all by yourself, without any helper code. that way you learn most, including the structure of the files
[11:36:58] porfa: i'll learn that then
[11:36:59] shevy: it does not matter how small the gem is, just publish one
[11:37:31] jhass: shevy: they don't really know what require does yet, sure you want to throw them into gems?
[11:37:33] shevy: you need to "sign up" once at https://rubygems.org/ afterwards you can push gems from your local hdd to the remote gem repository
[11:37:41] jhass: nonononono
[11:37:48] jhass: you don't have to publish a gem
[11:37:50] jhass: not at all
[11:37:59] shevy: I want to gem install Porfa's gem!
[11:38:01] jhass: it will give you zero benefit at this point
[11:38:02] favadi: has joined #ruby
[11:38:44] jhass: Porfa: forget about gems for now, shevy is just giving random advice without really looking at the situation
[11:39:01] l_tonz_: has joined #ruby
[11:39:05] shevy: I am absolutely sure that Porfa will learn a lot that way
[11:39:08] govg: has joined #ruby
[11:42:04] _blizzy_: has joined #ruby
[11:43:31] ldnunes: has joined #ruby
[11:45:55] shevy: what name would you give to ruby code that does this: move/copy .mp3 files from a voice recorder?
[11:46:19] jhass: download_recordings
[11:46:51] dhjondoh: has joined #ruby
[11:47:08] WizJin: has joined #ruby
[11:50:23] sepp2k: has joined #ruby
[11:50:29] _blizzy_: has joined #ruby
[11:52:12] govg: has joined #ruby
[11:55:36] weihan_: has joined #ruby
[11:57:06] bitsapien_: has joined #ruby
[11:57:26] maloik: could argue that how you get the recordings is irrelevant
[11:57:31] ndrei: has joined #ruby
[11:57:33] diegobiavati: has joined #ruby
[11:57:35] maloik: and as such call it `recordings`
[11:57:43] `tim`: has joined #ruby
[11:58:07] Jackneill: has joined #ruby
[11:58:09] maloik: going even further, the "how" could be an argument, i.e. `def recordings(downloader = VoiceRecorderDownloader)`
[11:58:19] maloik: I'm sorry... last day at the job :D not much to do anymore
[11:59:01] atmosx: has joined #ruby
[11:59:10] dhjondoh: has joined #ruby
[11:59:57] spider-mario: has joined #ruby
[12:00:02] khebbie: has joined #ruby
[12:01:01] Xeago: has joined #ruby
[12:01:09] deepak: has joined #ruby
[12:01:40] Renich: has joined #ruby
[12:01:55] devoldmx: has joined #ruby
[12:02:05] AlexRussia: has joined #ruby
[12:03:04] dhjondoh: has joined #ruby
[12:03:33] l_tonz: has joined #ruby
[12:03:35] jhass: as I know shevy it's probably a name for a ruby script, not a method
[12:04:58] bluOxigen: has joined #ruby
[12:05:26] zenguy_pc: has joined #ruby
[12:07:18] senayar: has joined #ruby
[12:07:35] kalusn: has joined #ruby
[12:07:51] Cyther: has joined #ruby
[12:11:00] blueOxigen: has joined #ruby
[12:11:05] ndrei: has joined #ruby
[12:11:07] `tim`: has joined #ruby
[12:11:13] synthroid: has joined #ruby
[12:11:16] rgtk: has joined #ruby
[12:11:37] htmldrum: has joined #ruby
[12:11:51] V1s1ble: has joined #ruby
[12:12:13] ayonkhan: has joined #ruby
[12:13:29] futilegames: has joined #ruby
[12:13:32] V1s1ble: So I have a monkey patch for Jekyll...I originally just hacked on the gem manually in ~/.gem/ruby/2.1.0/gems/jekyll-2.5.3. I've removed the things I needed to modify at put them in a gist: https://gist.github.com/sumdog/ba0b72d12995dd185303
[12:13:49] V1s1ble: I tried just putting them in as a Jekyll plugin, but it doesn't load my plugin early enough for it to be useful
[12:14:22] agit0: has joined #ruby
[12:14:28] bluOxigen: has joined #ruby
[12:14:44] V1s1ble: What's the best way to apply my patch? I noticed jekyll uses :autoload for most of its classes...is there a way to place my monkey patch in such a position that it will get autoloaded
[12:15:35] jhass: V1s1ble: I'd probably fork and use a Gemfile with github:, git: or path: option
[12:15:54] Kara: has joined #ruby
[12:16:07] V1s1ble: jhass, eh I don't want to fork. I want to make this eventually available for everyone
[12:16:27] jhass: also look into why you need the patch, if it's a bug try to upstream it, if it's a missing feature try to get upstream support etc.
[12:16:36] karam: has joined #ruby
[12:16:51] V1s1ble: jhass, it was added in for "security" ... git hub pages specifically
[12:17:00] quazimodo: has joined #ruby
[12:17:03] V1s1ble: it use to work..there is a bug...they have no interest in "fixing" it
[12:17:20] V1s1ble: Jekyll cares more about github pages support...if a feature probably won't be allowed on ghp, they don't bother
[12:17:37] jhass: got a link to an issue?
[12:18:13] V1s1ble: https://github.com/jekyll/jekyll/issues/3248
[12:19:38] V1s1ble: jhass, my comment is at the bottom. If you look at my patch, it removes the security from the sanitize function. I mean I should make a patch that runs my version if safe mode is off I guess, and I may eventually, but just for now I'd like to get it working for people other than myself
[12:20:25] bryanray: has joined #ruby
[12:20:25] l_tonz_: has joined #ruby
[12:20:26] V1s1ble: jhass, Is there anyway to insert a monkey patch just for the executable?
[12:20:35] failshell: has joined #ruby
[12:20:40] jhass: I don't follow
[12:21:14] tkuchiki: has joined #ruby
[12:21:16] karapetyan: has joined #ruby
[12:21:21] jhass: ruby -rjekyll -rpatch -S jekyll perhaps?
[12:21:34] EdwardIII: hrm looking at some devise code and inside a class i see enum role: [:user, :vip, :admin], but when i try that i get ndefined method `enum' for User:Class
[12:21:43] shevy: jhass yeah I guess that name is short enough
[12:21:48] canton7: has joined #ruby
[12:21:54] maloik: I don't understand your first line in the issue... are you saying you put the shared components into a plugin or..?
[12:22:03] jhass: EdwardIII: old rails version?
[12:22:06] V1s1ble: jhass, So when I run "jekyll", it will use that monkey patch I shared on its own classes?
[12:22:06] shredding: has joined #ruby
[12:22:19] jhass: V1s1ble: maybe, maybe not
[12:22:24] EdwardIII: jhass: ah it's a rails thing, not a ruby thing?
[12:22:24] dorei: has joined #ruby
[12:22:28] jhass: I don't know enough about its architecture
[12:22:35] jhass: EdwardIII: yes
[12:22:40] mengu: has joined #ruby
[12:22:40] mengu: has joined #ruby
[12:22:46] jhass: activerecord specifically
[12:23:09] EdwardIII: i was just playing around trying to figure out what values like User.roles.admin returned
[12:23:32] EdwardIII: i shall play around in the rails console
[12:24:08] maloik: V1s1ble: did you look into git submodules? I've honestly never worked with them, but perhaps they can offer a solution?
[12:24:32] karapetyan: has joined #ruby
[12:24:45] maloik: you'd add the shared stuff to a submodule (i.e. separate repo) to manage it in one place, then just include it in the different repos representing the jekyll sites
[12:25:17] V1s1ble: maloik, I don't think that applies in my case. A fork would make more sense. I don't want to touch the actual Jekyll code. I just want to monkey patch their existing stuff
[12:25:20] momomomomo: has joined #ruby
[12:25:34] maloik: I'm talking about your own project, not the jekyll changes
[12:25:35] V1s1ble: I do use github subtrees for some projects, but that wouldn't make sense in this context
[12:25:51] maloik: using the submodules, you'd actually have the shared components in the source dir and thus the "bug" wouldn't occur
[12:26:16] V1s1ble: maloik, yea I don't want to go down that route. I'd rather fork instead
[12:26:34] V1s1ble: maloik, that makes more sense if you're like adding an ansible role to your project, which I did in vSense
[12:26:52] maloik: I have no idea what ansible roles are or what vSense is
[12:26:55] canton7: has joined #ruby
[12:27:17] maloik: either way, if forking jekyll works for you, go ahead :)
[12:27:32] V1s1ble: https://github.com/BigSense/vSense/
[12:27:34] bkxd: has joined #ruby
[12:27:39] V1s1ble: I wouldn't expect you to. It's a small personal project of mine
[12:29:45] Igorshp: has joined #ruby
[12:30:10] spcmastertim: has joined #ruby
[12:30:37] yardenbar: has joined #ruby
[12:30:56] fullofcaffeine: has joined #ruby
[12:31:43] bluOxigen: has joined #ruby
[12:31:46] tubuliferous: has joined #ruby
[12:33:04] DexterLB: has joined #ruby
[12:33:57] blueOxigen: has joined #ruby
[12:34:02] favadi: has joined #ruby
[12:34:17] `tim`: has joined #ruby
[12:35:38] khebbie: has joined #ruby
[12:35:58] dhjondoh: has joined #ruby
[12:38:03] Xeago: has joined #ruby
[12:38:38] l_tonz: has joined #ruby
[12:39:12] bluOxigen: has joined #ruby
[12:39:36] Inv1s1ble_: has joined #ruby
[12:40:32] bluOxigen: has joined #ruby
[12:40:34] ekleog: has joined #ruby
[12:41:10] deepak: I get this error when dividing two float type values "coerce must return [x, y]" Anyone, who can explain whats going wrong, stuck with this for the past 3 hours
[12:42:24] bluOxigen: has joined #ruby
[12:42:44] sgambino: has joined #ruby
[12:44:13] rickmasta: has joined #ruby
[12:44:35] bnagy: deepak: they're not floats
[12:44:56] Mekkis: has joined #ruby
[12:45:13] deepak: I did a varname.class and found that to be float
[12:45:31] bnagy: well they're not _both_ floats :)
[12:46:34] bnagy: do you have the exact line and the exact error?
[12:46:34] deepak: I'll check and get back to you
[12:47:33] deepak: Job EventReport#generate (id=7) FAILED (0 prior attempts) with TypeError: coerce must return [x, y]
[12:47:43] ndrei: has joined #ruby
[12:48:10] ruboto: We can't help you without your code, please post it to https://gist.github.com
[12:48:43] deepak: I'll put it up on gist in a while
[12:48:47] deepak: and send you guys a link
[12:49:04] lamer14449036960: has joined #ruby
[12:49:15] stardiviner: has joined #ruby
[12:49:45] bnagy: my handwaving guess is that it's something that's like a float but with incomplete coerce
[12:49:58] bnagy: or the operation is more complex than just a/b
[12:50:01] bluOxigen: has joined #ruby
[12:50:03] canton7: has joined #ruby
[12:50:16] bnagy: maybe something got promoted to bignum or something? :\
[12:50:32] Xeago: has joined #ruby
[12:51:18] bluOxigen: has joined #ruby
[12:51:25] tier: has joined #ruby
[12:51:29] jhass: or a proxy, coerce isn't called through method_missing iirc
[12:51:55] bluOxigen: has joined #ruby
[12:52:11] Xeago_: has joined #ruby
[12:53:05] freerobby: has joined #ruby
[12:53:06] CanTonic: has joined #ruby
[12:54:29] ljarvis: wow sidekiq dropped celluloid, big change
[12:55:29] blueOxigen: has joined #ruby
[12:55:37] SenpaiSilver: has joined #ruby
[12:55:58] maloik: yea... that speed increase though :o
[12:56:07] blueOxigen: has joined #ruby
[12:56:25] Guest50: has joined #ruby
[12:56:48] blueOxigen: has joined #ruby
[12:57:43] canton7: has joined #ruby
[12:58:36] l_tonz_: has joined #ruby
[12:59:30] V1s1ble: has joined #ruby
[12:59:50] shevy: cool... floats can be promoted :)
[12:59:54] rwilcox: has joined #ruby
[13:00:00] shevy: and then from bignum to infinity!
[13:00:09] ndrei: has joined #ruby
[13:00:32] SylarRuby: has joined #ruby
[13:00:40] Oog: has joined #ruby
[13:01:23] codecop: has joined #ruby
[13:01:53] bl0ndie: has joined #ruby
[13:02:40] ljarvis: yeah massive increase
[13:03:40] datanoise: has joined #ruby
[13:03:42] dhjondoh: has joined #ruby
[13:05:59] TPBallbag: has joined #ruby
[13:06:44] `tim`: has joined #ruby
[13:06:45] bougyman: option parser question. I have an 'optioner.rb' that I use in my binaries, which sets a Module instance variable as @opts = OptionParser.new do { blockthings }
[13:06:47] jenrzzz: has joined #ruby
[13:07:02] JDiPierro: has joined #ruby
[13:07:09] segfalt: has joined #ruby
[13:07:16] bougyman: can I re-open that @opts instance and add things to it, then reparse?
[13:08:32] Kara: has joined #ruby
[13:09:32] karam: has joined #ruby
[13:10:34] bmurt: has joined #ruby
[13:11:05] etrae: has joined #ruby
[13:14:00] mistermocha: has joined #ruby
[13:15:02] karapetyan: has joined #ruby
[13:15:02] mistermocha: has joined #ruby
[13:15:16] Zai00: has joined #ruby
[13:15:24] decoponio: has joined #ruby
[13:15:26] Melpaws: has joined #ruby
[13:16:46] GnuYawk: has joined #ruby
[13:18:15] karapetyan: has joined #ruby
[13:19:31] tier_: has joined #ruby
[13:19:52] l_tonz: has joined #ruby
[13:21:40] cdg: has joined #ruby
[13:22:50] stannard: has joined #ruby
[13:23:46] Igorshp: has joined #ruby
[13:23:55] joncol: has joined #ruby
[13:23:57] bougyman: qthe answer to my questions is yes-ish
[13:24:07] ljarvis: bougyman: yes you can use parse multiple times
[13:24:13] ljarvis: but you'll need to catch the exceptions
[13:24:41] awrfas2: has joined #ruby
[13:25:00] prestorium: has joined #ruby
[13:25:51] GriffinHeart: has joined #ruby
[13:25:58] skweek: has joined #ruby
[13:26:13] joncol: Is Celluloid a good choice for making a server? Does anyone know of any JSON RPC gem that works well with Celluloid? I've done some experiments with EventMachine, and there's the "rjr" gem that supports JSON RPC well there. I also want to get a feel for Celluloid, since that seems a bit more "active"?
[13:26:56] Melpaws: has joined #ruby
[13:27:29] blackjid: hi!, is there any way to pass dependencies to a Rake task but without failing if the dependencies doesn't exists?? I need to pass an array of dependencies but not always all of them are going to be available...
[13:29:41] joncol: blackjid: Doesn't "begin; require ... ; rescue LoadError; end" work?
[13:29:43] govg: has joined #ruby
[13:29:48] urubuz_: has joined #ruby
[13:30:57] mikecmpbll: ehh, if I load IRB from a directory which is a symlink, File.directory?("../other_dir") returns nill where `cd ../other_dir && pwd` works.
[13:31:04] blackjid: mmm, don't really know... I was trying to do taks :mytask => [ns:task1, ns:task2]... where would you put that begin resque block?
[13:31:11] mikecmpbll: i find that odd.
[13:31:21] mikecmpbll: returns false**
[13:32:41] joncol: blackjid: Do you want some of those :mytasks to require stuff that potentially might not be present? And fail silently (ignore) if that's the case?
[13:32:51] mikecmpbll: is there any way i can know which will work as a system command, in ruby?
[13:33:16] blackjid: joncol, exactly... to wierd?
[13:34:25] joncol: blackjid, no it should be just like the RSpec rake task at: https://www.relishapp.com/rspec/rspec-core/docs/command-line/rake-task
[13:34:45] mikecmpbll: oh it's just `cd` behaving weirdly
[13:35:09] devdazed: has joined #ruby
[13:35:20] blackjid: nice!, thanks, i'll try that
[13:35:34] karapetyan: has joined #ruby
[13:35:48] bluOxigen: has joined #ruby
[13:36:37] bluOxigen: has joined #ruby
[13:36:37] LMity: has joined #ruby
[13:38:01] snebel: has joined #ruby
[13:38:26] snebel: looking for a good gem to interact with git binary...
[13:38:34] snebel: looks like there is many options
[13:38:41] snebel: lack of documentation...
[13:38:44] snebel: any advice?
[13:38:57] jhass: rugged is fairly popular, though it's libgit, it doesn't shell out
[13:39:18] Renich: has joined #ruby
[13:39:50] bluOxigen: has joined #ruby
[13:39:55] `tim`: has joined #ruby
[13:39:57] snebel: thank you jhass
[13:40:02] snebel: I'll take a look so
[13:40:31] bluOxigen: has joined #ruby
[13:41:10] bluOxigen: has joined #ruby
[13:41:41] Igorshp: has joined #ruby
[13:41:45] treehug88: has joined #ruby
[13:42:30] devoldmx: has joined #ruby
[13:43:11] bluOxigen: has joined #ruby
[13:44:29] bluOxigen: has joined #ruby
[13:45:17] `tim`: has joined #ruby
[13:45:26] Renich: has joined #ruby
[13:45:53] ndrei: has joined #ruby
[13:46:51] Zai00: has joined #ruby
[13:47:16] JDiPierro: has joined #ruby
[13:48:38] bluOxigen: has joined #ruby
[13:49:17] karapetyan: has joined #ruby
[13:49:50] yeticry: has joined #ruby
[13:49:58] rwilcox: has joined #ruby
[13:50:14] blackmes1: has joined #ruby
[13:50:53] Dopagod: has joined #ruby
[13:51:42] maloik: time to sign off of this server, changings jobs o/ see you in a week or two
[13:51:50] aclearman037: has joined #ruby
[13:52:00] yorickpeterse: switching jebs? :O
[13:52:03] yorickpeterse: oh, left already
[13:52:30] whippythellama: has joined #ruby
[13:52:41] bluOxigen: has joined #ruby
[13:52:44] bruno-: has joined #ruby
[13:53:19] bluOxigen: has joined #ruby
[13:53:52] V1s1ble: has joined #ruby
[13:54:51] bluOxigen: has joined #ruby
[13:55:13] musou: has joined #ruby
[13:55:28] bluOxigen: has joined #ruby
[13:56:16] trollga: has joined #ruby
[13:56:19] platzhirsch: has joined #ruby
[13:57:23] urubuz__: has joined #ruby
[13:57:31] suchness: has joined #ruby
[13:57:43] suchness: has left #ruby: ()
[13:59:23] mistermocha: has joined #ruby
[14:01:21] bluOxigen: has joined #ruby
[14:02:43] gregf: has joined #ruby
[14:03:15] rideh: has joined #ruby
[14:04:32] l_tonz: has joined #ruby
[14:04:45] Renich: has joined #ruby
[14:04:55] datanoise: has joined #ruby
[14:06:04] Kara: has joined #ruby
[14:06:06] zenguy_pc: has joined #ruby
[14:06:22] bluOxigen: has joined #ruby
[14:06:30] The_Phoenix: has joined #ruby
[14:07:15] karam: has joined #ruby
[14:09:02] bluOxigen: has joined #ruby
[14:09:41] bluOxigen: has joined #ruby
[14:10:19] bluOxigen: has joined #ruby
[14:10:36] tubuliferous: has joined #ruby
[14:10:51] The_Phoenix1: has joined #ruby
[14:10:57] bluOxigen: has joined #ruby
[14:11:57] renderful: has joined #ruby
[14:12:12] Shoutsid: has joined #ruby
[14:12:15] bluOxigen: has joined #ruby
[14:12:17] ericjphillips: has joined #ruby
[14:12:23] htmldrum: has joined #ruby
[14:12:29] RobertBirnie: has joined #ruby
[14:12:57] hj2007: has joined #ruby
[14:13:14] Nina00_: has joined #ruby
[14:13:43] Shoutsid: has joined #ruby
[14:14:50] nfk|laptop: has joined #ruby
[14:14:52] bluOxigen: has joined #ruby
[14:15:30] bluOxigen: has joined #ruby
[14:15:56] sankaber: has joined #ruby
[14:16:42] ericjphillips: has left #ruby: ()
[14:16:47] mistermocha: has joined #ruby
[14:17:34] sankaber: has joined #ruby
[14:17:55] The_Phoenix: has joined #ruby
[14:18:20] RobertBirnie: has joined #ruby
[14:18:40] bluOxigen: has joined #ruby
[14:19:39] beast: has joined #ruby
[14:19:47] dionysus69: has joined #ruby
[14:21:22] l_tonz_: has joined #ruby
[14:23:21] kobain: has joined #ruby
[14:23:31] bluOxigen: has joined #ruby
[14:24:10] bluOxigen: has joined #ruby
[14:24:33] The_Phoenix1: has joined #ruby
[14:25:20] bestie: has joined #ruby
[14:25:33] balazs: has joined #ruby
[14:25:55] yeshacker: has joined #ruby
[14:26:37] knowtheory: has joined #ruby
[14:26:52] Guest50: has joined #ruby
[14:27:29] jenrzzz: has joined #ruby
[14:27:44] mary5030: has joined #ruby
[14:28:52] dopamean_: has joined #ruby
[14:29:17] holsee_: has joined #ruby
[14:29:52] davedev24: has joined #ruby
[14:30:02] jlyndon: has joined #ruby
[14:30:37] bluOxigen: has joined #ruby
[14:31:00] favadi: has joined #ruby
[14:31:38] mary5030: has joined #ruby
[14:32:24] The_Phoenix: has joined #ruby
[14:33:25] ellisTAA: has joined #ruby
[14:33:53] bluOxigen: has joined #ruby
[14:34:15] ruurd: has joined #ruby
[14:34:36] bluOxigen: has joined #ruby
[14:35:30] gagrio: has joined #ruby
[14:35:38] naftilos76: has joined #ruby
[14:35:41] ksteck: has joined #ruby
[14:36:21] Fraeon: has joined #ruby
[14:36:57] davedev24: has joined #ruby
[14:37:04] Renich: has joined #ruby
[14:38:07] dopie: has joined #ruby
[14:39:15] khebbie: has joined #ruby
[14:39:26] l_tonz: has joined #ruby
[14:40:25] bougyman: I had this problem once before and solved it.
[14:40:30] bougyman: rvm alias create default <ruby>
[14:40:49] bougyman: % rvm alias create default ruby-2.2.3 14:40:06
[14:40:53] bougyman: default is a full ruby name and can not be used as alias name.
[14:41:03] failshell: has joined #ruby
[14:41:15] bougyman: I can't seem to get rid of default with rvm alias delete default (which succeeds), but the 'default' is still there in rvm list
[14:41:41] davedev24: has joined #ruby
[14:42:02] karapetyan: has joined #ruby
[14:42:17] umgrosscol: has joined #ruby
[14:42:58] to_json: has joined #ruby
[14:42:58] to_json: has joined #ruby
[14:43:38] jenrzzz: has joined #ruby
[14:44:34] RobertBirnie: has joined #ruby
[14:45:40] failshell: has joined #ruby
[14:48:09] diegoaguilar: has joined #ruby
[14:48:58] Jardayn: has joined #ruby
[14:50:06] skweek: has joined #ruby
[14:50:18] slawrence00: has joined #ruby
[14:50:23] ICantCook: has joined #ruby
[14:50:46] pepperbreath: has joined #ruby
[14:50:49] The_Phoenix1: has joined #ruby
[14:51:15] Kara: has joined #ruby
[14:51:16] balazs: has joined #ruby
[14:54:46] bluOxigen: has joined #ruby
[14:55:22] Renich: has joined #ruby
[14:55:52] fullofcaffeine: has joined #ruby
[14:56:49] karapetyan: has joined #ruby
[14:57:24] bitsapien: has joined #ruby
[15:00:23] hobodave: has joined #ruby
[15:01:20] gusTester: has joined #ruby
[15:01:25] fullofcaffeine: has joined #ruby
[15:02:02] wldcordeiro: has joined #ruby
[15:02:34] shmilan: has joined #ruby
[15:02:46] rippa: has joined #ruby
[15:03:19] Zamyatin: has joined #ruby
[15:06:03] inteq: has joined #ruby
[15:06:35] _seanc_: has joined #ruby
[15:06:41] beauby: has joined #ruby
[15:06:55] davedev24: has joined #ruby
[15:07:31] prefixed: has joined #ruby
[15:09:36] Renich: has joined #ruby
[15:11:14] etrae: has joined #ruby
[15:12:06] ICantCook: has joined #ruby
[15:13:13] EminenceHC: has joined #ruby
[15:13:42] ndrei: has joined #ruby
[15:14:54] chouhoulis: has joined #ruby
[15:15:23] towski_: has joined #ruby
[15:15:56] GriffinHeart: has joined #ruby
[15:16:13] tubuliferous: has joined #ruby
[15:16:50] pwnd_nfsw: has joined #ruby
[15:16:51] kblake: has joined #ruby
[15:17:35] freezevee: has joined #ruby
[15:18:20] karapetyan: has joined #ruby
[15:19:32] kblake: has left #ruby: ()
[15:19:33] jenrzzz: has joined #ruby
[15:20:05] rewzn: has joined #ruby
[15:21:43] roshanavand: has joined #ruby
[15:21:51] Peteykun: has joined #ruby
[15:22:53] karapetyan: has joined #ruby
[15:23:32] ixti: has joined #ruby
[15:24:22] _seanc_1: has joined #ruby
[15:24:52] RobertBirnie: has joined #ruby
[15:26:39] KrzaQ: has joined #ruby
[15:27:35] hakunin_: has joined #ruby
[15:28:28] karapetyan: has joined #ruby
[15:29:56] ricer2: has joined #ruby
[15:30:13] DexterLB: has joined #ruby
[15:30:17] lubarch: has joined #ruby
[15:31:48] _seanc_1: has joined #ruby
[15:32:28] rcvalle: has joined #ruby
[15:33:04] gusTester: has joined #ruby
[15:34:31] mistermocha: has joined #ruby
[15:34:48] chussenot: has joined #ruby
[15:34:48] fullofcaffeine: has joined #ruby
[15:35:12] pdoherty: has joined #ruby
[15:36:39] polishdub: has joined #ruby
[15:37:19] clamstar: has joined #ruby
[15:37:27] trollga: has joined #ruby
[15:38:20] chopin: has joined #ruby
[15:38:53] zenguy_pc: can someone see if they can run this please https://rubygems.org/gems/email_crawler/versions/0.1.1
[15:39:09] zenguy_pc: i install via gem and i get an error when i try to run it
[15:39:40] jhass: zenguy_pc: which error?
[15:40:01] tatsuo: has joined #ruby
[15:40:12] dionysus69: has joined #ruby
[15:40:49] blackmes1: has joined #ruby
[15:41:39] blackmesa: has joined #ruby
[15:41:50] zenguy_pc: /var/lib/gems/2.1.0/gems/email_crawler-0.1.1/bin/email-crawler:62:in `<top (required)>': undefined method `empty?' for nil:NilClass (NoMethodError)
[15:42:57] freerobby: has joined #ruby
[15:43:16] jhass: well, I guess it's broken
[15:43:28] jhass: https://github.com/cristianrasch/email_crawler repo is deleted even
[15:43:29] kristofferR: has joined #ruby
[15:44:25] zenguy_pc: https://github.com/wecodeio/email_crawler
[15:44:28] shmilan: has joined #ruby
[15:44:42] jenrzzz: has joined #ruby
[15:45:20] tkuchiki: has joined #ruby
[15:45:48] ngscheurich: has joined #ruby
[15:45:50] cwong_on_irc: has joined #ruby
[15:45:57] Guest50: has joined #ruby
[15:46:07] acidrainfall: Anyone -- Highest rated Ruby book on Safari?
[15:46:09] zenguy_pc: try teh forks https://github.com/samwize/python-email-crawler/network
[15:46:45] SCHAAP137: has joined #ruby
[15:46:45] SCHAAP137: has joined #ruby
[15:47:44] Maletor: has joined #ruby
[15:48:14] momomomomo: has joined #ruby
[15:49:13] Kara: has joined #ruby
[15:49:21] hobodave: has joined #ruby
[15:52:03] snockerton: has joined #ruby
[15:52:33] [Butch]: has joined #ruby
[15:53:14] gusrub: has joined #ruby
[15:53:47] rushed: has joined #ruby
[15:56:12] jpfuentes2: has joined #ruby
[15:56:19] karapetyan: has joined #ruby
[15:57:13] poikon: has joined #ruby
[15:57:24] big|bad|wolf: has joined #ruby
[15:58:00] bluOxigen: has joined #ruby
[15:59:29] bruno-: has joined #ruby
[16:00:16] mistermocha: has joined #ruby
[16:00:37] gizmore: has joined #ruby
[16:01:11] Channel6: has joined #ruby
[16:01:12] mistermocha: has joined #ruby
[16:01:41] BSaboia: has joined #ruby
[16:01:54] bluOxigen: has joined #ruby
[16:05:12] momomomomo: has joined #ruby
[16:05:33] Alayde: has joined #ruby
[16:05:34] dstarh: has joined #ruby
[16:05:34] yorickpeterse: acidrainfall: there are a lot of people in this channel from different timezones, you won't always get an answer within 4 minutes of asking a question
[16:05:51] yorickpeterse: not getting an answer usually means nobody knows of one
[16:06:01] Alayde: has left #ruby: ()
[16:07:26] zenguy_pc: has joined #ruby
[16:07:55] dstarh: I'm trying to do a very simple statement using the tiny_tds gem and it segfaults when trying to execute the query. anyone seen anything like this? I haven't used the driver in a while and the only thing major since then is the upgrade to el-cap on osx
[16:07:55] Igorshp: has joined #ruby
[16:08:09] eam: also, not many people might have answers regarding the contents of a pay-walled garden
[16:08:25] yorickpeterse: dstarh: you might need to recompile it
[16:08:45] dstarh: yorickpeterse i've uninstalled and reinstalled both free_tds and tiny_tds
[16:08:51] dstarh: that was my first thought
[16:09:03] Tariq: has joined #ruby
[16:09:12] User458764: has joined #ruby
[16:10:51] amclain: has joined #ruby
[16:11:30] favadi: has joined #ruby
[16:11:43] tariqc: has joined #ruby
[16:12:31] shinnya: has joined #ruby
[16:12:31] devoldmx: has joined #ruby
[16:13:08] htmldrum: has joined #ruby
[16:13:55] doddok: has joined #ruby
[16:14:31] fullofcaffeine: has joined #ruby
[16:15:26] acidrainfall: yorickpeterse: Yeah, I know
[16:15:36] acidrainfall: That's typical for IRC
[16:16:03] wldcordeiro: has joined #ruby
[16:16:23] BSaboia: has joined #ruby
[16:18:35] bluOxigen: has joined #ruby
[16:19:32] michaeldeol: has joined #ruby
[16:20:08] unreal: has joined #ruby
[16:20:40] tariqc: I am getting some weird errors while connecting to an external database
[16:20:44] Soda: has joined #ruby
[16:20:56] tariqc: Trying to get the code snippet right now
[16:22:22] tariqc: https://gist.github.com/tra38/f464868ac1483d7c3909
[16:22:25] tariqc: Here is my code snippet
[16:22:31] bluOxigen: has joined #ruby
[16:22:33] maletor_: has joined #ruby
[16:22:59] yorickpeterse: Tariq_: `self.table_name = 'foo'` is the right way I believe
[16:23:06] yorickpeterse: instead of `set_table_name`
[16:23:09] gizmore: has joined #ruby
[16:23:10] yorickpeterse: unless it's the other way around
[16:23:11] tariqc: Okay, let me try that
[16:24:42] tariqc: That was really odd.
[16:24:45] bryanray: has joined #ruby
[16:24:45] yorickpeterse: IIRC set_table_name was deprecated or something
[16:25:00] tariqc: I guess that makes sense. When I researched it, they mentioned set_table_name
[16:25:07] tariqc: they must have done so before the deprecration.
[16:25:14] tariqc: Why did they deprecate it anyway?
[16:26:28] ramfjord: has joined #ruby
[16:26:34] Dopagod: has joined #ruby
[16:27:15] tariqc: If it works, it works
[16:27:38] renderful: has joined #ruby
[16:27:39] tariqc: Interesting, the SQL query that it generates is: 'Select Foo.* FROM Foo'
[16:27:58] yardenbar: has joined #ruby
[16:28:09] SylarRuby: has joined #ruby
[16:29:05] tariqc: But yeah, thanks yorickpeterse
[16:29:10] RobertBirnie: has joined #ruby
[16:29:36] jenrzzz: has joined #ruby
[16:29:45] lolmaus: has joined #ruby
[16:31:23] synthroid: has joined #ruby
[16:32:05] Kendos-Kenlen: has joined #ruby
[16:32:40] EricMoore: has joined #ruby
[16:32:44] EricMoore: serious question here did you enjoy the first time your mom gave you a blow job?
[16:33:20] adaedra: !mute EricMoore
[16:33:34] ruboto: +q EricMoore!*@*
[16:33:34] ruboto: -o ruboto
[16:34:48] ruurd: has joined #ruby
[16:34:59] tubuliferous: has joined #ruby
[16:35:21] fullofcaffeine: has joined #ruby
[16:36:38] haxrbyte: has joined #ruby
[16:39:35] Shoutsid: has joined #ruby
[16:40:43] brandonshowers: has joined #ruby
[16:40:48] mistermocha: has joined #ruby
[16:41:12] User458764: has joined #ruby
[16:42:04] mary5030: has joined #ruby
[16:42:27] nofxx: has joined #ruby
[16:42:57] oetjenj: has joined #ruby
[16:43:37] symm-: has joined #ruby
[16:43:38] [k-: arbitrary
[16:43:55] mhall: has joined #ruby
[16:44:40] mhall: Hello. How do you install a local gem using its gemfile, *and* all the dependencies? When I tried it I got the UnsatisfiableDependencyError from gem install --local
[16:46:09] jhass: mhall: try gem install bundler; bundle
[16:46:20] porfa: has joined #ruby
[16:46:35] nofxx: mhall, rake install after that
[16:47:07] mhall: Yeah... I'm trying to do it on a non-dev system
[16:47:13] mhall: Where the bundler is likely not present
[16:47:31] stannard: has joined #ruby
[16:47:39] cschneid_: has joined #ruby
[16:47:57] jhass: mhall: it should be present on production. In fact its purpose is to synchronize the environment of your application between the two
[16:48:02] stannard: has joined #ruby
[16:48:06] roshanavand: has joined #ruby
[16:48:31] brandonshowers: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[16:48:47] bluOxigen: has joined #ruby
[16:49:30] nofxx: mhall, bundler is (if the gem isn't decades old) a depency too problably
[16:49:43] bluOxigen: has joined #ruby
[16:49:51] adaedra: my gems don't depend on bundler :x
[16:50:00] nofxx: mhall, a modern Rakefile: require 'bundler/gem_tasks'
[16:50:08] nofxx: adaedra, ah, I really enjoy the tasks
[16:50:27] workmad3: nofxx: you only need that as a development dependency though, not a hard dependency ;)
[16:50:34] momomomomo: has joined #ruby
[16:50:38] workmad3: nofxx: most gems won't have a runtime dependency on bundler
[16:50:54] nofxx: workmad3, yup... dev dependency*
[16:51:03] bluOxigen: has joined #ruby
[16:51:48] iceweasel: has joined #ruby
[16:51:52] MrDSmith: has joined #ruby
[16:54:04] becks1: has joined #ruby
[16:54:29] mistermocha: has joined #ruby
[16:54:41] prestorium_: has joined #ruby
[16:54:49] jhass: watcha want to list?
[16:55:11] becks1: has left #ruby: ()
[16:55:19] jhass: still the weirdo
[16:55:28] mistermocha: has joined #ruby
[16:55:29] jhass: been doing that for days in random channels
[16:55:42] adaedra: too bad it's "!list" and not "?list", could have been a fact
[16:55:44] ruboto: I don't know anything about list
[16:56:12] dfockler: has joined #ruby
[16:56:36] bmalum: has joined #ruby
[16:56:45] diegoaguilar: has joined #ruby
[16:56:54] dionysus69: has joined #ruby
[16:58:38] rsalazar: has joined #ruby
[16:58:52] sdothum: has joined #ruby
[16:59:53] gusrub: has joined #ruby
[17:00:39] freerobby: has joined #ruby
[17:01:00] psy: has joined #ruby
[17:01:50] Asher: has joined #ruby
[17:01:59] arup_r: has joined #ruby
[17:04:07] firstdayonthejob: has joined #ruby
[17:04:47] Nina00_: has joined #ruby
[17:05:36] jenrzzz: has joined #ruby
[17:06:16] ruurd: has joined #ruby
[17:06:49] kin: has joined #ruby
[17:07:54] pandaant: has joined #ruby
[17:08:04] Shoutsid: has joined #ruby
[17:09:01] User458764: has joined #ruby
[17:09:37] bluOxigen: has joined #ruby
[17:10:03] jackjackdripper: has joined #ruby
[17:10:05] skade: has joined #ruby
[17:10:16] bluOxigen: has joined #ruby
[17:10:56] tesuji: has joined #ruby
[17:11:01] shevy: he just likes lists
[17:11:11] bluOxigen: has joined #ruby
[17:11:13] awrfas2: has joined #ruby
[17:12:33] BrunoSaboia: has joined #ruby
[17:12:48] jenrzzz: has joined #ruby
[17:14:13] ghr: Anyone know of some exemplar libraries that provide a cli (without a cli gem like thor)?
[17:14:23] darkxploit: has joined #ruby
[17:14:38] Nina00_: has joined #ruby
[17:14:39] djbkd: has joined #ruby
[17:15:02] ramfjord: has joined #ruby
[17:15:07] Hanmac: has joined #ruby
[17:15:15] mikecmpbll: has joined #ruby
[17:15:19] petricore: has joined #ruby
[17:18:17] nofxx: has joined #ruby
[17:18:18] shevy: I dunno? does bin/rack count?
[17:18:40] rushed: has joined #ruby
[17:18:41] kalusn: has joined #ruby
[17:19:05] PlasmaStar: has joined #ruby
[17:19:22] ghr: shevy yeah, that's the kind of thing I'm looking for
[17:19:53] bb010g: has joined #ruby
[17:19:54] dfockler: rake just uses OptionParser
[17:20:22] rismoney1: has joined #ruby
[17:20:23] dfockler: which is built-in to Ruby
[17:20:28] oetjenj: has joined #ruby
[17:20:29] dfockler: or in the stdlib
[17:20:31] ghr: Yeah I'm familiar with OptionParser, but just looking at how you handle errors and general structure
[17:21:02] ghr: https://practicingruby.com/articles/building-unix-style-command-line-applications is a good example
[17:21:11] ghr: just looking for a few more
[17:21:42] dfockler: https://github.com/ruby/rake/blob/master/lib/rake/application.rb#L175 This is rake's exception handling code
[17:21:52] shevy: oh OptionParse my old nemesis... you could also try things like slop from ljarvis here
[17:22:06] shevy: there is also get_opt_long or something like that
[17:23:42] ghr: I quite like optionparser :) I'm looking in to e.g. whether you should handle errors in bin/command (like in that practicingruby article) or whether your bin/comannd fille should just be a shebang and My::CLI.new(ARGV).start (like rack)
[17:23:43] trollga: has joined #ruby
[17:23:45] favadi: has joined #ruby
[17:23:46] failshell: has joined #ruby
[17:24:23] momomomomo: has joined #ruby
[17:24:37] Channel6: has joined #ruby
[17:25:02] ghr: and in the case of the latter, how to handle errors, where to grab hold of ENV vars (e.g. is it okay to put them in MyApp::SomeClass) or is it better to grab them as early as possible in the cli initialization and pass them through as opts
[17:25:17] jenrzzz: has joined #ruby
[17:25:28] jobewan: has joined #ruby
[17:25:54] fullofcaffeine: has joined #ruby
[17:25:59] shevy: I always get annoyed by that so I let the lib/ sub files handle those things, and bin/bla just delegates to the part
[17:26:12] shevy: like NameOfGem.run(ARGV) as part of bin/bla or something
[17:26:37] shevy: I know of other people who have a several hundred lines of code bin/blabla
[17:26:45] ghr: yeah, yuck
[17:27:31] bryanray: has joined #ruby
[17:28:07] roshanavand: has joined #ruby
[17:28:56] drbrain: all my gems have NameOfGem.run ARGV in bin/executable
[17:29:00] leafybas_: has joined #ruby
[17:29:03] glasshole: has joined #ruby
[17:29:39] A124: Anyone has idea how do I figure out simplest which DB backend GDB uses?
[17:29:46] shevy: ghr let me look at how rack does it
[17:29:50] A124: And/or which one is used by MRI.
[17:30:24] ghr: drbrain cool. got a repo url for one that you suggest I take a look at/
[17:30:39] A124: ACTION corrects, meants DBM.
[17:30:48] shevy: ah they don't even handle ARGV... it's just bin/rackup with this Rack::Server.start
[17:30:57] ghr: ah yeah. I need opts
[17:31:12] ghr: well, I'd like to know how to handle the ops in that format :)
[17:31:19] drbrain: ghr: https://github.com/drbrain/drbdump
[17:31:25] ghr: cheers :)
[17:31:30] ndrei: has joined #ruby
[17:31:37] Kara: has joined #ruby
[17:31:49] drbrain: I use OptionParser
[17:31:55] karam: has joined #ruby
[17:32:03] ghr: yeah I'm fine with OptionParser. stdlib and works :)
[17:32:04] glasshole: anyone else eat boogers
[17:32:16] drbrain: https://github.com/drbrain/drbdump/blob/master/lib/drbdump.rb#L263
[17:33:35] ghr: ah, nice https://github.com/drbrain/drbdump/blob/master/lib/drbdump.rb#L358-L362
[17:33:41] BTRE: has joined #ruby
[17:33:46] tier: has joined #ruby
[17:34:32] EminenceHC: has joined #ruby
[17:34:47] ghr: drbrain in https://practicingruby.com/articles/building-unix-style-command-line-applications he mentions "Regardless of how these exceptions are labeled, it's important to note that I intentionally let them bubble all the way up to the outermost layer and only then rescue them and call Kernel#exit. Intermingling exit calls within control flow or modeling logic makes debugging nearly impossible and also makes automated testing a whole lot harder."
[17:35:22] Nina00_: has joined #ruby
[17:35:30] drbrain: I exit from here: https://github.com/drbrain/drbdump/blob/master/lib/drbdump.rb#L347-L352
[17:35:57] drbrain: and I make as much use of OptionParser's argument-validation features as possible: https://github.com/drbrain/drbdump/blob/master/lib/drbdump.rb#L289
[17:36:13] drbrain: Integer there makes sure the count parameter isn't a float or a string, etc.
[17:36:48] hooker: has joined #ruby
[17:36:49] ghr: What about if you get an exception during some calculation while the program is running?
[17:36:51] rushed: has joined #ruby
[17:37:30] User458764: has joined #ruby
[17:37:53] fedexo: has joined #ruby
[17:38:12] ghr: not that familiar with tcpdump but I don't know, say it comes back with some value that you can't parse?
[17:38:32] drbrain: you get a runtime error and ruby terminates
[17:38:32] ghr: or I guess if you were connecting to an API and the API times out / fails?
[17:39:37] oetjenj: has joined #ruby
[17:39:38] jenrzzz: has joined #ruby
[17:40:18] ghr: ah cool, that sounds like it probably covers anything that couldn't be caught by validating the options
[17:40:18] Contigi: has joined #ruby
[17:40:31] Kara: has joined #ruby
[17:40:49] Contigi777: has joined #ruby
[17:40:50] adac: has joined #ruby
[17:41:49] rcvalle: has joined #ruby
[17:42:06] yeticry_: has joined #ruby
[17:42:11] bluOxigen: has joined #ruby
[17:42:51] bluOxigen: has joined #ruby
[17:43:27] bluOxigen: has joined #ruby
[17:44:09] prosodyVC: has joined #ruby
[17:44:54] bluOxigen: has joined #ruby
[17:44:57] ghr: thanks for the help. much appreciated :)
[17:45:27] drbrain: I rescue and handle as many errors as I can
[17:45:42] drbrain: and I consider such crashes bugs
[17:45:47] roshanavand: has joined #ruby
[17:47:25] ghr: I'm thinking mostly like API errors. ??? user does /blah create 'Thing'. All valid syntax, except user doesn't have permission
[17:47:29] oetjenj: has joined #ruby
[17:48:05] glasshole: yield instead of rescue
[17:48:11] bluOxigen: has joined #ruby
[17:48:17] Nina00_: has joined #ruby
[17:48:38] ramfjord: has joined #ruby
[17:49:29] karapetyan: has joined #ruby
[17:49:30] bluOxigen: has joined #ruby
[17:49:37] Zamyatin: has joined #ruby
[17:50:49] bluOxigen: has joined #ruby
[17:50:58] big|bad|wolf: has joined #ruby
[17:51:08] yeticry: has joined #ruby
[17:52:05] shevy: glasshole hey good old gateway chatter, still not using ruby?
[17:52:17] [k-: has joined #ruby
[17:52:31] n008f4g_: has joined #ruby
[17:53:33] bluOxigen: has joined #ruby
[17:54:02] glasshole: i always use ruby i have a rails app on my server running right now
[17:54:45] northfurr: has joined #ruby
[17:55:16] pipework: you are forgiven, miaow go and stop sinning.
[17:55:18] _joes__: has joined #ruby
[17:56:21] yeticry_: has joined #ruby
[17:56:32] lolmaus: has joined #ruby
[17:57:39] hobodave: has joined #ruby
[17:59:37] baweaver: has joined #ruby
[18:00:47] mary5030: has joined #ruby
[18:03:59] mary5030: has joined #ruby
[18:04:27] fahrradflucht2: has joined #ruby
[18:04:49] ksteck: has joined #ruby
[18:05:40] nateberkopec: has joined #ruby
[18:06:04] karapetyan: has joined #ruby
[18:06:23] sp4rrow_: has joined #ruby
[18:07:12] karapetyan: has joined #ruby
[18:08:00] zenguy_pc: has joined #ruby
[18:08:24] jenrzzz: has joined #ruby
[18:08:48] luckyme: has joined #ruby
[18:09:01] iceweasel: has joined #ruby
[18:09:22] User458764: has joined #ruby
[18:09:39] etrae: has joined #ruby
[18:10:20] Nina00_: has joined #ruby
[18:10:20] ducklobster: has joined #ruby
[18:10:38] baweaver: has joined #ruby
[18:12:35] Kara: has joined #ruby
[18:13:35] spider-mario: has joined #ruby
[18:13:51] htmldrum: has joined #ruby
[18:15:20] VeryBewitching: has joined #ruby
[18:15:36] jenrzzz: has joined #ruby
[18:16:48] cball: has joined #ruby
[18:17:13] tubuliferous: has joined #ruby
[18:20:23] DEA7TH: has joined #ruby
[18:20:49] aclearman037: has joined #ruby
[18:21:00] codecop: has joined #ruby
[18:21:41] barhum2013: has joined #ruby
[18:22:57] lenwood: has joined #ruby
[18:24:49] kramsee: has joined #ruby
[18:25:02] Dopagod: has joined #ruby
[18:25:56] lolmaus: has joined #ruby
[18:26:19] pdoherty: has joined #ruby
[18:26:24] jenrzzz: has joined #ruby
[18:27:46] ducklobster: is there any way to simplify / compress the following statement: myhash[:size] = myhash[:size].to_f
[18:27:49] tubbo: gateway chatter?
[18:27:50] basiles: has joined #ruby
[18:27:56] tubbo: are you literally on a gateway2000?
[18:28:11] tubbo: http://s51.photobucket.com/user/cheese93007/media/phpjanKwGPM.jpg.html
[18:28:15] TheRinger: has joined #ruby
[18:29:11] EminenceHC: has joined #ruby
[18:29:21] Nina00_: has joined #ruby
[18:29:23] shevy: I am too scared to click on that
[18:29:26] jhass: ducklobster: no
[18:29:32] fullofcaffeine: has joined #ruby
[18:32:07] karapetyan: has joined #ruby
[18:32:13] bryanray: has joined #ruby
[18:32:59] rwilcox_: has joined #ruby
[18:33:59] ducklobster: jhass: thanks
[18:35:26] blackmesa: has joined #ruby
[18:36:14] musicmatze: has joined #ruby
[18:36:18] Renich: has joined #ruby
[18:36:22] gusrub: has joined #ruby
[18:37:01] karapetyan: has joined #ruby
[18:37:37] barhum2013: has joined #ruby
[18:38:11] SamGerber: has joined #ruby
[18:38:16] lolmaus: has joined #ruby
[18:39:59] ruurd: has joined #ruby
[18:40:41] Ben_1: has joined #ruby
[18:40:44] tubuliferous: has joined #ruby
[18:42:00] Ben_1: im trying to install redmine with gitolite but a problem appeared and my error.log says that that gem: loofah-2.0.3 could not be found
[18:42:24] rwilcox_: has joined #ruby
[18:42:28] Ben_1: I'm wondering because bundle install returns this Using loofah 2.0.3
[18:42:45] roshanavand: has joined #ruby
[18:43:18] jhass: how did you install Ruby?
[18:43:21] Ben_1: I already updated and cleared my gems but that changed nothing
[18:43:31] pipework: jhass: Usually in a drunken haze.
[18:43:40] jhass: so helpful
[18:43:58] kadoppe: has joined #ruby
[18:44:03] pipework: You asked :(
[18:44:36] Ben_1: jhass: rvm
[18:45:05] hectortrope: /query manitu
[18:45:12] soosfarm: has joined #ruby
[18:45:20] shevy: /query hectortrope
[18:45:23] mrchris: has joined #ruby
[18:45:26] jhass: Ben_1: generate a wrapper for bundler (rvm help wrapper) and replace the call giving the error with the wrapper /../../.rvm/.../bundle exec ...
[18:45:37] mrchris: is it possible to include modules into a class that is already instantiated
[18:45:51] howdoi: has joined #ruby
[18:46:19] jhass: __chris: yes, include into the class will update all instances, extend will include into the objects singleton class. However both are most likely anti patterns
[18:47:01] Ben_1: jhass: how should I replace that call? Redmine is a software to install and I'm not aware with its source code
[18:47:29] mrchris: so if i have `foo = test.new` how would i include a module into foo? something like `foo.include SomeModule`
[18:47:59] mrchris: (i know this is bad practice but Im trying to hack something in for a spec)
[18:48:13] bmalum: has joined #ruby
[18:48:37] jhass: well, for all instances or just that particular one?
[18:48:46] sdothum: has joined #ruby
[18:48:52] karapetyan: has joined #ruby
[18:49:37] jhass: simply call extend then
[18:49:42] jhass: &ri Object#extend
[18:49:42] `derpy: http://www.rubydoc.info/stdlib/core/Object#extend-instance_method
[18:49:55] mrchris: ahh thanks :D
[18:50:02] st1gma: has joined #ruby
[18:50:04] zcreative: has joined #ruby
[18:50:12] soosfarm: has joined #ruby
[18:50:55] arturmartins: has joined #ruby
[18:53:25] jhass: Ben_1: neither am I
[18:53:41] kgirthofer_: has joined #ruby
[18:53:49] soosfarm: has joined #ruby
[18:53:51] jhass: given you mentioned gitolite it sounded like you had some rake task to call in some integration or whatever
[18:54:37] jhass: ?crosspost Ben_1
[18:54:37] ruboto: Ben_1, Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
[18:55:14] soosfarm: has joined #ruby
[18:56:22] subscope: has joined #ruby
[18:56:38] shevy: aaah it's time for Ben_1 spanking :)
[18:56:57] jhass: nope, already over, you're too late
[18:57:35] Ben_1: but I recognised that this is a ruby developer chan and maybe in #bundler this question is better placed
[18:57:57] jhass: actually #redmine
[18:59:08] Nina00_: has joined #ruby
[18:59:09] Hanmac: has joined #ruby
[18:59:23] mistermocha: has joined #ruby
[18:59:27] Ben_1: jhass: you're right but there is nobody who answers
[18:59:41] jhass: so what call is producing the error?
[18:59:57] Renich: has joined #ruby
[19:00:10] Ben_1: one moment I will pastebin the exception
[19:00:10] tubuliferous: has joined #ruby
[19:00:37] shevy: just handle the dependencies
[19:00:43] Ben_1: jhass: http://pastebin.com/fLrRZFbf
[19:00:44] ruboto: Ben_1, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/9d4035450bbaaa632771
[19:00:44] ruboto: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[19:00:45] shevy: if a gem is installed, it should work
[19:01:05] Ben_1: shevy but it does not
[19:01:07] shevy: loofah-2.0.3 so loofah gem
[19:01:09] sp4rrow_: has joined #ruby
[19:01:18] Ben_1: that's right and it is already installed
[19:01:21] jhass: Ben_1: that's not directly answering my question, but so it's actually passenger giving you the error
[19:01:29] jhass: that would've been good to put into your question
[19:01:41] jhass: how did you install passenger?
[19:02:10] Ben_1: wait I will descripe my situation exactly
[19:02:28] jhass: https://rvm.io/deployment/passenger
[19:02:41] momomomomo: has joined #ruby
[19:02:49] diegoaguilar: has joined #ruby
[19:03:51] lolmaus: has joined #ruby
[19:06:29] Antiarc: has joined #ruby
[19:07:16] Ben_1: Redmine was already running and I placed the gitolite plugin in plugins directory and then redmine stopped working.
[19:07:23] bryanray: has joined #ruby
[19:07:39] Ben_1: redmine is placed in /usr/share/redmine and owner is the user redmine
[19:08:14] Ben_1: but the .rvm dir is placed in /hoome/Ben/.rvm
[19:08:29] jhass: Ben_1: does bundle list include loofah?
[19:08:31] edenc: has joined #ruby
[19:09:03] Dor: has joined #ruby
[19:09:41] maikowblue: has joined #ruby
[19:09:59] sp4rrow_: has joined #ruby
[19:10:04] Ben_1: jhass: Bundle install and Bundle list both are showing loofah (2.0.3)
[19:10:13] j0bk: has joined #ruby
[19:10:35] jhass: I think your passenger is using a different ruby or gemset than what your shell is currently at
[19:11:24] awrfas2: has joined #ruby
[19:11:54] csaunders: has joined #ruby
[19:12:21] jenrzzz: has joined #ruby
[19:12:29] Nightmare: has joined #ruby
[19:12:36] dvarrui: has joined #ruby
[19:12:44] soosfarm: has joined #ruby
[19:13:31] peterhu: has joined #ruby
[19:14:50] pwnd_nsfw: has joined #ruby
[19:15:14] adac: has joined #ruby
[19:16:01] kirun: has joined #ruby
[19:16:18] lolmaus: has joined #ruby
[19:18:47] tubuliferous: has joined #ruby
[19:19:08] scpike: has joined #ruby
[19:19:26] baweaver: has joined #ruby
[19:19:55] csaunders: has joined #ruby
[19:19:59] arthurix: has joined #ruby
[19:20:13] bryanray: has joined #ruby
[19:20:34] devn: has joined #ruby
[19:21:47] Nina00_: has joined #ruby
[19:22:09] pleiosaur: has joined #ruby
[19:22:16] JimmyNeutron: has joined #ruby
[19:22:28] sepp2k: has joined #ruby
[19:22:30] karapetyan: has joined #ruby
[19:23:05] davedev24: has joined #ruby
[19:25:30] yfeldblum: has joined #ruby
[19:25:39] Ben_1: jhass: but how? I thought maybe redmine user have its own gemset but in /home/redmine there is no .rvm dir
[19:27:10] jhass: what's rvm current printing while bundle list has loofah?
[19:27:31] devoldmx: has joined #ruby
[19:28:11] djbkd: has joined #ruby
[19:28:32] David27: has joined #ruby
[19:29:06] karapetyan: jhass: hi :)
[19:29:09] karapetyan: jhass: https://gist.github.com/karapetyan/3f170ca9268eba26269c
[19:29:12] karapetyan: is my code ok?
[19:29:21] jhass: why don't you ask the channel?
[19:29:30] Ben_1: rvm current returns ruby-2.2.1
[19:29:43] Ben_1: jhass: and gem env returns INSTALLATION DIRECTORY: /home/Ben/.rvm/gems/ruby-2.2.1
[19:29:45] jhass: Ben_1: bundle show loofah?
[19:29:47] yeticry: has joined #ruby
[19:30:12] Ben_1: lol no, I typed "rvm current" xD
[19:30:18] karapetyan: hi, folks! is my code ok for ruby warrior lvl 4 https://gist.github.com/karapetyan/3f170ca9268eba26269c ?
[19:31:08] Ben_1: bundle show loofah returns Could not find loofah-2.0.3 in any of the sources
[19:31:29] jhass: full output of bundle install ?
[19:31:30] Ben_1: but how can bundle install using loofah 2.0.3 but bundle show can't find it
[19:31:31] bryanray: has joined #ruby
[19:31:39] jhass: yeah, that's weird
[19:31:57] Ben_1: it's exciting xD
[19:31:57] jhass: maybe you ran both in a different environment?
[19:32:01] baweaver: has joined #ruby
[19:32:37] workmad3: has joined #ruby
[19:32:44] djbkd: has joined #ruby
[19:33:35] Ben_1: jhass: aaah no I was in the wrong directory. I repeated the command
[19:33:46] Ben_1: now it returns /var/lib/gems/1.9.1/gems/loofah-2.0.3
[19:33:52] jhass: that's bad
[19:33:59] jhass: run gem install bundler
[19:34:05] gizmore: module Kernel; def; method_messing; "MEH"; end;end
[19:34:07] jhass: and check rvm current is still nice
[19:35:01] eam: meh-thod missing
[19:35:18] Ben_1: maybe I should remove all bundler and gem stuff and install it again
[19:35:21] freerobby: has joined #ruby
[19:35:22] nettoweb: has joined #ruby
[19:35:38] gusTester: has left #ruby: ()
[19:35:39] jhass: Ben_1: doubt it'll help, usually people repeat the same mistakes in such attempts
[19:36:40] tubuliferous: has joined #ruby
[19:37:12] gril: has joined #ruby
[19:37:14] towski_: has joined #ruby
[19:38:31] n008f4g_: has joined #ruby
[19:39:54] Ben_1: jhass: so now I've installed bundler via gem, whats the next step?
[19:40:09] jhass: run bundle again
[19:40:25] TPBallbag: has joined #ruby
[19:40:58] Ben_1: u mean bundle install? this returns Using loofah 2.0.3 again
[19:41:04] failshell: has joined #ruby
[19:41:27] jhass: do you add any sudo or something behind the scenes? I don't understand how it even could install to the system ruby this way
[19:41:57] jhass: also please confirm rvm current is still pointing out the RVM ruby and not system
[19:41:59] shevy: Ben_1 you use debian?
[19:42:02] Ben_1: first I moved to redmine user via su - redmine then ran bundle install
[19:42:08] Ben_1: shevy: rasbpian
[19:42:27] jhass: yes what?
[19:42:50] Ben_1: this yes was placed for shevy, yes, raspbian is a debian based distribution
[19:43:18] shevy: perhaps this is what confuses since you have /var/lib/gems/1.9.1/gems/ and also gems in your $HOME dir at .rvm
[19:44:17] jhass: Ben_1: you know, it's kinda hard to follow what you're doing where and what the state of your system is
[19:44:51] cball: has joined #ruby
[19:44:54] jhass: you probably have a /usr/bin/bundle or /usr/local/bin/bundle using your package manager installed Ruby 1.9
[19:45:04] Ben_1: yaah I know that, but I'm not so experienced in ruby applications. redmine was my first try and I failed xD
[19:45:12] shevy: karapetyan you really should use def initialize when you write a class
[19:45:14] jhass: you got that either through running gem install bundler as root or installing a package
[19:45:29] porfa: has joined #ruby
[19:45:31] jhass: you should have RVM installed to the user you want to run Ruby under
[19:45:31] haxrbyte_: has joined #ruby
[19:45:46] karapetyan: shevy: can i? i am not sure ruby warrior allows it ) https://www.bloc.io/ruby-warrior/
[19:45:55] karapetyan: shevy: but thanks, i'l try
[19:46:00] Nina00_: has joined #ruby
[19:46:05] jhass: if that RVM install is properly activated and bundler is installed into it, so gem install as the same user, bundle should point to $HOME/.rvm/.../bin/bundle, overriding the global on
[19:46:06] shevy: I have no idea what it allows or not, you simply should use def initialize, it's your usual main entry point to a class
[19:46:45] jhass: shevy: I don't think that's helpful, if you have no idea about the environment simply stay shut
[19:47:04] shevy: jhass if you got a problem, redirect to /dev/null
[19:47:17] Ben_1: aah it looks like I installed rubygems with apt-get, maybe later I installed it with rvm too so now I have two installations
[19:47:53] jhass: as said, a properly activated RVM should take precedence over all of that, it shouldn't matter
[19:47:55] Ben_1: this installation of redmine is several months old so I don't know in detail what I've done at that time
[19:48:06] jhass: weirdness only happens if you randomly do things as root and different users
[19:48:14] BustyLoliChan: has joined #ruby
[19:48:15] jhass: or rvm current says system
[19:48:36] jamesaxl: has joined #ruby
[19:48:38] Ben_1: so rvm ist installed under my user Ben but redmine is running under user redmine. could this cause problems?
[19:49:09] jhass: that that ever worked is weird in the first place
[19:49:20] Ben_1: maybe some months ago I ran bundle install with sudo I don't know
[19:49:30] Ben_1: how could I fix this if that's the case?
[19:50:01] [Butch]: has joined #ruby
[19:50:14] jhass: install RVM under the redmine user and best update your passenger install to that user, or run redmine as Ben
[19:50:39] jamesaxl|2: has joined #ruby
[19:50:59] jhass: in general for a RVM setup to work well, pick a user, not root, and do everything with it
[19:51:09] jhass: if you switch users or use sudo, you do it wrong
[19:51:58] Kara: has joined #ruby
[19:52:29] goldfish6744: has joined #ruby
[19:52:41] jun: has joined #ruby
[19:52:53] karam: has joined #ruby
[19:53:39] roshanavand: has joined #ruby
[19:53:41] mistermocha: has joined #ruby
[19:53:45] tubuliferous: has joined #ruby
[19:54:34] Ben_1: mh maybe I will make a ruby user or something where all my ruby applications run
[19:55:12] jhass: there's the option to do a global RVM setup, but that's even harder to get right
[19:55:16] jpfuentes2: has joined #ruby
[19:55:27] yardenbar: has joined #ruby
[19:56:45] Dreamer3: has joined #ruby
[19:58:12] k3asd`: has joined #ruby
[19:58:18] Ben_1: aah rvm will use /usr/bin/ruby and /var/lib/gems
[19:58:35] Ben_1: I've removed gems fromm apt-get
[19:58:36] jhass: only if you do rvm use system
[19:58:52] Ben_1: maybe I've used sudo
[19:59:16] Ben_1: I will remove all
[19:59:18] Ben_1: and reinstall
[19:59:31] Ben_1: think that's the best solution
[19:59:59] pocketprotector-: has joined #ruby
[20:00:12] _seanc_: has joined #ruby
[20:00:21] cdg: has joined #ruby
[20:03:41] pocketprotector-: has joined #ruby
[20:04:29] Jardayn: has joined #ruby
[20:05:14] stannard: has joined #ruby
[20:05:50] pocketprotector-: has joined #ruby
[20:07:04] Guest50: has joined #ruby
[20:07:34] EminenceHC: has joined #ruby
[20:09:23] fullofcaffeine: has joined #ruby
[20:09:31] zenguy_pc: has joined #ruby
[20:10:11] tubuliferous: has joined #ruby
[20:11:38] v4n: has joined #ruby
[20:12:05] towski_: has joined #ruby
[20:12:20] oetjenj: has joined #ruby
[20:12:21] diegoaguilar: has joined #ruby
[20:13:57] momomomomo: has joined #ruby
[20:14:36] htmldrum: has joined #ruby
[20:15:43] pvac: has joined #ruby
[20:16:40] diegoviola: has joined #ruby
[20:16:41] doddok: has joined #ruby
[20:17:59] bruno-: has joined #ruby
[20:20:27] Nina00_: has joined #ruby
[20:21:06] rwilcox: has joined #ruby
[20:22:18] petricore: has joined #ruby
[20:24:42] darix: .oO( i would start with understanding your problem )o
[20:26:41] podman: has joined #ruby
[20:27:55] sp4rrow_: has joined #ruby
[20:28:29] hagabaka: has joined #ruby
[20:28:56] momomomomo: has joined #ruby
[20:29:23] spider-mario: has joined #ruby
[20:29:27] baddeveloper: has joined #ruby
[20:30:15] baddeveloper: Has anyone worked with the new Mongo driver, version 2.1.1? I'm having some issues with connection strings: https://gist.github.com/anonymous/375b7337ece846bd8e2a
[20:30:18] mleung: has joined #ruby
[20:31:41] Scripore: has joined #ruby
[20:32:00] timonv: has joined #ruby
[20:32:24] blackmesa: has joined #ruby
[20:34:00] shevy: Ben_1 say when the problem goes away after you did the reinstall, however had I would first dry-test singular gems and see whether they will work
[20:34:01] ruurd: has joined #ruby
[20:34:44] Igorshp: has joined #ruby
[20:35:15] jenrzzz: has joined #ruby
[20:36:34] tvw: has joined #ruby
[20:36:38] centrx: has joined #ruby
[20:36:44] LMity: has joined #ruby
[20:37:21] oetjenj: has joined #ruby
[20:37:42] baweaver: has joined #ruby
[20:38:02] tubuliferous: has joined #ruby
[20:38:29] Guest50: has joined #ruby
[20:38:58] sp4rrow_: has joined #ruby
[20:39:14] unreal_: has joined #ruby
[20:40:35] K1MOS: has joined #ruby
[20:42:04] jackjackdripper1: has joined #ruby
[20:43:24] sp4rrow_: has joined #ruby
[20:43:57] t0code: has joined #ruby
[20:43:58] tomchapin: has joined #ruby
[20:44:09] Freeaqingme: has joined #ruby
[20:44:47] t0code: when you create a new instance of a class does it process through every method after initialize or must you call subsequent methods?
[20:46:10] pipework: t0code: The only method that is called that you have to care about is #initialize
[20:46:11] workmad3: t0code: are you asking if all the methods in a class get called automatically when you create an instance?
[20:46:12] shevy: t0code it will only jump to the methods that you did put into initialize
[20:46:14] baweaver: has joined #ruby
[20:46:15] jhass: well, what would be the point of creating a class or methods at all when it would always call them? that would amount to same as having all code being at toplevel, no? And how would it automagically call methods with arguments?
[20:46:23] Nina00_: has joined #ruby
[20:47:16] Ben_1: has left #ruby: ()
[20:47:40] aquiles: has joined #ruby
[20:47:48] sevin: has joined #ruby
[20:48:43] Rixius: has joined #ruby
[20:49:21] t0code: so are most functions performed outside of a class in most cases? in other words i want to be defining my method outside of the class structure? <new
[20:49:45] jhass: I don't know how you jump to that conclusion...
[20:50:10] shevy: t0code depends on how you want to structure your class really
[20:50:38] t0code: suppose im having a hard time conceptualizing when in my code i want most of work to be handled or if i should even be worrying about such a thing
[20:51:17] rolfb: has joined #ruby
[20:51:26] shevy: initialize is your main entry point right t0code?
[20:51:41] jhass: do you have a small script (< 100 loc) that you've written without classes? Maybe we can rewrite it using classes proper
[20:51:52] t0code: shevy, yes.
[20:52:55] t0code: jhass, i actually don't. i think ive got it in my head that function should be counching within classes is most cases. i could show you one that i wouldnt mind having broken down into a more efficient/accepted structure.
[20:53:01] shevy: t0code alright, so let's say you have a class called CreateDirectories which will create some directories. Now you can define an array that holds all the directories that you want to create, then you start to write def initialize, and inside of def initialize you could delegate to a method called "def create_directories" that will simply iterate over that array, and create a directory unless it already exist
[20:53:01] shevy: s, using fileutils
[20:53:09] jun: has joined #ruby
[20:53:34] jhass: t0code: I suggest you write one before spending more time on learning classes
[20:53:55] jhass: t0code: learn using classes, methods and objects before defining your own
[20:53:58] CooloutAC: has joined #ruby
[20:53:59] shevy: t0code if you want to hint towards the usage, you can make create_directories private, and also show a help-section when your class is invoked without any argument (or perhaps better, if you invoke it via --help argument)
[20:54:24] jhass: and having tackled a problem before will be immensely be more useful to see different solutions to than somebody else's code
[20:54:56] bryanray: has joined #ruby
[20:55:04] Nina00_: has joined #ruby
[20:55:15] diegoaguilar: has joined #ruby
[20:55:27] karam: has joined #ruby
[20:55:27] Kara: has joined #ruby
[20:55:31] oetjenj: has joined #ruby
[20:55:35] aquiles: has joined #ruby
[20:55:41] t0code: understood.
[20:55:52] CooloutAC: hello all i have a beginner question
[20:56:18] neanderslob: has joined #ruby
[20:56:23] ruboto: Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
[20:56:26] snockerton: has joined #ruby
[20:56:40] CooloutAC: ya sorry trying to paste my code i'm failing this lesson lol
[20:56:47] ruboto: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[20:56:53] centrx: Soon you will be a winner
[20:56:56] t0code: jhass, when you say use classes,methods objects before defining my own...do you me the inherent ones that come built into Rails or what
[20:57:30] t0code: not sure what you mean by that
[20:57:37] jhass: t0code: no using. Everything in Ruby is an object. gets method call, "foo" object, 1 object, "foo".upcase method call on object
[20:58:06] jhass: use the classes that Ruby ships with and their methods
[20:58:08] CooloutAC: http://dpaste.com/38WHPPE
[20:58:11] ruurd: has joined #ruby
[20:58:39] riceandbeans: has joined #ruby
[20:58:41] t0code: got any recommended sites/literature/videos you suggest to beginners?
[20:58:44] CooloutAC: i have ot make a method that takes a single integer parameter and return true if number is evenly divisible by 3 false if not
[20:58:47] riceandbeans: how do I get system memory information in ruby?
[20:59:02] jhass: t0code: chris pine's learn to program is generally recommended
[20:59:26] jhass: CooloutAC: sure you're supposed to return the string "true" instead of the literal true?
[20:59:27] t0code: ruby specific?
[20:59:40] jhass: t0code: well, it uses Ruby
[20:59:55] CooloutAC: jhass: haha tks that did it ty
[20:59:56] shevy: riceandbeans you can use `` if you have commandline programs
[20:59:56] jhass: riceandbeans: shell out, sadly
[21:00:39] jhass: CooloutAC: now every expression in ruby has a value, what do you think are the possible values of the expression n % 3 == 0 ?
[21:01:17] CooloutAC: jhass: huh?
[21:01:28] riceandbeans: this is with regard to windows
[21:01:55] jhass: CooloutAC: say I would do result = (n % 3 == 0), what possible values would result have?
[21:01:57] CooloutAC: jhass: i'm sorry man i'm very noob you solved my problem though ty.
[21:02:20] tubuliferous: has joined #ruby
[21:02:27] momomomomo: has joined #ruby
[21:03:09] CooloutAC: jhass: true or false right, ihad to remove the quotes
[21:03:21] CooloutAC: a value not a string
[21:03:30] jhass: a string is a value ;)
[21:03:33] shevy: riceandbeans there is probably some commandline program in windows to show that, then you can also use it from within ruby scripts
[21:03:56] jhass: CooloutAC: so, result may be true or false, right. When is it true, when is it false? For which property of n?
[21:04:16] CooloutAC: jhass: tks for the help lol
[21:04:50] jhass: CooloutAC: we can cut 4/5 of your method, I'm trying to lead you there ;)
[21:05:49] CooloutAC: jhass: you lost me
[21:06:15] jhass: well, if you're not trying I have to spoil it I guess
[21:06:31] dmolina: has joined #ruby
[21:06:45] jhass: it can be just def by_three?(n); n % 3 == 0; end (replace ; by newlines)
[21:06:46] EminenceHC: has joined #ruby
[21:07:13] CooloutAC: the lesson is for return
[21:08:07] CooloutAC: jhass: you lost me again, tks for pointing out my error though
[21:08:09] skweek: has joined #ruby
[21:08:21] jhass: return is implicit at the end of a method
[21:08:49] jhass: the elsif is redundant, if the first condition is false it must be true so a simple else is enough
[21:09:00] duderonomy: has joined #ruby
[21:09:13] CooloutAC: ok so i can end it all before the elseif
[21:09:14] jhass: if true_or_false; true; else; false; end is redundant, just return true_or_false directly
[21:10:04] clebrun: has joined #ruby
[21:10:33] CooloutAC: jhass: ok so this works too http://dpaste.com/38WHPPE tks for the tip.
[21:10:36] clebrun: how would I do files.map(&:File.extname) ?
[21:10:50] dvarrui: has joined #ruby
[21:11:05] jhass: CooloutAC: you pasted the link from earlier
[21:11:13] luckyme: has joined #ruby
[21:11:14] blue_deref: has joined #ruby
[21:11:20] blackmesa: has joined #ruby
[21:11:23] baweaver: clebrun: use a block
[21:11:29] baweaver: shorthand doesn't work like that
[21:11:31] etrae: has joined #ruby
[21:11:35] jhass: clebrun: .map(&File.method(:extname)), but not worth it IMO, just .map {|f| File.extname(f) }
[21:11:37] CooloutAC: sorry i changed it to this now http://dpaste.com/0W1JEGB
[21:12:07] clebrun: that makes me a bit sad... oh well, thanks baweaver, jhass
[21:12:08] CooloutAC: tks for the help
[21:12:22] jhass: CooloutAC: that will return nil, not false if it's not divisible by three, got too loose tests there I guess
[21:12:55] oetjenj: has joined #ruby
[21:13:41] slash_nick: def by_twelve?(n); by_three?(n) && by_four?(n); end
[21:14:40] DexterLB: has joined #ruby
[21:16:17] CooloutAC: jhass: http://dpaste.com/19HXAR2 what about this
[21:17:40] jhass: that works for sure, but 23:09 <jhass> if true_or_false; true; else; false; end is redundant, just return true_or_false directly
[21:18:17] CooloutAC: jhass: i don't know what that means
[21:18:50] BSaboia: has joined #ruby
[21:19:28] jhass: >> def a(n); if n == 1; true; else; false; end; end; def b(n); n == 1; end; [a(2) == b(2), a(1) == b(1)]
[21:19:29] ruboto: jhass # => [true, true] (https://eval.in/451693)
[21:19:29] slash_nick: CooloutAC: the variable true_or_false will either evaluate to true or false... so `return true_or_false` is the same as `if true_or_false; return true; else; return false;end`
[21:20:21] dstarh: tried to use tiny_tds for the first time in a while to connect to our sql server db and i'm getting a segfault on dead simple query. I've changed to different versions of freetds not making any difference
[21:21:00] dstarh: the last time it worked was pre - el cap upgrade which is the only thing I can think of different between now and then
[21:21:34] dstarh: i've uninstalled and reinstalled both freetds libs and the tinytds gem
[21:22:21] CooloutAC: slash_nick: I don'[ get it
[21:22:41] CooloutAC: I'm just gonna move on to the next lesson tks for the help
[21:22:46] t0code: what does "class/module name must be CONSTANT mean?
[21:23:20] tubuliferous: has joined #ruby
[21:23:25] workmad3: t0code: means you need to start a class or module name with a capital letter
[21:23:33] finisherr: has joined #ruby
[21:23:46] jhass: because constants are defined by starting with a capital letter
[21:23:47] workmad3: t0code: starting with capital == constant in ruby
[21:23:51] workmad3: jhass: I was getting there :(
[21:24:29] CooloutAC: jhass: are you saying I don't need the words return?
[21:25:01] CooloutAC: jhass: like this? http://dpaste.com/2KZ4YST
[21:25:03] clebrun: ruby has implicit return
[21:25:19] clebrun: so last value in a block is return value
[21:25:50] CooloutAC: clebrun: like this? http://dpaste.com/2KZ4YST
[21:26:04] clebrun: CooloutAC: should work
[21:26:10] clebrun: but there is a better way to do it
[21:26:31] ellisTAA: has joined #ruby
[21:26:38] CooloutAC: ok tks for the help
[21:27:04] clebrun: CooloutAC: def by_three?(n); n % 3 == 0; end
[21:27:23] clebrun: because that already return true or false anyway
[21:27:30] jhass: clebrun: scroll up, already gave them that 20 minutes ago
[21:27:38] CooloutAC: ya but i think the point of this lesson is to know what return is.
[21:27:44] clebrun: jhass: don't be silly i don't know how to scroll
[21:28:06] shinnya: has joined #ruby
[21:28:12] CooloutAC: jhass: ya but i could actually understand clebrun lol
[21:28:27] Igorshp: has joined #ruby
[21:28:30] CooloutAC: i have to learn to get the answer to my questio and then run from this room before my head explodes
[21:28:32] gusrub: has joined #ruby
[21:28:47] freerobby: has joined #ruby
[21:28:48] clebrun: CooloutAC: understanding return is ruby is understanding that you almost never need to use it
[21:28:53] jhass: def by_three(n); return n % 3 == 0; end works too, but the return is just redundant and bad style there
[21:28:59] clebrun: CooloutAC: IMHO
[21:28:59] djbkd: has joined #ruby
[21:29:28] CooloutAC: jhass: ahh ok
[21:29:47] CooloutAC: i think that was the way they probably wanted me to do it
[21:30:10] skcin7: has joined #ruby
[21:30:36] CooloutAC: lol why is that bad style
[21:31:02] mary5030: has joined #ruby
[21:31:11] jhass: because the return keyword there is not needed, it's redundant noise
[21:31:15] t0code: im returning an error '+' method initialize...mind telling me whats wrong here?
[21:31:19] t0code: https://gist.github.com/anonymous/efa6e7be132733280808
[21:31:25] CooloutAC: jhass: yes but its to learn what it is
[21:31:43] CooloutAC: but that is the way they wanted me to do it i believe. thats much simpler
[21:32:17] jhass: t0code: what is @this_game += supposed to do
[21:32:41] tubuliferous: has joined #ruby
[21:32:54] t0code: increment an array one to keep a unique instance of there game to check for loading
[21:32:56] jhass: avoid globals and be pedantic about correct indentation
[21:33:07] jhass: which array? there's no array ever assigned
[21:33:23] yfeldblum: has joined #ruby
[21:33:23] jhass: I don't follow
[21:33:26] CooloutAC: so you meant the return is implied including the false or true
[21:33:29] t0code: the global?
[21:33:40] t0code: $gameInstance
[21:33:55] CooloutAC: but I guess they want me to write it out to understand whats going on, but in that one liner not the way I did it.
[21:34:05] jhass: CooloutAC: the == returns true or false already. and the value of the last expression of a method is its return value
[21:34:25] CooloutAC: well so i kept chipping away at my original code, that was fun
[21:34:41] jhass: t0code: but I didn't ask about $game_instance << @this_game
[21:34:43] sepp2k1: has joined #ruby
[21:34:49] jhass: I asked about @this_game +=
[21:34:55] CooloutAC: jhass: tks for the help man
[21:35:04] CooloutAC: now I get it
[21:35:25] shevy: t0code you don't really use @thisGame; assign it to some value, if you need to do += 1 then you clearly want to use it as a counter
[21:36:05] t0code: i suppose @thisGame should be set to the current length of $gameInstance
[21:36:19] jhass: I don't know
[21:36:31] jhass: I really don't know what your intention is there
[21:36:32] VeryBewitching: Can anyone provide a link with an example (or even better, a gem) for an implementation of traits in Ruby?
[21:36:39] jhass: ?styleguides t0code
[21:36:39] ruboto: t0code, here are three popular styleguides, you should read and follow at least one: https://github.com/styleguide/ruby https://github.com/bbatsov/ruby-style-guide https://github.com/thoughtbot/guides/tree/master/style/ruby
[21:37:22] Shoutsid: has joined #ruby
[21:37:27] t0code: ill check them now. thanks
[21:38:39] djcp1: has joined #ruby
[21:38:43] shevy: t0code if you use a class already, then why do you also use a $ global variable
[21:39:12] djcp1: has joined #ruby
[21:40:45] oetjenj: has joined #ruby
[21:41:13] dfockler: has joined #ruby
[21:43:51] Guest50: has joined #ruby
[21:46:23] ledestin: has joined #ruby
[21:47:53] riceandbeans: has left #ruby: ()
[21:48:50] djbkd: has joined #ruby
[21:48:59] tubuliferous: has joined #ruby
[21:49:08] sdothum: has joined #ruby
[21:52:07] djbkd: has joined #ruby
[21:54:05] havenwood: VeryBewitching: I'm curious how you're planning to use them?
[21:55:44] Coldblackice: has joined #ruby
[21:55:48] tubuliferous: has joined #ruby
[21:56:29] roshanavand: has joined #ruby
[21:57:34] havenwood: VeryBewitching: https://github.com/txus/traitor
[21:57:37] VeryBewitching: havenwood: It's purely out of interest at the moment. I've been reading quite a bit today and came across modularity and traitor
[21:57:42] VeryBewitching: Ya, his examples fail.
[21:57:50] havenwood: unmaintained
[21:59:33] djbkd: has joined #ruby
[22:00:17] phutchins: has joined #ruby
[22:01:52] tubuliferous: has joined #ruby
[22:03:03] Kara: has joined #ruby
[22:04:39] leafybas_: has joined #ruby
[22:05:01] finisherr: has joined #ruby
[22:06:34] kayloos: has joined #ruby
[22:07:11] clebrun: sorry, what are traits?
[22:07:36] tomchapin: has joined #ruby
[22:08:00] wldcordeiro: has joined #ruby
[22:08:18] htmldrum: has joined #ruby
[22:08:33] clebrun: nvm, googling
[22:08:58] havenwood: clebrun: http://web.archive.org/web/20061209142330/http://www.iam.unibe.ch/~scg/Archive/Papers/Scha02bTraits.pdf
[22:09:22] zenguy_pc: has joined #ruby
[22:09:23] djbkd: has joined #ruby
[22:09:45] clebrun: ty havenwood
[22:09:48] baweaver: has joined #ruby
[22:09:51] havenwood: clebrun: np
[22:10:22] adaedra: havenwood: looks interesting
[22:10:29] skweek: has joined #ruby
[22:10:56] Zamyatin: has joined #ruby
[22:11:02] kalusn: has joined #ruby
[22:11:30] tubuliferous: has joined #ruby
[22:11:35] ochkoffein: has joined #ruby
[22:11:54] jessemcgilallen: has joined #ruby
[22:14:00] fierycatnet: has joined #ruby
[22:14:01] PlasmaStar: has joined #ruby
[22:15:07] iamayam: has joined #ruby
[22:15:22] V1s1ble: has joined #ruby
[22:15:55] goldfish6744: has joined #ruby
[22:17:13] riotjones: has joined #ruby
[22:18:19] diegoaguilar: has joined #ruby
[22:18:46] gregoriokusowski: has joined #ruby
[22:18:59] bryanray: has joined #ruby
[22:21:55] cornerma1: has joined #ruby
[22:22:51] dstarh: has joined #ruby
[22:27:37] devoldmx: has joined #ruby
[22:28:10] rickmasta: has joined #ruby
[22:29:28] ochkoffein: has joined #ruby
[22:31:29] Scripore: has joined #ruby
[22:31:34] goldfish6744: has joined #ruby
[22:31:51] kalusn: has joined #ruby
[22:32:02] ramfjord: has joined #ruby
[22:33:05] GriffinHeart: has joined #ruby
[22:33:39] oetjenj: has joined #ruby
[22:35:36] _seanc_1: has joined #ruby
[22:36:03] idefine: has joined #ruby
[22:41:31] Dopagod: has joined #ruby
[22:43:08] based_pdev: why is [4, 0] == [] but [5, 0] == nil? http://i.imgur.com/1AdePvO.png
[22:43:32] Ropeney: has joined #ruby
[22:43:33] drbrain: based_pdev: 4 is at the end of the list while 5 is out of bounds
[22:43:58] based_pdev: isn't it 0 index?
[22:44:32] based_pdev: so 0,1,2,3 ; 4 is not out of bounds?
[22:44:51] diegoviola: has joined #ruby
[22:44:52] Shoutsid: has joined #ruby
[22:44:52] drbrain: you can insert at 4
[22:45:10] drbrain: (same as append)
[22:45:46] drbrain: there might be some more-official reasoning for why the index after the last item is treated this way
[22:45:50] drbrain: but that's how I think of it
[22:46:35] based_pdev: i see. i'm going through ruby-koans and thought i'd lost my mind
[22:46:49] drbrain: yeah, it's kinda weird
[22:48:11] baweaver: has joined #ruby
[22:51:40] mondayrain: has joined #ruby
[22:52:49] haylon: has joined #ruby
[22:53:42] haylon: Hey everyone! Using the Thor gem, how do I preserve my newlines in the long_desc? All the lines keep mashing up on each other and becoming one line.
[22:54:10] diegobiavati: has joined #ruby
[22:54:23] idefine: hi, I'm using squeel to dynamically construct a query. I'd like to OR multiple query.where{} together is this possible? it currently appends the clauses as ANDs
[22:55:09] Shoutsid: has joined #ruby
[22:55:15] ochkoffein: idefine: it's at least possible with the Sequel.expr from the doc
[22:55:19] wldcordeiro: has joined #ruby
[22:55:31] ochkoffein: idefine: but isn't it possible by just doing a X.where(...).or(...) ?
[22:58:58] idefine: ochkoffein: do you know if I constructed a query in Arel would it map to the ActiveRecord models?
[22:59:07] Shoutsid: has joined #ruby
[23:00:41] ochkoffein: idefine: nope, no idea
[23:02:07] yfeldblum: has joined #ruby
[23:03:37] Kara: has joined #ruby
[23:05:19] CloCkWeRX: has joined #ruby
[23:05:34] avahey: has joined #ruby
[23:05:59] iamjarvo_: has joined #ruby
[23:06:40] finisherr: has joined #ruby
[23:06:50] failshell: has joined #ruby
[23:06:59] karam: has joined #ruby
[23:08:57] tvw: has joined #ruby
[23:10:11] Shoutsid: has joined #ruby
[23:11:37] awrfas2: has joined #ruby
[23:11:55] imajes: has joined #ruby
[23:17:38] quazimodo: has joined #ruby
[23:22:06] Coldblackice: has joined #ruby
[23:22:19] Kara: has joined #ruby
[23:22:50] karam: has joined #ruby
[23:25:08] helpa-bot: has joined #ruby
[23:25:38] nertzy3: has joined #ruby
[23:25:41] `tim`: has joined #ruby
[23:26:10] segfalt_: has joined #ruby
[23:26:10] tomchapin: has joined #ruby
[23:26:52] haylon: Hey everyone! Using the Thor gem, how do I preserve my newlines in the long_desc? All the lines keep mashing up on each other and becoming one line.
[23:27:09] helpa-bot: has joined #ruby
[23:27:10] holsee__: has joined #ruby
[23:27:12] ged_: has joined #ruby
[23:27:22] MiracleBlue_: has joined #ruby
[23:27:31] inteq: has joined #ruby
[23:27:32] skcin7_: has joined #ruby
[23:27:43] deavidsedice: has joined #ruby
[23:27:54] err_ok_: has joined #ruby
[23:28:06] Azure|dc: has joined #ruby
[23:28:12] JJM: has joined #ruby
[23:28:15] _seanc_1: has joined #ruby
[23:28:28] decaff: has joined #ruby
[23:28:32] mroth_: has joined #ruby
[23:29:10] helpa-bot: has joined #ruby
[23:29:13] benlakey_: has joined #ruby
[23:29:17] crdpink: has joined #ruby
[23:29:24] BraddPitt: haylon can you post code? Are you using \n?
[23:29:33] mblagden_: has joined #ruby
[23:29:45] shaman42_: has joined #ruby
[23:29:52] max_Q_: has joined #ruby
[23:29:58] kramsee_: has joined #ruby
[23:29:58] tokik_: has joined #ruby
[23:30:01] tiredcat_: has joined #ruby
[23:30:03] bnagy_: has joined #ruby
[23:30:06] verdoc_: has joined #ruby
[23:30:10] eam_: has joined #ruby
[23:30:13] haylon: BraddPitt its in Unix return characters, I imagine \n. i'm not explicitly specifying it
[23:30:14] rickmasta: has joined #ruby
[23:30:19] Derasi: has joined #ruby
[23:30:19] cardoni_: has joined #ruby
[23:30:22] LiquidIn1ect: has joined #ruby
[23:30:25] chihhsin: has joined #ruby
[23:30:26] [BNC]BLuEGoD: has joined #ruby
[23:30:39] b3nt_pin: has joined #ruby
[23:30:45] swgillespie: has joined #ruby
[23:30:47] haylon: BraddPitt: https://github.com/predatorian3/port_scanner
[23:30:50] funnel_: has joined #ruby
[23:30:55] Cyther_: has joined #ruby
[23:31:10] helpa: has joined #ruby
[23:31:20] fullofcaffeine: has joined #ruby
[23:31:49] rushed: has joined #ruby
[23:31:50] tomchapin: has joined #ruby
[23:32:00] RazorX: has joined #ruby
[23:32:11] towski__: has joined #ruby
[23:32:11] duoi: has joined #ruby
[23:32:26] blackjid: has joined #ruby
[23:33:26] Shoutsid: has joined #ruby
[23:33:28] SenpaiSilver_: has joined #ruby
[23:34:07] GriffinHeart: has joined #ruby
[23:34:57] havenwood: has joined #ruby
[23:35:21] alol: has joined #ruby
[23:35:24] p7r: has joined #ruby
[23:35:31] tokik: has joined #ruby
[23:35:32] ajaiswal: has joined #ruby
[23:35:36] Hamled: has joined #ruby
[23:35:50] jaredrhine: has joined #ruby
[23:35:54] quazimodo: has joined #ruby
[23:35:54] rickmasta: has joined #ruby
[23:35:55] pygospa: has joined #ruby
[23:36:01] bradland: has joined #ruby
[23:36:04] Eising: has joined #ruby
[23:36:07] stacybird: has joined #ruby
[23:36:16] peterhu: has joined #ruby
[23:36:19] eam: has joined #ruby
[23:36:27] DrCode: has joined #ruby
[23:38:07] clebrun: has joined #ruby
[23:39:22] ausec: has joined #ruby
[23:39:46] C0deMaver1ck: has joined #ruby
[23:39:47] nug: has joined #ruby
[23:39:48] shawnacscott: has joined #ruby
[23:39:56] Liothen: has joined #ruby
[23:39:56] Liothen: has joined #ruby
[23:39:56] verto: has joined #ruby
[23:39:58] woodruffw: has joined #ruby
[23:40:02] shtirlic: has joined #ruby
[23:40:08] Dfoolz: has joined #ruby
[23:40:35] perry: has joined #ruby
[23:40:36] perry: has joined #ruby
[23:41:15] oetjenj: has joined #ruby
[23:41:15] bmn: has joined #ruby
[23:42:04] jzigmund: has joined #ruby
[23:42:19] benaiah: has joined #ruby
[23:42:22] connor_goodwolf: has joined #ruby
[23:42:50] symm-: has joined #ruby
[23:43:20] Porfa_: has joined #ruby
[23:43:44] baweaver: has joined #ruby
[23:43:47] freerobby: has joined #ruby
[23:45:51] helpa-bot: has joined #ruby
[23:47:50] Shoutsid: has joined #ruby
[23:49:15] helpa-bot: has joined #ruby
[23:49:54] fullofcaffeine: has joined #ruby
[23:51:27] bryanray: has joined #ruby
[23:57:31] kriskropd_: has joined #ruby
[23:59:20] helpa: has joined #ruby