« Back to channel list

#ruby - 16 August 2015

« Back 1 day Forward 1 day »
[00:00:58] ohaibbq: has joined #ruby
[00:02:17] _blizzy_: has joined #ruby
[00:05:50] hj2007: has joined #ruby
[00:08:32] lucyinthesky: has left #ruby: ("Leaving")
[00:10:24] _blizzy_: has joined #ruby
[00:11:12] devbug_: has joined #ruby
[00:13:36] jeadr: has joined #ruby
[00:16:26] marsjaninzmarsa: has joined #ruby
[00:16:35] frozen3: has joined #ruby
[00:19:00] dgutierrez1287: has joined #ruby
[00:19:09] axl_: has left #ruby: ()
[00:23:03] lucyinthesky: has joined #ruby
[00:23:37] juanpablo___: has joined #ruby
[00:25:43] rickmasta: has joined #ruby
[00:26:01] mephistophocles: has joined #ruby
[00:26:50] Musashi007: has joined #ruby
[00:27:39] spleeze: has joined #ruby
[00:29:03] swgillespie: has joined #ruby
[00:29:53] saddad: has joined #ruby
[00:31:06] casadei_: has joined #ruby
[00:31:50] cornerma1: has joined #ruby
[00:34:09] towski_: has joined #ruby
[00:34:27] tomphp: has joined #ruby
[00:37:14] snowkidind: has joined #ruby
[00:38:46] mary5030: has joined #ruby
[00:41:22] devoldmx_: has joined #ruby
[00:43:21] EminenceHC: has joined #ruby
[00:44:34] Scripore: has joined #ruby
[00:44:57] Thomas-0725: has joined #ruby
[00:45:09] Cache_Money: has joined #ruby
[00:45:11] EminenceHC: How can i match an item in an array, and then return the next one? I know I can do array.include?(foo), but how would I get the next value?
[00:46:03] kellray: has left #ruby: ()
[00:48:21] djbkd: has joined #ruby
[00:51:19] diegoviola: has joined #ruby
[00:51:34] tkuchiki: has joined #ruby
[00:52:07] Rubie: has joined #ruby
[00:52:26] Ox0dea: eminencehc: Why not just add 1 to the index of the target element and use that to get the next one?
[00:52:51] christiandsg: has joined #ruby
[00:58:04] swgillespie: has joined #ruby
[00:58:05] workmad3: has joined #ruby
[00:58:46] danman: has joined #ruby
[01:00:26] brendan-: has joined #ruby
[01:01:53] ascarter: has joined #ruby
[01:03:38] tkuchiki: has joined #ruby
[01:05:03] Cubix: has joined #ruby
[01:05:24] jackjackdripper: has joined #ruby
[01:09:29] arescorpio: has joined #ruby
[01:13:31] shevy: yeah index
[01:15:27] Ox0dea: >> foo = [1, 2, 3].to_enum; 1 until foo.next == 2; foo.next # or Enumerator#next :P
[01:15:28] ruboto: Ox0dea # => 3 (https://eval.in/417258)
[01:16:35] hydrozen: has joined #ruby
[01:19:27] christiandsg: has joined #ruby
[01:19:27] brendan-: has joined #ruby
[01:21:46] jonee: has joined #ruby
[01:22:22] hagabaka: has joined #ruby
[01:23:09] erikh: has joined #ruby
[01:24:55] nertzy: has joined #ruby
[01:25:10] tkuchiki: has joined #ruby
[01:25:52] scottschecter: has joined #ruby
[01:31:02] ponga: has joined #ruby
[01:33:46] VeganGreg: has joined #ruby
[01:38:19] michaeldeol: has joined #ruby
[01:38:23] tkuchiki: has joined #ruby
[01:41:09] danman: has joined #ruby
[01:41:15] patteh: has joined #ruby
[01:48:15] amystephen: has joined #ruby
[01:48:20] dr3w: has joined #ruby
[01:49:26] mary5030: has joined #ruby
[01:49:27] allcentury: has joined #ruby
[01:52:35] jeadr: has joined #ruby
[01:52:47] Vile`: has joined #ruby
[01:54:01] bronson: has joined #ruby
[01:54:24] romain_t: has joined #ruby
[01:57:00] j4cknewt: has joined #ruby
[01:57:37] towski_: has joined #ruby
[02:00:46] eam: has joined #ruby
[02:03:36] jeadr: has joined #ruby
[02:13:22] MikeHunt: has joined #ruby
[02:13:36] MikeHunt: what are the most docile species of nigger?
[02:13:46] ruboto: fflush, apeiros, banisterfiend, seanstickle, Mon_Ouie, zzak, Radar, Havenn, jhass, sevenseacat, miah, Coraline, workmad3, drbrain, slyphon, zenspider, rubyhacker1, Aria, ljarvis
[02:14:01] MikeHunt: I'm doing this for an assignment
[02:14:52] christiandsg: has joined #ruby
[02:15:02] MikeHunt: it's a ruby app with a sql driven db that relates nigger species from most violent to most docile
[02:16:24] MikeHunt: there are a lot of nigger species in the world. subhuman niggers are the most violent and dangerous... more dangerous than the silverbacks. what is the most docile species of niggers out there?
[02:17:40] Yzguy: yeah so if you could leave
[02:17:42] Yzguy: that'd be great
[02:18:00] Norrin: ops were already called. leave it alone
[02:18:05] MikeHunt: can you answer my question please? I'll leave after you answer my question
[02:18:43] pipework: Yzguy: Please don't engage the troll.
[02:19:23] MikeHunt: please answer my question
[02:20:19] Feyn: has joined #ruby
[02:21:45] hydrozen: has joined #ruby
[02:27:04] RobertBirnie: has joined #ruby
[02:27:31] millerti: has joined #ruby
[02:27:36] belteshazzar: has joined #ruby
[02:28:07] MikeUnt: has joined #ruby
[02:28:26] ChanServ: +b MikeUnt!*@*
[02:28:26] ChanServ: ChanServ kicked MikeUnt: http://ruby-community.com/pages/user_rules#rule_2_10
[02:29:56] MikeUnit: has joined #ruby
[02:29:56] ChanServ: +b *!*@gateway/web/cgi-irc/kiwiirc.com/ip.167.114.119.196
[02:29:56] ChanServ: ChanServ kicked MikeUnit: http://ruby-community.com/pages/user_rules#rule_2_10
[02:31:06] miah: did i boot the wrong one?
[02:32:11] pipework: miah: Maybe it wasn't the best mask, but it should be alright for miaow. :D
[02:32:50] miah: sadly, trolls <3 web gateways
[02:34:17] lwu: has joined #ruby
[02:34:40] Oog: has joined #ruby
[02:35:55] pipework: miah: I might've went for the ip address to start, or if you think kiwiiirc.com isn't that popular, you could ban that. I haven't seen that one as often, but that's definitely worth considering.
[02:37:35] miah: ya, i'll sort it out in a minute. =)
[02:37:38] Norrin: miah, i think you did get the wrong one
[02:37:57] Norrin: the guy was MikeHunt (~u931732@172.56.26.62)
[02:38:56] arescorpio: has joined #ruby
[02:39:41] Norrin: mobile ip but it'll suffice for now
[02:41:29] Oog_: has joined #ruby
[02:41:40] devoldmx: has joined #ruby
[02:42:03] siemprefresco: has joined #ruby
[02:43:18] Thomas-0725: has joined #ruby
[02:43:21] miah: Norrin: thanks, i'll sort in a moment
[02:43:42] edwardly: has joined #ruby
[02:43:42] edwardly: has joined #ruby
[02:44:02] miah: i think that one i banned was same one, just on webirc.. i dont really understand the trolling anyways
[02:44:17] miah: such a waste
[02:46:25] Oog: has joined #ruby
[02:46:52] workmad3: has joined #ruby
[02:50:17] miah: -b *!*@gateway/web/cgi-irc/kiwiirc.com/ip.167.114.119.196
[02:50:46] havenwood: has joined #ruby
[02:51:39] dopie: has joined #ruby
[02:54:13] bruno-: has joined #ruby
[02:54:17] rakm: has joined #ruby
[02:56:59] Oog: has joined #ruby
[02:57:35] patteh: has joined #ruby
[02:58:42] shevy: they have too much time available!
[03:05:38] Vile`: has joined #ruby
[03:11:31] braincras: has joined #ruby
[03:12:48] jeadr: has joined #ruby
[03:13:59] EminenceHC: has joined #ruby
[03:14:12] audiodude: has joined #ruby
[03:14:13] Oog: has joined #ruby
[03:15:09] s2013: has joined #ruby
[03:16:12] hj2007: has joined #ruby
[03:17:29] NeverDie: has joined #ruby
[03:18:57] dgutierrez1287: has joined #ruby
[03:22:40] RobertBirnie: has joined #ruby
[03:23:24] darkf: has joined #ruby
[03:24:49] Guest44794: has joined #ruby
[03:28:46] ocsjwolf: has joined #ruby
[03:28:50] dopie: has joined #ruby
[03:29:55] amystephen: has joined #ruby
[03:29:57] jimbow: has joined #ruby
[03:29:57] ChanServ: +b *!*@gateway/web/cgi-irc/kiwiirc.com/ip.167.114.119.196
[03:29:57] ChanServ: ChanServ kicked Jimbow: http://ruby-community.com/pages/user_rules#rule_2_10
[03:32:50] hmsimha_: has joined #ruby
[03:36:32] hydrozen: has joined #ruby
[03:38:25] christiandsg: has joined #ruby
[03:44:16] swgillespie: has joined #ruby
[03:45:18] khebbie: has joined #ruby
[03:46:03] Jagst3r15: has joined #ruby
[03:46:19] Jagst3r15: Hi, how come a lot of web hosting companies build their control panels in ruby?
[03:46:30] Jagst3r15: e.g. wpengine, etc
[03:48:48] tkuchiki: has joined #ruby
[03:49:31] elton: cuz ruby is awesome
[03:50:19] Yzguy: probably just who they have on staff
[03:50:42] Yzguy: "we need a control panel, well these guys know ruby and rails, guess whats what we will go with"
[03:50:47] ocsjwolf: Anybody here use Sinatra?
[03:51:16] Yzguy: we have "grails" at work
[03:51:28] Yzguy: I'd like to see them move to ruby or python for web apps
[03:51:35] swgillespie: has joined #ruby
[03:51:35] allcentury: has joined #ruby
[03:51:42] Yzguy: but, big enterprise, we'll see how that goes
[03:52:46] poguez_: has joined #ruby
[03:53:30] armyriad: has joined #ruby
[03:54:24] Jagst3r15: well is ruby more robust/secure for a custom web control panel then say PHP5?
[03:56:04] RobertBirnie: has joined #ruby
[03:59:26] gix: has joined #ruby
[04:00:54] juanpablo___: has joined #ruby
[04:01:39] UtkarshRay: has joined #ruby
[04:01:57] xcesariox: has joined #ruby
[04:03:31] jonee: has joined #ruby
[04:04:43] havenwood: has joined #ruby
[04:06:15] postmodern: has joined #ruby
[04:07:57] jpfuentes2: has joined #ruby
[04:08:20] jonee_: has joined #ruby
[04:09:03] The_Phoenix: has joined #ruby
[04:09:32] jonee__: has joined #ruby
[04:13:43] jonee: has joined #ruby
[04:14:04] bb010g: has joined #ruby
[04:14:32] christiandsg: has joined #ruby
[04:15:39] np0: has joined #ruby
[04:17:30] jonee__: has joined #ruby
[04:17:37] hmsimha_: has joined #ruby
[04:20:02] UtkarshRay: has joined #ruby
[04:20:27] swgillespie: has joined #ruby
[04:22:22] jefus: has joined #ruby
[04:25:22] einarj: has joined #ruby
[04:26:08] [k-: has joined #ruby
[04:28:01] hololeap: has joined #ruby
[04:30:32] RobertBirnie: has joined #ruby
[04:31:15] lxsameer: has joined #ruby
[04:33:20] lucyinthesky: has joined #ruby
[04:35:11] dopie: has joined #ruby
[04:35:35] workmad3: has joined #ruby
[04:37:46] xxneolithicxx: has joined #ruby
[04:38:29] LMity: has joined #ruby
[04:38:59] hj2007: has joined #ruby
[04:41:06] TheTime: has joined #ruby
[04:41:51] TheTime: |||||| Do you know what your DOMAIN IS WORTH??? Vist >>> www.VALBOT.com <<< for a FREE DOMAIN VALUATION! or Google >>> VALBOT.com <<< ||||||
[04:47:57] n_blownapart: has joined #ruby
[04:48:56] sameerynho: has joined #ruby
[04:49:50] TheTime: |||||| Do you know what your DOMAIN IS WORTH??? Vist >>> www.VALBOT.com <<< for a FREE DOMAIN VALUATION! or Google >>> VALBOT.com <<< ||||||
[04:49:54] ruboto: fflush, apeiros, banisterfiend, seanstickle, Mon_Ouie, zzak, Radar, Havenn, jhass, sevenseacat, miah, workmad3, Coraline, drbrain, zenspider, slyphon, rubyhacker1, Aria, ljarvis
[04:49:56] blarghlarghl: can someone do the thing?
[04:55:43] xxneolithicxx: has joined #ruby
[04:55:43] bruno-: has joined #ruby
[04:58:14] tkuchiki: has joined #ruby
[05:00:47] Oka: has joined #ruby
[05:01:26] hololeap: has joined #ruby
[05:07:14] yeticry: has joined #ruby
[05:09:32] baweaver: has joined #ruby
[05:10:38] hj2007: has joined #ruby
[05:11:31] Scripore: has joined #ruby
[05:13:30] Oog: has joined #ruby
[05:15:57] socialjackie_: has joined #ruby
[05:19:31] djbkd: has joined #ruby
[05:21:41] RobertBirnie: has joined #ruby
[05:22:27] _djbkd: has joined #ruby
[05:22:51] jimbow: has joined #ruby
[05:23:02] Oog_: has joined #ruby
[05:24:24] ruby-lang770: has joined #ruby
[05:24:40] _blizzy_: has joined #ruby
[05:24:56] jimbow: has joined #ruby
[05:25:08] kies: has joined #ruby
[05:25:50] RobertBirnie: has joined #ruby
[05:27:15] jimbow: has joined #ruby
[05:27:43] ruby-lang770: has left #ruby: ()
[05:27:45] Ropeney: has joined #ruby
[05:31:05] khebbie: has joined #ruby
[05:32:32] _blizzy_: has joined #ruby
[05:33:03] nite2k: has joined #ruby
[05:33:10] arup_r: has joined #ruby
[05:33:34] Oog: has joined #ruby
[05:35:56] Oog_: has joined #ruby
[05:36:48] baweaver: Ox0dea: y u no in #ruby-offtopic?
[05:36:56] tkuchiki: has joined #ruby
[05:37:00] baweaver: http://www.amazon.com/Mazes-Programmers-Twisty-Little-Passages/dp/1680500554 - This might be of interest to you as an aside.
[05:38:58] darkxploit: has joined #ruby
[05:39:07] yardenbar: has joined #ruby
[05:40:57] darkxploit: has joined #ruby
[05:41:19] iateadonut: has joined #ruby
[05:41:48] sevenseacat: has joined #ruby
[05:42:52] darkxploit: has joined #ruby
[05:43:58] skydiver: has joined #ruby
[05:44:48] darkxploit: has joined #ruby
[05:45:57] dgutierrez1287: has joined #ruby
[05:46:41] darkxploit: has joined #ruby
[05:47:10] allcentury: has joined #ruby
[05:47:14] tkuchiki: has joined #ruby
[05:47:18] MikeUnt: has left #ruby: ()
[05:48:33] WeeBeanie: Question: I'm trying to remove all instances of \t, \n, etc, for use with json parsing.
[05:48:56] WeeBeanie: Currently I just use mystring.delete("\t"), is there a way to remove multiple such control chars with a single .delete statement?
[05:49:13] WeeBeanie: such as mystring.delete("\t", "\n", "\r")
[05:49:15] christiandsg: has joined #ruby
[05:49:23] codecop: has joined #ruby
[05:50:02] WeeBeanie: It's a code cop! Everyone be cool!
[05:51:02] skydiver: has joined #ruby
[05:51:06] snowkidind: lol i look over and i see this
[05:52:21] Ox0dea: baweaver: I guess I tacitly operate on the assumption that if main is dead, OT is likely to be even deader.
[05:53:31] baweaver: WeeBeanie: strip
[05:53:42] Ox0dea: >> "a\nb\rc\td".delete "\n\r\t" # WeeBeanie
[05:53:43] ruboto: Ox0dea # => "abcd" (https://eval.in/417324)
[05:55:16] WeeBeanie: Ok, so, if I have a string "\t Hello, I'm Jim \nNice to meet you!"
[05:55:38] WeeBeanie: putting .delete "\t\n" will leave " Hello, I'm Jim Nice to meet you!"
[05:55:49] Ox0dea: That's right.
[05:55:53] WeeBeanie: Perfect, thank you sir.
[05:56:03] bronson: has joined #ruby
[05:56:34] WeeBeanie: What are some common control chars? I run into \t (tab) and \n (newline) a bit, but are there others that come to mind?
[05:58:14] khebbie: has joined #ruby
[05:59:08] hololeap: WeeBeanie: \r is common in windows
[05:59:35] BloodyHistory: has joined #ruby
[06:00:11] hololeap: as in "\r\n"
[06:00:28] ekleog: WeeBeanie: You can do the opposite: "\t Hello, I'm Jim \nNice to meet you!".delete "^a-zA-Z0-9.,! "
[06:00:32] hololeap: also in networking protocols like http although i'm not sure if its necessary
[06:00:59] ekleog: This would delete everything but alphanumeric characters, space, dot, comma and bang
[06:01:57] baweaver: Odd, I'd think delete would take a regex
[06:02:23] WeeBeanie: ekleog: Thank you, it's for JSON parsing, I don't want to kill any other special chars.
[06:02:33] baweaver: because the thing is essentially using a regex group anyways
[06:02:36] baweaver: simplification I guess.
[06:02:47] WeeBeanie: I just want to eliminate the control chars that break JSON.
[06:02:47] Oka: has joined #ruby
[06:03:07] hololeap: WeeBeanie: also "\e" is common in command prompts, for instance whereever you see color
[06:03:17] ekleog: \n and \t do not break JSON AFAICT
[06:03:22] Trynemjoel: has joined #ruby
[06:04:02] Ox0dea: baweaver: String#delete was inspired by `tr` and its `-d` flag.
[06:04:45] jimbow: has joined #ruby
[06:04:52] ruboto: fflush, apeiros, seanstickle, banisterfiend, Mon_Ouie, zzak, Radar, Havenn, jhass, sevenseacat, miah, workmad3, Coraline, drbrain, zenspider, slyphon, rubyhacker1, Aria, ljarvis
[06:05:03] jimbow: i did nothing wrong
[06:05:09] Ox0dea: sevenseacat: jimbow intends to be mean.
[06:05:12] [k-: The Game
[06:05:18] jimbow: i just wanted to say that i love each and every one of you
[06:05:26] jimbow: and the ruby community is great
[06:05:26] Ox0dea: sevenseacat: Welp, fair warning.
[06:05:41] jimbow: sevenseacat:thanks for writing that wonderful rails book
[06:05:42] Ox0dea: baweaver: Why we have #tr_s but not #tr_d is a bit of a mystery.
[06:05:45] lucyinthesky: has joined #ruby
[06:05:46] jimbow: may i have your autograph?
[06:06:09] sevenseacat: Ox0dea: 'preciated.
[06:06:17] baweaver: ACTION grabs popcorn
[06:06:35] sevenseacat: jimbow: if we meet in real life, sure why not.
[06:06:48] jimbow: sevenseacat:don't listen to Ox0dea he's not talking about me
[06:06:58] jimbow: he's mistaken me for someone else
[06:08:05] WeeBeanie: Question: when I declare a series of variables local to a function, when that function terminates execution, is the memory for those variables released?
[06:08:15] WeeBeanie: The function is not a method, it's isolated, not part of a parent class
[06:08:23] rht: has joined #ruby
[06:08:34] [k-: the memory of released when a GC runs
[06:09:02] absolutejam: has joined #ruby
[06:09:19] WeeBeanie: When does a garbage collector run? Is that something you can manually launch?
[06:09:36] WeeBeanie: I've been coding a while in Ruby but am not familiar whatsoever with the nuances of garbage collection
[06:09:41] [k-: you can manually launch it
[06:09:54] yfeldblum: has joined #ruby
[06:09:54] [k-: it runs when the heap is full
[06:10:14] jimbow: is there a way to visualize what's going on in garbage collection?
[06:10:15] Ox0dea: sevenseacat: http://git.io/v3df0 Just something to be aware of, I guess.
[06:10:40] sevenseacat: Ox0dea: thanks.
[06:10:46] WeeBeanie: Is this recommended if you have an app that runs a while and it calls functions with several variables local to that function?
[06:10:46] Ox0dea: Sure thing.
[06:10:51] [k-: I'm not too sure about incremental gc, though
[06:10:53] WeeBeanie: To manually launch a GC?
[06:11:13] jimbow: Ox0dea:do i know who was using my computer? yes i do know who was using my computer it was my brother please forgive him as he's a bit young and immature
[06:11:22] WeeBeanie: http://stackoverflow.com/questions/6067139/ruby-garbage-collect
[06:11:27] WeeBeanie: That's from 2011 thought.
[06:11:39] [k-: it would work
[06:11:52] [k-: this isn't Scala ;)
[06:12:01] jimbow: ruby's garbage collection hasn't changed much since 1995 afaik
[06:12:30] baweaver: 2.1 / 2.2, read changelogs
[06:12:44] RobertBirnie: has joined #ruby
[06:12:47] [k-: it changed to incremental gc and generational gc
[06:12:53] [k-: and symbol gc
[06:12:56] jimbow: i know nothing
[06:12:57] ruboto: -q ght!*@*
[06:12:57] ruboto: -o ruboto
[06:13:10] sevenseacat: is that even a command we have?
[06:13:12] gwendall: has joined #ruby
[06:13:19] lwu: has joined #ruby
[06:13:20] WeeBeanie: http://ruby-doc.org/core-2.2.2/GC.html
[06:13:24] Ox0dea: WeeBeanie: https://gist.github.com/0x0dea/c89df0ee5c0c7a9ff0cb
[06:13:28] baweaver: unmute? it did something at least.
[06:13:29] Ox0dea: That should be of some insight.
[06:13:53] [k-: at least eval.in Ox0dea :(
[06:14:00] user1138: has joined #ruby
[06:14:19] WeeBeanie: Ox0dea: thank you.
[06:14:23] Trynemjoel: has joined #ruby
[06:14:38] Ox0dea: [k-: Right, sorry.
[06:15:16] WeeBeanie: So I have this one application where I iterate through all user profiles stored in a remote MySQL DB, and perform actions based on settings in the user profiles, perhaps it would be logical to issue a GC.start at the bottom of each iteration.
[06:15:40] WeeBeanie: GC only clears memory for released variables, I trust?
[06:15:45] WeeBeanie: I'm going to read up on it, yes.
[06:16:11] Ox0dea: The garbage collector will not destroy reachable objects.
[06:16:16] WeeBeanie: http://samsaffron.com/archive/2013/11/22/demystifying-the-ruby-gc
[06:16:37] allcentury: has joined #ruby
[06:16:46] WeeBeanie: According to this they have made some changes to the GC mechanism since 1995.
[06:17:09] [k-: http://engineering.heroku.com/blogs/2015-02-04-incremental-gc/
[06:17:12] WeeBeanie: v1.9.3 introduced the "lazy sweeping algorithm" and 2.0 introduced "bitmap marking"
[06:17:26] Musashi007: has joined #ruby
[06:17:46] Ox0dea: And 2.x introduced a generational collector and some Symbol collection.
[06:18:36] Ox0dea: Symbol literals are never collected, but dynamically created ones ('foo'.to_sym) are treated like most other objects.
[06:19:00] Ox0dea: Not sure about %s(foo).
[06:19:27] AlexRussia: has joined #ruby
[06:20:52] ght: Do you see a performance bump if RAM is released via manually calling GC, or will this only be a factor if physical RAM has been exhausted?
[06:21:14] baweaver: Ox0dea: Didn't 2.2 get symbol GC?
[06:21:21] snowkidind: has joined #ruby
[06:21:22] baweaver: ACTION has only skimmed that part.
[06:21:45] ght: I realize if physical RAM has been exhausted and the host is disk thrashing via hitting the swap, that's would certainly affect performance.
[06:21:56] Ox0dea: baweaver: Aye, that must've been the one; I used "2.x" because I wasn't sure.
[06:22:10] lucyinthesky: has left #ruby: ("Leaving")
[06:22:14] [k-: ACTION asserts that it is from 2.2
[06:22:15] baweaver: Rails made a big todo about it for 5.0
[06:22:34] Ox0dea: Just to_sym, it seems: https://eval.in/417325
[06:24:21] workmad3: has joined #ruby
[06:26:04] ght: Is the best method for calling GC simply GC.start? Is that the recommended method in general?
[06:26:07] einarj: has joined #ruby
[06:26:11] Ox0dea: That's how to kick off GC, yes.
[06:26:21] ght: Ox0dea: Thank you.
[06:26:27] [k-: you probably dont need to use it
[06:26:45] Ox0dea: >> Symbol.all_symbols.select { |s| s.size == 1 }.sort.join
[06:26:46] ruboto: Ox0dea # => "!\"\#$%&'()*+,-./:;<=>?@EI[\\]^_`abdefhikmnopqrsvwx{|}~" (https://eval.in/417327)
[06:26:51] ght: Ok, I just noticed one of my apps that deals with a fair amount of user data was consuming a LOT of RAM.
[06:26:52] Ox0dea: That's kind of interesting.
[06:27:04] ght: and I assume it's all the temporary local vars I declare in these functions.
[06:27:09] Ox0dea: I wonder why c, g, j, l, t, u, y, and z are absent.
[06:27:12] ght: I'm sure this codebase could be optimized.
[06:31:32] [k-: Ox0dea: thats because they arent used
[06:31:37] jxcode: has joined #ruby
[06:31:47] daynaskully: has joined #ruby
[06:31:49] [k-: no def c; :c or whatever
[06:31:53] baweaver: If you _really_ have issues with RAM / speed, Ruby may not be the best idea.
[06:32:13] ght: One last question regarding this: If you inadvertantly end up calling GC.start multiple times in a loop, A) does GC.start freeze execution until garbage colleciton is complete?
[06:32:13] framling: has joined #ruby
[06:32:30] ght: And B) If not, will multiple GC instances begin overlapping and causing issues of their own?
[06:32:33] Ox0dea: [k-: Which class do you reckon has an #a method?
[06:32:51] Ox0dea: ght: Ruby's GC "stops the world".
[06:32:56] ght: haha, ok.
[06:33:05] ght: Thank you Ox0dea.
[06:33:07] Ox0dea: That's actually the technical term, I think.
[06:33:09] leat: has joined #ruby
[06:33:09] Ox0dea: Happy to help.
[06:33:46] PhantomSpank: has joined #ruby
[06:33:47] [k-: Ox0dea: i dont know, but i bet you'd find out
[06:34:47] Ox0dea: [k-: I suspect there isn't one, at least not in any of the classes that're defined at program start.
[06:35:04] Ox0dea: I understand the absence of the less common letters like J and Z, but C is pretty damned common.
[06:35:41] [k-: when i think of c i think of cats
[06:35:55] Ox0dea: ETAOIN SHRDLUC.
[06:37:03] shock_one: has joined #ruby
[06:40:54] havenwood: has joined #ruby
[06:41:59] Ox0dea: This is pretty great: https://gist.github.com/0x0dea/4830a46e7b2502efe160
[06:43:05] phutchins1: has joined #ruby
[06:43:34] Ox0dea: It does rely on the nonexistence of a file named " " in the current directory, though.
[06:44:35] michael_mbp: has joined #ruby
[06:45:19] kachi8: has joined #ruby
[06:45:40] khebbie: has joined #ruby
[06:46:41] nsuke: has joined #ruby
[06:48:56] choke: has joined #ruby
[06:49:33] ght: Question: if you declare a hash like myhash = { "Val1" => 100, "Val2" => nil, "Val3" => 200 }, will a GC.start elimnate the "Val2" element of the hash, or does the Val2 element really exist at all in the first place?
[06:49:42] ght: eliminate*
[06:50:57] TomyLobo: has joined #ruby
[06:50:59] casadei_: has joined #ruby
[06:52:09] [k-: it will not be eliminated
[06:52:21] ght: [k-: Thank you
[06:52:44] pawnbox: has joined #ruby
[06:53:19] Ox0dea: ght: Nonexistence and nil are quite different things.
[06:53:36] Ox0dea: >> [defined?(a), a = nil, defined?(a)]
[06:53:37] ruboto: Ox0dea # => [nil, nil, "local-variable"] (https://eval.in/417329)
[06:54:10] ght: I see, very nice, thank you Ox0dea.
[06:54:15] Ox0dea: Sure thing.
[06:54:23] ght: It's very nice of you Ruby experts to hang around and help up-and-comers like myself.
[06:54:35] ght: Saves me hours of research sometimes, so really, thank you.
[06:54:44] robbyoconnor: has joined #ruby
[06:54:50] Ox0dea: MINASWAN.
[06:54:55] skydiver: has joined #ruby
[06:55:55] sameerynho: has joined #ruby
[06:56:04] rickmasta: has joined #ruby
[06:57:45] baweaver: skydiver: DreamInCode?
[06:57:46] lucyinthesky: has joined #ruby
[06:58:19] baweaver: user on there has the same name at least
[07:00:28] Ox0dea: baweaver: Huh, that is indeed the fellow that got me interested in mazes.
[07:00:30] Ox0dea: http://www.jamisbuck.org/mazes/
[07:00:42] Ox0dea: I'm almost certain the book wasn't around when I first stumbled upon his collection there.
[07:00:56] charliesome: has joined #ruby
[07:01:20] ChoiKyuSang: has joined #ruby
[07:01:55] matled-: has joined #ruby
[07:02:04] ekleog: Hey folks, in Logger's documentation, I can't find any mention of multithreading. Should I assume it is thread-unsafe, and two concurrent logs could either "corrupt" the log file or write nonsense in lieu of the two log lines?
[07:02:07] shock_one: has joined #ruby
[07:02:18] jayne_: has joined #ruby
[07:02:30] uxp_: has joined #ruby
[07:02:49] patronus_: has joined #ruby
[07:03:29] [k-: you should assume everything is not thread safe
[07:03:37] baweaver: Ox0dea: it's recent, like within the last few months iirc
[07:03:42] [k-: unless the docs says so
[07:03:54] Zarthus_: has joined #ruby
[07:04:41] ekleog: OK, thanks!
[07:04:50] Ox0dea: ekleog: In this case, though, [k- was overly pessimistic.
[07:05:01] perrier_: has joined #ruby
[07:05:09] Ox0dea: Logger uses the monitor standard library and utilizes a Mutex to ensure thread-safe logging.
[07:05:13] zacts_: has joined #ruby
[07:05:23] jtdowney_: has joined #ruby
[07:05:32] devyn_: has joined #ruby
[07:05:36] fluchtreflex_: has joined #ruby
[07:05:39] akurilin2: has joined #ruby
[07:05:44] shortdudey123_: has joined #ruby
[07:05:46] Urocyon_: has joined #ruby
[07:05:46] alakran: has joined #ruby
[07:05:48] oz`: has joined #ruby
[07:05:52] ericwood_: has joined #ruby
[07:05:55] petersaints_: has joined #ruby
[07:05:55] ccooke_: has joined #ruby
[07:05:55] joneshf-laptop_: has joined #ruby
[07:05:55] gsingh93_: has joined #ruby
[07:05:56] pjaspers: has joined #ruby
[07:05:57] humding3r: has joined #ruby
[07:05:57] DefV_: has joined #ruby
[07:05:58] rfi_: has joined #ruby
[07:06:02] akhkharu: has joined #ruby
[07:06:02] Sp4rKy_: has joined #ruby
[07:06:03] Ox0dea: ekleog: https://github.com/nahi/logger/blob/master/lib/logger.rb#L553
[07:06:04] csmb_: has joined #ruby
[07:06:05] redondos_: has joined #ruby
[07:06:06] [k-: i can still say I'm correct by a long stretch
[07:06:06] finges_: has joined #ruby
[07:06:07] jso-: has joined #ruby
[07:06:10] hfp__work: has joined #ruby
[07:06:10] ltd_: has joined #ruby
[07:06:11] shadeslayer_: has joined #ruby
[07:06:16] rickmasta: has joined #ruby
[07:06:23] ashleyhi1dle: has joined #ruby
[07:06:28] slani_: has joined #ruby
[07:06:33] tommylom1ykins: has joined #ruby
[07:06:38] apeiros_: has joined #ruby
[07:06:41] yarden_: has joined #ruby
[07:06:43] larshaugseth: has joined #ruby
[07:06:50] Roa: has joined #ruby
[07:06:50] sarid: has joined #ruby
[07:06:50] dogeuira: has joined #ruby
[07:06:50] Kruppe: has joined #ruby
[07:06:50] Coraline: has joined #ruby
[07:06:51] irk: has joined #ruby
[07:06:51] Ox0dea: Better still to instill a desire to explore, in my opinion.
[07:06:51] sarid: has joined #ruby
[07:06:51] martinbjeldbak_: has joined #ruby
[07:06:54] ddfreyne_: has joined #ruby
[07:06:57] DifferentLambda: has joined #ruby
[07:06:58] ejnahc_: has joined #ruby
[07:07:01] ekleog: OK, thanks, it's always great to discover undocumented features :)
[07:07:08] spectra-: has joined #ruby
[07:07:16] abdoudjanifresh: has joined #ruby
[07:07:34] Ox0dea: ekleog: I guess it's so sensible that they expected users to take it for given.
[07:08:00] Nuck: has joined #ruby
[07:08:25] xxneolithicxx: has joined #ruby
[07:08:32] chris2: has joined #ruby
[07:09:29] darkxploit: hello.. i just did a rvm upgrade 2.2 but when i do a ruby -v it gives me ruby 1.8.7
[07:10:03] baweaver: rvm use 2.2
[07:10:05] gnarf_: has joined #ruby
[07:10:06] ekleog: Ox0dea: You are right of course, but with <1 week of ruby coding I do not feel ready to delve into ruby's standard library yet
[07:10:08] baweaver: check your path
[07:10:36] jeadr: has joined #ruby
[07:10:46] darkxploit: baweaver, ah ok now i got it
[07:11:00] HexMan: has joined #ruby
[07:11:00] baweaver: make sure you have rvm on your path
[07:11:09] baweaver: or you'll have to keep doing that.
[07:11:22] darkxploit: now ruby -v gives me 2.2
[07:11:52] darkxploit: baweaver, does it mean that i still have that old version of ruby on the server
[07:12:09] baweaver: system ruby, probably
[07:12:25] baweaver: 1.8.7 was RHEL / older OSX for the most part
[07:12:37] baweaver: and if RHEL had it, Centos and friends do too.
[07:12:42] darkxploit: how do i get rid of the old ruby ?
[07:13:08] nanoz: has joined #ruby
[07:13:58] gwendall: has joined #ruby
[07:14:16] baweaver: depending on the OS and other potential wily factors, that could give you nightmares.
[07:14:29] charliesome: has joined #ruby
[07:14:44] j4cknewt: has joined #ruby
[07:15:06] baweaver: rvm use 2.2 --default
[07:15:14] baweaver: that'll keep it that way.
[07:15:34] darkxploit: yes i have reboot the machine its 2.2
[07:15:45] baweaver: good to go then.
[07:16:51] darkxploit: thank you baweaver
[07:18:17] shock_one: has joined #ruby
[07:19:10] shock_one: has joined #ruby
[07:20:10] charliesome: has joined #ruby
[07:20:32] aperios: has joined #ruby
[07:23:37] Oog: has joined #ruby
[07:24:31] TomyLobo: i'm developing a jira fuse driver which accesses the jira api on the backend. so far, I didn't care a lot about avoiding duplicate gets, but i always planned to change that. now i just read that the httparty library i use supports caching modules. is there any in-memory caching module?
[07:24:33] skydiver: has joined #ruby
[07:24:50] ruurd: has joined #ruby
[07:25:22] TomyLobo: i found cachebar, but that requires a redis server. i also found httparty-icebox, but the author deprecated it in favor of cachebar
[07:26:02] khebbie: has joined #ruby
[07:28:27] symm-: has joined #ruby
[07:33:05] iliketurtles: has joined #ruby
[07:34:02] houhoulis: has joined #ruby
[07:37:19] tkuchiki: has joined #ruby
[07:38:04] MrButh: has joined #ruby
[07:38:15] MrButh: I want to use ssh to track my apache2 log to see as people visit my websites, then I want to display that information for the client. Would this be possible using net-ssh and ruby-socket.io?
[07:41:23] skydiver: has joined #ruby
[07:42:23] TomyLobo: that sounds like a shell script to me
[07:42:36] TomyLobo: or a case for backticks
[07:42:39] skydiver: has joined #ruby
[07:43:21] TomyLobo: but usually you'd not use ssh for that
[07:43:37] TomyLobo: but aggregate the logs from all of your cluster in a central place, like a logstash
[07:44:35] MrButh: so like send the logs from all of my servers to a central server every time they are updated?
[07:44:44] MrButh: then tail that file?
[07:45:06] np0: has joined #ruby
[07:46:27] Musashi007: has joined #ruby
[07:47:47] sameerynho: has joined #ruby
[07:47:56] Alina-malina: has joined #ruby
[07:48:50] jhass: ?crosspost MrButh
[07:48:50] ruboto: MrButh, 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.
[07:49:15] ItSANgo: has joined #ruby
[07:49:40] allcentury: has joined #ruby
[07:50:15] ruurd: has joined #ruby
[07:50:46] _blizzy_: has joined #ruby
[07:52:20] MrButh: crossport? is that like a socket gem or something? I can't find anything on Google about it
[07:53:05] MrButh: what does crossporting do?
[07:54:03] MrButh: oh post, crossposting... still not sure how that is supposed to help though
[07:59:03] _blizzy_: has joined #ruby
[08:01:18] workmad3: has joined #ruby
[08:07:41] tkuchiki: has joined #ruby
[08:07:56] Scripore: has joined #ruby
[08:09:00] fantasticsid: has joined #ruby
[08:09:18] sameerynho: has joined #ruby
[08:10:25] rakm: has joined #ruby
[08:11:04] Jackneill: has joined #ruby
[08:12:58] dgutierrez1287: has joined #ruby
[08:14:27] devoldmx: has joined #ruby
[08:15:38] lapide_viridi: has joined #ruby
[08:18:34] rippa: has joined #ruby
[08:25:53] greg: has joined #ruby
[08:26:52] einarj: has joined #ruby
[08:28:18] arup_r: has joined #ruby
[08:30:25] esposito: has joined #ruby
[08:33:06] skydiver: has joined #ruby
[08:35:11] PhantomSpank: has joined #ruby
[08:35:23] greenmang0: has joined #ruby
[08:35:23] greenmang0: has joined #ruby
[08:35:51] eam: has joined #ruby
[08:36:23] greg: has joined #ruby
[08:37:17] greenmang0: has left #ruby: ()
[08:37:19] chinmay_dd: has joined #ruby
[08:38:20] autrilla: has joined #ruby
[08:38:50] babulal: has joined #ruby
[08:39:48] babulal: has left #ruby: ()
[08:40:17] babulal: has joined #ruby
[08:41:00] allcentury: has joined #ruby
[08:42:48] [k-: >> a = "a"; [a.hash, a.hash.hash, a.hash.hash.hash]
[08:42:49] ruboto: [k- # => [728484229, 929771822, 1042016688] (https://eval.in/417334)
[08:43:10] Scripore: has joined #ruby
[08:43:53] yashinbasement: has joined #ruby
[08:43:55] Ox0dea: >> 5.times.reduce([]) { |o| o.singleton_class }
[08:43:56] ruboto: Ox0dea # => #<Class:#<Class:#<Class:#<Class:#<Class:#<Array:0x4177d38c>>>>>> (https://eval.in/417335)
[08:45:57] araujo: has joined #ruby
[08:46:06] [k-: >> 5.times.reduce("a") { |o, i| o.hash + i.hash }
[08:46:07] ruboto: [k- # => -132993006 (https://eval.in/417336)
[08:47:32] Ox0dea: ":o" is the escape sequence for 0x7 (BELL) in LOLCODE.
[08:49:03] [k-: Ox0dea: monkeys could type that sentence perfectly given enough time, monkeys, computers, and parallel universes
[08:49:31] Ox0dea: You can't prove that.
[08:49:37] Ox0dea: Whereas I've got this: https://github.com/justinmeza/lci/blob/master/interpreter.c#L1466-L1467
[08:49:37] psye: has joined #ruby
[08:50:12] eam: has joined #ruby
[08:50:15] araujo: has joined #ruby
[08:50:20] [k-: and i have got a citation
[08:50:22] govg: has joined #ruby
[08:50:22] [k-: https://en.m.wikipedia.org/wiki/Infinite_monkey_theorem
[08:50:39] Ox0dea: https://en.m.wikipedia.org/wiki/Almost_surely
[08:50:42] kachi8: has joined #ruby
[08:51:57] [k-: it will happen
[08:52:04] [k-: just you wait!
[08:52:45] Ox0dea: Why do we need the parallel universes?
[08:52:56] Ox0dea: Ours might be a Big Bouncer.
[08:53:29] apeiros: where else would I find my good twin mirror who saves the world instead of subjugating it? :D
[08:53:55] Ox0dea: apeiros: He's just the other side of our next Big Crunch.
[08:54:00] darkxploit: has joined #ruby
[08:54:10] kachi8: has joined #ruby
[08:55:32] Ox0dea: Alas, dishearten at the realization that the Big Bounce theory is overly optimistic.
[08:56:56] bruno-: has joined #ruby
[08:57:50] krz: has joined #ruby
[08:58:25] towski_: has joined #ruby
[09:00:06] fantasti`: has joined #ruby
[09:02:26] demonlove: has joined #ruby
[09:02:41] Iskarlar: has joined #ruby
[09:03:55] fantasticsid: has joined #ruby
[09:06:32] Motoservo: has joined #ruby
[09:07:01] gard: has joined #ruby
[09:07:22] einarj: has joined #ruby
[09:07:50] Oog: has joined #ruby
[09:08:36] tkuchiki: has joined #ruby
[09:09:11] ramfjord: has joined #ruby
[09:10:33] khebbie: has joined #ruby
[09:16:22] chinmay_dd: has joined #ruby
[09:17:37] Oog: has joined #ruby
[09:20:20] cyperx: has joined #ruby
[09:21:15] youngbaks: has joined #ruby
[09:21:55] Silox|: has joined #ruby
[09:26:35] christiandsg: has joined #ruby
[09:29:17] khebbie: has joined #ruby
[09:31:08] marr: has joined #ruby
[09:35:18] darthez: has joined #ruby
[09:35:55] Oog: has joined #ruby
[09:39:26] hololeap: has joined #ruby
[09:44:58] speaking1ode: has joined #ruby
[09:45:45] pen-soldier: has joined #ruby
[09:47:10] chinmay_dd: has joined #ruby
[09:48:46] skydiver: has joined #ruby
[09:49:24] Oog: has joined #ruby
[09:50:07] workmad3: has joined #ruby
[09:50:23] stamina: has joined #ruby
[09:50:24] da3mian: has joined #ruby
[09:52:21] Iskarlar: has joined #ruby
[09:53:17] ranchodev: has joined #ruby
[09:55:44] arup_r: has joined #ruby
[09:56:08] ndrei: has joined #ruby
[09:56:53] Oog: has joined #ruby
[10:04:04] kachi8: has joined #ruby
[10:05:19] pengin: has joined #ruby
[10:12:43] bruno-: has joined #ruby
[10:15:12] devoldmx: has joined #ruby
[10:17:55] nofxx: has joined #ruby
[10:17:55] nofxx: has joined #ruby
[10:18:54] da3mian: has joined #ruby
[10:27:02] EminenceHC: has joined #ruby
[10:27:03] The_Phoenix: has joined #ruby
[10:27:05] Asher: has joined #ruby
[10:29:39] phutchins1: has joined #ruby
[10:30:28] abdoudjanifresh: has joined #ruby
[10:33:16] khebbie: has joined #ruby
[10:39:42] DoubleMalt: has joined #ruby
[10:41:31] Kabadoo: has joined #ruby
[10:43:14] Kabadoo: Is there something like XAMPP, but with ruby? I would like to start learning ruby, ruby on rails, sql on my local machine.
[10:44:16] jhass: you only need ruby for local development
[10:44:28] jhass: rails can start with a sqlite db
[10:44:42] jhass: development webserver comes with it, you just run it
[10:45:30] tkuchiki: has joined #ruby
[10:46:30] lxsameer_: has joined #ruby
[10:46:52] _blizzy_: has joined #ruby
[10:47:36] shock_one: has joined #ruby
[10:48:01] Kabadoo: I am totally new to this. Some time ago I tried php. Xampp came with nice mysql database gui (easy for beginner). I suspect that there is no gui for sqlite db.
[10:48:48] banister: has joined #ruby
[10:48:56] jhass: there are some, but you don't really need it
[10:49:16] jhass: with rails you write your migrations (= things that create the database tables) in Ruby
[10:49:47] jhass: and it has some cli tool to generate the basic stuff anyhow
[10:50:18] lxsameer: has joined #ruby
[10:50:18] lxsameer: has joined #ruby
[10:51:24] Kabadoo: Ok, thanks for your help. Will ask for help, when I eventually hit a wall.
[10:51:48] jhass: also note
[10:51:50] ruboto: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[10:52:33] jhass: Kabadoo: know any programming languages yet? if you not you might want to start out with something like Chris Pine's Learn to program
[10:55:22] _blizzy_: has joined #ruby
[10:55:40] yh: has joined #ruby
[10:56:48] pawnbox: has joined #ruby
[10:58:44] bartj3: has joined #ruby
[10:59:36] workmad3: has joined #ruby
[11:00:17] darix: https://bugs.ruby-lang.org/issues/11448 - interesting bug
[11:00:18] Wolland: has joined #ruby
[11:01:27] Oog: has joined #ruby
[11:03:06] jhass: mmh, maybe the internal structures just grow so appending stuff becomes more expensive?
[11:03:33] VeganGreg: has joined #ruby
[11:04:17] tvw: has joined #ruby
[11:04:49] khebbie: has joined #ruby
[11:05:25] quimrstorres: has joined #ruby
[11:07:19] PooPooBoy: has joined #ruby
[11:08:30] Oka: has joined #ruby
[11:09:04] lkba: has joined #ruby
[11:09:54] workmad3: has joined #ruby
[11:12:21] sameerynho: has joined #ruby
[11:13:26] khebbie: has joined #ruby
[11:14:23] last_staff: has joined #ruby
[11:14:53] nanoz: has joined #ruby
[11:15:05] alexherbo2: has joined #ruby
[11:15:32] christiandsg: has joined #ruby
[11:16:29] PlasmaStar: has joined #ruby
[11:17:12] nanoz: http://tryruby.org/levels/3/challenges/5 , they use lines to divide
[11:17:30] nanoz: can we use poem.chars?.to_a
[11:17:36] nanoz: but it doesnt work
[11:18:34] jhass: >> s = "foo\nbar"; [s.lines, s.chars] # nanoz not the same
[11:18:35] ruboto: jhass # => [["foo\n", "bar"], ["f", "o", "o", "\n", "b", "a", "r"]] (https://eval.in/417368)
[11:19:17] yashinbasement: has joined #ruby
[11:19:42] [k-: i didnt know ruby had lines o_O
[11:20:14] jhass: [k-: oh the books we can fill with what both of us don't know
[11:20:24] ruurd: has joined #ruby
[11:20:28] quimrstorres: has joined #ruby
[11:21:38] sdothum: has joined #ruby
[11:22:13] majjoha: has joined #ruby
[11:22:27] nanoz: jhass did u go thru the link
[11:22:41] jhass: some time ago
[11:22:45] nanoz: it doesnt work at all it gives error
[11:22:51] jhass: didn't find anything confusing back then
[11:22:56] nanoz: > poem.chars?.to_a
[11:22:56] nanoz: #<NoMethodError: undefined method `chars' for #<String:0x425fdfa5>>
[11:23:20] jhass: in your local Ruby?
[11:23:22] jhass: what's your ruby -v?
[11:23:27] [k-: you have a weird character at the end of chars
[11:23:29] jhass: sounds like it's beyond ancient
[11:23:37] nanoz: in tryruby.org
[11:23:42] [k-: chars<weirdchar>.to_a
[11:23:58] jhass: well, tryruby is all fake actually
[11:23:59] [k-: you know, like this ???
[11:24:10] jhass: stick to the examples and get a local irb or pry to experiment
[11:24:42] [k-: >> "chars???".length
[11:24:43] ruboto: [k- # => 6 (https://eval.in/417374)
[11:25:10] nanoz: jhass really its fake ?
[11:25:15] kachi8: has joined #ruby
[11:25:20] jhass: pretty much from what I can tell
[11:25:50] accacin: has joined #ruby
[11:26:44] [k-: chars is actually only 5 letters :s
[11:29:42] gwendall: has joined #ruby
[11:30:03] zenguy_pc: has joined #ruby
[11:30:04] nanoz: [k-, what made u to shift from java to ruby ?
[11:30:27] [k-: i forgot
[11:30:27] Guest65: has joined #ruby
[11:30:36] [k-: java is horrible anyway
[11:30:44] abdoudjanifresh: has joined #ruby
[11:31:04] nanoz: its no 1 language :/
[11:31:31] yeticry: has joined #ruby
[11:31:35] jhass: nanoz: not because of its beauty or so
[11:31:46] jhass: nanoz: Sun just did a good job to sell it to management
[11:32:04] [k-: javascript gained popularity because it had java in its name
[11:32:20] nanoz: nope! js is really cool
[11:32:22] [k-: we should call ruby JavaX
[11:32:25] jhass: and now you have a huge ecosystem and many applications that need continued maintenance
[11:32:32] jhass: fueling the need for new java devs
[11:33:02] [k-: nanoz: that is really true.
[11:33:03] wasamasa: [k-: there is a javax package
[11:33:15] wasamasa: for mail and whatnot
[11:33:18] jhass: nanoz: https://www.youtube.com/watch?v=83_rC1FesOI for some history on JS
[11:33:30] wasamasa: https://javamail.java.net/nonav/docs/api/javax/mail/internet/MimeMessage.html
[11:34:50] [k-: Java9000
[11:34:58] [k-: its over 9000!
[11:35:10] wasamasa: jruby did have a 9000 release?
[11:35:20] jhass: well, 9.0.0
[11:35:23] wasamasa: http://blog.jruby.org/2015/07/jruby_9000/
[11:36:51] skydiver: has joined #ruby
[11:37:05] quimrstorres: has joined #ruby
[11:40:21] bruno-: has joined #ruby
[11:41:45] j4cknewt: has joined #ruby
[11:42:12] quimrstorres: has joined #ruby
[11:43:09] last_staff: has joined #ruby
[11:43:22] iateadonut: has joined #ruby
[11:43:51] lapide_viridi: has joined #ruby
[11:44:08] timonv: has joined #ruby
[11:46:25] VeganGreg: has joined #ruby
[11:46:27] tkuchiki: has joined #ruby
[11:50:38] spacemud: has joined #ruby
[11:51:48] banister: has joined #ruby
[11:51:50] FernandoBasso: has joined #ruby
[11:52:35] bartj3: has joined #ruby
[11:52:58] ndrei: has joined #ruby
[11:53:13] sevenseacat: has joined #ruby
[11:53:41] davedev24: has joined #ruby
[11:53:57] zenguy_pc: has joined #ruby
[11:55:24] bartj3: has joined #ruby
[11:56:13] kirun: has joined #ruby
[11:56:39] nfk: has joined #ruby
[11:58:02] quimrstorres: has joined #ruby
[11:58:05] allcentury: has joined #ruby
[11:58:54] bronson: has joined #ruby
[12:00:58] devoldmx: has joined #ruby
[12:01:01] shock_one: has joined #ruby
[12:02:11] gwendall: has joined #ruby
[12:02:43] charliesome: has joined #ruby
[12:02:54] banister: has joined #ruby
[12:06:02] Mon_Ouie: has joined #ruby
[12:07:05] bartj3: has joined #ruby
[12:08:55] quimrstorres: has joined #ruby
[12:09:58] pawnbox_: has joined #ruby
[12:10:07] bartj3: has joined #ruby
[12:12:22] roolo: has joined #ruby
[12:12:34] robh71: has joined #ruby
[12:16:13] bartj3: has joined #ruby
[12:17:24] quimrstorres: has joined #ruby
[12:17:52] bartj3: has joined #ruby
[12:19:15] ndrei: has joined #ruby
[12:20:43] banister: has joined #ruby
[12:22:20] alphaatom: has joined #ruby
[12:23:34] alphaatom: has joined #ruby
[12:27:28] lxsameer_: has joined #ruby
[12:27:49] alphaatom: has joined #ruby
[12:29:08] alphaatom: has joined #ruby
[12:29:43] bartj3: has joined #ruby
[12:30:54] alphaatom: has joined #ruby
[12:31:17] einarj: has joined #ruby
[12:31:48] sameerynho: has joined #ruby
[12:32:22] alphaatom: has joined #ruby
[12:36:23] BloodyHistory: has joined #ruby
[12:36:34] tkuchiki: has joined #ruby
[12:36:40] quimrstorres: has joined #ruby
[12:37:15] Peteykun: has joined #ruby
[12:39:06] skydiver: has joined #ruby
[12:40:23] SCHAAP137: has joined #ruby
[12:42:13] Iskarlar: has joined #ruby
[12:43:03] Kabadoo: has joined #ruby
[12:43:49] tkuchiki: has joined #ruby
[12:43:54] frozen3: has joined #ruby
[12:45:04] Oog: has joined #ruby
[12:45:56] hj2007: has joined #ruby
[12:47:06] ruurd: has joined #ruby
[12:48:46] redondos_: has joined #ruby
[12:49:40] Kabadoo: has joined #ruby
[12:49:45] charliesome: has joined #ruby
[12:50:41] last_staff: has joined #ruby
[12:54:23] millerti: has joined #ruby
[12:57:03] millerti: has joined #ruby
[12:58:39] Scripore: has joined #ruby
[12:58:40] workmad3: has joined #ruby
[12:59:55] User458764: has joined #ruby
[13:01:17] christiandsg: has joined #ruby
[13:03:54] FernandoBasso: has joined #ruby
[13:04:14] quimrstorres: has joined #ruby
[13:04:36] Avonis: has joined #ruby
[13:04:55] nanoz: https://www.bloc.io/ruby-warrior/
[13:06:29] psye: has joined #ruby
[13:07:02] kachi8: has joined #ruby
[13:07:03] belteshazzar: has joined #ruby
[13:08:06] astrobunny: has joined #ruby
[13:08:22] DoubleMalt: has joined #ruby
[13:08:26] cornerma1: has joined #ruby
[13:12:32] last_staff: has joined #ruby
[13:14:12] last_staff: has joined #ruby
[13:14:13] dorei: has joined #ruby
[13:15:32] last_staff: has joined #ruby
[13:16:06] DLSteve: has joined #ruby
[13:17:16] aspiers: has joined #ruby
[13:17:21] shock_one: has joined #ruby
[13:18:00] quimrstorres: has joined #ruby
[13:18:54] charliesome: has joined #ruby
[13:20:35] astrobunny: has joined #ruby
[13:20:55] last_staff: has joined #ruby
[13:23:15] lannonbr: has joined #ruby
[13:24:40] sudarshan: has joined #ruby
[13:25:39] charliesome: has joined #ruby
[13:29:35] iateadonut: has joined #ruby
[13:30:44] shock_one: has joined #ruby
[13:32:17] quimrstorres: has joined #ruby
[13:35:59] skydiver: has joined #ruby
[13:36:18] frozen3: has joined #ruby
[13:37:46] rbennacer: has joined #ruby
[13:38:07] ledestin: has joined #ruby
[13:39:21] last_staff: has joined #ruby
[13:39:31] quimrstorres: has joined #ruby
[13:39:54] houhoulis: has joined #ruby
[13:40:28] rbennacer: has joined #ruby
[13:40:56] sinkensabe: has joined #ruby
[13:42:28] Rollabunna: has joined #ruby
[13:42:36] fantasticsid: has joined #ruby
[13:43:11] phutchins1: has joined #ruby
[13:43:23] Iskarlar: has joined #ruby
[13:44:17] alfajor: has joined #ruby
[13:44:19] chipotle: has joined #ruby
[13:44:37] last_staff: has joined #ruby
[13:46:43] banister: has joined #ruby
[13:48:52] startupality: has joined #ruby
[13:51:17] last_staff: has joined #ruby
[13:52:58] Narzew: has joined #ruby
[13:53:05] Rutix: has joined #ruby
[13:53:05] Rutix: has joined #ruby
[13:53:20] claw: has joined #ruby
[13:54:23] fantasti`: has joined #ruby
[13:54:45] psayian: has joined #ruby
[13:55:47] psayian: Is there a ruby version of shellcheck.net? Also, I am doing the ruby training in code academy how well does that prepare someone who wants to make a career out of ruby?
[13:56:27] Mia: has joined #ruby
[13:57:08] al2o3-cr: psayian: eval.in
[13:58:20] last_staff: has joined #ruby
[13:58:23] psayian: Got it thanks al2o3-cr . It took me a second to realize what that was though.
[13:58:29] [k-: psayian: you should get a book
[13:58:34] quimrstorres: has joined #ruby
[13:58:43] psayian: Yes, I was recommended the well grounded rubyist.
[13:58:57] psayian: [k-: I will get that one when my paycheck comes in.
[13:59:30] christiandsg: has joined #ruby
[14:01:21] AndyBotwin: has joined #ruby
[14:01:45] devoldmx: has joined #ruby
[14:01:58] psayian: [k-: Do you recommend thsi book as well?
[14:02:25] [k-: i have not read any books :s
[14:02:42] kappy: has joined #ruby
[14:03:09] psayian: [k-: So how did you learn?
[14:03:45] [k-: i really would advise you to read a bool
[14:04:07] psayian: [k-: Understood, but how did you learn?
[14:04:24] robh71: has joined #ruby
[14:04:34] [k-: stackoverflow, bits and pieces from the internet
[14:04:40] [k-: "on demand"
[14:05:07] [k-: and codewars.com
[14:06:09] quimrstorres: has joined #ruby
[14:11:46] nanoz: what is codewars ?
[14:12:37] [k-: the link is provided for your convenience
[14:14:34] lannonbr: has joined #ruby
[14:15:10] last_staff: has joined #ruby
[14:17:31] ejnahc: has joined #ruby
[14:20:00] sphex: has joined #ruby
[14:21:38] Scripore: has joined #ruby
[14:21:42] thmzlt: has joined #ruby
[14:21:44] dopie: has joined #ruby
[14:22:04] al2o3-cr: codewars is pretty cool (increase your kata) :)
[14:25:46] nklv: has joined #ruby
[14:27:01] kachi8: has joined #ruby
[14:30:58] Scripore: has joined #ruby
[14:31:29] allcentury: has joined #ruby
[14:32:16] quimrstorres: has joined #ruby
[14:33:18] banister: has joined #ruby
[14:33:41] rbennacer: has joined #ruby
[14:33:56] [spoiler]: I never heard of codewars before, but it seems cool!
[14:36:17] jeadr: has joined #ruby
[14:37:30] saddad: has joined #ruby
[14:38:08] alphaatom: has joined #ruby
[14:40:49] startupality: has joined #ruby
[14:41:20] rbennacer: has joined #ruby
[14:41:35] siempref_: has joined #ruby
[14:43:21] VeganGreg: has joined #ruby
[14:47:25] workmad3: has joined #ruby
[14:49:53] Rollabunna: has joined #ruby
[14:50:05] quimrstorres: has joined #ruby
[14:52:24] snowkidind: has joined #ruby
[14:52:53] tmtwd: has joined #ruby
[14:53:25] MyMind: has joined #ruby
[14:53:48] sepp2k: has joined #ruby
[14:54:02] ascarter: has joined #ruby
[14:54:17] ruurd: has joined #ruby
[14:55:36] MrButh: has joined #ruby
[14:57:05] mhib: has joined #ruby
[14:57:33] _socialjackie: has joined #ruby
[14:58:32] tkuchiki: has joined #ruby
[15:01:41] sarkyniin: has joined #ruby
[15:02:24] j4cknewt: has joined #ruby
[15:02:38] Kalov: has joined #ruby
[15:04:21] dEPy: has joined #ruby
[15:05:26] Rollabunna: has joined #ruby
[15:10:59] gard: has joined #ruby
[15:12:03] hashrocket: has joined #ruby
[15:12:37] startupality: has joined #ruby
[15:13:39] havenwood: has joined #ruby
[15:16:14] Maletor: has joined #ruby
[15:16:43] snowkidind: are there syntax rules as related to empty spaces? I just overcame a bug where i needed to remove white spaces??
[15:17:09] Mon_Ouie: ?code snowkidind
[15:17:09] ruboto: snowkidind, We can't help you without your code, please post it to https://gist.github.com
[15:17:20] snowkidind: i already fized it
[15:17:38] jhass: still, show what the error was and what produced it
[15:17:39] snowkidind: it was a yml file
[15:17:55] Scripore: has joined #ruby
[15:17:59] jhass: ah well, yml is whitespace sensitive, yes
[15:18:01] snowkidind: four blank spaces before a line instead of two
[15:18:04] jhass: YAML is not Ruby though
[15:18:14] einarj: has joined #ruby
[15:18:18] snowkidind: is that some rails thing?
[15:18:22] snowkidind: just learning it
[15:18:53] diegoviola: has joined #ruby
[15:18:58] Mon_Ouie: No, YAML is a language to lay out data, often used for e.g. configuration files
[15:19:30] jhass: http://yaml.org/
[15:20:33] VeganGreg: has joined #ruby
[15:20:41] nanoz: weird ruby instead of call it as ruby!
[15:20:46] snowkidind: is any language besides ruby actually adopting it?
[15:21:05] chouhoulis: has joined #ruby
[15:21:24] jhass: frameworks rather, but yeah
[15:21:48] jhass: it's really just a markup language, like XML or JSON
[15:22:04] MrButh: I want to setup a Ruby site to monitor log files on other servers live as I watch, what would a good method of doing that be?
[15:22:25] MrButh: I was going to use ssh and tail -f then socket to send to the client
[15:22:33] snowkidind: theres a command for that
[15:22:43] snowkidind: i think thats it
[15:23:03] MrButh: but someone said that wouldn't be the best idea
[15:23:20] fstr: has joined #ruby
[15:23:30] snowkidind: just pipe it into grep
[15:23:39] snowkidind: so that all you get are the ones you want
[15:24:15] fstr: Is there any way I can get the base of a Fixnum? For example 0123 -> base 8, 0b123 base 2
[15:24:17] MrButh: yeah, I think it would work with the net-ssh and a ruby socket.io setup, I'm just wondering if maybe there is a better way that I do not know
[15:25:11] MrButh: perhaps instead of ssh'ing to the servers, have the servers send updates to the central server whenever they get log updates?
[15:25:27] rbennacer: has joined #ruby
[15:25:44] Mon_Ouie: fstr: You're confusing representation with value. 3 and 0b11 are the same objects. Those are just two way of writing the same thing.
[15:25:45] snowkidind: thanks for clearing my YAML question up guys
[15:25:48] chouhoulis: has joined #ruby
[15:25:51] roolo: has joined #ruby
[15:26:46] quimrsto_: has joined #ruby
[15:28:18] fstr: What I basically want is, to output my Fixnum as a String. It's provided from a config file by users, but then interpreted by ruby as Fixnum. Users provide the file permissions, which can be 0666 or 666.
[15:28:45] fstr: So without knowing the base, I can't use 0666.to_s(8) reliably, if someone provides 666
[15:29:12] snowkidind: So is Haml just a modern day copy of Yaml
[15:29:31] [spoiler]: snowkidind: wat
[15:29:41] [spoiler]: snowkidind: not at all
[15:29:42] snowkidind: diff Haml YAML
[15:30:13] rickmasta: has joined #ruby
[15:30:30] snowkidind: oh Haml is just pretty html
[15:30:38] [spoiler]: Hamls stands for "HTML abstraction markup language" while YAML stands for "YAML Ain't Another Markup Language"
[15:30:38] Mon_Ouie: fstr: I don't know what you're trying to do. Can you show some example of inputs and expected outputs?
[15:30:40] snowkidind: sorry for typing before i think
[15:31:04] [spoiler]: (YAML is a recursive acronym)
[15:31:13] nanoz: method contains question mark | exclamation mark what is going onnnnn
[15:31:21] snowkidind: but Haml still has whitespace rules like YAML no?
[15:31:28] [spoiler]: nanoz: it's just part of the method name
[15:31:42] [spoiler]: Method names in Ruby can contain =, ? and !
[15:31:47] [spoiler]: (and maybe I am forgetting something)
[15:32:08] [spoiler]: snowkidind: what do you mean?
[15:32:24] [spoiler]: oh, meaningful indentation? Yes
[15:32:35] fstr: I'm using a puppet module. Users provide a config setting (file_mode) from a YAML file. Since there's no requirement in YAML to put 0666 in quotes, ruby will interpret it as a Fixnum. So in later processing when the Fixnum is written to the target file, it's not the file_mode the user expected.
[15:32:57] [spoiler]: fstr: to_s?
[15:33:00] Mon_Ouie: Usually methods ending with a question mark are predicates (things that return either true or false) and those ending with an exclamation mark are variants of a method of the same name without the exclamation mark
[15:33:07] fstr: Because 0666 is actually 438
[15:33:11] saddad: has joined #ruby
[15:33:21] snowkidind: my opinion on this is jagged
[15:33:27] [spoiler]: oh because octal
[15:33:37] fstr: spoiler: to_s would work fine, if I would know the base of the Fixnum
[15:34:01] [spoiler]: fstr: hmm use 438.to_s 8
[15:34:20] snowkidind: its like when assembly code was there the spaces actually meant something. then oo lang came around and people could apply their own code writing style. now i have to conform to spacing rules?
[15:34:40] snowkidind: seems archaic
[15:34:41] [spoiler]: is there no way to get the string value? I can't remember now, sorry
[15:34:45] fstr: Easiest solution would be to force the users to use one format, or put the config setting in quotes. But it would be more elegeant if I could provide a YAML conform solution and not force users to use either 0666 or 666 exclusively
[15:35:28] Mon_Ouie: Again, a fixnum has no base. A representation as a string of a number has a base. You can check the contents of the string that the user provided for its base if you want to use the same one.
[15:35:28] [spoiler]: snowkidind: python and coffeescript have MWS (meaningful whitespace/indentations), too. It's a choice of language design
[15:36:21] Mon_Ouie: snowkidind: What kind of assembler has meaningful indentation and what does OO have to do with any of that?
[15:36:25] [spoiler]: If you don't like HAML, you can use ERB (I myself am not a fan of HAML for the very reason of MWS)
[15:37:33] [spoiler]: snowkidind: actually, that statement is not completely true. I sometimes prefer Haml over ERB. Depends on what I want to do, I suppose.
[15:37:38] snowkidind: my query is in understanding the motivation behind it???s application in ruby, a language that is designed to be simple
[15:37:50] jeadr: has joined #ruby
[15:38:02] snowkidind: like??? whitespace bugs are a bitch
[15:38:09] [spoiler]: snowkidind: it's motivation is to be DRY-er
[15:39:34] Mon_Ouie: Missing closing parenthesis and unindented code blocks are just as problematic
[15:39:48] snowkidind: at least you can see them
[15:39:50] allcentury: has joined #ruby
[15:40:16] christiandsg: has joined #ruby
[15:40:26] [k-: you can see whitespace too
[15:40:27] fstr: Mon_Ouie: Thanks, but that's probably somewhere in the Puppet code. At the point I'm getting the variables, it's already a Fixnum
[15:40:33] snowkidind: i guess that is why all the ruby people are using sublime text
[15:41:16] snowkidind: i do a bunch of unicode stuff and sublime text doesnt render my stuff. But i found textMate to give me what i want
[15:41:25] snowkidind: use bbedit mostly though
[15:42:31] snowkidind: [k: yes but its a distraction
[15:44:33] juanca_: has joined #ruby
[15:45:14] gard: has joined #ruby
[15:45:24] tkuchiki: has joined #ruby
[15:46:44] MrButh: for Ruby on Rails with sockets would you guys recommend anything? I heard Faye was good, anyone who can confirm that?
[15:46:54] MrButh: er Ruby with sockets*
[15:46:59] MrButh: Rails doesn't matter
[15:48:09] [k-: > whitespace a distraction
[15:48:24] [k-: do you even know what you are saying
[15:48:28] pawnbox: has joined #ruby
[15:49:36] chabil: has joined #ruby
[15:51:06] TomyLobo: >> require 'date'; DateTime.parse('2015-07-29T10:25:51.092+0000').to_time.to_i # This seems overly complicated, is there an easier way
[15:51:07] ruboto: TomyLobo # => 1438165551 (https://eval.in/417404)
[15:52:06] jhass: >> require "time"; Time.parse("2015-07-29T10:25:51.092+0000").to_i
[15:52:07] ruboto: jhass # => 1438165551 (https://eval.in/417405)
[15:52:20] snowkidind: that was for mr [k Tomy
[15:55:26] TomyLobo: >> require 'date'; Date.parse('2015-07-29T10:25:51.092+0000').to_time.to_i # oh look there's a 3rd class for the same purpose
[15:55:27] ruboto: TomyLobo # => 1438128000 (https://eval.in/417406)
[15:56:17] al2o3-cr: that doesn't give same result
[15:56:18] bweston92: has joined #ruby
[15:56:31] TomyLobo: yeah, cause it doesnt have a time component i guess
[15:56:35] ascarter: has joined #ruby
[15:56:39] TomyLobo: so why does Time have a date component then?
[15:56:48] timanema: has joined #ruby
[15:57:34] jhass: >> require "datetime"; [Time.now + 1, DateTime.now + 1]
[15:57:35] ruboto: jhass # => cannot load such file -- datetime (LoadError) ...check link for more (https://eval.in/417407)
[15:57:39] houhoulis: has joined #ruby
[15:57:42] jhass: >> require "date"; [Time.now + 1, DateTime.now + 1]
[15:57:43] ruboto: jhass # => [2015-08-16 15:57:44 +0000, #<DateTime: 2015-08-17T15:57:43+00:00 ((2457252j,57463s,98207711n),+0s,2 ...check link for more (https://eval.in/417408)
[15:58:15] Spami: has joined #ruby
[16:01:57] [spoiler]: snowkidind: Please try not to make such assumptions (that [k- is a dude). I'm not telling you off, but if he weren't a dude, you could've offended someone :P
[16:02:03] DexterLB: has joined #ruby
[16:02:30] devoldmx: has joined #ruby
[16:02:47] hmsimha_: has joined #ruby
[16:03:06] snowkidind: really? i will plead the trump on that
[16:03:35] solars: has joined #ruby
[16:04:08] [k-: it is rude to drop the - off my name
[16:04:36] [spoiler]: snowkidind: How'd you feel if I started referring to you as miss? :P
[16:05:14] snowkidind: go ahead, within this context you will look like an ass
[16:05:42] skydiver: has joined #ruby
[16:05:48] [k-: now, now, neutral language please
[16:05:56] nanoz: i dont like ruby its hard !
[16:06:05] frozen3: has joined #ruby
[16:06:30] houhoulis: has joined #ruby
[16:07:21] shevy: nanoz in most cases you can simplify stuff
[16:08:08] [k-: nanoz: you learnt java right?
[16:08:17] lannonbr: has joined #ruby
[16:08:31] BillSussman: has joined #ruby
[16:08:43] [spoiler]: [k- we don't speak the J-word here.
[16:08:49] soulcake: has joined #ruby
[16:09:23] shevy: ruby is part of the j family
[16:09:24] [k-: is this censorship?!
[16:10:00] jhass: !fact mk censorship https://xkcd.com/1357
[16:10:00] ruboto: jhass, I will remember that censorship is https://xkcd.com/1357
[16:10:07] nanoz: it took many years [k-
[16:10:12] [spoiler]: [k-, no, it is not. It is for your own good
[16:10:53] MrButh: anyone here used Faye before?
[16:10:58] RobertBirnie: has joined #ruby
[16:11:00] al2o3-cr: !censorship
[16:11:06] al2o3-cr: ?censorship
[16:11:06] ruboto: https://xkcd.com/1357
[16:11:15] [spoiler]: jhass: good one :P
[16:12:07] havenwood: MrButh: Having Faye trouble?
[16:13:33] cashnguns: has joined #ruby
[16:14:20] [k-: [spoiler] so you shown me the door? :o!
[16:15:16] [spoiler]: [k- nonsense! I love you, just don't use the J-word. :P
[16:15:25] nanoz: [k-, some said you can learn ruby in days ... After seeing the api doc >> HELL NO!
[16:16:08] havenwood: nanoz: https://www.gliffy.com/go/publish/5152080
[16:16:17] wasamasa: nanoz: http://www.norvig.com/21-days.html
[16:16:30] bradland: nanoz: the problem is having "learned" something is a subjective evaluation
[16:16:42] [k-: shevy: Oracle nanoz: One must be patient when learning, or he shall not receive enlightenment
[16:16:47] bradland: it's not black & white
[16:17:04] [spoiler]: nanoz: you can learn the very basics of it, you can't learn anything properly in a few days (not even hangul, even though people claim it is so)
[16:17:04] bradland: i've been writing ruby for +10 years, and i haven't come close to learning it 100%
[16:17:53] [k-: bradland: you will never reach that goal :3
[16:18:02] [k-: Ruby is always changing!
[16:18:13] bradland: [k-: recognized that a long time ago :)
[16:18:18] bradland: and i'm ok wit hit
[16:18:52] yalue: has joined #ruby
[16:19:22] havenwood: [k-: At least there's a ChangeLog to scan for changes! https://github.com/ruby/ruby/blob/trunk/ChangeLog
[16:19:52] [k-: but where would we find the perlisms of Ruby
[16:20:17] skydiver: Ruby is always changing! :D
[16:20:18] bradland: [k-: everywhere! *pfffh*
[16:20:28] nanoz: atleast i need some fun lrarning this language
[16:20:29] [spoiler]: Not knowing something 100% is what makes it exciting; if you knew it 100% it'd become boring
[16:20:53] havenwood: nanoz: Have you already gone through?: https://github.com/ruby/ruby/blob/trunk/ChangeLog
[16:21:01] havenwood: nanoz: Sry, I meant: http://tryruby.org/levels/1/challenges/0
[16:21:05] havenwood: The former is so much fun!
[16:21:14] VeganGreg: has joined #ruby
[16:21:26] nanoz: k i made poem = "Hello ruby!" than did poem.downcase! didnt work
[16:21:27] havenwood: When I think of fun, I think of ChangeLogs.
[16:21:44] havenwood: >> poem = "Hello ruby!"; poem.downcase
[16:21:45] ruboto: havenwood # => "hello ruby!" (https://eval.in/417410)
[16:22:01] havenwood: nanoz: Give it another try.
[16:22:11] nanoz: poem = "Hello ruby!"; poem.downcase!
[16:22:22] jhass: ?pry nanoz
[16:22:22] ruboto: nanoz, Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting `binding.pry` directly in your source code. Visit https://pryrepl.org/ or get it now with: gem install pry pry-doc
[16:22:22] havenwood: nanoz: => "hello ruby!"
[16:22:23] startupality: has joined #ruby
[16:23:01] havenwood: nanoz: Install Ruby then install Pry: gem install pry pry-doc
[16:23:23] havenwood: nanoz: Then run: pry
[16:23:57] Hanmac: has joined #ruby
[16:24:19] nanoz: >> poem = "Hello ruby!"; poem.downcase!
[16:24:20] ruboto: nanoz # => "hello ruby!" (https://eval.in/417412)
[16:24:38] dopie: has joined #ruby
[16:24:51] havenwood: nanoz: You can run that locally with Pry, and much more. It's a good way to explore the language.
[16:25:04] nanoz: oh! ruboto auto creates everything it needed nice :P
[16:25:25] nanoz: any autocomplete exist here ?
[16:25:51] jhass: nanoz: pry has
[16:26:49] nanoz: i guess every language has IDE like eclipse
[16:26:57] nanoz: sud start using IDE ?
[16:27:16] jhass: most Ruby devs don't use an IDE, just a nice text editor and a shell
[16:28:00] havenwood: nanoz: What OS?
[16:28:40] [spoiler]: jhass: I wonder why that is actually (I noticed myself). I can't *stand* IDEs, but I doubt Ruby influenced it
[16:28:40] havenwood: nanoz: Are you using chocolatey?
[16:29:14] wasamasa: [spoiler]: it's because IDEs are only necessary for languages like java
[16:29:16] jhass: [spoiler]: not enough customization? too many features you don't need packed into the interface?
[16:29:23] havenwood: nanoz: https://chocolatey.org
[16:29:27] Mon_Ouie: Probably just the fact that it's a dynamic language with little boilerplate code
[16:29:44] Mon_Ouie: (former makes such tools harder to write, latter makes them less necessary)
[16:29:58] [spoiler]: wasamasa: I know loads of C and PHP developers who use IDEs at work. I never needed/wanted an IDE while writing C, Ruby or C++
[16:30:25] havenwood: nanoz: Install chocolatey so you have a package manager to install vim, emacs or Atom.
[16:30:29] [spoiler]: (and I don't write PHP, so I can't say if I'd need one there)
[16:30:42] havenwood: nanoz: http://blog.atom.io/2014/07/09/hello-windows.html
[16:30:51] shevy: all the IDEs I used so far had the nasty habit of jumping into my way
[16:31:00] [spoiler]: shevy: that's how I feel, too
[16:31:01] snowkidind: has left #ruby: ()
[16:31:17] [spoiler]: jhass: yeah so many features you trip over them
[16:31:54] [spoiler]: Mon_Ouie: are you saying Ruby is too amazing for IDEs? I'll go with that.
[16:31:57] houhoulis: has joined #ruby
[16:32:41] [k-: hangman marathon in ot
[16:32:48] [k-: come and join!
[16:33:22] chinmay_dd: has joined #ruby
[16:33:53] Cust0sLim3n: has joined #ruby
[16:33:59] einarj: has joined #ruby
[16:34:06] arup_r: has joined #ruby
[16:34:47] EminenceHC: has joined #ruby
[16:34:51] senayar: has joined #ruby
[16:34:51] senayar: has joined #ruby
[16:35:39] Hanmac: [spoiler]: i use an IDE sometimes for my bindings i write in C/C++ for Ruby ... but only its getting a bit to big for a normal editor when i do big changes
[16:35:52] psye: has joined #ruby
[16:36:11] workmad3: has joined #ruby
[16:36:36] quimrstorres: has joined #ruby
[16:38:47] survili: has joined #ruby
[16:39:31] mleung: has joined #ruby
[16:40:38] dseitz: has joined #ruby
[16:40:46] survili: Hi all, I don't understand this line "number = Integer(some_str)" . In this case, Integer is a method with non idiomatic ruby name ? To me it makes sense Integer.new(some_str) or integer(some_str). What am I missing here ?
[16:41:29] apeiros: survili: it's indeed a method
[16:41:32] [k-: &ri Kernel#Integer
[16:41:32] `derpy: http://www.rubydoc.info/stdlib/core/Kernel#Integer-instance_method
[16:41:32] apeiros: Kernel#Integer
[16:41:35] nanoz: i'm also learning linux ill prefer command line
[16:41:38] [spoiler]: survili: the "namespace" for constants and methods is not the same
[16:42:08] survili: [spoiler]: can you explain what you mean by that ?
[16:42:32] survili: apeiros: is it non idiomatic ? I mean, aren't method names supposed to start with small letter ?
[16:42:33] [spoiler]: survili: it means that you can have a class with the same name as a method, like apeiros linked above
[16:42:36] symm-: has joined #ruby
[16:42:47] [spoiler]: survili: it is uncommon, yes
[16:42:55] apeiros: actually [k- linked :)
[16:43:08] [k-: k ninjad aperios
[16:43:20] [spoiler]: [k- oh sorry :)
[16:43:29] aperios: [k-: did you?
[16:43:31] apeiros: survili: it is uncommon. there are some core methods like that. see Kernel. I recall Kernel#String(), #Float() and #Integer()
[16:43:49] [k-: according to my client
[16:44:18] [k-: you! you made my tab complete wrong :(
[16:44:26] j_mcnally: has joined #ruby
[16:44:26] survili: apeiros, [spoiler] - thanks a lot guys! RubyMine wasn't smart enough to find that reference in Kernel, instead it opened class Integer..
[16:44:35] apeiros: ?guys survili
[16:44:35] ruboto: survili, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
[16:44:43] apeiros: hi j_mcnally
[16:44:45] j_mcnally: had a crazy idea wanted to see what everyone thought
[16:45:03] j_mcnally: would it be possible to run Tokaido and Rails on a bare metal docker container
[16:45:07] j_mcnally: the way go apps can
[16:45:25] apeiros: ACTION has no idea on that (tokaido+rails on docker)
[16:45:35] michael_mbp: has joined #ruby
[16:45:46] j_mcnally: might play around with it
[16:46:03] j_mcnally: the major issue i see is support for things like nokogiri that would need dynamically linked libxslt et
[16:46:04] [spoiler]: I don't even know what Tokaido i
[16:46:15] apeiros: is tokaido functioning? I remember an announcement ages ago and then a long time of nothing???
[16:46:48] circ-user-UJKJI: has joined #ruby
[16:46:48] skydiver: It seems Tokaido is a city in Japan
[16:46:59] j_mcnally: ahh i think is might be osx only
[16:47:02] apeiros: skydiver: tokaido.app
[16:47:08] j_mcnally: just a crazy thought like i said
[16:47:17] nanoz: >>poem="Hello world. \n Ruby friends here!";poem.delete!
[16:47:19] tkuchiki: has joined #ruby
[16:47:22] survili: apeiros, ruboto : oops, didn't intend... y'all sounds good :)
[16:47:25] nanoz: >>poem="Hello world. \n Ruby friends here!";poem.delete!
[16:47:26] ruboto: nanoz # => wrong number of arguments (0 for 1+) (ArgumentError) ...check link for more (https://eval.in/417429)
[16:47:44] Mon_Ouie: ?experiment nanoz
[16:47:44] ruboto: nanoz, Please use your local irb or pry (see ?pry) to experiment, ruboto's eval functionality is for demonstration purposes only.
[16:47:58] [k-: o_O, 1+
[16:48:10] nanoz: its not working
[16:48:13] [k-: i never seen that before
[16:48:30] tkuchiki: has joined #ruby
[16:48:38] [k-: all i ever saw was 0..2 or something
[16:48:58] havenwood: j_mcnally: Tokaido ships with a precompiled nokogiri afaik, but yeah OS X.
[16:49:08] jhass: nanoz: it's saying to pass one argument or more, you pass none
[16:49:09] casadei_: has joined #ruby
[16:49:10] [spoiler]: [k- it uses 1+ when there's a splat
[16:49:58] nanoz: i dont understand what should i pass
[16:49:59] sarkyniin: has joined #ruby
[16:50:05] havenwood: j_mcnally: How about a Traveling Ruby?: https://phusion.github.io/traveling-ruby/
[16:50:14] Yzguy: has joined #ruby
[16:50:27] jhass: nanoz: why do you call .delete! ?
[16:50:28] Mon_Ouie: Strings containing the characters you want to remove from your input
[16:50:52] nanoz: to make it empty jhass
[16:51:20] nanoz: so when i type print poem next time it would be empty
[16:51:23] Mon_Ouie: That's called String#clear
[16:51:35] nanoz: why not delete ?
[16:51:36] [spoiler]: nanoz: delete! deletes characters
[16:51:42] jhass: you can also just poem = ""
[16:51:47] shevy: >> "abcdefdaaa".delete 'ab'
[16:51:48] ruboto: shevy # => "cdefd" (https://eval.in/417430)
[16:51:56] shevy: nanoz because you'd have to match to each character
[16:52:05] nanoz: how about regexp in this ?
[16:52:08] jeadr: has joined #ruby
[16:52:13] shevy: regexp will be slower
[16:52:18] [spoiler]: nanoz: regexp won't work I think
[16:52:29] nanoz: >>poem="Hello world. \n Ruby friends here!";poem.delete!("*")
[16:52:29] [spoiler]: You can use use ranges, though
[16:52:30] ruboto: nanoz # => nil (https://eval.in/417431)
[16:52:31] [spoiler]: and negation
[16:52:43] [spoiler]: (check String#count or something like that)
[16:52:52] jhass: you can totally .gsub(/.*/, '') but that's just showing you don't know String#clear
[16:52:54] [spoiler]: there's an explanation on how it works
[16:52:59] nanoz: >>poem="Hello world. \n Ruby friends here!";poem.delete!("*");poem.length
[16:53:00] ruboto: nanoz # => 33 (https://eval.in/417432)
[16:53:06] [k-: >> "abc" =~ /$/ # Ox0dea
[16:53:07] ruboto: [k- # => 3 (https://eval.in/417433)
[16:53:11] havenwood: nanoz: Have you installed Pry yet?
[16:53:17] havenwood: nanoz: Do it! :D
[16:53:19] jhass: nanoz: please, I don't want to mute you, stop using ruboto for experiments
[16:53:26] nanoz: not yet havenwood
[16:53:36] havenwood: nanoz: Make haste!
[16:53:51] Mon_Ouie: Well, some_string.gsub(/.*/, '') is just a long winded way of doing "", clear is different in that it changes the contents of an existing object
[16:54:04] nanoz: can i pm rubuto ? jhass
[16:54:05] rbennacer: has joined #ruby
[16:54:10] [spoiler]: Mon_Ouie: so would gsub! :P
[16:54:19] [spoiler]: Mon_Ouie: but I agree that clear would be better
[16:54:26] jhass: nanoz: you can use http://eval.in directly, but it'd be better to just get a local pry
[16:54:33] Mon_Ouie: #gsub! would, #gsub wouldn't
[16:54:35] [k-: &ri String#replace
[16:54:35] `derpy: http://www.rubydoc.info/stdlib/core/String#replace-instance_method
[16:54:48] [spoiler]: Mon_Ouie: I meant gsub with an exclamation mark
[16:54:54] nanoz: http://repl.it/ ?
[16:55:11] Mon_Ouie: Now I don't know which one you mean
[16:55:15] [spoiler]: Mon_Ouie: it probably looked like punctuation
[16:55:16] jhass: I hate that interface even more than http://eval.in's
[16:55:24] [spoiler]: I see why it was confusing
[16:55:44] jhass: http://carc.in/#/rb :P
[16:55:46] Mon_Ouie: I thought you meant the method called 'String#gsub!', now I don't know what you meant
[16:56:00] [spoiler]: Mon_Ouie: I did mean that method
[16:56:16] [spoiler]: ACTION is confused. :(
[16:57:17] allcentury: has joined #ruby
[16:57:21] Iskarlar: has joined #ruby
[16:58:44] j_mcnally: havenwood: checking
[16:58:50] sarkyniin: has joined #ruby
[16:59:11] [spoiler]: I hate designing stuff *sigh* I am artistically blind, probably
[16:59:44] wasamasa: just keep it minimal
[16:59:50] [spoiler]: wasamasa: I am!
[16:59:50] wasamasa: http://bettermotherfuckingwebsite.com/
[17:01:04] bronson: has joined #ruby
[17:01:58] j_mcnally: so the jvm can run with just busybox
[17:02:13] j_mcnally: so jruby might be a solution to avoid an entire os container too
[17:02:35] j_mcnally: now i have 2 problems
[17:03:00] j_mcnally: thanks for the info guys going to give traveling ruby a shot
[17:03:08] jhass: ?guys j_mcnally
[17:03:08] ruboto: j_mcnally, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
[17:03:24] havenwood: j_mcnally: Either JRuby or Traveling Ruby sound like good options to me!
[17:03:51] j_mcnally: o shit sorry
[17:03:53] michaeldeol: has joined #ruby
[17:04:11] j_mcnally: thank for the info everyone going to give traveling ruby a shot
[17:04:11] raypulver: has joined #ruby
[17:04:21] frozen3: has joined #ruby
[17:04:36] j_mcnally: good call jhass
[17:04:46] havenwood: j_mcnally: I'd be curious to hear how it goes. Good luck!
[17:05:12] j_mcnally: jhass: i honestly do it without thinking it was meant to be inclusive but i totally understand why its wrong
[17:05:21] dr3w: has joined #ruby
[17:05:34] jhass: no worries, just keep it in mind and all is good ;)
[17:06:33] arup_r: ->() came since 1.9?
[17:06:33] gambl0re: has joined #ruby
[17:07:28] havenwood: arup_r: The stabby lambda was introduced in 1.9.
[17:09:42] Musashi007: has joined #ruby
[17:10:13] sdothum: has joined #ruby
[17:10:26] whiteline: has joined #ruby
[17:11:35] rgb-one: has joined #ruby
[17:15:33] [spoiler]: wasamasa: Actually, most of the "guidelines" there hold true, except for the ~80 characters per line; it's closer to 130 - 140
[17:16:03] wasamasa: [spoiler]: if you're writing java maybe
[17:16:19] wasamasa: [spoiler]: feel free to open up a physical book and counting the characters per line
[17:17:19] [spoiler]: wasamasa: No I agree, it *is* too wide, but mostly because I didn't pay attention to the text. Hmm
[17:17:28] wasamasa: [spoiler]: you'll notice that it's even more narrow than that
[17:17:46] wasamasa: [spoiler]: a copy of Elements of Style is around 60 characters for example
[17:18:50] calleerlandsson: has joined #ruby
[17:19:01] blue_deref: has joined #ruby
[17:21:01] [spoiler]: wasamasa: Interesting. It looked weird when I narrowed it to around ~80, but it looks better on ~70
[17:21:12] Rollabunna: has joined #ruby
[17:21:37] bruno-: has joined #ruby
[17:22:47] darkxploit: has joined #ruby
[17:22:47] Cache_Money: has joined #ruby
[17:23:44] alphaatom: has joined #ruby
[17:24:18] wasamasa: [spoiler]: newspapers go even further and use many columns
[17:24:41] [spoiler]: wasamasa: I know, but I find that actually distracting.
[17:24:51] [spoiler]: + it wouldn't really work nicely for blog posts
[17:26:01] Pupp3tm4st3r: has joined #ruby
[17:27:05] dr3w: has joined #ruby
[17:29:05] Avonis: has left #ruby: ("Leaving")
[17:32:24] baweaver: has joined #ruby
[17:33:06] Pisuke: has joined #ruby
[17:35:34] blackmesa: has joined #ruby
[17:38:06] christiandsg: has joined #ruby
[17:45:50] towski_: has joined #ruby
[17:46:14] Rubie: has joined #ruby
[17:47:57] khebbie: has joined #ruby
[17:48:13] christiandsg: has joined #ruby
[17:49:37] gard: has joined #ruby
[17:49:41] youngbaks: has joined #ruby
[17:50:34] saddad: has joined #ruby
[17:51:40] swgillespie: has joined #ruby
[17:52:10] yardenbar: has joined #ruby
[17:52:33] kachi8: has joined #ruby
[17:56:32] j_mcnally: has joined #ruby
[17:56:34] allcentury: has joined #ruby
[17:58:05] rbennacer: has joined #ruby
[17:58:09] dostoyevsky: Hey, when Ruby went from 1.8 to 1.9 I had to apply some changes to my native C extensions, mostly for strings, or unicode stuff... are there changes again with ruby 2, 21, 22 ?
[17:58:52] josh4: has joined #ruby
[17:58:56] vidbina: has joined #ruby
[17:59:00] jhass: possibly, after all the ABI version changed with 2.0, 2.1 and 2.2
[18:00:04] n008f4g_: has joined #ruby
[18:00:07] DLSteve: has joined #ruby
[18:00:14] pawnbox: has joined #ruby
[18:01:16] Iskarlar: has joined #ruby
[18:02:42] np0: has joined #ruby
[18:03:15] devoldmx: has joined #ruby
[18:04:54] dr3w: has joined #ruby
[18:05:14] frozen3: has joined #ruby
[18:05:20] RobertBirnie: has joined #ruby
[18:06:07] thugwaffle: has joined #ruby
[18:07:15] northfurr: has joined #ruby
[18:07:46] Yzguy: has joined #ruby
[18:07:52] shevy: one has to keep on running and running and running https://en.wikipedia.org/wiki/Red_Queen_hypothesis
[18:08:20] atmosx: another local root exploit for osx, it's going great.
[18:08:21] sinkensabe: has joined #ruby
[18:08:30] allcentury: has joined #ruby
[18:09:00] Me: has joined #ruby
[18:09:29] psye: has joined #ruby
[18:09:31] shevy: come to linux man
[18:10:45] j5s7: has joined #ruby
[18:11:24] codecop: has joined #ruby
[18:11:57] atmosx: shevy: hm, I might switch back at some point.
[18:13:05] rbennacer: has joined #ruby
[18:14:31] hololeap: has joined #ruby
[18:18:17] devoldmx: has joined #ruby
[18:18:30] Rubie: has joined #ruby
[18:19:40] spider-mario: has joined #ruby
[18:21:18] Azure|dc: has joined #ruby
[18:23:04] rickmasta: has joined #ruby
[18:23:15] NeverDie: has joined #ruby
[18:23:32] j_mcnally: has joined #ruby
[18:24:58] workmad3: has joined #ruby
[18:26:14] casadei_: has joined #ruby
[18:28:16] tvw: has joined #ruby
[18:28:43] ramfjord: has joined #ruby
[18:29:08] allcentury: has joined #ruby
[18:30:28] gwendall: has joined #ruby
[18:34:39] einarj: has joined #ruby
[18:36:48] yqt: has joined #ruby
[18:39:22] swgillespie: has joined #ruby
[18:39:26] chabil: has joined #ruby
[18:41:10] pocketprotector: has joined #ruby
[18:46:30] segy: has joined #ruby
[18:46:33] timanema: has joined #ruby
[18:47:21] sdothum: has joined #ruby
[18:47:49] lkba: has joined #ruby
[18:48:16] last_staff: has joined #ruby
[18:49:00] segy: has joined #ruby
[18:49:20] flou: has joined #ruby
[18:50:39] christiandsg: has joined #ruby
[18:51:02] last_staff: has joined #ruby
[18:52:50] iateadonut: has joined #ruby
[18:53:14] timanema: has joined #ruby
[18:56:11] lannonbr: has joined #ruby
[18:56:29] Zarthus_: has joined #ruby
[18:57:00] einarj: has joined #ruby
[18:57:59] Limix: has joined #ruby
[19:00:44] last_staff: has joined #ruby
[19:00:47] christiandsg: has joined #ruby
[19:01:03] rakm: has joined #ruby
[19:02:27] khebbie: has joined #ruby
[19:02:35] jeadr: has joined #ruby
[19:03:52] arup_r: has joined #ruby
[19:05:11] futilegames: has joined #ruby
[19:06:07] frozen3: has joined #ruby
[19:06:55] FernandoBasso: has joined #ruby
[19:09:22] mistermocha: has joined #ruby
[19:10:18] gard: has joined #ruby
[19:11:11] nkts: has joined #ruby
[19:11:30] Yzguy: has joined #ruby
[19:12:53] [H]unt3r: has joined #ruby
[19:13:50] Yzguy: has joined #ruby
[19:16:13] mbboo: has joined #ruby
[19:17:18] Darkwater: has joined #ruby
[19:17:51] Darkwater: I've got a module that's basically a container for things, should the name be plural or singular?
[19:18:14] ruboto: Please show your real code to illustrate your problem. Using fake code often hides it or won't bring up the best possible solution.
[19:18:39] Darkwater: Service::IRC, Service::Telegram etc
[19:18:45] Darkwater: for a multi-protocol chat client
[19:19:03] jhass: and what does it contain?
[19:19:13] jhass: doesn't sound like containers at all?
[19:19:16] Darkwater: protocol-specific code
[19:19:20] Darkwater: it's about Service
[19:19:37] Yzguy: has joined #ruby
[19:19:38] jhass: oh, gotcha
[19:19:42] jhass: I tend to Services actually
[19:19:48] towski_: has joined #ruby
[19:19:57] jhass: Service would more be the base module/class
[19:20:14] jhass: namespace for common code
[19:20:16] Darkwater: hm, makes sense
[19:21:22] flou: has joined #ruby
[19:22:23] senayar: has joined #ruby
[19:22:23] senayar: has joined #ruby
[19:22:42] ni638629: has joined #ruby
[19:23:19] ni638629: has left #ruby: ()
[19:23:37] np0: has joined #ruby
[19:24:22] EminenceHC: has joined #ruby
[19:25:03] veduardo: has joined #ruby
[19:25:04] rbennacer: hwo would i refactor a very long conditional statement, ex: if a || a || a || a || v|| f
[19:25:23] ruboto: Please show your real code to illustrate your problem. Using fake code often hides it or won't bring up the best possible solution.
[19:25:50] jhass: but probably extracting a bunch of methods
[19:26:58] Yzguy: has joined #ruby
[19:27:22] rbennacer: http://pastebin.com/3gPJPm5E jhass
[19:27:23] ruboto: rbennacer, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/3503929600e2634e0881
[19:27:23] ruboto: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[19:27:44] rippa: has joined #ruby
[19:28:19] Rubie: has joined #ruby
[19:28:39] futilegames: has joined #ruby
[19:29:05] rbennacer: jhass: are you saying i should myabe divide this into 3 methods , neighbors on my right, neighbors on my left and horizontal neighbors
[19:29:28] jhass: prolly a lot more, let me tinker a bit
[19:30:06] gfixler: has joined #ruby
[19:30:06] rbennacer: it part of my conway game of life implementation :)
[19:30:18] gfixler: can to_i ever take two parameters?
[19:30:40] gfixler: the docs and online searches seem to say no
[19:30:47] rbennacer: why would you do that?
[19:30:48] gfixler: but the code here seems to say yes: https://github.com/jasonlong/geo_pattern/blob/master/lib/geo_pattern/color_generators/base_color_generator.rb
[19:30:53] Kallis: has joined #ruby
[19:31:11] bradland: gfixler: there is no global definition of to_i
[19:31:12] gwendall: has joined #ruby
[19:31:24] Guest81167: has joined #ruby
[19:31:25] bradland: whether a method can take multiple arguments is entirely up to the method definition
[19:31:32] gfixler: bradland: monkey patching?
[19:31:34] Mon_Ouie: rbennacer: You can have two nested loops over the range (-1..1) and skip the (0, 0) pair with next
[19:32:04] bradland: gfixler: could be. what is the class of the receiver?
[19:32:10] bradland: WhatClass#to_i ?
[19:32:22] Kallis: has joined #ruby
[19:32:29] gfixler: bradland: not a rubyiest; not sure what a receiver is
[19:32:35] Mon_Ouie: https://github.com/jasonlong/geo_pattern/blob/master/lib/geo_pattern/seed.rb#L17
[19:32:49] bradland: gfixler: no problem, we can walk you through it
[19:32:57] bradland: a reciver is the object that "receives" the method call
[19:33:09] gfixler: hue_offset = map(seed.to_i(14, 3), 0, 4095, 0, 359)
[19:33:12] bradland: in ruby, when you see something like seed.to_i(14,3)
[19:33:13] gfixler: bradland: that's the line
[19:33:15] bradland: seed is the receiver
[19:33:21] Asher: has joined #ruby
[19:33:32] bradland: so, you have to back up
[19:33:36] bradland: and ask yourself, what is "seed"?
[19:33:41] bradland: as in, what class is it?
[19:33:44] gfixler: tried that - couldn't tell :)
[19:33:55] gfixler: there's no types on anything! (I'm a haskeller)
[19:34:04] gfixler: def initialize(color, seed, creator = Color)
[19:34:05] Mon_Ouie: I mean??? It's probably a GeoPattern::Seed???
[19:34:08] gfixler: ^ doesn't tell me
[19:34:16] bradland: yeah, this is where it gets to be a bit of a pain in the ass. you have to trace through the code
[19:34:25] Rollabun_: has joined #ruby
[19:34:40] bradland: you need to know what is being passed in through the call to BaseColorGenerator#transform(color, seed)
[19:34:43] gfixler: I imagine there's tooling that helps with this
[19:34:59] bradland: the way i do it, is i use a gem called pry
[19:35:36] bradland: i assume you have geo_pattern installed as a gem?
[19:35:47] gfixler: bradland: no, I'm actually just looking at this on github
[19:36:01] towski_: has joined #ruby
[19:36:06] Yzguy: has joined #ruby
[19:36:17] gfixler: I tried cloning it down and loading it into irb, but couldn't figure it out
[19:36:23] gfixler: is it atypical to be able to do that?
[19:36:24] jhass: rbennacer: http://paste.mrzyx.de/pyrv6ycgx something into that direction I guess
[19:36:28] gfixler: are things always gem installed?
[19:36:39] bradland: gfixler: you'd be better off installing as a gem
[19:36:43] bradland: gems are packages of ruby code
[19:36:56] bradland: installing the gem will make sure all dependencies are resolved
[19:37:10] gfixler: bradland: are they easy to uninstall, too?
[19:37:14] rbennacer: jhass: woooooooow, this is so beautiful and elegant
[19:37:44] towski_: has joined #ruby
[19:37:50] bradland: if a gem has many dependencies, it can be a bit of a PITA
[19:38:00] bradland: and here we go down the ruby development rabbit hole :)
[19:38:08] bradland: there's a lot of tooling that helps with this
[19:38:13] bradland: Bundler, for example
[19:38:19] gfixler: well, it's not like Python and Haskell have that all figured out, either
[19:38:21] bradland: Bundler is a dependency management tool
[19:38:28] gfixler: dependencies are just crazy, period
[19:38:31] bradland: yeah, it's all the same problems solved in the ruby way
[19:38:35] rbennacer: jhass: thank you, i really like this refactoring
[19:38:40] bradland: Bundler is pretty cool though, because you can tell it where to put stuff
[19:38:52] gfixler: bradland: anything like a sandbox?
[19:38:55] bradland: are you looking to get in to ruby dev, or just a tourist?
[19:39:05] frozen3: has joined #ruby
[19:39:15] swgillespie: has joined #ruby
[19:39:17] gfixler: haskell had "cabal (dependency tool) hell," and "solved" it with sandboxes, so everything installs locally
[19:39:27] bradland: yeah, there are similar tools in Ruby
[19:39:32] bradland: they offer varying degrees of sandboxing
[19:39:38] gfixler: Python got that, too - what was it called?
[19:39:38] Mon_Ouie: `gem install' lets you pass an --install-dir directory
[19:39:40] gfixler: env something
[19:39:46] gfixler: Mon_Ouie: cool
[19:39:50] gfixler: bradland: yeah, that one
[19:40:06] bradland: as Mon_Ouie points out, it's possible to do it with the ruby dist tooling
[19:40:13] gfixler: easiest way to get along with everyone: put up fences and never see them
[19:40:16] bradland: but it requires more command line arguments
[19:40:19] Yzguy: has joined #ruby
[19:40:24] towski__: has joined #ruby
[19:40:30] bradland: i have an opinion on it, but it's just my opinion
[19:40:38] bradland: if you want the most sandboxing capability, RVM is what you want
[19:40:49] bradland: it comes with functionality called gemsets
[19:40:57] Rollabunna: has joined #ruby
[19:41:16] bradland: you can use it to switch ruby versions, and create gemsets that can be easily destroyed/removed later if desired
[19:41:28] jhass: bundle install --path provides more isolation than rvm gemsets actually
[19:41:42] bradland: more isolation?
[19:41:45] last_staff: has joined #ruby
[19:41:50] pyon: has joined #ruby
[19:41:56] bradland: i'd say equivalent isolation
[19:42:08] Kalov: has joined #ruby
[19:42:15] bradland: rvm just abstracts it away in to the ~/.rvm directory structure, but i wouldn't say more
[19:42:26] jhass: you'll need bundler anyway to load correct versions and no other than the specified dependencies
[19:42:34] jhass: and with that you're less tempted to reuse
[19:42:44] bradland: i would definitely recommend bundler
[19:42:44] jhass: which makes it safer to just rm -rf stuff
[19:42:49] bradland: without a doubt
[19:43:19] bradland: gfixler: this kind of discussion is pretty dangerous in #ruby; it tends to devolve in to disucssions not dissimilar to text editor wars
[19:43:30] Thomas-0725: has joined #ruby
[19:43:33] bradland: everything is possible with the dist ruby tooling
[19:43:46] bradland: there are tools that abstract that away in various ways as well
[19:43:54] icarus: anything is possible...if you *believe*
[19:44:01] bradland: your choice to use them should be an informed one (in other words, don't take my word for it)
[19:44:04] gfixler: bradland: :)
[19:44:06] Oka: has joined #ruby
[19:44:14] bradland: *don't _just_ take my word for it
[19:44:19] gfixler: bradland: grepping all ruby files for transform, I see only 2 uses of it in the whole project
[19:44:26] gfixler: and they're the two in the class itself
[19:44:33] gfixler: so it's local
[19:44:43] bradland: to get back to your question
[19:44:44] gfixler: there's the def, and the call to it from the generate method right above it
[19:44:48] bradland: https://github.com/jasonlong/geo_pattern/blob/master/lib/geo_pattern/seed.rb
[19:44:54] michaeldeol: has joined #ruby
[19:45:00] episage: has joined #ruby
[19:45:05] bradland: sees is most likely GeoPattern::Seed
[19:45:08] bradland: which defines to_i
[19:45:14] bradland: and takes two arguments :)
[19:45:45] Mon_Ouie: (did no one noticed the link I gave to that method before?)
[19:45:51] gfixler: bradland: when you said "no global def" did you mean none whatsoever, or is there at least a default?
[19:45:59] gfixler: Mon_Ouie: I missed it, sorry
[19:46:04] bradland: sry Mon_Ouie I was too busy pontificating :(
[19:46:15] gwendall: has joined #ruby
[19:46:30] gfixler: Mon_Ouie: if you put my name in, it highlights the line
[19:46:47] gfixler: Mon_Ouie: bradland did that on the very next line, so it highlighted, and made me miss yours right above it
[19:46:56] bradland: attention theft
[19:47:09] bradland: many classes in ruby define to_i
[19:47:27] gfixler: ah, polymorphic
[19:47:45] bradland: not precisely
[19:47:48] bradland: not in an OO context anyway
[19:48:04] bradland: many languages do this though
[19:48:15] phutchins1: has joined #ruby
[19:48:17] gfixler: haskell does that with typeclasses, which are sort of like java interfaces
[19:48:18] bradland: when you call to_i, the next question is, *which* to_i method are you calling
[19:48:37] bradland: it's difficult to compare with haskell, i'd imagine, because haskell is so heavily functional
[19:48:42] gfixler: if you want your type to work like a Num, you define the 7 methods for it, including fromInteger, which has type a -> Integer
[19:48:47] bradland: ruby methods are really just messages
[19:48:48] gfixler: where a is your type in that case
[19:48:59] bradland: in ruby, these two are equivalent
[19:49:17] havenwood: Or with modern RubyGems: gem install -g -i vendor/bundle
[19:49:53] Rollabunna: has joined #ruby
[19:50:04] havenwood: Or wherever you prefer to install.
[19:50:14] bradland: seed.to_i(4,13) and seed.send(:to_i, 4, 13)
[19:50:28] veduardo: has joined #ruby
[19:50:29] bradland: seed is the "receiver" of the method call "to_i"
[19:50:32] jhass: public_send
[19:50:37] gfixler: bradland: interesting
[19:50:56] gfixler: bradland: and that second version starts to feel pretty functional
[19:51:10] havenwood: I like not having to even bother with Bundler unless Rails is involved.
[19:51:11] bradland: i think it comes from ruby's smalltalk roots?
[19:51:17] gfixler: like a higher-order function that takes a function as a parameter
[19:52:00] swgillespie: has joined #ruby
[19:52:34] bradland: just a heads up, you should not use that send method. at least not unless you explicitly need to.
[19:52:42] bradland: it will allow you to call private methods, which violates the API
[19:52:50] gfixler: bradland: ah, good to know
[19:52:56] Ox0dea: There's always #public_send.
[19:52:58] bradland: as jhass pointed out, public_send respects private
[19:53:08] bradland: and now Ox0dea
[19:53:20] gfixler: I appreciate you all public_sending me this information
[19:54:48] radgeRayden: has joined #ruby
[19:55:27] havenwood: If you haven't updated RubyGems in the past three months, do!: gem update --system
[19:55:44] dopie: has joined #ruby
[19:56:00] ohaibbq: has joined #ruby
[19:56:16] havenwood: Ox0dea: +1 #public_send :D
[19:56:51] Ox0dea: Of course, you can use #send to send the #public message to make private methods public.
[19:57:34] Mon_Ouie: Or use #public_send to call #send
[19:57:55] jud: has joined #ruby
[19:58:22] bradland: ruby provides more than enough rope to hang yourself!
[19:58:38] Ox0dea: Footguns everywhere!
[19:59:13] Rollabunna: has joined #ruby
[20:01:22] workmad3: has joined #ruby
[20:01:26] roolo: has joined #ruby
[20:01:47] kachi8: has joined #ruby
[20:02:23] havenwood: >> Object.public_send :send, :public_send, :send, :public_send, :itself
[20:02:24] ruboto: havenwood # => Object (https://eval.in/417482)
[20:02:45] havenwood: Yup, checks out.
[20:03:11] khebbie: has joined #ruby
[20:03:26] Ox0dea: But #itself isn't a private method.
[20:04:06] swgillespie: has joined #ruby
[20:05:00] havenwood: >> Object.public_send :send, :public_send, :send, :puts
[20:05:01] ruboto: havenwood # => ...check link for more (https://eval.in/417483)
[20:05:15] havenwood: Ox0dea: I haven't really been following what we're talking about. :O
[20:06:08] havenwood: ACTION reads back
[20:06:28] devbug: has joined #ruby
[20:07:04] Ox0dea: Just that, in general, nothing is sacred in Ruby.
[20:07:34] havenwood: >> defined? sacred
[20:07:35] ruboto: havenwood # => nil (https://eval.in/417484)
[20:08:04] pocketprotector: has joined #ruby
[20:08:29] Rollabunna: has joined #ruby
[20:08:54] Azure: has joined #ruby
[20:09:43] chmod755: has joined #ruby
[20:09:44] havenwood: class Object; def sacred?; false end end; class NilClass; def sacred?; true end end
[20:10:02] chmod755: hi everyone
[20:10:18] havenwood: chmod755: Hi
[20:10:54] chmod755: so I'm not really experienced with ruby and I'm getting "undefined method `new' for nil:NilClass" here
[20:11:49] ruboto: havenwood # => undefined method `new' for nil:NilClass (NoMethodError) ...check link for more (https://eval.in/417485)
[20:11:50] michaeldeol: has joined #ruby
[20:12:12] swgillespie: has joined #ruby
[20:14:14] swgillespie: has joined #ruby
[20:15:52] EminenceHC: has joined #ruby
[20:16:08] havenwood: chmod755: I'm sure if you show the code someone here can spot where you're calling `new` on `nil`.
[20:16:11] havenwood: ?gist chmod755
[20:16:11] ruboto: chmod755, https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[20:16:27] swgillespie: has joined #ruby
[20:16:37] kidoz: has joined #ruby
[20:18:02] sdothum: has joined #ruby
[20:18:02] Rollabunna: has joined #ruby
[20:20:11] shellie_: has joined #ruby
[20:20:35] chmod755: https://github.com/bitcoinxt/website
[20:20:39] iliketurtles: has joined #ruby
[20:21:25] jhass: chmod755: gist the full error and backtrace please
[20:21:54] shellie_: has joined #ruby
[20:22:25] chmod755: https://gist.github.com/chmod755/0213948d48db198ae7c9#file-gistfile1-txt
[20:22:41] moeSeth: has joined #ruby
[20:22:46] chabil: has joined #ruby
[20:24:10] Yzguy: has joined #ruby
[20:24:28] jhass: ugh hf havenwood :P
[20:26:16] Yzguy: has joined #ruby
[20:26:56] Rollabunna: has joined #ruby
[20:28:26] sphex: has joined #ruby
[20:30:18] shevy: chmod755 nil is not a very useful object for the most part
[20:30:18] tommek: has joined #ruby
[20:30:45] kostasl: has joined #ruby
[20:31:40] workmad3: has joined #ruby
[20:32:22] havenwood: chmod755: Why such an old version of serve?
[20:33:17] ledestin: has joined #ruby
[20:33:24] havenwood: chmod755: Change '1.5.2' to '2.0.1' here: https://github.com/bitcoinxt/website/blob/master/Gemfile#L3
[20:33:38] havenwood: chmod755: Then run: bundle update serve
[20:34:07] marr: has joined #ruby
[20:34:26] chmod755: havenwood, idk... it's not my project
[20:36:06] Ox0dea: shevy: Mathematics falls apart without zero.
[20:36:12] Rollabunna: has joined #ruby
[20:36:40] havenwood: >> 1.upto(0/0.0).first 3
[20:36:41] ruboto: havenwood # => [1, 2, 3] (https://eval.in/417487)
[20:37:15] allcentury: has joined #ruby
[20:37:19] Cache_Money: has joined #ruby
[20:37:29] gambl0re: has joined #ruby
[20:38:16] chmod755: Could not find gem 'serve (= 2.0.1) ruby' in any of the gem sources listed in your Gemfile or available on this machine.
[20:38:30] vidbina: has joined #ruby
[20:38:37] Cache_Money: has left #ruby: ()
[20:38:45] havenwood: chmod755: hem
[20:39:26] christiandsg: has joined #ruby
[20:39:58] havenwood: chmod755: It looks like they've tagged the release but not cut the gem for it.
[20:40:08] havenwood: chmod755: https://github.com/jlong/serve/releases
[20:40:19] havenwood: https://github.com/jlong/serve/blob/master/CHANGELOG.rdoc#200-april-17-2015
[20:42:09] havenwood: chmod755: gem 'serve', github: 'jlong/serve'
[20:42:42] havenwood: chmod755: ^ If you want to just try latest development. I'm not familiar with the serve gem.
[20:42:58] Cache_Money: has joined #ruby
[20:43:37] havenwood: chmod755: You're running into a bug where `Tilt[ext]` here is `nil`, hence your error: https://github.com/jlong/serve/blob/d2c17a254d5c98372ca042c50200ba51253f3537/lib/serve/handlers/dynamic_handler.rb#L44
[20:45:10] chmod755: now i'm getting "Your Gemfile requires gems that depend on each other, creating an infinite loop."
[20:45:30] Rollabunna: has joined #ruby
[20:46:45] bartj3: has joined #ruby
[20:47:21] EminenceHC: has joined #ruby
[20:47:46] jpfuentes2: has joined #ruby
[20:47:58] havenwood: chmod755: gem i -g
[20:48:14] jhass: that supports github: now?
[20:48:58] futilegames: has joined #ruby
[20:51:46] havenwood: https://github.com/rubygems/rubygems/blob/d2518cb496db35a2f98649b65c17e823ade5736b/lib/rubygems/request_set/gem_dependency_api.rb#L336-L338
[20:52:21] dgutierrez1287: has joined #ruby
[20:52:35] havenwood: https://github.com/rubygems/rubygems/blob/d2518cb496db35a2f98649b65c17e823ade5736b/lib/rubygems/request_set/gem_dependency_api.rb#L210-L214
[20:53:05] yfeldblum: has joined #ruby
[20:53:44] chmod755: gem i -g doesn't help
[20:53:46] tomphp: has joined #ruby
[20:53:56] havenwood: chmod755: It didn't install the gems?
[20:54:00] havenwood: chmod755: Error?
[20:54:38] chmod755: https://gist.github.com/chmod755/abb770c6ca972b564a7f
[20:54:43] Rollabunna: has joined #ruby
[20:55:22] Scripore: has joined #ruby
[20:55:43] havenwood: chmod755: sudo gem i -g
[20:56:40] havenwood: chmod755: You have a system install of Ruby in /usr/local and you're not using --user-install to install gems in your user home dir, so probably need sudo there.
[20:57:11] chmod755: i'm still getting "ERROR: While executing gem ... (TypeError) no implicit conversion of nil into String"
[20:57:40] chmod755: cannot open-errors are gone
[20:58:02] havenwood: Why was Bundler in an infinite loop?
[20:58:48] shellie_: has joined #ruby
[20:58:55] havenwood: I guess serve depending on serve?
[21:00:02] fluffykat: has joined #ruby
[21:00:07] havenwood: chmod755: Make sure you're using the latest version of Bundler: gem update bundler
[21:00:17] havenwood: chmod755: Or rather: sudo gem update bundler
[21:01:12] chmod755: i have bundler (1.10.6)
[21:01:33] havenwood: chmod755: There's a mention of some similar issue but sounds like a slightly different error: https://github.com/jlong/serve/issues/124
[21:02:06] bodgix: has left #ruby: ()
[21:03:03] lannonbr: has joined #ruby
[21:03:20] fluffykat: hi - how can i use capybara to check if an item is placed in the correct position inside a list (i.e. inside 'ul#list'?
[21:03:59] Rollabunna: has joined #ruby
[21:04:14] Kallis: has joined #ruby
[21:04:16] havenwood: chmod755: Change the Gemfile line to: gem 'serve', github: 'jlong/serve', tag: 'v2.0.1'
[21:04:23] havenwood: chmod755: And run: bundle update
[21:04:57] jhass: FluffyKat: expect(find("ul#list > li:nth-child(4)").to have_text("my_item") or something, you get the idea
[21:05:18] Oka: has joined #ruby
[21:05:20] fluffykat: you're a genius thanks
[21:05:28] chmod755: Bundle updated! <<
[21:05:44] yeticry: has joined #ruby
[21:06:14] chmod755: but I'm still getting the same error
[21:06:50] chmod755: removing an old version of ruby, maybe there's a conflict somewhere
[21:07:17] havenwood: chmod755: make sure to run app prefixed with: bundle exec
[21:07:19] jhass: chmod755: whatever you run, make sure to prefix it with bundle exec
[21:07:26] jhass: havenwood: ^5
[21:07:27] havenwood: jhass: jinx
[21:09:33] havenwood: chmod755: http://i.imgur.com/2Hlpoov.png
[21:09:51] j_mcnally: has joined #ruby
[21:10:39] darkxploit: has joined #ruby
[21:10:58] saddad: has joined #ruby
[21:12:29] darkxploit: has joined #ruby
[21:13:07] christiandsg: has joined #ruby
[21:13:23] Rollabunna: has joined #ruby
[21:14:17] fluffykat: jhass: when i replace ".to" with ".should" in your suggestion the code works...
[21:14:23] darkxploit: has joined #ruby
[21:14:35] jeadr: has joined #ruby
[21:15:09] Limix: has joined #ruby
[21:15:36] chmod755: havenwood, thx a lot
[21:15:52] chmod755: bundle exec serve
[21:16:17] darkxploit: has joined #ruby
[21:17:54] Scripore: has joined #ruby
[21:18:02] ta: has joined #ruby
[21:18:08] darkxploit: has joined #ruby
[21:19:47] sphex: has joined #ruby
[21:20:01] jhass: FluffyKat: sounds like you RSpec is ancient
[21:20:02] darkxploit: has joined #ruby
[21:20:41] Kallis: has joined #ruby
[21:21:13] fluffykat: jhass: I get a deprecation warning about using 'should'
[21:21:29] l_tonz: has joined #ruby
[21:21:51] jhass: expect(..).to is the new syntax
[21:21:57] darkxploit: has joined #ruby
[21:22:33] fluffykat: when i use '.to' i get the following error : undefined method `to' for #<Capybara::Element tag="li" path="/html/body/ul/li[1]">
[21:22:49] Rollabunna: has joined #ruby
[21:23:00] jhass: FluffyKat: expect(find(...)).to
[21:23:49] Coldblackice: has joined #ruby
[21:23:53] darkxploit: has joined #ruby
[21:24:26] fluffykat: expect(find("ul#list > li:nth-child(1)").to have_text("test message"))
[21:24:39] fluffykat: thats my code
[21:25:22] jhass: yes, missing )
[21:25:29] jhass: or wrong place actually
[21:25:44] jhass: expect(find(...)).to have_text(...)
[21:25:51] darkxploit: has joined #ruby
[21:26:16] millerti: has joined #ruby
[21:26:23] rbennacer: has joined #ruby
[21:26:24] fluffykat: yeah, my bad...i missed it.
[21:26:35] fluffykat: it works now. cheers
[21:27:59] sepp2k: has joined #ruby
[21:28:35] christiandsg: has joined #ruby
[21:29:33] khebbie: has joined #ruby
[21:30:16] nfk: has joined #ruby
[21:30:50] Musashi007: has joined #ruby
[21:31:19] sarkyniin: has joined #ruby
[21:31:22] LJT: has joined #ruby
[21:31:22] iamse7en: has joined #ruby
[21:32:05] hydrozen: has joined #ruby
[21:32:06] Me1: has joined #ruby
[21:32:06] Rollabunna: has joined #ruby
[21:32:56] michaeldeol: has joined #ruby
[21:34:27] allcentury: has joined #ruby
[21:39:06] iliketurtles: has joined #ruby
[21:40:02] iliketurtles: has joined #ruby
[21:40:31] iliketurtles: has joined #ruby
[21:41:01] Rollabunna: has joined #ruby
[21:44:13] towski_: has joined #ruby
[21:46:55] thugwaffle: has joined #ruby
[21:48:38] iamse7en: to anyone willing to help, how do i multiply two arrays then take the sum. https://gist.github.com/anonymous/a036818d6948f1909cec
[21:50:16] Rollabunna: has joined #ruby
[21:50:31] Ox0dea: iamse7en: #zip and #reduce are the methods you seek.
[21:50:38] dc: has joined #ruby
[21:50:54] al2o3-cr: >> [0.3, 0.2, 0.5].zip([1.5, -1.0, 2.5]).map {|a| a.inject(:*) }.inject(:+)
[21:50:55] ruboto: al2o3-cr # => 1.5 (https://eval.in/417494)
[21:51:06] djbkd: has joined #ruby
[21:51:11] Ox0dea: al2o3-cr: Dude.
[21:51:44] al2o3-cr: I keep to watching mr. robot
[21:52:36] djbkd: has joined #ruby
[21:54:11] symbol: has joined #ruby
[21:54:32] Mon_Ouie: Also Vector#dot
[21:55:54] lele: has joined #ruby
[21:56:04] kachi8: has joined #ruby
[21:56:40] chmod755: has left #ruby: ("Ex-Chat")
[21:57:11] DLSteve: has joined #ruby
[21:58:42] dr3w: has joined #ruby
[21:59:32] Rollabunna: has joined #ruby
[21:59:47] iamse7en: thank you so very much al2o3-cr :)
[22:05:10] Vile`: has joined #ruby
[22:07:49] spider-mario: has joined #ruby
[22:07:54] frozen3: has joined #ruby
[22:08:24] jtdoncas: has joined #ruby
[22:08:58] Rollabunna: has joined #ruby
[22:12:05] crazydiamond: has joined #ruby
[22:13:14] nertzy: has joined #ruby
[22:14:39] Thomas-0725: has joined #ruby
[22:15:54] mcpherrin: has joined #ruby
[22:16:47] chouhoulis: has joined #ruby
[22:17:38] Musashi007: has joined #ruby
[22:18:04] Rollabunna: has joined #ruby
[22:19:26] ohaibbq: has joined #ruby
[22:20:12] j_mcnally: has joined #ruby
[22:20:29] workmad3: has joined #ruby
[22:21:16] phutchins1: has joined #ruby
[22:21:22] NightyMiggers: has joined #ruby
[22:23:43] devbug_: has joined #ruby
[22:24:01] pragmatism: has joined #ruby
[22:24:37] Coraline: !ban NightyMiggers #ruby !P Go away, troll
[22:24:37] towski_: has joined #ruby
[22:24:37] ChanServ: +b NightyMiggers!*@*
[22:24:38] ChanServ: ChanServ kicked NightyMiggers: Go away, troll
[22:24:55] aspiers: has joined #ruby
[22:24:59] doublemalt_: has joined #ruby
[22:27:38] Rollabunna: has joined #ruby
[22:27:42] bodgix: has joined #ruby
[22:29:31] chouhoulis: has joined #ruby
[22:29:54] roolo: has joined #ruby
[22:30:51] Drager: has joined #ruby
[22:31:32] sdothum: has joined #ruby
[22:31:48] chouhoul_: has joined #ruby
[22:33:39] roolo: has joined #ruby
[22:34:19] axl_: has joined #ruby
[22:35:35] workmad3: has joined #ruby
[22:36:33] Rollabunna: has joined #ruby
[22:37:58] pontiki: ACTION waves
[22:40:06] houhoulis: has joined #ruby
[22:40:43] workmad3: has joined #ruby
[22:40:44] speaking1ode: has joined #ruby
[22:41:06] poguez_: has joined #ruby
[22:41:15] np0: has joined #ruby
[22:43:44] axl_: has left #ruby: ()
[22:44:23] speaking1ode: has joined #ruby
[22:45:50] Rollabunna: has joined #ruby
[22:46:14] nofxx: has joined #ruby
[22:47:12] rbennacer: has joined #ruby
[22:48:11] Cache_Money: has joined #ruby
[22:49:11] frozen3: has joined #ruby
[22:51:50] rbennacer: has joined #ruby
[22:52:38] _blizzy_: has joined #ruby
[22:52:53] Scripore: has joined #ruby
[22:54:13] lucyinthesky: has joined #ruby
[22:54:18] mleung: has joined #ruby
[22:54:35] Kallis: has joined #ruby
[22:55:07] Rollabunna: has joined #ruby
[22:55:57] j4cknewt: has joined #ruby
[22:56:49] northfurr: has joined #ruby
[22:58:09] lucyinthesky: has left #ruby: ("Leaving")
[23:00:26] baweaver: ACTION waves back to pontiki
[23:01:10] _blizzy_: has joined #ruby
[23:02:50] mleung: has joined #ruby
[23:03:26] arooni-mobile: has joined #ruby
[23:04:22] Rollabunna: has joined #ruby
[23:05:48] workmad3: has joined #ruby
[23:09:27] s2013: has joined #ruby
[23:10:18] RahulT: has joined #ruby
[23:11:28] Darkwater: what are the most mature desktop gui libs for ruby?
[23:11:39] Darkwater: any decent gtk/qt bindings?
[23:13:36] Rollabunna: has joined #ruby
[23:14:08] crdpink2: has joined #ruby
[23:14:57] Ox0dea: Darkwater: Whatcha makin'?
[23:15:17] Darkwater: Ox0dea: chat client
[23:15:26] Darkwater: also I keep trying to complete your name from 0x
[23:15:56] j3r0: has joined #ruby
[23:17:10] Ox0dea: It didn't have to be this way.
[23:17:24] pontiki: it does on IRC :)
[23:17:26] Mon_Ouie: The qtbindings gem works well for my purposes and translates method names, etc. to what is idiomatic in Ruby. Never really used the GTK bindings.
[23:17:55] Ox0dea: Idiomatic method names don't make them any less unpleasant to use.
[23:18:00] rickmasta: has joined #ruby
[23:18:21] Ox0dea: You still end up writing "C with Ruby syntax" most of the time.
[23:18:56] Mon_Ouie: I think the fact that you can also use blocks to interface with their callback systems means you don't, really
[23:19:35] Ox0dea: pontiki: Yes, that's what I meant; whichever RFC(s) disallowed leading digits was, in my opinion, misguided at best.
[23:20:49] devbug: has joined #ruby
[23:21:53] banister: Mon_Ouie did you ever read 'the breeze' by rimbaud? https://www.dropbox.com/s/293ja8vp0g67c3o/Screenshot%202015-08-17%2001.21.25.png?dl=0
[23:22:22] Cache_Money: has joined #ruby
[23:23:00] chelly: has joined #ruby
[23:23:13] Rollabunna: has joined #ruby
[23:23:18] Mon_Ouie: I also didn't know he wrote notes thanking the holy spirit for inspiring him
[23:23:22] banister: https://www.dropbox.com/s/f2ozlyzr1hky0q4/Screenshot%202015-08-17%2001.23.16.png?dl=0
[23:24:02] banister: Mon_Ouie heh heh, it's part of his juvenilia, it's a fake journal he wrote as a teenager imitating the work of a bad and sentimental poet
[23:25:16] diegoviola: has joined #ruby
[23:26:59] arturhoo: has joined #ruby
[23:28:44] Me1: has joined #ruby
[23:29:38] RahulT: has joined #ruby
[23:29:50] banister: Mon_Ouie http://www.freakingnews.com/pictures/45000/Rimbaud-45374.jpg
[23:31:11] RahulT: has joined #ruby
[23:32:30] Rollabunna: has joined #ruby
[23:33:02] tmoor: has joined #ruby
[23:34:51] j4cknewt: has joined #ruby
[23:35:55] allcentury: has joined #ruby
[23:38:43] hobodave: has joined #ruby
[23:41:30] Rollabunna: has joined #ruby
[23:42:51] hydrozen: has joined #ruby
[23:44:12] aep: how would i remove multiple indexes from an array at once? ie: [a,b,c,d].delete_at([1,2]) = [a,d]
[23:44:28] aep: individual calls to delete_at will make the next index invalid of course
[23:45:10] aep: oh with markers of course
[23:45:30] Aeyrix: I'd venture you might actually want a hash tbh.
[23:46:13] EminenceHC: has joined #ruby
[23:46:50] hydrozen: has joined #ruby
[23:47:02] ElSif: has joined #ruby
[23:47:34] aep: nah, i want order
[23:47:51] govg: has joined #ruby
[23:48:03] Mon_Ouie: aep: you can make individual calls to delete_at just by iterating over your indices from largest to smallest
[23:48:21] al2o3-cr: aep something like a = [:a, :b, :c, :d]; a - a.values_at(1,2)
[23:48:24] aep: oooh of course
[23:48:27] aep: thanks!
[23:48:54] ni291187: has joined #ruby
[23:49:25] Ox0dea: aep: For what it's worth, Hashes are ordered in 1.9+.
[23:49:26] gilest: has joined #ruby
[23:50:29] towski_: has joined #ruby
[23:50:37] al2o3-cr: troll alert
[23:50:38] ruboto: fflush, apeiros, banisterfiend, seanstickle, Mon_Ouie, zzak, Radar, Havenn, jhass, sevenseacat, miah, workmad3, Coraline, drbrain, zenspider, slyphon, rubyhacker1, Aria, ljarvis
[23:50:48] sreggingnikcuf: who's trolling?
[23:50:51] Radar: !ban sreggingnikcuf !T 1D
[23:50:52] ChanServ: +b sreggingnikcuf!*@*
[23:50:52] ChanServ: ChanServ kicked sreggingnikcuf: is banned from this channel
[23:51:16] Radar: ta Ox0dea
[23:51:19] sarkyniin: has joined #ruby
[23:51:27] Ox0dea: Sure thing. Is 1D the max or something?
[23:51:32] havenwood: has joined #ruby
[23:51:51] ChanServ: -b sreggingnikcuf!*@*
[23:51:56] Radar: It's so our ban list doesn't get full. The trolls use different IPs each time.
[23:52:49] charliesome: has joined #ruby
[23:53:04] rbennacer: has joined #ruby
[23:53:07] Ox0dea: TIL ban lists can get full, I guess.
[23:53:09] Radar: Given that the names are on a similar topic and the user acts the same way each time, I think it's just one person trolling this channel.
[23:53:43] gilest: has joined #ruby
[23:53:57] baweaver: Could have a bot watch joins for anything within a certain distance of known explitives.
[23:53:59] baweaver: easy enough
[23:54:08] jeadr: has joined #ruby
[23:54:46] Mon_Ouie: I think you want 1d though, not 1D
[23:54:52] Radar: baweaver: patches welcome :)
[23:55:05] Ox0dea: Radar: Sure, I just find one-day bans for such trolls to be slightly humorous. "Well, here's hoping they're a decent person come tomorrow."
[23:55:13] Mon_Ouie: I'm not sure what 1D gets interpreted as but ChanServ already undid the ban as far as I can tell
[23:55:22] j_mcnally: has joined #ruby
[23:55:26] baweaver: I can work on a detection algorithm at least, as far as patching it in I'd probably defer to you.
[23:55:40] Radar: Mon_Ouie: So it did. I don't get modes sent through on my IRC client so I couldn't tell.
[23:55:43] baweaver: probably just a variant of levenshtein.
[23:56:09] baweaver: put in some l33t substitution commonalities
[23:56:17] baweaver: and reverses of course.
[23:56:37] Radar: I don't know where ruboto's source code is
[23:56:44] Ox0dea: baweaver: A taller task than it might at first seem.
[23:56:55] allcentury: has joined #ruby
[23:56:56] baweaver: I've done similar things before.
[23:57:03] Ox0dea: Combinatorial explosions and all that.
[23:57:04] Mon_Ouie: Not publicly available, you can contact apeiros
[23:57:14] Radar: Mon_Ouie: Oh great.
[23:57:25] Radar: What's wrong with making it open source?
[23:57:29] Radar: Seems bad to have it controlled by one person.
[23:57:43] Radar: baweaver: it sounds to me like Ox0dea wants to help you
[23:57:58] baweaver: but it has to be alphanumerical
[23:58:12] Radar: baweaver: https://github.com/radar/railsbot has a join event you could hook into. You could get it to notify #ruby-ops if someone with a bad name joins
[23:59:12] helpa: has joined #ruby
[23:59:55] havenwood: has joined #ruby