« Back to channel list

#ruby - 05 June 2015

« Back 1 day Forward 1 day »
[00:00:08] serivich: has joined #ruby
[00:04:08] failshell: has joined #ruby
[00:05:48] freerobby: has joined #ruby
[00:07:19] Scripore: has joined #ruby
[00:07:26] Igorshp: has joined #ruby
[00:07:40] fujimura: has joined #ruby
[00:08:08] quimrstorres: has joined #ruby
[00:09:29] dfockler: Hey! Ctags! It's pretty nice
[00:10:30] CloCkWeRX: has joined #ruby
[00:10:56] mberk: has joined #ruby
[00:12:01] _seanc_: has joined #ruby
[00:12:54] MatthewsFace: has joined #ruby
[00:13:24] bb010g: has joined #ruby
[00:14:34] zendrix: has joined #ruby
[00:15:22] Rubie: has joined #ruby
[00:16:03] shevy: _cake you could write some ruby scripts to control mplayer and sort on the files before sending it to mplayer :)
[00:20:39] sleungcy: has joined #ruby
[00:20:44] rickmasta: has joined #ruby
[00:20:47] rkazak: has joined #ruby
[00:23:09] dfockler: has joined #ruby
[00:23:12] quimrstorres: has joined #ruby
[00:23:15] HotCoder: has joined #ruby
[00:26:29] IanVorn: has joined #ruby
[00:27:40] failshell: has joined #ruby
[00:27:44] IanVorn: has joined #ruby
[00:28:06] Cache_Money: has joined #ruby
[00:28:34] uris: has joined #ruby
[00:29:12] casadei: has joined #ruby
[00:29:16] charliesome: has joined #ruby
[00:29:18] jackjackdripper: has joined #ruby
[00:30:09] jgpawletko: has joined #ruby
[00:36:06] workmad3: has joined #ruby
[00:36:09] bkxd: has joined #ruby
[00:39:12] Ohga: has joined #ruby
[00:39:45] greenbagels: has joined #ruby
[00:40:00] Musashi007: has joined #ruby
[00:40:26] Ohga: has left #ruby: ()
[00:40:56] Oog: has joined #ruby
[00:43:11] keen___________5: has joined #ruby
[00:43:24] freerobby: has joined #ruby
[00:46:10] robustus: has joined #ruby
[00:46:27] jhooker: has joined #ruby
[00:47:23] jackjackdripper1: has joined #ruby
[00:47:33] freerobby: has joined #ruby
[00:48:02] transiency: has joined #ruby
[00:48:18] jackjackdripper2: has joined #ruby
[00:48:54] baweaver: has joined #ruby
[00:50:43] ebbflowgo: has joined #ruby
[00:51:19] DrBojingle: has joined #ruby
[00:51:47] Aeyrix: I actually did that, for my home media system.
[00:52:04] Aeyrix: I wrote a couple of integrated ruby apps + a web app to control it, and it passes it to wherever I choose.
[00:52:14] Aeyrix: Three endpoints, because I need sound in my house all the time.
[00:54:48] mrsolo: has joined #ruby
[00:56:02] chipotle: has joined #ruby
[00:57:03] jgt1: has joined #ruby
[00:57:22] pdoherty: has joined #ruby
[00:57:45] mcclurmc_: has joined #ruby
[00:58:33] jstanton: has joined #ruby
[01:01:08] transiency: has joined #ruby
[01:01:14] CloCkWeRX: has left #ruby: ()
[01:01:59] sdwrage: has joined #ruby
[01:02:09] lucyinthesky: has joined #ruby
[01:03:23] jhooker: has joined #ruby
[01:03:39] allomov: has joined #ruby
[01:06:41] Torrieri: has joined #ruby
[01:07:09] shevy: Aeyrix is it possible to peek at your source?
[01:07:18] paulcsmith: has joined #ruby
[01:07:19] Aeyrix: shevy: I don't have it with me.
[01:07:36] Aeyrix: It's on a private git repo because it was only meant to be a personal project.
[01:10:12] sigden: has joined #ruby
[01:10:55] AndroidLoverInSF: has joined #ruby
[01:12:25] unreal: has joined #ruby
[01:14:14] ant_lion: has joined #ruby
[01:16:08] shevy: haha https://github.com/rdoc - now that logo is actually really cute
[01:16:55] baweaver: drbrain must have done it
[01:17:10] dgutierrez1287: has joined #ruby
[01:17:42] shevy: you must be right... he also has another unicorn logo https://github.com/drbrain
[01:18:30] ant_lion: has left #ruby: ()
[01:22:42] mrmargolis: has joined #ruby
[01:24:01] Ox0dea: Aeyrix: You... lost access to the repo?
[01:24:13] Aeyrix: Ox0dea: It's an offline repository, deliberately.
[01:24:19] pontiki: has joined #ruby
[01:24:27] GriffinHeart: has joined #ruby
[01:24:28] Ox0dea: >> n = 65213267258849250 and 8.times.reduce('') { |s| n, b = n.divmod(128); s << b }
[01:24:29] ruboto: Ox0dea # => "bollocks" (https://eval.in/375830)
[01:25:14] awheeler: has joined #ruby
[01:27:03] nonparfumee: has joined #ruby
[01:27:12] pontiki: well played, that!
[01:27:55] brothmars: has joined #ruby
[01:28:23] Maxed: has joined #ruby
[01:29:03] Mia: has joined #ruby
[01:29:03] Mia: has joined #ruby
[01:29:23] amystephen: has joined #ruby
[01:29:30] LMity: has joined #ruby
[01:31:07] serivichi: has joined #ruby
[01:33:14] Aeyrix: https://github.com/Rossem/RedditStorage
[01:33:21] balazs: has joined #ruby
[01:33:24] Aeyrix: This is simultaneously the most idiotic and most brilliant idea I've seen this week.
[01:34:55] bruno-: has joined #ruby
[01:36:09] Brozo: has joined #ruby
[01:37:21] jackjackdripper: has joined #ruby
[01:38:26] fujimura: has joined #ruby
[01:40:05] Joufflu: has joined #ruby
[01:40:39] caseypat_: has joined #ruby
[01:41:35] bogdanteleaga: has joined #ruby
[01:41:58] vikaton: has joined #ruby
[01:42:32] Rubie: has joined #ruby
[01:43:41] heftig: has joined #ruby
[01:44:28] krz: has joined #ruby
[01:44:45] Oog: has joined #ruby
[01:45:25] gambl0re: has joined #ruby
[01:45:34] dseitz: has joined #ruby
[01:46:22] tkuchiki: has joined #ruby
[01:46:37] victorkohl: has joined #ruby
[01:47:20] jackjackdripper: has joined #ruby
[01:47:53] victorkohl: has joined #ruby
[01:49:04] victorkohl: has joined #ruby
[01:50:22] victorkohl: has joined #ruby
[01:51:34] tryordie: has joined #ruby
[01:51:50] tryordie: first time on irc
[01:51:56] pontiki: i think that is absolute sublime lunacy. that's at least at the second highest form of the art
[01:52:00] pontiki: welcome, tryordie
[01:52:15] Musashi007: has joined #ruby
[01:52:24] pontiki: my night is now made, between Ox0dea and Aeyrix
[01:52:49] Aeyrix: pontiki: What'd I do?
[01:53:22] pontiki: you showed us RedditStorage!
[01:53:30] Aeyrix: i do good things some times
[01:53:36] Ox0dea: >> n = 65213267258849250 and 8.times.reduce('') { |s| n, b = n.divmod(128); s << b }
[01:53:38] ruboto: Ox0dea # => "bollocks" (https://eval.in/375831)
[01:53:40] pontiki: indeed. kudos
[01:53:55] tryordie: I'm here now, where are the endless resources
[01:54:09] tryordie: I've heard great things about irc
[01:54:13] Aeyrix: It's pretty good.
[01:54:19] Aeyrix: I use it to get people to retweet my angst at my ISP.
[01:54:21] pontiki: study that which Ox0dea just showed. when you understand that, enlightenment will be acheived
[01:54:23] Aeyrix: So far so good.
[01:54:45] pontiki: only half-joking on that, too. it's quite a marvel
[01:56:10] duderonomy: has joined #ruby
[01:58:04] ebbflowgo: has joined #ruby
[01:58:17] _seanc_: has joined #ruby
[01:58:36] Scripore: has joined #ruby
[01:58:40] mary5030: has joined #ruby
[02:00:18] blue_deref: has joined #ruby
[02:01:11] postmodern: has joined #ruby
[02:01:45] Rubie: has joined #ruby
[02:02:43] jackjackdripper: has joined #ruby
[02:03:56] dfinninger: has joined #ruby
[02:04:17] bkxd: has joined #ruby
[02:05:32] lucyinthesky: has left #ruby: ("Leaving")
[02:07:38] ghr: has joined #ruby
[02:08:57] RegulationD: has joined #ruby
[02:09:24] jackjackdripper: has joined #ruby
[02:10:49] datanoise: has joined #ruby
[02:12:09] jackjackdripper1: has joined #ruby
[02:12:39] AndroidLoverInSF: has joined #ruby
[02:12:41] jackjackdripper: has joined #ruby
[02:12:47] dfockler: has joined #ruby
[02:12:47] claptor: has joined #ruby
[02:13:42] krz: has joined #ruby
[02:15:02] iamjarvo: has joined #ruby
[02:15:47] iamjarvo: has joined #ruby
[02:16:01] Cache_Money: has joined #ruby
[02:17:57] AndroidLoverInSF: has joined #ruby
[02:18:54] goodcodeguy: has joined #ruby
[02:18:59] willharrison: has joined #ruby
[02:20:51] jenrzzz: has joined #ruby
[02:21:13] fujimura: has joined #ruby
[02:23:54] bkxd: has joined #ruby
[02:24:05] GGMethos: has joined #ruby
[02:24:50] workmad3: has joined #ruby
[02:26:48] arescorpio: has joined #ruby
[02:27:38] amclain: has joined #ruby
[02:29:28] Gulaangga: has joined #ruby
[02:30:31] mary5030: has joined #ruby
[02:31:09] dgutierrez1287: has joined #ruby
[02:31:36] maqueli: has left #ruby: ("Leaving")
[02:32:03] Gulaangga: is it possible to configure rubyzip to not wrap zipped files into a folder?
[02:32:23] existensil: rubyzip? is that a gem?
[02:32:55] Gulaangga: is it bad to ask it here?
[02:34:34] Guest1526: has joined #ruby
[02:34:59] existensil: maybe someone knows here uses it, but if there is a community around the gem that might be more useful
[02:35:02] existensil: haven't used it before
[02:39:14] NeverDie_: has joined #ruby
[02:39:55] Jandre: has joined #ruby
[02:42:15] rickmasta: has joined #ruby
[02:42:47] Gulaangga: haha I'm actually being silly
[02:42:56] Gulaangga: it's probably OS X unzips it into 2
[02:46:10] bricker: has joined #ruby
[02:47:28] illium: has joined #ruby
[02:51:24] ogpastaling: has joined #ruby
[02:51:28] illium: has joined #ruby
[02:51:59] rushed: has joined #ruby
[02:52:16] xxneolithicxx: has joined #ruby
[02:52:53] fabrice31: has joined #ruby
[02:53:16] gianlucadv: has joined #ruby
[02:53:42] Rubie: has joined #ruby
[02:54:41] goodcodeguy: has joined #ruby
[02:56:01] balazs: has joined #ruby
[02:56:43] arup_r: has joined #ruby
[02:58:47] shock_one: has joined #ruby
[02:59:06] fujimura_: has joined #ruby
[03:01:20] yfeldblum: has joined #ruby
[03:03:25] dopie: has joined #ruby
[03:05:04] n80: has joined #ruby
[03:06:08] phutchins: has joined #ruby
[03:07:14] krz: has joined #ruby
[03:08:49] bertocode: has joined #ruby
[03:14:03] braincrash: has joined #ruby
[03:18:03] illium: has joined #ruby
[03:18:43] illium: has joined #ruby
[03:18:51] ponga: has joined #ruby
[03:19:15] rickmasta: has joined #ruby
[03:19:35] bmurt: has joined #ruby
[03:20:35] mfranzwa: has joined #ruby
[03:20:48] balazs: has joined #ruby
[03:21:33] nickfausnight: has joined #ruby
[03:26:18] illium: has left #ruby: ("Good Bye")
[03:28:44] brothmars: has joined #ruby
[03:31:18] BanzaiJoe: has joined #ruby
[03:31:29] fujimura: has joined #ruby
[03:32:51] baweaver: has joined #ruby
[03:37:50] tubuliferous_: has joined #ruby
[03:39:30] mark[oz]: has joined #ruby
[03:39:35] Spami: has joined #ruby
[03:39:41] leat: has joined #ruby
[03:42:31] mark[oz]: has joined #ruby
[03:43:51] jackjackdripper: has joined #ruby
[03:47:52] darkf: has joined #ruby
[03:47:53] metallicrwr: has joined #ruby
[03:50:15] lfox: has joined #ruby
[03:50:43] Siciala: has joined #ruby
[03:50:44] justintv90: has joined #ruby
[03:51:02] ramfjord: has joined #ruby
[03:53:31] leat: has joined #ruby
[03:55:03] someword1: has joined #ruby
[03:55:54] charliesome: has joined #ruby
[03:56:21] jackjackdripper: has joined #ruby
[03:58:26] RegulationD: has joined #ruby
[03:58:44] michas: has joined #ruby
[03:59:41] charliesome: has joined #ruby
[03:59:52] gix: has joined #ruby
[04:00:08] shock_one: has joined #ruby
[04:00:12] michas: Hi, using Queue it is easy to send objects from one thread to another. is there a similar way to send objects between processes? (for example connected through tcp.)
[04:00:45] transiency: has joined #ruby
[04:01:44] michas: looks like cod is something like that.
[04:03:19] iamninja: has joined #ruby
[04:04:42] mary5030: has joined #ruby
[04:05:52] rht: has joined #ruby
[04:09:06] ghr: has joined #ruby
[04:10:12] fujimura: has joined #ruby
[04:10:18] kies: has joined #ruby
[04:13:46] workmad3: has joined #ruby
[04:13:52] mrsolo: has joined #ruby
[04:16:14] noethics: michas, you mean like RPC?
[04:16:33] noethics: and/or object serialization
[04:17:11] mark[oz]: has joined #ruby
[04:19:45] ramfjord: has joined #ruby
[04:20:36] vdamewood: has joined #ruby
[04:20:49] rbowlby: has joined #ruby
[04:21:57] willharrison: has joined #ruby
[04:23:47] anytimebutnow: has joined #ruby
[04:24:01] Rubie: has joined #ruby
[04:31:41] Aeyrix: Message queue?
[04:35:07] mrsolo: has joined #ruby
[04:35:19] ledestin: has joined #ruby
[04:36:16] adefa: has joined #ruby
[04:37:00] iamjarvo: has joined #ruby
[04:40:46] GnuYawk: has joined #ruby
[04:41:42] fabrice31: has joined #ruby
[04:42:48] Polysics_: has joined #ruby
[04:43:59] dling: has joined #ruby
[04:44:23] atmosx_: has joined #ruby
[04:45:31] bkxd: has joined #ruby
[04:46:12] Mekkis: has joined #ruby
[04:51:38] ellisTAA: has joined #ruby
[04:52:07] balazs: has joined #ruby
[04:52:09] ellisTAA: does anyone know of a gem that will allow me to send tweets from my command line?
[04:53:27] skade: has joined #ruby
[04:54:18] bkxd: has joined #ruby
[04:55:03] zipace: has joined #ruby
[04:55:03] zipace: has joined #ruby
[04:55:26] SalexW: has joined #ruby
[04:55:59] cscheib: EllisTAA: any rest gem to hit twitter's API directly, or, oddly enough, the twitter gem...
[04:58:17] balazs: has joined #ruby
[04:59:01] b_hoffman: has joined #ruby
[04:59:29] swgillespie: has joined #ruby
[05:00:03] fedexo: has joined #ruby
[05:00:34] shock_one: has joined #ruby
[05:01:34] balazs: has joined #ruby
[05:01:59] bkxd: can you believe how good looking the girls in russia? it is insane
[05:02:06] aeontech: has joined #ruby
[05:02:38] ellisTAA: cscheib: i???m just getting into programming, can you elaborate on what you said, specifically ???any rest gem to hit twitter???s api????
[05:02:47] doctorly: has joined #ruby
[05:03:48] jenrzzz: has joined #ruby
[05:04:29] Radar: +b *!*@168.1.6.26-static.reverse.softlayer.com
[05:04:37] Radar: Radar kicked bkxd: kind of discussion isn't welcome here.
[05:04:46] joneshf-laptop: has joined #ruby
[05:04:48] Radar: EllisTAA: The "t" gem
[05:04:55] ellisTAA: radar thanks
[05:05:03] agent_white: has joined #ruby
[05:05:11] havenwood: has joined #ruby
[05:05:35] Radar: hello agr
[05:05:39] Radar: tab complete fail
[05:05:44] Radar: Can you tell it's been a long week?
[05:05:46] agent_white: Radar: Heya, adar! ;D
[05:05:49] Radar: hello agent_white
[05:06:03] agent_white: Hahah. Well at least it's... Friday there, right?
[05:06:06] Radar: Half of monday -> Wednesday == payment gateway failures
[05:06:14] Radar: Yesterday morning: Site goes down for 2 hours
[05:06:21] Radar: Today: Delayed Jobs backed up because nobody knows
[05:06:37] Radar: I am giving up on this week as of this very moment.
[05:06:41] Siciala: Radar, Do you work as a full time web dev?
[05:06:43] Radar: I am not doing a single productive thing more until next week.
[05:06:48] Radar: Siciala: I sure do.
[05:07:10] kil0byte: has joined #ruby
[05:07:21] x1337807x: has joined #ruby
[05:07:31] Siciala: Radar, I see. Ruby/Rails is what you do mostly?
[05:07:37] Radar: Siciala: Yup.
[05:07:44] Radar: With smatterings of Go here and there
[05:07:49] phutchins: has joined #ruby
[05:08:06] agent_white: Radar: http://i.imgur.com/irVwt.jpg -- Does this sum it up pretty well?
[05:08:12] x1337807x: has joined #ruby
[05:08:21] Siciala: Radar, Heh. How is Go for web development, I have never seen it in action really?
[05:08:21] Radar: agent_white: perfect
[05:08:39] mrmargolis: has joined #ruby
[05:08:47] Radar: Siciala: It's not that bad. We're only using it for a very lightweight API at the moment.
[05:08:58] aeontech: has joined #ruby
[05:09:01] x1337807x: has joined #ruby
[05:09:01] revath: has joined #ruby
[05:09:03] Radar: I think I would prefer to write it in Elixir though because I like Elixir's syntax + package management wayyyy better
[05:09:51] x1337807x: has joined #ruby
[05:09:56] Siciala: Radar, Oh, another Elixir lover :)
[05:10:03] RegulationD: has joined #ruby
[05:10:05] Siciala: Radar, It's pretty new though.
[05:10:07] ghr: has joined #ruby
[05:10:27] Radar: Siciala: It's 3 years old.
[05:10:50] A205B064: has joined #ruby
[05:11:10] Radar: But compared with Ruby...
[05:11:12] Siciala: Radar, Yea that's new. And Phoenix is very new.
[05:11:24] havenwood: Siciala: 1.0 this summer.
[05:11:26] kil0byte_: has joined #ruby
[05:11:34] Siciala: Haven't seen you in #elixir-lang Radar :o
[05:11:35] Macaveli: has joined #ruby
[05:11:37] Siciala: havenwood, Yep :)
[05:11:45] Radar: Siciala: Because I have enough channels as it is!
[05:11:54] Radar: And I'm not really using it for anything at the moment, just learning it
[05:12:18] roshanavand: has joined #ruby
[05:12:21] bruno-: has joined #ruby
[05:12:34] kil0byte: has joined #ruby
[05:13:06] mandarinkins: has joined #ruby
[05:13:27] Siciala: Radar, Oh okey I see. It seems quite promising I guess. Matz and Joe are very impressed.
[05:14:39] leat: has joined #ruby
[05:18:20] _blizzy_: has joined #ruby
[05:20:30] revath1: has joined #ruby
[05:20:50] mdz_: has joined #ruby
[05:21:55] Radar: -b *!*@168.1.6.26-static.reverse.softlayer.com
[05:22:55] kenndel_: has joined #ruby
[05:24:25] dgutierrez1287: has joined #ruby
[05:25:02] pengin: has joined #ruby
[05:25:32] aganov: has joined #ruby
[05:25:49] bkxd: has joined #ruby
[05:25:51] mrsolo: has joined #ruby
[05:26:02] tubuliferous_: has joined #ruby
[05:26:06] baweaver: ACTION is using Elixir at work for a Hackathon because he can
[05:26:41] yfeldblum: has joined #ruby
[05:27:48] T3: has joined #ruby
[05:28:23] Cache_Money: has joined #ruby
[05:29:13] yfeldblum: has joined #ruby
[05:29:35] Hanmac1: has joined #ruby
[05:32:56] mrsolow: has joined #ruby
[05:34:29] super: has joined #ruby
[05:34:40] rikai: has joined #ruby
[05:34:59] jack_rabbit: has joined #ruby
[05:35:18] nwhirschfeld: has joined #ruby
[05:35:42] sevenseacat: has joined #ruby
[05:36:07] jenksy: has joined #ruby
[05:37:30] allomov: has joined #ruby
[05:39:04] tagrudev: has joined #ruby
[05:40:17] super: has joined #ruby
[05:40:44] x1337807x: has joined #ruby
[05:40:49] mandarinkins: has joined #ruby
[05:41:29] x1337807x: has joined #ruby
[05:41:50] Igorshp: has joined #ruby
[05:42:16] x1337807x: has joined #ruby
[05:43:05] x1337807x: has joined #ruby
[05:43:37] jenrzzz: has joined #ruby
[05:44:04] x1337807x: has joined #ruby
[05:44:05] sandstrom: has joined #ruby
[05:44:43] timonv: has joined #ruby
[05:44:53] x1337807x: has joined #ruby
[05:49:17] swgillespie: has joined #ruby
[05:51:01] _blizzy_: has joined #ruby
[05:51:26] Axy: has joined #ruby
[05:51:42] revath1: has left #ruby: ()
[05:52:24] jack_rabbit: has joined #ruby
[05:52:43] speaking1ode: has joined #ruby
[05:55:17] ebbflowgo: has joined #ruby
[05:56:12] psye: has joined #ruby
[05:57:39] kies: has joined #ruby
[05:59:05] _blizzy_: has joined #ruby
[06:01:27] dudedudeman: has joined #ruby
[06:02:25] krz: has joined #ruby
[06:02:42] multi_io: has joined #ruby
[06:03:21] shock_one: has joined #ruby
[06:06:47] leat: has joined #ruby
[06:10:05] coderhs: has joined #ruby
[06:10:08] bastilian: has joined #ruby
[06:10:46] roolo: has joined #ruby
[06:10:54] ghr: has joined #ruby
[06:11:15] shevy: you are telling us all of your secrets right now agent_white
[06:11:20] chinmay_dd: has joined #ruby
[06:11:33] _blizzy_: has joined #ruby
[06:11:49] bkxd: has joined #ruby
[06:12:17] abuzze: has joined #ruby
[06:12:29] ramfjord: has joined #ruby
[06:12:53] allomov: has joined #ruby
[06:13:22] stardiviner: has joined #ruby
[06:13:23] sigurding: has joined #ruby
[06:14:18] abuzze_: has joined #ruby
[06:15:10] jgt1: has joined #ruby
[06:16:02] revath1: has joined #ruby
[06:16:13] revath1: has left #ruby: ()
[06:17:12] agent_white: You know know how I resize windows in irssi... soon I'll be accidentally sending in my dental records, SSN... etc.
[06:17:14] c0m0: has joined #ruby
[06:19:20] aapole: has joined #ruby
[06:20:14] kerunaru: has joined #ruby
[06:22:04] Vile`: has joined #ruby
[06:23:02] Siciala: http://codepad.org/K6wSMZB6
[06:23:10] Siciala: This is hilarious, from the set.rb file
[06:23:19] Siciala: Look at the block.
[06:24:08] ellisTAA: From a programmers (as compared to an engineers) perspective, is it safe to say that REST just means you use GET / POST variables? And a RESTful API means a library that uses GET / POST vars?
[06:25:28] DoubleMalt: has joined #ruby
[06:25:56] baweaver: EllisTAA: http://programmers.stackexchange.com/questions/23891/what-is-rest-in-simple-english
[06:26:10] adefa: has joined #ruby
[06:26:16] codecop: has joined #ruby
[06:26:17] codecop_: has joined #ruby
[06:26:51] ellisTAA: thanks both of u
[06:27:32] GriffinHeart: has joined #ruby
[06:28:47] baweaver: uh oh, someone came up with a tutorial that gets into monads again: https://medium.com/@KamilLelonek/functional-programming-with-ruby-2-2-c711a2db415c
[06:28:58] baweaver: reading now, I'll mention if it's any good.
[06:29:02] baweaver: First part is decent at least.
[06:29:34] SOLDIERz: has joined #ruby
[06:29:39] shevy: monads in ruby?
[06:29:53] baweaver: It's possible, just ill advised without some static typing
[06:30:04] zenspider: shevy: tom stuart gave a really good talk on monads in ruby at gogaruco
[06:30:21] zenspider: prolly the best I've seen on monads (tho I _am_ biased against, so)
[06:30:28] baweaver: zenspider: the article references it :P
[06:30:42] zenspider: good. he does REALLY good shit all around
[06:30:59] baweaver: I'll watch it in a sec
[06:31:09] baweaver: reading through the rest of the article first.
[06:31:39] jalcine: has joined #ruby
[06:33:50] riotjones: has joined #ruby
[06:34:27] zenspider: I thought None/Some came from ML
[06:34:28] ellisTAA: has joined #ruby
[06:34:48] baweaver: Scala is basically SML on the JVM
[06:35:04] pyon: has joined #ruby
[06:35:19] j4cknewt: has joined #ruby
[06:35:19] balazs: has joined #ruby
[06:35:54] zenspider: interesting. I never got a good feel from it, but I took a course on ML last october and started to appreciate swift more :)
[06:36:17] arup_r: has joined #ruby
[06:36:21] baweaver: Giving a pretty lengthy talk on Scala and Spark tomorrow
[06:36:46] davedev24: has joined #ruby
[06:37:03] zenspider: I'm certainly biased against jvm-based languages simply because of startup costs (and I actually worked on the jvm and don't like the instruction set / architecture... but that's a major digression)
[06:37:10] zenspider: which spark?
[06:37:38] baweaver: In my case I have no such luck to avoid it
[06:37:43] baweaver: So I embrace the lesser evils
[06:37:56] zenspider: *nod* totally fair
[06:38:14] zenspider: now that I've done ml, I might not dislike scala... tho I'll never be a fan of static typing
[06:38:32] baweaver: depends on your experience with it
[06:38:39] baweaver: Java has a crap system for static typing
[06:38:49] zenspider: how do they claim to be THAT much faster than hadoop?
[06:39:10] baweaver: Hadoop is eager which kills its time
[06:39:14] zotherstupidguy: has joined #ruby
[06:39:19] baweaver: also it operates in straight memory
[06:39:20] zenspider: ah! cheaters. :P
[06:39:29] zenspider: is your talk going to be available anywhere?
[06:39:39] baweaver: blog eventually
[06:39:47] baweaver: I have the slides, I just need to write up on it
[06:40:06] rkazak: has left #ruby: ()
[06:40:07] baweaver: http://www.baweaver.com or http://www.lapidarylemur.com
[06:40:20] baweaver: about time for a redesign again, fixed elements do odd things in chrome
[06:41:38] zenspider: https://spark.apache.org/examples.html that's amazing
[06:41:47] zenspider: I love how python and scala are a couple chars off from each other
[06:41:53] zenspider: and then... there's java
[06:42:07] baweaver: You want to see why I quit my last job with Hadoop?
[06:42:23] baweaver: http://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html#Example:_WordCount_v2.0
[06:43:16] hedgecore: has joined #ruby
[06:44:29] baweaver: and remember zenspider, that's just a freaking word count. You should see what it did to ETL pipelines
[06:45:16] chussenot: has joined #ruby
[06:46:59] hubcaps: has joined #ruby
[06:47:03] zenspider: baweaver: idgi... the word count example on my url above is MUCH smaller, even in java
[06:47:08] zenspider: why would someone WANT that?
[06:47:30] baweaver: The same reason they want to use Java I guess
[06:47:40] allomov: has joined #ruby
[06:47:52] zenspider: no! that's a word count! I needs to be BIGGER
[06:48:03] zenspider: but... it works in this 10 line example...
[06:48:07] baweaver: Functional anything is scary
[06:48:20] baweaver: It needs objects because enterprise and functional is too hard to understand
[06:48:27] baweaver: that was pretty well the exact reason I got
[06:48:42] Nilium: Functional programming really isn't all that much different depending on how far on the purity scale you go.
[06:48:47] zipace: has joined #ruby
[06:49:06] baweaver: even after I rewrote their entire stack over a weekend in both Scala and Clojure (clojure I had just learned) that ended with less than 10% the original code footprint
[06:49:26] baweaver: Nilium: Java is as anti-fp as you can get in terms of hadoop
[06:49:27] Nilium: I do all of my Android stuff in Scala for lack of anything better.
[06:49:59] baweaver: I straight up avoid Java anymore.
[06:50:14] Nilium: Well, I don't use it for anything other than Android, so it's easy to avoid for me
[06:50:43] Oog: has joined #ruby
[06:50:46] Nilium: Everything I do at work is either Go or node.js (typically trying to replace the latter with the former where I can because I don't like dealing with node.js)
[06:51:00] Nilium: And most everything I do on my own is either C, C++, Go, or Ruby.
[06:51:33] baweaver: Most of our stack is Java here, so no choice
[06:51:41] gauke: has joined #ruby
[06:51:49] Nilium: Almost all of ours is PHP. Including cron jobs.
[06:52:08] Nilium: Thankfully, I don't have to touch it.
[06:52:15] Nilium: At least not normally.
[06:52:38] baweaver: I've been a tinge evil at $WORK
[06:52:50] Nilium: The evil I do at work is Go.
[06:52:54] baweaver: I talked to one of our spark devs and asked why he wasn't using Scala
[06:53:07] Nilium: 'Cause I've never asked anyone if I could use it. I just started sneaking it in. >_>
[06:53:07] baweaver: He said no one else was, so I responded by saying I'd work on that
[06:53:17] fabrice31: has joined #ruby
[06:53:29] Nilium: And when it became apparent that the little tools I wrote using Go were doing really well, it was easy to get it in for everything else.
[06:53:41] baweaver: fast forward 3 weeks and they're all in a frenzy, aforementioned dev is convinced I'm evil, and I'm giving an hour long talk on Scala and FP
[06:53:58] Nilium: I also switched us to Git, so I'm just plain awful.
[06:54:18] Nilium: I think I'm supposed to be talking about Git and our new projects and so on tomorrow
[06:54:45] baweaver: That, and my manager said I need to be respected as the go to and mentor for a subject matter to be considered a senior
[06:55:02] baweaver: so I manufactured a domain for myself and established myself as the only person who know it
[06:55:28] Nilium: Well, if you have to game the bureaucracy to shut someone up, so be it.
[06:55:39] baweaver: Promotion one down, now on to senior level! (Probably'll take a bit longer)
[06:55:43] nhhagen: has joined #ruby
[06:55:44] ramfjord: has joined #ruby
[06:56:09] sarkyniin: has joined #ruby
[06:56:47] Nilium: I think my title is just "developer" when people interview with me
[06:56:56] Nilium: I don't know if I have anything more formal than that.
[06:56:59] ringarin: has joined #ruby
[06:57:07] swgillespie: has joined #ruby
[06:57:29] mrmargolis: has joined #ruby
[06:57:40] Nilium: It's just fun when I'm introduced to new hires or interviewees or anyone else, 'cause it's not really clear what team I'm on
[06:58:12] baweaver: At least for now I'm mildly obsessed with gaming the ladder
[06:58:15] Nilium: Plus nobody can really say what it is I do, which makes it even better. "This is Nil, he does.. stuff."
[06:58:57] RegulationD: has joined #ruby
[06:59:24] bayed: has joined #ruby
[06:59:33] Ox0dea: has joined #ruby
[06:59:40] Iskarlar: has joined #ruby
[06:59:53] dudedudeman: has joined #ruby
[07:00:17] Ox0dea: Siciala: Could you clarify the humorous part of Set#flatten_merge?
[07:00:26] Polysics: has joined #ruby
[07:01:58] Oog: has joined #ruby
[07:02:37] rbowlby: has joined #ruby
[07:02:57] fujimura: has joined #ruby
[07:03:21] charliesome: has joined #ruby
[07:03:32] sigurding_: has joined #ruby
[07:03:52] swgillespie: has joined #ruby
[07:04:08] ereslibre: has joined #ruby
[07:05:04] fabrice31: has joined #ruby
[07:06:21] MatthewsFace: has joined #ruby
[07:08:15] Peteykun: has joined #ruby
[07:09:50] phutchins: has joined #ruby
[07:09:53] AlexRussia: has joined #ruby
[07:10:21] shortCircuit__: has joined #ruby
[07:10:44] shortCircuit__: is there a better way to do https://gist.github.com/argentum47/77628cad40183b70a069#file-sample-rb-L4
[07:11:14] baweaver: first, don't use python indentation style
[07:11:16] baweaver: hard to read
[07:11:39] ghr: has joined #ruby
[07:12:07] baweaver: second, why are you defining a method inside a method?
[07:12:08] Iskarlar: has joined #ruby
[07:12:17] shortCircuit__: ok, actually I didn't write this code,I am trying to cleanup ..
[07:12:40] shortCircuit__: its a singleton method of remote_file so that's why I guess
[07:12:52] shortCircuit__: but the actual purpose, idk
[07:13:10] doctorly: has joined #ruby
[07:13:50] shortCircuit__: I think the one who wrote it was doing javascript that time too :P
[07:14:03] baweaver: They definitely did Python as well.
[07:14:07] sfate: has joined #ruby
[07:14:13] tubuliferous_: has joined #ruby
[07:14:34] shortCircuit__: :D , and because of such an indentation my macs auto indent breaks. :
[07:15:05] Voyaya: has joined #ruby
[07:15:08] baweaver: also to be noted that they never use remote_file
[07:15:16] Voyaya: Why is it so complicated to install Rails..
[07:15:30] sevenseacat: gem install rails?
[07:15:43] swgillespie: has joined #ruby
[07:15:46] Voyaya: sevenseacat, I watched a tut and he went through rvm and such.
[07:15:58] Voyaya: For what reason.
[07:16:05] metallicrwr: has joined #ruby
[07:16:15] sevenseacat: because debian fucked up all its ruby packages
[07:16:22] metallicrwr: ok um...what's a good project for a newbie?
[07:16:40] metallicrwr: how about a file server over HTTP using require 'net/http' ?
[07:16:44] sevenseacat: thats not rails specific, thats just ruby
[07:16:51] baweaver: metallicrwr: http://www.projecteuler.net
[07:16:56] Voyaya: sevenseacat, damn..
[07:17:06] metallicrwr: baweaver: NUUU I want that file server1
[07:17:07] Voyaya: sevenseacat, What do I do then? I did try gems but I got Rails 3.2 with that
[07:17:08] baweaver: RVM isn't that bad to install
[07:17:11] metallicrwr: with a system load page
[07:17:15] baweaver: metallicrwr: Then build one
[07:17:32] baweaver: You're already set on a project, making it very odd to ask for others
[07:17:37] sevenseacat: `gem install rails` should give you the latest version of rails, which is 4.2.1
[07:17:43] metallicrwr: ok can you teach me about threads and I/O?
[07:17:58] shortCircuit__: can not those lines of code be replaced by a lambda or something.. and would that make sense to do it ?
[07:18:13] DrBojingle: has joined #ruby
[07:18:13] baweaver: metallicrwr: yes
[07:18:14] baweaver: http://ruby-doc.org/core-2.2.0/Thread.html
[07:18:15] Voyaya: sevenseacat, It does not.
[07:18:17] Voyaya: It gives 3
[07:18:25] sevenseacat: Voyaya: what command did you tun?
[07:18:27] baweaver: http://ruby-doc.org/core-2.2.0/File.html
[07:18:30] metallicrwr: sevenseacat: I'm asking about others because it might be too hard to build that file server
[07:18:38] Voyaya: sevenseacat, gem install rails
[07:18:44] baweaver: Then build something you know how to make?
[07:18:56] sevenseacat: its not, but whatever
[07:19:05] sevenseacat: then try `gem install rails --version 4.2.1`
[07:19:08] davidhq: has joined #ruby
[07:19:14] sandstrom: has joined #ruby
[07:19:25] metallicrwr: Gadgetoid: then what do I make? a program that tells how shiny I am?
[07:19:27] baweaver: sevenseacat: might be in a directory with a lockfile
[07:19:33] metallicrwr: even that's too hard
[07:19:45] sevenseacat: baweaver: doesnt matter, theyre using gem, not bundler
[07:19:48] Voyaya: sevenseacat, I think that worked. So I don't need RVM etc?
[07:19:59] sevenseacat: Voyaya: i never said that.
[07:20:18] Voyaya: sevenseacat, What would I need it for? I don't even know what it is.
[07:20:23] jhooker: has joined #ruby
[07:20:30] sevenseacat: you can get away with using apt-installed rubies, for a time, but you'll run into problems eventually.
[07:20:36] sevenseacat: like i said, debian fucked up all its ruby packages.
[07:20:58] Voyaya: sevenseacat, What if I go with Arch?
[07:21:13] sevenseacat: then thats not debian based is i
[07:21:15] noethics: anyone wanna fight about linux
[07:21:28] Voyaya: sevenseacat, No it's not. But will I be good?
[07:21:43] sevenseacat: do you know how to use arch?
[07:21:45] helpa: Why don't you try it and find out for yourself?
[07:21:57] Voyaya: sevenseacat, I'm linux user for 11 years, of course. I'm new to Ruby and Rails.
[07:22:06] metallicrwr: baweaver: ok so I have to spawn a thread that will wait for a connection and make another thread for a particular file as a request comes in
[07:22:13] noethics: i dont even talk to people who dont use gentoo
[07:22:20] bkxd: has joined #ruby
[07:22:27] surrounder: must be lonely at the pub
[07:22:36] sevenseacat: then you'll probably be good. i have no idea what arch's repos are like in terms of rubies.
[07:22:41] noethics: what's a pub
[07:22:43] bnagy: noethics: you need a hobby other than trolling on irc
[07:22:45] baweaver: metallicrwr: I don't intend to guide you through this all
[07:22:53] noethics: bnagy, how is that trolling?
[07:23:06] baweaver: It's over your head
[07:23:11] jack_rabbit: has joined #ruby
[07:23:11] baweaver: and I already gave you another idea.
[07:23:11] Voyaya: noethics, No sense. Do you even know the reason to use Gentoo?
[07:23:32] greenbagels: has joined #ruby
[07:23:34] Voyaya: noethics, Give me one reason to use Gentoo over Arch.
[07:23:41] bnagy: take it outside, kids
[07:23:56] bnagy: this isn't the place to have slap fights about linux
[07:23:58] noethics: Voyaya, because you get triple sized balls when you use gentoo
[07:24:11] Voyaya: Idiot confirmed.
[07:24:15] sevenseacat: noethics: watch it.
[07:24:43] noethics: im sry sevenseacat but i liked your elixir and phoenix code
[07:24:53] noethics: pls dont band me
[07:24:58] sevenseacat: good to know. that doesnt excuse you from trolling around here.
[07:25:04] sevenseacat: so, just watch it.
[07:25:14] noethics: idk how you define trolling but i was clearly kidding
[07:25:33] baweaver: metallicrwr: http://www.dreamincode.net/forums/topic/78802-martyr2s-mega-project-ideas-list/
[07:25:44] baweaver: That'll give you more than enough things to look into
[07:26:08] Voyaya: sevenseacat, I read some topics and as you said, everyone using RVM on Debian..
[07:26:15] sevenseacat: noethics: if you dont think the warning applies, then ignore it.
[07:26:18] noethics: yeah i just reread everything, there isn't even a hint of "trolling"
[07:26:23] sevenseacat: Voyaya: RVM or some kind of equivalent, yeah
[07:26:37] baweaver: Rvm, rbenv, and a few others
[07:26:38] sevenseacat: I use ubuntu and I use ruby-install to install rubies, and chruby to switch between them
[07:26:48] chipotle: has joined #ruby
[07:26:52] sevenseacat: shit, i'm on osx now, i keep forgetting. same deal though.
[07:27:13] bnagy: Voyaya: imho RVM is a baaaaad idea unless you need its extra features
[07:27:18] baweaver: convert! convert! :D
[07:27:28] bnagy: it is anti-unix, fragile and hard to troubleshoot
[07:27:32] metallicrwr: baweaver: Wow thanks!
[07:27:38] baweaver: bnagy: alternatives then?
[07:27:50] noethics: there is an rvm / chruby discussion in here atleast 5 times a day
[07:27:53] bnagy: chruby is the lightest switcher, but I had no problems with rbenv for years
[07:28:01] baweaver: I'm fine with saying something is bad, but suggest an alt if you do.
[07:28:10] bnagy: I don't use ruby-install though, tbh
[07:28:23] sevenseacat: i do. #lazyinstaller
[07:28:30] bnagy: baweaver: I was about to :)
[07:28:32] baweaver: Could make it a ruboto/helper method
[07:28:37] baweaver: fair enough
[07:28:55] ponga: has joined #ruby
[07:28:56] mrsolo: has joined #ruby
[07:29:44] Hanmac: has joined #ruby
[07:29:57] ponga: >> 3/2.to_f
[07:29:58] ruboto: ponga # => 1.5 (https://eval.in/375943)
[07:30:05] riffraff: has joined #ruby
[07:30:13] baweaver: couldn't help it. Anyways, 'night for me.
[07:30:21] sevenseacat: ponga: IRC isnt IRB.
[07:30:21] Ox0dea: baweaver: Wait.
[07:30:24] Oog: has joined #ruby
[07:30:34] Ox0dea: >> a = []; a << a; [a, a.sort]
[07:30:35] ruboto: Ox0dea # => [[[...]], [[[...]]]] (https://eval.in/375944)
[07:30:51] Ox0dea: What's with the different representation of an infinite Array that's had a method called on it?
[07:31:16] baweaver: ACTION runs for it
[07:32:09] Voyaya: sevenseacat, So in a book I'm reading, it says to install Rails, just "gem install rails -v 4.2.0" as you said. Is this the original way of installing Rails?
[07:32:14] ki0: has joined #ruby
[07:32:27] sevenseacat: thats the normal way of installing any gem
[07:32:33] sevenseacat: using the `gem` command
[07:33:29] sfate: use bundler for god sake..
[07:33:31] Voyaya: sevenseacat, Oh ok. It did seem much more complicated when I was watching the other guy installing it. And you mentioned ruby-install, what is that one for?
[07:33:49] sandelius: has joined #ruby
[07:34:02] sevenseacat: sfate: use bundler for installing rails? what?
[07:34:05] livathinos: has joined #ruby
[07:34:11] sevenseacat: ruby-install is for easily installing rubies
[07:34:39] Voyaya: Too much nonsense today..
[07:34:42] Voyaya: sevenseacat, Ok thanks :)
[07:34:48] solars: has joined #ruby
[07:35:19] sfate: sevenseacat: `echo 'rails' > Gemfile && bundle install` :)
[07:35:33] sevenseacat: lol, thats just pointless
[07:35:40] GriffinHeart: has joined #ruby
[07:35:51] sevenseacat: also, you would need bundler installed to do that, and how do you install bundler? with gem!
[07:36:21] sevenseacat: any more silly statements to make?
[07:36:29] Ox0dea: I'm using Ruby 0.6. How do I get RubyGems up and running?
[07:36:56] bnagy: Ox0dea: write it! But properly this time! :)
[07:37:07] k3asd`: has joined #ruby
[07:37:16] SalexW: wait what? Ruby 0.6?
[07:37:28] sfate: sevenseacat: yeap, make also is the way)
[07:37:40] sevenseacat: i presume it was a facetious comment given my 'silly statements' comment.
[07:38:10] abuzze: has joined #ruby
[07:38:18] Ox0dea: sevenseacat: There really was a 0.6, for what that's worth.
[07:39:30] LMity: has joined #ruby
[07:39:45] fujimura: has joined #ruby
[07:39:54] ponga: ruby 0.6?
[07:41:37] oz: has joined #ruby
[07:41:52] marr: has joined #ruby
[07:42:12] Ox0dea: ponga: https://github.com/ruby/ruby/blob/trunk/doc/ChangeLog-0.50_to_0.60
[07:42:17] Ox0dea: Way better than 0.5.
[07:42:42] ponga: omg its written in japanese how on earth u guys supposed to read this?
[07:43:13] sevenseacat: learn japanese, duh. >_>
[07:43:25] Ox0dea: Huh, Proc#arity used to be called #argc, apparently.
[07:43:54] bruno-: has joined #ruby
[07:43:59] dumdedum: has joined #ruby
[07:44:14] ponga: * ruby.c(proc_options): argc???0??????????????????. => works now when argc is 0
[07:44:39] Zai00: has joined #ruby
[07:44:51] sdwrage: has joined #ruby
[07:44:52] revath: has joined #ruby
[07:44:56] ponga: it always takes me a while to realise that is smile mozzarella
[07:45:07] shortCircuit__: there is tranlate.google.com .. why learn japniz when google learnt that for me
[07:45:18] ponga: that's tsu
[07:45:47] Darkwater: ????????????????????????!
[07:45:52] Voyaya: sevenseacat, Are there any stuff you should keep in mind when installing Rails or am I good to go once installed?
[07:45:58] ponga: Darkwater, cute
[07:46:11] sevenseacat: Voyaya: just `gem install rails` and you're good to go.
[07:46:22] zotherstupidguy: my japanese teacher kicked me out and told i should try easier things, she made join the dancing group of the culture course instead of the language course
[07:46:27] Voyaya: sevenseacat, Ok great.
[07:47:01] ponga: zotherstupidguy: please elaborate, i could easily finish a bag of popcorn for that
[07:47:21] Hobogrammer_: has joined #ruby
[07:47:52] ghr: has joined #ruby
[07:48:09] Igorshp: has joined #ruby
[07:48:16] ponga: Darkwater: using only hiragana in japanese is considered cute(linguistics-wise)
[07:48:22] ponga: believe it or not ;p
[07:48:35] vire: has joined #ruby
[07:48:49] Ox0dea: It's indicative of juvenility, no?
[07:49:02] ponga: yeah it is
[07:49:19] max--1: has joined #ruby
[07:49:24] Ox0dea: "Jew vanilla tea".
[07:49:48] ponga: u should add 'no offense' lol
[07:50:23] Darkwater: ????????????????????????(???????????????????????????????????????????)
[07:50:38] adaedra: What are all those people speaking japaneese
[07:50:48] adaedra: We merged with #ruby-jp ?
[07:50:56] ponga: that tear is kinda broken and overlaps lines
[07:50:57] workmad3: has joined #ruby
[07:51:07] ponga: adaedra: there is #ruby-jp ??
[07:51:09] krz: has joined #ruby
[07:51:12] ponga: didn't know that til now
[07:51:43] adaedra: I don't speak japanese
[07:54:01] Jackneill: has joined #ruby
[07:55:36] leat: has joined #ruby
[07:56:01] Scroff: has joined #ruby
[07:56:10] jhass: the japanese are on another network
[07:56:19] revath: has joined #ruby
[07:56:31] jhass: https://www.ruby-lang.org/ja/community/
[07:56:31] oz: has joined #ruby
[07:56:40] mozzarella: tons of spiders in this house, I should buy a gun
[07:57:38] nofxx__: has joined #ruby
[07:57:52] ta: has joined #ruby
[07:59:02] ahmetkapikiran: has joined #ruby
[07:59:16] sfate: flamethrower then
[07:59:40] zotherstupidguy: jhass whats the other newtwork fo the jp?
[07:59:51] jhass: zotherstupidguy: see my link?
[08:00:12] zotherstupidguy: not unless you post it 3 times lol
[08:00:26] anisha: has joined #ruby
[08:00:29] zotherstupidguy: ok but whats the irc network?
[08:00:33] jhass: I could kick you with it as the kick reason, would that work?
[08:00:57] jhass: common, it's not even written in kanji there
[08:01:03] zotherstupidguy: jhass please dont, #ruby is my favourite place in the whole wide world
[08:01:56] angus: has joined #ruby
[08:02:16] jhass: and it's a link.. with an URL and it has some more latin letters in front...
[08:02:37] mikecmpbll: has joined #ruby
[08:04:39] jenrzzz: has joined #ruby
[08:04:46] zotherstupidguy: ponga actually i am good friend to the local japan foundation branch(egypt), i even organized welcome and goodbye parties for the officals. i originally joined in because i used to practice Judo and wanted to learn the lang
[08:05:21] IanVorn: has joined #ruby
[08:05:25] datanoise: has joined #ruby
[08:05:31] zotherstupidguy: ponga jf tought me Go(the board game)
[08:06:31] leat: has joined #ruby
[08:06:34] revath: has joined #ruby
[08:07:04] msgodf: has joined #ruby
[08:07:58] Ox0dea: has left #ruby: ("WeeChat 1.3-dev")
[08:08:11] doctorly: has joined #ruby
[08:08:37] mdz_: has joined #ruby
[08:11:19] Rubie: has joined #ruby
[08:13:06] cryptarium__: has joined #ruby
[08:13:21] sandstrom: has joined #ruby
[08:13:43] CloCkWeRX: has joined #ruby
[08:14:23] adefa: has joined #ruby
[08:15:27] sinkensabe: has joined #ruby
[08:22:08] zotherstupidguy: ljarvis monring
[08:22:14] kstuart: has joined #ruby
[08:23:26] krz: has joined #ruby
[08:23:58] withnale_: has joined #ruby
[08:24:20] DaniG2k: has joined #ruby
[08:24:47] quimrstorres: has joined #ruby
[08:24:57] dgutierrez1287: has joined #ruby
[08:25:35] wald0: has joined #ruby
[08:27:31] duncannz: has joined #ruby
[08:28:20] rdark: has joined #ruby
[08:29:16] chussenot: has joined #ruby
[08:29:54] zotherstupidguy: has joined #ruby
[08:30:23] Trieste: has joined #ruby
[08:30:23] Trieste: has joined #ruby
[08:34:24] bosma: has joined #ruby
[08:34:26] quimrstorres: has joined #ruby
[08:34:27] zotherstupidguy: has joined #ruby
[08:36:19] quimrstorres: has joined #ruby
[08:37:14] balazs: has joined #ruby
[08:38:47] ahmetkapikiran: has joined #ruby
[08:40:12] dhjondoh: has joined #ruby
[08:42:04] maloik: I'm trying to test a rake task and created a spec file with two tests in it. I rake_require in a before(:each), define :environment, and then invoke the task in each test. For some reason, it's only executing the rake task once, as evidenced by the fact that I only enter a pry session once where the binding.pry is inside the rake task. Any clues? https://gist.github.com/hannesfostie/9ad6c6d2688e601d387d
[08:44:52] banister: has joined #ruby
[08:45:30] toretore: has joined #ruby
[08:46:13] certainty: maloik: why don't you extract the tasks functionality into a class and use that in the rake task
[08:46:21] greenbagels_: has joined #ruby
[08:46:24] mrmargolis: has joined #ruby
[08:46:46] mdw: has joined #ruby
[08:47:15] maloik: mostly because it was such a tiny task. that said, I'd still love to figure out wth is going on here :D
[08:47:31] maloik: (extracting was the next step cause I have a feeling I'm not going to solve this one)
[08:47:50] RegulationD: has joined #ruby
[08:47:51] apeiros: IMO extracting is always the right thing to do
[08:48:23] michas: has joined #ruby
[08:49:28] maloik: yea I will
[08:49:37] seal: has joined #ruby
[08:49:46] fluter: has joined #ruby
[08:49:49] Akagi201: has joined #ruby
[08:49:52] maloik: is the behavior something that was to be expected though? I really don't understand why it wouldn't invoke it twice
[08:50:04] porkqpain: has joined #ruby
[08:50:49] maxshelley: has joined #ruby
[08:52:27] maloik: yorickpeterse: https://twitter.com/twalex/status/605938717434331137
[08:52:43] platzhirsch: has joined #ruby
[08:55:39] imanzarrabian: has joined #ruby
[08:56:03] fella7s: has joined #ruby
[08:59:07] relix: has joined #ruby
[09:00:00] troulouliou_dev: has joined #ruby
[09:02:23] tubuliferous_: has joined #ruby
[09:03:08] fella5s: has joined #ruby
[09:04:41] chipotle: has joined #ruby
[09:07:14] fella6s: has joined #ruby
[09:08:22] charliesome: has joined #ruby
[09:09:17] T3: has joined #ruby
[09:09:43] fella7s: has joined #ruby
[09:09:58] mdz_: has joined #ruby
[09:10:08] vdamewood: has joined #ruby
[09:11:37] mister_solo: has joined #ruby
[09:12:17] nofxx__: has joined #ruby
[09:12:34] Rubie: has joined #ruby
[09:14:33] fabrice31_: has joined #ruby
[09:14:33] qianlima: has joined #ruby
[09:15:06] bruno-: has joined #ruby
[09:16:02] chussenot: has joined #ruby
[09:19:06] leafybasil: has joined #ruby
[09:19:27] fella6s: has joined #ruby
[09:22:24] DoubleMalt: has joined #ruby
[09:22:28] qianlima: has joined #ruby
[09:22:50] kevkev: has joined #ruby
[09:24:52] chussenot: has joined #ruby
[09:25:38] MatthewsFace: has joined #ruby
[09:27:06] DEA7TH_: has joined #ruby
[09:27:44] terlar: has joined #ruby
[09:27:53] dfockler: has joined #ruby
[09:28:21] workmad3: has joined #ruby
[09:31:14] starfox_sf: has joined #ruby
[09:31:28] qianlima: has joined #ruby
[09:32:27] davidhq: has joined #ruby
[09:34:20] qianlima: has joined #ruby
[09:34:34] charliesome: has joined #ruby
[09:35:15] Oog: has joined #ruby
[09:35:35] adaedra: didn't work
[09:36:32] ahmetkapikiran: has joined #ruby
[09:36:42] davidhq: has joined #ruby
[09:37:11] jhass: you scared them away :(
[09:37:45] martinma: has joined #ruby
[09:38:59] denver: has joined #ruby
[09:39:54] micmus: has joined #ruby
[09:40:56] martinma: has joined #ruby
[09:42:28] martinma4: has joined #ruby
[09:43:45] martinma4: has joined #ruby
[09:44:14] intinig: has joined #ruby
[09:46:10] n008f4g_: has joined #ruby
[09:46:16] martinma4: has left #ruby: ()
[09:46:34] martinma4: has joined #ruby
[09:48:05] krz: has joined #ruby
[09:48:39] martinma4: has joined #ruby
[09:49:49] serivich: has joined #ruby
[09:49:57] stoffus: has joined #ruby
[09:51:18] bruno-: has joined #ruby
[09:51:38] porfa: has joined #ruby
[09:54:13] chipotle: has joined #ruby
[09:54:57] olistik: has joined #ruby
[09:57:04] ponga: has joined #ruby
[09:57:26] keen___________5: has joined #ruby
[09:58:41] fabrice31: has joined #ruby
[09:58:54] Scroff: has joined #ruby
[10:00:54] granthatcher: has joined #ruby
[10:02:26] fella5s: has joined #ruby
[10:02:30] Oog: has joined #ruby
[10:03:37] revath1: has joined #ruby
[10:03:58] AlexRussia: has joined #ruby
[10:04:02] martinma4: has joined #ruby
[10:04:26] rdark: anyone know any good maths-centric programming channels?
[10:05:12] fabrice31_: has joined #ruby
[10:05:45] revath1: has left #ruby: ()
[10:07:40] Timba-as: has joined #ruby
[10:13:34] cryptarium: has joined #ruby
[10:14:21] mandarinkin: has joined #ruby
[10:17:39] arup_r: has joined #ruby
[10:18:48] fujimura: has joined #ruby
[10:19:19] Ca1us: has joined #ruby
[10:19:39] sandelius: has joined #ruby
[10:20:24] rickmasta: has joined #ruby
[10:21:07] hs366: has joined #ruby
[10:21:12] mdw: has joined #ruby
[10:21:28] fujimura_: has joined #ruby
[10:23:06] porkqpain: has joined #ruby
[10:25:28] michas: there was a shell provider offering many rubies to test stuff. Can you help me to remember its name?
[10:27:01] bnagy: not shell, but eval.in does
[10:27:04] serivich: has joined #ruby
[10:27:30] charliesome: has joined #ruby
[10:27:52] stamina: has joined #ruby
[10:28:29] c0m0: has joined #ruby
[10:29:06] Oog: has joined #ruby
[10:30:59] mandarinkin: has joined #ruby
[10:32:39] quimrstorres: has joined #ruby
[10:32:45] timonv: has joined #ruby
[10:32:47] martinma4: has joined #ruby
[10:35:17] mrmargolis: has joined #ruby
[10:35:38] skade: has joined #ruby
[10:35:48] unclouded: has joined #ruby
[10:35:49] sandelius: has joined #ruby
[10:35:51] martinma4: has joined #ruby
[10:36:02] martinma4: has left #ruby: ()
[10:36:40] RegulationD: has joined #ruby
[10:37:50] martinma4: has joined #ruby
[10:38:01] sdothum: has joined #ruby
[10:38:54] balazs: has joined #ruby
[10:40:14] allcentury: has joined #ruby
[10:41:07] Fooster: has joined #ruby
[10:42:11] Iskarlar: has joined #ruby
[10:42:22] sdothum: has joined #ruby
[10:43:25] fabrice31: has joined #ruby
[10:43:38] relix: has joined #ruby
[10:43:56] Polysics: has joined #ruby
[10:45:09] livcd: #sass is silent so i thought i might ask here....
[10:45:13] livcd: can i add a label to selectors somehow via @include so i can target that specific list with other function ?
[10:45:19] livcd: or maybe can i push the names of the selectors that i target via @include to a list that can be then used with other function ?
[10:47:30] martinma4: has joined #ruby
[10:49:07] phutchins: has joined #ruby
[10:49:14] martinma4: has left #ruby: ()
[10:49:38] Aeyrix: livcd: Don't think so yo.
[10:49:52] martinma4: has joined #ruby
[10:49:53] Aeyrix: Lol jhass are you referencing that bundler issue every time you commit a bundler version bump?
[10:50:35] tubuliferous_: has joined #ruby
[10:51:19] rodfersou: has joined #ruby
[10:51:46] dgutierrez1287: has joined #ruby
[10:52:13] livcd: Aeyrix: i imagine when i add @include to a selector it pushes the selector name to a list variable
[10:52:17] livcd: and then i iterate through that list in my function
[10:52:37] denver: has joined #ruby
[10:52:40] Aeyrix: Are you trying to prove SASS turing complete or something?
[10:53:13] thelastinuit: has joined #ruby
[10:53:21] jgt1: has joined #ruby
[10:53:25] livcd: well what i am trying to accomplish is to use the function on a set of selectors which i can target by names
[10:53:43] martinma4: has left #ruby: ()
[10:54:07] skade: has joined #ruby
[10:54:20] martinma4: has joined #ruby
[10:54:23] Aeyrix: Not a sass expert, unfortunately. :(
[10:54:28] Aeyrix: I use vanilla CSS a lot more.
[10:54:46] livcd: thx for answer anyway :-)
[10:55:26] livcd: maybe i can try to ask inn #less as well
[10:55:35] armyriad: has joined #ruby
[10:55:47] livcd: oh there's no less
[10:56:28] martinma4: has left #ruby: ()
[10:57:09] jcromartie: has joined #ruby
[10:57:20] ponga: has joined #ruby
[10:58:10] olistik: has joined #ruby
[10:58:12] Aeyrix: It might be ##less
[10:58:18] ahmetkapikiran: has joined #ruby
[10:58:24] zenspider: rdark: ##mathematica :)
[10:58:36] rdark: ah yes, those guys
[10:58:47] rdark: it's more of a CS question, but I'll give them a shot
[10:58:48] rdark: thanks :)
[10:58:53] zenspider: what's the q?
[11:00:10] rdark: I'm comparing an arbitrary number of arrays against each other by doing a bubble-sort-ish algorithm, and wanted to know how to calculate the efficiency of it
[11:00:29] BLuEGoD: has joined #ruby
[11:00:56] rdark: and how to calculate how many iterations would be required for a given number of arrays
[11:01:14] Oog: has joined #ruby
[11:01:57] chico26ga: has joined #ruby
[11:02:04] chico26ga: has left #ruby: ()
[11:02:13] olistik: rdark: could you expand this a bit more? "comparing an arbitrary number of arrays against each other by doing a bubble-sort-ish algorithm"
[11:02:27] zenspider: usually you can just look that type of shit up. they're all gonna be fairly related in performance so you just need to find the flavor of your alg
[11:03:02] rdark: olistik: so I have an arbitrary number of arrays (of hashes), I want to ensure that a given key within every hash is globally unique
[11:03:03] zenspider: hee: http://bigocheatsheet.com/
[11:03:16] rdark: zenspider: thanks - that looks v. useful
[11:04:00] zenspider: so assuming your assessment is right, that it is bubble-sort-ish, it'd be in the n^2 family
[11:04:16] dgutierrez1287: has joined #ruby
[11:04:19] rdark: yeah - O(n^2) is the classic bubble sort
[11:05:15] olistik: zenspider: that resource looks very nice, thanks for sharing :-)
[11:06:05] zenspider: I literally just googled bubble sort algorithm big o
[11:06:10] zenspider: ok. I should sleep
[11:06:16] zenspider: suns coming up soonish
[11:06:16] olistik: rdark: I second the n^2 cost
[11:07:41] Trynemjoel: has joined #ruby
[11:08:43] avat: has joined #ruby
[11:10:34] jokester: has joined #ruby
[11:12:31] jgpawletko: has joined #ruby
[11:12:49] _blizzy_: has joined #ruby
[11:13:04] avat: Hey guys, I'm wondering about one thing in rufus-scheduler. Here is the code: https://gist.github.com/ZyzioZiom/e3750aadf57bfb571962 I wrote a question in comment to be more readable
[11:13:50] Aeyrix: avat: That'll run in 10 days from the scheduler
[11:14:20] Aeyrix: and create an instance of the 'Something' class, passing today's date to the constructor.
[11:14:22] avat: Aeyrix: ok, so the date persists in variable for 10 days, yes?
[11:14:37] avat: Thank you :)
[11:15:35] avat: Oh, and I have another. This is in Sinatra post request. When I get another request in these 10 days, variable is overwritten?
[11:16:25] Aeyrix: It... won't, but I'm not sure if you will be able to process another request while that's locking for 10d.
[11:16:51] langlands: has joined #ruby
[11:17:33] artmann: has joined #ruby
[11:17:36] jcromartie: has joined #ruby
[11:17:50] avat: Well, 4 post request in a row succeeded
[11:18:04] avat: I'll wait what happens in logs
[11:18:28] banister: has joined #ruby
[11:19:08] serivich: has joined #ruby
[11:19:59] starfox_sf: has joined #ruby
[11:20:10] Scripore: has joined #ruby
[11:20:24] fella5s: has joined #ruby
[11:21:18] nini1249: has joined #ruby
[11:21:47] havenwood: has joined #ruby
[11:21:55] nini1249: Hey, has anyone used the roda framework?
[11:22:27] dionysus69: has joined #ruby
[11:22:29] sandelius: nini1249 yeah, was fun at first but when it started to grow, no.
[11:23:00] dionysus69: hey guys how can I get a ruby cloak as I am planning to spend most of my time on ruby development?
[11:24:20] sandelius: nini1249 I'm currently using http://ramverk.org/ (I built it) and it works great for my API's.
[11:25:15] Aeyrix: dionysus69: Don't have.
[11:25:19] sarkyniin: has joined #ruby
[11:25:35] nini1249: sandelius Thanks, what other frameworks could you recommend for a simple REST api
[11:25:38] havenwood: nini1249: I really like Roda so far. And Jeremy Evans is a fantastic maintainer so the future looks good.
[11:25:44] sigurding: has joined #ruby
[11:25:47] Aeyrix: nini1249: Sinatra, Volt.
[11:25:52] Aeyrix: Rails with the api gem.
[11:25:54] rovnero: has joined #ruby
[11:25:54] havenwood: nini1249: I don't think there's a better option.
[11:26:16] sandelius: nini1249 Like you see, it depends on who you ask :)
[11:26:43] sandelius: But they all will work for you. Just in different ways
[11:27:25] nini1249: havenwood I played around with Roda a while ago and it seemed simple but now im kinda lost
[11:28:02] nini1249: hawenwood I cant even get the sample code from github to work
[11:28:10] havenwood: nini1249: I'd suggest going through and examining each of the plugins if you haven't already.
[11:28:21] denver: has joined #ruby
[11:28:24] havenwood: nini1249: Can't get it to work? What trouble are you running into?
[11:29:13] nini1249: havenwood I tried to execute the code and the error says undefined method `run' for main:Object (NoMethodError)
[11:29:32] nini1249: havenwood I guess im not runnign it correctly
[11:29:55] havenwood: nini1249: What app are you running?
[11:30:24] havenwood: nini1249: Ah, just the example snippet?
[11:30:28] nini1249: havenwood The simlpe HelloWorld one from github
[11:30:38] nini1249: havenwood yep
[11:30:50] last_staff: has joined #ruby
[11:32:53] Miphix: has joined #ruby
[11:33:35] havenwood: nini1294: That example is meant to be saved as `rackup.ru` and run with the `rackup` command.
[11:34:02] nini1294: havenwood, Ahh thanks a lot
[11:34:13] havenwood: nini1294: config.ru I mean
[11:34:17] havenwood: nini1294: no prob
[11:34:41] havenwood: nini1294: It's what provides the `run`.
[11:37:22] rht: has joined #ruby
[11:37:24] _blizzy_: has joined #ruby
[11:38:05] a346: has joined #ruby
[11:38:26] vikaton: has joined #ruby
[11:40:03] jhass: dionysus69: we don't have cloaks (yet)
[11:40:42] dionysus69: jhass Aeyrix : ok thanks :)
[11:41:13] havenwood: dionysus69: Maybe get a #freenode cloak in the meanwhile. :)
[11:41:24] balazs: has joined #ruby
[11:42:20] dionysus69: how ? where should I ask for it ? havenwood some people made me fear security cause I dont have ip covered haha
[11:42:25] apofis: has joined #ruby
[11:43:03] jhass: dionysus69: a cloak will only protect you from the most stupid, it's not really a security feature
[11:43:29] skade: has joined #ruby
[11:43:35] Iskarlar: has joined #ruby
[11:43:38] datanoise: has joined #ruby
[11:43:40] i: has joined #ruby
[11:44:02] apofis: has joined #ruby
[11:44:32] havenwood: dionysus69: Just ask in #freenode and they'll set you up.
[11:44:51] havenwood: dionysus69: But it doesn't hurt. It's easy to request.
[11:45:01] c0m0: has joined #ruby
[11:45:27] nini1294: has joined #ruby
[11:45:44] havenwood: jhass: It's a shame they disabled sasl-tor.
[11:45:54] havenwood: I'd like that back.
[11:45:59] skade: has joined #ruby
[11:46:25] jhass: -oo Radar jhass
[11:48:25] Aeyrix: I don't really have a fear of people on IRC.
[11:49:07] jhass: dionysus69: in other words, if you don't trust your systems enough to be not hacked just because somebody knows their IPs, don't connect them to the internet
[11:49:51] Aeyrix: jhass: Have you not seen the espernet "purges"?
[11:49:53] dionysus69: jhass: haha no I am fine I am on ubuntu :P just a precaution in a world of security
[11:49:54] Aeyrix: o wait you have me on ignore.
[11:49:58] mbug: has joined #ruby
[11:51:24] olistik: rdark: about your key search across your arrays
[11:51:28] Aeyrix: probably deserved it lel
[11:52:10] olistik: if you can build and maintain a dictionary that keeps track of every key available, then your search should be O(1)
[11:52:23] adefa: has joined #ruby
[11:53:03] olistik: but this largely depends on your context
[11:53:55] nini1249: has joined #ruby
[11:54:06] iamjarvo: has joined #ruby
[11:54:18] sgambino: has joined #ruby
[11:58:27] nini1249: has joined #ruby
[11:58:50] pepelui: has joined #ruby
[11:59:44] nhhagen: has joined #ruby
[12:01:51] dionysus69: has joined #ruby
[12:02:33] sigurding: has joined #ruby
[12:03:18] chussenot: has joined #ruby
[12:03:30] e1nh4nd3r: has joined #ruby
[12:03:53] c355E3B: has joined #ruby
[12:06:09] dionysus69: has joined #ruby
[12:06:49] IanVorn: has joined #ruby
[12:08:49] towski_: has joined #ruby
[12:09:13] Iskarlar: has joined #ruby
[12:10:31] sigurding_: has joined #ruby
[12:10:37] apofis: has joined #ruby
[12:12:13] roolo: has joined #ruby
[12:12:27] apofis: has joined #ruby
[12:12:40] fabrice31: has joined #ruby
[12:13:34] fujimura_: has joined #ruby
[12:17:41] ahmetkapikiran: has joined #ruby
[12:18:49] dionysus69: has joined #ruby
[12:18:57] AlexRussia: has joined #ruby
[12:19:24] mandarinkin: has joined #ruby
[12:20:14] goodcodeguy: has joined #ruby
[12:21:19] daxroc: Afternoon all
[12:21:26] charliesome: has joined #ruby
[12:23:12] daxroc: Anyone know how to use basic auth with geminabox to upload from the cli? I've tried gem inabox pkg/mha-gem.gem --host http://user:pass@192...:9292
[12:24:18] Skelz0r: has joined #ruby
[12:25:34] RegulationD: has joined #ruby
[12:25:49] sdwrage: has joined #ruby
[12:26:33] ESpiney: has joined #ruby
[12:27:38] sankaber: has joined #ruby
[12:27:45] fabrice31_: has joined #ruby
[12:28:09] luluapple: has joined #ruby
[12:29:04] sandelius: has joined #ruby
[12:29:59] symm-: has joined #ruby
[12:30:08] Zai00: has joined #ruby
[12:31:53] certainty: hmm lotusrb looks extremely promising
[12:32:24] dorei: has joined #ruby
[12:33:38] yalue: has joined #ruby
[12:34:54] Guest21934: has joined #ruby
[12:35:50] yqt: has joined #ruby
[12:35:58] maxshelley: has joined #ruby
[12:36:49] zipace: is there a way to the equivalent of this with open3: someprogram | while read line; dosomethingwith "$line"; done
[12:37:13] zipace: that is, read a programs output (by line), *while* it is running
[12:37:25] zipace: pipes, basically
[12:37:49] jhass: zipace: yup, open3 is the way to go
[12:38:44] tubuliferous_: has joined #ruby
[12:39:28] apt-get_: has joined #ruby
[12:39:47] zipace: jhass: and open3 actually supports pipes? so I can do `Open3.open3("foo"){|stdin,stdout,stderr,thr| stdout.each_line{...}}`
[12:40:09] zipace: because i admit i haven't actually tested that yet
[12:40:50] gigetoo: has joined #ruby
[12:40:53] kobain: has joined #ruby
[12:41:14] [k-: has joined #ruby
[12:42:33] iamninja: has joined #ruby
[12:43:35] CustosLimen: has joined #ruby
[12:43:37] mandarinkin: has joined #ruby
[12:43:49] michas: has joined #ruby
[12:44:07] phoo1234567: has joined #ruby
[12:44:21] leat: has joined #ruby
[12:45:08] fabrice31: has joined #ruby
[12:45:26] unshadow: has joined #ruby
[12:45:46] Stan: has joined #ruby
[12:45:55] troulouliou_dev: has joined #ruby
[12:46:16] adac: has joined #ruby
[12:46:44] msnyon: has joined #ruby
[12:48:55] bmurt: has joined #ruby
[12:48:58] adac: having "start_date = 1.week.ago" and "end_date = Time.zone.today" ... how to get back the days in between the two dates? I tried like simply: "end_date - start_date" but that gives me an error: "TypeError: expected numeric"
[12:49:31] langlands: has joined #ruby
[12:50:04] Rubie: has joined #ruby
[12:50:34] phoo1234567: has joined #ruby
[12:50:50] OrbitalKitten: has joined #ruby
[12:50:50] revoohc: has joined #ruby
[12:51:58] jhass: 1.week.ago returns a Time I think?
[12:52:05] jhass: try to_date
[12:52:21] n008f4g_: has joined #ruby
[12:52:40] griffindy: has joined #ruby
[12:52:45] langlands: has joined #ruby
[12:53:23] adac: jhass, to_date works! hwoever I need also to use Time.zone.now
[12:53:39] ESpiney: has joined #ruby
[12:53:56] jhass: it has the same method...
[12:54:48] i: has joined #ruby
[12:54:48] adac: jhass, you are right, it also works with Time.zone.today
[12:54:51] adac: thanks a lot!
[12:55:27] Rapier-: has joined #ruby
[12:55:31] jhass: adac: note that Time.zone and 1.week.ago are ActiveSupport extensions
[12:55:46] sigurding: has joined #ruby
[12:56:08] adac: jhass, Oh ok I see!
[12:57:00] fabrice31_: has joined #ruby
[12:57:24] allcentury: has joined #ruby
[12:57:46] tuelz2: has joined #ruby
[12:57:55] lfox: has joined #ruby
[12:58:51] Scroff: has joined #ruby
[13:01:47] malconis: has joined #ruby
[13:03:42] nonparfumee: has joined #ruby
[13:05:32] relix: has joined #ruby
[13:06:48] chipotle: has joined #ruby
[13:06:50] pepperbreath1: has joined #ruby
[13:07:36] quimrstorres: has joined #ruby
[13:08:02] jgt1: has joined #ruby
[13:08:04] malconis: has joined #ruby
[13:08:26] davidhq: has joined #ruby
[13:08:49] starfox_sf: has joined #ruby
[13:09:10] Aeyrix: certainty: Yeah.
[13:09:17] Aeyrix: RE: Lotus.
[13:09:29] datanoise: has joined #ruby
[13:10:35] sevenseacat: has joined #ruby
[13:11:20] krz: has joined #ruby
[13:11:23] fabrice31: has joined #ruby
[13:12:25] jgpawletko: has joined #ruby
[13:14:17] IanVorn: has joined #ruby
[13:15:47] livathinos: has joined #ruby
[13:16:07] Fooster: has joined #ruby
[13:16:53] dblessing: has joined #ruby
[13:18:55] hinbody: has joined #ruby
[13:19:21] b_hoffman: has joined #ruby
[13:20:49] rippa: has joined #ruby
[13:20:59] b_hoffman: has left #ruby: ()
[13:21:29] troulouliou_dev: has joined #ruby
[13:22:36] ahmetkapikiran: has joined #ruby
[13:24:31] mandarinkin: has joined #ruby
[13:24:33] dnlbyl: has joined #ruby
[13:26:19] arup_r1: has joined #ruby
[13:26:22] mrmargolis: has joined #ruby
[13:26:26] RegulationD: has joined #ruby
[13:26:31] dawkirst: has joined #ruby
[13:26:46] dionysus69: has joined #ruby
[13:27:02] mister_solo: has joined #ruby
[13:31:42] Scripore: has joined #ruby
[13:31:56] lavros: has joined #ruby
[13:32:35] segfalt: has joined #ruby
[13:32:51] iamjarvo: has joined #ruby
[13:33:08] bkxd: has joined #ruby
[13:36:44] dhjondoh: has joined #ruby
[13:37:19] ahmetkapikiran: has joined #ruby
[13:41:08] zipace: has joined #ruby
[13:41:58] n80: has joined #ruby
[13:42:11] jcromartie: has joined #ruby
[13:43:19] gambl0re: has joined #ruby
[13:43:43] allenn: has joined #ruby
[13:43:57] northfurr: has joined #ruby
[13:44:12] broman: has joined #ruby
[13:44:19] fujimura: has joined #ruby
[13:44:22] broman: can anyone tell me what's wrong with this line: expect(user).to have(1).error_on(:email) ???
[13:44:53] broman: Im using rails 3.2.14 -> can anyone tell me what's wrong with this line: expect(user).to have(1).error_on(:email) ???
[13:45:58] aapole: has joined #ruby
[13:47:01] dionysus69: has joined #ruby
[13:48:33] ur5us: has joined #ruby
[13:48:44] nateberkopec: has joined #ruby
[13:48:59] RegulationD: has joined #ruby
[13:49:26] Zai00: has joined #ruby
[13:49:39] vyorkin: has joined #ruby
[13:49:42] jhass: ?rails broman
[13:49:43] ruboto: broman, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[13:50:09] DoubleMalt: has joined #ruby
[13:50:19] riotjones: has joined #ruby
[13:50:58] skade: has joined #ruby
[13:51:08] allenn: has joined #ruby
[13:51:38] Tempesta: has joined #ruby
[13:51:46] victorkohl: has joined #ruby
[13:51:52] Mon_Ouie: has joined #ruby
[13:52:52] vyorkin: has joined #ruby
[13:53:28] [k-: doing gem update
[13:54:02] allcentury: has joined #ruby
[13:54:10] adaedra: gem break --everything
[13:54:55] [k-: Gems updated: bigdecimal bundler byebug colorize eventmachine finishing_moves json minitest power_assert byebug pry-byebug psych rb-readline rspec rspec-core rspec-expectations rspec-mocks rspec-support ruby-progressbar slop test-unit
[13:54:57] byprdct: has joined #ruby
[13:55:11] [k-: adaedra: WARNING: Unknown command break. Try: gem help commands
[13:55:18] [k-: i tried that :P
[13:56:17] nedp: has joined #ruby
[13:56:21] rickmasta: has joined #ruby
[13:57:04] byprdct: has joined #ruby
[13:57:15] nini1294: has joined #ruby
[13:57:19] paulcsmith: has joined #ruby
[13:58:09] someword: has joined #ruby
[13:58:11] Takumo: What's the easiest way to configure my Rack server to log all requests?
[13:58:24] Jake232: has joined #ruby
[13:58:57] adaedra: Rack::CommonLogger ?
[13:59:55] byprdct: has joined #ruby
[14:00:05] freerobby: has joined #ruby
[14:00:14] mary5030: has joined #ruby
[14:00:35] sigurding: has joined #ruby
[14:01:04] mary5030: has joined #ruby
[14:02:54] sigden: has joined #ruby
[14:04:19] wlanboy: has joined #ruby
[14:04:36] stardiviner: has joined #ruby
[14:04:53] Takumo: adaedra: will that let me log out the request body?
[14:05:04] Takumo: Trying to debug why some request parameters aren't being passed to the app
[14:05:17] mdz_: has joined #ruby
[14:05:22] adaedra: Don't know, look at its documentation
[14:05:47] adaedra: Otherwise, writing a middleware which does that would not be really difficult
[14:06:04] dzejrou: has joined #ruby
[14:08:31] Kricir: has joined #ruby
[14:09:27] iamjarvo: has joined #ruby
[14:10:15] iamjarvo: has joined #ruby
[14:10:35] sandelius: what is the abstractions the Pony gem does? It looks like using the mail gem directly is just as easy? Am I missing something?
[14:10:44] chthon: has joined #ruby
[14:10:45] olistik: has joined #ruby
[14:11:25] dede: has joined #ruby
[14:13:00] paulcsmith: has joined #ruby
[14:13:21] umgrosscol: has joined #ruby
[14:13:35] mandarinkin: has joined #ruby
[14:13:47] nonparfumee: has joined #ruby
[14:14:02] caseypatrickdris: has joined #ruby
[14:15:05] leat: has joined #ruby
[14:15:57] sinkensabe: has joined #ruby
[14:16:08] allenn: has joined #ruby
[14:16:33] NeverDie: has joined #ruby
[14:16:57] enebo: has joined #ruby
[14:17:50] ruby-lang431: has joined #ruby
[14:18:10] dudedudeman: has joined #ruby
[14:18:15] ta: has joined #ruby
[14:18:44] dudedudeman: has joined #ruby
[14:20:08] juanpaucar: has joined #ruby
[14:21:36] ki0: has joined #ruby
[14:21:44] balazs_: has joined #ruby
[14:21:50] Iskarlar: has joined #ruby
[14:21:55] snockerton: has joined #ruby
[14:23:52] njs126: has joined #ruby
[14:24:51] naftilos76: has joined #ruby
[14:24:53] lele: has joined #ruby
[14:25:17] jhooker: has joined #ruby
[14:25:36] jhass: ruby-lang431: !
[14:26:40] Soda: has joined #ruby
[14:26:55] kies: has joined #ruby
[14:26:55] tubuliferous_: has joined #ruby
[14:27:34] Scripore: has joined #ruby
[14:27:47] arup_r: has joined #ruby
[14:28:56] dudedudeman: i feel like we're about to break out in teh thriller dance here in a second
[14:29:32] axl_: has joined #ruby
[14:30:22] arup_r: has joined #ruby
[14:30:32] tuelz2: has joined #ruby
[14:32:15] wnkioKroam: has joined #ruby
[14:33:34] chinmay_dd: has joined #ruby
[14:36:17] dawkirst: has joined #ruby
[14:37:17] datanoise: has joined #ruby
[14:37:58] someword: has joined #ruby
[14:38:02] relix: has joined #ruby
[14:38:27] mandarinkin: has joined #ruby
[14:38:54] mordocai: has joined #ruby
[14:39:18] byprdct: has joined #ruby
[14:40:51] banister: has joined #ruby
[14:41:07] j4cknewt: has joined #ruby
[14:41:55] mordocai: has joined #ruby
[14:43:45] balazs: has joined #ruby
[14:44:02] ogpastaling: has joined #ruby
[14:46:40] _blizzy_: has joined #ruby
[14:48:05] jhooker: has joined #ruby
[14:50:18] relix: has joined #ruby
[14:50:21] pdoherty: has joined #ruby
[14:50:24] endash: has joined #ruby
[14:50:56] dfinninger: has joined #ruby
[14:51:37] Iskarlar: has joined #ruby
[14:52:46] pepperbreath1: has left #ruby: ()
[14:53:52] InternetFriend: has joined #ruby
[14:53:53] fabrice31_: has joined #ruby
[14:54:30] endash: has joined #ruby
[14:54:48] Spami: has joined #ruby
[14:54:49] justintv90: has joined #ruby
[14:56:26] devSeb: has joined #ruby
[14:56:28] momomomomo: has joined #ruby
[14:56:45] cmisenas: has joined #ruby
[14:57:07] adefa: has joined #ruby
[14:57:21] skade: has joined #ruby
[14:57:29] ahmetkapikiran: has joined #ruby
[14:57:31] starfox_sf: has joined #ruby
[14:58:58] mfranzwa: has joined #ruby
[14:59:48] allomov: has joined #ruby
[15:01:04] jhooker: has joined #ruby
[15:01:17] whippythellama: has joined #ruby
[15:02:21] Agoldfish: has joined #ruby
[15:02:49] bootstrappm: has joined #ruby
[15:05:00] lapide_viridi: has joined #ruby
[15:05:25] nickfausnight: has joined #ruby
[15:06:45] rodferso1: has joined #ruby
[15:07:19] nhhagen: has joined #ruby
[15:08:03] mrsolo: has joined #ruby
[15:08:35] dopie: has joined #ruby
[15:09:12] Zz4yMYrZX6: has joined #ruby
[15:10:19] waxjar: Would this be a bad API for a caching system? cache[1] = "foo"; cache[1,2] = ["foo", "bar"] ?
[15:10:31] allomov: has joined #ruby
[15:11:06] _ixti_: has joined #ruby
[15:12:03] Zz4yMYrZX6: Hey all, I'm wondering if someone can help me out. I don't know Ruby at all, but I'm trying to modify a script that was written for me and given to me.
[15:12:45] Zz4yMYrZX6: The script is here: https://gist.github.com/anonymous/3c057f08a3a6f553c64a
[15:12:57] dgutierrez1287: has joined #ruby
[15:13:03] Hanmac1: waxjar: is cache an array, or hash or some of your own objects?
[15:13:34] Zz4yMYrZX6: The purpose is replace timestamps in a document. right now the script can replace HH:MM, but I need it to replace HH:MM:SS
[15:13:35] jhass: oh you again
[15:13:36] mrsolo: has joined #ruby
[15:13:49] jhass: didn't we answer that question already?
[15:13:51] cryptarium: has joined #ruby
[15:13:53] waxjar: hanmac1: interface to a Redis server :P i'd like to use MGET/MSET
[15:13:54] Zz4yMYrZX6: seems like a quick fix, no?
[15:13:58] mrmargolis: has joined #ruby
[15:13:59] Iskarlar: has joined #ruby
[15:14:02] Zz4yMYrZX6: to add the seconds field?
[15:14:05] waxjar: not sure if I want to abstract this out though, Redis is simple enough
[15:14:09] Zz4yMYrZX6: i just don't know how to do it
[15:14:13] anytimeb_: has joined #ruby
[15:15:05] Hanmac1: waxjar: i would like this: but thats just imo cache.update(1 => "foo", 2=> "bar") OR cache.update("foo", "bar")
[15:15:06] zipace: has joined #ruby
[15:15:19] jhass: you might go back to reddit tbh and describe your specs properly that time, this channel is more geared towards helping people that are learning and using Ruby, not a "please make me a script for free that does X"
[15:15:20] Rubie: has joined #ruby
[15:15:29] leat: has joined #ruby
[15:15:49] Zz4yMYrZX6: cool, sorry for the intrustion
[15:16:54] Zz4yMYrZX6: has left #ruby: ()
[15:17:20] [H]unt3r: has joined #ruby
[15:17:25] sigurding: has joined #ruby
[15:18:47] dfinninger: has joined #ruby
[15:21:24] bantic: has joined #ruby
[15:23:02] sigden: has joined #ruby
[15:24:10] chinmay_dd: has joined #ruby
[15:26:10] nish1294: has joined #ruby
[15:26:50] apofis: has joined #ruby
[15:26:59] ShellFu: has joined #ruby
[15:28:46] apofis: has joined #ruby
[15:29:27] Cache_Money: has joined #ruby
[15:30:00] _seanc_: has joined #ruby
[15:30:38] Nishant_: has joined #ruby
[15:31:45] ahmetkapikiran: has joined #ruby
[15:31:56] mpistone: has joined #ruby
[15:32:50] rcvalle: has joined #ruby
[15:33:06] fujimura_: has joined #ruby
[15:33:08] Channel6: has joined #ruby
[15:33:55] jhass: ruby-lang431: how's your ruby?
[15:35:40] sarkyniin: has joined #ruby
[15:35:45] roar: has joined #ruby
[15:36:07] ruby-lang431: I am working on a rails project, Just get started.
[15:36:19] ruby-lang431: Reading books mostly and currently.
[15:36:29] leat1: has joined #ruby
[15:36:59] Hanmac1: has left #ruby: ()
[15:37:42] adefa: has joined #ruby
[15:40:21] programmerq: has joined #ruby
[15:40:40] mkulke: has joined #ruby
[15:40:56] tubuliferous_: has joined #ruby
[15:41:02] ellisTAA: has joined #ruby
[15:42:48] granthatcher_: has joined #ruby
[15:43:25] mrmargol_: has joined #ruby
[15:43:47] ellisTAA: i???m trying to use the ruby twitter gem and i need to have a twitter dev account. while trying to register it is asking for my callback url and in the description of that question it mentions ??? OAuth 1.0a applications should explicitly specify their oauth_callback URL on the request token step???. Do I need to register for something else? I???m not sure what an oauth_callback url is
[15:44:14] ogpastaling: has joined #ruby
[15:44:28] balazs: has joined #ruby
[15:44:38] sevenseacat: EllisTAA: where should twitter redirect after authenticating?
[15:44:48] sevenseacat: thats your callback URL.
[15:44:59] bootstrappm: ^ the cat knows
[15:45:10] ellisTAA: i dont have one, i just want to tweet from my command line
[15:45:16] bootstrappm: OAuth is super confusing the first time you encounter it
[15:45:19] agent_white: ITS DONUT DAY, sevenseacat!!! :D
[15:45:34] bootstrappm: then you likely don't need OAuth EllisTAA, OAuth is pretty strictly for web apps
[15:45:37] jhass: EllisTAA: iirc you supply whatever and catch the redirect you receive
[15:45:52] ellisTAA: bootstrappm: but i need it to register a twitter developer account
[15:45:52] agent_white: ACTION hugs sevenseacat and makes a glaze-dance to the donut gods
[15:45:55] bkxd: has joined #ruby
[15:46:45] leat1: has joined #ruby
[15:46:50] sevenseacat: EllisTAA: since when? that makes no sense
[15:47:38] bootstrappm: ah sorry, I'm thinking about OAuth 2 EllisTAA. Looks like there's something called "Single-user OAuth" that I haven't seen before: https://dev.twitter.com/oauth/overview/application-owner-access-tokens
[15:48:11] bootstrappm: that 3-legged OAuth flow mentioned in the second bullet point is what I was referring to as being for webapps
[15:48:14] poguez_: has joined #ruby
[15:48:35] caseypatrickdris: has joined #ruby
[15:48:53] sevenseacat: given a dev twitter account is for multiple apps and wont have a single callback URL
[15:49:26] rkeene: has joined #ruby
[15:49:36] riceandbeans: I want to rewite a for statement with a do
[15:49:42] riceandbeans: can anyone give me a hand?
[15:49:47] ebbflowgo_: has joined #ruby
[15:49:51] sevenseacat: left or right hand?
[15:49:52] ruboto: Just ask your question, if anyone has or can, they will respond.
[15:50:28] riceandbeans: for i in (0..@array-1)
[15:50:39] riceandbeans: then I use i like
[15:50:47] riceandbeans: @otherarray[i]
[15:50:48] sevenseacat: @array is an integer?
[15:51:02] riceandbeans: well, truth be told this is puppet
[15:51:04] rkeene: has left #ruby: ()
[15:51:09] riceandbeans: but this is in an erb, so it's ruby
[15:51:19] riceandbeans: but variables in puppet when localized are 2
[15:51:23] havenwood: riceandbeans: Did you mean? @array.size - 1
[15:51:23] sevenseacat: in what universe does that answer my question
[15:51:25] riceandbeans: so ignore the sigil
[15:51:46] ruboto: havenwood # => no implicit conversion of Fixnum into Array (TypeError) ...check link for more (https://eval.in/376198)
[15:52:09] jhass: ACTION waits for a question
[15:52:37] riceandbeans: ok, well the guy says it worked for him as is...
[15:52:47] riceandbeans: but this is going to have to run every 30 minutes on thousands of systems...
[15:53:00] allomov: has joined #ruby
[15:53:09] riceandbeans: I seem to recall having read that things like....
[15:53:09] ellisTAA: has joined #ruby
[15:53:21] riceandbeans: foo.each do |i|
[15:53:33] jhass: each_index
[15:53:37] riceandbeans: have a better optimized thing, so it's faster
[15:53:38] jhass: ACTION still waits for a question
[15:53:47] 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.
[15:53:48] riceandbeans: my question is, two part
[15:53:54] ruboto: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[15:54:25] mgorbach: has joined #ruby
[15:54:49] riceandbeans: can I rewrite the for statement as the do statement and will it be faster if instead of for i in 0..whatever if I do foo.each_index do |i|
[15:55:17] havenwood: riceandbeans: What is foo?
[15:55:23] jhass: see above
[15:55:29] riceandbeans: it's an array
[15:55:30] sevenseacat: ACTION poinst at gist link
[15:55:31] jhass: no point in answering this in the abstract
[15:55:36] riceandbeans: I cannot gist
[15:55:52] sevenseacat: thats a shame.
[15:55:53] havenwood: riceandbeans: The code you showed us makes no sense.
[15:56:08] ellisTAA: has joined #ruby
[15:56:11] riceandbeans: my company scans any dns with gist/paste and takes the content and yells at us about anything
[15:56:34] riceandbeans: regardless of the output they claim it was company data
[15:56:45] dualbus: has joined #ruby
[15:56:56] jhass: http://termbin.com/ there, doesn't have "gist" or "paste" in the name
[15:58:00] Fooster: has joined #ruby
[15:58:24] adaedra: ix.io also works
[15:58:40] tkuchiki: has joined #ruby
[15:58:42] podman: has joined #ruby
[16:00:01] A205B064: has joined #ruby
[16:00:27] stamina: has joined #ruby
[16:01:18] baroquebobcat: has joined #ruby
[16:01:32] paulcsmith: has joined #ruby
[16:01:43] e1nh4nd3r: has joined #ruby
[16:04:43] Alayde: has joined #ruby
[16:04:53] serivich: has joined #ruby
[16:05:04] towski_: has joined #ruby
[16:05:20] lxsameer: has joined #ruby
[16:05:21] lxsameer: has joined #ruby
[16:05:40] shevy: riceandbeans trick your company!
[16:06:50] riceandbeans: this server is outside my company, suppose I could elinks it
[16:07:07] sevenseacat: i think they just wanted to trick us by not actually posting any code
[16:07:24] jhass: termbin needs netcat and nothing more
[16:07:26] miah: https://gitlab.com/snippets
[16:07:27] bootstrappm: riceandbeans: there's a gist gem
[16:07:33] podman: hey guys, is there a good way to get AR to use milliseconds with mysql outside of rails?
[16:07:45] miah: there is a github api gem too
[16:07:46] jhass: ?crosspost podman
[16:07:46] ruboto: podman, 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.
[16:07:48] adefa: has joined #ruby
[16:07:48] bootstrappm: you just do: `gem install gist` then `gist filename.rb` and it'll output a url
[16:08:22] baweaver: has joined #ruby
[16:08:38] havenwood: podman: That's just irc etiquette.
[16:09:03] riceandbeans: yeah but if you have 2fa it doesn't work
[16:09:03] podman: havenwood: I've been using IRC since 1996.
[16:09:07] chipotle: has joined #ruby
[16:09:17] riceandbeans: and I don't post things that don't expire
[16:09:19] riceandbeans: homey don't play that
[16:09:32] podman: i've never heard of people complaining about asking the same question in multiple channels
[16:09:43] sevenseacat: then you havent been in this channel very long
[16:10:12] sevenseacat: or #rubyonrails
[16:10:15] podman: no, i haven't been in #ruby very long, and while that might be a problem for this channel, it's not something i've seen on IRC in general
[16:10:19] jhass: or crossposting to channels with large userbase unions
[16:10:32] sevenseacat: this is why you always read a channel's rules before posting :)
[16:10:43] podman: why not put something about that in the topic?
[16:10:44] paydro: has joined #ruby
[16:10:53] sevenseacat: as part of the rules that you didnt read.
[16:10:58] gauke: has joined #ruby
[16:11:08] ebbflowgo: has joined #ruby
[16:11:12] metallicrwr: has joined #ruby
[16:11:25] jhass: granted we could prefix the first one with Rules & more
[16:11:37] havenwood: podman: Anyways, if you let large channels know you're crossposting folk won't waste time answering already-answered questions and can follow parallel discussions.
[16:11:42] podman: Yeah, I think that would be helpful
[16:11:55] dfockler: has joined #ruby
[16:12:18] jhass: apeiros: ^ watcha think about prefixing the ruby-community.com link with that?
[16:12:18] podman: havenwood: maybe it's not wasting time though. what if someone has a better solution, etc
[16:12:38] jhass: podman: we do not ask to not crosspost, we do ask to inform
[16:12:39] havenwood: podman: Then the other channels learn of the better solution.
[16:12:42] sevenseacat: then you tell people you're crossposting and we move on
[16:13:21] podman: Sure, I just glanced at the message from the bot, but it starts "podman, Please do not crosspost..."
[16:13:42] sevenseacat: its a very real problem for two channels so closely linked like #ruby and #rubyonrails
[16:14:03] podman: which was posted a few seconds after i posted and was kind of startling and somewhat hostile
[16:14:12] Torrieri: has joined #ruby
[16:14:12] Torrieri: has joined #ruby
[16:14:31] havenwood: podman: Where else did you post?
[16:14:39] jhass: any suggestions to reword it are welcome, you might want to join #ruby-community which we use for discussions around that
[16:14:44] havenwood: Assuming #rubyonrails?
[16:14:46] hahuang65: has joined #ruby
[16:14:46] podman: in #RubyOnRails
[16:15:02] podman: they're related channels but they're not the same
[16:15:22] jhass: I wonder if you even read what people wrote
[16:15:55] jhass: the argument about the channels being related was that it means we see it happen a lot more often
[16:16:05] jhass: not that it's bad etiquette because of that
[16:16:10] podman: I'm sorry my opinion about asking the same question in different channels is different that yours. That doesn't mean I didn't read what you wrote
[16:16:24] bootstrappm: I think we've strayed a bit here ...
[16:16:28] bootstrappm: podman, you understand the rules?
[16:16:30] sevenseacat: why so much argument? you now know our channel rules, lets move on
[16:16:33] bootstrappm: then lets move on
[16:16:43] GnuYawk: has joined #ruby
[16:16:45] podman: yep, understand the rules
[16:16:49] jhass: ^ podman if you want to continue to discuss this please join #ruby-community
[16:16:57] havenwood: There's a #ruby-community channel if anyone wants to discuss improvements to the rules.
[16:17:11] havenwood: Or ways to make factoids more friendly.
[16:17:11] Cache_Money: has joined #ruby
[16:17:19] havenwood: Or TL;DR-proof.
[16:17:21] __butch__: has joined #ruby
[16:17:39] podman: I care much more about getting milliseconds to work than discussing crossposting of questions in IRC channels
[16:17:40] mrsolo: has joined #ruby
[16:18:01] Respek: has joined #ruby
[16:18:18] bootstrappm: podman what method would you like to return milliseconds? or are you talking about logging?
[16:18:28] bootstrappm: or storing ms in DB?
[16:18:58] zendrix: has joined #ruby
[16:19:17] podman: I'll restate the original question: I'm using AR with the mysql2 adapter in a project outside or Rails. I'm trying to store milliseconds in DB
[16:20:04] ramfjord: has joined #ruby
[16:20:08] Zai00: has joined #ruby
[16:20:35] byprdct: has joined #ruby
[16:21:11] bootstrappm: a quick google had this show up podman: https://gist.github.com/iamatypeofwalrus/d074d22a736d49459b15
[16:21:32] podman: bootstrappm: i tried that. it works well in Rails, but doesn't seem to work outside of it for some reason
[16:21:34] bootstrappm: the only thing Rails-specific about ^ that answer is where to put time.rb (config/initializers). In a non-Rails project you just have to manually include it with a require
[16:21:42] itisit: has joined #ruby
[16:21:52] bootstrappm: if you tried that I'd suggest including that information with your question podman ;)
[16:22:00] Encapsulation: has joined #ruby
[16:22:40] bootstrappm: well this looks to be from late last year, I doubt AR would have changed the way it handles datetimes + mysql since that time
[16:22:50] itisit: there is a string "abc.def\n", I want to retrieve "abc" from it, what's the function to truncate it? thanks!
[16:22:51] bootstrappm: I'd suggest a grep through AR for DATE_FORMATS and see exactly how it uses it
[16:23:27] jhass: ?fake itisit
[16:23:27] ruboto: itisit, Please show your real code to illustrate your problem. Using fake code often hides it or won't bring up the best possible solution.
[16:23:29] bootstrappm: could somebody do that ruboto thing with real code for itisit? /cc jhass
[16:23:32] bootstrappm: there we go :D
[16:23:40] jhass: bootstrappm: you can call it too ;)
[16:23:44] Encapsulation: has joined #ruby
[16:24:21] aryaching: has joined #ruby
[16:24:48] jhass: itisit: or real values in this case ;)
[16:25:34] havenwood: itisit: partition('.').first, slice(0, 3), [0, 3], byteslice(-8, 3), etc, etc
[16:25:34] bootstrappm: itisit, reason being: I'm not sure what the constant is in the string in your question. Does the period change? Is it always 'abc'? Do you just want the first three letters always or do you want to split on period?
[16:25:42] itisit: ruboto: a = "abc.def\n", b = a.split('.').first, that works. but if a = "abc\n" how to get "abc"?
[16:25:59] jackjackdripper: has joined #ruby
[16:26:04] havenwood: itisit: Show more cases. What are a list of possible inputs?
[16:26:15] jhass: itisit: real inputs, not made up ones
[16:26:29] bootstrappm: podman any luck looking for DATE_FORMATS?
[16:26:44] podman: bootstrappm: doesn't show up anywhere in AR as best I can tell
[16:26:50] paydro: has left #ruby: ()
[16:28:08] jhass: activerecord/lib/active_record/integration.rb:11: # Accepts any of the symbols in <tt>Time::DATE_FORMATS</tt>.
[16:28:11] jhass: interesting :D
[16:28:17] jhass: (only match)
[16:28:54] itisit: it's pasted here: http://pastie.org/10225469
[16:28:56] itisit: thanks guys
[16:29:09] ghr: has joined #ruby
[16:29:26] podman: jhass: yes, i found that, but that's in a comment
[16:29:32] podman: so, not really useful
[16:30:16] jhass: looks like that in turn is used in a couple of to_s calls
[16:30:49] podman: Yeah, trying to find exactly where it's casted to a string
[16:31:37] jhass: and if we keep that in mind with what the gist does, grep -Rin "to_s(:db)" activerecord/ turns up a lot of meat
[16:31:38] ellisTAA: has joined #ruby
[16:31:46] jpstokes: has joined #ruby
[16:31:56] paulcsmith: has joined #ruby
[16:32:11] AmirolAhmad: has joined #ruby
[16:32:25] havenwood: itisit: my_input[/\w+(?=\W)/]
[16:32:29] mrsolo: has joined #ruby
[16:32:38] jpstokes: how can I conver this into a json ['fruit', 'apple', 'car', 'mazda']
[16:32:55] ssvss: has joined #ruby
[16:33:09] shevy: data = { :name => 'dave', :address => [ 'tx', 'usa' ], :age => 17 } ; serialized = data.to_json
[16:33:10] jhass: havenwood: itisit \A IMO
[16:33:26] havenwood: jhass: oh, right.. yes.
[16:33:26] podman: maybe it's this: https://github.com/rails/rails/blob/bb9d20cf3434e20ac6f275e3ad29be42ebec207f/activerecord/lib/active_record/type/helpers/time_value.rb#L24
[16:33:54] havenwood: itisit: my_input[/\A\w+(?=\W)/]
[16:34:12] jhass: shevy: is there a question?
[16:34:27] shevy: I did not ask a question
[16:34:38] shevy: dunno if jpstokes is there though
[16:34:39] havenwood: itisit: Beginning of string, one or more word chars that match and a positive lookahead for a non-word char.
[16:34:41] bkxd: has joined #ruby
[16:34:42] jhass: yeah, didn't make the connection, sorry
[16:34:43] bootstrappm: that looks promising podman
[16:34:54] shevy: ACTION pokes jpstokes 
[16:35:04] rbowlby: has joined #ruby
[16:35:09] podman: I guess the issue is that it doesn't seem to be using the altered time format
[16:35:54] ellisTAA: has joined #ruby
[16:35:57] bootstrappm: did you include the new Time extension before ActiveRecord?
[16:36:05] jpstokes: I'm not sure I saw the answer to my question
[16:36:08] jpstokes: how can I conver this into a json ['fruit', 'apple', 'car', 'mazda']
[16:36:11] bootstrappm: AFAIK that shouldn't make a difference in Ruby but maybe ActiveRecord does some weird class caching
[16:36:23] havenwood: jpstokes: See what shevy wrote above.
[16:36:36] podman: bootstrappm: hmm, i guess something else might have overwritten it?
[16:36:41] jhass: podman: more importantly did you include it after ActiveSupport?
[16:36:56] rindolf: has joined #ruby
[16:37:12] bootstrappm: output the DATE_FORMATS constant somewhere meaningful podman and see if it is what its supposed to be
[16:37:36] jpstokes: I saw his reply but my array is in the form that I posted above
[16:37:37] bluOxigen: has joined #ruby
[16:37:59] phale: has joined #ruby
[16:38:01] bootstrappm: jpstokes: he was giving you the most general answer, it works for your code
[16:38:06] jpstokes: I need to go from an array of key value pairs to json
[16:38:06] jhass: jpstokes: did you try the suggestion (call .to_json) anyway?
[16:38:21] shevy: well you can rebuild the data structure before calling .to_json
[16:38:23] _seanc_: has joined #ruby
[16:38:35] jpstokes: well..I need to actually do a little magic so I can't use to_json
[16:38:36] itisit: havenwood: thanks
[16:38:43] jpstokes: I was thinking of using a map function to do it
[16:38:44] itisit: jhass: thanks
[16:38:49] jhass: jpstokes: that would've been useful to include into your question
[16:38:57] phale: is .map like (map) in scheme?
[16:39:05] jhass: how is map in scheme?
[16:39:09] bootstrappm: did you run the migration podman? if the column doesn't have the precision it likely won't work
[16:39:19] podman: bootstrappm: yes. i ran the migration
[16:39:26] shevy: scheme is weird
[16:39:27] podman: testing some things out
[16:39:39] phale: (map fn list)
[16:39:45] jpstokes: this is the actual array that I'm getting from redis: ["3290", "2", "3291", "3", "3292", "4", "3293", "5", "3294", "6", "3295", "7", "3296", "8", "3297", "9", "3298", "10", "3299", "11"]
[16:39:51] momomomomo: has joined #ruby
[16:39:51] jpstokes: it's the index with a score
[16:39:55] phale: (map procedure list ..)
[16:40:01] shevy: looks like an expanded hash
[16:40:13] phale: basically applies a procedure to all list elements
[16:40:29] jhass: nothing more? sounds like .each so far
[16:40:31] shevy: Hash[*["3290", "2", "3291", "3", "3292", "4", "3293", "5", "3294", "6", "3295", "7", "3296", "8", "3297", "9", "3298", "10", "3299", "11"]]
[16:40:31] shevy: # => {"3290"=>"2", "3291"=>"3", "3292"=>"4", "3293"=>"5", "3294"=>"6", "3295"=>"7", "3296"=>"8", "3297"=>"9", "3298"=>"10", "3299"=>"11"}
[16:40:32] davedev24_: has joined #ruby
[16:40:46] jpstokes: I need to turn this into [{ name: 'John Doe', score: 2 }, ...}
[16:40:47] shevy: hmm a bit much to paste sorry
[16:40:50] mc_fail: has joined #ruby
[16:40:54] bootstrappm: thats magic shevy
[16:40:57] shevy: ok where does John Doe come from now
[16:40:59] shevy: that is indeed magic
[16:41:08] phale: shevy: Placeholder name.
[16:41:10] bootstrappm: >> Hash(*["3290", "2", "3291", "3", "3292", "4", "3293", "5", "3294", "6", "3295", "7", "3296", "8", "3297", "9", "3298", "10", "3299", "11"]).to_json
[16:41:11] ruboto: bootstrappm # => wrong number of arguments (20 for 1) (ArgumentError) ...check link for more (https://eval.in/376213)
[16:41:13] phale: or used in anonymous situations
[16:41:23] shevy: are we anonymous here!
[16:41:26] mikecmpbll: has joined #ruby
[16:41:29] bootstrappm: Hash[*["3290", "2", "3291", "3", "3292", "4", "3293", "5", "3294", "6", "3295", "7", "3296", "8", "3297", "9", "3298", "10", "3299", "11"]].to_json
[16:41:33] phale: expect us
[16:41:35] shevy: haha bootstrappm
[16:41:43] bootstrappm: >> Hash[*["3290", "2", "3291", "3", "3292", "4", "3293", "5", "3294", "6", "3295", "7", "3296", "8", "3297", "9", "3298", "10", "3299", "11"]].to_json
[16:41:43] bootstrappm: bootstrappm: damnit
[16:41:44] ruboto: bootstrappm # => undefined method `to_json' for #<Hash:0x40a4b8a8> (NoMethodError) ...check link for more (https://eval.in/376214)
[16:41:49] shevy: still fail!
[16:41:58] jpstokes: look got only part now is I have to convert those ids into the user's name
[16:42:05] jpstokes: looks good...
[16:42:50] deric_skibotn: has joined #ruby
[16:42:58] jpstokes: I think I got it from here thanks
[16:43:09] phale: scheme is fun ^_^
[16:43:17] bootstrappm: >> require 'json'; a = Hash[*["3290", "2", "3291", "3", "3292", "4", "3293", "5", "3294", "6", "3295", "7", "3296", "8", "3297", "9", "3298", "10", "3299", "11"]]; a.to_json
[16:43:18] ruboto: bootstrappm # => "{\"3290\":\"2\",\"3291\":\"3\",\"3292\":\"4\",\"3293\":\"5\",\"3294\":\"6\",\"3295\":\"7\",\"3296\" ...check link for more (https://eval.in/376215)
[16:43:25] bootstrappm: ^ jpstokes huzzah!
[16:43:40] _seanc_: has joined #ruby
[16:43:45] phale: you could of used sed for that lopl
[16:44:01] shevy: phale have you had a look at nazghul game? http://sourceforge.net/projects/nazghul/ mostly written in scheme
[16:44:03] intinig: has joined #ruby
[16:44:04] wasamasa: bootstrappm: nou
[16:44:15] wasamasa: bootstrappm: don't do that much botspam
[16:44:24] AmirolAh_: has joined #ruby
[16:44:33] shevy: ruboto does not spam!
[16:44:41] phale: s/[/{/ s/]/}/ s/\"/\\"/
[16:44:44] bootstrappm: sorry wasamasa, it was for a good cause I swear!
[16:44:59] starfox_sf: has joined #ruby
[16:45:11] phale: has left #ruby: ("Leaving")
[16:45:16] shevy: I don't like lisp code from the syntax, but the scheme in nazghul is pretty readable for the most part
[16:45:44] segfalt: has joined #ruby
[16:46:08] OrbitalKitten: has joined #ruby
[16:46:43] adac: has joined #ruby
[16:46:55] podman: jhass: bootstrappm: seems like it was just a matter of overwriting the format in the correct place
[16:47:09] Papierkorb: has joined #ruby
[16:47:16] AnoHito: has joined #ruby
[16:47:18] bootstrappm: yeah? where'd you have to do it?
[16:48:06] pengin: has joined #ruby
[16:50:14] last_staff: has joined #ruby
[16:50:29] podman: jhass: bootstrappm: after activerecord was included
[16:50:39] podman: anyway, thanks!
[16:51:04] bootstrappm: what do y'all do for long running rake tasks?
[16:51:10] miah: dont have them
[16:51:20] podman: bootstrappm: in what context?
[16:51:39] podman: bootstrappm: like to make sure they keep running? to prevent two of them from running at the same time?
[16:51:43] bootstrappm: have a (manual) rake task that uploads stores to the DB based on an excel
[16:51:59] bootstrappm: no, just so they run fast and don't stop for some reason
[16:52:09] bootstrappm: I throw them on tmux on a server close to my DB and come back in a while to see what happened
[16:54:06] jhass: systemd-run <3
[16:54:14] jhass: should actually use that more
[16:55:18] bougyman: no systemd for me.
[16:55:50] shevy: bougyman funny that you mention that
[16:55:53] shevy: yesterday on #gobolinux
[16:56:01] shevy: <t_s_o> looks like the systemd devs have rediscovered gobolinux compile...
[16:56:05] shevy: <t_s_o> or someone associated with it
[16:56:09] shevy: <t_s_o> something about using kdbus, sd-bus and gcc plugins to sandbox compiles :S
[16:56:14] bougyman: I saw that one when I was looking for a new distro.
[16:56:14] shevy: they will assimilate EVERYTHING :D
[16:56:19] bootstrappm: systemd-run looks cool! gonna try it out
[16:56:25] nizmow: has joined #ruby
[16:57:06] shevy: https://github.com/gentoo/eudev
[16:57:26] shevy: "This git repo is a fork of git://anongit.freedesktop.org/systemd/systemd with the aim of isolating udev from any particular flavor of system initialization. In this case, the isolation is from systemd."
[16:57:35] NullPointer: has joined #ruby
[16:57:41] shevy: resistance is futile
[16:58:04] IanVorn: has joined #ruby
[16:58:12] shevy: We will add your biological and technological distinctiveness to our own.
[16:58:41] shevy: hmm... the BORG were not so clever...
[16:58:44] paulcsmith: has joined #ruby
[16:58:47] shevy: if they would have known what a train wreck the human species is, they would have never wanted them!
[16:58:53] bootstrappm: ^ that just reminded me, for anybody thats interested in biomedical engineering, they created a full grown rats arm in lab the other day
[16:59:14] pietr0: has joined #ruby
[16:59:32] bougyman: it's not at all futile, shevy
[16:59:46] bougyman: I can guarantee there will always be one linux without systemd
[17:00:03] ellisTAA: has joined #ruby
[17:00:31] shevy: well old ones perhaps?
[17:00:52] shevy: bootstrappm the frankenstein rat?
[17:00:53] bootstrappm: what's arch use?
[17:01:01] shevy: dunno. jhass knows probably
[17:01:04] shevy: systemd I guess
[17:01:13] MatthewsFace: has joined #ruby
[17:01:17] jhass: yup, second adopter of it after fedora
[17:01:34] bougyman: yeah arch moving to systemd made me mad at the time
[17:01:46] bougyman: but i'm much happier now with voidlinux, so I'm glad arch did it.
[17:02:07] segfalt: has joined #ruby
[17:02:26] wallerdev: has joined #ruby
[17:02:40] jhass: that's what this is about right? everybody can choose what they like, no need to hate each because of that
[17:02:40] metallicrwr: has joined #ruby
[17:02:55] bougyman: jhass: in many cases that's true.
[17:03:18] InternetFriend: has joined #ruby
[17:03:43] bootstrappm: this one shevy: https://www.yahoo.com/tech/s/first-time-scientists-create-lab-061807570.html
[17:03:48] bougyman: but when they took over udev maintenance they guaranteed it would always be able to be used without systemd.
[17:03:59] shevy: yuck, that pic...
[17:04:01] bougyman: that's not the only promise they haven't kept, but it's a pretty big one
[17:04:04] mdz_: has joined #ruby
[17:04:12] jhass: bootstrappm: reminds me of the south park episode in which mrs. garrision wants to turn male again
[17:04:15] shevy: though that is pretty epic if they could grow it without the rest
[17:04:25] mansel: has joined #ruby
[17:04:32] ellisTAA: has joined #ruby
[17:04:35] snockerton: has joined #ruby
[17:04:35] shevy: and if it is not fake!!!
[17:04:56] bootstrappm: nuts. in a few decades we'll be able to re-grow limbs or neurons after paralysis
[17:05:04] fabrice31: has joined #ruby
[17:05:11] bootstrappm: jhass: hm, never saw that southpark episode
[17:05:14] axl_: has joined #ruby
[17:05:14] shevy: oh damn...
[17:05:20] shevy: they actually do require a "rest"
[17:05:29] shevy: "stripping a donor organ of its cells to create a neutral matrix"
[17:05:35] shevy: still epic, but not as epic as I thought it be
[17:05:40] bootstrappm: yeah, I guess that's true
[17:05:49] bootstrappm: that's fairly common though, the donor organ doesn't even need to be alive
[17:05:56] bootstrappm: they just need the ECM (extra cellular matrix)
[17:05:59] bootstrappm: cellulose and stuff
[17:06:01] shevy: the scaffold
[17:06:23] n008f4g_: has joined #ruby
[17:06:45] jhass: bootstrappm: http://img3.wikia.nocookie.net/__cb20101222231749/southpark/images/f/f5/1205_stop-penis.jpg
[17:07:00] miah: as a transgender person, much of the 'mrs. garrison' storyline was :/
[17:07:00] shevy: perhaps they could even use specialized 3D printers one day for scaffolds
[17:07:01] paulcsmith: has joined #ruby
[17:07:04] bootstrappm: ahahaha that img
[17:07:24] jhass: miah: sorry, that's just how south park is though...
[17:07:50] bootstrappm: miah yeah, southpark tends to be hard on the marginalized
[17:07:58] bootstrappm: much like family guy
[17:08:06] shevy: I never watched south park... but I think it had a few famous components... the chewbacca line of defence, as reference to O.J. Simpsons, is from south park I think
[17:08:09] miah: i do tend to like southpark though
[17:08:18] x1337807x: has joined #ruby
[17:08:26] jhass: shevy: yup
[17:09:38] sandstrom: has joined #ruby
[17:09:49] ellisTAA: has joined #ruby
[17:09:50] x1337807x: has joined #ruby
[17:09:56] apofis: has joined #ruby
[17:10:30] x1337807x: has joined #ruby
[17:10:31] __butch__: has joined #ruby
[17:11:10] Limix: has joined #ruby
[17:12:18] apofis: has joined #ruby
[17:12:39] IrishGringo: has joined #ruby
[17:13:02] mberk: has joined #ruby
[17:13:47] ellisTAA: has joined #ruby
[17:13:56] zendrix: has joined #ruby
[17:14:16] theRoUS: when creating a gem with a name like 'ruby-foo', how should the internal naming be structured, especially if 'foo' is already namespaced by one or more other gems? Ruby::Foo ? RubyFoo ?
[17:14:29] Scripore: has joined #ruby
[17:14:45] havenwood: theRoUS: ruby_foo corresponds with RubyFoo and ruby-foo with Ruby::Foo.
[17:15:17] havenwood: theRoUS: See: http://guides.rubygems.org/name-your-gem/
[17:15:35] theRoUS: havenwood: ahhh! danke sehr!
[17:15:47] havenwood: theRoUS: de nada
[17:16:04] metallicrwr: has joined #ruby
[17:16:08] sepp2k: has joined #ruby
[17:16:14] shevy: sexy dirty spanish talk
[17:16:25] shevy: mi perro es un gato
[17:17:18] OrbitalKitten: has joined #ruby
[17:17:26] bosma_: has joined #ruby
[17:17:37] leat1: has joined #ruby
[17:17:44] juanpaucar: has joined #ruby
[17:18:21] theRoUS: shevy: ?????? ?????????? ???? ????????
[17:19:23] bootstrappm: prob your dog is a cat in russian
[17:19:35] theRoUS: shevy: loosely, 'chickens would laugh at it'
[17:20:01] shevy: funny chickens
[17:20:16] theRoUS: shevy: also, the phrase used in _Serenity_ to put River Tam to sleep
[17:20:52] yqt: has joined #ruby
[17:21:51] fujimura: has joined #ruby
[17:23:40] shevy: I think I watched it in german
[17:23:50] shevy: they often use funny translations which don't make sense
[17:24:25] miah: just using internet sourced subtitles can lead to 'doesnt make sense'
[17:24:41] miah: plex downloads them for me and sometimes you get weird shit
[17:24:53] miah: instead of <clanking> we got <CLAN KING>
[17:24:57] shevy: one of the funniest translations ever: http://www.winterson.com/2005/06/episode-iii-backstroke-of-west.html
[17:24:59] Olipro: has joined #ruby
[17:25:04] bootstrappm: hahaha thats great miah
[17:25:20] shevy: "Revenge of the Sith" becomes:
[17:25:22] shevy: 'the backstroke of the west'
[17:25:29] bmurt: has joined #ruby
[17:25:39] theRoUS: i speak a little russian, and i asked a russian acquaintance about it. also, i asked him about an auto reg plate that looked suspiciously Cyrillic: CTEPBA
[17:25:47] miah: pretty amazing for a movie that doesnt actually exist =)
[17:25:52] theRoUS: which, again loosely translated, means 'bitch'
[17:26:05] shevy: Anonymous doomed fighter pilot: "They're all over me.", becomes:
[17:26:05] bootstrappm: omg that star wars translation is hillaaaaarious
[17:26:06] shevy: "He is in my behind"
[17:26:20] RandyT: has joined #ruby
[17:26:27] shevy: I think they do it on purpose sometimes... but at other times, it really does not seem to be on purpose at all
[17:27:02] ellisTAA: has joined #ruby
[17:27:04] shevy: only yoda makes sense in that translation
[17:27:40] theRoUS: shevy: my thoughts exactly!
[17:29:43] shevy: it's interesting that this suddenly makes for a more comedic movie than it normally would be
[17:29:49] psye: has joined #ruby
[17:30:40] theRoUS: meh. so a gem for using mklivestatus (for nagios).. should it be ruby-mklivestatus (Ruby::MKLiveStatus) or ruby_mklivestatus (RubyMKLiveStatus) >
[17:31:03] theRoUS: ACTION grumbles, edge cases, always with the edge cases
[17:31:04] shevy: well normally, if you can omit the 'ruby_' part this would be ideal
[17:31:16] shevy: best would be: name of top-level namespace == name of project
[17:31:32] shevy: so if you require 'mklivestatus', ideally you would have a main module namespace module Mklivestatus too
[17:31:45] shevy: people are lazy, typing RubyMKLiveStatus is so much work
[17:31:47] theRoUS: there's already a 'mklivestatus' gem and a 'nagios_mklivestatus' one.
[17:31:53] shevy: yeah that sucks
[17:32:11] shevy: I'd wish one could have multiple same-named gems
[17:32:14] theRoUS: yeah, but namespacing and not tromping on others' work is also important
[17:32:46] shevy: ok but consider this:
[17:32:50] shevy: module Configuration
[17:33:00] shevy: I'd only ever want to have a single gem there
[17:33:09] sandstrom: has joined #ruby
[17:33:14] shevy: and not be this anyone else's namespace :D
[17:35:24] adac: has joined #ruby
[17:35:51] shevy: Obi-Wan: "He the my brothers in elephant is similar."
[17:36:02] shevy: -> Obi-wan tells yoda that anakin is like his brother... and an elephant too.
[17:36:27] bootstrappm: i think the dichotomy one is my favorite
[17:36:38] bootstrappm: lost in translation for sure
[17:36:53] civil_: has joined #ruby
[17:37:16] tibig: has joined #ruby
[17:38:09] ghr: has joined #ruby
[17:39:40] casadei: has joined #ruby
[17:40:17] uris: has joined #ruby
[17:40:54] d10n-work: has joined #ruby
[17:42:28] towski_: has joined #ruby
[17:43:11] Spami: has joined #ruby
[17:44:46] balazs_: has joined #ruby
[17:44:59] zdman135: has joined #ruby
[17:45:29] paulcsmith: has joined #ruby
[17:45:50] balazs: has joined #ruby
[17:46:59] nonparfumee: has joined #ruby
[17:47:12] kirun: has joined #ruby
[17:48:16] pandaant: has joined #ruby
[17:48:31] pepelui: has joined #ruby
[17:49:27] mdw: has joined #ruby
[17:51:23] mc_fail: has joined #ruby
[17:51:35] b_hoffman: has joined #ruby
[17:51:51] Rubie: has joined #ruby
[17:51:51] zendrix: has joined #ruby
[17:51:59] IanVorn: has joined #ruby
[17:52:24] bmurt: has joined #ruby
[17:53:14] IanVorn: has joined #ruby
[17:53:18] affenhoden: has joined #ruby
[17:53:39] apt-get_: has joined #ruby
[17:53:40] ellisTAA: has joined #ruby
[17:58:05] edwinvdgraaf: has joined #ruby
[17:58:12] adac: has joined #ruby
[18:00:52] sepp2k: has joined #ruby
[18:01:45] peterhu: has joined #ruby
[18:02:25] Scripore: has joined #ruby
[18:02:33] stamina: has joined #ruby
[18:02:33] edwinvdgraaf: has joined #ruby
[18:02:34] x1337807x: has joined #ruby
[18:02:41] danman: has joined #ruby
[18:03:15] x1337807x: has joined #ruby
[18:03:48] mister_solo: has joined #ruby
[18:03:48] gattuso: has joined #ruby
[18:04:00] x1337807x: has joined #ruby
[18:04:16] yfeldblum: has joined #ruby
[18:04:27] pepelui1: has joined #ruby
[18:04:27] mrsolow: has joined #ruby
[18:04:49] x1337807x: has joined #ruby
[18:05:04] Matthews_: has joined #ruby
[18:05:31] k3asd`: has joined #ruby
[18:06:32] baweaver: has joined #ruby
[18:07:12] RegulationD: has joined #ruby
[18:07:18] Matthews_: has joined #ruby
[18:07:25] pepelui: has joined #ruby
[18:07:44] Soda: has joined #ruby
[18:08:17] pepelui: has joined #ruby
[18:10:01] jhass: DeBot: !hangman ruby
[18:10:01] DeBot: ???????????????????????????????????????????????????????????????????????? [] 0/12
[18:10:06] snockerton: has joined #ruby
[18:10:06] finisherr: has joined #ruby
[18:10:08] jhass: DeBot: :S
[18:10:08] DeBot: ?????????::????????????::??????????????????????????????s?????? [] 0/12
[18:11:02] DeBot: ?????????::??????A???::???????????????????????????as?????? [] 0/12
[18:11:13] cj: has joined #ruby
[18:11:15] cj: hey folks
[18:11:18] DeBot: ???e???::??????A???::?????????????????????e???as?????? [] 0/12
[18:11:20] lxsameer: has joined #ruby
[18:11:29] DeBot: Ne???::??????A???::?????????????????????e???as?????? [] 0/12
[18:11:31] jhass: baweaver: pause please
[18:11:41] baweaver: ACTION pauses
[18:11:55] baweaver: cj: question?
[18:11:56] leat1: has joined #ruby
[18:12:00] IrishGringo: has joined #ruby
[18:12:03] cj: baweaver: typing it :-)
[18:12:13] DLSteve: has joined #ruby
[18:12:59] baweaver: jhass is just miffed that I'm winning :P
[18:13:02] eam: how do I guess
[18:13:28] DeBot: has left #ruby: ()
[18:13:37] baweaver: he killed it
[18:13:42] eam: It's a Net::IMAP::BodyType??
[18:14:07] eam: Net::IMAP::BodyTypeBasic?
[18:14:20] cj: so, I downloaded ruby 2.1.6 (x64) and the mingw dev kit (64-4.7.2-20130224-1432) from rubyinstaller.org/downloads and attempted to follow the instructions at http://github.com/oneclick/rubyinstaller/wiki/Development-Kit, but it refers to a dk.rb file, which doesn't seem to be there...
[18:14:31] usandfriends: has joined #ruby
[18:14:36] usandfriends: has left #ruby: ()
[18:15:02] cj: maybe I'm up one too many directories...
[18:15:09] moretti: has joined #ruby
[18:15:19] porkqpain: has joined #ruby
[18:15:35] cj: yeah, that's it. FFS. The installer by default suggests ~/Downloads and unpacks it there.
[18:15:55] jhass: your're welcome!
[18:15:57] baweaver: quack quack
[18:15:58] joaomdmoura: has joined #ruby
[18:16:01] DeBot: has joined #ruby
[18:16:05] baweaver: we make for a good rubber ducky on occasion
[18:16:05] hahuang65: has joined #ruby
[18:16:17] shadoi: has joined #ruby
[18:16:37] miah: Rubber Duck Driven Development
[18:16:46] InternetFriend: has joined #ruby
[18:17:00] cj: thanks, jhass :-)
[18:17:50] finisherr: Why am I getting an argument error? I???m passing the right number of arguments but the argument exception is being raised, 1 for 3: https://gist.github.com/anonymous/01dfeb8d14b4bfeb3988
[18:18:27] miah: def Web.get
[18:18:40] jhass: odd/old way for def self.get
[18:18:49] miah: ok. never seen it =)
[18:19:00] finisherr: ahh okay, I???ll try self
[18:19:03] jhass: finisherr: full error with backtrace?
[18:19:24] arup_r: has joined #ruby
[18:19:44] finisherr: https://gist.github.com/anonymous/b757cbbdec3b68cae7ff
[18:20:00] Mon_Ouie: Look at line 35
[18:20:11] miah: https://gist.github.com/anonymous/01dfeb8d14b4bfeb3988#file-gistfile1-rb-L35
[18:20:29] finisherr: the recursion duh thanks
[18:21:03] jhass: finisherr: https://gist.github.com/anonymous/b757cbbdec3b68cae7ff#file-gistfile1-txt-L2 is where you can spot it ;)
[18:21:30] finisherr: Yeah, i wasn???t looking at the stacktrace close enough
[18:21:43] finisherr: Need some coffee i think : )
[18:22:12] jenrzzz: has joined #ruby
[18:22:34] ferr: has joined #ruby
[18:22:42] tuelz2: does anyone know where I can find some example code for using activesupport and actionview helpers for showing tiem calculations like you would expect for an auctions remaining time?
[18:22:57] mr_goodcat: has joined #ruby
[18:23:06] tuelz2: I can't seem to get any of the modules loaded properly or I'm missing deps or something
[18:23:08] Polysics: has joined #ruby
[18:24:51] cj: tuelz2: error log output?
[18:25:34] jhass: also might have better luck in #RubyOnrails
[18:25:42] IanVorn: has joined #ruby
[18:25:47] tuelz2: jhass: good idea
[18:25:48] matt_m: has joined #ruby
[18:26:50] tuelz2: cj: sorry I got fed up and started writing my own code for it - I'm sure you could help me debug, was just asking for a magic bullet before I started pullinug our hair and debugging code
[18:26:56] IanVorn: has joined #ruby
[18:27:03] baroquebobcat: has joined #ruby
[18:27:39] havenwood: has joined #ruby
[18:27:56] banister: has joined #ruby
[18:28:26] baweaver: has joined #ruby
[18:29:00] hahuang65: has joined #ruby
[18:30:38] dwn: has joined #ruby
[18:31:07] pocketprotector: has joined #ruby
[18:32:04] icedp: has joined #ruby
[18:32:21] j4cknewt: has joined #ruby
[18:32:50] gauke: has joined #ruby
[18:33:26] Xiti: has joined #ruby
[18:33:32] x1337807x: has joined #ruby
[18:33:33] kartouch: has joined #ruby
[18:33:42] Xiti: has joined #ruby
[18:34:09] mrmargolis: has joined #ruby
[18:34:14] x1337807x: has joined #ruby
[18:35:13] cj: tuelz2: no worries. I'm not very good with ruby, but I've been looking for errors in logs my whole life :-)
[18:35:14] mfranzwa: has joined #ruby
[18:35:21] arup_r: I want to wrap this <div class="wrapper"><h1>Three's Company</h1><p>A love triangle.</p></div> and I tried https://gist.github.com/aruprakshit/a1ead057605a088291bd ..
[18:35:38] arup_r: 2 divs came,, where was wrong ?
[18:36:11] ramfjord: has joined #ruby
[18:36:11] Y4Rv1K: has joined #ruby
[18:36:22] bantic: has joined #ruby
[18:36:42] bootstrappm: arup_r: my guess would be that search is returning an array of elements
[18:36:46] nonparfumee: has joined #ruby
[18:36:50] bootstrappm: and that wrap wraps every element in the set that you call it on
[18:37:02] arup_r: yes i got it
[18:37:02] symm-: has joined #ruby
[18:37:11] arup_r: but what's the rescue..
[18:37:23] bootstrappm: the fix? just take out the search method
[18:37:32] bootstrappm: or maybe: doc.root.wrap
[18:37:49] cj: arup_r: looks like .wrap() operates on each element of the set
[18:38:20] dseitz: has joined #ruby
[18:38:51] arup_r: error on calling root
[18:38:54] ghr: has joined #ruby
[18:39:00] arup_r: bcoz is docframnt
[18:40:58] weaksauce: has joined #ruby
[18:41:05] adefa: has joined #ruby
[18:42:20] wldcordeiro: has joined #ruby
[18:42:37] momomomomo: has joined #ruby
[18:42:46] snophey: has joined #ruby
[18:43:19] __butch__: has joined #ruby
[18:43:26] wldcordeiro: has joined #ruby
[18:44:14] joaomdmoura: has joined #ruby
[18:45:11] paulcsmith: has joined #ruby
[18:46:19] joaomdmoura: has joined #ruby
[18:46:23] freerobby: has joined #ruby
[18:47:23] shadoi: has joined #ruby
[18:47:32] leat1: has joined #ruby
[18:47:53] tlarevo: has joined #ruby
[18:48:01] dudedudeman: has joined #ruby
[18:48:08] chabil: has joined #ruby
[18:48:12] dudedudeman: has joined #ruby
[18:48:37] Zz4yMYrZX6: has joined #ruby
[18:49:39] rubyonrailed: has joined #ruby
[18:49:49] kies: has joined #ruby
[18:49:52] rubyonrailed: How do I use Time to return Eastern time?
[18:50:07] iamjarvo: has joined #ruby
[18:50:44] jhass: in rails?
[18:50:59] Musashi007: has joined #ruby
[18:51:04] jcromartie: has joined #ruby
[18:51:17] rubyonrailed: Yeah sorry wrong channel
[18:51:41] mrmargol_: has joined #ruby
[18:52:23] aapole: has joined #ruby
[18:53:39] Scripore: has joined #ruby
[18:53:56] AlexRussia: has joined #ruby
[18:55:52] Zz4yMYrZX6: yo jhass, it's me the timestamp dude
[18:56:06] Zz4yMYrZX6: someone figured it out for me, not sure if you're curious
[18:56:17] Zz4yMYrZX6: what was making me crazy, the newb that i am, was that time is always measured in seconds
[18:56:30] Zz4yMYrZX6: want to see the script? are you curious?
[18:56:33] endash: has joined #ruby
[18:56:45] jhass: not really, it's not complicated
[18:57:14] Zz4yMYrZX6: has left #ruby: ()
[18:57:47] jhass: if they invested the time trying to find somebody that does it for them in learning that little bit of programming/ruby ...
[18:57:59] Scripore: has joined #ruby
[18:58:29] dudedudeman: i struggle with that, not just in ruby, but in life. it's a tough nut to crack, i'll be honest
[18:58:30] daed: if anybody here has used DRb before: have you ever had DRb hang and nearly time out and spend 97% of the ruby-prof cycles sitting at IO#read?
[18:58:34] ellisTAA: has joined #ruby
[18:58:39] jhass: rubyonrailed: since you didn't ask over there http://api.rubyonrails.org/classes/DateAndTime/Zones.html#method-i-in_time_zone
[18:58:39] nateberkopec: has joined #ruby
[18:58:43] daed: not sure how to best debug DRb issues
[19:00:30] rubyonrailed: jhass: Thanks I got sidetracked
[19:00:38] sandstrom: has joined #ruby
[19:00:49] agent_white: has joined #ruby
[19:01:14] cmisenas: has joined #ruby
[19:01:26] jtzero: has joined #ruby
[19:01:35] jtzero: has left #ruby: ()
[19:02:50] havenwood: daed: Can you show the code?
[19:03:25] aryaching_: has joined #ruby
[19:03:29] daed: havenwood: unfortunately it's probably like 1000 lines of various code and i can't seem to trace precisely where this is coming from, ruby-prof only says "DRbMessage#load called IO#read" and it's hanging there
[19:03:34] zendrix: has joined #ruby
[19:03:49] Brozo: has joined #ruby
[19:04:26] platzhirsch: has joined #ruby
[19:04:27] daed: IO#read isn't blocking like that in other environments though
[19:05:23] Blaguvest: has joined #ruby
[19:05:26] roar: has joined #ruby
[19:05:39] platzhirsch: has left #ruby: ()
[19:05:52] fabrice31: has joined #ruby
[19:06:14] juanpaucar: has joined #ruby
[19:06:35] chipotle: has joined #ruby
[19:06:41] juanpaucar: has joined #ruby
[19:07:33] yfeldblum: has joined #ruby
[19:08:27] balazs_: has joined #ruby
[19:09:17] mrmargolis: has joined #ruby
[19:10:08] duderonomy: has joined #ruby
[19:10:36] shevy: dudedudeman I struggle too. But I am naturally lazy, so I tend to write code that is very simple
[19:10:37] fujimura: has joined #ruby
[19:10:52] Pupeno: has joined #ruby
[19:10:57] havenwood: daed: Do you know what it's deserializing when it gets stuck?
[19:11:26] daed: havenwood: there are hundreds of drb messages flowing through the processes (about 6+ processes)
[19:11:31] dudedudeman: shevy: i like to think part of it is because i'm a junior, but i don't want to hang my laruels on that too much
[19:11:38] daed: maybe i'll patch in some logging
[19:12:16] dionysus69: has joined #ruby
[19:12:28] daed: havenwood: still seems weird that ruby-prof is giving me such a small stack trace
[19:13:12] shevy: dudedudeman you'll be much lazier in 10 years man :)
[19:13:23] shevy: a part of the reason why I write code is so I can be lazy lateron
[19:14:01] __butch__: has joined #ruby
[19:14:24] MouseTheLuckyDog: has joined #ruby
[19:14:53] vikaton: has joined #ruby
[19:16:15] chinmay_dd: has joined #ruby
[19:16:21] gusrub: has joined #ruby
[19:17:10] InternetFriend: has joined #ruby
[19:18:01] __butch_: has joined #ruby
[19:19:28] shevy: which testing style is the most fun?
[19:19:39] iamjarvo: has joined #ruby
[19:20:01] baweaver: has joined #ruby
[19:20:03] someword: has joined #ruby
[19:21:54] doctorly: has joined #ruby
[19:22:02] daed: havenwood: FWIW i used the html callstack printer and it gave me the full callstack
[19:22:56] daed: drbconn#sendmessage, drbtcpsocket#recv_reply, drbmessage#recv_reply, drbmessage#load and it hands there on IO#read within the load() function
[19:23:02] duderonomy: I have a need to create a properly formatted XML doc from collection of structured data sets (but sometimes they vary based on version). Then, hopefully, other services can access that data via an API .
[19:23:21] Pupeno: has joined #ruby
[19:23:21] Pupeno: has joined #ruby
[19:23:24] duderonomy: Of course, I am inexperienced in both xml and ruby.
[19:23:54] kies: has joined #ruby
[19:24:03] n1x: has joined #ruby
[19:24:16] duderonomy: Has the community innovated past Jim's canonical builder gem?
[19:24:43] sandstrom: has joined #ruby
[19:24:59] kadoppe: has joined #ruby
[19:25:10] fmcgeough: has joined #ruby
[19:25:23] snophey: has joined #ruby
[19:25:27] duderonomy: Seems like the place I should start
[19:25:28] e1nh4nd3r: has joined #ruby
[19:25:30] CorySimmons: has joined #ruby
[19:27:11] shevy: duderonomy first step is I would try to use nokogiri
[19:27:13] Y4Rv1K: has joined #ruby
[19:27:24] shevy: have a look at the examples, I think it should allow you to do everything regarded XML
[19:27:42] shevy: http://www.nokogiri.org/tutorials/parsing_an_html_xml_document.html
[19:27:59] shevy: if you are inexperienced with ruby though, I think you'll need to know a minimal set of ruby
[19:28:14] shevy: I mean the examples are easy to understand anyway
[19:28:19] shevy: html_doc = Nokogiri::HTML("<html><body><h1>Mr. Belvedere Fan Club</h1></body></html>")
[19:28:54] Brozo: has joined #ruby
[19:28:58] duderonomy: I just got the minimal. :)
[19:29:49] jackjackdripper: has joined #ruby
[19:30:37] mandarinkin: has joined #ruby
[19:30:56] shevy: I try to get away with minimal ruby as well
[19:31:01] shevy: but sometimes I need to have more
[19:31:13] shevy: like ... how do I redirect all puts statements into an object's instance variable
[19:31:26] shevy: yo atmosx
[19:31:49] n80: has joined #ruby
[19:32:56] shevy: interesting
[19:33:05] shevy: in html, via <object> you can actually embed another page?
[19:33:12] shevy: isn't that like the old frameset functionality?
[19:33:19] apofis: has joined #ruby
[19:34:37] nobitanobi: has joined #ruby
[19:35:11] shevy: <object data="some_image.png"></object>
[19:36:05] apofis: has joined #ruby
[19:36:27] ruby-lang431: How do you do that?
[19:36:29] ellisTAA: has joined #ruby
[19:36:53] freerobby: has joined #ruby
[19:37:03] govg: has joined #ruby
[19:37:12] __butch__1: has joined #ruby
[19:37:41] iamjarvo: has joined #ruby
[19:37:49] shevy: dunno, it just seems to work
[19:38:06] shevy: I was more wondering because I thought that the frameset tag no longer being avilable, actually means that you'd lose functionality
[19:38:16] shevy: but you did not lose much actually... you can still embed pages in a page
[19:38:25] iamjarvo: has joined #ruby
[19:38:43] stamina: has joined #ruby
[19:40:12] pietr0: has joined #ruby
[19:40:30] baweaver: has joined #ruby
[19:40:52] Torrieri: has joined #ruby
[19:41:51] shevy: is there an event that can be run after a block has executed?
[19:42:14] shevy: w { foo; bar } # <--- we call foo() we call bar(), but I also want to describe externally that I want to run cleanup() afterwards
[19:45:03] Y4Rv1K: has joined #ruby
[19:46:09] MaciejCzyzewski: has joined #ruby
[19:47:05] dfockler: has joined #ruby
[19:47:11] balazs: has joined #ruby
[19:48:14] GPrime: has joined #ruby
[19:48:23] __butch__1: has joined #ruby
[19:48:45] allcentury: question - if I define a class within a module, should I be able to access that modules instance methods?
[19:49:30] Y4Rv1K: has joined #ruby
[19:49:55] pengin: has joined #ruby
[19:50:20] shevy: the only way to access a module's instance methods is when you make it an ancestor of the class
[19:50:26] shevy: in other words, you use: include ModuleNameHere
[19:50:53] __butch__: has joined #ruby
[19:51:19] allcentury: right, I figured it out - but it seems weird that I have to include the module
[19:51:56] ruby-lang431: What makes you think so
[19:52:02] fedexo: has joined #ruby
[19:52:14] blackmesa: has joined #ruby
[19:52:18] allcentury: well take this example I just did - https://gist.github.com/bb87b01a768a1f0edc37
[19:52:35] shevy: well you must specify the behaviour and ancestors for a class, so that ruby can know what methods said class has access to
[19:52:37] allcentury: I'm declaring the class within the module namespace but I can only access the module's methods by including it
[19:52:52] allcentury: shevy: I see, when you put it that way, it makes sense
[19:53:09] shevy: right because say_hi() is not part of class Cat
[19:53:50] shevy: you could also make the module work standalone in addition to that
[19:53:52] momomomomo: has joined #ruby
[19:54:04] SqueeDee: has joined #ruby
[19:54:06] shevy: if you need: Animal.say_hi
[19:54:20] SqueeDee: has left #ruby: ()
[19:54:20] jgt1: has joined #ruby
[19:54:58] shevy: the thing with include is that it really becomes some kind of superclass
[19:55:29] shevy: >> module Foo; end; class Bar; include Foo; end; Bar.ancestors
[19:55:30] ruboto: shevy # => [Bar, Foo, Object, Kernel, BasicObject] (https://eval.in/376297)
[19:55:32] leat1: has joined #ruby
[19:55:43] shevy: >> class Foo; end; class Bar < Foo; end; Bar.ancestors
[19:55:44] ruboto: shevy # => [Bar, Foo, Object, Kernel, BasicObject] (https://eval.in/376298)
[19:55:48] ellisTAA: has joined #ruby
[19:55:53] shevy: the two are sort of identical if you ask me
[19:56:41] argoneus: has joined #ruby
[19:56:55] gix: has joined #ruby
[19:58:14] jud^: has joined #ruby
[19:58:56] lkba: has joined #ruby
[20:00:00] casadei: has joined #ruby
[20:00:57] jhass: shevy: yeah, the difference is the class of Foo ;)
[20:01:16] jhass: and which hook gets triggered
[20:02:31] IanVorn: has joined #ruby
[20:03:44] snockerton1: has joined #ruby
[20:04:19] mcclurmc: has joined #ruby
[20:04:52] pengin: has joined #ruby
[20:07:47] zendrix: has joined #ruby
[20:08:24] pietr0: has joined #ruby
[20:08:49] platzhirsch: has joined #ruby
[20:08:54] platzhirsch: has left #ruby: ()
[20:09:24] momomomomo: has joined #ruby
[20:10:18] Scripore: has joined #ruby
[20:10:53] arescorpio: has joined #ruby
[20:11:02] blenny: has joined #ruby
[20:11:21] sandelius: has joined #ruby
[20:11:50] symbol: has joined #ruby
[20:12:47] nofxx__: has joined #ruby
[20:13:28] kies: has joined #ruby
[20:13:29] someword: has joined #ruby
[20:14:01] jenrzzz: has joined #ruby
[20:14:05] nofxx: has joined #ruby
[20:14:06] nofxx: has joined #ruby
[20:15:57] [diecast]: has joined #ruby
[20:15:58] jackjackdripper: has joined #ruby
[20:16:40] simplyianm: has joined #ruby
[20:16:54] Guest85414______: has joined #ruby
[20:16:56] simplyianm: What's the idiomatic way to write this https://gist.github.com/simplyianm/17f1760048b64f5048c8
[20:17:03] kapowaz: has joined #ruby
[20:17:05] cmisenas: has joined #ruby
[20:17:20] wallerdev: has joined #ruby
[20:19:15] jhass: I guess your problem is that you do flow control with exceptions
[20:19:46] gianlucadv: has joined #ruby
[20:20:01] revoohc: has joined #ruby
[20:20:14] postmodern: has joined #ruby
[20:20:54] jhass: http://paste.mrzyx.de/pm5vhkrnv
[20:21:00] tenspeed705: has joined #ruby
[20:21:29] tenspeed705: Good day guys. Learning Ruby. wondering if someone could give me a basic project to code, to help me along?
[20:21:46] ec: has joined #ruby
[20:22:02] havenwood: tenspeed705: thinking more a command line app or web app?
[20:22:19] happyface: has joined #ruby
[20:22:20] jhass: tenspeed705: maybe you got something that you do regularly that you could (partially) automate?
[20:22:34] gattuso: has joined #ruby
[20:22:42] tenspeed705: havenwood: both, not picky
[20:22:56] felltir: has joined #ruby
[20:23:13] tenspeed705: havenwood: thats not a bad idea
[20:24:42] someword: has joined #ruby
[20:24:43] ellisTAA: has joined #ruby
[20:24:58] weaksauce: code the game of life
[20:24:59] veleno: has joined #ruby
[20:25:09] phizzbuzz: has joined #ruby
[20:25:20] tenspeed705: weaksauce: Never played it
[20:25:34] tenspeed705: I think i had a bad childhood
[20:26:13] freerobby: has joined #ruby
[20:26:26] tenspeed705: jhass: Would ruby work to login to a web page everyday and submit a form?
[20:26:39] weaksauce: not really something you "play" https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life
[20:26:41] jhass: have a look at the mechanize gem
[20:27:01] jmhmccr: has joined #ruby
[20:27:02] platzhirsch: has joined #ruby
[20:27:23] freerobby: has joined #ruby
[20:27:44] jhass: tenspeed705: http://docs.seattlerb.org/mechanize/GUIDE_rdoc.html
[20:27:49] tenspeed705: weaksauce: I thought you were referring to the hasbro game.
[20:28:38] Diabolik: can anyone recommend any resources for ruby algo design
[20:29:25] ajk1: has joined #ruby
[20:29:50] GnuYawk: has joined #ruby
[20:30:06] weaksauce: Diabolik in what sense?
[20:30:30] Diabolik: im struggling with doing some of the tougher codewars stuff
[20:30:31] weaksauce: how ruby is designed? or how to implement an algorithm in ruby.
[20:30:36] ruby-lang938: has joined #ruby
[20:30:45] snsei: has joined #ruby
[20:30:53] x1337807x: has joined #ruby
[20:31:37] jhass: 12 seconds, had it worse
[20:31:37] x1337807x: has joined #ruby
[20:32:00] weaksauce: Diabolik can you gist an example?
[20:32:17] ajk1: v = "testing testing\n testing testing" v[/(?<=\\n ).+/] returns nil any idea why? I can get this working in Rubular but not in irb.
[20:32:27] x1337807x: has joined #ruby
[20:32:41] ellisTAA: has joined #ruby
[20:32:46] pmarreck: has joined #ruby
[20:32:52] sandelius: has joined #ruby
[20:32:52] pusewicz: has joined #ruby
[20:34:00] ajk1: Essentially im trying to grab everything after the \n break
[20:34:54] krainboltgreene: has joined #ruby
[20:34:56] harleypig: has joined #ruby
[20:35:10] vcoinminer: has joined #ruby
[20:35:16] im0b: has joined #ruby
[20:35:35] finisherr: When retrieving paginated REST responses from an HTTP API, is it best to iterate through each page and append the results to some object until the next page returns a 404?
[20:35:37] avdi: has joined #ruby
[20:35:46] havenwood: ajk_: Single versus double quotes.
[20:35:51] alol___: has joined #ruby
[20:35:54] jeregrine: has joined #ruby
[20:36:03] neersighted: has joined #ruby
[20:36:16] havenwood: ajk_: Whether it's a newline or escaped, so actually the characters '\' and 'n'
[20:36:22] Diabolik: weaksauce shit like https://www.dropbox.com/s/g5hmgp1txeiq3dm/Screenshot%202015-06-05%2021.36.15.png?dl=0
[20:36:28] zenguy_pc: has joined #ruby
[20:36:39] havenwood: >> 'testing testing\n testing testing'[/(?<=\\n ).+/]
[20:36:40] ruboto: havenwood # => "testing testing" (https://eval.in/376318)
[20:36:46] havenwood: >> "testing testing\n testing testing"[/(?<=\\n ).+/]
[20:36:47] ruboto: havenwood # => nil (https://eval.in/376319)
[20:37:06] bjeanes: has joined #ruby
[20:37:26] featheryahn_: has joined #ruby
[20:37:29] Ox0dea: has joined #ruby
[20:37:40] alxndr: has joined #ruby
[20:37:42] kenndel: has joined #ruby
[20:37:48] weaksauce: Diabolik think like a computer... how would you do that if you were to do it by hand?
[20:37:57] mistermocha: has joined #ruby
[20:38:01] Ox0dea: weaksauce: Computers don't have hands.
[20:38:02] n80: has joined #ruby
[20:38:15] weaksauce: how would you do that if you were handless then?
[20:38:30] ajk1: havenwood: what if im retrieveing the string from an object how do i use single quotes?
[20:38:36] adambeynon: has joined #ruby
[20:38:38] zero7: has joined #ruby
[20:38:51] hellschreiber: has joined #ruby
[20:39:26] phutchins: has joined #ruby
[20:39:46] shelling__: has joined #ruby
[20:40:01] akitada: has joined #ruby
[20:40:11] relix: has joined #ruby
[20:40:38] Diabolik: and i have a page of notes
[20:40:45] mrmargolis: has joined #ruby
[20:40:47] Diabolik: but its shit like working out how to capitalize the first letter of each word
[20:40:49] Diabolik: that i don't know
[20:41:18] pizzaops: has joined #ruby
[20:41:49] andrewstewart: has joined #ruby
[20:41:50] Ox0dea: Diabolik: Are you behind the Great Firewall?
[20:42:14] n1ftyn8: has joined #ruby
[20:43:36] havenwood: ajk_: So you don't want to change your regexp to match the data, you want to change the data to match the regexp?
[20:43:42] machty: has joined #ruby
[20:44:01] havenwood: ajk_: Maybe I'm missing something but why not use a regexp that matches your data?
[20:44:11] dede: has joined #ruby
[20:44:26] yo61: has joined #ruby
[20:44:37] icbm: has joined #ruby
[20:45:14] Fooster: has joined #ruby
[20:45:18] phizzbuzz: has joined #ruby
[20:45:19] ajk1: havenwood: so im retrieving my data through nokogiri as a string object however when i try to apply the regex it returns nil, because its evaluating with double quotes, how can i have it evaluate it differently?
[20:45:22] maZtah: has joined #ruby
[20:45:22] n3vtelen: has joined #ruby
[20:45:39] havenwood: ajk_: v[/(?<=\n ).+/]
[20:46:11] havenwood: >> "testing testing\n testing testing"[/(?<=\n ).+/]
[20:46:12] ruboto: havenwood # => "testing testing" (https://eval.in/376328)
[20:46:34] cek: has joined #ruby
[20:46:36] deimos: has joined #ruby
[20:46:59] bove: has joined #ruby
[20:47:22] ajk1: i see so i didnt need to escape the new line character
[20:47:23] gsd: has joined #ruby
[20:47:27] havenwood: ajk_: Just don't escape the newline in your Regexp, if I'm understanding correctly. Yup
[20:47:31] benlakey: has joined #ruby
[20:48:05] lancetw: has joined #ruby
[20:48:16] ajk1: whats strange is it will still eval correctly in rubular.com with the escaped new line
[20:48:18] ajk1: but not in irb
[20:48:19] charles81: has joined #ruby
[20:48:25] ajk1: i think thats where the confusion was
[20:48:34] havenwood: ajk_: try in irb but with a single quote string, yeah
[20:48:46] bcavileer: has joined #ruby
[20:49:05] ajk1: it works now, thank you havenwood
[20:49:12] havenwood: ajk_: you're welcome
[20:49:28] TinkerTyper: has joined #ruby
[20:49:29] ajk1: strange how an online repl could eval correctly though
[20:49:47] ajk1: and not in irb
[20:49:47] balazs_: has joined #ruby
[20:49:48] havenwood: ajk_: well, i guess they had to pick single or double quotes for the test string
[20:49:55] havenwood: ajk_: you chose double and they chose single
[20:50:03] Zai00: has joined #ruby
[20:50:17] mrsolo: has joined #ruby
[20:50:21] preyalone: has joined #ruby
[20:50:47] rfv: has joined #ruby
[20:50:53] djbender: has joined #ruby
[20:51:41] skmp: has joined #ruby
[20:51:51] hahuang65: has joined #ruby
[20:51:52] x1337807x: has joined #ruby
[20:52:02] havenwood: ajk_: i guess it'd be nice to show single quotes around the test string on Rubular to be more clear. you could open an issue asking to treat test string as double quotes for escaping.
[20:52:36] x1337807x: has joined #ruby
[20:53:04] moretti: has joined #ruby
[20:53:13] d10n-work: has joined #ruby
[20:53:19] ajk1: thats a good idea
[20:53:25] prosodyContext: has joined #ruby
[20:53:29] cstrahan: has joined #ruby
[20:53:35] relix: has joined #ruby
[20:54:13] MiracleBlue: has joined #ruby
[20:54:22] havenwood: since Ruby returns double quoted String literals your expectation makes sense to me
[20:54:57] chrisseaton: has joined #ruby
[20:56:00] aryaching: has joined #ruby
[20:56:10] cmisenas: has joined #ruby
[20:56:54] baroquebobcat: has joined #ruby
[20:56:56] ellisTAA: has joined #ruby
[20:57:29] Ox0dea: >> %q foo
[20:57:30] ruboto: Ox0dea # => /tmp/execpad-349bd0dcfc34/source-349bd0dcfc34:3: syntax error, unexpected tCONSTANT, expecting keywo ...check link for more (https://eval.in/376330)
[20:57:31] Ox0dea: >> %q foo
[20:57:32] ruboto: Ox0dea # => /tmp/execpad-b55f31f5ea7c/source-b55f31f5ea7c:3: syntax error, unexpected tCONSTANT, expecting keywo ...check link for more (https://eval.in/376331)
[20:57:38] countryHick: has joined #ruby
[20:57:55] zenspider: what's the question?
[20:57:57] felltir: %q { foo }
[20:57:59] Ox0dea: ruboto chomps input.
[20:58:02] felltir: >> %q { foo }
[20:58:03] hahuang65: has joined #ruby
[20:58:03] ruboto: felltir # => /tmp/execpad-af2d1083fc2f/source-af2d1083fc2f:2: syntax error, unexpected tIDENTIFIER, expecting key ...check link for more (https://eval.in/376332)
[20:58:04] havenwood: chomp chomp chomp
[20:58:13] mdz_: has joined #ruby
[20:58:19] Ox0dea: eval "%q foo "
[20:58:22] havenwood: felltir: no space allowed
[20:58:24] adaedra: >> %q foo # don't chew
[20:58:25] ruboto: adaedra # => "foo" (https://eval.in/376333)
[20:58:25] Ox0dea: >> eval "%q foo "
[20:58:26] ruboto: Ox0dea # => "foo" (https://eval.in/376334)
[20:58:37] Ox0dea: Yeah, comment works.
[20:58:45] revoohc: has left #ruby: ()
[20:58:46] felltir: interesting
[20:58:56] adaedra: I already tried some days ago ;)
[20:59:10] havenwood: felltir: your delimiter just has to immediately follow the %q
[20:59:20] fujimura: has joined #ruby
[20:59:25] Ox0dea: havenwood: And belong to a certain set of characters, of course.
[20:59:48] Ox0dea: That space is also acceptable for %x is particularly devilish.
[21:00:24] thiagofm: has joined #ruby
[21:00:25] Heero: has joined #ruby
[21:00:52] ruboto: felltir # => "" (https://eval.in/376335)
[21:01:07] felltir: I do like that
[21:01:14] felltir: >> ?????:%%%
[21:01:15] ruboto: felltir # => /tmp/execpad-4ac77cd5f6f8/source-4ac77cd5f6f8:2: warning: string literal in condition ...check link for more (https://eval.in/376337)
[21:01:23] Ox0dea: >> a = []; a << a; [a, a.sort]
[21:01:24] ruboto: Ox0dea # => [[[...]], [[[...]]]] (https://eval.in/376339)
[21:01:28] eam: Ox0dea: especially considering % also is an operator on String
[21:01:32] havenwood: Ox0dea: yet emoji is not acceptable ????
[21:01:35] Ox0dea: Notice the extra level of "nesting" on the sorted one; anybody know what that's about?
[21:01:56] eam: >> % %%%%%% %%%% % %%%%% %%%% # this doesn't work without this comment
[21:01:57] ruboto: eam # => "%" (https://eval.in/376340)
[21:02:10] tonini: has joined #ruby
[21:02:10] grubernaut: has joined #ruby
[21:02:21] eam: >> % %%%%%% %%%% % %%%%% %%%%
[21:02:22] ruboto: eam # => /tmp/execpad-87cb1f98db6d/source-87cb1f98db6d:3: syntax error, unexpected tCONSTANT, expecting keywo ...check link for more (https://eval.in/376342)
[21:04:04] bruno-: has joined #ruby
[21:04:17] Limix: has joined #ruby
[21:04:18] adefa: has joined #ruby
[21:04:29] Scripore: has joined #ruby
[21:05:06] vikaton: has joined #ruby
[21:05:31] havenwood: >> eval [1, 6, 4, 1, 5, 4].map { |n| '%' * n }.each_with_object(' ').to_a.join
[21:05:32] ruboto: havenwood # => "%" (https://eval.in/376351)
[21:06:39] poikon: has joined #ruby
[21:06:45] Ox0dea: >> %d[1 6 4 1 5 4]
[21:06:46] ruboto: Ox0dea # => /tmp/execpad-7885935dbbb7/source-7885935dbbb7:2: unknown type of %string ...check link for more (https://eval.in/376355)
[21:06:48] fabrice31: has joined #ruby
[21:06:54] Ox0dea: That should be a thing, I reckon.
[21:07:13] adaedra: quick number array, could be nice
[21:07:15] Ox0dea: havenwood wouldn't have had to type all those commas.
[21:07:21] adaedra: we already have %w[] and %i[]
[21:07:22] Y4Rv1K_: has joined #ruby
[21:07:35] Sou|cutter: has joined #ruby
[21:07:40] eam: >> %w[1 6 4 1 5 4].map(&:to_i)
[21:07:41] ruboto: eam # => [1, 6, 4, 1, 5, 4] (https://eval.in/376358)
[21:07:42] adaedra: and maybe even others
[21:07:51] Ox0dea: eam: Developer happiness and all that.
[21:07:54] felltir: I guess, what happens if you do %d[word]
[21:07:54] mrsolo: has joined #ruby
[21:07:54] cardoni: has joined #ruby
[21:07:54] senayar: has joined #ruby
[21:08:11] eam: I want %X which is %x without /bin/sh
[21:08:12] adaedra: felltir: syntax error?
[21:08:20] firevolt: has joined #ruby
[21:08:30] eam: using %w rules
[21:08:51] adaedra: system(*%w[...])
[21:08:58] eam: not the same
[21:09:08] zzak: has joined #ruby
[21:09:15] adaedra: yeah, true
[21:09:17] eam: first, gotta special case argv.size = 1, second no capturing of stdout
[21:09:23] eam: I did write it but ...
[21:09:33] Igorshp: has joined #ruby
[21:09:34] zenspider: eam: unless I'm misunderstanding you... /bin/sh is only used when there are specific chars in the cmd to run
[21:09:47] snockerton: has joined #ruby
[21:09:55] eam: zenspider: right, and for security purposes or quoting correctness you'll want to avoid that interpolation in a bunch of cases
[21:10:10] eam: eg "my file args have spaces"
[21:10:31] eam: the same reasoning behind using placeholders in a db module, really
[21:10:36] Y4Rv1K_: has joined #ruby
[21:10:41] adaedra: %x(echo $0) # => /bin/sh
[21:10:41] eam: vs quote-and-interpolate
[21:11:59] FernandoBasso: has joined #ruby
[21:12:21] iamjarvo: has joined #ruby
[21:12:33] zenspider: eam: ugh. yeah. you prolly want to stick to popen([cmd-array]).read
[21:12:34] eam: zenspider: the metachar check to skip /bin/sh bugs me a bit too, since it means potential behavior differences on systems
[21:12:50] Ox0dea: What does %x do on Windows?
[21:12:54] eam: zenspider: yeah, all doable via popen
[21:13:11] iamjarvo: has joined #ruby
[21:13:20] Ox0dea: Eh, just delegates to system(3), I suppose.
[21:13:33] adaedra: maybe through cmd.exe
[21:13:38] kies: has joined #ruby
[21:13:58] Wobbley: has joined #ruby
[21:14:57] eam: I have ruby for DOS running here, lemmie fire it up
[21:17:00] aryaching: has joined #ruby
[21:17:11] maxshelley: has joined #ruby
[21:17:13] micmus: has joined #ruby
[21:17:18] shadoi: has joined #ruby
[21:18:45] brb3: has joined #ruby
[21:18:49] moretti: has joined #ruby
[21:18:58] Brozo: has joined #ruby
[21:20:12] GPrime: has joined #ruby
[21:20:44] eam: http://i.imgur.com/NSSQe2q.png
[21:21:17] decoponio: has joined #ruby
[21:21:22] eam: it uses cmd.exe, not a POSIX compliant shell
[21:21:44] saintcajetan: has joined #ruby
[21:23:02] zendrix: has joined #ruby
[21:23:26] Rubie: has joined #ruby
[21:26:05] bb010g: has joined #ruby
[21:26:08] victortyau: has joined #ruby
[21:26:40] adefa: has joined #ruby
[21:27:33] _blizzy_: has joined #ruby
[21:29:07] futilegames: has joined #ruby
[21:29:22] arashb: has joined #ruby
[21:30:19] Rubie: has joined #ruby
[21:31:31] Azure: has joined #ruby
[21:32:25] Rubie: has joined #ruby
[21:32:51] snsei: has joined #ruby
[21:36:15] coderkevin: has joined #ruby
[21:36:18] fusillicode1: has joined #ruby
[21:36:23] fusillicode1: has left #ruby: ()
[21:38:14] iamjarvo: has joined #ruby
[21:38:34] cmisenas: has joined #ruby
[21:40:14] casadei: has joined #ruby
[21:40:42] freerobby: has joined #ruby
[21:41:08] bootstrappm: has joined #ruby
[21:41:19] endash_: has joined #ruby
[21:41:30] shevy: eam, you are becoming a fossil more and more every day
[21:41:55] iamdevnul: has joined #ruby
[21:42:44] t-richards: has joined #ruby
[21:42:48] fusillicode: has joined #ruby
[21:42:53] fusillicode: has left #ruby: ()
[21:43:15] atomical: has joined #ruby
[21:43:18] dfockler: gosh ruby is so nice
[21:43:28] baroquebobcat: has joined #ruby
[21:44:03] Lloyd: has joined #ruby
[21:44:39] dopie: has joined #ruby
[21:45:01] autrilla: has joined #ruby
[21:45:16] autrilla: Hello! Can anyone help me understand why this error is happening? https://gist.github.com/autrilla/26d066f11f32972158b4
[21:45:55] jhass: sounds like you have no default route?
[21:45:55] snophey: has joined #ruby
[21:46:45] jhass: or the host you're trying to reach has no route towards it, at least from your network
[21:46:46] codeitagile: has joined #ruby
[21:47:02] Ox0dea: dfockler: What made you say so?
[21:47:13] jhass: does it need a reason?
[21:47:21] livathinos: has joined #ruby
[21:47:25] x1337807x: has joined #ruby
[21:47:30] hoey: has joined #ruby
[21:47:34] dfockler: just refactoring and I made a method a lot nicer
[21:47:38] Narzew: has joined #ruby
[21:47:58] Vile`: has joined #ruby
[21:48:08] wallerdev: has joined #ruby
[21:48:08] x1337807x: has joined #ruby
[21:48:11] autrilla: jhass: mm okay, that doesn't really help me but I appreciate it
[21:48:25] dfockler: also does anyone end up passing around a bunch of values and then realize you should have an object?
[21:48:44] dfockler: 5 years out of school and I'm still learning OOP
[21:48:55] balazs: has joined #ruby
[21:49:11] eam: shevy: we all are, really. It's the human condition
[21:49:19] jhass: autrilla: well, there's nothing we say more without access to the machine you're getting that from and the host it's trying to reach. It's most likely unrelated to any of the ruby stuff
[21:49:27] ljarvis: dfockler: they're all objects
[21:49:29] workmad3: has joined #ruby
[21:49:40] autrilla: I understand. I didn't code this.
[21:50:38] frem_: has joined #ruby
[21:50:47] tuelz2: has joined #ruby
[21:51:36] fusillicode: has joined #ruby
[21:52:15] jhass: yeah, I'm saying it's unlikely an issue in the code but in your system/network configuration
[21:52:43] ogpastal_: has joined #ruby
[21:52:53] jhass: I wish ruby would dump the IPs in these errors though
[21:54:30] ndrei: has joined #ruby
[21:57:02] OrbitalKitten: has joined #ruby
[21:57:09] drbrain: autrilla: ??? I agree
[21:57:52] autrilla: I doubt that, I don't even have a firewall
[21:59:03] autrilla: selinux is permissive... heh
[21:59:53] vikaton: has joined #ruby
[21:59:59] mdz_: has joined #ruby
[22:00:03] eam: selinux at all can cause odd behavior. I always disable it completely
[22:00:04] workmad3: autrilla: not having a firewall doesn't mean your network settings are good
[22:01:03] jimmybee88: has joined #ruby
[22:01:17] autrilla: workmad3: why would they be wrong?
[22:01:31] jhass: and it doesn't mean your ISPs network config is good, or that of the target hosts ISP or any in between
[22:01:32] decoponio: has joined #ruby
[22:01:42] jimmybee88: has left #ruby: ()
[22:01:50] workmad3: autrilla: because you're getting an error stating that the network is unreachable? :P
[22:01:55] jhass: all could have a mess in their configs and cause that particular error
[22:02:04] autrilla: It'd be useful to know what network
[22:02:12] jhass: the one of the target host
[22:02:30] autrilla: Yeah, I figured that much.
[22:02:41] workmad3: jhass: man, I just *love* networks :D
[22:03:06] jhass: I think a lot of people do, so that's why this inter-network thing happened
[22:03:15] jhass: good thing IRC was forward compatible
[22:04:17] shevy: jhass are you writing much crystal code these days?
[22:04:40] workmad3: shevy: bah, you missed a great opportunity for implication there :(
[22:04:42] jhass: hmm, not writing much code at all
[22:04:46] workmad3: jhass: doing much crystal nowadays?
[22:05:04] shevy: workmad3 yeah... but this time I really wanted to know if he was writing crystal code!
[22:05:30] ghr: has joined #ruby
[22:05:48] workmad3: jhass: if I was doing crystal, I would so alias the runtime to 'meth' :D
[22:06:07] workmad3: (assuming the compiler isn't already called that)
[22:06:09] jhass: I wonder when somebody will write methhead for Crystal and what it'll do to method headers
[22:06:20] zendrix: has joined #ruby
[22:06:59] Mon_Ouie: Just rename the 'def' keyword to 'meth'
[22:07:08] workmad3: Crystal Methhead - for really f***ing up method headers
[22:08:42] x1337807x: has joined #ruby
[22:08:46] jhass: I'm also still awaiting the rack port crack
[22:09:07] havenwood: jhass: Crack on Crystal framework?
[22:09:08] OrbitalKitten: has joined #ruby
[22:09:27] x1337807x: has joined #ruby
[22:09:53] car: has joined #ruby
[22:10:12] x1337807x: has joined #ruby
[22:11:02] shevy: a question - I have this here: https://gist.github.com/shevegen/696293911eb4b95adc27
[22:11:13] shevy: I wish to put stuff into @string
[22:11:24] mrsolo: has joined #ruby
[22:11:26] shevy: I can do so via direct assignment, or through a method
[22:11:45] shevy: the problem is that the real module has lots of small methods defined; and I sort of want to say "redirect the output of all those methods, into @string"
[22:11:53] jhass: we already have like 6 early webframeworks for crystal, doing rack for crystal would actually be good so we can do stuff like binding lwan and idk
[22:12:24] bougyman: what is crystal?
[22:12:45] bougyman: it's a bitch to google, i'll tell you that.
[22:12:52] kstuart: has joined #ruby
[22:13:01] bougyman: why do ruby people choose such common names for things?
[22:13:04] bougyman: anyone remember God ?
[22:13:06] shevy: crystal lang should help
[22:13:08] jhass: a programming language
[22:13:08] bougyman: wth, really.
[22:13:18] dudedudeman: bougyman: cyrstal is on reddit as well
[22:13:21] shevy: giving names to things is hard :)
[22:13:27] bougyman: no it isn't
[22:13:32] bougyman: just use something that's not a word.
[22:13:35] bougyman: or an ancient word.
[22:13:39] bougyman: or a sanskrit word.
[22:13:40] shevy: oh an ancient word
[22:13:43] pengin: has joined #ruby
[22:13:48] shevy: now we get into the difficult part
[22:13:57] shevy: latin names!
[22:14:06] shevy: my gem is called sansori mortus est
[22:14:08] Ox0dea: shevy: Make @string a StringIO and delegate #puts?
[22:14:12] workmad3: bougyman: crystal is a different programming language, btw :P
[22:14:14] dudedudeman: i'd like to write a programming language called shevy
[22:14:15] bougyman: great fucking name
[22:14:16] shevy: it makes pandas on the commandline
[22:14:19] bougyman: workmad3: yeah I saw that.
[22:14:26] shevy: Ox0dea oh... hmm
[22:14:49] shevy: dudedudeman that was already suggested once, I don't remember by who. thankfully it was not accepted
[22:14:51] workmad3: ^ everyone's favourite hex
[22:15:00] bougyman: I have shitinternet here (on vacation in dominican republic), can I get a few sentence summary of crystal?
[22:15:09] bougyman: even a google search is timing out
[22:15:11] centrx: has joined #ruby
[22:15:16] shevy: crystal is very similar to ruby in syntax style
[22:15:20] bougyman: luckily irc + znc is frekking bulletproof.
[22:15:26] bougyman: ah, elixir style?
[22:15:28] workmad3: bougyman: it's like ruby, but with types and a compiler
[22:15:33] bougyman: what vm does it run on, or is it AOT ?
[22:15:36] shevy: but the promise is that you have an easier time interfacing with C, and it is compiled I think rather than interpreted
[22:15:42] ytti: 0xf00fc7c8
[22:15:45] dudedudeman: jhass: what did you change in the topic?
[22:15:49] workmad3: jhass: did that seem accurate? :)
[22:15:51] bougyman: cool, will check it out when I return.
[22:15:57] bougyman: I like exlixir quite a bit.
[22:16:03] bougyman: the erlang vm is quite nice.
[22:16:03] jhass: workmad3: pretty much
[22:16:04] shevy: btw it's funny that during your vacation
[22:16:07] shevy: you still hang out on #ruby :D
[22:16:12] bougyman: well but of course.
[22:16:24] bougyman: i'm just drinking margaritas 10m from the ocean atm
[22:16:27] bougyman: why not chat a bit?
[22:16:34] eggoez: has joined #ruby
[22:16:36] Scripore: has joined #ruby
[22:16:43] shevy: Ox0dea I guess I have to familiarize myself with StringIO first
[22:17:06] workmad3: shevy: it's an IO-like object that wraps around a String
[22:17:14] jhass: workmad3: bougyman the highlight feature of Crystal is that you rarely have to specify types while being a compiled & statically typed language
[22:17:44] bougyman: inferred types are good and bad, I think.
[22:17:51] bougyman: I'm loving ponylang's capabilities.
[22:17:58] bougyman: I guess I should call them Capabilities
[22:18:00] shevy: optional types would be kinda cool
[22:18:02] bougyman: they're a first class thing
[22:18:24] bougyman: it's a layer between types and the compiler.
[22:18:26] jhass: yeah, pony is deliberately designed to like never specify a type
[22:18:33] bougyman: which sets rules for what a type can do, and what can be done to it.
[22:18:35] shevy: what is your pony
[22:18:37] jhass: crystal compromises to retain much of the Ruby look & feel
[22:18:46] shevy: did bougyman not say something a few lines above about silly names
[22:18:58] shevy: feed the pony some crystal!
[22:18:59] apt-get_: has joined #ruby
[22:19:00] bougyman: well, i don't like pony-lang's name much either.
[22:19:05] bougyman: but ponyc is acceptable
[22:19:07] workmad3: jhass: looking @ it, types are mostly used in method declarations, right?
[22:19:10] bougyman: that's what I named the package in voidlinux
[22:19:41] bougyman: I did like nimrod's name.
[22:19:46] bougyman: and they had to go and change it
[22:19:58] jhass: workmad3: that makes things easier to work with as you get compiler errors with your stuff higher up in the trace, but again for a lot of stuff not necessary
[22:20:06] jhass: stdlib does it a lot because of what I said
[22:20:17] bougyman: i'm starting to actually believe the hype about ponyc, in that if it compiles, it cannot crash.
[22:20:21] workmad3: jhass: nah, that's actually making we want to try it some more :D
[22:20:22] jhass: and not have it error out when it hits the C bindings
[22:20:27] bougyman: a lot of C programmers believe that about their apps, and it's so untrue.
[22:20:40] bougyman: with ponyc there's a lot more confidence, even at this early age of the lang.
[22:20:47] workmad3: jhass: ruby-like, but with type annotations in one of the places that research seems to show they're useful!
[22:20:56] shevy: research shows.... hmm
[22:20:57] workmad3: and otherwise, mostly optional
[22:21:11] jhass: what I like most is how it trained me to avoid nil even more
[22:21:22] bougyman: pony doesn't have a null.
[22:21:27] bougyman: but of course they have a None
[22:21:45] vikaton: has joined #ruby
[22:21:48] shevy: nil is bad?
[22:21:51] workmad3: shevy: in this case, research == multiple repeated studies on code comprehension and task completion speeds with multiple different cohorts covering a wide span of experience levels
[22:21:51] shevy: None is bad?
[22:21:57] bougyman: None isn't bad.
[22:22:09] bougyman: it's very limited in scope, though
[22:22:12] bougyman: nil is bad.
[22:22:26] bougyman: tell me you haven't seen a "no method Blah on NilClass" before
[22:22:33] bougyman: a hundred or so times.
[22:23:00] bougyman: None returns None for any non existing method
[22:23:00] workmad3: shevy: there have also been some eye-tracking studies under those circumstances that show the first thing people do when going to a method is (unsurprisingly) look at the declaration for an indication of how to call it :D
[22:23:07] ljarvis: ah yes, null, the billion dollar mistake
[22:23:09] vdamewood: has joined #ruby
[22:23:29] shevy: my apps aren't worth a billion dollars yet!
[22:23:31] bougyman: make None more like /dev/null than /dev/zero
[22:23:35] bougyman: er it makes
[22:24:31] ljarvis: some/none pattern seems to be very popular and getting moreso with new languages
[22:24:45] jhass: crystals nil defines very few methods, so you can't invoke stuff on it if it's a potential nil
[22:24:52] jhass: makes you handle the nil cases
[22:25:00] Yzguy: has joined #ruby
[22:25:00] neanderslob: has joined #ruby
[22:25:10] ljarvis: i have enough of that with all of the go code i write
[22:25:21] geggam: has joined #ruby
[22:25:31] jhass: well, it also makes you write code that returns less nils ;)
[22:25:47] bougyman: jhass: yeah, that's what i've notice, you just avoid it.
[22:25:50] jerematic: has joined #ruby
[22:26:05] bougyman: coding without nils/nulls isn't hard, when it isn't hard.
[22:26:06] geggam: might be a silly question but im asking anyway... is there anyway to have ruby limit the amount of memory it uses... or do I need to do that with the system ?
[22:26:12] griffindy: has joined #ruby
[22:26:12] bougyman: they can't show up unexpectedly, that is.
[22:26:15] bougyman: only expectedly.
[22:26:17] geggam: like with the jvm i can allocate memory
[22:26:28] miah: ulimits / cgroups
[22:26:32] bougyman: geggam: I use chpst for that
[22:26:41] jhass: + use cgroups
[22:26:43] bougyman: chpst -m MEMORYLIMIT ruby ./some_app.rb
[22:26:44] geggam: i was looking for something that wouldnt kill the process
[22:26:56] bougyman: cgroups aren't avail everywhere and chpst has worked for 15 years.
[22:26:59] bougyman: which is why I use it.
[22:27:06] bougyman: oh, it has to kill the process.
[22:27:10] bougyman: fail gracefully and fast.
[22:27:22] bougyman: and you'll have a better app anyway.
[22:27:22] yfeldblum: has joined #ruby
[22:27:33] jhass: there's probably some RUBY_MAX_HEAP_WHATEVER
[22:27:41] ellisTAA: has joined #ruby
[22:27:48] bougyman: unicorn itself has a memory limit reaper, if you're talking about a wep app
[22:27:56] geggam: passenger
[22:28:03] bougyman: but I'd bet something exists.
[22:28:28] geggam: i can do it easily with ulimits but it would be better if ruby did it to itself so the process didnt get a shot in the head
[22:28:29] bougyman: but in pasenger killing should be fine.
[22:28:36] bougyman: just like in unicorn, some other worker just takes it over
[22:28:58] bougyman: stonith is a tried and true method :)
[22:29:19] geggam: except when you have financial transactions that you really dont want to die
[22:29:23] bougyman: geggam: familiar with S.T.O.N.I.T.H. ?
[22:29:26] geggam: and shitty developers
[22:29:34] bougyman: I used stonith in the mortgage industry for a long time.
[22:29:41] ledestin: has joined #ruby
[22:29:47] bougyman: it doesn't mean things break, it means failure can happen without breakage.
[22:30:04] geggam: yeah... that requires applications able to handle that
[22:30:13] geggam: we wont get that rant started :)
[22:30:35] bougyman: bad code is bad code.
[22:30:50] geggam: orphaned bad code.. is worse
[22:31:01] mdz_: has joined #ruby
[22:31:02] existensil: has joined #ruby
[22:31:03] bougyman: legacy legacy legacy
[22:31:08] geggam: devops... my job is to keep that crap running...
[22:31:15] jhass: geggam: http://helabs.com/blog/2014/12/19/ruby-gc-tuning-parameters/ might trade some performance with slowing down growth
[22:31:16] bougyman: oh man, I feel ya.
[22:31:19] geggam: tec debt etc etc etc
[22:31:25] bougyman: I inherited a devops mess when I was hired at Sonian.
[22:31:55] bougyman: it took 6 months to pay down the code debt necessary just to fulfill the IBM/Softlayer bi-weekly release mandate.
[22:32:25] bougyman: hardcoded everything everywhere.
[22:32:35] Ox0dea: geggam: Thread.new { loop { GC.start } }
[22:32:36] shevy: makes it easier to change things!
[22:32:37] geggam: heh.. im in $CORP where it takes 5 meetings and a week to roll out a package that doesnt impact
[22:32:37] bougyman: rails woes, mostly
[22:32:41] wldcordeiro: has joined #ruby
[22:32:49] bougyman: what the fuck with config/ being, well, config/ ?
[22:32:55] geggam: 6 months to do any real work
[22:33:04] bougyman: it's got executable shit, .yml, .json, and a kitchen sink or two.
[22:33:13] bougyman: and you have to hardcode every env you want.
[22:33:18] bougyman: we had 712 envs
[22:33:46] geggam: wait until you get docker microservices and have 4 different versions of the same thing but no way to know which one is what
[22:34:00] endash: has joined #ruby
[22:34:02] geggam: ACTION docker crap is growing and growing
[22:34:51] geggam: o.. and different versions of ruby in each one
[22:34:51] dfockler: has joined #ruby
[22:35:42] geggam: shoot all the nodes in the head satnith
[22:38:10] Limix: has joined #ruby
[22:38:27] SET001: has joined #ruby
[22:38:51] SET001: why I'm having this error
[22:38:51] SET001: http://pastebin.com/KEmkXd3q
[22:38:52] ruboto: SET001, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/1e1b350169c7c8e6cc41
[22:38:52] ruboto: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[22:38:53] ellisTAA: has joined #ruby
[22:39:10] SET001: ok - ok )
[22:39:28] chipotle: has joined #ruby
[22:39:53] jhass: looks like you want to reinstall mysql2-0.3.18
[22:40:55] cmisenas: has joined #ruby
[22:41:32] SET001: just `gem install mysql2`?
[22:43:04] arescorpio: has joined #ruby
[22:44:52] Sembei: has joined #ruby
[22:44:58] sp4rrow: has joined #ruby
[22:47:59] geggam: btw ...thanks @all... that was enough information for me to punt with .. jhass url specifically
[22:48:05] fujimura: has joined #ruby
[22:48:23] dudedudeman: have any of you fine folk used exercism.io before?
[22:48:49] jhass: I did a bit
[22:49:41] dudedudeman: i like it so far
[22:49:47] dudedudeman: i think i broke it, but i like it
[22:50:09] dudedudeman: it's supposed to give you instructions on how to approach a test, but... it just gives me out put like "SESSS"
[22:52:57] zenspider: skip, error, skip, skip, skip
[22:53:06] zenspider: fix the error, go address the skips (if applicable)
[22:53:08] jhass: which exercise?
[22:53:37] jackjackdripper: has joined #ruby
[22:53:38] zenspider: the error will have output a message and a backtrace
[22:53:44] zenspider: find the backtrace part of YOUR code. that's where the problem is
[22:54:10] bonhoeffer: has joined #ruby
[22:55:31] jhass: ah right minitest
[22:55:36] jhass: lol, didn't recognize that
[22:56:25] bonhoeffer: is there a way to wget a webpage html and show all tags that match <h1></h1>
[22:56:30] Scripore: has joined #ruby
[22:56:44] jhass: bonhoeffer: combine net/http and nokogiri
[22:57:57] kortes: has joined #ruby
[22:58:28] Ox0dea: jhass: Opposed on principle to open-uri?
[22:58:48] Torrieri: has joined #ruby
[22:58:48] Torrieri: has joined #ruby
[22:58:58] jhass: Ox0dea: I'm mixed, net/http actually does provide simple APIs too
[22:59:08] jhass: so it's a layer of abstraction that hides stuff
[22:59:22] drbrain: I'd just use mechanize because it combines net/http and nokogiri pretty nicely
[22:59:27] OtterCoder: has joined #ruby
[22:59:37] bonhoeffer: jhass will check out
[22:59:54] kortes: im making my own method to check if a number is a prime, in it i push a value into an array, is there any way i can make it a recursive method and pass that array ( with all values pushed ) to each call as a lambda?
[23:00:24] kortes: so with each new recursive call, i can compare the number with all values that i have pushed into the array?
[23:00:25] Azure: has joined #ruby
[23:01:11] frank_o: has joined #ruby
[23:01:27] jhass: centrx: !=? ;)
[23:01:37] j4cknewt: has joined #ruby
[23:01:44] shevy: Kortes our channel bot centrx wants you to show code on a pastie
[23:01:53] CustosLimen: has joined #ruby
[23:01:57] swgillespie: has joined #ruby
[23:02:09] centrx: I eat electricity for breakfast
[23:02:24] kortes: like: if this number passes test 1 , arr << number . then, if number doesnt pass next test, recurse_method(testvar) { arr }
[23:02:34] jhass: Kortes: that lambda stuff in your questions sets me off, but ruby is pass by reference if that means anything to you
[23:02:40] dudedudeman: zenspider: hmm, i get that. i guess it's weird as when I first did this on my personal computer at home, it gave me text/instructions? now i just get the skips and such
[23:03:14] dudedudeman: and jhass, at this point, it's just the first exercise. i'm just trying to replicate exactly where I was at before installing it on this machien
[23:04:31] Twitter297: has joined #ruby
[23:04:40] shevy: dudedudeman is installing something
[23:05:00] dudedudeman: bro, i break things so easily. it's like, gem install dudedudeman would literally break the world
[23:05:02] kortes: ok guys here it is
[23:05:04] kortes: https://gist.github.com/devkortes/51b5c28d6d14c19dda1d
[23:05:25] paulcsmith: has joined #ruby
[23:05:59] centrx: My work is done here
[23:06:14] shevy: dudedudeman I should add a gem with that name :)
[23:06:21] dudedudeman: don't! I wanted to. lol
[23:06:27] GnuYawk: has joined #ruby
[23:06:39] miah: ERROR: Could not find a valid gem 'dudedudeman' (>= 0) in any repository
[23:06:48] frank_o: Hi! I'm trying to load some items from this external API in the background and save to database. When done, show them to the client using Ajax. But why am I getting `Couldn't find Affiliate with 'id'=` when I specified `find(params[:url])`? https://gist.github.com/dt1973/b57d84bf39a75ea47e9b
[23:06:53] dudedudeman: huh. there is however, a gem called 'dude'. and i just installed it. and... i have no clue what it is
[23:06:54] sankaber: has joined #ruby
[23:06:54] dudedudeman: so there's that
[23:07:02] shevy: hmm are you sure you have to use a lambda Kortes?
[23:07:16] frank_o: dfockler: hope its ok i quoted you in that gist, its just tmp though
[23:07:21] jhass: ^ I think you just meant to pass the primes array along
[23:07:27] adefa: has joined #ruby
[23:07:29] shevy: I like your comments:
[23:07:30] zenspider: dudedudeman: what do you mean by text/instructions ?
[23:07:32] fabrice31: has joined #ruby
[23:07:35] Twitter297: free web hosting found with unlimited traffic and php5 enabled for testing scripts, check out free, all those who check out tonight get to keep it indefinately! http://bit.ly/1eU0vaM
[23:07:37] kortes: shevy - what other way could i have the varr available to all future recursive calls?
[23:07:38] zenspider: what part are you doing/running?
[23:07:40] jhass: Kortes: primes=[] in your method definition
[23:07:41] Papierkorb: has joined #ruby
[23:08:00] jhass: you don't need to closure, just pass it along
[23:08:01] zenspider: I wasn't fast enough on the ban
[23:08:08] kortes: ahhhhhh!!!!
[23:08:11] kortes: as aparameter?
[23:08:21] kortes: youre awesome
[23:08:41] jhass: zenspider: funny, I got that host klined for a day
[23:09:19] dudedudeman: zenspider: the very first time i worked through the first example, after setting it up, i would run the test, and it would give me a message talking a little bit about the error and such, and like, a pointer on where to look/what to fix next. so as i would complete a failing test, it would move on and tell me something else
[23:09:33] jackjackdripper: has joined #ruby
[23:09:34] zendrix: has joined #ruby
[23:09:41] ghr: has joined #ruby
[23:09:54] zenspider: dudedudeman: exercism? I don't think so...
[23:09:58] premera: has joined #ruby
[23:10:02] kortes: exercism kicks ass
[23:10:08] zenspider: are you sure you're not confusing it with the ruby koans or something?
[23:10:09] kortes: i love that site
[23:10:40] yfeldblum: has joined #ruby
[23:10:45] dudedudeman: zenspider: i promise it was exercism. :(
[23:10:55] zenspider: I'm updating my client
[23:11:30] miah: i havent used exercism in a long time
[23:12:11] x1337807x: has joined #ruby
[23:12:20] zenspider: gah. I don't know how to use it now
[23:12:22] seph429: has joined #ruby
[23:12:25] Fooster: has joined #ruby
[23:12:29] miah: ya its some client download now
[23:12:32] michas: has joined #ruby
[23:12:44] zenspider: it doesn't do login now?
[23:12:47] dudedudeman: here's a gist of the first one that pops up: https://gist.github.com/anonymous/8e02c76102016fe4790f
[23:13:01] dudedudeman: no, it gives you an api key i think
[23:13:22] dudedudeman: and zenspider, please don't feel like you have to go through a bunch of poking with it for my account.
[23:13:59] dudedudeman: to hook up the cli to your exercism account, it being exercism, gives you an API key that you plug in with exercism configure --key="api key from site"
[23:14:01] zenspider: how in the FUCK do you use this thing now?
[23:14:09] miah: http://help.exercism.io/installing-the-cli.html
[23:14:24] dudedudeman: oh god.. what have i done..
[23:14:33] miah: and then exercism config --key=<key>
[23:14:35] zenspider: brew install exercism is easy enough... but the old cmd had a login command
[23:14:38] miah: r, configure
[23:14:57] miah: when it was a ruby gem
[23:15:16] zenspider: no, it was a binary
[23:15:28] zenspider: just annoying that they dropped functionality
[23:16:22] dudedudeman: ah, i never touched it when it was a binary
[23:16:24] tuelz2: what does exercism not have that it used to have?
[23:16:27] Musashi007: has joined #ruby
[23:16:46] tuelz2: I just started it to learn elixiri
[23:16:57] dudedudeman: i certainly don't see any turtles
[23:16:58] tuelz2: and couldn't have been more pleased with how simple it is to use
[23:17:25] tuelz2: I hate turtles. They just sunbathe and look at me while I'm kayaking
[23:17:35] tuelz2: mind your own damn business turtles
[23:17:58] miah: well ok then
[23:18:18] tuelz2: sorry, I'm drunk :(
[23:18:30] tuelz2: I'll keep my comments to myself until I sober up
[23:18:33] miah: its fine
[23:18:56] shevy: hmm in the style guide there at https://github.com/chneukirchen/styleguide/blob/master/RUBY-STYLE
[23:19:02] shevy: "* Never use smalltalk: symbols."
[23:19:05] shevy: what is meant with that?
[23:20:06] jhass: https://github.com/chneukirchen/styleguide/commit/e60de37b478d3f892f6985a58d573016f33f0269 colon style I guess
[23:20:16] jhass: {foo: :bar}
[23:20:26] nofxx: This one goes to the nice naming gems: charlock_holmes
[23:20:31] FernandoBasso: has joined #ruby
[23:20:40] shevy: jhass ah I see
[23:20:43] zenspider: dudedudeman: I just started a new exercise and it doesn't say anything about my first failure. how are you running?
[23:20:44] pengin: has joined #ruby
[23:20:58] shevy: nofxx wasn't it sherlock holmes?
[23:21:16] nofxx: shevy, it detects char encodings ;)
[23:21:20] zenspider: shevy: I think that means use old style hash args?
[23:21:41] zenspider: oh. no. it just means don't make symbols than end in ":"
[23:22:06] zenspider: in smalltalk: expr ifTrue: [block] ifFalse: [block]
[23:22:46] jhass: where else would that be valid ruby?
[23:22:49] zenspider: I heavily disagree with many things in this style guide (surprise), but I don't think this is one of them
[23:22:58] dudedudeman: shevy: https://github.com/strand/dude
[23:23:09] zenspider: well, you can do something that looks like that now with keyword args
[23:23:19] zenspider: but they're normal symbols on the output
[23:23:19] bollullera: has joined #ruby
[23:23:39] jhass: yeah but that guide wasn't updated after ruby 2.0
[23:23:46] zipace: has joined #ruby
[23:23:46] zipace: has joined #ruby
[23:23:46] miah: >> { foo: 'bar' }
[23:23:47] ruboto: miah # => {:foo=>"bar"} (https://eval.in/376374)
[23:23:48] shevy: dudedudeman lol he even quoted from The Big Lebowski there
[23:23:59] zenspider: >> p blah: 42
[23:24:00] ruboto: zenspider # => {:blah=>42} ...check link for more (https://eval.in/376375)
[23:24:13] zenspider: it LOOKS like smalltalk, but doesn't act like it at all
[23:24:24] miah: i didnt realize it was a smalltalkism
[23:24:27] zenspider: the method in my smalltalk example above is named ifTrue:ifFalse:
[23:24:39] sigden: has joined #ruby
[23:24:56] bollullera: has left #ruby: ()
[23:24:58] zenspider: and is defined on TrueClass and FalseClass (s/Class//g)
[23:25:07] zenspider: and they execute the appropriate block
[23:25:47] zenspider: pseudo smalltalk: True#ifTrue:truthy ifFalse: falsey; truthy value
[23:25:56] zenspider: pseudo smalltalk: False#ifTrue:truthy ifFalse: falsey; falsey value
[23:25:59] mistermocha: has joined #ruby
[23:26:03] zenspider: boom. conditional logic
[23:26:14] Ox0dea: >> def true.-(a, &b) a[] end; def false.-(a, &b) b[] end; (1 == 1) .--> { :ok } { fail Math }
[23:26:14] ruboto: Ox0dea # => :ok (https://eval.in/376376)
[23:26:58] zenspider: anti-smalltalk AND anti-ruby! good job! :P
[23:27:10] Ox0dea: S'purdy, though.
[23:27:25] Axsuul: has joined #ruby
[23:27:29] jefus: has joined #ruby
[23:27:40] zenspider: that is NOT a word I would apply to that
[23:27:54] Blizzy: has joined #ruby
[23:28:01] ValicekB: has joined #ruby
[23:28:07] Ox0dea: But two blocks (ish)!
[23:29:38] shevy: Ox0dea your code rivals even hanmac's code there
[23:30:08] shevy: what is that .--> part? that looks like a lambda... hmm
[23:30:24] sankaber: has joined #ruby
[23:31:02] jbomo: has joined #ruby
[23:31:26] sankaber: has joined #ruby
[23:31:43] Ox0dea: shevy: It's (ab)using the fact that operators are really just methods.
[23:31:57] Ox0dea: But yeah, one of the "blocks" is really a lambda.
[23:32:07] someword: has joined #ruby
[23:32:41] BTRE: has joined #ruby
[23:34:43] max--1: has joined #ruby
[23:34:48] dnlbyl: has joined #ruby
[23:35:38] roolo: has joined #ruby
[23:36:01] zenspider: yeah. it's pretty horrible. expr.-(proc, &block)
[23:36:15] zenspider: dudedudeman: yeah. I can't replicate. sorry.
[23:37:52] casadei: has joined #ruby
[23:38:08] houhoulis: has joined #ruby
[23:38:23] iamjarvo: has joined #ruby
[23:38:26] ellisTAA: has joined #ruby
[23:39:21] Rubie: has joined #ruby
[23:39:21] Sirrr: has joined #ruby
[23:42:14] jackjackdripper: has joined #ruby
[23:42:34] frank_o: has joined #ruby
[23:42:41] Y4Rv1K: has joined #ruby
[23:43:17] baweaver: has joined #ruby
[23:44:32] Y4Rv1K: has joined #ruby
[23:45:54] woodruffw: has joined #ruby
[23:47:04] kinduff: has joined #ruby
[23:47:34] porkqpain: has joined #ruby
[23:47:44] _blizzy_: has joined #ruby
[23:47:49] ellisTAA: has joined #ruby
[23:50:39] colin_: has joined #ruby
[23:51:03] tuelz2: has joined #ruby
[23:51:47] millerti: has joined #ruby
[23:54:19] bantic: has joined #ruby
[23:54:25] alphaatom: has joined #ruby
[23:54:37] colin_: is there a ruby equivilant to the python timedelta object? I would like to work in time units such as days...
[23:54:38] Rubie: has joined #ruby
[23:54:39] kinduff: So I'm planning this online service to lookup things. The idea is not important, but what I'm looking for is an advice to start it. I'm going to make a webapp and probably mobile apps too. So I was thinking instead of starting with a web MVP, start writing a REST API that first resolves the problem and creates the infrastructure I'm looking to build. After that, release the versions I want. For example a web app, mobile app, ect.
[23:54:57] kinduff: Is that a good idea?
[23:55:17] mary5030: has joined #ruby
[23:56:08] dfockler: And that's how you get Space Dolphins
[23:56:15] dfockler: oops wrong channel :P
[23:56:32] baweaver: colin_: activesupport defines a lot of it from Rails
[23:56:58] baweaver: kinduff: #RubyOnRails should be able to get you set there
[23:57:04] baweaver: Rails can make an API very very rapidly.
[23:57:25] baweaver: as well as defining json responses with jbuilders to take care of alternate clients
[23:57:50] baweaver: then you can either use Rails views for your web frontend or some type of javascript frontend framework like Angular or Ember
[23:58:17] Channel6: has joined #ruby
[23:58:55] C1V0: has joined #ruby
[23:59:09] Scripore: has joined #ruby