« Back to channel list

#ruby - 30 December 2015

« Back 1 day Forward 1 day »
[00:02:19] kalopsian: has joined #ruby
[00:09:49] symm-: has joined #ruby
[00:10:33] duckpuppy: has joined #ruby
[00:10:37] houhoulis: has joined #ruby
[00:12:46] apeiros: zacts: I'm not aware of other ruby->js transpilers
[00:15:15] mistermocha: has joined #ruby
[00:15:20] kies^: has joined #ruby
[00:17:09] pawnbox: has joined #ruby
[00:17:59] kfpratt: has joined #ruby
[00:18:19] rkazak_: has joined #ruby
[00:22:58] dopie: has joined #ruby
[00:24:15] neanderslob_: has joined #ruby
[00:26:10] devoldmx: has joined #ruby
[00:26:58] seitensei: has joined #ruby
[00:30:28] aaeron: has joined #ruby
[00:31:23] djbkd: has joined #ruby
[00:33:34] senayar: has joined #ruby
[00:34:21] PaulCapestany: has joined #ruby
[00:35:32] mistermocha: has joined #ruby
[00:35:37] atomical: has joined #ruby
[00:37:10] cpup: has joined #ruby
[00:39:57] atomical_: has joined #ruby
[00:41:28] cdg: has joined #ruby
[00:42:51] zacts: on the bus with 20min battery
[00:42:57] zacts: oops wrong channel
[00:43:18] atomical_: has joined #ruby
[00:43:48] adaedra: has joined #ruby
[00:44:44] last_staff: has joined #ruby
[00:46:37] shanemcd: has joined #ruby
[00:47:45] prereflect: has joined #ruby
[00:51:05] idefine: has joined #ruby
[00:51:35] underplank: has joined #ruby
[00:52:14] DLSteve: has joined #ruby
[00:54:11] dopie: has joined #ruby
[00:55:46] dstarh: has joined #ruby
[00:59:04] banister: has joined #ruby
[01:04:30] prereflect: has joined #ruby
[01:06:20] rkazak: has joined #ruby
[01:12:05] ohaibbq: has joined #ruby
[01:14:10] paradisaeidae: has joined #ruby
[01:14:35] gizmore: has joined #ruby
[01:15:39] harai: has joined #ruby
[01:17:06] prereflect: has joined #ruby
[01:17:21] dorei: anyone here that uses the citrus gem?
[01:18:47] Luna_Moonfang: has joined #ruby
[01:19:03] Guest27793: has joined #ruby
[01:21:04] LW_Luna: has joined #ruby
[01:21:10] shakes: has joined #ruby
[01:22:54] charliesome: has joined #ruby
[01:24:21] LW_LunAFK: has joined #ruby
[01:24:41] LW_LunAFK: has joined #ruby
[01:26:03] bradleyprice: has joined #ruby
[01:29:38] ruboto: Don't ask "does anyone use <thing>?". It's better to just state your problem and if anyone has used <thing> they will most likely answer.
[01:30:41] grill: has joined #ruby
[01:31:06] infiton: has joined #ruby
[01:31:35] sankaber: has joined #ruby
[01:32:33] darkxploit: has joined #ruby
[01:34:19] infiton: has left #ruby: ("WeeChat 1.3")
[01:35:06] celly: has joined #ruby
[01:35:19] infiton: has joined #ruby
[01:36:13] pabs: has joined #ruby
[01:38:48] Luna_Moonfang: has joined #ruby
[01:38:51] rgtk: has joined #ruby
[01:39:04] Guest7949: has joined #ruby
[01:41:18] paradisaeidae: has joined #ruby
[01:43:23] RobertBirnie: has joined #ruby
[01:48:02] rgrmatt: has joined #ruby
[01:48:15] lessless: has joined #ruby
[01:49:42] hinbody: has joined #ruby
[01:51:25] infiton: has joined #ruby
[01:51:52] prereflect: has joined #ruby
[01:54:19] sorbo_: has joined #ruby
[01:54:38] RobertBirnie: has joined #ruby
[01:54:41] shanemcd: has joined #ruby
[01:57:31] luckyme: has joined #ruby
[01:58:27] Luna_Moonfang: has joined #ruby
[01:58:44] atumzin: has joined #ruby
[01:59:06] rgrmatt: has joined #ruby
[02:00:23] neanderslob: has joined #ruby
[02:01:34] akem: has joined #ruby
[02:02:30] sorbo_: has left #ruby: ()
[02:03:10] infiton: has joined #ruby
[02:05:05] charliesome: has joined #ruby
[02:06:43] mistermocha: has joined #ruby
[02:09:22] cdg: has joined #ruby
[02:11:17] duckpuppy: has joined #ruby
[02:12:02] ohaibbq: has joined #ruby
[02:13:22] RegulationD: has joined #ruby
[02:13:52] JusticeFries: has joined #ruby
[02:15:11] pabs: has joined #ruby
[02:20:33] charliesome: has joined #ruby
[02:21:05] dopie: has joined #ruby
[02:21:49] hinbody: has joined #ruby
[02:23:28] DrShoggoth: has joined #ruby
[02:24:48] sneakerhax: has joined #ruby
[02:26:56] devoldmx: has joined #ruby
[02:30:38] dopie: has joined #ruby
[02:33:23] charliesome: has joined #ruby
[02:34:58] pabs: has joined #ruby
[02:38:28] govg: has joined #ruby
[02:46:16] pontiki: has joined #ruby
[02:47:50] pawnbox: has joined #ruby
[02:48:59] aaeron: has joined #ruby
[02:50:01] blt: has joined #ruby
[02:51:44] aaeron_: has joined #ruby
[02:52:51] dmcp: has joined #ruby
[02:53:48] atumzin: has joined #ruby
[03:08:23] Ox0dea: has joined #ruby
[03:11:53] arescorpio: has joined #ruby
[03:14:47] Bidun: has joined #ruby
[03:15:55] freerobby: has joined #ruby
[03:17:35] Bidun: has left #ruby: ()
[03:17:52] BTRE: has joined #ruby
[03:19:56] yeticry: has joined #ruby
[03:22:02] Puffball: has joined #ruby
[03:23:13] celly: has joined #ruby
[03:25:34] bb010g: has joined #ruby
[03:27:43] Rodya_: has joined #ruby
[03:28:05] freerobby: has joined #ruby
[03:28:53] yes`r: has joined #ruby
[03:37:51] pawnbox: has joined #ruby
[03:39:19] BTRE: has left #ruby: ("Leaving")
[03:40:39] duncannz: has joined #ruby
[03:44:48] grill: has joined #ruby
[03:47:40] highsen: has joined #ruby
[03:59:11] finisherr: has joined #ruby
[04:00:03] RegulationD: has joined #ruby
[04:01:07] joneshf-laptop: has joined #ruby
[04:05:33] shanemcd: has joined #ruby
[04:05:42] startupality: has joined #ruby
[04:11:52] pawnbox: has joined #ruby
[04:12:03] duckpuppy: has joined #ruby
[04:12:29] aaeron: has joined #ruby
[04:17:16] braincrash: has joined #ruby
[04:19:16] dingman: has joined #ruby
[04:20:32] mistermocha: has joined #ruby
[04:27:02] webus: has joined #ruby
[04:27:42] devoldmx: has joined #ruby
[04:32:34] duckpuppy: has joined #ruby
[04:39:37] seitensei: has joined #ruby
[04:42:05] sorbo_: has joined #ruby
[04:45:49] Rodya_: has joined #ruby
[04:49:45] Rodya_: has joined #ruby
[04:51:58] robh71: has joined #ruby
[04:52:26] robh71: has joined #ruby
[04:52:50] Mia: has joined #ruby
[04:52:50] Mia: has joined #ruby
[04:56:02] cdg: has joined #ruby
[04:56:33] arup_r: has joined #ruby
[04:56:59] cdg: has joined #ruby
[04:58:18] braincra-: has joined #ruby
[05:00:41] trwyth: has joined #ruby
[05:01:21] colegatron: has joined #ruby
[05:05:11] krz: has joined #ruby
[05:05:18] ss_much: has joined #ruby
[05:06:20] startupality: has joined #ruby
[05:09:33] trwyth: has joined #ruby
[05:11:27] celly: has joined #ruby
[05:11:40] harai: has joined #ruby
[05:16:10] cdg: has joined #ruby
[05:16:45] vdamewood: has joined #ruby
[05:16:51] tubuliferous_: has joined #ruby
[05:19:49] atumzin: has joined #ruby
[05:19:49] atumzin: has joined #ruby
[05:20:22] adgtl: has joined #ruby
[05:20:57] pdoherty: has joined #ruby
[05:21:05] startupality: has joined #ruby
[05:21:57] DavidDudson: has joined #ruby
[05:25:06] startupality: has joined #ruby
[05:28:20] atumzin: has joined #ruby
[05:29:51] andywojo: has joined #ruby
[05:32:29] sigurding: has joined #ruby
[05:33:14] varunwachaspati: has joined #ruby
[05:33:16] grill: has joined #ruby
[05:35:18] DavidDudson: has joined #ruby
[05:36:30] slackR: .seen jhass
[05:36:52] jhass: slackR: 1 second
[05:36:52] scampbell: has joined #ruby
[05:38:50] atumzin: has joined #ruby
[05:41:08] slackR: jhass: would it be a bad idea to solve a problem implementing a while loop?. It won't loop forever
[05:41:32] jhass: slackR: first answer yes. Second answer no.
[05:41:34] skcin7: has joined #ruby
[05:43:06] slackR: I'll take that as a yes. In the sense not a bad idea.
[05:48:53] mesamoo: has joined #ruby
[05:49:40] skcin7: has joined #ruby
[05:51:19] hagabaka: has joined #ruby
[05:51:45] slackR: jhass, https://paste.teknik.io/2645. Check the code now. I did touch it for 10 days or so, I couldn't figure out a way to re-write random_word function/method, I'm finally thinking about using a while loop there.
[05:51:58] arooni-mobile: has joined #ruby
[05:52:08] slackR: I hope I fixed all the syntax issues
[05:52:44] darkf: has joined #ruby
[05:58:37] yfeldblum: has joined #ruby
[05:59:21] tubuliferous_: has joined #ruby
[06:00:51] RegulationD: has joined #ruby
[06:02:03] arup_r: has joined #ruby
[06:04:05] terminalrecluse: has joined #ruby
[06:06:05] kies^: has joined #ruby
[06:07:37] tildes: has joined #ruby
[06:08:40] jhass: slackR: it truly is 50/50
[06:08:49] devbug: has joined #ruby
[06:08:50] jhass: depends entirely on the problem
[06:09:05] bradleyprice: has joined #ruby
[06:14:09] pawnbox: has joined #ruby
[06:15:15] hagabaka: has joined #ruby
[06:16:42] shevy: you are back
[06:17:29] jhass: shevy: are you sure?
[06:19:50] darkf_: has joined #ruby
[06:25:17] rkazak: has joined #ruby
[06:26:04] ton31337: has joined #ruby
[06:26:07] ton31337: what does this mean?
[06:26:10] ton31337: def otherwise(&block)
[06:28:27] devoldmx: has joined #ruby
[06:28:39] Scripore: has joined #ruby
[06:29:52] haxrbyte: has joined #ruby
[06:30:20] shevy: jhass yeah!
[06:30:58] shevy: ton31337 you use a block argument there http://stackoverflow.com/questions/1386276/difference-between-block-and-block-in-ruby
[06:31:52] shevy: this is a good example:
[06:31:55] redeeem: has joined #ruby
[06:32:19] shevy: >> upcase = proc {|i| i.upcase }; p ["foo", "bar", "baz"].map(&upcase)
[06:32:21] ruboto: shevy # => ["FOO", "BAR", "BAZ"] ...check link for more (https://eval.in/495194)
[06:32:26] chouhoul_: has joined #ruby
[06:32:37] shevy: well or not
[06:32:50] shevy: >> p ["foo", "bar", "baz"].map(&:upcase)
[06:32:51] ruboto: shevy # => ["FOO", "BAR", "BAZ"] ...check link for more (https://eval.in/495195)
[06:33:06] shevy: anyway in the first case you can specialize your proc object in more ways
[06:33:40] tmtwd: has joined #ruby
[06:33:55] lubekpl: has joined #ruby
[06:34:05] grill: has joined #ruby
[06:34:13] devoldmx: has joined #ruby
[06:34:44] devoldmx: has joined #ruby
[06:37:02] bmalum: has joined #ruby
[06:38:33] ur5us: has joined #ruby
[06:40:31] seitensei: has joined #ruby
[06:40:32] seitensei: has joined #ruby
[06:43:38] iateadonut: has joined #ruby
[06:44:11] krz: whats the best way to remove the first character in a string only if the first character is -
[06:48:05] ton31337: has left #ruby: ()
[06:48:53] lxsameer: has joined #ruby
[06:49:08] arup_r: >> puts [ "-abc".sub(/^-/,''), "a--bc".sub(/^-/,'') ]
[06:49:09] ruboto: arup_r # => abc ...check link for more (https://eval.in/495196)
[06:49:21] arup_r: >> p [ "-abc".sub(/^-/,''), "a--bc".sub(/^-/,'') ]
[06:49:22] ruboto: arup_r # => ["abc", "a--bc"] ...check link for more (https://eval.in/495197)
[06:49:42] shevy: krz: x = '-abc'; x[0,1] = '' if x.start_with? '-'
[06:54:09] shevy: if it would be the last character it would be even easier, one could use .chop!
[06:54:21] trwyth: has joined #ruby
[06:56:36] claw: has joined #ruby
[06:59:32] celly: has joined #ruby
[06:59:34] pawnbox: has joined #ruby
[07:00:51] grill: has joined #ruby
[07:01:59] arup_r: lost my all energy somehow.... not able to concentrate in work... :(
[07:04:06] govg: has joined #ruby
[07:04:32] adgtl: has joined #ruby
[07:05:25] adgtl: has joined #ruby
[07:07:55] haxrbyte: has joined #ruby
[07:09:00] DavidDudson: has joined #ruby
[07:09:39] solars: has joined #ruby
[07:10:37] rippa: has joined #ruby
[07:11:55] highsen: has joined #ruby
[07:14:56] juddey: has joined #ruby
[07:15:38] scepticulous: has joined #ruby
[07:20:30] Averna: has joined #ruby
[07:21:23] codecop: has joined #ruby
[07:23:27] roshanavand: has joined #ruby
[07:23:45] sp1rs: has joined #ruby
[07:29:08] defendguin: has joined #ruby
[07:29:37] defendguin: i just installed ruby via brew do I need to add it to my bash profile?
[07:31:27] duncannz: has joined #ruby
[07:31:42] andywojo: has joined #ruby
[07:33:13] kalopsian: has joined #ruby
[07:33:48] havenwood: defendguin: Brew links automatically. Check: ruby -v
[07:34:10] havenwood: defendguin: You can `brew unlink ruby` and restore it with `brew link ruby`.
[07:34:50] havenwood: defendguin: You might want to prepend the rubygem bin dir to your path in a dotfile: export PATH="$(brew --prefix ruby)/bin:$PATH"
[07:35:17] defendguin: Atomic:bin justin$ ruby -v
[07:35:17] defendguin: ruby 2.0.0p645 should be 2.3 something i think
[07:35:37] highsen: has joined #ruby
[07:35:57] havenwood: defendguin: Check that brew is happy with how your PATH is setup: brew doctor
[07:36:54] skcin7: has joined #ruby
[07:37:11] havenwood: defendguin: You might need to reorder /etc/paths to what brew doctor says.
[07:37:20] defendguin: http://pastie.org/10660033
[07:37:32] TvL2386: has joined #ruby
[07:38:16] havenwood: defendguin: You have brew installed in a strange place...
[07:38:20] havenwood: defendguin: Warning: /usr/bin occurs before /usr/local/homebrew/bin
[07:39:03] DavidDudson: has joined #ruby
[07:39:34] pawnbox: has joined #ruby
[07:41:13] defendguin: ahh much better
[07:42:31] defendguin: ok that fixed that
[07:42:48] defendguin: my pg gem wont install
[07:43:46] damaged_fxxk: has joined #ruby
[07:44:38] rkazak: has joined #ruby
[07:44:46] adgtl: has joined #ruby
[07:45:29] PedramT: has joined #ruby
[07:45:42] havenwood: defendguin: Did you install PosgreSQL?
[07:45:59] havenwood: defendguin: Error?
[07:45:59] defendguin: not via brew but i did
[07:46:08] startupality: has joined #ruby
[07:46:12] havenwood: defendguin: Ah
[07:46:13] sp1rs: has joined #ruby
[07:47:21] damaged_fxxk: I have come from Perl background... But I wanna give ruby a try... I am actually interested in network programmin'.. Could ya guys suggest me some good books?!
[07:47:30] dfdfdf: has joined #ruby
[07:48:59] PedramT: has joined #ruby
[07:49:36] steffkes: has joined #ruby
[07:49:37] steffkes: has joined #ruby
[07:49:39] havenwood: damaged_fxxk: http://www.jstorimer.com/products/working-with-tcp-sockets
[07:50:12] havenwood: damaged_fxxk: That's the first that comes to mind. It's quite accessible but doesn't go into crazy detail.
[07:51:37] domgetter: has joined #ruby
[07:52:44] damaged_fxxk: gracis @havenwood...I know the internal of socket programmin'... I wanna write some clean code .. I do socket programmin' in Perl usin some libraries
[07:52:52] jondot: has joined #ruby
[07:53:27] defendguin: havenwood: http://pastie.org/10660043
[07:53:44] ur5us: has joined #ruby
[07:54:03] havenwood: defendguin: Can't find the 'libpq-fe.h header
[07:54:32] havenwood: defendguin: I'd probably install postgres with brew. You could alternatively point it at where it pg really is.
[07:54:42] atumzin: has joined #ruby
[07:55:25] havenwood: damaged_fxxk: Well here's a good place for questions. I can't think of a general Ruby network programming book at the moment.
[07:56:13] havenwood: damaged_fxxk: Hrm, looking at what i have. I guess the dRuby book is related but probably not what you're looking for either.
[07:56:40] sp1rs: has joined #ruby
[07:56:51] damaged_fxxk: havenwood: Thats okay... I will try some ruby network libraries...
[07:57:51] havenwood: damaged_fxxk: I can point you towards some nice libraries at least. There are quite a variety of HTTP clients but this is a great one: https://github.com/httprb/http#readme
[07:57:51] framling: has joined #ruby
[07:58:00] defendguin: havenwood: /Library/PostgreSQL/9.4 i don't know if i have that header file though
[07:58:43] damaged_fxxk: havenwood: damn....... My english is extremly terrific! apologies
[07:59:05] havenwood: damaged_fxxk: Random writeup: http://tx.pignata.com/2012/11/multicast-in-ruby-building-a-peer-to-peer-chat-system.html
[07:59:57] deuterium: has joined #ruby
[08:00:05] havenwood: damaged_fxxk: Great HTTP/2 implementation: https://github.com/igrigorik/http-2#readme
[08:00:17] SCHAAP137: has joined #ruby
[08:00:46] havenwood: damaged_fxxk: If you're looking for something in particular just ask!
[08:00:50] startupality: has joined #ruby
[08:00:52] damaged_fxxk: havenwood: thank you again man...
[08:00:53] defendguin: ERROR: While executing gem ... (OptionParser::InvalidOption)
[08:00:53] defendguin: invalid option: --with-pg-config=/Library/PostgreSQL/9.4/bin
[08:00:57] havenwood: damaged_fxxk: any time
[08:01:38] RegulationD: has joined #ruby
[08:01:56] defendguin: i guess I could add PG bin to my path
[08:02:44] grill: has joined #ruby
[08:04:04] atumzin: has joined #ruby
[08:04:22] defendguin: yup that fixed it
[08:04:29] damaged_fxxk: has left #ruby: ("WeeChat 1.3")
[08:05:18] hostess: has joined #ruby
[08:06:25] stannard: has joined #ruby
[08:06:36] coderhut: has joined #ruby
[08:08:04] djbkd_: has joined #ruby
[08:08:54] dfdfdf: why arch chruby has differnet path than in official documentation
[08:08:56] redreem: has joined #ruby
[08:09:19] redreem_: has joined #ruby
[08:09:35] dfdfdf: arc use path without 'local'
[08:09:38] constantinexvi: has joined #ruby
[08:09:44] dionysus69: has joined #ruby
[08:15:11] coderhut: has joined #ruby
[08:16:56] shevy: dfdfdf file to issue request for documentation clarification? https://github.com/postmodern/chruby/issues
[08:17:24] diegoviola: has joined #ruby
[08:17:28] rgtk: has joined #ruby
[08:17:33] havenwood: dfdfdf: So you're expecting it in /usr/share/chruby then? Double check that's not where it is? The standard location is /usr/local/share/chruby but it's up to the AUR package.
[08:18:15] tagrudev: has joined #ruby
[08:20:23] havenwood: dfdfdf: Totally an aside, but nice writeup on chruby with arch: https://gist.github.com/jhass/8839655bb038e829fba1
[08:22:12] karapetyan: has joined #ruby
[08:23:54] blub`: has joined #ruby
[08:24:37] CloCkWeRX: has joined #ruby
[08:24:42] DavidDudson: has joined #ruby
[08:26:18] DavidDudson: has joined #ruby
[08:26:57] BSaboia: has joined #ruby
[08:30:20] c0m0: has joined #ruby
[08:31:59] juodumas: has joined #ruby
[08:32:28] DarkBushido: has joined #ruby
[08:33:27] warrenich: has joined #ruby
[08:33:35] warrenich: ACTION waves
[08:33:45] moeabdol1: has joined #ruby
[08:33:47] juodumas: Hi. Is there a way to always retrieve mail header as an array with ruby-mail (currenty it either returns a string or an array)?
[08:34:14] warrenich: looking for a nice website CMS. any suggestions?
[08:36:41] DavidDudson: has joined #ruby
[08:37:25] startupality: has joined #ruby
[08:37:38] constantinexvi: has joined #ruby
[08:37:47] hostess: has joined #ruby
[08:38:08] howdoi: has joined #ruby
[08:40:57] vdamewood: has joined #ruby
[08:41:25] seitensei: has joined #ruby
[08:41:25] seitensei: has joined #ruby
[08:41:40] GGMethos: has joined #ruby
[08:41:55] topolinux: has joined #ruby
[08:47:27] RTG`: has joined #ruby
[08:47:44] celly: has joined #ruby
[08:48:07] dn`: has joined #ruby
[08:48:33] bkxd: has joined #ruby
[08:50:13] roshanavand: has joined #ruby
[08:53:51] iateadonut: has left #ruby: ()
[08:54:06] pawnbox: has joined #ruby
[08:54:12] startupality: has joined #ruby
[08:55:13] djbkd_: has joined #ruby
[09:01:50] adgtl: has joined #ruby
[09:02:03] hostess: has joined #ruby
[09:02:22] adgtl: has joined #ruby
[09:03:09] kmckelvin: has joined #ruby
[09:03:34] startupality: has joined #ruby
[09:04:37] agit0: has joined #ruby
[09:04:40] PedramT: has joined #ruby
[09:05:12] rgtk: has joined #ruby
[09:06:09] PedramT: has joined #ruby
[09:07:10] adgtl_: has joined #ruby
[09:08:07] DavidDudson: has joined #ruby
[09:09:02] DavidDudson: has joined #ruby
[09:09:37] PedramT: has joined #ruby
[09:10:24] TheBrayn: has joined #ruby
[09:12:13] PedramT: has joined #ruby
[09:12:42] marr: has joined #ruby
[09:13:50] epitron: havenwood: hmmm.. That arch setup sounds irritating, since you have to pay attention when Ruby is updated and redo the symlink
[09:14:09] epitron: It's probably better to just use Ruby install
[09:15:00] epitron: Can chruby use "~/.rubies/system" as a valid version?
[09:15:22] epitron: Or I guess I could find it in usr/bin
[09:15:22] zenspider_: has joined #ruby
[09:15:32] firstdayonthejob: has joined #ruby
[09:16:12] tercenya_: has joined #ruby
[09:17:28] blackmesa: has joined #ruby
[09:17:36] Olipro: has joined #ruby
[09:18:29] mark1: has joined #ruby
[09:19:00] contradictioned: has joined #ruby
[09:19:34] hostess: has joined #ruby
[09:19:43] Hobbyboy|BNC: has joined #ruby
[09:20:01] Kiwi_sherbet: has joined #ruby
[09:20:44] haasn: has joined #ruby
[09:21:18] kalopsian: has joined #ruby
[09:22:32] defendguin1: has joined #ruby
[09:23:53] roshanavand: has joined #ruby
[09:23:58] toretore: has joined #ruby
[09:24:58] Hounddog: has joined #ruby
[09:25:00] DavidDudson: has joined #ruby
[09:25:05] TheHodge: has joined #ruby
[09:25:26] bradleyprice: has joined #ruby
[09:27:20] blaxter: has joined #ruby
[09:28:14] bkxd: has joined #ruby
[09:32:28] andywojo: has joined #ruby
[09:32:56] hostess: has joined #ruby
[09:38:33] PedramT: has joined #ruby
[09:38:51] roshanav_: has joined #ruby
[09:40:48] PedramT: has joined #ruby
[09:40:56] al2o3-cr: has joined #ruby
[09:43:31] PedramT: has joined #ruby
[09:45:03] hostess: has joined #ruby
[09:45:16] jackcom: has joined #ruby
[09:46:22] jackcom: when i use selenium, firefox start page has blue background so i can???t go into website.
[09:47:02] nfk|laptop: has joined #ruby
[09:47:03] sp1rs: has joined #ruby
[09:48:31] Kiwi_sherbet: has joined #ruby
[09:48:42] Kiwi_sherbet: has left #ruby: ()
[09:48:50] Kiwi_sherbet: has joined #ruby
[09:50:52] grill: has joined #ruby
[09:51:08] ByronJoh1son: has joined #ruby
[09:55:12] aef: has joined #ruby
[10:00:23] smactive: has joined #ruby
[10:00:39] sandstrom: has joined #ruby
[10:01:23] junw: has joined #ruby
[10:02:28] arup_r: has joined #ruby
[10:02:57] blackmesa: has joined #ruby
[10:05:19] Ishido: has joined #ruby
[10:05:26] Mon_Ouie: has joined #ruby
[10:06:16] karapetyan: has joined #ruby
[10:06:18] sp1rs: has joined #ruby
[10:06:49] GGMethos: has joined #ruby
[10:08:41] karapetyan: has joined #ruby
[10:09:12] DavidDudson: has joined #ruby
[10:09:33] blackmesa: has joined #ruby
[10:11:05] DavidDudson: has joined #ruby
[10:13:02] tesuji: has joined #ruby
[10:14:43] juodumas: has left #ruby: ()
[10:15:35] blackmesa: has joined #ruby
[10:15:50] rodfersou: has joined #ruby
[10:18:52] Jackneill: has joined #ruby
[10:19:22] bkxd: has joined #ruby
[10:19:45] adgtl: has joined #ruby
[10:24:21] blackmesa: has joined #ruby
[10:27:01] ur5us: has joined #ruby
[10:32:26] PedramT: has joined #ruby
[10:35:53] celly: has joined #ruby
[10:36:00] bkxd: has joined #ruby
[10:36:31] sandstrom: has joined #ruby
[10:37:37] Pupeno: has joined #ruby
[10:37:37] Pupeno: has joined #ruby
[10:39:18] domgetter: has joined #ruby
[10:40:14] urine_boy: has joined #ruby
[10:40:17] urine_boy: ALL NIGGERS SHOULD BE EXTERMINATED
[10:40:22] urine_boy: death to niggers
[10:40:23] karapetyan: has joined #ruby
[10:40:27] urine_boy: ALL NIGGERS SHOULD BE EXTERMINATED because they are black
[10:40:27] ruboto: +q urine_boy!*@*
[10:40:27] ruboto: -o ruboto
[10:41:00] jschmid: has joined #ruby
[10:42:07] DavidDudson: has joined #ruby
[10:42:19] seitensei: has joined #ruby
[10:43:24] roshanavand: has joined #ruby
[10:43:58] govg: has joined #ruby
[10:44:51] Averna: has joined #ruby
[10:45:00] DavidDudson: has joined #ruby
[10:46:17] urine_boy: has left #ruby: ()
[10:49:35] yorickpeterse: it's like people aren't even trying any more these days
[10:50:00] karapetyan: has joined #ruby
[10:51:19] karapetyan: has joined #ruby
[10:51:36] grill: has joined #ruby
[10:53:12] dlitvak: has joined #ruby
[10:54:02] DefV: Good thing he actually added his reasoning
[10:54:07] DefV: as not to make us wonder
[10:55:21] blackmesa: has joined #ruby
[10:56:25] duckpuppy: has joined #ruby
[10:57:24] toretore: has joined #ruby
[10:57:34] shevy: yorickpeterse lol
[10:59:09] nfk|laptop: has joined #ruby
[10:59:27] pawnbox: has joined #ruby
[11:01:42] colegatron: has joined #ruby
[11:01:58] sameerynho: has joined #ruby
[11:02:23] yorickpeterse: "How do I troll an IRC channel? I KNOW IT, I'LL CALL PEOPLE "NIGGERS"! GENIUS"
[11:02:50] yorickpeterse: "also lol "urine_boy" is such a funny handle hahaha I'm totally going to troll them"
[11:04:54] pontiki: this seems typical of the genre
[11:05:34] apeiros: yorickpeterse: it's not even people. it's a single idiot.
[11:05:41] pontiki: "I need attention because I'm bored and don't know how else to make my way."
[11:06:00] lxsameer__: has joined #ruby
[11:06:08] DefV: you wonder. Did he come online "Damn, pissboy is already taken. pissman as well. Let's go for urine_boy then."
[11:06:38] pontiki: are you going to make me look if those are taken or have you already done that? :)
[11:06:47] Begi: has joined #ruby
[11:08:32] DefV: 12:08 [Freenode] -!- There is no such nick pissboy
[11:09:34] kalopsian: has joined #ruby
[11:10:22] Begi2: has joined #ruby
[11:16:25] tvw: has joined #ruby
[11:16:45] dionysus69: hello guys, can anyone guide me through how to cheat on youtube? is there a way to send a ruby request to some video that refreshes automatically every 5 minutes? I understand it won't load it in the browser but how can I simulate viewing a youtube video without actually opening it up in browser? or do I have to hack a browser for that?
[11:17:28] Zarthus: dionysus69: that sounds rather unethical, what are you trying to do?
[11:17:54] dionysus69: no evil done really just trying to win in a not very important contest
[11:18:03] Zarthus: that sounds evil to me :)
[11:18:09] Zarthus: win legitimately, or not at all
[11:18:33] dionysus69: come on I am 100% sure at least thousand participants will cheat, there will be no fair winner
[11:18:40] Zarthus: that said, you actually cannot. Views on youtube are unique and require watching of a large percentage of the video (that youtube does not disclose)
[11:18:57] shevy: he can not?
[11:19:41] dionysus69: what if I simulate "watching video" without actually looking at it? thats why I asked, if I hack browser so it runs as a service? maybe in that case I can?
[11:20:13] Zarthus: just don't participate in the contest, if everyone is cheating ;)
[11:20:14] dionysus69: then I can implement some IP spoofing so not every view is from the same address, makes sense?
[11:20:19] shevy: if you can find out how to automate it
[11:20:35] Zarthus: YouTube has a robust system for detecting unique views
[11:20:50] shevy: are you advertising or something?
[11:21:03] dionysus69: nope some contest, whoever has highest views, wins
[11:21:15] dionysus69: but ye the video is advertising some company
[11:21:20] shevy: no not you
[11:22:14] shevy: there isn't that much in ruby to help you ... there is mechanize for websites but these are mostly just click-on-button... then we have xdotool ... which is somewhat annoying....
[11:22:38] skade: has joined #ruby
[11:24:19] skcin7: has joined #ruby
[11:24:39] roshanavand: has joined #ruby
[11:24:53] dionysus69: what is xdotool?
[11:25:08] aryaching: has joined #ruby
[11:25:14] shevy: http://www.semicomplete.com/projects/xdotool/
[11:26:50] ljarvis: youtube probably has the best anti-gaming system on the planet..
[11:26:51] pontiki: hmm, sounds like you're trying to perpetrate click fraud
[11:27:26] skcin7: has joined #ruby
[11:27:54] centrx: has joined #ruby
[11:28:09] yorickpeterse: maybe just get people to genuinely watch your video
[11:28:17] pontiki: "buncha other people will do it" doesn't motivate anyone to help you figure out how to do the same
[11:28:26] Thomas-0725: has joined #ruby
[11:29:09] lxsameer: has joined #ruby
[11:29:23] dionysus69: yorickpeterse: will try that too but just an insurance
[11:29:46] ljarvis: this isn't on topic any more, so please take it to #ruby-offtopic, dionysus69
[11:29:48] dionysus69: ye but what if we come up with some new technique that no one has tried
[11:30:19] Zarthus: dionysus69: then you can submit it to the bug bounty and actually earn money
[11:30:21] dionysus69: haha ok thanks for input anyways :)
[11:30:45] dionysus69: Zarthus: after exploiting it a lil :D :D
[11:32:14] jondot: has joined #ruby
[11:32:51] blackgoat: has joined #ruby
[11:33:41] andywojo: has joined #ruby
[11:34:08] dfdfdf: has joined #ruby
[11:35:01] webus: has joined #ruby
[11:35:34] yos7ph: has joined #ruby
[11:36:04] Zarthus: does anyone know where I can find the official source of the Regex Engine (Origuruma I think?) ruby uses?
[11:36:14] Zarthus: there's a lot of sources but I have no idea which one is official
[11:38:33] Mon_Ouie: The Ruby uses its modified version of Oniguruma, look at files matching reg*.{c,h} in Ruby's source code
[11:38:59] Mon_Ouie: (plus the enc directory and oniguruma.h)
[11:39:35] ljarvis: all hail onigmo
[11:39:40] karapetyan: has joined #ruby
[11:40:23] FernandoBasso: has joined #ruby
[11:42:37] llfwf33: has joined #ruby
[11:43:44] govg: has joined #ruby
[11:46:10] PedramT: has joined #ruby
[11:46:24] Zarthus: I suppose that's the best place to look, yeah.
[11:46:34] El3k0n: has joined #ruby
[11:48:13] PedramT: has joined #ruby
[11:49:25] PedramT: has joined #ruby
[11:50:59] Axy: has joined #ruby
[11:50:59] Axy: has joined #ruby
[11:52:13] puria: has joined #ruby
[11:52:37] whiteline: has joined #ruby
[11:52:41] PedramT: has joined #ruby
[11:53:19] bob_f: has joined #ruby
[11:54:09] bob_f: Hi, it seems that `&&` does not short circuit, but I find many people discouraging using `and` instead. Is there a conventional way to use `&&` in a short-circuit fashion ?
[11:54:22] bob_f: Surprisingly difficult to find an authorative answer to this.
[11:54:26] govg: has joined #ruby
[11:54:42] apeiros: bob_f: && always short circuits
[11:54:51] apeiros: bob_f: so the question is - what makes you think it wouldn't?
[11:55:02] j416: bob_f: authoritative answer -- try it and see???
[11:55:07] bob_f: apeiros: I must be doing something stupid then.
[11:55:22] bob_f: This line gives me `no implicit conversion of Symbol into Integer`: if action.is_a? Hash && action[:partial]
[11:55:29] bob_f: Am I parenthesising wrong ?
[11:55:37] bob_f: if (action.is_a? Hash) ?
[11:55:46] apeiros: action.is_a?(Hash)
[11:55:48] ljarvis: if action.is_a?(Hash)
[11:55:51] bob_f: Ah. Cheers. :)
[11:56:09] bob_f: Figured I would have noticed by now if && wasn't short-circuiting; thought I was losing my marbles. Thanks guys.
[11:56:33] ljarvis: or Hash === action (I prefer is_a?)
[11:56:41] apeiros: && has precedence, so you get action.is_a?(Hash && action[:part])
[11:56:48] apeiros: ?guys bob_f
[11:56:48] ruboto: bob_f, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
[11:57:15] bob_f: Right, got it. My understanding of `and` vs `&&` was that the only difference was precedence, so was getting really confused.
[11:57:47] apeiros: correct. `and` and `&&` only differ in precedence. which can help leaving parens away in some situations.
[11:58:08] bob_f: And is the tide against using `and` a general consensus ?
[11:58:21] apeiros: I doubt there's general consensus
[11:58:35] apeiros: I tend to not use `and`, but use parens and && instead.
[11:59:01] bob_f: Cool, a lot of stuff online suggests that there's a definitive consensus, I was taking that with a pinch or two of salt.
[11:59:01] apeiros: but I've seen people advocate to use whichever requires less parens.
[11:59:49] ljarvis: actually I would say that is the general consensus, at least the unoffocial style guides say avoid and/or (I also use &&/||)
[12:00:09] apeiros: ljarvis: "that" = "use && + parens"?
[12:00:21] ljarvis: apeiros: aye
[12:01:41] wrilain: has joined #ruby
[12:01:50] bob_f: I'm coming from Python so am reluctantly dropping parens where I can so my code looks as cool as everyone else's.
[12:02:05] bob_f: But clearly getting into a spot of bother with it from time to time. :)
[12:02:14] ljarvis: I'm a huge fan of parens, and if I had a choice I'd make them non-optional in Ruby :)
[12:03:12] RegulationD: has joined #ruby
[12:04:12] Mia: has joined #ruby
[12:04:12] Mia: has joined #ruby
[12:05:39] mostlybadfly: has joined #ruby
[12:07:45] prestorium: has joined #ruby
[12:09:22] ljarvis: my perfect Ruby would have ivar instantiation inside method argument definitions, and first-class functions (with () mapping to #call()) and non-optional parens
[12:09:28] ljarvis: it's not much to ask right :)
[12:10:51] houhoulis: has joined #ruby
[12:11:57] blub: some times when i have a bunch of nested function calls i start formatting it like lisp and then i have to go back and juggle spaces to make it look normal its so annoying of me..
[12:15:17] CloCkWeRX: has left #ruby: ()
[12:16:43] atumzin: has joined #ruby
[12:16:56] atumzin: has joined #ruby
[12:17:49] Thomas-0725: has joined #ruby
[12:18:17] sandstrom: has joined #ruby
[12:19:18] Axy: has joined #ruby
[12:19:18] Axy: has joined #ruby
[12:19:57] roshanavand: has joined #ruby
[12:21:34] atumzin: has joined #ruby
[12:21:35] atumzin: has joined #ruby
[12:22:21] rgtk: has joined #ruby
[12:23:20] ruby-lang185: has joined #ruby
[12:23:31] pawnbox: has joined #ruby
[12:23:59] celly: has joined #ruby
[12:24:26] roshanav_: has joined #ruby
[12:24:57] tubuliferous_: has joined #ruby
[12:25:49] atumzin: has joined #ruby
[12:25:50] atumzin: has joined #ruby
[12:26:50] pacMakaveli: has joined #ruby
[12:27:47] bradleyprice: has joined #ruby
[12:28:47] pawnbox: has joined #ruby
[12:31:14] mdw: has joined #ruby
[12:31:38] Mia: has joined #ruby
[12:31:40] peeja: has joined #ruby
[12:34:02] andywojo: has joined #ruby
[12:34:08] CloCkWeRX: has joined #ruby
[12:34:39] FooMunki: has joined #ruby
[12:36:00] shanemcd: has joined #ruby
[12:36:02] aef: has joined #ruby
[12:37:52] iateadonut: has joined #ruby
[12:39:12] atumzin: has joined #ruby
[12:39:12] atumzin: has joined #ruby
[12:40:15] sdothum: has joined #ruby
[12:40:26] Axy: has joined #ruby
[12:40:26] Axy: has joined #ruby
[12:41:25] charliesome: has joined #ruby
[12:41:31] ruid: has joined #ruby
[12:41:31] ruid: has joined #ruby
[12:41:40] teoric: has joined #ruby
[12:42:12] Axsuul: has joined #ruby
[12:42:22] pawnbox_: has joined #ruby
[12:43:14] seitensei: has joined #ruby
[12:43:34] mdw7: has joined #ruby
[12:44:07] shevy: bob_f yeah; many people drop parens in def, I always use them
[12:46:17] teoric: has joined #ruby
[12:46:43] teoric: has joined #ruby
[12:46:50] jackcom: where i can upload image? imxxxx*odksedksle??? i don???t know
[12:47:20] teoric: has joined #ruby
[12:47:39] Ebok: has joined #ruby
[12:48:57] banister: has joined #ruby
[12:48:58] atumzin: has joined #ruby
[12:51:43] krz: has joined #ruby
[12:53:01] thejamespinto_: has joined #ruby
[12:55:32] leksster: has joined #ruby
[12:56:38] llfwf33: has joined #ruby
[12:57:47] kalopsian: has joined #ruby
[12:58:06] skade: has joined #ruby
[12:58:37] duckpuppy: has joined #ruby
[13:01:11] karapetyan: has joined #ruby
[13:02:10] hahuang65: has joined #ruby
[13:05:03] sdoda: has joined #ruby
[13:06:53] dionysus69: has joined #ruby
[13:10:12] ramfjord: has joined #ruby
[13:15:08] skade: has joined #ruby
[13:16:16] cpup: has joined #ruby
[13:21:49] adaedra: ACTION waves
[13:25:00] ylbeys: has joined #ruby
[13:26:07] adgtl: has joined #ruby
[13:27:13] sgambino: has joined #ruby
[13:27:38] fgo: has joined #ruby
[13:28:25] dlitvak: has joined #ruby
[13:30:53] dstarh: has joined #ruby
[13:31:06] pawnbox: has joined #ruby
[13:33:04] bkxd: has joined #ruby
[13:33:26] atomical: has joined #ruby
[13:38:23] benanne: has joined #ruby
[13:38:26] Scripore: has joined #ruby
[13:39:28] rgtk: has joined #ruby
[13:40:35] ramfjord: has joined #ruby
[13:44:06] DoubleMalt: has joined #ruby
[13:45:46] bmalum: has joined #ruby
[13:48:38] ramortegui: has joined #ruby
[13:50:48] phutchins: has joined #ruby
[13:51:30] nanoz: has joined #ruby
[13:53:42] centrx: has joined #ruby
[13:55:32] aryaching: has joined #ruby
[13:59:23] duckpuppy: has joined #ruby
[14:00:24] sdwrage: has joined #ruby
[14:03:34] mary5030: has joined #ruby
[14:03:49] skade: has joined #ruby
[14:03:57] RegulationD: has joined #ruby
[14:05:06] kalopsian: has joined #ruby
[14:07:39] sjums: has joined #ruby
[14:12:10] celly: has joined #ruby
[14:14:57] gccostabr: has joined #ruby
[14:15:01] mary5030: has joined #ruby
[14:15:24] dionysus69: has joined #ruby
[14:15:43] gccostabr: has joined #ruby
[14:15:48] govg: has joined #ruby
[14:16:09] tubuliferous_: has joined #ruby
[14:16:17] haxrbyte: has joined #ruby
[14:16:24] gccostabr: has joined #ruby
[14:18:25] pdkl: has joined #ruby
[14:19:26] treehug88: has joined #ruby
[14:20:14] haxrbyte: has joined #ruby
[14:22:21] nfk|laptop: has joined #ruby
[14:22:55] ta0: has joined #ruby
[14:24:01] Anderson69s_Deb: has joined #ruby
[14:25:39] akem: has joined #ruby
[14:26:01] pawnbox_: has joined #ruby
[14:26:25] bithon: has joined #ruby
[14:27:49] TomPeed: has joined #ruby
[14:30:13] skade: has joined #ruby
[14:31:03] prereflect: has joined #ruby
[14:33:51] treehug88: has joined #ruby
[14:34:31] thejamespinto: has joined #ruby
[14:34:44] treehug88: has joined #ruby
[14:34:47] peeja: has joined #ruby
[14:34:49] andywojo: has joined #ruby
[14:35:30] gccostabr: has joined #ruby
[14:36:16] gccostabr: has joined #ruby
[14:37:09] arup_r: has joined #ruby
[14:38:18] jschmid: has joined #ruby
[14:38:21] roshanavand: has joined #ruby
[14:39:23] psy: has joined #ruby
[14:40:38] FooMunki: has joined #ruby
[14:44:07] seitensei: has joined #ruby
[14:44:20] whippythellama: has joined #ruby
[14:45:10] hakat: has joined #ruby
[14:46:05] c355E3B: has joined #ruby
[14:46:08] dorei: has joined #ruby
[14:47:37] dlitvak: has joined #ruby
[14:47:47] sandstrom: has joined #ruby
[14:49:31] polishdub: has joined #ruby
[14:50:03] kirun: has joined #ruby
[14:50:06] karapetyan: has joined #ruby
[14:50:55] dlitvak: has joined #ruby
[14:51:52] Spami: has joined #ruby
[14:54:38] treehug88: has joined #ruby
[14:55:08] dionysus69: has joined #ruby
[14:55:22] sankaber: has joined #ruby
[14:59:26] aegis3121: has joined #ruby
[15:00:03] roshanavand: has joined #ruby
[15:05:06] trwyth: has joined #ruby
[15:08:00] sankaber: has joined #ruby
[15:12:35] chipotle: has joined #ruby
[15:13:02] dagda1: has joined #ruby
[15:13:18] sumark: has joined #ruby
[15:14:32] pdoherty: has joined #ruby
[15:15:36] thejamespinto: has joined #ruby
[15:16:33] stannard: has joined #ruby
[15:17:43] krz: has joined #ruby
[15:17:49] sorbo_: has joined #ruby
[15:21:31] startupality: has joined #ruby
[15:21:55] houhoulis: has joined #ruby
[15:23:03] kaleido: has joined #ruby
[15:23:27] babblebre: has joined #ruby
[15:28:07] marr: has joined #ruby
[15:28:43] futilegames: has joined #ruby
[15:29:01] marr: has joined #ruby
[15:34:44] RegulationD: has joined #ruby
[15:34:51] spider-mario: has joined #ruby
[15:35:45] prereflect: has joined #ruby
[15:38:17] roshanavand: has joined #ruby
[15:39:03] hxegon: has joined #ruby
[15:41:26] bmalum: has joined #ruby
[15:42:22] rgtk: has joined #ruby
[15:43:06] kies^: has joined #ruby
[15:43:56] krobzaur: has joined #ruby
[15:45:33] roger_rabbit: has joined #ruby
[15:45:47] nertzy: has joined #ruby
[15:46:20] adgtl: has joined #ruby
[15:48:11] cyfr0n: has joined #ruby
[15:48:17] centrx: has joined #ruby
[15:48:17] magaudet: has joined #ruby
[15:48:36] hxegon: has joined #ruby
[15:48:46] llfwf33: has joined #ruby
[15:49:52] roshanav_: has joined #ruby
[15:50:13] roshanavand: has joined #ruby
[15:50:46] constantinexvi: has joined #ruby
[15:51:21] hostess: has joined #ruby
[15:51:33] treehug88: has joined #ruby
[15:51:39] FernandoBasso: has joined #ruby
[15:52:48] hagabaka: has joined #ruby
[15:54:36] dtordable: has joined #ruby
[15:55:02] chipotle_: has joined #ruby
[15:55:07] Xentil: has joined #ruby
[15:56:38] s00pcan: has joined #ruby
[15:59:44] pdkl: has joined #ruby
[15:59:59] rippa: has joined #ruby
[16:00:07] duckpuppy: has joined #ruby
[16:01:08] magaudet: has joined #ruby
[16:02:45] GGMethos: has joined #ruby
[16:02:48] codecop: has joined #ruby
[16:04:02] Lewix: ruby I missed you
[16:04:09] Lewix: I have been away for a while but I'm back
[16:04:48] rgtk: has joined #ruby
[16:05:06] pdkl: has joined #ruby
[16:05:35] mrchris: has joined #ruby
[16:06:26] Channel6: has joined #ruby
[16:08:10] adgtl: has joined #ruby
[16:08:13] dtordable: A question: accessing to a instance variable is done as @variable inside the class logic of the class?
[16:08:39] RegulationD: has joined #ruby
[16:08:56] whippythellama: has joined #ruby
[16:09:19] mrchris: Can someone help me understand how to use yield to set a var? This isn't working for me http://pastie.org/private/sspxqnwa0hr3ln4hemte8q
[16:10:19] mrchris: Never mind, I figured it out. Thanks
[16:10:27] blub: dtordable: you can do it like that, but you should use the public accessors instead
[16:10:33] Axsuul: has joined #ruby
[16:11:13] Axsuul: has joined #ruby
[16:12:00] aegis3121: has joined #ruby
[16:12:23] dtordable: That "attr_accessor_ way, blub?
[16:13:25] blub: if they're defined like that
[16:13:43] jackcom: has left #ruby: ()
[16:13:50] blub: the point is that you should get and set the variables by sending messages to self like anyone else would, for the same reasons they should
[16:14:07] dtordable: In that way dont need the "attr_read" thing are also defined as readable?
[16:16:48] blub: instead of using attr_reader, you could define your own reader trivially if that's what you mean. attr_whatever are just convenience functions
[16:17:41] zack6849: has joined #ruby
[16:17:42] zack6849: has joined #ruby
[16:18:04] havenwood: dtordable: I'm not sure what you're asking. Yes, you can access instance variable like @so. Do you have a gist of code in particular that you're wondering about?
[16:18:09] dtordable: To create setters readers for a class blub?
[16:18:14] blub: 'attr_reader :x' == def x; @x; end
[16:18:59] dtordable: Ah that's another way...
[16:19:15] iateadonut: has joined #ruby
[16:19:21] iateadonut: has left #ruby: ()
[16:19:55] nietzschette: has joined #ruby
[16:20:08] kmckelvin: has joined #ruby
[16:21:09] Guest38: has joined #ruby
[16:21:44] dtordable: ??got a "attr_accessor :var1, :var2" to provide external access to vars of an instance
[16:21:54] cdg: has joined #ruby
[16:22:02] defendguin: has joined #ruby
[16:22:34] magaudet: has joined #ruby
[16:23:00] dtordable: So vars without an attr declaration are private then?
[16:23:04] arup_r: has joined #ruby
[16:23:15] blub: dtordable: the methods of your class that don't need to touch instance variables directly, which is virtually all of the methods you will write, should use the accessor functions as well
[16:23:28] nietzschette: private, but visible
[16:23:42] blub: you aren't making the variable public by defining accessors, you're just providing methods that manipulate them
[16:23:51] skcin7_: has joined #ruby
[16:23:56] diegoviola: why does this returns 0
[16:24:04] diegoviola: (296 / 2854) * 100
[16:24:15] blub: to the person calling the methods, they don't even know if it is an instance variable or not, or if there's any extra processing going on when they deal with them
[16:24:16] nietzschette: because you're not dealing with floats
[16:24:16] diegoviola: but on google calc it gives me 10 or something
[16:24:31] havenwood: diegoviola: 0 * 100 #=> 0
[16:24:43] nietzschette: switch to .to_f
[16:25:00] nietzschette: either denominator or numerator
[16:25:18] havenwood: diegoviola: Or compare with: 296.fdiv(2854) * 100
[16:25:36] havenwood: &ri Fixnum#/
[16:25:54] dtordable: So more to say everything on Ruby are methods blub?
[16:26:03] The_Phoenix: has joined #ruby
[16:26:51] havenwood: dtordable: Everything is not a Method.
[16:27:07] diegoviola: Correspondence.where(status: 'Verde').where("ts_print > ?", 1.month.ago).count / Correspondence.where("ts_print > ?", 1.month.ago).count * 100
[16:27:15] kenbi: has joined #ruby
[16:27:26] havenwood: diegoviola: 1/2 #=> 0
[16:27:29] nietzschette: all methods are objectsm, but not all objects are methods
[16:27:35] blub: it's just general encapsulation; ruby makes that specific facet of it easy to do is all
[16:27:39] diegoviola: do I just call #to_f?
[16:27:57] havenwood: diegoviola: 1/2r or 1.fdiv(2) or 1.to_f/2 etc
[16:27:59] dtordable: But @variable access to the actual value of an instance of a given clasd, blub?
[16:28:23] havenwood: diegoviola: Floats or Rational or something other than a Fixnum.
[16:28:37] blub: yes, for when you need it, which is almost never
[16:28:48] diegoviola: I'm confused
[16:29:57] blub: dtordable: you should use the accessors whenever possible inside the class too
[16:30:14] havenwood: diegoviola: Divide two Fixnums and you'll get a Fixnum result. Try dividing a variety of Fixnums by Fixnums in Pry.
[16:30:29] diegoviola: is fixnum an integer?
[16:30:35] havenwood: diegoviola: Ask it.
[16:30:45] havenwood: >> Fixnum.is_a? Integer
[16:30:46] ruboto: havenwood # => false (https://eval.in/495467)
[16:31:02] nietzschette: all numbers are subclasses of Numeric
[16:31:08] dtordable: Blub you mean the "initialize" method of a given class,that I saw as constructors in other languages?
[16:31:24] chouhoulis: has joined #ruby
[16:31:38] havenwood: diegoviola: See: Fixnum.ancestors
[16:31:55] dtordable: That uses @variable.
[16:33:27] blub: dtordable: you should use self.var = x there too
[16:34:02] blub: you have to prefix writers with self. or ruby will think you're defining a new function-local variable
[16:34:19] Begi: has joined #ruby
[16:35:37] andywojo: has joined #ruby
[16:35:51] dtordable: Ahhh... Ok blub
[16:36:38] prereflect: has joined #ruby
[16:37:10] blub: dtordable: you will see people use bare @variable to talk to instance variables, but that's bad style, it makes it harder to change things later
[16:37:23] dtordable: Blub never read anything about self dot some thing... Will read on my book later
[16:37:41] dtordable: (I suppose)
[16:39:01] havenwood: blub: I disagree regarding using instance variables to access instance variables. Nothing wrong with it!
[16:39:04] skcin7: has joined #ruby
[16:39:09] celly: has joined #ruby
[16:39:17] havenwood: blub: Barewords are a sometimes food.
[16:39:36] nietzschette: yeah, i use @var all day, why is that any less difficult than self.var
[16:39:56] blub: dtordable: self.x just sends the message x to the object. most of the time you could just write x, but for assignments you need the self to stop ruby getting confused
[16:39:56] celly_: has joined #ruby
[16:40:35] dtordable: Yeah blub, thanks
[16:41:05] gccostabr: has joined #ruby
[16:41:10] havenwood: blub: There are a variety of reasons why it's fine. It expresses meaning, is idiomatic and saves an unnecessary method call.
[16:41:55] leksster: has joined #ruby
[16:42:23] blub: nietzschette: for the same reason any other code uses accessors to get at instance variables
[16:42:36] havenwood: blub: From *outside* the class.
[16:43:45] blub: havenwood: why don't the same benefits apply to code inside the class
[16:43:53] Ox0dea: has joined #ruby
[16:44:05] havenwood: blub: Note there's no private_attr_accessor...
[16:44:06] blub: especially in a language where you can add extra methods later
[16:45:09] seitensei: has joined #ruby
[16:45:10] blub: but conceptually, how is it any different whether the other code is inside the class or not
[16:45:18] blub: it's still needlessly relying on an implementation detail
[16:45:39] havenwood: blub: Just use instance variables as Matz intended. :P Public methods for the public interface to the class and private methods when more than variable setting or reading is needed.
[16:45:57] havenwood: blub: If you're just reading or writing an instance variable, do just that!
[16:46:11] dtordable: So "attr_reader" for reading and "attr_accessor" for writing and anyway for setting vars inside of a class use self dot notation no blub?
[16:46:27] blub: attr_accessor defines a reader and a writer
[16:46:29] Ox0dea: dtordable: #attr_writer for writing.
[16:46:41] thisirs: has joined #ruby
[16:46:53] dtordable: Thanks, anyone...
[16:47:02] havenwood: dtordable: attr_reader to expose reading outside the class, attr_writer for writing, attr_accessor for both - inside use instance variables, since you can, they're fast, and proper
[16:47:29] Ox0dea: blub wants Ruby to be something else.
[16:47:38] karapetyan: has joined #ruby
[16:47:52] blub: i want it to be object oriented
[16:48:14] havenwood: blub: Instance variables are Objects. Done!
[16:48:26] havenwood: ACTION goes in search of coffee
[16:48:29] nietzschette: class Pointer;end
[16:48:38] Ox0dea: Pointer = Class.new
[16:48:49] FernandoBasso: has joined #ruby
[16:49:01] nietzschette: so, you're allocating heep to reference heep. makes sense
[16:49:04] Ox0dea: Now *this* is pod racing!
[16:49:05] dtordable: Don't initiate a flame war with a newcomer like I am...
[16:49:52] Ox0dea: From whom did you steal that pedestal?
[16:50:18] wsewolod: has joined #ruby
[16:50:30] Jardayn: has joined #ruby
[16:50:45] dtordable: ACTION serves cup of tea to everyone here...
[16:50:46] nietzschette: def Pointer.->(a);a;end
[16:51:13] millerti: has joined #ruby
[16:51:47] Ox0dea: nietzschette: Can't have adjecent binops. :<
[16:52:29] Ox0dea: You'd have to say something like `ptr-~a`, which looks terrible.
[16:54:35] nietzschette: you're right, i should have irb'd it before suggesting it
[16:54:44] nietzschette: it's needlessly arbitrary anyway
[16:55:35] Ox0dea: >> require 'fiddle'; Fiddle::Pointer.new(0)[] rescue $!
[16:55:36] ruboto: Ox0dea # => #<Fiddle::DLError: NULL pointer dereference> (https://eval.in/495474)
[16:55:51] dkelman: has joined #ruby
[16:56:46] dkelman: has joined #ruby
[16:56:48] havenwood: blub: TIMTOWTDI! :)
[16:58:34] amclain: has joined #ruby
[16:59:15] zacts: hi rubyists
[17:00:33] zacts: heh, hello
[17:01:23] colegatron: has joined #ruby
[17:01:56] nietzschette: how would I go about creating a 'controlled' irb environment?
[17:03:04] pdkl: has joined #ruby
[17:03:48] nietzschette: keeping File, Directory, Process, and other classes from being declared. or backquotes and things like that.
[17:04:56] aibot: has joined #ruby
[17:05:49] PedramT: has joined #ruby
[17:06:06] roshanavand: has joined #ruby
[17:07:08] pdoherty: has joined #ruby
[17:07:51] tmtwd: has joined #ruby
[17:09:01] yqt: has joined #ruby
[17:09:17] cdg: has joined #ruby
[17:09:26] RobertBirnie: has joined #ruby
[17:10:47] bb010g: has joined #ruby
[17:12:44] da3mian: has joined #ruby
[17:12:46] luckyme: has joined #ruby
[17:15:10] SCHAAP137: has joined #ruby
[17:15:15] karapetyan: has joined #ruby
[17:16:49] PedramT: has joined #ruby
[17:17:47] Ox0dea: nietzschette: Why irb specifically?
[17:20:03] roshanavand: has joined #ruby
[17:20:41] PedramT: has joined #ruby
[17:22:58] chipotle: has joined #ruby
[17:24:07] duckpuppy: has joined #ruby
[17:24:58] nietzschette: i would like to simulate a programable environment, without allowing any access to the underlying system
[17:25:10] dkelman: has joined #ruby
[17:26:03] Ox0dea: It's not clear what you mean.
[17:26:16] gizmore: has joined #ruby
[17:26:29] gizmore: lat1, lat2 = lat2, lat1 if lat1 > lat2 # is this swap working as i hope?
[17:26:55] gizmore: thanksalotl :)
[17:27:24] platzhirsch: has joined #ruby
[17:27:56] adgtl: has joined #ruby
[17:28:00] Ox0dea: gizmore: http://i.imgur.com/4XpSuhP.jpg
[17:28:07] ramfjord: has joined #ruby
[17:28:11] gizmore: :D excatly
[17:28:14] Ox0dea: They're really not as cute as that one picture had led me to believe.
[17:28:30] gizmore: the thanksalotl is the cuter version :^
[17:29:27] nietzschette: if I'm providing a server with an irb session, i wouldn't want clients to access actual files, open up shells, etc.
[17:29:42] celly: has joined #ruby
[17:30:34] ruid: has joined #ruby
[17:30:34] ruid: has joined #ruby
[17:31:00] Ox0dea: nietzschette: But you still want them to have the full power of Ruby?
[17:31:58] Ox0dea: https://github.com/tario/shikashi is the only pure-Ruby sandbox that seems like it might be worth using.
[17:31:59] nietzschette: well, not the full power, obviously.
[17:32:07] kfpratt: has joined #ruby
[17:32:54] dtordable2: has joined #ruby
[17:33:24] Ox0dea: If it's not a problem to spin up a new process for each request, I'd advise sandboxing those instead.
[17:33:47] nietzschette: nah, they're all working with the same environment
[17:33:52] Papierkorb: nietzschette: You could use something like Docker. Running user code in your app server, even if using something like a 'sandbox' gem, cries for security issues
[17:33:59] adaedra: sandbox anyway.
[17:34:44] Ox0dea: Papierkorb: Why not systemd-nspawn?
[17:35:04] Papierkorb: Ox0dea: Never used it, Docker is what came to mind first
[17:35:07] pdkl: has joined #ruby
[17:35:10] niceperl: has joined #ruby
[17:35:35] dtordable: has joined #ruby
[17:36:13] nietzschette: well, at least I have options
[17:36:30] mdw: has joined #ruby
[17:36:51] Papierkorb: nietzschette: Has the code to be run on your server?
[17:36:52] Ox0dea: nietzschette: I probably shouldn't have linked shikashi; letting Ruby watchdog Ruby is not a great idea.
[17:37:20] Papierkorb: nietzschette: or is it more of a here-try-ruby sandbox type of thing?
[17:37:27] rkazak_: has joined #ruby
[17:37:37] aryaching: has joined #ruby
[17:40:57] arooni-mobile: has joined #ruby
[17:41:18] nietzschette: yeah, sort of like that
[17:41:19] prereflect: has joined #ruby
[17:41:58] nfk|laptop: has joined #ruby
[17:42:18] Papierkorb: nietzschette: http://opalrb.org/try/# you could use Opal. Not 100% coverage of Ruby, but as a first look probably enough
[17:42:25] ico: has joined #ruby
[17:43:11] vikaton: has joined #ruby
[17:43:16] kmckelvin: has joined #ruby
[17:43:29] Papierkorb: nietzschette: Benefit is that it runs completely in the users browser. There are no security issues on your end, as the user could at maximum "hack" their own session.
[17:43:40] Papierkorb: own browser-local session*
[17:44:50] havenwood: nietzschette: Or mruby in the browser (I don't know what we're talking about but anyways): http://joshnuss.github.io/mruby-web-irb/
[17:44:52] nietzschette: unfortunately, i'd like to allow multiple users into the same environment
[17:45:07] havenwood: mruby on a toaster
[17:45:15] nietzschette: and they're using a graphical front end provided by me
[17:45:35] B1n4r10: has joined #ruby
[17:45:52] celly_: has joined #ruby
[17:46:12] ta0: has joined #ruby
[17:46:13] Papierkorb: nietzschette: then spawn a ruby process in its own cgroup with set quotas for ram, cpu, and everything, running as user nobody in its own 'empty' root. Don't use chroot(). Use Docker or, if you have systemd, take a look what it can do for you. This is no small undertaking.
[17:47:02] govg: has joined #ruby
[17:47:57] Papierkorb: Make sure to understand what is actually a security-sandbox feature and what is not. Docker is not one, so that's really risky. chroot() is documented to be NOT one ($ man 2 chroot). Cgroups might be one, or not. It's really a crazy hard issue to get right
[17:49:18] Papierkorb: You could migitate it by e.g. spinning up a small EC2 instance (or similar) and share it for some users, so they're not running code on your local app server. Among other things, this is what c9.io does (Practically, a multi-user Web IDE)
[17:50:03] platzhirsch1: has joined #ruby
[17:50:27] havenwood: https://github.com/awwaiid/p6-Inline-Ruby
[17:51:24] bmalum: has joined #ruby
[17:51:24] aegis3121: has joined #ruby
[17:51:55] Papierkorb: :oh<really>;
[17:53:07] rgtk: has joined #ruby
[17:54:18] Ox0dea: [+] grep * %% (3|5), ^1000
[17:54:27] Ox0dea: Still haven't gotten over how perfect that is.
[17:55:23] Ox0dea: You know how newbies think they can say `if x == 1 || 2 || 3`? That's `if x == (1|2|3)` in Perl 6.
[17:56:09] Ox0dea: Oh, and the parens are superfluous.
[17:56:13] sdwrage: has joined #ruby
[17:56:35] Papierkorb: $those are not
[17:56:37] hobodave: has joined #ruby
[17:57:05] Papierkorb: dollar signs
[17:57:46] Ox0dea: They let you know you have a $calar.
[17:58:01] Papierkorb: They haven't $removed @this weirdness?
[17:58:18] Ox0dea: No, Perl 6 still has $calars and @rrays.
[17:58:24] blub: it's nice actually
[18:01:31] aegis3121: has joined #ruby
[18:02:43] QpQ4: has joined #ruby
[18:03:27] startupality: has joined #ruby
[18:04:04] QpQ4: has left #ruby: ()
[18:06:10] celly: has joined #ruby
[18:08:10] pdoherty: has joined #ruby
[18:08:28] tvw: has joined #ruby
[18:09:50] [Butch]: has joined #ruby
[18:11:08] last_staff: has joined #ruby
[18:11:25] diegoviola: I'm getting a NaN when converting a float with an integer
[18:11:30] diegoviola: how do I handle this?
[18:12:52] xaxisx: has joined #ruby
[18:12:53] ramfjord: has joined #ruby
[18:14:11] aegis3121: the only way I know of (which isn't necessarily the only way) to get NaN is to divide by zero
[18:15:14] tvw: has joined #ruby
[18:15:28] Ox0dea: aegis3121: This is #ruby.
[18:15:32] Ox0dea: >> 1.0 / 0
[18:15:34] ruboto: Ox0dea # => Infinity (https://eval.in/495508)
[18:15:41] gregf: has joined #ruby
[18:15:48] sandstrom: has joined #ruby
[18:15:51] ht__: has joined #ruby
[18:15:52] ruboto: aegis3121 # => NaN (https://eval.in/495509)
[18:16:03] Ox0dea: Oh, right.
[18:16:13] Ox0dea: >> Float::NAN
[18:16:14] ruboto: Ox0dea # => NaN (https://eval.in/495510)
[18:17:03] Ox0dea: diegoviola: "converting a float with an integer"?
[18:18:03] diegoviola: where(status: 'Verde').where("ts_print > ?", 1.day.ago).count.to_f / where("ts_print > ?", 1.day.ago).count * 100
[18:18:04] Ox0dea: Well, as aegis3121 has demonstrated, that'll only happen if the numerator and denominator are both 0.
[18:18:21] aegis3121: so your count is 0 in both instances
[18:18:38] aegis3121: and 0.to_f # => 0.0
[18:20:28] diegoviola: ok that's not my problem anymore
[18:21:18] Spami: has joined #ruby
[18:22:23] poguez_: has joined #ruby
[18:25:46] karapetyan: has joined #ruby
[18:28:04] ht__: has joined #ruby
[18:28:29] last_staff: has joined #ruby
[18:28:35] ico: has joined #ruby
[18:28:42] kmckelvi1: has joined #ruby
[18:28:51] karapetyan: has joined #ruby
[18:29:04] bradleyprice: has joined #ruby
[18:31:49] ico: has joined #ruby
[18:32:05] PedramT: has joined #ruby
[18:32:30] akem: has joined #ruby
[18:32:36] ico: has joined #ruby
[18:34:21] chipotle: has joined #ruby
[18:35:35] last_staff: has joined #ruby
[18:36:00] yes`r: has joined #ruby
[18:36:22] andywojo: has joined #ruby
[18:36:28] ico: has joined #ruby
[18:38:37] last_staff: has joined #ruby
[18:38:46] juddey: has joined #ruby
[18:39:05] duckpuppy: has joined #ruby
[18:41:10] volty: has joined #ruby
[18:41:20] ico: has joined #ruby
[18:44:22] ico: has joined #ruby
[18:45:00] jackjackdripper: has joined #ruby
[18:45:51] seitensei: has joined #ruby
[18:46:09] ico: has joined #ruby
[18:48:15] saab900: has joined #ruby
[18:49:02] dkelman: has joined #ruby
[18:49:48] saab900: has joined #ruby
[18:49:50] Ebok: has joined #ruby
[18:50:12] atomical_: has joined #ruby
[18:50:25] saab900: has left #ruby: ()
[18:50:27] ico: has joined #ruby
[18:50:49] Spami: has joined #ruby
[18:51:01] ico: has joined #ruby
[18:51:23] rickmasta: has joined #ruby
[18:51:35] adgtl: has joined #ruby
[18:54:14] jackjackdripper: has joined #ruby
[18:54:31] QpQ4_: has joined #ruby
[18:55:14] QpQ4_: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[18:56:36] ico: has joined #ruby
[18:57:26] tildes: has joined #ruby
[18:58:22] ico: has joined #ruby
[19:01:29] FernandoBasso: has joined #ruby
[19:02:02] ht__: has joined #ruby
[19:02:02] gizless: has joined #ruby
[19:02:02] arup_r: has joined #ruby
[19:02:45] atomical: has joined #ruby
[19:03:51] rickmasta: has joined #ruby
[19:03:55] davedev24: has joined #ruby
[19:05:48] alphaatom: has joined #ruby
[19:06:15] dreinull: has joined #ruby
[19:06:18] PedramT: has joined #ruby
[19:07:18] shadoi: has joined #ruby
[19:07:49] atomical_: has joined #ruby
[19:08:24] Scripore: has joined #ruby
[19:08:35] ico: has joined #ruby
[19:09:27] axl_: has joined #ruby
[19:10:31] marcdel: has joined #ruby
[19:10:40] PedramT: has joined #ruby
[19:11:21] ur5us: has joined #ruby
[19:11:35] ur5us: has joined #ruby
[19:12:47] diegoviola: is NaN in ruby an object?
[19:12:56] ico: has joined #ruby
[19:13:15] Ox0dea: diegoviola: How could we find out?
[19:13:24] havenwood: diegoviola: Ask it.
[19:14:07] ico: has joined #ruby
[19:14:29] Ox0dea: havenwood: Tautological.
[19:15:22] havenwood: Ox0dea: Gotta put that philosophy degree to some use. >.>
[19:15:30] Ox0dea: Onoheditint.
[19:15:38] havenwood: >> Float::NAN.is_a? Object # diegoviola
[19:15:39] ruboto: havenwood # => true (https://eval.in/495546)
[19:16:02] Ox0dea: >> Float::NAN.respond_to? :respond_to?
[19:16:04] ruboto: Ox0dea # => true (https://eval.in/495547)
[19:16:06] aegis3121: >> (0.0/0).class
[19:16:07] ruboto: aegis3121 # => Float (https://eval.in/495548)
[19:16:20] ico: has joined #ruby
[19:16:31] chipotle_: has joined #ruby
[19:16:42] atomical: has joined #ruby
[19:17:12] havenwood: >> Float::NAN.instance_of? Float
[19:17:13] ruboto: havenwood # => true (https://eval.in/495549)
[19:17:30] delsol: has joined #ruby
[19:17:42] havenwood: >> 1.upto(Float::NAN).take 3
[19:17:43] ruboto: havenwood # => [1, 2, 3] (https://eval.in/495550)
[19:20:28] robh71: has joined #ruby
[19:20:51] ohaibbq: has joined #ruby
[19:22:56] sandstrom: has joined #ruby
[19:23:38] baweaver: has joined #ruby
[19:24:20] axl__: has joined #ruby
[19:24:31] pawnbox: has joined #ruby
[19:26:35] harai: has joined #ruby
[19:26:47] thezanke: has joined #ruby
[19:29:25] DarkElement_: has joined #ruby
[19:29:43] dn`: has joined #ruby
[19:29:48] ico: has joined #ruby
[19:29:58] Cohedrin: has joined #ruby
[19:30:29] DarkElement_: What is the best way to avoid sql injection in ruby - mysql? I am doing an insert statement and need to do "VALUES ('#{var1}') but when the var1 is a sentence with something like "don't", then the quotation screws it up.
[19:31:19] DarkElement_: I realize ruby-mysql has a prepare statement.
[19:31:19] Ox0dea: DarkElement_: Prepared statements.
[19:31:29] DarkElement_: Thanks for help :D
[19:34:40] Scripore: has joined #ruby
[19:35:01] dfinninger: has joined #ruby
[19:35:18] last_staff: has joined #ruby
[19:35:26] PedramT: has joined #ruby
[19:36:06] GinoManWorks: has joined #ruby
[19:43:23] roshanavand: has joined #ruby
[19:43:25] n00bDev: has joined #ruby
[19:43:26] chipotle: has joined #ruby
[19:43:59] robh71: has joined #ruby
[19:44:25] n00bDev: hey guys, is there anyway to set a range when the ending number in the range is a instance variable? ruby isnt being nice to me
[19:44:45] Ox0dea: n00bdev: (1..@foo)
[19:44:46] ico: has joined #ruby
[19:44:57] havenwood: >> @end = 3; 1..@end
[19:44:58] ruboto: havenwood # => 1..3 (https://eval.in/495561)
[19:45:03] n00bDev: do i have to specifically cast @foo to a Integer?
[19:45:26] PedramT: has joined #ruby
[19:45:28] last_staff: has joined #ruby
[19:45:31] havenwood: n00bdev: What's it a Range of?
[19:46:07] n00bDev: i just want it to be a rnage of numbers, but the instance variable is retrieved through a params post request
[19:46:18] mdw: has joined #ruby
[19:46:29] n00bDev: when retrieved its a string type
[19:46:38] kies^: has joined #ruby
[19:47:13] renderful: has joined #ruby
[19:47:14] havenwood: n00bdev: So you could have a Range of Strings or convert it to an Integer or whatever else you want a Range of.
[19:47:18] sgambino: has joined #ruby
[19:47:46] kalopsian: has joined #ruby
[19:47:54] agit0: has joined #ruby
[19:48:14] havenwood: n00bdev: But you can't have a Range from a String to an Integer.
[19:48:21] ico: has joined #ruby
[19:48:22] havenwood: n00bdev: Or vice versa.
[19:48:40] ruboto: havenwood # => bad value for range (ArgumentError) ...check link for more (https://eval.in/495562)
[19:51:17] yqt: has joined #ruby
[19:51:30] n00bDev: thank you guys
[19:52:14] last_staff: has joined #ruby
[19:52:38] AccordLTN: has joined #ruby
[19:53:37] rgtk: has joined #ruby
[19:53:46] chipotle: has joined #ruby
[19:54:12] Begi: has joined #ruby
[19:54:14] sorbo_: has joined #ruby
[19:54:30] pawnbox: has joined #ruby
[19:55:13] alphaatom: has joined #ruby
[19:59:49] unreal: has joined #ruby
[20:00:13] PedramT: has joined #ruby
[20:00:35] robh71: has joined #ruby
[20:01:33] ico: has joined #ruby
[20:02:08] thejamespinto: has joined #ruby
[20:05:02] davedev24: has joined #ruby
[20:06:26] davedev24: has joined #ruby
[20:09:24] ElFerna: has joined #ruby
[20:10:48] kalopsian: has joined #ruby
[20:11:35] ico: has joined #ruby
[20:11:54] ElFerna: has joined #ruby
[20:13:46] ico: has joined #ruby
[20:14:55] i: has joined #ruby
[20:14:59] PedramT: has joined #ruby
[20:15:06] robh71: has joined #ruby
[20:15:41] despai: has joined #ruby
[20:16:18] codecop: has joined #ruby
[20:18:50] axl__: has joined #ruby
[20:18:51] synthroid: has joined #ruby
[20:21:15] pawnbox: has joined #ruby
[20:21:32] andywojo: has joined #ruby
[20:23:01] dagda1_: has joined #ruby
[20:23:09] dwfait: has joined #ruby
[20:24:00] dgynn: has joined #ruby
[20:24:28] Dimik: has joined #ruby
[20:28:13] unreal: has joined #ruby
[20:28:23] agit0: has joined #ruby
[20:28:31] aegis3121: has joined #ruby
[20:32:25] DarkElement_: has joined #ruby
[20:32:43] DarkElement_: How can I add in multiple variables to a prepared ruby-mysql statement?
[20:33:50] pdoherty: has joined #ruby
[20:34:00] Ox0dea: Just do it.
[20:35:12] DarkElement_: Ox0dea: I would if I knew how, but I don't so I am asking here.
[20:36:17] ico: has joined #ruby
[20:36:59] ico: has joined #ruby
[20:37:11] gccostabr: has joined #ruby
[20:39:48] duckpuppy: has joined #ruby
[20:40:05] tvw: has joined #ruby
[20:43:53] dlitvak: has joined #ruby
[20:44:05] rkazak_: has joined #ruby
[20:44:44] karapetyan: has joined #ruby
[20:46:12] johnny56: has joined #ruby
[20:46:55] ico: has joined #ruby
[20:47:00] seitensei: has joined #ruby
[20:48:25] yeticry: has joined #ruby
[20:50:09] veg: has joined #ruby
[20:52:21] last_staff: has joined #ruby
[20:54:13] headius: yorickpeterse: I'm going to look into your specs and see if I can fix a few things up in jruby
[20:54:26] headius: is there a spec for Socket.sockaddr_in? I couldn't find one
[20:54:34] blt: has joined #ruby
[20:57:28] headius: hmmm, the specs hang pretty quickly for me with MRI on OS X
[20:57:28] gusrub: has joined #ruby
[20:58:00] ht__: has joined #ruby
[20:59:29] dlitvak_: has joined #ruby
[20:59:37] agit0: has joined #ruby
[20:59:58] headius: looks like a large number of failures are because our Addrinfo doesn't accept an array, and you usually pass sockaddr_in for the specs
[21:02:03] DavidDudson: has joined #ruby
[21:02:35] kobain: has joined #ruby
[21:02:50] aegis3121: has joined #ruby
[21:03:24] diego2: has joined #ruby
[21:03:45] diego2: has joined #ruby
[21:03:46] bradleyprice: has joined #ruby
[21:04:35] karapetyan: has joined #ruby
[21:06:07] chipotle: has joined #ruby
[21:06:20] podman: has joined #ruby
[21:06:34] tildes: has joined #ruby
[21:07:07] rgtk: has joined #ruby
[21:07:12] davedev24: has joined #ruby
[21:09:26] shevy: yorickpeterse! don't let this stand! 11 months - and it's still not working!!! :D
[21:09:28] bradleyprice: has joined #ruby
[21:09:35] sgambino_: has joined #ruby
[21:10:34] gizmore: has joined #ruby
[21:10:47] blackgoat: has joined #ruby
[21:11:46] gizmore|2: has joined #ruby
[21:12:50] acarpe: has joined #ruby
[21:13:27] dfinninger: has joined #ruby
[21:13:49] gizless: has joined #ruby
[21:14:29] pneuma: has joined #ruby
[21:15:08] diego2: has joined #ruby
[21:15:20] PedramT: has joined #ruby
[21:15:39] diego2: has joined #ruby
[21:15:56] robh71: has joined #ruby
[21:16:59] Scripore: has joined #ruby
[21:17:07] PedramT: has joined #ruby
[21:18:25] graffix222: has joined #ruby
[21:23:02] 77CAAFJ7P: has joined #ruby
[21:24:41] zapata: has joined #ruby
[21:25:40] kegan_: has joined #ruby
[21:26:57] rikkipitt: has joined #ruby
[21:28:00] tvw: has joined #ruby
[21:29:29] SCHAAP137: has joined #ruby
[21:30:00] ht__: has joined #ruby
[21:30:03] rgrmatt: has joined #ruby
[21:32:09] blackmesa: has joined #ruby
[21:37:10] ico: has joined #ruby
[21:37:17] Sherushe: has joined #ruby
[21:38:09] domgetter: has joined #ruby
[21:39:00] neanderslob: has joined #ruby
[21:40:03] wolffles: has joined #ruby
[21:41:33] dagda1_: has joined #ruby
[21:43:00] n_blownapart: has joined #ruby
[21:43:06] karapetyan: has joined #ruby
[21:44:08] rgtk: has joined #ruby
[21:45:23] rgtk_: has joined #ruby
[21:46:46] robh71: has joined #ruby
[21:47:22] camilasan: has joined #ruby
[21:47:28] yfeldblum: has joined #ruby
[21:48:29] richard7: has joined #ruby
[21:53:21] diego2: has joined #ruby
[21:53:29] diego2: has joined #ruby
[21:53:39] kalopsian: has joined #ruby
[21:54:01] anaeem1: has joined #ruby
[21:54:02] dagda1: has joined #ruby
[21:54:12] Morrolan: has joined #ruby
[21:54:24] JStoker: has joined #ruby
[21:54:56] Takumo: has joined #ruby
[21:54:56] Takumo: has joined #ruby
[21:55:16] tekacs: has joined #ruby
[21:55:27] richard7: has left #ruby: ()
[21:56:49] bradleyprice: has joined #ruby
[21:57:31] thomas: has joined #ruby
[21:57:36] ico: has joined #ruby
[21:58:22] sandstrom: has joined #ruby
[21:59:06] ico: has joined #ruby
[22:00:23] grill: has joined #ruby
[22:01:21] ico: has joined #ruby
[22:02:27] Drakevr: has joined #ruby
[22:02:50] yorickpeterse: headius: the specs are in spec/socket/pack_sockaddr_in_spec.rb
[22:02:55] yorickpeterse: also the specs don't hang, they take some time
[22:03:02] yorickpeterse: a bunch of them wait for stuff to complete
[22:03:09] rikkipitt: has joined #ruby
[22:03:48] adgtl: has joined #ruby
[22:04:24] azgil: has joined #ruby
[22:04:53] roshanavand: has joined #ruby
[22:05:04] headius: how long is long? It seems to be on this particular expectation for nearly a minute now
[22:05:04] hagabaka: has joined #ruby
[22:05:08] headius: yorickpeterse: ^
[22:05:23] phredus: Hello all, I am new to ruby I have installed ruby19 ruby20 and ruby21 installed on my system, DoI need all of them? or just the latest? or?
[22:05:30] akem: has joined #ruby
[22:05:49] headius: call me crazy but with zero cpu and going on two minutes now, I think it's hung
[22:05:50] s2013: has joined #ruby
[22:06:09] alakra: has joined #ruby
[22:06:13] yorickpeterse: headius: that is too long, at most they should wait a second or two
[22:06:16] headius: BasicSocket#send using IPv4 using a connected TPC socket using the MSG_OOB flag
[22:06:17] headius: - sends an out-of-band message
[22:06:20] headius: that's the one that hangs on my system
[22:06:24] adaedra: phredus: usually, the latest is fine.
[22:06:31] adaedra: phredus: also, latest is 2.3 now.
[22:06:34] headius: ruby 2.3.0, OS X 10.10.3
[22:06:43] yorickpeterse: headius: I haven't fully fixed all specs for OS X yet
[22:06:50] yorickpeterse: currently working on that, maybe that one hangs on OS X
[22:07:03] Apocalypse: has joined #ruby
[22:07:45] spider-mario: has joined #ruby
[22:07:47] yorickpeterse: which is also why I haven't prepped a Gem yet
[22:08:02] phredus: ok thank you
[22:08:21] headius: yay, quick fix and Addrinfo is down from 258F to 55F
[22:08:37] headius: I suspect the lions share of these failures are going to be the same thing
[22:08:54] ico: has joined #ruby
[22:09:01] headius: it's not like we don't have a working socket library...but the more arcane APIs are missing or partial
[22:09:22] bradleyprice: has joined #ruby
[22:10:05] headius: I mostly got sockaddr and addrinfo stuff working enough for stdlib's use
[22:10:51] TheMoonMaster: has joined #ruby
[22:11:08] bradleyprice: has joined #ruby
[22:11:24] headius: yorickpeterse: have you run these against JRuby much?
[22:12:15] centrx: has joined #ruby
[22:12:16] yorickpeterse: I gave them one run but got a few 100 failures
[22:12:16] ico: has joined #ruby
[22:12:17] icecrxm: has joined #ruby
[22:12:23] blackmesa: has joined #ruby
[22:12:39] headius: yeah, I just knocked off over 200 with one fix
[22:13:04] yorickpeterse: There are a bunch of more OS X failures (https://travis-ci.org/rubysl/rubysl-socket/jobs/99507580) but I'll take a look at those tomorrow/friday
[22:15:28] Outlastsheep: has joined #ruby
[22:16:17] FooMunki: has joined #ruby
[22:16:22] gizmore: has joined #ruby
[22:16:45] _whitelogger: has joined #ruby
[22:17:40] curses: has joined #ruby
[22:18:09] ico: has joined #ruby
[22:18:15] icecrxm: has left #ruby: ("Leaving")
[22:18:20] gizmore|2: has joined #ruby
[22:18:25] roshanavand: has joined #ruby
[22:19:20] diego2: has joined #ruby
[22:19:23] [spoiler]: has joined #ruby
[22:19:23] nullwarp: has joined #ruby
[22:19:32] canton7: has joined #ruby
[22:19:33] Drakevr: has joined #ruby
[22:20:18] tekacs: has joined #ruby
[22:21:17] gizmore: has joined #ruby
[22:22:37] roshanavand: has joined #ruby
[22:23:13] diego2: has joined #ruby
[22:23:35] djbkd_: has joined #ruby
[22:23:44] troulouliou_dev: has joined #ruby
[22:24:01] lucas: has joined #ruby
[22:24:09] Takumo: has joined #ruby
[22:24:10] Takumo: has joined #ruby
[22:24:10] drPoggs: has joined #ruby
[22:24:15] leslie: has joined #ruby
[22:24:15] leslie: has joined #ruby
[22:24:20] headius: ok, got the hanging specs tagged
[22:24:26] [spoiler]: has joined #ruby
[22:24:41] kaspergrubbe: has joined #ruby
[22:24:48] Drakevr: has joined #ruby
[22:25:13] oddmunds: has joined #ruby
[22:25:21] _whitelogger: has joined #ruby
[22:25:30] _whitelogger: has joined #ruby
[22:25:50] JoL1hAHN: has joined #ruby
[22:25:57] headius: yorickpeterse: thanks for working on these...should help us shore up API edges a bit in JRuby
[22:26:00] canton7: has joined #ruby
[22:26:04] headius: and perhaps when your work is done it will work on JRuby too
[22:26:06] JStoker: has joined #ruby
[22:26:15] gizless: has joined #ruby
[22:26:57] Morrolan: has joined #ruby
[22:27:00] gizmore|2: has joined #ruby
[22:28:17] lnx: has joined #ruby
[22:28:25] ammar: has joined #ruby
[22:28:26] `derpy: has joined #ruby
[22:28:27] EvilJStoker: has joined #ruby
[22:29:02] gizmore|3: has joined #ruby
[22:29:45] plsk: has joined #ruby
[22:30:25] solars: has joined #ruby
[22:31:02] andywojo: has joined #ruby
[22:31:02] gizmore: has joined #ruby
[22:31:29] baweaver: has joined #ruby
[22:34:30] spider-mario: has joined #ruby
[22:34:45] neanderslob: has joined #ruby
[22:35:04] gizless: has joined #ruby
[22:35:18] pawnbox: has joined #ruby
[22:36:13] narcan: has joined #ruby
[22:37:04] gizmore|2: has joined #ruby
[22:37:31] vikas027: has joined #ruby
[22:38:54] troulouliou_dev: has joined #ruby
[22:40:22] hxegon: has joined #ruby
[22:41:49] duckpuppy: has joined #ruby
[22:42:44] celly: has joined #ruby
[22:44:22] ico: has joined #ruby
[22:44:43] lucas: has joined #ruby
[22:44:44] neanderslob: has joined #ruby
[22:45:01] gccostabr: has joined #ruby
[22:45:03] zenlot: has joined #ruby
[22:45:15] Drakevr: has joined #ruby
[22:45:25] futilegames: has joined #ruby
[22:45:32] Takumo: has joined #ruby
[22:45:32] Takumo: has joined #ruby
[22:45:58] JStoker: has joined #ruby
[22:47:02] s00pcan: has joined #ruby
[22:47:08] davedev24: has joined #ruby
[22:47:51] houhoulis: has joined #ruby
[22:48:41] duderonomy: has joined #ruby
[22:49:44] akem: has joined #ruby
[22:50:17] leslie: has joined #ruby
[22:50:17] leslie: has joined #ruby
[22:50:21] canton7: has joined #ruby
[22:50:29] JStoker: has joined #ruby
[22:50:42] nullwarp: has joined #ruby
[22:50:44] Drakevr: has joined #ruby
[22:50:45] _whitelogger: has joined #ruby
[22:50:51] lucas: has joined #ruby
[22:50:54] tekacs: has joined #ruby
[22:51:06] lnx: has joined #ruby
[22:51:30] [spoiler]: has joined #ruby
[22:51:34] JoL1hAHN: has joined #ruby
[22:51:37] rgrmatt: has joined #ruby
[22:52:16] Takumo: has joined #ruby
[22:52:16] Takumo: has joined #ruby
[22:52:21] ico: has joined #ruby
[22:52:27] oddmunds: has joined #ruby
[22:52:57] ammar: has joined #ruby
[22:53:02] Morrolan: has joined #ruby
[22:53:12] gizmore: has joined #ruby
[22:54:16] plsk: has joined #ruby
[22:54:42] dkelman: has joined #ruby
[22:55:01] spider-mario: has joined #ruby
[22:56:02] acarpe: has joined #ruby
[22:56:08] gccostabr: has joined #ruby
[22:57:12] ico: has joined #ruby
[22:57:16] newbie: has joined #ruby
[22:57:38] Liothen: has joined #ruby
[22:57:38] Liothen: has joined #ruby
[22:59:04] kaspergrubbe: has joined #ruby
[22:59:09] thejamespinto_: has joined #ruby
[22:59:30] ico: has joined #ruby
[23:00:12] ico: has joined #ruby
[23:00:36] Drakevr: has joined #ruby
[23:00:39] bkxd: has joined #ruby
[23:02:03] colegatron: has joined #ruby
[23:04:12] ascarter: has joined #ruby
[23:05:38] bubbys: has joined #ruby
[23:05:55] rikkipitt: has joined #ruby
[23:06:47] Scripore: has joined #ruby
[23:10:54] ico: has joined #ruby
[23:11:53] gizless: has joined #ruby
[23:13:52] gizmore|2: has joined #ruby
[23:14:05] qpls: has joined #ruby
[23:14:25] hagabaka: has joined #ruby
[23:14:53] gizmore: has joined #ruby
[23:15:23] baweaver: has joined #ruby
[23:15:41] FeS: has joined #ruby
[23:16:48] rgrmatt: has joined #ruby
[23:17:13] lemur: has joined #ruby
[23:17:53] gccostabr: has joined #ruby
[23:19:19] senayar: has joined #ruby
[23:19:19] senayar: has joined #ruby
[23:19:25] framling: has joined #ruby
[23:19:48] gizless: has joined #ruby
[23:20:07] Pupeno: has joined #ruby
[23:21:41] coffeecupp: has joined #ruby
[23:23:00] gizmore|2: has joined #ruby
[23:23:02] rgrmatt: has joined #ruby
[23:23:32] narcan: has joined #ruby
[23:24:34] araujo: has joined #ruby
[23:26:40] kadoppe: has joined #ruby
[23:29:12] minimalism: has joined #ruby
[23:33:25] gizmore: has joined #ruby
[23:34:31] millerti: has joined #ruby
[23:37:56] adgtl: has joined #ruby
[23:41:26] RobertBirnie: has joined #ruby
[23:43:18] dfinninger: has joined #ruby
[23:43:22] ur5us: has joined #ruby
[23:47:05] duncannz: has joined #ruby
[23:48:42] millerti: has joined #ruby
[23:50:28] CloCkWeRX: has joined #ruby
[23:55:16] mary5030_: has joined #ruby
[23:55:34] ElFerna: has joined #ruby