« Back to channel list

#ruby - 22 May 2015

« Back 1 day Forward 1 day »
[00:00:59] vikaton: has joined #ruby
[00:01:13] ascarter: has joined #ruby
[00:03:52] zotherstupidbot: has joined #ruby
[00:03:54] zotherstupidguy: has joined #ruby
[00:04:15] dopie: has joined #ruby
[00:04:56] RegulationD: has joined #ruby
[00:09:53] shevy: audio on linux is still so much pain
[00:11:20] iamninja: has joined #ruby
[00:11:22] jack_rabbit: has joined #ruby
[00:11:51] Maletor: has joined #ruby
[00:14:02] phreakocious: has joined #ruby
[00:14:52] GriffinHeart: has joined #ruby
[00:15:57] SouL_|_: has joined #ruby
[00:16:35] GriffinHeart: has joined #ruby
[00:16:45] fabrice31: has joined #ruby
[00:17:00] zacts: has joined #ruby
[00:18:11] kenneth: has joined #ruby
[00:18:16] ascarter: has joined #ruby
[00:18:33] greenbagels: has joined #ruby
[00:18:51] ta: has joined #ruby
[00:21:15] that1guy: has joined #ruby
[00:21:30] devoldmx: has joined #ruby
[00:21:42] jottr: has joined #ruby
[00:23:26] jaequery_: has joined #ruby
[00:24:30] kenneth: has joined #ruby
[00:25:57] cjim_: has joined #ruby
[00:26:14] sarlalian: has joined #ruby
[00:26:54] deric_skibotn: has joined #ruby
[00:28:23] Joufflu: has joined #ruby
[00:30:23] sdothum: has joined #ruby
[00:31:03] lidenskap: has joined #ruby
[00:32:39] djbkd: has joined #ruby
[00:33:24] jaequery: has joined #ruby
[00:33:31] djbkd: has joined #ruby
[00:33:45] GriffinHeart: has joined #ruby
[00:34:57] GriffinHeart: has joined #ruby
[00:35:14] MatthewsFace: has joined #ruby
[00:36:16] Igorshp: has joined #ruby
[00:36:19] GriffinH_: has joined #ruby
[00:38:51] robustus: has joined #ruby
[00:38:57] GriffinHeart: has joined #ruby
[00:43:41] havenwood: DeBot: !hangman gems
[00:43:42] DeBot: ???????????????????????????????????? [] 0/12
[00:43:50] DeBot: ???e???????????????????????????e [] 0/12
[00:44:15] demophoon: DeBot: ???a
[00:45:03] DeBot: ???e????????????a????????????e [] 0/12
[00:45:23] demophoon: DeBot: ???n
[00:45:58] DeBot: ???e????????????a????????????e [n] 1/12
[00:46:31] demophoon: DeBot: ???m
[00:46:38] DeBot: ???em?????????a????????????e [n] 1/12
[00:46:59] havenwood: DeBot: rstl
[00:47:00] DeBot: ???em??????ra???t??????e [nsl] 3/12
[00:47:16] demophoon: DeBot: ???g
[00:47:20] DeBot: gem??????ra???t??????e [nsl] 3/12
[00:47:53] User458764: has joined #ruby
[00:47:55] DeBot: gem??????ra???t??????e [nslu] 4/12
[00:48:39] DeBot: gem_???ra???t??????e [nslu] 4/12
[00:51:15] DeBot: gem_???ra???t??????e [nsluo] 5/12
[00:51:31] user083: has joined #ruby
[00:51:32] DeBot: gem_???ract???ce [nsluo] 5/12
[00:51:43] DeBot: gem_pract???ce [nsluo] 5/12
[00:51:55] DeBot: gem_practice [nsluo] 5/12 You won!
[00:52:06] jgt1: has joined #ruby
[00:53:40] shevy: that bot gets the channel going
[00:54:08] havenwood: shevy: gotta meet our character production quota
[00:54:36] devoldmx: has joined #ruby
[00:55:40] Scripore: has joined #ruby
[00:56:20] longfeet: has joined #ruby
[00:58:25] SouL_|_: has joined #ruby
[01:00:49] Radar: DeBot: !hangman gems
[01:00:49] DeBot: ???????????????????????????????????????????????????????????? [] 0/12
[01:00:53] DeBot: ????????????????????????e?????????e???????????????e??? [] 0/12
[01:00:55] DeBot: ??????????????????a???e?????????e???????????????e??? [] 0/12
[01:00:57] DeBot: ??????????????????a???e???i???e??????i??????e??? [] 0/12
[01:00:59] DeBot: ??????????????????a???e???i???e??????i??????er [] 0/12
[01:01:02] DeBot: ??????s?????????a???e???i???e??????i??????er [] 0/12
[01:01:05] DeBot: ??????st??????ateti???e??????i??????er [] 0/12
[01:01:12] DeBot: ??????st??????atetime??????i??????er [] 0/12
[01:01:16] DeBot: ??????st???datetime??????i??????er [] 0/12
[01:01:24] DeBot: ??????st-datetime-???i??????er [] 0/12
[01:01:29] DeBot: ??????st-datetime-???i??????er [v] 1/12
[01:01:40] DeBot: ??????st-datetime-???i??????er [v] 1/12
[01:01:42] c-c: DeBot: t
[01:01:42] DeBot: ??????st-datetime-???i??????er [v] 1/12
[01:02:00] c-c: DeBot: g
[01:02:00] DeBot: ??????st-datetime-???i??????er [vg] 2/12
[01:02:04] DeBot: ??????st-datetime-???i??????er [vgo] 3/12
[01:02:07] c-c: DeBot: n
[01:02:07] DeBot: ??????st-datetime-???i??????er [vgon] 4/12
[01:02:19] DeBot: ??????st-datetime-???i??????er [vgonw] 5/12
[01:02:23] DeBot: j???st-datetime-???i??????er [vgonw] 5/12
[01:02:23] DeBot: j???st-datetime-???i??????er [vgonwx] 6/12
[01:02:27] DeBot: just-datetime-???i??????er [vgonwx] 6/12
[01:02:29] bootstrappm: this game again? hahah
[01:02:38] DeBot: just-datetime-???i???ker [vgonwx] 6/12
[01:02:54] DeBot: just-datetime-pi???ker [vgonwx] 6/12
[01:02:55] DeBot: just-datetime-picker [vgonwx] 6/12 You won!
[01:03:09] c-c: well I'd nver!
[01:08:34] kinduff: DeBot: !hangman gems
[01:08:34] DeBot: ????????????????????????????????? [] 0/12
[01:08:39] DeBot: ?????????a????????????????????? [] 0/12
[01:08:44] DeBot: ?????????a?????????c????????? [] 0/12
[01:08:48] DeBot: ?????????a?????????c????????? [o] 1/12
[01:08:52] DeBot: ?????????a?????????c????????? [o_] 2/12
[01:09:16] DeBot: ??????ta?????????c????????? [o_] 2/12
[01:09:20] DeBot: m???ta?????????c????????? [o_] 2/12
[01:09:25] DeBot: meta?????????c???e??? [o_] 2/12
[01:09:32] DeBot: meta-??????c???e??? [o_] 2/12
[01:09:53] DeBot: meta-??????c???er [o_] 2/12
[01:10:08] kinduff: DeBot: parser
[01:10:09] DeBot: meta-p???c???er [o_s] 3/12
[01:10:13] DeBot: meta-p???c???er [o_s] 3/12
[01:10:27] existensil: you already guessed a!
[01:10:40] kinduff: lemme play my way
[01:10:48] DeBot: meta-p???c???er [o_su] 4/12
[01:11:16] DeBot: meta-p???cker [o_su] 4/12
[01:11:20] Kiranico: has joined #ruby
[01:11:21] DeBot: meta-picker [o_su] 4/12 You won!
[01:13:13] kinduff: DeBot !russianrulette
[01:13:19] kinduff: DeBot: !russian_rulette
[01:13:44] that1guy: has joined #ruby
[01:13:57] kinduff: DeBot: !russian_roulette
[01:13:59] kinduff: DeBot: !russianroulette
[01:14:06] kenneth: has joined #ruby
[01:15:44] ascarter: has joined #ruby
[01:16:23] alderamin: has joined #ruby
[01:16:50] gizmore: has joined #ruby
[01:19:43] charliesome: has joined #ruby
[01:20:33] horsecowdog: has joined #ruby
[01:20:37] segfalt: has joined #ruby
[01:24:09] bootstrappm: has joined #ruby
[01:25:25] jottr: has joined #ruby
[01:25:59] tkuchiki: has joined #ruby
[01:27:30] Maletor: has joined #ruby
[01:29:22] amclain: has joined #ruby
[01:30:08] lidenskap: has joined #ruby
[01:30:38] jenrzzz: has joined #ruby
[01:30:44] io_syl: has joined #ruby
[01:35:22] cirn0: has joined #ruby
[01:42:19] rbennacer: has joined #ruby
[01:45:10] zotherstupidbot: has joined #ruby
[01:45:30] wallerdev: has joined #ruby
[01:46:02] GriffinHeart: has joined #ruby
[01:46:52] kenneth: has joined #ruby
[01:47:10] s2013: has joined #ruby
[01:49:14] veduardo: has joined #ruby
[01:51:36] DerisiveLogic: has joined #ruby
[01:52:13] longfeet_: has joined #ruby
[01:52:18] baweaver: has joined #ruby
[01:54:26] BTRE: has joined #ruby
[01:55:47] GriffinHeart: has joined #ruby
[01:58:10] laurentide: has joined #ruby
[01:59:00] cirn0: has joined #ruby
[01:59:18] zotherstupidguy: has joined #ruby
[02:00:09] kobain: has joined #ruby
[02:01:05] laurentide: has joined #ruby
[02:01:29] nobitanobi: has joined #ruby
[02:02:36] jack_rabbit: has joined #ruby
[02:02:37] speaking1ode: has joined #ruby
[02:02:40] bmurt: has joined #ruby
[02:04:54] duderonomy: has joined #ruby
[02:05:35] fabrice31: has joined #ruby
[02:05:48] gambl0re: has joined #ruby
[02:05:53] kenneth: has joined #ruby
[02:06:42] gambl0re: has joined #ruby
[02:09:04] yh__: has joined #ruby
[02:13:37] arescorpio: has joined #ruby
[02:15:17] veduardo: has joined #ruby
[02:16:37] WillAmes: has joined #ruby
[02:17:56] RegulationD: has joined #ruby
[02:18:49] Kricir: has joined #ruby
[02:20:51] Oog: has joined #ruby
[02:22:04] mrsolo: has joined #ruby
[02:22:36] versachey: has joined #ruby
[02:22:43] bruno-: has joined #ruby
[02:23:19] Oka: has joined #ruby
[02:23:26] baweaver: has joined #ruby
[02:23:29] Hijiri: has joined #ruby
[02:25:12] icebourg: has joined #ruby
[02:27:04] cyberarm: has joined #ruby
[02:28:47] sdothum: has joined #ruby
[02:29:16] rbennacer: has joined #ruby
[02:29:55] swgillespie: has joined #ruby
[02:30:54] zzing: has joined #ruby
[02:32:36] ShortyCode: has joined #ruby
[02:33:35] Sawbones_: has joined #ruby
[02:36:36] Evidlo: has joined #ruby
[02:36:40] Igorshp: has joined #ruby
[02:36:51] Evidlo: Anyone know how why I'm getting this versioning issue? http://www.rafb.me/results/r4CpZV60.html
[02:37:18] keen________: has joined #ruby
[02:38:12] centrx: Evidlo, You probably want to run everything with bundle exec, e.g. bundle exec rake db:migrate RAILS_ENV="production"
[02:39:13] wallerdev: has joined #ruby
[02:39:56] charliesome: has joined #ruby
[02:40:21] konsolebox: has joined #ruby
[02:41:45] wolflee: has joined #ruby
[02:43:16] cubesandcode: has joined #ruby
[02:45:24] Sawbones: has joined #ruby
[02:46:23] shock_one: has joined #ruby
[02:46:42] Channel6: has joined #ruby
[02:46:44] finisherr: has joined #ruby
[02:47:30] cibs: has joined #ruby
[02:49:13] segfalt: has joined #ruby
[02:49:27] Evidlo: centrx: Is there a better way to get all the necessary dependencies than to 'bundle exec rake', figure out what's missing, then manually install and repeat?
[02:50:11] pontiki: has joined #ruby
[02:51:38] centrx: Evidlo, Presumably if you install system versions of gems, and have no conflicting versions of gems
[02:51:48] centrx: Evidlo, Remember the bundle defines which versions of gems to use in your app as well
[02:52:06] centrx: I don't see what's wrong with 'bundle exec' though
[02:55:00] Hijiri: has joined #ruby
[02:56:06] commondream: has joined #ruby
[02:56:59] blazes816: has joined #ruby
[02:58:06] djbkd: has joined #ruby
[02:59:10] Rubie: has joined #ruby
[02:59:50] kenneth: has joined #ruby
[03:00:01] Rubie: has joined #ruby
[03:01:48] shuber_: has joined #ruby
[03:03:19] Rubie: has joined #ruby
[03:06:23] macmartine: has joined #ruby
[03:06:37] Spami: has joined #ruby
[03:08:17] P1RATEZ: has joined #ruby
[03:09:24] krz: has joined #ruby
[03:09:31] devoldmx: has joined #ruby
[03:13:05] braincrash: has joined #ruby
[03:13:05] dopie: has joined #ruby
[03:15:31] Scripore: has joined #ruby
[03:17:13] Sawbones: has joined #ruby
[03:18:18] Axy: has joined #ruby
[03:18:39] Axy: has joined #ruby
[03:19:53] anytimebutnow: has joined #ruby
[03:20:30] renanoronfle: has joined #ruby
[03:21:09] crack_user: has joined #ruby
[03:21:14] macmarti_: has joined #ruby
[03:22:30] kenneth: has joined #ruby
[03:23:20] rrichardsr3: has joined #ruby
[03:23:47] bruno-: has joined #ruby
[03:30:01] Sawbones: has joined #ruby
[03:34:17] tuelz: has joined #ruby
[03:41:01] commondream: has joined #ruby
[03:41:23] wolfleemeta: has joined #ruby
[03:41:39] lidenskap: has joined #ruby
[03:41:55] cjim_: has joined #ruby
[03:45:04] commondr_: has joined #ruby
[03:45:15] macmartine: has joined #ruby
[03:46:41] Kiranico: has joined #ruby
[03:50:24] baroquebobcat: has joined #ruby
[03:54:05] Radar: lol so many people try to install Redmine :\
[03:54:15] DynamicMetaFlow: has joined #ruby
[03:54:23] fabrice31: has joined #ruby
[03:54:35] baweaver: *cough*Just install Jira already*cough*
[03:54:46] Radar: *cough* just use Trello or GH issues or BitBucket issues
[03:56:26] P1RATEZ: has joined #ruby
[03:57:41] sevenseacat: for most purposes, those lightweight solutions are perfectly sufficient
[03:57:53] Scripore: has joined #ruby
[03:58:01] baweaver: I've just been in enough larger companies that Jira is fairly standard.
[03:58:04] sevenseacat: (bot for those, redmine isnt exactly sufficient out of the box either)
[03:58:10] ellisTAA: has joined #ruby
[03:59:55] baweaver: Admittedly Rails is a bit convoluted to deploy properly
[04:00:51] bplaxco: has joined #ruby
[04:03:30] arup_r: has joined #ruby
[04:04:54] cranq: has joined #ruby
[04:05:50] veduardo: has joined #ruby
[04:06:02] RegulationD: has joined #ruby
[04:06:13] michael_mbp: has joined #ruby
[04:11:10] bronson_: has joined #ruby
[04:11:18] nimf: has joined #ruby
[04:13:38] havenwood: has joined #ruby
[04:13:52] agent_white: has joined #ruby
[04:14:31] agent_white: Evenin' folks
[04:19:56] kenneth__: has joined #ruby
[04:24:35] bruno-: has joined #ruby
[04:27:13] bluOxigen: has joined #ruby
[04:27:41] agent_white: has joined #ruby
[04:28:09] ponga: has joined #ruby
[04:28:13] diegoviola: has joined #ruby
[04:29:05] rawrmonstar: has joined #ruby
[04:29:37] jbomo: has left #ruby: ()
[04:29:45] ellisTAA: has joined #ruby
[04:31:54] kp666: has joined #ruby
[04:32:22] tejasmanohar: has joined #ruby
[04:33:14] icebourg: has joined #ruby
[04:33:44] jayeshsolanki: has joined #ruby
[04:34:22] wolfleemeta: has joined #ruby
[04:39:38] unclouded: has joined #ruby
[04:44:44] jenrzzz: has joined #ruby
[04:47:55] shock_one: has joined #ruby
[04:48:34] mrsolo: has joined #ruby
[04:49:32] riotjones: has joined #ruby
[04:49:36] dopie: has joined #ruby
[04:50:25] riotjones: has joined #ruby
[04:51:48] s2013: has joined #ruby
[04:54:28] tautvydas: has joined #ruby
[04:54:32] Zamyatin: has joined #ruby
[04:56:50] icebourg: has joined #ruby
[04:58:02] doerteDev: has joined #ruby
[04:59:30] GriffinHeart: has joined #ruby
[05:00:15] rawrmonstar: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[05:01:03] michaeldeol: has joined #ruby
[05:02:30] kt2: has joined #ruby
[05:04:32] jack_rabbit: has joined #ruby
[05:05:06] rickmasta: has joined #ruby
[05:06:39] dopie: has left #ruby: ("Leaving")
[05:09:26] nobitanobi: has joined #ruby
[05:10:20] hectortrope: has joined #ruby
[05:14:12] cosmicexplorer: has joined #ruby
[05:14:47] kenneth: has joined #ruby
[05:17:51] yh__: has joined #ruby
[05:20:37] aganov: has joined #ruby
[05:23:32] tuelz: has joined #ruby
[05:23:42] wolfleemeta_: has joined #ruby
[05:24:39] charliesome: has joined #ruby
[05:25:20] bruno-: has joined #ruby
[05:26:05] jack_rabbit: has joined #ruby
[05:29:16] wolfleemeta_: has joined #ruby
[05:30:26] P1RATEZ: has joined #ruby
[05:31:04] ramfjord: has joined #ruby
[05:32:08] balazs: has joined #ruby
[05:32:38] Parker0: has joined #ruby
[05:33:19] baroquebobcat: has joined #ruby
[05:33:19] rippa: has joined #ruby
[05:33:40] kenneth: has joined #ruby
[05:36:29] zreisman: has joined #ruby
[05:36:34] Rubie: has joined #ruby
[05:36:51] baweaver: Is it bad that I take a great deal of pleasure in taking a massive Java/C++ program and compacting it to a one-liner in Ruby/Scala?
[05:37:15] havenwood: baweaver: \o/
[05:37:38] baweaver: Saw the Java answer: https://github.com/brucardoso2/algorithms/blob/b0865a3e270553f5f71923e91a1e539e71de996d/src/algorithms/bst/TelephoneKeypad.java
[05:38:19] baweaver: https://gist.github.com/baweaver/9964225a7600cf7561cb - Mine is 5 lines of actual code, and only because I'm using decent names for things.
[05:38:45] lidenskap: has joined #ruby
[05:40:30] yaw: has joined #ruby
[05:43:01] mrdmi_: has joined #ruby
[05:43:05] fabrice31: has joined #ruby
[05:45:16] djbkd: has joined #ruby
[05:46:25] Aeyrix: baweaver: I kind of think the Java method is quite inefficient.
[05:46:54] baweaver: Side note, if anyone has a better way, feel free. That was just me hammering something out in 10-15
[05:47:44] Aeyrix: idk i think you reached under par for code golf there
[05:48:06] baweaver: The original was one line using names like cs, xs, and as
[05:48:10] baweaver: too much Haskell
[05:48:13] baweaver: bad habits form
[05:48:28] Aeyrix: No thanks.
[05:48:44] ahmetkapikiran: has joined #ruby
[05:48:48] baweaver: I jump about languages a lot for amusements sakes
[05:49:09] baweaver: Haskell at least is good to get in a certain mindset of programming
[05:49:22] Aeyrix: I really struggle with finding a place for Haskell.
[05:49:22] baweaver: Shame Ruby doesn't have native TCO though
[05:49:30] baweaver: Primarily financial
[05:49:46] havenwood: baweaver: I patch tco when I compile. Easy enough.
[05:49:52] io_syl: has joined #ruby
[05:50:02] baweaver: Yeah, you can, just saying I wish it was native from anything
[05:50:25] baweaver: There was some reason, but I'd have to find it again.
[05:50:28] GriffinHeart: has joined #ruby
[05:50:30] havenwood: https://gist.github.com/havenwood/d958268d0ab896373af6
[05:50:45] havenwood: baweaver: You have to disable trace to enable tco. Pick your poison.
[05:51:09] baweaver: Trace being stacktrace or what?
[05:51:14] baweaver: ACTION is googling about
[05:51:49] horsecowdog: has joined #ruby
[05:52:43] Aeyrix: baweaver: https://bugs.ruby-lang.org/issues/6602
[05:52:56] GriffinHeart: has joined #ruby
[05:53:38] baweaver: Yeah, that was the issue
[05:53:47] baweaver: was reading through instruction sequence
[05:54:49] RegulationD: has joined #ruby
[05:54:52] SOLDIERz: has joined #ruby
[05:55:37] jack_rabbit: has joined #ruby
[05:56:06] baweaver: Ah, GVR mentioned stack trace issues as a problem. Explains Python at least
[05:56:52] flughafen: morning guys
[05:56:53] devoldmx: has joined #ruby
[05:56:54] Aeyrix: That issue explains the existence of Python?
[05:57:08] baweaver: Well, its lack of TCO
[05:57:23] baweaver: ACTION is mostly asleep by now
[05:57:52] wasamasa: let's refuse making backtraces easy to read by incorporating exception handling into the language
[05:58:48] Feyn: has joined #ruby
[05:59:49] mrdmi_: has joined #ruby
[06:00:40] RegulationD: has joined #ruby
[06:03:35] jenrzzz: has joined #ruby
[06:03:54] rikai: has joined #ruby
[06:04:22] sinequanon: has joined #ruby
[06:04:45] riotjones: has joined #ruby
[06:05:04] shuber_: has joined #ruby
[06:06:08] commondream: has joined #ruby
[06:08:36] SouL_|_: has joined #ruby
[06:08:46] ahmetkapikiran: has joined #ruby
[06:09:25] ascarter: has joined #ruby
[06:11:20] Kiranico: has joined #ruby
[06:13:59] gambl0re: has joined #ruby
[06:14:58] chinmay_dd: has joined #ruby
[06:16:21] mrdmi_: has joined #ruby
[06:19:57] unshadow: has joined #ruby
[06:22:56] wolfleemeta__: has joined #ruby
[06:24:25] arup_r: has joined #ruby
[06:26:04] bruno-: has joined #ruby
[06:26:51] shock_one: has joined #ruby
[06:28:48] devoldmx_: has joined #ruby
[06:29:15] michael_mbp: has joined #ruby
[06:29:16] ahmetkapikiran: has joined #ruby
[06:29:45] aswen: has joined #ruby
[06:31:11] Macaveli: has joined #ruby
[06:32:03] A205B064: has joined #ruby
[06:32:24] tubuliferous: has joined #ruby
[06:36:16] sinequanon: has joined #ruby
[06:37:09] Hirzu_: has joined #ruby
[06:37:55] s2013: has joined #ruby
[06:38:08] Sawbones: has joined #ruby
[06:38:09] woodruffw: has joined #ruby
[06:38:30] mengu: has joined #ruby
[06:38:30] mengu: has joined #ruby
[06:39:29] Hanmac1: has joined #ruby
[06:39:46] woodruffw: has joined #ruby
[06:41:44] ebonics: zenspider, does ruby actually have tco
[06:43:41] zenspider: it's a build option and an option you can pass in when building an instruction sequence
[06:43:45] Obfuscate: baweaver: lambda { |x| x.shift.product *x }.call numbers.map { |n| LETTERS[n-2] }
[06:44:47] sent1nel: has joined #ruby
[06:44:51] ebonics: thats pretty sad
[06:44:55] ebonics: java doesnt even jave tco
[06:44:56] towski_: has joined #ruby
[06:47:37] baweaver: ACTION starts poking at Obfuscate's example
[06:47:49] Aeyrix: Go to bed.
[06:48:05] fabrice31: has joined #ruby
[06:48:06] gagrio: has joined #ruby
[06:51:05] rdark: has joined #ruby
[06:52:23] Obfuscate: ACTION begins the teeth-brushing ritual.
[06:52:51] krz: has joined #ruby
[06:53:03] hardlin3r: has joined #ruby
[06:53:12] Aeyrix: ACTION prepares to go home.
[06:55:00] ponga: has joined #ruby
[06:55:46] Blaguvest: has joined #ruby
[06:56:20] zenguy_pc: has joined #ruby
[06:58:12] ponga: has joined #ruby
[06:58:33] abuzze: has joined #ruby
[07:00:49] abuzze_: has joined #ruby
[07:00:52] sent1nel: has joined #ruby
[07:01:09] kinduff: has joined #ruby
[07:01:36] Hanmac1: ebonics: what the heck is tco?
[07:01:50] ebonics: hanmac1, tail call optimization
[07:02:13] ebonics: its when the gc will remove objects that are out of scope before the method exits
[07:02:18] ebonics: ie. in recursion
[07:02:58] terlar: has joined #ruby
[07:03:20] codecop: has joined #ruby
[07:03:41] Hanmac1: ebonics: did you checkout Enumerable#inject?
[07:03:43] apakatt: has joined #ruby
[07:04:00] ebonics: hanmac1, idk maybe i never get to use ruby
[07:04:03] ebonics: im just here to look pretty
[07:04:09] ebonics: and learn some stuff by listening
[07:04:43] Hanmac1: ebonics: http://ruby-doc.org/core-2.2.2/Enumerable.html#method-i-inject
[07:04:44] ringarin: has joined #ruby
[07:04:56] abuzze: has joined #ruby
[07:05:09] baweaver: >> h, *t = [1,2,3,4,5]; p h
[07:05:10] ruboto: baweaver # => 1 ...check link for more (https://eval.in/368553)
[07:05:13] baweaver: >> h, *t = [1,2,3,4,5]; p t
[07:05:14] ruboto: baweaver # => [2, 3, 4, 5] ...check link for more (https://eval.in/368554)
[07:05:32] baweaver: Still one of my newer favorites
[07:05:43] ebonics: ah cool hanmac1 yeah ive seen that before
[07:05:53] ebonics: tco is actually really necessary in ruby i think
[07:06:02] ebonics: it has a lot of dependence on it
[07:06:13] shuber_: has joined #ruby
[07:07:29] zenspider: ebonics: that's not tco
[07:07:36] ebonics: zenspider, ?
[07:07:45] dreinull75: has joined #ruby
[07:08:25] abuzze: has joined #ruby
[07:08:35] ebonics: what's not tco zenspider
[07:08:40] zenspider: working on it...
[07:09:20] zenspider: tco means that when you make a "tail call" ((leaf node) function call that will be the result of the entire function expression) the language will not create an extra stack entry for the new call and replace the current stack item w/ the new. recursion is a subset, tco applies to ANY tail call
[07:09:33] stanford_drone: has joined #ruby
[07:09:37] dreinull75: I'm using a presenter class to build some strings and numbers. Is there an elegant way to strip all strings originating from that class if String and strftime every date without explicitly calling those methods? Like an initializer but on the other end?
[07:09:58] ebonics: zenspider, i dont think thats true
[07:10:25] ebonics: thats not what my understanding of what tco is anyway, maybe im wrong
[07:10:33] ebonics: i dont see how you can replace the stack
[07:10:35] zenspider: dreinull75: strip? can you describe it differently?
[07:11:02] zenspider: ebonics: the GC isn't involved (or if it is, it is incidental)
[07:11:13] ebonics: a huge argument against bothering with tco in java is that you run out of stack before you run out of heap space
[07:11:27] dreinull75: zenspider just String#strip on any String that is returned by my Presenter.
[07:11:46] dreinull75: like a post call hook or something.
[07:11:49] zenspider: dreinull75: you want to call it w/o calling it?
[07:12:04] dumdedum: has joined #ruby
[07:12:09] tuelz: has joined #ruby
[07:12:22] ebonics: zenspider, are you saying that that's the definition of tco
[07:12:24] dreinull75: just doing some research if that's a good idea
[07:12:28] ebonics: or just how it is in ruby
[07:12:31] zenspider: ebonics: "replace the stack" is perhaps a bit naive a description
[07:12:44] ebonics: because in java it's the JIT
[07:12:48] zenspider: you basically longjmp to the new call site instead of calling it
[07:12:49] ebonics: but i don't think ruby has a JIT
[07:12:51] zenspider: "If the last thing a routine does before it returns is call another routine, rather than doing a jump-and-add-stack-frame immediately followed by a pop-stack-frame-and-return-to-caller, it should be safe to simply jump to the start of the second routine, letting it re-use the first routine's stack frame (environment)."
[07:12:58] Obfuscate: ebonics: That's a reasonable description in general. The only thing TCO requires is that the caller's call frame is replaced by the callee's when the call is in tail-context.
[07:13:36] Obfuscate: Hopefully it's not actually longjmp, but the effect is the same. :)
[07:13:43] parduse: has joined #ruby
[07:13:44] fabrice31: has joined #ruby
[07:13:44] zenspider: JIT has nothing (specifically) to do with this.
[07:14:07] ebonics: so you're saying it's built into the ruby runtime
[07:14:37] ahmetkapikiran: has joined #ruby
[07:15:04] ebonics: especially for ruby i cant see that being the case
[07:15:08] ebonics: maybe for a compiled language
[07:15:13] bluOxigen: has left #ruby: ()
[07:15:21] ebonics: but im pretty ignorant overall so maybe youre right :p
[07:15:24] zenspider: what does compiling or jit have to do with it, in your mind?
[07:15:47] ebonics: to do tco i think you need to have to analyze control flow and do a lot of ahead of time analysis
[07:15:54] ebonics: ie. something the runtime wouldnt do
[07:16:16] neohunter: has joined #ruby
[07:16:17] zenspider: Obfuscate: "Tail call elimination allows procedure calls in tail position to be implemented as efficiently as goto statements"
[07:16:48] Obfuscate: zenspider: I am well aware.
[07:17:13] scottstamp: has joined #ruby
[07:17:16] zenspider: Obfuscate: just basically saying that it is essentially a longjmp (tho hopefully you're not actually coding in C)
[07:17:20] Rubie: has joined #ruby
[07:17:37] ebonics: like how can it be safe to jmp if your method isnt atomic
[07:17:37] Obfuscate: ebonics: It's trivial to determine when TCO can be used. Doing this optimization at runtime is not problematic.
[07:17:39] zenspider: ebonics: you don't need to analyze control flow (separately, at least). you can tell as you're traversing an AST
[07:17:41] mrsolow: has joined #ruby
[07:18:15] fella5s: has joined #ruby
[07:18:15] ebonics: i dont know anything about ruby synchronization so yeah
[07:18:26] ebonics: i understand for a single thread it's trivial
[07:18:48] gagrio: has joined #ruby
[07:19:18] Obfuscate: zenspider: fwiw, I was simply noting it's not actually a longjmp, which (as someone who works a great deal directly with x86 assembly) is a subtly different thing.
[07:19:38] zenspider: sure. absolutely. and I'm sorry you work in x86 a lot. :P
[07:19:47] zenspider: tho, if you do.... you should help me update wilson!
[07:20:28] Obfuscate: I find I enjoy the low-level hackery a bit more, to be honest.
[07:20:32] zenspider: Obfuscate: https://github.com/seattlerb/wilson
[07:20:40] zenspider: help me do HORRIBLE things in ruby!
[07:20:43] ebonics: Obfuscate, do you work on embedded systems or something
[07:20:56] ebonics: i cant think of any practical reason to still do x86 asm lol
[07:21:02] ebonics: unless its for firmware or something
[07:21:05] Kharma: has joined #ruby
[07:21:13] zenspider: low-level hackery is one thing. low-level hackery on intel is another...
[07:21:51] agent_white: I haven't coded anything in a month. This conversation is making my head spin... in a good way! :D
[07:21:52] Obfuscate: ebonics: Parsers and compilers, with SIMD on x86 as a primary target.
[07:22:02] Obfuscate: zenspider: That is... not going to happen. :P
[07:22:08] zenspider: awwwwwww cmon!
[07:22:15] zenspider: you ... chicken?
[07:22:20] ebonics: sooo what you're saying is i shouldn't argue with you about optimization
[07:22:35] Hirzu: has joined #ruby
[07:22:36] ebonics: my dad would still beat up your dad so it's cool
[07:23:21] Obfuscate: zenspider: My primary project (NLP-related) saps most of my coding time. I waste the rest on IRC.
[07:23:41] ebonics: god i hate NLP
[07:23:49] ponga: somebody said nlp?
[07:24:10] zenspider: Obfuscate: that's twice tonight I've felt sorry for you :P
[07:24:15] ebonics: if i have to use another synset in my life ima just end it
[07:24:20] abuzze: has joined #ruby
[07:24:21] zenspider: ddv: a unicorn
[07:24:33] Obfuscate: By NLP, I mean natural language processing, and not whatever other horrible things that acronym is unfortunately associated with.
[07:24:58] scuey: has joined #ruby
[07:25:10] ddv: zenspider: your mom?
[07:25:28] ponga: Obfuscate +1
[07:25:32] zenspider: ddv: something like that
[07:25:54] ebonics: i was stuck on a project for a couple months doing sentiment analysis
[07:26:02] ebonics: and it was above my head at the time
[07:26:15] ebonics: i just remember being insanely frustrated
[07:26:34] vivekananda: has joined #ruby
[07:27:13] zenspider: because finding unicorns are frustrating
[07:27:22] zenspider: ooooh! neato idea! https://github.com/tonsky/FiraCode
[07:27:27] zenspider: programming font with coding ligatures
[07:27:52] ebonics: still better than brainfuck i guess
[07:28:07] zenspider: I wonder if emacs will render ligatures
[07:28:59] simurg: has joined #ruby
[07:29:19] Obfuscate: ebonics: I mostly stick to parsing and language analysis (with an aim to improve translation), so for me it's a great deal of experimenting with different algorithms.
[07:30:06] arietis: has joined #ruby
[07:30:13] ebonics: Obfuscate, i think translation was the easiest part. not necessarily translation but it was the easiest technique to do (i forgot what its called) but finding senses through matching corpuses in different languages
[07:30:44] ebonics: i actually enjoyed that part haha
[07:31:10] ebonics: but that's cool Obfuscate, what language(s) do you use for it?
[07:31:44] Obfuscate: ebonics: Accurate translation is a problem that even Google struggles with. It's not easy, unless you're merely attempting statistical translation.
[07:31:54] Obfuscate: English, Japanese and Chinese.
[07:32:09] ebonics: Obfuscate, i didn't mean necessarily translation but idk what the term is called
[07:32:42] Obfuscate: Most code is in C++, a DSL backed by LLVM and a little postgres.
[07:32:44] ebonics: Obfuscate, it's when you take an english word in a corpus, then you take a chinese corpus with an "exact match" sense that's been tagged, then translate that back to english
[07:32:54] ebonics: chinese/whatever :P
[07:33:03] Obfuscate: Defilement? ;)
[07:33:04] agent_white: tomflint: /join #ecf
[07:33:10] agent_white: wrong... everything!
[07:33:12] ebonics: Obfuscate, no it's a legit NLP technique
[07:33:20] ebonics: it's better than a lot of bayesian approaches
[07:34:03] apeiros: zenspider: are you on twitter?
[07:34:11] Aeyrix: Same name.
[07:34:18] Hanmac: has joined #ruby
[07:34:29] apeiros: right. see it. odd, why doesn't twitter client complete it for me?
[07:35:15] Obfuscate: ebonics: I've read about approaches like that, but don't recall a name for it, and it's not something that interests me.
[07:35:20] abuzze_: has joined #ruby
[07:35:38] zenspider: has joined #ruby
[07:36:15] ebonics: Obfuscate, do you work for a big corporation or something?
[07:36:19] zenspider: let's try this again... my client freaked out. not sure if client or proxy
[07:36:26] zenspider: apeiros: aye. @the_zenspider
[07:36:34] apeiros: oh, not @zenspider?
[07:36:58] zenspider: apeiros: no, that's not me... and they never seem to use it except for reading and that's enough for twitter to not give it back to me
[07:36:59] wildroman2: has joined #ruby
[07:37:09] nfk|laptop: has joined #ruby
[07:37:11] krz: has joined #ruby
[07:37:12] kenneth: has joined #ruby
[07:37:14] zenspider: (I had it originally, then blew up the account because I deemed twitter only for announcing bowel movements)
[07:38:06] Obfuscate: ebonics: No, not quite. A fairly small operation where analyzing text is the primary work.
[07:38:31] ebonics: Obfuscate, sounds like some HFT shit ;P
[07:39:33] ebonics: that would explain why you use asm :D
[07:39:52] Obfuscate: ebonics: I'm not sure what that acronym is supposed to be, but it's about time for me to sleep...
[07:40:01] zenspider: Obfuscate: wouldn't you rather write it in ruby?!?! wilson!
[07:40:02] ebonics: Obfuscate, high frequency trading
[07:40:14] diegoviola: has joined #ruby
[07:40:16] ebonics: ive heard of people applying NLP/LSA techniques to it
[07:40:18] ebonics: anyway seeya
[07:40:20] Obfuscate: ebonics: Ah, negative. That might be interesting though.
[07:40:57] horsecowdog: has joined #ruby
[07:41:23] User458764: has joined #ruby
[07:41:29] Obfuscate: zenspider: Too slow. Just dropping AVX alone would be tragic.
[07:42:03] zenspider: I dunno what AVX is, but I don't see how you can say it is too slow. wilson lets you write fast
[07:42:05] nfk: has joined #ruby
[07:43:44] SOLDIERz: has joined #ruby
[07:47:03] Juanchito: has joined #ruby
[07:47:12] Macaveli: has joined #ruby
[07:48:26] jgt1: has joined #ruby
[07:50:17] RegulationD: has joined #ruby
[07:51:26] Obfuscate: zenspider: There's actually a few reasons to avoid ruby: especially the type system, garbage collection, MRI and threads... but mainly it's that a great deal of the work consists of scanning of large sparse boolean matrices where the cache is a major concern and at this point there's a fairly heavy investment in LLVM.
[07:52:08] CloCkWeRX: has joined #ruby
[07:52:36] doerteDev: has joined #ruby
[07:54:27] Beoran_: has joined #ruby
[07:55:26] apakatt: has left #ruby: ("?")
[07:55:30] Obfuscate: ACTION vanishes.
[07:55:35] bmalum: has joined #ruby
[07:57:53] blackmesa: has joined #ruby
[07:59:38] beneggett: has joined #ruby
[08:03:11] stanford_drone: Does anyone know C/C++, Computer Vision/Image Processing, Machine Learning, AI, linux systems programming, or electronics? I'm looking for a programmer to join my Startup. We're going to China (manufacturing is there) from July to November. We're a team of 4. We're building a flying computer. A drone that you can play games with and install apps on.
[08:04:12] apeiros: zenspider: wilson? isn't that your inline assembler?
[08:04:33] P1RATEZ: has joined #ruby
[08:04:47] apeiros: stanford_drone: you do realize that this is #ruby, not ##c or (whatever c++' channel is)?
[08:04:50] flak: has joined #ruby
[08:05:38] DTSCode: apeiros: Funnily enough, its ##c++
[08:05:55] apeiros: dtscode: oh, right, + is valid in channel names.
[08:06:09] DTSCode: stanford_drone: Literally none of those are related to ruby
[08:06:13] apeiros: I tend to think channel names have the same rules as nicknames, but they don't.
[08:06:14] DTSCode: At least not directly
[08:06:23] apeiros: you can even have control characters in channel names. silly???
[08:06:33] DTSCode: apeiros: Nope. Nicknames are more rigerous
[08:06:39] tejasmanohar: has left #ruby: ("WeeChat 1.1.1")
[08:06:53] apeiros: dtscode: I know. I just rewrote my irc message parser 2 weeks ago???
[08:07:00] ArchRogem: has joined #ruby
[08:07:14] DTSCode: I still need to write mine
[08:07:22] apeiros: sadly freenode breaks rfc2812
[08:07:41] apeiros: ACTION points at that user with nick 7F1AALP94 - which is impossible according to rfc (leading digit)
[08:07:41] shuber_: has joined #ruby
[08:07:49] DTSCode: Freenode breaks a lot of things ;-;
[08:08:06] apeiros: what else does it break?
[08:08:27] apeiros: I noticed the welcome message does not contain the full mask, which is against the rfc as far as I understood. never verified that, though.
[08:09:47] DTSCode: Uh I actually can't remember off the top of my head. I'm writing a shell in C atm, so my work with the RFC and IRC is a bit rusty
[08:10:28] DTSCode: Protip: Don't do anything in c ;-;
[08:11:20] stanford_drone: dtscode, good programmers can use multiple languages.
[08:11:46] adaedra: no, real programmers use butterflies.
[08:11:49] agent_white: dtscode: Get out of my goddamned channels.
[08:11:57] ebonics: i am a god at basic
[08:11:57] DTSCode: agent_white: GTFO you noob
[08:12:25] agent_white: adaedra: Oh no, you must've been mistaken! Real programmers ARE butterflies.
[08:12:41] DTSCode: stanford_drone: It still doesn't really belong here (I'm guessing). And I wouldn't say good programmers can neccesarily use multiple languages
[08:12:59] DTSCode: agent_white: Do you like not read XKCD?
[08:13:05] sevenseacat: stanford_drone: we don't really like advertising.
[08:13:55] darkf: has joined #ruby
[08:14:01] ebonics: not to mention that sounds like the least commercially viable thing in existence
[08:14:18] DTSCode: ebonics: You've never gotten the urge to play apps on your drone?
[08:14:23] DTSCode: God damn it agent_white
[08:15:08] ta: has joined #ruby
[08:16:15] stanford_drone: ???If I had asked people what they wanted, they would have said faster horses.???
[08:16:33] einarj: has joined #ruby
[08:17:40] agent_white: Who _doesn't_ want a faster horse?!
[08:17:49] sevenseacat: vroom vroom horsey
[08:17:51] darkf: I sure do, with racestripes
[08:17:53] sevenseacat: ACTION revs
[08:17:56] ebonics: idk dude like
[08:18:06] ebonics: how are you going to be able to walk and play your video game
[08:18:06] darkf: ACTION rotates the horse's ears like motorcycle accelerators
[08:18:12] ebonics: does it fly automatically
[08:18:17] darkf: only if it's a pegasus
[08:18:20] darkf: luxury model
[08:18:36] ebonics: im imagining running into walls and shit
[08:18:47] darkf: well, the horse doesn't really want to run into walls
[08:18:49] darkf: trees, though...
[08:18:59] agent_white: As long as it doesn't run into trees. Last time I rode a horse it went into a tree.
[08:19:08] darkf: might also want to do a mating ritual with other horses so be careful when riding in packs
[08:19:15] apeiros: agent_white: did you ride a blind horse?
[08:19:20] darkf: unless you're a bull rider
[08:19:26] apeiros: agent_white: or was it suicidal? o0
[08:19:39] agent_white: apeiros: Nope! Though I did learn horses do not have a brake pedal.
[08:19:41] darkf: so, welcome to ##cars everyone
[08:20:08] darkf: I knew there was a reason we taught cars as examples for OOP
[08:20:26] ndrei: has joined #ruby
[08:21:09] quimrstorres: has joined #ruby
[08:21:09] tubuliferous: has joined #ruby
[08:21:48] darkf: so does anyone actually use callcc in ruby?
[08:21:54] sevenseacat: never heard of it.
[08:22:00] apeiros: darkf: wasn't that removed in 1.9?
[08:22:19] apeiros: at least in 2.2 it's no longer present.
[08:22:36] apeiros: I have. it was fun. bent my mind a bit, tho.
[08:22:43] ki0: has joined #ruby
[08:22:43] darkf: http://ruby-doc.org/core-2.2.0/Continuation.html
[08:22:56] darkf: it's not in Kernel anymore I guess
[08:22:56] apeiros: ah, so they moved it out of core
[08:22:59] ebonics: i personally use html to program my programs
[08:23:26] darkf: apeiros: what did you use it for, out of curiosity?
[08:23:32] apeiros: darkf: no idea
[08:23:36] apeiros: that's ~10y ago
[08:23:56] apeiros: and like flip-flops, I'd have to think quite hard before using it again :)
[08:24:10] apeiros: hm, not true. I think I'd have less trouble with flip-flops.
[08:24:18] darkf: I attempted to use it last year for some strange abstraction, but it intefered oddly with a C extension I was using so I had to give it up and do something more sane, unfortunately
[08:24:25] darkf: (I think I could have even used generators.)
[08:24:36] apeiros: but interesting that you bring it up
[08:24:46] apeiros: I just read a bit about stackless languages a week or two ago
[08:24:58] apeiros: and it said that continuations were one way to implement a stackless language
[08:25:01] darkf: they're pretty nifty
[08:25:08] darkf: well, funny you bring _that_ up
[08:25:27] darkf: yesterday I was thinking about how you can just have programs in CPS and use a trampoline to evaluate continuations
[08:25:32] mengu: has joined #ruby
[08:25:32] mengu: has joined #ruby
[08:25:45] darkf: continuation-passing style
[08:26:24] bronson: has joined #ruby
[08:26:28] darkf: the idea would be that you just return a continuation closure after each statement or whatever and then a trampoline would execute it (which would not grow the stack)
[08:26:45] unshadow: So, I want to test: a = gets, if a =~ somthing, elsif a =~ somthing_else, else gets again and check
[08:26:52] unshadow: what is the best way to do it ?
[08:27:15] cassianoleal: has joined #ruby
[08:27:23] darkf: can't you use patterns in switch/case expressions?
[08:27:35] bruno-: has joined #ruby
[08:27:38] apeiros: gotwhatiwant = false: until gotwhatiwant ???
[08:28:13] apeiros: darkf: yes
[08:28:36] apeiros: unshadow: alternatively use something like highline
[08:28:37] darkf: yeah, so switch gets; case /foo/ ...; end
[08:28:43] darkf: in a loop if you must
[08:28:46] apeiros: it deals with "ask user until input fits" patterns iirc.
[08:28:54] ebonics: a = gets: until a =~ something || a =~ something_else
[08:28:57] apeiros: darkf: well, case/when, not switch/case
[08:28:59] unshadow: a = gets until a =~ /(a|b)/i
[08:29:09] ebonics: yeah but wanna fight unshadow
[08:29:10] unshadow: nice ideas :) thanks
[08:29:50] unshadow: aperios, what's highline ?
[08:30:02] apeiros: who's aperios?
[08:30:21] centrx: has joined #ruby
[08:30:34] darkf: apeiros: anyway I think certain languages (especially functional ones) use this model to evaluate, so I find it interesting. I wonder how tenable it would be to implement such an evaluator in Ruby. :)
[08:30:34] apeiros: protip: use tab completion for nicks
[08:30:58] unshadow: not in irssi ^^
[08:30:59] fella5s: has joined #ruby
[08:31:05] chthon: has joined #ruby
[08:31:11] apeiros: unshadow: I'm pretty sure irssi has tab completion
[08:31:18] unshadow: nm, apperntly working.. thanks
[08:31:23] agent_white: unshadow: ? I use tab completion all the time. I just used it right now.
[08:31:28] apeiros: pebcak :-p
[08:31:35] unshadow: thanks for the tip
[08:31:42] agent_white: Turn it off, then on again!
[08:31:49] ebonics: does anyone use elastic beanstalk
[08:32:03] ebonics: wtf does it mean when it says health: red and an excalamation mark
[08:32:09] ebonics: it's scaring me but it just stays like that all the time
[08:32:10] anisha: has joined #ruby
[08:32:32] agent_white: shevy: PINGPINGPING
[08:32:40] CloCkWeRX: has joined #ruby
[08:33:01] agent_white: ebonics: RIP in peace ebonics
[08:33:30] ebonics: agent_white, it's been like that for like a couple weeks i think
[08:33:34] ebonics: so it can't be that critical
[08:33:52] agent_white: ebonics: You're speaking to us from the afterlife. What's it like?
[08:33:55] Hounddog: has joined #ruby
[08:34:33] apeiros: deploy to production = release
[08:34:37] apeiros: deploy to staging = stage
[08:34:41] apeiros: deploy to acceptance = ???
[08:34:41] seitensei: has joined #ruby
[08:34:41] seitensei: has joined #ruby
[08:34:51] mrsolo: has joined #ruby
[08:34:51] adaedra: apeiros: pray
[08:35:42] marr: has joined #ruby
[08:36:25] ahmetkapikiran: has joined #ruby
[08:36:26] arup_r: has joined #ruby
[08:37:45] User458764: has joined #ruby
[08:37:47] lele: has joined #ruby
[08:38:15] sevenseacat: after much umming and ahhing I think I've settled on DejaVu Sans Mono for an editor font
[08:38:23] sigurding: has joined #ruby
[08:40:02] darkf: ACTION continues using Consolas or whatever
[08:40:07] SouL_|_: has joined #ruby
[08:40:24] adaedra: ACTION uses Fira Mono
[08:40:27] joonty: has joined #ruby
[08:41:44] blackmesa: has joined #ruby
[08:42:07] edwinvdgraaf: has joined #ruby
[08:42:21] blueOxigen: has joined #ruby
[08:42:25] HotCoder: has joined #ruby
[08:42:51] dEPy: has joined #ruby
[08:42:55] dreinull75: can someone put me on track with Modules inside other modules? Not working: http://fpaste.org/224578/84137143/
[08:43:09] agent_white: ACTION hugs his Dina
[08:43:23] yeticry: has joined #ruby
[08:43:47] bkxd: has joined #ruby
[08:45:47] dreinull75: ok, did include B first, forgot that in that pastie
[08:47:24] edwinvdg_: has joined #ruby
[08:48:31] avat: has joined #ruby
[08:51:55] apeiros: sevenseacat: I use that one too. I might try that firacode zenspider mentioned.
[08:53:09] fabrice31_: has joined #ruby
[08:55:17] Peteykun: has joined #ruby
[08:56:04] Igorshp: has joined #ruby
[08:58:47] devoldmx: has joined #ruby
[08:58:58] bmalum: has joined #ruby
[09:01:05] tuelz: has joined #ruby
[09:01:32] platzhirsch: has joined #ruby
[09:01:48] platzhirsch: has left #ruby: ()
[09:02:58] quimrstorres: has joined #ruby
[09:03:27] selu: has joined #ruby
[09:03:54] fabrice31: has joined #ruby
[09:06:20] hectortrope: has joined #ruby
[09:08:07] wookiehangover: has joined #ruby
[09:08:09] shuber_: has joined #ruby
[09:08:33] andikr: has joined #ruby
[09:11:39] hectortrope: Hello Guys anyone here have experience with Haskell?? How do you compare haskell with ruby??
[09:11:56] adaedra: You don't compare languages
[09:12:48] hectortrope: adaedra: not comparing I just want to learn both so enquiring
[09:12:59] darkf: learn both and decide yourself then
[09:13:09] darkf: they are different beasts
[09:13:10] adaedra: then learn both and see by yourself
[09:13:23] hectortrope: darkf: it take 1+ year to learn Haskel
[09:13:34] adaedra: it takes time to learn anything
[09:13:36] beneggett: has joined #ruby
[09:13:49] hectortrope: So I can't differentiate on own i just want to listen to experienced and professionals
[09:13:49] adaedra: and it's never wasted time
[09:14:35] hectortrope: adaedra: true however listening or asking advise from experts also not a bad thing I guess
[09:15:19] adaedra: Comparaison between languages is subjective and/or dependant to context
[09:15:37] adaedra: Best way to decide if one language is good for you is trying it out
[09:16:13] hectortrope: ok thanks adaedra
[09:17:38] bkxd_: has joined #ruby
[09:17:45] shock_one: has joined #ruby
[09:19:23] wildroman2: has joined #ruby
[09:22:04] denver: has joined #ruby
[09:22:43] bluOxigen: has joined #ruby
[09:23:34] lidenskap: has joined #ruby
[09:25:03] mandarinkin: has joined #ruby
[09:25:41] certainty: hectortrope: learn haskell
[09:26:58] ndrei: has joined #ruby
[09:26:59] ponga: has joined #ruby
[09:27:13] shock_one: has joined #ruby
[09:28:21] bruno-: has joined #ruby
[09:29:51] sandelius: has joined #ruby
[09:29:51] horsecowdog: has joined #ruby
[09:30:02] sdothum: has joined #ruby
[09:31:42] hectortrope: certainty: hi
[09:33:39] bmalum: has joined #ruby
[09:34:57] certainty: hectortrope: hi
[09:35:08] certainty: also learn ruby :)
[09:35:31] certainty: if i were to start again, i'd learn haskell first
[09:36:11] darkf: yeah, same here
[09:36:22] sts: has left #ruby: ()
[09:36:23] c0m0: has joined #ruby
[09:36:23] darkf: gives you a much better view of the fundamentals and how to structure data/logic
[09:39:12] RegulationD: has joined #ruby
[09:39:43] arup_r: How can I get string from 128-1-ab2f9b77aee1096fd5e4aee89ca89881.jpg to 128-1.jpg ?
[09:40:12] pwnz0r: has joined #ruby
[09:40:32] apeiros: arup_r: what did you try?
[09:40:37] sevenseacat: i'd have paid more attention in my haskell class at uni.
[09:41:17] arup_r: apeiros: I am still trying --- I tried - (.*)-*.jpg\z ,, not working..
[09:41:29] arup_r: http://rubular.com/r/fnq189uCkY
[09:42:31] canton7: arup_r, what do you think '-*.' does?
[09:43:02] arup_r: canton7: done http://rubular.com/r/CWTRWZrrDd
[09:43:06] arup_r: I had a mistake
[09:43:48] canton7: ok, why is the {1} there? ;)
[09:43:48] withnale_: has joined #ruby
[09:44:04] gizless: has joined #ruby
[09:44:19] canton7: also, what do you think '.jpg' matches?
[09:44:23] arup_r: typo canton7: (.*)(-.*\.jpg)\z
[09:44:27] Hanmac1: arup_r: i did this:
[09:44:27] Hanmac1: >> "128-1-ab2f9b77aee1096fd5e4aee89ca89881.jpg".scan(/(\w+-\w+)-\w+(\.\w+)/).join
[09:44:29] ruboto: hanmac1 # => "128-1.jpg" (https://eval.in/368607)
[09:44:38] canton7: that's better ;0
[09:44:49] arup_r: canton7: which one?
[09:44:59] leafybasil: has joined #ruby
[09:44:59] canton7: your last one
[09:45:22] Hanmac1: canton7: what about my one?
[09:45:43] leafybasil: has joined #ruby
[09:45:45] canton7: different set of assumptions, also valid :P
[09:46:11] arup_r: hanmac1: thanks... I am ugly in Regex...
[09:47:21] apeiros: I'd use sub, but that's just me.
[09:49:32] ytti: and without regexp
[09:49:32] ytti: [1] pry(main)> file = '128-1-ab2f9b77aee1096fd5e4aee89ca89881.jpg'
[09:49:33] apeiros: depends on the logic. but you can do it with a regex with 8 chars and an empty string as replacement
[09:49:36] ytti: [2] pry(main)> [file.split('.').first.split('-')[0..1].join('-'), file.split('.').last].join('.')y(main)> plit('.').first.split('-')[0..1].join('-'), file.split('.').last].join('.')
[09:49:39] ytti: => "128-1.jpg"
[09:49:41] ytti: [3] pry(main)>
[09:49:54] apeiros: ytti: lol, awesome
[09:49:54] ytti: that paste looks broken
[09:50:08] ytti: it's not that bad, i swear
[09:50:31] apeiros: .sub(/-\h+(?=\.)/, '')
[09:50:33] Spami: has joined #ruby
[09:50:58] quimrstorres: has joined #ruby
[09:51:41] apeiros: if the hex segment is fixed length, you can do it without regex much more efficiently, though.
[09:52:09] apeiros: and given that it is 32 digits, I'd bet it is fixed size.
[09:52:43] sdothum: has joined #ruby
[09:53:45] atox: has joined #ruby
[09:55:18] krz: has joined #ruby
[09:55:22] shevy: apeiros don't fatten up!
[09:55:33] iamninja: has joined #ruby
[09:55:42] kaspernj: has joined #ruby
[10:00:08] bmalum: has joined #ruby
[10:00:17] davedev24_: has joined #ruby
[10:01:14] bkxd: has joined #ruby
[10:01:16] leafybas_: has joined #ruby
[10:01:39] ahmetkapikiran: has joined #ruby
[10:02:42] dreinull75: nobody knows how to handle modules?
[10:03:02] dreinull75: sad state :)
[10:03:07] shevy: ruby modules?
[10:03:12] serivich: has joined #ruby
[10:03:23] dreinull75: posted a pastie a couple of lines up
[10:03:35] dreinull75: http://fpaste.org/224578/84137143/
[10:03:35] shevy: I woke up 10 minutes ago!
[10:03:52] shevy: everything above my screen is ancient history :)
[10:04:09] dreinull75: good morning then, I'm getting ready for lunch ???
[10:04:21] shevy: dreinull75 they reside in different namespaces
[10:05:22] dreinull75: shevy I want to keep them apart because one is a clean API I'm building and the second provides some helper methods to the first. Right now everything is in one module.
[10:05:27] shevy: also your code can not work from that pastie
[10:05:38] dreinull75: yes, missing the include B
[10:05:39] shevy: f.rb:20:in `<main>': uninitialized constant Original (NameError)
[10:05:50] dreinull75: missed that in the pastie
[10:05:58] sevensea_: has joined #ruby
[10:06:43] shevy: you could try to subclass perhaps
[10:07:02] sent1nel: has joined #ruby
[10:07:48] shevy: this variant would work, in subclass-approach https://gist.github.com/shevegen/14aab600e6878dfee87c
[10:07:56] dreinull75: subclass would work but I'm also trying to educate myself on modules
[10:08:12] shevy: well they are in a different namespace so they can not be the same
[10:08:19] shevy: include is more like a secret subclass
[10:08:38] shevy: >> module Foo; end; class Bar; include Foo; end; Bar.new.ancestors
[10:08:39] ruboto: shevy # => undefined method `ancestors' for #<Bar:0x410ebf00> (NoMethodError) ...check link for more (https://eval.in/368624)
[10:08:56] shevy: >> module Foo; end; class Bar; include Foo; end; Bar.ancestors
[10:08:58] ruboto: shevy # => [Bar, Foo, Object, Kernel, BasicObject] (https://eval.in/368625)
[10:09:08] shevy: class Bar has the module Foo as part of its ancestor-chain
[10:09:16] shuber_: has joined #ruby
[10:09:35] shevy: should be the same when it is a class
[10:09:43] shevy: >> class Foo; end; class Bar < Foo; end; Bar.ancestors
[10:09:44] ruboto: shevy # => [Bar, Foo, Object, Kernel, BasicObject] (https://eval.in/368627)
[10:09:57] tubuliferous: has joined #ruby
[10:11:32] n008f4g_: has joined #ruby
[10:12:03] fabrice31_: has joined #ruby
[10:13:19] shevy: I have a question too, for others :)
[10:13:20] mary5030: has joined #ruby
[10:13:25] shevy: are these two lines the same?
[10:13:29] shevy: Object.const_defined? :Foo
[10:13:32] shevy: defined? :Foo
[10:13:52] Hanmac1: >> defined? :Foo
[10:13:53] ruboto: hanmac1 # => "expression" (https://eval.in/368630)
[10:14:07] mengu: has joined #ruby
[10:14:09] Hanmac1: shevy i think you want defined?(Foo)
[10:14:58] shevy: ok, so: defined? Foo
[10:15:10] shevy: but are they the same? I am trying to find out if a custom namespace would be known
[10:15:13] bronson: has joined #ruby
[10:15:25] shevy: defined? would obviously be shorter than the first variant
[10:15:59] Hanmac1: imo shevy you cant trust defined ... specially you cant use parameter with it
[10:16:16] shevy: I don't trust it
[10:16:21] shevy: it is a suspicious thing
[10:16:28] adaedra: module Foo; module Bar; end; p defined?(:Bar); p Object.const_defined?(:Bar); end
[10:16:33] adaedra: >> module Foo; module Bar; end; p defined?(:Bar); p Object.const_defined?(:Bar); end
[10:16:34] ruboto: adaedra # => "expression" ...check link for more (https://eval.in/368631)
[10:17:15] shevy: why does the second one not work
[10:17:18] shevy: and return false
[10:19:36] Hanmac1: shevy & adaedra
[10:19:36] Hanmac1: >> module Foo; module Bar; end; [defined?(Bar), const_defined?(:Bar)]; end
[10:19:37] ruboto: hanmac1 # => ["constant", true] (https://eval.in/368634)
[10:19:52] apeiros: dreinull75: still nobody?
[10:20:06] adaedra: shevy: because Bar is in Foo, not Object
[10:20:20] dreinull75: apeiros: I might go with this here: https://eval.in/private/90dedb1d913e7f
[10:20:24] rickmasta: has joined #ruby
[10:21:01] apeiros: ok, so somebody
[10:21:30] sandelius: has joined #ruby
[10:21:37] dreinull75: yes, it's early :)
[10:21:46] shevy: adaedra aha
[10:22:06] tak1n: has joined #ruby
[10:22:20] dreinull75: thank you shevy.
[10:23:28] arquebus: has joined #ruby
[10:23:37] dreinull75: and I learned about eval.in which I've been looking for but couldn't find.
[10:23:53] dreinull75: in some cases more useful than irb.
[10:23:59] apeiros: every day I'm eval'in
[10:24:10] dreinull75: off to lunch :)
[10:25:04] lidenskap: has joined #ruby
[10:25:15] pwattstbd: has joined #ruby
[10:25:21] jimms: has joined #ruby
[10:25:22] bmalum: has joined #ruby
[10:25:32] wolfleemeta__: has joined #ruby
[10:25:35] Stalkr_: has joined #ruby
[10:25:56] jottr: has joined #ruby
[10:26:37] atox: has joined #ruby
[10:28:21] jottr: has joined #ruby
[10:29:02] bruno-: has joined #ruby
[10:29:05] Pathfinder: has joined #ruby
[10:29:49] adaedra: ?pry dreinull75
[10:29:49] ruboto: dreinull75, Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting ???binding.pry??? directy in your source code. Visit https://pryrepl.org/ or get it now with gem install pry pry-doc
[10:30:15] fabrice31: has joined #ruby
[10:33:06] User458764: has joined #ruby
[10:35:50] phutchins: has joined #ruby
[10:36:30] shevy: what is the best way to convert one specific method in a module
[10:36:35] shevy: to a class method in addition to it. example
[10:36:57] shevy: module Foo; def bar; puts 'hi from bar'; end <-- bar should also be a module method there, but only bar, no other method in said module
[10:37:09] shevy: I forgot one 'end'
[10:37:37] jhass: shevy: module_function
[10:38:14] heftig: shevy: module_function :bar
[10:38:25] shevy: ok lemme try that
[10:38:33] heftig: in recent rubies def returns the method symbol, so you can do module_function def bar
[10:40:12] DEA7TH: has joined #ruby
[10:40:54] doodlehaus: has joined #ruby
[10:42:47] pwnz0r: has joined #ruby
[10:43:03] leafybasil: has joined #ruby
[10:45:04] serivich: has joined #ruby
[10:45:23] hectortrope: has joined #ruby
[10:47:48] rodfersou: has joined #ruby
[10:48:40] wolfleemeta___: has joined #ruby
[10:49:38] tuelz: has joined #ruby
[10:49:48] fabrice31: has joined #ruby
[10:50:11] qwertme: has joined #ruby
[10:52:25] blackmesa: has joined #ruby
[10:53:06] jimms: has joined #ruby
[10:54:40] haxrbyte: has joined #ruby
[10:56:12] jottr: has joined #ruby
[10:56:21] bruno-: has joined #ruby
[10:56:58] Scripore: has joined #ruby
[10:58:01] DEA7TH: has joined #ruby
[10:58:46] freerobby: has joined #ruby
[11:06:37] trouloulioud_dev: has joined #ruby
[11:08:28] shevy: strangely enough, I like to decorate methods post-end style
[11:08:28] Pro|: has joined #ruby
[11:08:36] shevy: end; module_function :foo
[11:08:53] centrx: what a rebel
[11:09:09] Pro|: is there way to run shell commands with user given parameters safely and catch errors
[11:09:22] Pro|: system(cmd, param, param, parma) would work but it doesnt capture errros
[11:10:39] adaedra: What do you mean, capture errors
[11:10:52] adaedra: Process return code or error output ?
[11:10:56] Pro|: error output
[11:11:11] Pro|: like `cmd 2>&1`would do
[11:11:26] adaedra: Use #reopen on $stdout
[11:11:31] shevy: you can append 2>&1 to your cmd too
[11:11:54] Pro|: how? atleast system(cmd, param,param,"2>&1") doesn't work
[11:12:06] adaedra: no, won't work this way
[11:12:30] adaedra: you can merge them into a command line string to use a shell, though
[11:12:42] shevy: Pro| just append to the cmd itself
[11:13:03] dseitz: has joined #ruby
[11:13:10] adaedra: shevy: what cmd?
[11:13:14] shevy: cmd = 'pkg-config --modversion glib-2.0 2>&1'
[11:13:50] adaedra: shevy: here he calls system with multiple arguments, not through a string, which doesn't calls a shell but runs the process directly, hence not handling 2>&1
[11:13:52] fabrice31_: has joined #ruby
[11:14:17] shevy: yeah, he should just use a string
[11:14:37] Pro|: can not use just a string
[11:14:48] Pro|: but how would i do this with stdout reopn?
[11:14:56] adaedra: stderr reopen
[11:15:12] adaedra: I advise you do it in a fork, though, as it will affect the current process
[11:15:34] adaedra: You reopen stderr to stdout, so both output will be the same (it's what 2>&1 do in shell)
[11:16:15] dreinull75: adaedra: thanks, I tried pry before but couldn't quite figure it out for my use cases
[11:16:44] apeiros: not quite sure what's to figure out about pry
[11:16:52] apeiros: you type `pry` instead of `irb`. done.
[11:17:06] apeiros: (of course, additionally you get binding.pry for within your apps)
[11:18:15] dreinull75: well, I haven't tried it for agaes
[11:18:41] dreinull75: I'm a casual dev
[11:18:47] horsecowdog: has joined #ruby
[11:19:48] shevy: and a casual typer!
[11:19:53] Hirzu_: has joined #ruby
[11:21:16] dreinull75: not a native if that counts as an excuse
[11:21:24] Hirzu: has joined #ruby
[11:22:07] adaedra: not a lot of us are, iirc
[11:23:08] shevy: dreinull75 I meant that in regards to "agaes", not whether one would be a native english speaker or not ;-)
[11:23:11] startupality: has joined #ruby
[11:23:36] shevy: it was one reason why I could never adjust to irssi
[11:23:49] dreinull75: the bar is high, nevertheless
[11:23:53] vivekananda: has joined #ruby
[11:24:08] shevy: I type quickly, make lots of mistakes, and out those things go already! in xchat I have that edit-line here where I can make corrections
[11:24:19] shevy: it was especially awful when pasting multiline stuff through irssi
[11:24:22] shevy: channel overflow
[11:24:31] dreinull75: of already sent messages?
[11:24:43] leafybas_: has joined #ruby
[11:24:59] alphaatom: has joined #ruby
[11:25:00] dreinull75: I'm quite fond of shout (as long as it works though).
[11:25:02] shevy: dunno what it was, I always ended up channel flooding when I was not careful
[11:25:40] lidenskap: has joined #ruby
[11:27:38] bronson: has joined #ruby
[11:28:02] RegulationD: has joined #ruby
[11:28:25] sankaber: has joined #ruby
[11:31:37] platzhirsch: has joined #ruby
[11:32:36] platzhirsch: I forgot how to write short Ruby code. One-liner for a while loop with a start value ?
[11:33:10] jimms: has joined #ruby
[11:34:15] Pathfinder: has joined #ruby
[11:34:43] adaedra: each_with_object?
[11:35:46] arup_r: has joined #ruby
[11:37:12] sts: has joined #ruby
[11:37:26] doublemalt_: has joined #ruby
[11:37:57] sts: hello folks. I'm trying to write an extension to Capistrano and I'm facing issues with my extension beeing loaded twice. The extension is installed via rubygems.
[11:38:29] arup_r: What is the difference between `__id__` and `object_id` ?
[11:39:00] sts: Capistrano is automatically trying to load my extension via Kernel#load, but it cannot find the file (because its from a Gem).
[11:39:01] fabrice31: has joined #ruby
[11:39:18] Pro|: if i have a array [1,2,3,4,5] how can i call with it a method that requires 5 parameters
[11:39:48] sts: Now when I add a require 'capistrano/xcopy', it will already load my extension, and later on capistrano also tries to load the extension. Thus I end up with it loaded twice.
[11:40:00] sts: Has anyone got an idea about what I could do?
[11:40:15] simurg: has joined #ruby
[11:41:39] arup_r1: has joined #ruby
[11:43:00] lotherk: has joined #ruby
[11:44:12] nfk: has joined #ruby
[11:44:17] gregf: has joined #ruby
[11:45:35] ldnunes: has joined #ruby
[11:46:31] User458764: has joined #ruby
[11:47:21] rdark: sts - rescue a LoadError from the require?
[11:48:21] jhass: Pro|: re system, take a look at the docs, it takes the same arguments as spawn, so a pipe would work. Or you take a look at open3 stdlib
[11:48:48] jhass: Pro|: the second question, with a splat: foo(*array)
[11:52:28] gustavn: has joined #ruby
[11:58:35] sts: rdark: the auther of capistrano already helped me in the other channel. thanks anyways
[11:58:45] tubuliferous: has joined #ruby
[11:58:46] gustavn: has joined #ruby
[12:03:36] Juanchito: has joined #ruby
[12:04:08] jottr: has joined #ruby
[12:06:02] renanoronfle: has joined #ruby
[12:06:54] jottr: has joined #ruby
[12:07:08] multiscan: has joined #ruby
[12:09:18] kurtec: has joined #ruby
[12:10:06] kurtec: has left #ruby: ()
[12:10:09] kurtec: has joined #ruby
[12:10:57] kurtec: has left #ruby: ()
[12:11:15] shuber_: has joined #ruby
[12:12:18] bmalum: has joined #ruby
[12:12:31] akfaew: has joined #ruby
[12:12:39] ta: has joined #ruby
[12:12:55] bmalum: has left #ruby: ()
[12:13:44] akfaew: is there something similar to perl's "fatpacker" available for ruby? i.e. pull in all files that a piece of software 'requires' and put it all into one big self contained file, for easy deployment?
[12:14:21] Hanmac1: akfaew: isnt that what gems are for?
[12:14:56] akfaew: i don't want gems, because i have many different pieces of ruby code on hundereds of machines
[12:14:59] rdark: akfaew: not afaik - ruby has bundler etc, which perl was lacking in anything like that for a long time
[12:15:04] akfaew: i want to be independent of upstream changes
[12:15:10] akfaew: and test once, not with every gem version
[12:15:31] _blizzy_: has joined #ruby
[12:15:45] akfaew: i had a look at omnibus, but it seems to do way more than i want. and is also quite difficult to set up
[12:15:49] rdark: akfaew: use bundler with --path vendor/bundle, make sure to use a Gemfile.lock
[12:16:20] rdark: I was for a while distributing some RPM packages using a similar method, so all that was required on the box was ruby + bundler
[12:16:32] akfaew: rdark: how would i use that when deploying a ruby program to 100 servers? i'd need to run bundler as a post-processing part of the package?
[12:16:50] rdark: no - you use bundler as part of your package build process
[12:17:02] akfaew: oh, ok. sounds inviting
[12:17:20] akfaew: thanks, i'll have a look
[12:17:25] psye: has joined #ruby
[12:18:11] rhllor: has joined #ruby
[12:20:31] tuelz: has joined #ruby
[12:21:05] denver: has joined #ruby
[12:21:31] but3k4: has joined #ruby
[12:24:52] rodferso1: has joined #ruby
[12:24:53] Rapier-: has joined #ruby
[12:25:04] banister: has joined #ruby
[12:25:43] jimms_: has joined #ruby
[12:25:57] ponga: has joined #ruby
[12:26:22] qwertme: has joined #ruby
[12:28:40] jhass: akfaew: that'll only work if your target environments are all (exactly) the same as the build environment
[12:28:42] guardianx: has joined #ruby
[12:28:58] tuelz: has joined #ruby
[12:29:25] jhass: akfaew: if that's not the case you'll need bundler on the target environment and use bundle package and the run bundle install --deployment on the target
[12:31:01] dorei: has joined #ruby
[12:32:53] jhass: bundler has a standalone mode though
[12:33:07] dstarh: has joined #ruby
[12:33:07] jhass: (that allows you to embed it into your project iirc)
[12:34:32] hectortrope: has joined #ruby
[12:39:01] jordanm: has joined #ruby
[12:39:27] akfaew: yeah that's what i want to achieve somehow
[12:39:53] Caius: has joined #ruby
[12:40:32] [k-: has joined #ruby
[12:41:23] giuseppesolinas: has joined #ruby
[12:41:55] giuseppesolinas: has joined #ruby
[12:42:20] agent_white: has joined #ruby
[12:44:23] sigurding: has joined #ruby
[12:44:27] ascarter: has joined #ruby
[12:45:01] agent_white: has joined #ruby
[12:46:06] ascarter: has joined #ruby
[12:46:36] bmalum: has joined #ruby
[12:47:40] leafybasil: has joined #ruby
[12:47:55] SouL_|_: has joined #ruby
[12:51:53] Scripore: has joined #ruby
[12:52:19] airdisa: has joined #ruby
[12:52:40] e1nh4nd3r: has joined #ruby
[12:54:14] matugm: has joined #ruby
[12:54:14] matugm: has joined #ruby
[12:54:27] griffindy: has joined #ruby
[12:55:00] arietis: has joined #ruby
[12:56:06] digifiv5e: has joined #ruby
[12:56:40] stef204: has joined #ruby
[12:57:36] SouL_|_: has joined #ruby
[12:58:58] RegulationD: has joined #ruby
[13:00:43] mrchris: has joined #ruby
[13:01:17] tkuchiki: has joined #ruby
[13:01:41] sgambino: has joined #ruby
[13:03:45] havenwood: has joined #ruby
[13:04:12] bmalum: has joined #ruby
[13:04:42] io_syl: has joined #ruby
[13:06:34] charliesome: has joined #ruby
[13:06:49] lolmaus: has joined #ruby
[13:06:54] zotherstupidguy: has joined #ruby
[13:08:26] devoldmx: has joined #ruby
[13:10:19] centrx: has joined #ruby
[13:10:49] iamninja: has joined #ruby
[13:11:24] segfalt: has joined #ruby
[13:11:43] vt102: has joined #ruby
[13:12:18] rickmasta: has joined #ruby
[13:12:27] shuber_: has joined #ruby
[13:12:42] dblessing: has joined #ruby
[13:13:11] wolfleemeta___: has joined #ruby
[13:14:27] Scripore: has joined #ruby
[13:14:28] lidenskap: has joined #ruby
[13:15:23] Rollabunna: has joined #ruby
[13:15:32] syath: has joined #ruby
[13:16:16] jimms: has joined #ruby
[13:16:28] doodlehaus: has joined #ruby
[13:16:34] bronson: has joined #ruby
[13:16:47] Spami: has joined #ruby
[13:17:21] freerobby: has joined #ruby
[13:19:35] zotherstupidbot: has joined #ruby
[13:19:59] jerius: has joined #ruby
[13:20:03] wolfleemeta____: has joined #ruby
[13:20:10] Rapier-: has joined #ruby
[13:20:34] quimrstorres: has joined #ruby
[13:21:25] e1nh4nd3r1: has joined #ruby
[13:23:49] tuelz: has joined #ruby
[13:24:08] iwishiwerearobot: has joined #ruby
[13:25:15] Spami: has joined #ruby
[13:25:57] superlou: has joined #ruby
[13:27:15] bmurt: has joined #ruby
[13:27:19] chinmay_dd: has joined #ruby
[13:27:28] leafybas_: has joined #ruby
[13:28:06] blackmesa: has joined #ruby
[13:28:20] leafybas_: has joined #ruby
[13:31:05] Scripore: has joined #ruby
[13:31:31] startupality: has joined #ruby
[13:32:29] jayeshsolanki: has joined #ruby
[13:33:23] e1nh4nd3r: has joined #ruby
[13:35:11] qwertme: has joined #ruby
[13:35:18] baroquebobcat: has joined #ruby
[13:35:20] P1RATEZ: has joined #ruby
[13:36:38] Xiti: has joined #ruby
[13:37:50] mary5030: has joined #ruby
[13:38:21] rodfersou: has joined #ruby
[13:38:43] jimms: has joined #ruby
[13:39:25] ascarter: has joined #ruby
[13:43:01] jhass: oO you read up until that? :D
[13:43:29] Scripore: has joined #ruby
[13:44:56] mary5030: has joined #ruby
[13:46:30] sent1nel_: has joined #ruby
[13:46:39] horsecowdog: has joined #ruby
[13:46:55] iasoon: has joined #ruby
[13:47:33] tubuliferous: has joined #ruby
[13:50:09] mrsolo: has joined #ruby
[13:50:29] hoov: has joined #ruby
[13:50:38] IrishGringo: has joined #ruby
[13:50:58] macmartine: has joined #ruby
[13:51:41] Echo: has joined #ruby
[13:52:12] balazs: has joined #ruby
[13:52:42] decoponio: has joined #ruby
[13:54:31] gaboesquivel: has joined #ruby
[13:55:27] bim: has joined #ruby
[13:57:12] werelivinginthef: has joined #ruby
[13:57:25] Maletor: has joined #ruby
[13:58:46] Echo: has left #ruby: ()
[14:00:47] serivichi: has joined #ruby
[14:00:56] commondream: has joined #ruby
[14:02:08] zotherstupidbot: has joined #ruby
[14:03:04] krz: has joined #ruby
[14:03:16] zotherstupidguy: has joined #ruby
[14:03:28] Goldfish: has joined #ruby
[14:03:45] Kricir: has joined #ruby
[14:05:51] Echohn: has joined #ruby
[14:06:17] kobain: has joined #ruby
[14:06:22] fmcgeough: has joined #ruby
[14:06:46] michael_mbp: has joined #ruby
[14:08:36] bmurt: has joined #ruby
[14:08:56] zotherstupidbot: has joined #ruby
[14:09:19] abuzze: has joined #ruby
[14:09:37] podman: has joined #ruby
[14:10:18] jhass: >> def foo; yield 1, yield 2; end;
[14:10:19] ruboto: jhass # => /tmp/execpad-54fa534d538e/source-54fa534d538e:2: syntax error, unexpected tINTEGER, expecting keywor ...check link for more (https://eval.in/368715)
[14:10:29] jhass: ruby parser, you disappoint me
[14:10:41] insidious: has joined #ruby
[14:11:18] ddv: what did you expect would happen anyway
[14:11:40] jottr: has joined #ruby
[14:12:15] bashusr: has joined #ruby
[14:13:20] Cache_Money: has joined #ruby
[14:13:30] shuber_: has joined #ruby
[14:13:57] zotherstupidbot_: has joined #ruby
[14:14:23] zotherstupidguy1: has joined #ruby
[14:15:44] Papierkorb: has joined #ruby
[14:17:00] Timba-as: has joined #ruby
[14:17:04] CoaxVex: has joined #ruby
[14:18:38] blackmesa: has joined #ruby
[14:19:03] CoaxVex: Has anyone ever seen "The requested address is not valid in its context. - connect(2)" when running gem install?
[14:19:50] CoaxVex: It's on Windows, version 2.4.4 that comes with chef-client
[14:20:26] vivekananda: has joined #ruby
[14:22:04] nobitanobi: has joined #ruby
[14:22:04] gambl0re: has joined #ruby
[14:22:19] zotherstupidbot_: has joined #ruby
[14:23:32] _blizzy_: has joined #ruby
[14:25:36] juanpaucar: has joined #ruby
[14:25:49] rbennacer: has joined #ruby
[14:26:50] fabrice31_: has joined #ruby
[14:26:58] umgrosscol: has joined #ruby
[14:27:11] sigurding: has joined #ruby
[14:27:23] hfp: Hey all, I would like to use haml templates in my ruby code. But I'm not using Rails and I don't want to precompile my files from haml to html. How do I turn my haml files to html on the go? This is to be used for Postmark email templates.
[14:27:41] hfp: by on the go I meant on demand
[14:27:53] tjohnson: has joined #ruby
[14:28:24] doublemalt_: has joined #ruby
[14:28:25] adaedra: Haml is a gem with classes, look at their documentation
[14:28:53] adaedra: Or you have Tilt which act as an abstraction level for templating and uses haml
[14:29:04] casadei: has joined #ruby
[14:29:33] Stalkr_: has joined #ruby
[14:29:43] hfp: haha I typed `tilt` in google and thought I was hallucinating because the hwole page is tilted. It's probably an easter egg
[14:30:10] adaedra: there's 'do a barrel roll' to push it further.
[14:33:24] banister: has joined #ruby
[14:35:29] ARYAN_NATIONS: has joined #ruby
[14:35:36] zotherstupidbot_: has joined #ruby
[14:36:47] armyriad: has joined #ruby
[14:37:37] jhass: !ban ARYAN_NATIONS
[14:37:37] helpa: Radar, you should ban the person highlighted, signed jhass.
[14:37:49] jhass: !ban ARYAN_NATIONS !T 1d
[14:37:49] helpa: Radar, you should ban the person highlighted, signed jhass.
[14:37:49] ChanServ: +b ARYAN_NATIONS!*@*
[14:37:49] ChanServ: ChanServ kicked ARYAN_NATIONS: is banned from this channel
[14:38:59] marr123: has joined #ruby
[14:39:22] tjbiddle: has joined #ruby
[14:40:28] chipotle: has joined #ruby
[14:41:48] ki0_: has joined #ruby
[14:42:03] ixti: has joined #ruby
[14:43:44] krz: has joined #ruby
[14:43:55] ARYAN__NATIONS: has joined #ruby
[14:44:02] ldnunes: has joined #ruby
[14:44:42] edwinvdgraaf: has joined #ruby
[14:44:56] spyderman4g63: has joined #ruby
[14:46:47] tcrypt: has joined #ruby
[14:46:58] commondream: has joined #ruby
[14:47:28] TOTEN_SIE_DIE_JU: has joined #ruby
[14:47:33] CoaxVex: has left #ruby: ()
[14:47:50] RegulationD: has joined #ruby
[14:48:25] keen________: has joined #ruby
[14:49:09] ki0: has joined #ruby
[14:49:25] DerisiveLogic: has joined #ruby
[14:49:36] charliesome: has joined #ruby
[14:50:04] startupality: has joined #ruby
[14:50:25] ki0: has joined #ruby
[14:50:37] jcutrell: has joined #ruby
[14:50:42] jcutrell: Hey ruby folk.
[14:50:50] jcutrell: I???m looking for a method similar to map,
[14:51:14] jcutrell: where the given enumerable item can be passed into a given method (rather than that method being called on the enumerable item)
[14:51:20] jcutrell: So, for example -
[14:52:17] jcutrell: if I had an array [1,2,3] and I wanted to call something like square(number) (obviously a ridiculous example), I can???t do array.map(&:square) , because that would do 1.square, 2.square, etc - is there a way to do square(1), square(2), etc?
[14:52:27] gkra: has joined #ruby
[14:52:36] jcutrell: (Other than an obvious .each)
[14:52:59] shuber_: has joined #ruby
[14:53:17] snockerton: has joined #ruby
[14:53:37] jhass: jcutrell: I'd write it out, but you can do .map(&method(:square))
[14:54:02] jhass: hardly shorter than {|n| square(n) } and a lot less clear IMO
[14:54:08] jcutrell: Agreed jhass
[14:54:14] jcutrell: Can you tell me what that is doing?
[14:54:41] jcutrell: &method(:method_name) - is this converting the reference to the method into a proc?
[14:54:42] jhass: >> def foo; 1; end; method(:foo).to_proc
[14:54:43] ruboto: jhass # => #<Proc:0x4191c60c (lambda)> (https://eval.in/368727)
[14:54:57] jhass: >> def foo; 1; end; method(:foo).to_proc.call
[14:54:59] ruboto: jhass # => 1 (https://eval.in/368728)
[14:55:08] maia: has joined #ruby
[14:55:23] jhass: & in a method call calls to_proc on its argument and passes the result as a block to the method
[14:55:28] mrmargolis: has joined #ruby
[14:55:44] jhass: same way &:foo works
[14:55:57] jhass: >> :upcase.to_proc.call("foo")
[14:55:58] ruboto: jhass # => "FOO" (https://eval.in/368729)
[14:55:58] balazs: has joined #ruby
[14:56:07] tuelz: jhass: I was wondering yesterday why you banned swastika because originally that was a peaceful symbol, now I understand.
[14:56:14] tkuchiki: has joined #ruby
[14:56:33] sent1nel: has joined #ruby
[14:56:52] maia: Hello, can someone help me with a regex? I want to remove all numbers surrounded by whitespace from a string (and keep numbers with adjacent alphabetic char)
[14:56:57] jcutrell: jhass: okay, this is starting to make more sense to me.
[14:56:59] jhass: tuelz: yeah, they're of the wrongly interpreting kind
[14:57:06] maia: "123 only remove2 20 30 numbers 1surrounded by whitespace 40".gsub(/(^| )[0-9]+( |$)/, ' ') does not work properly, it keeps a number
[14:57:16] tuelz: maia: the first helpful thing I'll tell you si to visit rubular.com
[14:57:22] tuelz: it's great for playing with ruby regexs
[14:57:28] byprdct: has joined #ruby
[14:57:38] jcutrell: mala what number is getting left behind?
[14:57:39] ddv: rubular website looks ugly as hell
[14:57:47] ndrei: has joined #ruby
[14:57:49] tuelz: ddv: who cares, it works swimmingly
[14:58:02] pdoherty: has joined #ruby
[14:58:18] maia: jcutrell: it returns " only remove2 30 numbers 1surrounded by whitespace "
[14:58:31] chinmay_dd: has joined #ruby
[14:59:05] jcutrell: Ah. Hm. Yeah, rubular.
[14:59:07] maia: tuelz: thanks for the rubular hint. it seems as if I???m having problems with ???overlapping??? matching elements
[14:59:10] ascarter: has joined #ruby
[14:59:37] RegulationD: has joined #ruby
[14:59:55] Channel6: has joined #ruby
[15:00:15] maia: which leaves me somewhat clueless, other than calling gsub repeatedly
[15:00:25] tuelz: maia: \s(\d+)\s will give you a match group that grabs the #'s
[15:00:32] p8952: has joined #ruby
[15:00:52] ascarter: has joined #ruby
[15:00:55] tejasmanohar: has joined #ruby
[15:01:03] RegulationD: has joined #ruby
[15:01:12] jhass: it's "roar"
[15:01:34] adaedra: ACTION flees from battle
[15:01:48] maia: tuelz: your suggestion also has problems if two numbers occur after each other with a single whitespace inbetween
[15:01:55] Hirzu_: has joined #ruby
[15:01:56] juanpaucar: has joined #ruby
[15:02:26] iasoon: has joined #ruby
[15:02:31] dru`: has joined #ruby
[15:02:43] maia: gsub seems to process the string by moving right step by step, so whatever was matched once will be skipped instead of rechecked
[15:02:48] tejasmanohar: anyone here used Chartkick before?http://chartkick.com/
[15:03:08] atmosx: twice IIRC (in two projects)
[15:03:29] adaedra: tejasmanohar: you have a question about it?
[15:04:00] jhass: maia: maybe just match the whitespace too
[15:04:03] tejasmanohar: i'm trying to do a line graph of the users created per day, and it keeps going downwards during the night time since no users were created. i'd like to jsut have a dot above each day and connect dots from one day to another
[15:04:11] tejasmanohar: do you know if thats possible through the lib?
[15:04:23] jhass: maia: [\d ]+ or [\d\s]+
[15:04:37] tejasmanohar: adaedra: atmosx yeah ^
[15:04:45] tubuliferous: has joined #ruby
[15:05:00] tejasmanohar: see what i mean about sweaping down during the night? http://i.imgur.com/5r77muG.png
[15:05:06] tejasmanohar: (these are registrations)
[15:05:07] adaedra: tejasmanohar: reject the days without users
[15:05:12] bronson: has joined #ruby
[15:05:25] tejasmanohar: adaedra: each day has users
[15:05:41] adaedra: s/days/plots/
[15:05:50] atmosx: tejasmanohar: how do you pull the data? can I see the code?
[15:05:56] adaedra: remove the keys that has 0 as values, they will disappear
[15:05:57] havenwood: maia: give a few examples of expected input and desired output?
[15:06:13] tejasmanohar: the graph swoops down b/w may 19 and may 20 since it goes down in the night then back up
[15:06:14] maia: jhass: i think I need to use (^| ) and ( |$) to also match beginning and end of string, so I can???t add that to the middle, can I?
[15:06:17] tejasmanohar: adaedra: atmosx one sec pulling up code
[15:06:41] tejasmanohar: <%= line_chart User.group_by_day(:created_at).count %> atmosx that is all
[15:06:46] jhass: maia: don't think that'll work, my suggestion doesn't work?
[15:06:48] tejasmanohar: (using groupdate gem)
[15:07:18] havenwood: maia: sounds like positive lookahead and lookbehind to me
[15:07:24] maia: havenwood: input: "123 only remove2 20 30 numbers 1surrounded by whitespace 40" shoud return "only remove2 numbers 1surrounded by whitespace"
[15:08:15] maia: jhass: \s will not match beginning or end of string, which I need.
[15:08:27] jhass: havenwood: was my first intuition too, though they want to replace the whitespace too from the look of things
[15:08:47] maia: btw, thanks for your help. I really appreciate it :)
[15:08:48] jhass: >> "123 only remove2 20 30 numbers 1surrounded by whitespace 40".gsub(/(^| )[\d\s]+( |$)/, ' ')
[15:08:49] ruboto: jhass # => " only remove2 numbers 1surrounded by whitespace " (https://eval.in/368735)
[15:08:51] havenwood: >> "123 only remove2 20 30 numbers 1surrounded by whitespace 40".gsub /(?<=\s)\d+\s/, ''
[15:08:52] ruboto: havenwood # => "123 only remove2 numbers 1surrounded by whitespace 40" (https://eval.in/368736)
[15:09:24] thiagovsk: has joined #ruby
[15:09:26] banister: has joined #ruby
[15:09:30] tejasmanohar: atmosx: do you know how id incorporate key 0 logic in this? its just erb
[15:09:46] tejasmanohar: atmosx: (or is this a bad way to do it) cc adaedra
[15:09:52] commondream: has joined #ruby
[15:10:07] atmosx: tejasmanohar: nope, I never used ready-made gems... I just created an array or a hash using a helper and feeded chartkick lib.
[15:10:19] jhass: >> "123 only remove2 20 30 numbers 1surrounded by whitespace 40".gsub(/(^| )[\d\s]+?( |$)/, ' ')
[15:10:20] ruboto: jhass # => " only remove2 30 numbers 1surrounded by whitespace " (https://eval.in/368737)
[15:10:21] adaedra: logic in the view is discouraged, yes
[15:10:22] chipotle: has joined #ruby
[15:10:44] tejasmanohar: atmosx: ah alright chartkick.js lib ?
[15:10:45] maia: jhass: your first version might work
[15:10:58] sanguisdex: has joined #ruby
[15:11:22] jhass: >> "123 only remove2 20 30 numbers 1surrounded by whitespace 40".gsub(/(^ ?+| )[\d\s]+?( | ?+$)/, ' ')
[15:11:23] ruboto: jhass # => " only remove2 30 numbers 1surrounded by whitespace " (https://eval.in/368738)
[15:11:35] User458764: has joined #ruby
[15:11:44] tejasmanohar: "Say Goodbye To Timeouts" - maybe i could do it the way right under that heading on the website http://chartkick.com/
[15:11:45] atmosx: tejasmanohar: you could do that also (if youre more familiar with js than ruby) but nope. You don't really have to do anything apart from creating an array with the values you need to display
[15:11:49] atmosx: tejasmanohar: then display it...
[15:12:18] maia: jhass: seems to be tricky, right?
[15:12:31] jhass: unexpectedly, yes :P
[15:13:16] GaryOak_: has joined #ruby
[15:13:30] tejasmanohar: atmosx: ah i see what you mean... so you would do User.group_by_day and then remove days with 0? i dont understand how thatd solve the issue since no days have 0 for me
[15:13:38] michaeldeol: has joined #ruby
[15:13:39] tuelz: a less elegant soluton would be to just double to whitespace and then use my regex
[15:13:42] someword: has joined #ruby
[15:13:56] tejasmanohar: could also do a bar graph but meh line graph better for over time amitchellbullard
[15:14:32] atmosx: tejasmanohar: I think it will solve the problem, since writing you custom method you can filter out everything but I'm not sure what you wanna do actually.
[15:14:44] startupality: How can I have an URL which doess devise accept invitation token and then redirects to specific url?
[15:14:54] atmosx: tejasmanohar: displaying a graph with users that were added every day, right?
[15:15:19] adaedra: startupality: If I understand correctly, this is something you may want to discuss in #RubyOnRails
[15:15:28] tejasmanohar: atmosx: http://i.imgur.com/5r77muG.png see the points on my graph marked by circles. i wanted to go with straight lines b/w the points
[15:15:45] tejasmanohar: like at different diagonals of course but straight lines from point for day A to day B to day C
[15:15:57] tuelz: startupality: I would think about rephrasing your question there as well, not sure what you're saying :)
[15:16:06] tejasmanohar: no curves in between that show our #s go down in the night
[15:16:06] shevy: adaedra I should hire you to write me some code
[15:16:17] atmosx: tejasmanohar: ah sorry
[15:16:20] nobitanobi: has joined #ruby
[15:16:20] shevy: adaedra do you have a repository of your code online somewhere?
[15:16:25] bootstrappm: has joined #ruby
[15:16:33] Rollabunna: has joined #ruby
[15:16:41] adaedra: shevy: def shevy; puts French.stereotype; end
[15:16:53] tejasmanohar: atmosx: thats not really something to be done via this library i suppose
[15:16:55] tejasmanohar: (in ruby at least)
[15:17:02] shevy: adaedra is this about baguette again?
[15:17:03] atmosx: tejasmanohar: there's no night in the graph
[15:17:06] someword: does anyone have any pointers on how I can refactor the 'get_allergy_list' method https://gist.github.com/anonymous/eafd25256451b62747f8 - I'm thinking it should be smaller and maybe only have 1 way out instead of the guard return at the top. I'm not sure what the next step would be in pulling it apart. TIA
[15:17:06] MatthewsFace: has joined #ruby
[15:17:07] adaedra: shevy: and my github is not hard to find.
[15:17:08] bootstrappm: accidentally at work an hour early today :/
[15:17:16] shevy: adaedra link?
[15:17:17] havenwood: bootstrappm: g'mornin
[15:17:35] shevy: bootstrappm how can you came too early to work
[15:17:38] atmosx: tejasmanohar: In may 14 you had 0 new users..
[15:17:39] adaedra: shevy: adaedra
[15:17:45] startupality: @tuelz ok, it means how can I reformat this link ???"users/invitation/accept?invitation_token=XK6c-3tYfRBafX5zxTHR??? so that it redirects to specific relative URL after invitation accept????
[15:17:49] shevy: adaedra I click on it but nothing happens
[15:17:52] atmosx: tejasmanohar: or your DB apparently says so.
[15:18:09] tejasmanohar: oh hm possible actually i was just developing it then
[15:18:12] tejasmanohar: wiped it maybe :P
[15:18:19] tejasmanohar: i misunderstood my own data, sorry atmosx
[15:18:25] tejasmanohar: let me do a filter by after date X
[15:18:31] bootstrappm: gf gave me a new watch in my sleep, I asked her the time and set it. In my drowsiness I think I set it wrong ... when I got to work it turns out its an hour early hahaha
[15:18:32] adaedra: startupality: yep, see with #RubyOnRails or devise channel if there is one.
[15:18:53] bootstrappm: someword I'll take a look right now
[15:18:56] tuelz: startupality: you wouldn't modify that link at all, you would modify the code executed when you follow that link.
[15:18:57] adaedra: bootstrappm: one more hour to be productive !
[15:19:06] bootstrappm: you speak the truth! (dance)
[15:19:34] jhass: >> "123 only remove2 20 30 numbers 1surrounded by whitespace 40".gsub(/(?:^[\d\s]+| [\d\s]+(?= )| [\d\s]+$)/, '') # maia
[15:19:34] bootstrappm: we have sprint review today too in a few hours so will def make use of it!
[15:19:35] ruboto: jhass # => "only remove2 numbers 1surrounded by whitespace" (https://eval.in/368740)
[15:19:42] GaryOak_: A lot of my methods are one or two lines long and/or database interface code, is it reasonable to write tests for them?
[15:19:48] tuelz: startupality: as adaedra has suggested though, tons of people use devise in #rubyonrails
[15:19:52] jhass: maia: too many edge cases :P
[15:20:26] swerter: has joined #ruby
[15:20:33] axisys: has joined #ruby
[15:20:34] startupality: has joined #ruby
[15:20:38] greylurk: has joined #ruby
[15:20:49] maia: jhass: hmm. well my goal is to extract 'real' words from a string (to put them into a dictionary), so I want to remove anything that???s only a number.
[15:20:51] greylurk: has left #ruby: ()
[15:21:06] maia: jhass: and I???m struggling with a similar problem: removing single letter words from a string
[15:21:10] jhass: maia: uh, so instead of blacklist, why not whitelist?
[15:21:12] chipotle: has joined #ruby
[15:21:17] tuelz: maia: that's quite a bit different than removing numbers surrounded by spaces :p
[15:21:52] commondream: has joined #ruby
[15:22:13] maia: hmm. I???d have to think about a regex that whitelists anything that has at least 2 chars and at least one of them is alphabetical.
[15:22:18] Synthbread: is there a Hash method that would do something like this? a = {a: 1, b: 2}; b = a.that_method(:a); (a would then be {b: 2} and b would be {a: 1})
[15:22:28] commondream: has joined #ruby
[15:22:31] jhass: >> "123 only remove2 20 30 numbers 1surrounded by whitespace 40".scan(/[\w\d]+\w[\w\d]*/)
[15:22:32] ruboto: jhass # => ["123", "only", "remove2", "20", "30", "numbers", "1surrounded", "by", "whitespace", "40"] (https://eval.in/368741)
[15:22:41] Synthbread: like a "mutable slice", per se
[15:22:46] Synthbread: I'm doing this in rails, if it matters
[15:22:47] rdar: has joined #ruby
[15:23:18] pokui_: has joined #ruby
[15:23:23] icebourg: has joined #ruby
[15:23:36] maia: jhass: add 'e g ' to the string somewhere it you want to make it even more complicated, because /(^| ).( |$)/ fails at that too.
[15:23:43] jhass: >> "123 only remove2 20 30 numbers a 1surrounded by whitespace 40".scan(/\w+\p{Alpha}\w*/) # maia
[15:23:44] ruboto: jhass # => ["only", "remove2", "numbers", "1surrounded", "by", "whitespace"] (https://eval.in/368742)
[15:23:47] adaedra: >> a = {a: 1, b: 2}; b = a.shift
[15:23:48] ruboto: adaedra # => [:a, 1] (https://eval.in/368743)
[15:23:59] adaedra: >> a = {a: 1, b: 2}; b = Hash[a.shift]; [a, b]
[15:24:00] pokui_: hi all, was ARGF (http://ruby-doc.org/core-2.0.0/ARGF.html) deprecated in 2.2.2 ? if so what's the "newly improved" way to do this?
[15:24:00] ruboto: adaedra # => /tmp/execpad-05555cab9182/source-05555cab9182:2: warning: wrong element type Symbol at 0 (expected a ...check link for more (https://eval.in/368744)
[15:24:14] adaedra: >> a = {a: 1, b: 2}; b = Hash[[a.shift]]; [a, b]
[15:24:15] ruboto: adaedra # => [{:b=>2}, {:a=>1}] (https://eval.in/368745)
[15:24:24] jhass: maia: any case I missed in my last one?
[15:24:28] adaedra: Synthbread: ^
[15:25:03] maia: jhass: oh, that looks good. I???m not yet sure how that regex really works, but it looks promising
[15:25:09] adaedra: (Sorry for the noise everyone, I'd have thought it worked on first case :x )
[15:25:27] DexterLB: has joined #ruby
[15:25:33] Cache_Money: has joined #ruby
[15:25:52] jhass: maia: mh, it'll fail things like a1
[15:25:53] maia: jhass: (plus I???d want to keep it a string, but I could always do a .join(' ') if that makes it easier. poor GC.)
[15:25:55] bootstrappm: someword okay, took a look. I'd say the error check at the top is fine but the recursion is what makes it look convoluted. turn that case / when into an if as there's only one condition and make it iterative
[15:26:34] jhass: (single letter followed by number)
[15:27:15] bootstrappm: relevant if it helps someword: http://stackoverflow.com/questions/159590/way-to-go-from-recursion-to-iteration http://www.refactoring.com/catalog/replaceRecursionWithIteration.html
[15:27:30] maia: jhass: hmm, I would want to keep single letters followed by numbers. (use case: some cities use that logic for subway lines)
[15:27:44] Timba-as: has joined #ruby
[15:27:45] elfuego: has joined #ruby
[15:28:59] jhass: maia: I guess I'd just or it to it, /\w+\p{Alpha}\w*|\p{Alpha}\d/
[15:29:07] shuber_: has joined #ruby
[15:29:14] elfuego: is there a method on ruby array to alternate items in an array equally e.g. tmp [???male???, ???female???]
[15:29:22] tuelz: someword: you seem to be recreating some math operators, too, for instance modulo would get you the remainder
[15:29:35] jhass: elfuego: more examples please
[15:29:46] ruboto: tuelz # => 2 (https://eval.in/368746)
[15:29:56] someword: bootstrappm: first off thanks for the help. Will i end up with an 'else' in my if statement? I'll go read up on iterative and see if i can grok your suggestion.
[15:29:59] ndrei: has joined #ruby
[15:30:00] The_Phoenix: has joined #ruby
[15:30:32] havenwood: >> ['male', 'female', 'other'].cycle.take 5
[15:30:33] ruboto: havenwood # => ["male", "female", "other", "male", "female"] (https://eval.in/368747)
[15:30:35] bootstrappm: yes your case / when / else will turn just into if / else
[15:30:50] elfuego: jhass: if I call tmp.[the method that alternate] it should produce ???male??? ???female??? ???male??? ???female??? ???male??? ???female??? and so on
[15:30:55] speaking1ode: has joined #ruby
[15:30:57] havenwood: elfuego: cycle
[15:31:02] bootstrappm: but that might not be a good suggestion once you implement it iteratively, like will have more conditions at that point
[15:31:24] someword: tuelz: thanks for the tip i'll read up on modulo!
[15:31:38] mrchris: has joined #ruby
[15:31:40] maia: jhass: that looks good. I???ll stick with string.scan(/\w+\p{Alpha}\w*|\p{Alpha}\d/).join(' ') unless I can easily find a way that does not convert to an array inbetween. thanks for your help!
[15:31:52] someword: bootstrappm: thanks again for giving me some direction!
[15:32:25] havenwood: Synthbread: I don't get what your `:a` argument is supposed to mean in your psudo code.
[15:32:42] Synthbread: havenwood: I figured it out: I needed .extract!
[15:32:55] jhass: maia: if you plan to write that to a file, .scan(...) do |word| io << word << " "; end; might be a tad faster
[15:33:03] havenwood: Synthbread: ahhh
[15:33:03] sent1nel: has joined #ruby
[15:33:04] elfuego: havenwood: thanks
[15:33:09] bmalum: has joined #ruby
[15:33:19] Synthbread: havenwood: :)
[15:33:31] dfockler: has joined #ruby
[15:33:44] The_Phoenix: has joined #ruby
[15:33:54] tuelz: what does a single ampersand do in ruby?
[15:34:01] ruboto: tuelz # => 4 (https://eval.in/368748)
[15:34:03] adaedra: binary and
[15:34:10] tuelz: ahh, yes, brainart
[15:34:12] jhass: tuelz: depends on context, a lot
[15:34:28] tuelz: jhass: yeah, no the to_proc &
[15:34:33] jhass: with two operands it's a method call
[15:34:39] jhass: >> [1, 2] & [2, 3]
[15:34:40] ruboto: jhass # => [2] (https://eval.in/368749)
[15:34:45] tuelz: oh really...weird
[15:34:59] maia: jhass: no, I actually save that regexd version in the db and/or pass this cleaned string on to other classes. I only split it in a single case, but in most cases I need it as string
[15:35:14] ki0_: has joined #ruby
[15:35:36] The_Phoenix: has joined #ruby
[15:36:30] al2o3-cr: elfuego: could also use ["male", "female"] * n
[15:36:42] Rubie: has joined #ruby
[15:36:45] jhass: for small n
[15:36:56] al2o3-cr: jhass: yeah
[15:37:02] The_Phoenix: has joined #ruby
[15:37:39] elfuego: jhass: it uses a very resource intensive algorithm?
[15:38:01] heftig: it's not lazy
[15:38:05] jhass: it allocates an array of size array.size * n
[15:38:10] heftig: [1,2] * 1000 will create a 2000-element array
[15:38:33] The_Phoenix: has joined #ruby
[15:39:03] ki0: has joined #ruby
[15:39:14] havenwood: >> [1, 2].cycle.size
[15:39:14] ruboto: havenwood # => Infinity (https://eval.in/368751)
[15:39:56] heftig: >> [1,2].cycle.count
[15:39:59] ruboto: heftig # => (https://eval.in/368752)
[15:40:01] tesuji_: has joined #ruby
[15:40:06] The_Phoenix: has joined #ruby
[15:40:56] leafybasil: has joined #ruby
[15:41:09] The_Phoenix: has joined #ruby
[15:42:16] The_Phoenix: has joined #ruby
[15:42:54] devoldmx: has joined #ruby
[15:43:32] The_Phoenix: has joined #ruby
[15:44:35] ki0_: has joined #ruby
[15:44:52] The_Phoenix: has joined #ruby
[15:44:58] slawrence00: has joined #ruby
[15:45:42] The_Phoenix: has joined #ruby
[15:45:45] C1V0: has joined #ruby
[15:47:25] djbkd: has joined #ruby
[15:48:20] speaking1ode: has joined #ruby
[15:49:41] macmartine: has joined #ruby
[15:49:52] tekacs: has joined #ruby
[15:51:01] x1337807x: has joined #ruby
[15:51:09] GriffinHeart: has joined #ruby
[15:52:27] Matthews_: has joined #ruby
[15:53:07] qwertme: has joined #ruby
[15:53:33] ddarkpassenger: has joined #ruby
[15:53:41] coderhs: has joined #ruby
[15:54:00] startupality: has joined #ruby
[15:55:22] Spami: has joined #ruby
[15:55:36] finisherr: has joined #ruby
[15:56:18] HOLOHOAX: has joined #ruby
[15:56:32] HOLOHOAX: can a for loop be nested inside an if statement?
[15:57:12] budak-baik: has joined #ruby
[15:57:20] waxjar: HOLOHOAX: we don't use for loops :p
[15:57:48] waxjar: we have the each method! :D
[15:58:03] HOLOHOAX: but isn't for each a for loop?
[15:58:16] HOLOHOAX: item.each.do?
[15:58:21] HOLOHOAX: item.each do
[15:58:33] HOLOHOAX: isn't that a loop though?
[15:58:37] waxjar: similar, yes
[15:59:42] HOLOHOAX: how would i do something like "if #{input} includes #{string} " //execute the following code for the number of iterations
[15:59:59] sigurding: has joined #ruby
[16:00:35] finisherr: has joined #ruby
[16:00:40] jottr: has joined #ruby
[16:00:46] casadei: has joined #ruby
[16:00:59] waxjar: collection.select { |string| string.include?(other_string) }.each { |filtered_strings| ... }
[16:01:57] havenwood: HOLOHOAX: for loops leak variables and aren't idiomatic so we just don't use them
[16:02:09] jhass: I think they meant if input.include? other_string; collection.each do |item| ... end; end; or perhaps N.times do ... end
[16:02:20] HOLOHOAX: can i use javascript with ruby?
[16:02:32] havenwood: HOLOHOAX: You can use any language with any language, no?
[16:02:33] mrsolo: has joined #ruby
[16:02:39] segfalt: has joined #ruby
[16:02:52] HOLOHOAX: havenwood: i'm new to programming and a complete retard so i really wouldn't know
[16:02:57] jhass: HOLOHOAX: if you show what you have tried so far, what you want to do might become a bit clearer
[16:03:51] shevy: holohoax is a cool nick
[16:03:52] havenwood: HOLOHOAX: Are you actually trying to do something with Ruby and Javascript or just asking to learn?
[16:03:54] The_Phoenix: has joined #ruby
[16:04:30] HOLOHOAX: i'm using javascript to make a search app
[16:04:31] shevy: HOLOHOAX you can try to write ruby, and have it generate javascript - see "opal" http://opalrb.org/
[16:05:04] haxrbyte: has joined #ruby
[16:05:32] wjimenez5271: has joined #ruby
[16:06:00] HOLOHOAX: thanks shevy...
[16:06:04] HOLOHOAX: i'm confused on how it works
[16:06:28] ascarter: has joined #ruby
[16:06:32] kenneth: has joined #ruby
[16:06:33] The_Phoenix: has joined #ruby
[16:06:51] adaedra: HOLOHOAX: it REALLY depends what you want to do
[16:07:13] cassianoleal: given an Array of Hashes, how do I find the hash with the greatest value given an arbitrary key? e.g. from [ { :a => 5 }, { :b => 10 } ], I want to return { :b => 10 }
[16:07:22] HOLOHOAX: well i would like to make a search thing in javascript because i don't know enough ruby
[16:08:01] The_Phoenix: has joined #ruby
[16:08:01] adaedra: HOLOHOAX: but how? On a webpage? What will the JS part do? What will the Ruby part do? How will they interract? You don't give enough information
[16:08:31] adaedra: cassianoleal: Hashes are enumerables
[16:08:45] HOLOHOAX: basically it's a prompt that keeps going to infinity unless the user types a name that's in the object array or the user hits cancel
[16:09:13] jhass: cassianoleal: nested .max_by
[16:09:21] HOLOHOAX: when the user types a name that's in the list javascript will write to the webpage showing everything inside the object
[16:09:29] jhass: adaedra: their example doesn't need it
[16:09:46] chipotle: has joined #ruby
[16:10:04] adaedra: HOLOHOAX: so you have a webpage in Javascript, I suppose the ruby part is the backend called by your page ?
[16:10:08] jhass: but I didn't assume actually single element hashes
[16:10:29] HOLOHOAX: adaedra: i was wondering if it would be better to use it in ruby or javascript
[16:10:31] cassianoleal: adaedra, jhass: thanks, I got it :)
[16:10:37] HOLOHOAX: but if i could use ruby for it i'll use ruby
[16:11:12] jhass: HOLOHOAX: are you building a website?
[16:11:14] adaedra: HOLOHOAX: in a browser, you need javascript at the end, as it can only execute it. But with things like opal, you can write your code in Ruby and obtain JavaScript of it.
[16:11:30] commondream: has joined #ruby
[16:11:36] The_Phoenix: has joined #ruby
[16:11:46] HOLOHOAX: adaedra: opal can make for loops?
[16:11:53] ki0: has joined #ruby
[16:11:59] adaedra: Opal can do what ruby can do
[16:12:10] havenwood: minus the things it can't do
[16:12:11] jhass: I think we're heading in very wrong direction here
[16:12:14] that1guy: has joined #ruby
[16:12:21] jhass: HOLOHOAX: are you building a website?
[16:12:30] atmosx: Where do I found someone for a quick photoshop job
[16:12:32] shevy: HOLOHOAX it's more for ruby->javascript people; it seems as if you are familiar with javascript? so possibly you'd have to learn ruby first
[16:12:33] haxrbyte_: has joined #ruby
[16:12:34] The_Phoenix: has joined #ruby
[16:12:45] shevy: atmosx HANMAC!!!
[16:12:49] HOLOHOAX: thanks shevy
[16:12:54] atmosx: hanmac: ?
[16:13:10] atmosx: hanmac: can you isolate 'me' from a pretty complex bg? ... isn't hanmac a ruby prog?
[16:13:13] HOLOHOAX: this is for a fun site it's nothing professional
[16:13:34] HOLOHOAX: i'm not getting paid for this... i'm still a complete retard so i'm not good yet
[16:13:36] adaedra: atmosx: people may be able to do more than one thing
[16:13:43] adaedra: HOLOHOAX: you know ruby?
[16:13:46] jhass: HOLOHOAX: javascript performs best for the code that runs in the browser, ruby performs best for code that runs on your server
[16:13:48] shevy: atmosx I think for some icons or logos, in some of ruby-projects, designers were asked to do something; like the pry logo https://goo.gl/x0muc5
[16:13:59] shevy: hanmac is creative
[16:14:03] aryaching: has joined #ruby
[16:14:04] shevy: he can program the thing in ruby
[16:14:04] HOLOHOAX: thanks jhass
[16:14:13] HOLOHOAX: adaedra: yes i've taken some ruby courses online
[16:14:18] atmosx: shevy: he is not alive apparently :-)
[16:14:31] adaedra: LIEK SO DED
[16:14:40] jhass: HOLOHOAX: you don't mix them into the same program, you write two or more programs that communicate, one in javascript that runs in the browser, one in ruby that runs on the server
[16:15:29] djbkd: has joined #ruby
[16:15:54] HOLOHOAX: jhass: that sounds complicated... where can i learn more about this stuff?
[16:16:23] adaedra: HOLOHOAX: you usually learn them separately
[16:16:41] adaedra: Learn some ruby, then learn how to do web applications with it, learn javascript
[16:16:41] jhass: and then you learn a bit about what HTTP is
[16:16:49] x1337807x: has joined #ruby
[16:16:54] adaedra: How a browser works
[16:17:45] jhass: that said you can write your server program in javascript too, for example using nodejs, it's still a separate program from the one that runs in your browser. And if you had a Ruby program running on your server it would be separate from that too
[16:18:04] adaedra: web development is a complex topic
[16:18:19] adaedra: why do everyone try to start this way >_>
[16:18:26] havenwood: HOLOHOAX: If you want a little magic, try making a little Volt app: http://voltframework.com/
[16:18:59] HOLOHOAX: havenwood: why are there so many frameworks?
[16:19:00] jhass: adaedra: because it's the most intriguing. I got into programming because I wanted to find out how to make these "homepage" things
[16:19:08] havenwood: adaedra: The web is a sick joke... But part of the joke I think is that we're supposed to pretend it's normal and we're okay with it!
[16:19:14] livcd: has joined #ruby
[16:19:20] adaedra: havenwood: unfortunately
[16:19:30] adaedra: jhass: yes, but it's a so wrong way
[16:19:35] maia: jhass: following up with your suggested regex: scan(/\w+\p{Alpha}\w*|\p{Alpha}\d/) it will split words with a '-', which I don???t want. using scan(/\w+-?\p{Alpha}-?\w*|\p{Alpha}-?\d+/) will work for words with one '-', but not with more.
[16:19:37] tuelz: adaedra: because most of us don't want to be programmers, we want to be problem solvers
[16:19:48] maia: jhass: e.g. "song-contest-euphoria".scan(/\w+-?\p{Alpha}-?\w*|\p{Alpha}-?\d+/) => ["song-contest", "euphoria"]
[16:20:00] dfockler: solving problems is boring, I want to learn new things
[16:20:01] chinmay_dd: has joined #ruby
[16:20:22] livcd: uhm if i send a SQL query how should i check if it was successful ?
[16:20:27] rippa: has joined #ruby
[16:20:33] tuelz: dfockler: you're in the minority, not that there is anything wrong with that
[16:20:39] maia: jhass: any idea how to handle - properly?
[16:20:44] adaedra: I want to try things
[16:20:52] jhass: maia: \w is short for [a-zA-Z0-9_], [\w\-] is valid and equivalent to [a-zA-Z0-9_\-]
[16:21:03] adaedra: why do you \ your - ?
[16:21:08] jhass: adaedra: for clarity
[16:21:09] bronson: has joined #ruby
[16:21:44] jhass: it's additional knowledge I didn't want to require right now
[16:22:04] HOLOHOAX: after watching the volt video i am now more confused than i was before watching it :(
[16:22:19] adaedra: HOLOHOAX: it's okay, it's maybe too 'high level'
[16:22:28] adaedra: HOLOHOAX: begin small
[16:22:45] HOLOHOAX: adaedra: you mean low level right? this is computer science after all ;)
[16:22:49] tuelz: HOLOHOAX: webdev is tough, but it's about the simplest platform you'll find for solving real problems. I encourage starting with webdev for most people because if you're not excited about what you're building you'll be bored to tears
[16:22:57] adaedra: Eeeeeeeeeeer
[16:23:26] livcd: can i ever be sure that executed sql was successful ?
[16:23:29] jhass: adaedra: I fear you're pretty alone with your opinion there :P
[16:23:36] adaedra: jhass: which one?
[16:23:46] livcd: i do not really care about the data consistency but only if it went through and db threw an error or not
[16:23:48] tuelz: livcd: sure, write tests against the results to confirm they are what you expect.
[16:23:49] jhass: adaedra: that web dev is the devil for newbies
[16:23:56] Rubie: has joined #ruby
[16:23:56] HOLOHOAX: tuelz: webdev as in web development?
[16:24:01] tuelz: HOLOHOAX: yup
[16:24:24] livcd: tuelz: well so i guess i have to handle that manually
[16:24:29] jhass: livcd: a sane DBMS will tell you, a sane client for that DBMS will (have a way to) signal it
[16:24:31] dfockler: HTML is simple, CSS is 'simple', JS is 'simple', Webdev is not
[16:24:41] HOLOHOAX: what should i start with i am already signed up on teamtreehouse.com and i already did the rails stuff and front end web stuff on there
[16:24:49] adaedra: Webdev requires you to learn so many thing at the same time
[16:24:49] tuelz: livcd: well a computer can't guess the results you want.
[16:24:53] HOLOHOAX: where should i go from there? like which site or books or what should i do?
[16:25:14] dfockler: HOLOHOAX: depends what you want to accomplish
[16:25:20] livcd: tuelz: i don't care about the consistency of results i just want to know if (true = sql was executed) or (false = something happened)
[16:25:21] tuelz: HOLOHOAX: find a website you think is cool and try to rebuild the simplest version of that website you can imagine.
[16:26:06] jimms: has joined #ruby
[16:26:13] jhass: HOLOHOAX: building something you want to build and learning the part you need the moment you need it is a good approach, though if you have to ask whether you can nest control structures, maybe go back to the ruby course once more
[16:26:25] tuelz: livcd: then jhass has already answered your question, if you want a more specific answer you'll need to give more specifics about your rmdbs
[16:26:42] Mia: has joined #ruby
[16:26:42] Mia: has joined #ruby
[16:26:52] maia: jhass: thanks, this did the trick: scan(/[\w\-]+\p{Alpha}-?\w*|\p{Alpha}-?\d+/)
[16:27:03] cirn0: has joined #ruby
[16:27:05] HOLOHOAX: jhass: i'll do that!
[16:27:18] livcd: tuelz: the rdbms would be oracle..and a client i imagine a ruby's dbi ?
[16:27:19] jhass: maia: yup, that's what I wanted to steer you to ;)
[16:27:48] HOLOHOAX: i wish programming was easier
[16:27:53] tuelz: livcd: ruby doesn't have an oracle dbi in its stdlib as far as I know.
[16:27:54] maia: jhass: thanks for steering me! ;)
[16:28:24] livcd: tuelz: oh
[16:29:14] havenwood: livcd: https://github.com/jeremyevans/sequel#sequel-the-database-toolkit-for-ruby
[16:29:23] jhass: maia: as a little aside, at the start and the end of a character group, - doesn't need to be escaped, since it can't mean to signal a range, [\w-] is actually the same
[16:30:01] tuelz: livcd: yeah, you'll need to pick out a dbi and then tell us which one you've chosen - like I said, ruby doesn't ship with one
[16:30:15] x1337807x: has joined #ruby
[16:30:17] jhass: maia: that said it doesn't harm to escape it if that makes it clearer for you
[16:30:20] tuelz: sequel is nice - if you're doing rails activerecord is what you'll be using
[16:30:44] dfockler: Can't say enough great things about the Sequel gem
[16:31:24] Jarboe: has joined #ruby
[16:31:31] maia: jhass: the more I try to understand regex, the happier I???m not having learned perl. it can do a lot, but it isn???t really fun. :)
[16:31:35] livcd: well be it rails or sinatra
[16:31:37] havenwood: Jeremy Evans' gems are golden.
[16:31:46] havenwood: livcd: Roda with Sequel. :)
[16:32:03] tuelz: pakyow with sequel is where the cool kids are at
[16:32:03] havenwood: livcd: http://roda.jeremyevans.net/
[16:32:07] jhass: maia: http://regexcrossword.com/ for a fun way to gain some routine ;)
[16:32:21] havenwood: tuelz: Roda or Lotus with ROM ;P
[16:32:52] livcd: havenwood: oh so that's like sinatra ?
[16:32:58] tuelz: havenwood: or....pakyow with sequel
[16:34:28] tuelz: jhass: regex and fun do not belong in the same sentence :p
[16:34:39] cirn0_: has joined #ruby
[16:35:07] baweaver: has joined #ruby
[16:35:08] n008f4g_: has joined #ruby
[16:35:09] havenwood: livcd: Yeah, inspired in part by Sinatra.
[16:36:10] dfockler: Still hanging out with sinataa
[16:36:55] yuciyuar: has joined #ruby
[16:36:55] dudedudeman: i love sinatra!
[16:37:12] dfockler: the singer or the framework?
[16:37:25] dudedudeman: the framework that pays homage to the singer
[16:37:46] dfockler: It's alright
[16:37:55] dudedudeman: for what it is, it does work
[16:38:55] moted: has joined #ruby
[16:39:02] mjuszczak: has joined #ruby
[16:39:53] tubuliferous_: has joined #ruby
[16:39:54] shevy: for what dudedudeman is, he does work
[16:39:55] GriffinHeart: has joined #ruby
[16:40:24] mjuszczak: has joined #ruby
[16:41:42] qwertme: has joined #ruby
[16:42:04] cajone: has joined #ruby
[16:43:14] tejasmanohar: has joined #ruby
[16:43:15] tuelz: for what I am something something
[16:44:09] jhass: for what I am I accidentally the cat
[16:44:32] michaeldeol: has joined #ruby
[16:45:54] shuber_: has joined #ruby
[16:46:47] cirn0: has joined #ruby
[16:47:18] baroquebobcat: has joined #ruby
[16:47:41] kedibasi: has joined #ruby
[16:48:07] dfockler: I should learn Rails
[16:48:13] dfockler: so I can get a new job
[16:49:04] commondream: has joined #ruby
[16:50:25] diegoviola: has joined #ruby
[16:50:49] Parker0: has joined #ruby
[16:51:24] livcd: so do you guys have some examples of good sinatra apps ?
[16:52:07] macmartine: has joined #ruby
[16:52:09] fabrice31: has joined #ruby
[16:52:21] Zamyatin: has joined #ruby
[16:52:35] dfockler: http://www.sinatrarb.com/wild.html
[16:54:06] giuseppesolinas: has joined #ruby
[16:54:09] dfockler: Not sure how 'good' they are but they are out there
[16:55:52] Jackneill: has joined #ruby
[16:55:56] bmalum: has joined #ruby
[16:56:27] livcd: except a lot of these apps do not work anymore :P
[16:56:46] heftig: has joined #ruby
[16:56:48] shevy: livecd asked about YOUR examples of working sinatra apps that are also good
[16:56:52] shevy: so show him what you got
[16:56:56] haxrbyte: has joined #ruby
[16:56:56] iliketurtles: has joined #ruby
[16:57:41] livcd: so show me what you got!
[16:57:48] livcd: shevy: damn aye!
[16:57:52] michaeldeol: has joined #ruby
[16:58:09] wildroman2: has joined #ruby
[16:58:10] ascarter: has joined #ruby
[16:58:14] User458764: has joined #ruby
[16:58:28] dfockler: I would, but I'm building internal facing stuff :P
[17:00:12] bronson: has joined #ruby
[17:01:09] wallerdev: has joined #ruby
[17:01:17] towski_: has joined #ruby
[17:02:35] bmurt: has joined #ruby
[17:02:39] wildroman2: has joined #ruby
[17:04:37] cirn0: has joined #ruby
[17:05:04] zotherstupidguy: has joined #ruby
[17:08:42] dreinull75: livcd farhang.im
[17:08:48] dreinull75: I'm building an API for an app that uses a DB. App is closed, DB is open. There are users which I want to use in my API as well but I don't know how the passwords are encrypted. Since I have a user there too I could just try all kinds of hashing methods but maybe someone can help me find out which method might be most successful. One password looks like this: Bj}icd -> slight variation but you get the idea.
[17:10:45] j0n3: has joined #ruby
[17:11:19] nobitanobi: has joined #ruby
[17:12:19] bronson: has joined #ruby
[17:12:43] jokke: i have a very weird problem with rake
[17:13:11] jokke: https://p.jreinert.com/Yd1/ruby
[17:13:31] juanpaucar: has joined #ruby
[17:13:36] jokke: if i run scan_asset_dimensions by itself it works fine
[17:13:51] jokke: if i run import_everything however
[17:14:01] jokke: it hangs at the scan_asset_dimensions task
[17:14:17] jokke: indefinetely
[17:14:53] jokke: any ideas? i can provide additional code snippets when needed
[17:15:09] dfockler: jokke: you should probably repost that snippet somewhere better
[17:15:21] jokke: dfockler: define better
[17:15:37] dfockler: gist, pastie
[17:15:57] jokke: don't see why that's better..
[17:16:15] xxneolithicxx: has joined #ruby
[17:16:32] dfockler: well I get an untrusted cert error on the url you gave me
[17:16:32] jokke: but oh well
[17:16:49] jokke: http://p.jreinert.com/Yd1/ruby
[17:16:52] lkba: has joined #ruby
[17:16:52] jokke: problem solved!
[17:17:34] jokke: that's probably because your distro/os doesn't trust caCert
[17:17:49] shevy: dreinull75 the above is built with sinatra?
[17:18:09] bmalum: has joined #ruby
[17:18:28] affenhoden: has joined #ruby
[17:18:38] shevy: I can not copy paste the character from there ->
[17:19:26] dreinull75: shevy which character?
[17:19:38] dreinull75: yes, farhang.im is built with sinatra
[17:20:09] commondream: has joined #ruby
[17:20:11] affenhoden: has joined #ruby
[17:20:20] shevy: this is the character for a dog
[17:20:29] shevy: hmm let me screenshot
[17:20:33] dstarh: has joined #ruby
[17:20:41] dreinull75: sorry, can't follow
[17:20:49] jbomo: has joined #ruby
[17:20:50] x1337807x: has joined #ruby
[17:21:19] shevy: http://shevegen.square7.ch/CHAR.png
[17:22:05] codecop: has joined #ruby
[17:22:11] jhass: shevy: didn't patch your stuff for UTF-8 yet?
[17:23:30] shevy: I don't need a patch, it's working fine
[17:23:56] dreinull75: works fine here
[17:24:51] xxneolithicxx: i got 3 question marks when shevy did it and the actual symbol when you did it
[17:25:09] shevy: then you need to fix your system xxneolithicxx
[17:25:24] shevy: ohhh a hot coder
[17:25:30] HotCoder: what text editor do you guys/girls use for ruby?
[17:25:48] xxneolithicxx: doesnt matter much to me, i dont care what the symbol means lol
[17:26:11] dfockler: jokke: can't see anything at a glance, did you try changing the order of those last three task invocations?
[17:26:16] shevy: xxneolithicxx yeah, those characters are so esoteric and exotic. why can't they use latin characters
[17:26:36] dreinull75: shevy I got three ??? as well
[17:26:36] jokke: dfockler: i can't
[17:26:46] dfockler: are they dependent?
[17:26:50] jokke: well i can
[17:26:54] jokke: those last three i can
[17:27:14] leafybasil: has joined #ruby
[17:27:19] jokke: well actually search index has to be last
[17:27:54] sent1nel: has joined #ruby
[17:27:55] havenwood: HotCoder: If you're not in the mood to learn emacs or vi give Atom a try: https://atom.io/
[17:28:14] dreinull75: shevy that's actually a good question since persian is basically an indo-germanic language and it makes absolutely no linguistic sense to use a semitic charset.
[17:28:43] tejasmanohar: anyone here used splitrb gem
[17:28:52] dreinull75: tried atom yesterday and couldn't move lines, couldn't navigate and felt totally helpless. Back to vim.
[17:28:53] shevy: no idea really. what I find funny is that distinction in persian/arabian/semitic
[17:28:58] tejasmanohar: ive setup two a/b tests on one page- https://gist.github.com/tejasmanohar/6f9390a0410b0c262015
[17:29:00] HotCoder: im in the mood to learn ruby
[17:29:03] HotCoder: im completely new
[17:29:06] tejasmanohar: the second doesnt seem to opearte at all- http://i.imgur.com/ftVYqwX.png
[17:29:08] HotCoder: whats a starter to do?
[17:29:25] cirn0: has joined #ruby
[17:29:28] shevy: the worst characters are still the chinese symbols
[17:29:30] tejasmanohar: i've refreshed the page multiple times and gone in multiple sessions - diff browsers, incognito etc
[17:29:33] shevy: or perhaps unicode snowman :-)
[17:29:36] dfockler: HotCoder: what would you like to build?
[17:29:49] dreinull75: HotCoder try some sinatra app
[17:29:52] shevy: HotCoder do you mean new to programming altogether - or new to ruby only?
[17:30:07] tejasmanohar: button_color is the one that isnt quite working- see @button_color = ab_test("button_color", 'green', 'orange')
[17:30:09] HotCoder: i just want to learn
[17:30:17] HotCoder: shevy, i've coded in java before
[17:30:19] HotCoder: and node.sj
[17:30:20] tejasmanohar: HotCoder: shevy asks for your background with programming
[17:30:39] lidenskap: has joined #ruby
[17:30:40] tejasmanohar: yeah, and that a/b is never activating
[17:30:54] lidenskap: has joined #ruby
[17:31:08] User458764: has joined #ruby
[17:31:12] tejasmanohar: HotCoder: ive seen you a couple times in #programming and #node.js i think
[17:31:18] HotCoder: yup thats me
[17:31:29] jottr: has joined #ruby
[17:31:37] HotCoder: so what text editor should i use for ruby
[17:31:39] tejasmanohar: anyhow yeah if anyone knows whats wrong with my usage of splitrb help would be greatly appreciated
[17:31:39] HotCoder: or should i go IDE
[17:31:47] tejasmanohar: HotCoder: whatever, i dont use an idea
[17:31:58] shevy: use my idea!
[17:31:59] miah: use whatever you like best
[17:32:00] HotCoder: tejasmanohar, what do u use?
[17:32:07] shevy: I use cats
[17:32:24] tejasmanohar: sometimes vim
[17:32:32] miah: i use vim, my coworkers use vim, emacs, sublime, etc
[17:32:41] Rubie: has joined #ruby
[17:32:42] tejasmanohar: mostly subl in vintage mode
[17:32:45] miah: all of our code works the same way though
[17:32:53] affenhoden: has joined #ruby
[17:32:54] tejasmanohar: yeah ^ that wont help you learn ruby
[17:32:59] miah: because ruby doesnt care which editor you used to write it
[17:33:50] someword: has joined #ruby
[17:34:54] paulcsmith: has joined #ruby
[17:35:12] cirn0: has joined #ruby
[17:35:18] SouL_|_: has joined #ruby
[17:35:18] vickleton: has joined #ruby
[17:36:01] tejasmanohar: yeah so my variant is not being triggered, <p><%= @button_color %></p> always prints green even after clearing browser data
[17:36:58] cosmicexplorer: has joined #ruby
[17:37:23] bootstrappm: has joined #ruby
[17:37:30] finisherr: has joined #ruby
[17:37:40] TheCapacitator_: has joined #ruby
[17:39:32] thumpba: has joined #ruby
[17:40:59] yaw: has joined #ruby
[17:42:33] baroquebobcat: has joined #ruby
[17:43:25] segfalt: has joined #ruby
[17:45:12] kenneth: has joined #ruby
[17:46:10] HotCoder: sublime ill use
[17:46:15] HotCoder: since im familiar with it more
[17:46:18] haxrbyte_: has joined #ruby
[17:47:09] that1guy: has joined #ruby
[17:49:06] _blizzy_: has joined #ruby
[17:50:01] dfockler: tejasmanohar: if you don't restart the server then the value passed to @button_color won't change
[17:52:14] GriffinH_: has joined #ruby
[17:52:21] abuzze: has joined #ruby
[17:52:28] xxneolithicxx: coders and their editors...
[17:52:57] Eiam_: has joined #ruby
[17:53:07] thumpba_: has joined #ruby
[17:53:08] dfockler: until we get past text based programming, that's what we've got
[17:53:21] xxneolithicxx: im surprised they havent devoted a book to the subject
[17:53:23] shevy: computers simply must become smarter
[17:53:49] dfockler: I can imagine smart AI helping developers write code
[17:56:20] io_syl: has joined #ruby
[17:56:34] jhass: heuristics based programming, do what the programmer meant to say. could be fun :D
[17:56:50] shevy: well we'd require a really smart AI first
[17:57:28] shevy: I guess it will be only a matter of time
[17:57:31] jhass: dunno, figuring out natural language processing might be enough
[17:58:55] Elevanto: has joined #ruby
[17:59:33] shevy: babelfish?
[18:00:04] shevy: "japanese good very very yesterday begin to food"
[18:01:12] michaeldeol: has joined #ruby
[18:01:42] eam: too much ambiguity in natural language
[18:02:37] shevy: couldn't a smart AI resolve the ambiguity?
[18:02:37] jottr: has joined #ruby
[18:02:49] dfockler: it would need a lot of data
[18:03:01] rbennacer: has joined #ruby
[18:03:18] xxneolithicxx: thats what the government is funding IBM's Watson for, we will get there and it will be scary
[18:03:19] _xCept: has joined #ruby
[18:04:38] kirun: has joined #ruby
[18:04:49] xxneolithicxx: when AI sees the natural faults in humanity it will deem us inferior and dangerous
[18:04:51] cirn0: has joined #ruby
[18:05:14] x1337807x: has joined #ruby
[18:05:49] Timba-as: has joined #ruby
[18:06:30] shevy: space odyssee
[18:06:34] shevy: HAL was so evil
[18:06:41] shevy: what a cynical and evil computer
[18:06:43] DerisiveLogic: has joined #ruby
[18:07:06] iasoon: has joined #ruby
[18:07:09] shevy: or skynet sending the T1000 terminators to get rid of problematic humans
[18:08:05] DerisiveLogic: has joined #ruby
[18:08:42] NuckFiggers: has joined #ruby
[18:08:52] tejasmanohar: im having an issue in erb like the following https://gist.github.com/tejasmanohar/f02d27886afc78d8bba0
[18:09:00] tejasmanohar: is there any way this can happen
[18:09:06] tejasmanohar: like anything can be thought of to make this happen?
[18:09:19] wildroman2: has joined #ruby
[18:09:23] maia: has joined #ruby
[18:09:28] tejasmanohar: the elsif passes and only half of the block's code seems to run O.o shevy
[18:09:33] iasoon: has joined #ruby
[18:09:34] tejasmanohar: wait nvm didnt mean to tag shevy , sorry
[18:09:54] shevy: oh tag me, I like tags
[18:09:59] NuckFiggers: what is a great place to learn ruby?
[18:10:10] NuckFiggers: i want to learn ruby
[18:10:18] shevy: jhass your divine intervention is requested here
[18:10:24] xxneolithicxx: i like learning ruby under a desk
[18:10:25] tejasmanohar: sorry shevy :P
[18:10:35] shevy: under a desk???
[18:10:55] xxneolithicxx: he asked what is a great place to learn it lol :-P
[18:10:58] iasoon: has joined #ruby
[18:10:59] tejasmanohar: but yeah i have an elsif in erb and it passes and then not all of the 2nd line under the elsif runs
[18:11:01] tejasmanohar: btu the first does
[18:11:06] tejasmanohar: its really weird..
[18:11:10] shevy: nah xxneolithicxx he is the perma-ban troll
[18:11:19] shevy: he was liked banned 10000x before
[18:11:23] tejasmanohar: asked in RoR but no luck ::\\
[18:11:25] jhass: !mute NuckFiggers
[18:11:25] ruboto: +q NuckFiggers!*@*
[18:11:25] ruboto: -o ruboto
[18:11:30] bmurt: has joined #ruby
[18:11:41] tejasmanohar: http://4aac1de5.ngrok.io/?button_color=orange for example
[18:11:50] shevy: I don't know how he can have so much time really, always via webchat
[18:12:12] tejasmanohar: https://gist.github.com/tejasmanohar/db842831b1d72c6a69f9#file-gistfile2-txt-L63
[18:12:34] tejasmanohar: <% elsif @button_color === 'orange' %> passes
[18:12:41] tejasmanohar: <p><%= @button_color %></p> prints <p>orange</p>
[18:12:41] shevy: all those <% make ERB so hard
[18:12:57] tejasmanohar: <input class="signup orange" type="submit" value="Sign Me Up!" /> is printed but WITHOUT the orange
[18:13:02] tejasmanohar: shevy: lol wt
[18:13:08] jenrzzz: has joined #ruby
[18:13:29] shevy: well it is superficial ruby code but with embedded html or?
[18:13:35] shevy: or the reverse
[18:13:53] tejasmanohar: shevy: hm it is ruby code embedded in html...?
[18:13:57] tejasmanohar: no question mark
[18:14:01] tejasmanohar: it is ruby code embedded in html
[18:14:12] tejasmanohar: it is RoR app, see controller in file above
[18:14:19] shevy: I opted to just have ruby generate a html string
[18:14:48] xxneolithicxx: ERBs are cool, i use them for populating XML templates
[18:15:05] arietis1: has joined #ruby
[18:15:11] tejasmanohar: http://4aac1de5.ngrok.io/?button_color=orange
[18:15:15] tejasmanohar: so that's the code ^
[18:15:18] tejasmanohar: other one is the gist
[18:15:25] tejasmanohar: **that's the live URL
[18:15:27] tejasmanohar: other one is the code
[18:15:29] tejasmanohar: *gist is the code
[18:15:37] tejasmanohar: ACTION questions his sanity today
[18:16:12] dopie: has joined #ruby
[18:16:31] xxneolithicxx: I get signup organge for class unless i dont understand what your problem is
[18:16:44] tejasmanohar: xxneolithicxx: wait what
[18:16:51] postmodern: has joined #ruby
[18:17:00] lidenskap: has joined #ruby
[18:17:01] tejasmanohar: <input class="signup orange" type="submit" value="Sign Me Up!" /> oh wtf
[18:17:04] xxneolithicxx: CTRL+F5 and refresh your page
[18:17:06] tejasmanohar: it changed i swear
[18:17:09] tejasmanohar: ok yeah thats prob it
[18:18:00] fmcgeough: has joined #ruby
[18:18:49] jhass: tejasmanohar: mmh, I didn't see you state that you crossposted
[18:19:14] gusrub: has joined #ruby
[18:19:15] A205B064: has joined #ruby
[18:19:42] iasoon: has joined #ruby
[18:19:50] soulcake: has joined #ruby
[18:20:54] shevy: LET'S PLAY HANGMAN - WITH HIM ON THE CROSS!
[18:21:30] lkba_: has joined #ruby
[18:21:34] doodlehaus: has joined #ruby
[18:22:16] tejasmanohar: jhass: sorry, i did cancel my question there saying its covered
[18:22:59] dfockler: 4.5 hours left of work X(
[18:23:05] jhass: tejasmanohar: just keep in mind that crosspost is only tolerated if you inform both channels about it and relay help given to either side
[18:23:21] sinequanon: has joined #ruby
[18:23:40] towski_: has joined #ruby
[18:24:19] gizmore: has joined #ruby
[18:24:24] baweaver: has joined #ruby
[18:24:39] tejasmanohar: xxneolithicxx: not working tho, http://i.imgur.com/wgcoKZo.png
[18:24:55] tejasmanohar: http://4aac1de5.ngrok.io/ if you open this without the query param as much as you want it never shows orange
[18:25:00] tejasmanohar: in incognito etc
[18:25:54] iasoon: has left #ruby: ("WeeChat 1.2")
[18:26:16] tejasmanohar: xxneolithicxx: https://gist.github.com/tejasmanohar/db842831b1d72c6a69f9
[18:26:24] ramfjord: has joined #ruby
[18:26:24] tejasmanohar: this is crazy weird
[18:28:29] tejasmanohar: xxneolithicxx: see what i mean or no ?
[18:28:52] xxneolithicxx: no because when i add the ?button_color param it works as expected or as coded
[18:29:03] tejasmanohar: dont add ?button_color
[18:29:10] tejasmanohar: that forces it to
[18:29:23] tejasmanohar: if you jsut open the root url and open it in incognito a few times or however many youll never get orange
[18:29:32] tejasmanohar: my data shows it http://i.imgur.com/kuluPg7.png
[18:30:17] x1337807x: has joined #ruby
[18:30:40] tejasmanohar: youll see different variations of my callout media yt vid / iphone if you open different seesssions (incognito)
[18:30:44] tejasmanohar: but no not color
[18:31:20] cirn0: has joined #ruby
[18:31:44] casadei: has joined #ruby
[18:32:24] xxneolithicxx: no idea, i dont use ruby for much dynamic web programming like that (thats why im a backend dev, i hate web programming)
[18:32:27] sent1nel: has joined #ruby
[18:32:33] User458764: has joined #ruby
[18:32:58] hololeap: has joined #ruby
[18:33:45] jimms_: has joined #ruby
[18:34:07] jpfuentes2: has joined #ruby
[18:34:57] cirn0: has joined #ruby
[18:35:03] jpfuentes2: anyone here awesome at debugging running ruby processes? i'm trying to fire up a gdb session on a running server. it's a multi-threaded puma worker. `t a a bt` then a `call rb_backtrace()` segfaults
[18:36:07] tejasmanohar: anyhow if someone heres used splitrb please ping me ;)
[18:36:38] hsps_: has joined #ruby
[18:37:01] shuber_: has joined #ruby
[18:37:53] noraesae: has joined #ruby
[18:39:58] finisherr: has joined #ruby
[18:41:05] fabrice31: has joined #ruby
[18:41:30] pengin: has joined #ruby
[18:41:46] hardlin3r: has joined #ruby
[18:43:01] jimms: has joined #ruby
[18:44:32] dreinull75: encoding horrors
[18:44:48] ruboto: dreinull75 # => /tmp/execpad-8e8fc3aa1fbc/source-8e8fc3aa1fbc:2: syntax error, unexpected '>' ...check link for more (https://eval.in/368815)
[18:44:54] havenwood: UTF-8 ALL THE THINGS \o/
[18:44:58] baweaver: has joined #ruby
[18:44:59] ruboto: dreinull75 # => "\x84" (https://eval.in/368816)
[18:45:11] dreinull75: how do I get ???
[18:45:27] havenwood: >> '??'.ord
[18:45:28] ruboto: havenwood # => 228 (https://eval.in/368817)
[18:45:30] jenrzzz: has joined #ruby
[18:45:34] deric_skibotn: has joined #ruby
[18:46:10] mjuszczak: has joined #ruby
[18:46:12] shuber_: has joined #ruby
[18:46:41] dreinull75: havenwood I'm assuming ascii
[18:46:53] havenwood: dreinull75: ;)
[18:47:01] ruboto: dreinull75 # => "\xE4" (https://eval.in/368818)
[18:47:01] shevy: <dreinull75> encoding horrors
[18:47:05] shevy: my word man! \o/
[18:47:26] shevy: encoding NEVER gets better
[18:47:28] shevy: it only gets worse
[18:48:04] j0n3: has joined #ruby
[18:49:39] tak1n: has joined #ruby
[18:49:51] Azure: has joined #ruby
[18:50:21] dfockler: because everyone does it differently!
[18:51:37] kadoppe: has joined #ruby
[18:53:21] tuelz: has joined #ruby
[18:53:50] OtterCoder: has joined #ruby
[18:53:54] havenwood: >> [228].pack 'U'
[18:53:55] ruboto: havenwood # => "??" (https://eval.in/368820)
[18:53:56] segfalt: has joined #ruby
[18:54:38] apeiros: >> "\u00e4"
[18:54:39] ruboto: apeiros # => "??" (https://eval.in/368821)
[18:54:49] ruboto: wallerdev # => "??" (https://eval.in/368822)
[18:54:52] havenwood: dreinull75: ^
[18:55:22] dreinull75: >> 132.pack('U*')
[18:55:23] ruboto: dreinull75 # => undefined method `pack' for 132:Fixnum (NoMethodError) ...check link for more (https://eval.in/368823)
[18:55:29] havenwood: dreinull75: Array
[18:55:37] dreinull75: >> [132].pack('U*')
[18:55:38] ruboto: dreinull75 # => "\u0084" (https://eval.in/368824)
[18:55:57] horsecowdog: has joined #ruby
[18:56:02] dreinull75: havenwood apeiros that works only outside irb, figured that out too
[18:56:13] jpfuentes2: anyone here awesome at debugging running ruby processes? i'm trying to fire up a gdb session on a running server. it's a multi-threaded puma worker. `t a a bt` then a `call rb_backtrace()` segfaults
[18:56:19] jhass: >> puts 228.chr
[18:56:20] ruboto: jhass # => ??? ...check link for more (https://eval.in/368825)
[18:56:22] wallerdev: >> [105, 32, 108, 111, 118, 101, 32, 114, 117, 98, 121].pack('C*')
[18:56:23] ruboto: wallerdev # => "i love ruby" (https://eval.in/368826)
[18:56:24] yeticry: has joined #ruby
[18:57:00] mjuszczak: has joined #ruby
[18:57:03] jhass: jpfuentes2: can't just spawn a (remote) pry?
[18:57:14] mrmargolis: has joined #ruby
[18:57:15] apeiros: dreinull75: what do you mean, "works only outside irb"?
[18:58:25] dreinull75: apeiros oh, does work, somehow
[18:58:46] dreinull75: but not the full ascii table. That one only works in my regular terminal runbning it from a file
[18:59:22] jpfuentes2: jhass haven't tried/thought about it. is it likely to work in a multi-threaded process?
[18:59:37] apeiros: dreinull75: again, what does "work" mean?
[18:59:46] apeiros: "work" is an utterly useless description. can mean anything and nothing.
[19:00:01] jhass: jpfuentes2: jumping threads won't work afaik, but if you have a point you want to break on it'll work well
[19:00:04] dreinull75: sorry gotta go, bells ringing
[19:00:15] ruboto: tejasmanohar # => "test" ...check link for more (https://eval.in/368827)
[19:00:19] jpfuentes2: got it, thanks
[19:00:23] tejasmanohar: oh ok so its here and ##javascript
[19:01:22] startupality: has joined #ruby
[19:01:51] havenwood: tejasmanohar: hrm?
[19:01:57] shevy: he says where he asks a question
[19:02:05] shevy: jhass made him do so
[19:02:12] x1337807x: has joined #ruby
[19:02:19] dudedudeman: spreaking of javascript, i have a question regarding it for your rubyists
[19:02:24] havenwood: shevy: ahh, gotcha - thought it was a mystery related to: p 'test'
[19:02:33] shevy: a javascript question
[19:02:42] dfockler: dudedudeman: yes ruby isn't javascript
[19:02:48] DEA7TH: has joined #ruby
[19:02:48] dudedudeman: dammit. i didn't know
[19:02:50] Oka: has joined #ruby
[19:03:08] wallerdev: baweaver: mobowl at 5th and minna today, maybe ill try it :p
[19:03:25] dudedudeman: no, i'm just curious about how you guys learned js. did you start doing ruby work, and learn as you went for the times you needed it? or did you take some dedicated time and work on javascript and only javascript so you could learn it
[19:05:20] gusrub: has joined #ruby
[19:05:37] baweaver: dudedudeman: Thrown into the fire style
[19:05:41] bhaak: has joined #ruby
[19:05:43] wasamasa: dudedudeman: learn it as you go
[19:05:45] baweaver: we need this jquery thing fixed yesterday
[19:05:52] baweaver: and so began the fun
[19:06:00] havenwood: dudedudeman: Humm really loudly, close your eyes and pretend it doesn't exist.
[19:06:04] havenwood: dudedudeman: http://opalrb.org/
[19:06:05] wasamasa: dudedudeman: I started writing greasemonkey scripts
[19:06:08] dudedudeman: LA LA LA LA LA LA
[19:06:15] havenwood: dudedudeman: yup
[19:06:20] baweaver: I would really spend dedicated time learning it though at some point later.
[19:06:31] baweaver: As much hate as it gets, it's not that bad of a language.
[19:06:32] dudedudeman: and I've looked in to opal. i still think it would be better to at least learn some of hte fundamentals, first... but i'm weird?
[19:06:47] baweaver: sure, it has warts, but the good parts far and outweigh it
[19:06:59] wasamasa: dudedudeman: you'll need to do that for any language compiling to a different one
[19:07:00] dudedudeman: i've got some of it, and my wife got me this sweet book about it for christmas that i love
[19:07:05] wasamasa: dudedudeman: so these are a mixed bag
[19:07:09] havenwood: baweaver: Stockholm syndrome? :P
[19:07:09] mrchris: has joined #ruby
[19:07:17] wasamasa: dudedudeman: see clojure and java for a more popular example
[19:07:21] baweaver: havenwood: No, that's Chef :P
[19:07:27] havenwood: baweaver: hehe
[19:07:32] wasamasa: dudedudeman: you'll need to learn at the very least about the java ecosystem
[19:07:40] shevy: beavers only hate one thing in their life
[19:07:45] havenwood: wasamasa: hah
[19:07:52] baweaver: Trees and Java
[19:07:56] miah: i agree with chef == stockhold syndrome
[19:07:58] Vile`: has joined #ruby
[19:08:01] wasamasa: dudedudeman: and that's not nice, no matter what their evangelists keep telling me :P
[19:08:14] dudedudeman: ugh, not want
[19:08:17] baweaver: All management frameworks rely on Stockholme
[19:08:18] miah: but most frameworks are about their dogma
[19:08:26] dudedudeman: ACTION not want to learn javas. would rather drink javas
[19:08:33] wasamasa: dudedudeman: I'm currently learning clojurescript and practicing js along
[19:08:42] wasamasa: dudedudeman: and it's so sucky to not have proper tools for work
[19:08:59] swgillespie: has joined #ruby
[19:09:02] wasamasa: dudedudeman: I log stuff into the browser console and get homebrew pseudo-objects I can't decipher
[19:09:05] baweaver: While I dislike Java, I can still use it just as well as much of any coder
[19:09:10] vickleton: has joined #ruby
[19:09:18] blackmesa: has joined #ruby
[19:09:38] baweaver: It's kinda like a reverse Stockholme where you become very bitter and resentful towards your captor
[19:09:56] havenwood: baweaver: marriage?
[19:10:03] haxrbyte: has joined #ruby
[19:10:07] tejasmanohar: looks like some new folks here now,... anyone used splitrb?
[19:10:14] baweaver: Not quite that jaded with it ;)
[19:10:26] baweaver: (though it would help if I were married to know that one)
[19:10:36] finisherr: has joined #ruby
[19:10:39] miah: never used splitrb because i dont really rails
[19:11:31] baweaver: Probably better to ask in #RubyOnRails
[19:11:49] that1guy: has joined #ruby
[19:11:52] Drewch: has joined #ruby
[19:12:39] michaeldeol: has joined #ruby
[19:12:43] pwnz0r: has joined #ruby
[19:12:52] tejasmanohar: splitrb is allowed in way more than rails
[19:13:24] miah: ok, i dont do much with rack either
[19:13:53] miah: looks interesting if i did though
[19:14:33] miah: are you having a specific problem with splitrb or just taking a survey?
[19:15:21] juanpaucar: has joined #ruby
[19:16:38] phutchins: has joined #ruby
[19:18:39] DEA7TH: has joined #ruby
[19:20:24] towski_: has joined #ruby
[19:21:49] Ilyes512: has joined #ruby
[19:24:59] mercerist: has joined #ruby
[19:26:18] mjuszczak: has joined #ruby
[19:26:41] hakunin: has joined #ruby
[19:30:14] jenrzzz_: has joined #ruby
[19:31:00] platzhirsch: has joined #ruby
[19:31:44] Narzew: has joined #ruby
[19:33:30] jpfuentes2: has joined #ruby
[19:38:49] baweaver: has joined #ruby
[19:39:40] ghostmoth: has joined #ruby
[19:40:48] sandelius: has joined #ruby
[19:41:13] danman: has joined #ruby
[19:41:57] finisherr: has joined #ruby
[19:43:01] sandelius: is it "ok" to change an object that is created on startup on runtime?
[19:44:07] shevy: change in what way
[19:44:31] apeiros: sandelius: depends on the context
[19:45:26] sandelius: hmm I'll try to gist an example
[19:48:05] ScriptGeek: has left #ruby: ()
[19:48:16] ziprar: has joined #ruby
[19:51:54] Elevanto: If I understood blocks correctly, is this somehow an each method would look?
[19:51:55] Elevanto: http://codepad.org/xm3idLsh
[19:52:12] Elevanto: For say an array
[19:52:15] MasterPiece: has joined #ruby
[19:52:25] sandelius: shevy apeiros https://gist.github.com/sandelius/b2159784d815411aa7df
[19:52:45] sandelius: it's just an example. It's thread-saftey that worries me
[19:53:14] bim: has joined #ruby
[19:53:17] apeiros: sandelius: if you have threads, you must synchronize all access to shared state
[19:53:18] dfockler: Elevanto: that's the idea
[19:53:20] weaksauce: Elevanto sorta yeah.
[19:53:28] apeiros: and that's unrelated to modifying data set on startup time
[19:53:36] weaksauce: loop around yield x for each element in the array.
[19:53:36] Elevanto: Oh great I think I get it now, thanks dfockler , weaksauce :)
[19:53:40] ArchRogem: has joined #ruby
[19:53:51] Caldicot: has joined #ruby
[19:53:57] Caldicot: has left #ruby: ()
[19:54:05] apeiros: Elevanto: well, you'd invoke yield once for every element. not just once for the whole array.
[19:54:18] Elevanto: apeiros, Yes of course.
[19:54:31] apeiros: e.g. array's each could be implemented as: def each; size.times do |i| yield(self[i]) end; end
[19:54:45] baweaver: If thread safety is a worry, then just use functional style
[19:54:49] apeiros: oh, missing `self` as last statement, since each usually returns self.
[19:55:13] Elevanto: apeiros, So, another block inside each method. Where does this block come from?
[19:55:33] baroquebobcat: has joined #ruby
[19:55:38] apeiros: you pass it to times
[19:55:43] apeiros: it comes from the code you just read ;-)
[19:56:13] baweaver: Depending on your language experience, it's safer to think of blocks as functions in most cases
[19:56:25] baweaver: especially if you started anywhere close to JS
[19:56:28] apeiros: you can do it without a block too
[19:56:50] apeiros: i = 0; while i < size; yield(self[i]); i += 1; end
[19:56:54] P1RATEZ: has joined #ruby
[19:57:08] baweaver: why not just: self.each
[19:57:11] sandelius: apeiros so it's Mutex#synchronize I'm looking for?
[19:57:15] baweaver: considering that returns an enumerator
[19:57:18] zotherstupidguy: has joined #ruby
[19:57:23] mrsolo: has joined #ruby
[19:57:25] Elevanto: baweaver, We are already inside the each method
[19:57:30] Elevanto: apeiros, Yea I see :)
[19:58:01] platzhirsch: has joined #ruby
[19:58:06] baweaver: if you're making a collection enumerable, it's normally easier to tack each onto the iterable element
[19:58:08] apeiros: sandelius: yeah, that's one way
[19:58:30] gustavn: has joined #ruby
[19:59:00] sandelius: apeiros so that what e.g sinatra does here https://github.com/sinatra/sinatra/blob/master/lib/sinatra/base.rb#L1486
[19:59:37] Deas: has joined #ruby
[20:00:40] Deas: what is 'foo << { bar: "var" }' called?
[20:00:58] Deas: i don't know if im doing anything wrong but that syntax totally just gives error
[20:01:15] weaksauce: what is foo?
[20:01:52] weaksauce: if foo is an array that would add an element to the end of foo.
[20:01:54] havenwood: Deas: And what's the Error? What version of Ruby?
[20:02:14] hfp: How do I do time and date calculations easily in vanilla ruby? RoR has all these fancy methods to add 2 months and 3 hours to a date but Ruby doesn't. What's the best approach?
[20:03:43] tuelz: hfp: probably not the answer you're hoping for, but the best advice I can give for a general question like that is to read ruby Time class
[20:03:46] cirn0: has joined #ruby
[20:04:09] tuelz: or did you specifically want to add 2 months and 3 hours?
[20:04:20] wildroman2: has joined #ruby
[20:04:32] hfp: tuelz: I did and couldn't find an easy way. `Time.now + 60*60*24*30*5` is not an acceptable way of adding 5 months to a date because some months are 30 days, some are 28, some are 31...
[20:04:33] Deas: havenwood: oh, it needes to be an variable?
[20:04:42] lolmaus: has joined #ruby
[20:04:46] rotcetorptekcop: has joined #ruby
[20:04:54] apeiros: sandelius: yes
[20:04:55] mrmargol_: has joined #ruby
[20:04:56] Deas: NameError
[20:05:01] tuelz: hfp: so spcecifically you want to add a month?
[20:05:59] sandelius: apeiros that will lock each request so only one can be processed at a time?
[20:06:03] hfp: tuelz: I'd like to add variable amounts of time, depending on where in the code I am
[20:07:09] Rollabunna: has joined #ruby
[20:07:28] tuelz: hfp: sounds like you would be best suited to just include activesupport and use their helper methods like advance
[20:07:38] apeiros: sandelius: I didn't read the whole source, but it looks like
[20:07:58] Deas: has left #ruby: ("'nvm found it'")
[20:08:14] sandelius: apeiros ok thx, that's not what I want :) refactor, refactor.... :)
[20:08:38] havenwood: hfp: how do you decide how long a month is from any given point? like on the last or first day of the month, what's a month from that?
[20:09:28] rotcetorptekcop: has joined #ruby
[20:09:50] hfp: havenwood: More like "4 months from today the date will be 22-sep-2015"
[20:10:15] tuelz: what if the last day of that month is 30 and today is 31st?
[20:10:51] hfp: tuelz: That's all the things I'd like to avoid getting into. RoR is great for that, it calculates all the dates automatically
[20:10:55] baweaver: The last thing you want to do is screw with datetime maths unless you have to
[20:11:04] Guest37911: has joined #ruby
[20:11:06] tuelz: you could use Time.now.end_of_month and add 1 day to get the next month
[20:11:15] apeiros: sandelius: it's up to you to be more precise with your locking
[20:11:37] tuelz: hfp: I agree, that's why I suggest just including whatever you need from activesupport
[20:11:43] atmosx: has joined #ruby
[20:11:43] hfp: I think I'll use activesupport indeed
[20:12:01] havenwood: hfp: cherry pick
[20:12:41] tuelz: or don't cherry pick
[20:14:28] bronson: has joined #ruby
[20:15:44] wallerdev: has joined #ruby
[20:15:48] jgt1: has joined #ruby
[20:17:15] michaeldeol: has joined #ruby
[20:18:42] ndrei: has joined #ruby
[20:18:59] mjuszczak: has joined #ruby
[20:19:53] havenwood: hfp: require 'active_support/core_ext/date_time/calculations'; DateTime.now.next_month 4
[20:20:40] x1337807x: has joined #ruby
[20:20:42] wallerdev: mobowl too busy
[20:22:04] hfp: havenwood: Yes thanks
[20:22:29] mjuszczak: has joined #ruby
[20:22:52] wildroman2: has joined #ruby
[20:23:58] vikaton: has joined #ruby
[20:24:52] mjuszczak: has joined #ruby
[20:26:53] dopie: has joined #ruby
[20:29:55] fabrice31: has joined #ruby
[20:30:19] Eiam_: has joined #ruby
[20:31:11] lidenskap: has joined #ruby
[20:31:15] baweaver: has joined #ruby
[20:31:33] zzing: has joined #ruby
[20:33:16] danman: has joined #ruby
[20:36:50] leafybasil: has joined #ruby
[20:37:46] donnel: has joined #ruby
[20:39:26] bmalum: has joined #ruby
[20:39:31] cirn0: has joined #ruby
[20:39:57] someword1: has joined #ruby
[20:41:48] alphaatom: has joined #ruby
[20:41:56] e1nh4nd3r: has joined #ruby
[20:41:59] KommandoFreisler: has joined #ruby
[20:43:02] baweaver: has joined #ruby
[20:43:28] Notte: has joined #ruby
[20:45:29] Shidash: has joined #ruby
[20:46:44] Channel6: has joined #ruby
[20:47:04] sinequanon: has joined #ruby
[20:49:01] rotcetorptekcop: has joined #ruby
[20:50:27] qwertme: has joined #ruby
[20:51:39] casadei: has joined #ruby
[20:51:50] x1337807x: has joined #ruby
[20:52:23] djbkd: has joined #ruby
[20:52:51] jhass: good morning
[20:53:00] weaksauce: hfp 'require active_support/time' would be a more complete way to add in everything time related. and gives you 5.days.from_now
[20:53:02] swgillespie: has joined #ruby
[20:53:05] bronson: has joined #ruby
[20:53:26] weaksauce: same with date_time and date
[20:54:31] jhass: !kick donnel
[20:54:31] helpa: jhass: No.
[20:54:31] ruboto: ruboto kicked donnel:
[20:54:31] ruboto: -o ruboto
[20:54:32] donnel: has joined #ruby
[20:54:47] jhass: !ban donnel !T 7d spam
[20:54:47] helpa: Radar, you should ban the person highlighted, signed jhass.
[20:54:47] ChanServ: +b donnel!*@*
[20:54:47] ChanServ: ChanServ kicked donnel: spam
[20:54:53] WildBamboo-Josh: has joined #ruby
[20:55:31] djbkd: has joined #ruby
[20:55:43] snath: has joined #ruby
[20:57:18] multi_io: has joined #ruby
[20:57:22] snath: has left #ruby: ()
[21:01:35] Akagi201: has joined #ruby
[21:02:23] soulcake: has joined #ruby
[21:02:55] jimms: has joined #ruby
[21:03:05] shadoi: has joined #ruby
[21:03:48] CustosLimen: has joined #ruby
[21:04:18] juanpaucar: has joined #ruby
[21:05:35] soulcake: has joined #ruby
[21:07:18] mary5030: has joined #ruby
[21:09:17] arietis: has joined #ruby
[21:09:53] tubuliferous: has joined #ruby
[21:10:15] Axy: has joined #ruby
[21:10:15] Axy: has joined #ruby
[21:11:00] rotcetorptekcop: has joined #ruby
[21:12:14] freerobby: has joined #ruby
[21:12:43] zotherstupidguy: has joined #ruby
[21:13:01] mistermocha: has joined #ruby
[21:13:45] arietis: has joined #ruby
[21:14:00] finisherr: has joined #ruby
[21:17:05] mrsolo: has joined #ruby
[21:17:07] ismaelga: has joined #ruby
[21:17:48] Spami: has joined #ruby
[21:19:06] swerter: has joined #ruby
[21:19:14] iamninja: has joined #ruby
[21:20:06] regnartim: has joined #ruby
[21:21:30] zubov: has joined #ruby
[21:26:00] mercerist: has joined #ruby
[21:26:36] lidenskap: has joined #ruby
[21:28:11] Hijiri: has joined #ruby
[21:29:07] xxneolithicxx: random question not ruby related
[21:29:27] xxneolithicxx: are there "package managers" or script managers for bash like pip/gem?
[21:30:18] swgillespie: has joined #ruby
[21:31:06] shevy: do you mean - these install .sh files?
[21:31:28] shevy: the GNU Sourcemage distribution is completely written in bash I think
[21:31:38] pengin: has joined #ruby
[21:31:43] User458764: has joined #ruby
[21:32:49] cirn0: has joined #ruby
[21:34:02] rom1504: xxneolithicxx: apt
[21:34:21] tercenya: has joined #ruby
[21:34:27] rom1504: but really : bash is crap
[21:34:45] xxneolithicxx: lol no not apt thats not what i mean. Just found bpkg, something like that, i was just curious if there was something like gem/pip for bash
[21:35:19] xxneolithicxx: i normally distribute my bash scripts through rpms so it doesnt matter but was curious
[21:35:44] baweaver: has joined #ruby
[21:36:16] jgt1: has joined #ruby
[21:36:48] rom1504: /dev/null is the best package manager for bash :)
[21:37:16] Azure: has joined #ruby
[21:37:55] jgt1: ^^^classic
[21:38:16] rom1504: (is there someone that can remember how to write a bash if condition after not doing bash for a few months ?)
[21:38:34] adaedra: if cond; then; fi
[21:38:40] baweaver: Is that a question, or...?
[21:38:44] rom1504: yeah and how do you write cond ?
[21:38:55] adaedra: cond is a command line
[21:39:00] rom1504: how many spaces, = or eq, [ or [[ , ...
[21:39:10] baweaver: [ -z "$var"] for blank
[21:39:16] adaedra: that's not bash syntax, that's test(1) syntax
[21:39:27] baweaver: -eq equals, -lt less than, etc
[21:39:37] xxneolithicxx: -z, and et al are aliases for test command
[21:39:42] baweaver: splitting hairs
[21:39:50] adaedra: xxneolithicxx: arguments, actally
[21:40:24] baweaver: ACTION thinks this is incredibly pedantic
[21:40:29] rom1504: my point is I never write it right the first time
[21:40:33] adaedra: welcome to shell script
[21:40:44] xxneolithicxx: how do forget an if statement
[21:40:47] phutchins: has joined #ruby
[21:40:48] adaedra: rom1504: but now you know the man page to look for !
[21:41:04] xxneolithicxx: i mean even if you get it wrong its hard to get it more than 50% wrong
[21:41:09] havenwood: adaedra: apropos
[21:41:10] adaedra: baweaver: do some fish, I heard they have a different syntax.
[21:41:16] rom1504: yeah but in all other languages I can write a if condition without looking any man
[21:41:33] havenwood: adaedra: man apropos
[21:41:39] baweaver: rom1504: You get used to it if you do enough of it
[21:41:40] adaedra: I don't need it in bash/zsh
[21:42:01] adaedra: -n, -z, -eq, -ne, -lt, -gt, -lte, -lge, -a, -o
[21:43:10] xxneolithicxx: if u were talking else if condition thats acceptable, i can never remember if its elseif, elsif, or elif
[21:43:42] pwattstbd: has joined #ruby
[21:43:50] xxneolithicxx: coder problems
[21:43:53] shevy: let us not taint #ruby with ugly bash syntax
[21:44:04] havenwood: https://github.com/matz/streem#readme
[21:44:04] shevy: it's madness
[21:44:12] apeiros: is coder problems a subset of firstworldproblems?
[21:44:16] havenwood: shevy: if fi fo fum
[21:44:26] rom1504: apeiros: indians code
[21:44:39] xxneolithicxx: 3rd world people code
[21:44:47] shevy: lol havenwood
[21:44:58] xxneolithicxx: bums code, prisoners code
[21:44:59] apeiros: rom1504: I actually don't consider firstworldproblems to be a geographic classification :-/
[21:45:03] adaedra: shevy: actually it's logical and easy to remember
[21:45:11] shevy: nothing is logical there
[21:45:31] rom1504: "third world" is definitely s geographic classification apeiros
[21:45:57] rom1504: ("the developing countries of Asia, Africa, and Latin America.")
[21:46:02] apeiros: rom1504: so is first world. I get that. but I don't take the composite as such.
[21:46:03] xxneolithicxx: i thought it was socio economic
[21:46:17] shevy: rom1504 eh, many "developing" countries are richer than many countries in Europe
[21:46:54] shevy: funny how discussions go
[21:46:57] shevy: from bash to countries
[21:47:05] rom1504: well I'm not saying the opposite, but that's still the definition of that term
[21:47:26] rom1504: but yeah ok you can give an other definition to "firstworldproblem" ^^
[21:47:45] niftylettuce: has joined #ruby
[21:47:57] shevy: human being problems
[21:48:06] shevy: staring at java code all day long
[21:48:25] xxneolithicxx: omg dont give me nightmares
[21:48:30] apeiros: I understood "first world problem" to mean "any problem which is not really a problem which has an impact on your quality of life" (with quality being in the range of "existential")
[21:48:41] shevy: IRC problems are firstworldproblems
[21:48:45] weaksauce: first world was democratic states allied with the US during the cold war.
[21:49:39] xxneolithicxx: so what did third world mean in that context
[21:49:47] rom1504: coding definitely has an impact on your quality of life
[21:49:48] weaksauce: unaffiliated
[21:49:50] xxneolithicxx: to me it means social economic living conditions
[21:49:53] zubov: has joined #ruby
[21:50:05] weaksauce: second was communist/socialist allied with the russians
[21:50:11] rom1504: well not directly I guess
[21:50:27] jbomo: has joined #ruby
[21:50:28] Xoro: has joined #ruby
[21:50:30] weaksauce: basically too poor to take a side
[21:51:47] RegulationD: has joined #ruby
[21:52:11] marcellus: has left #ruby: ()
[21:52:12] zenspider: can someone with 1.9.3 installed run this and PM me the output? https://gist.github.com/ab3843195b8b328eef10
[21:52:27] adaedra: 19>> puts RUBY_VERSION
[21:52:28] ruboto: adaedra # => 1.9.3 ...check link for more (https://eval.in/368903)
[21:52:34] adaedra: zenspider: use eval.in
[21:52:54] zenspider: cool. thanks
[21:53:44] apeiros: testing block arg behavior?
[21:54:09] apeiros: didn't it only change from 1.8 to 1.9? or did it change again after 1.9?
[21:54:38] xxneolithicxx: i recall there was inconsistent behavior between ruby and jruby in certain cases too
[21:54:52] tercenya_: has joined #ruby
[21:55:04] xxneolithicxx: i think it was with lambda args
[21:55:25] zenspider: sec. I'll have a full map soon
[21:57:57] soulcake: has joined #ruby
[21:58:02] zenspider: https://gist.github.com/57168c8a200e57a150ee
[21:58:30] zenspider: 2 outliers, 3 n/a's
[22:00:55] affenhoden: has joined #ruby
[22:01:49] tuelz: has joined #ruby
[22:01:57] decoponio: has joined #ruby
[22:04:16] lala: has joined #ruby
[22:04:52] apeiros: zenspider: `(1.8.7) proc || : STRCT` wait what? o0
[22:06:18] apeiros: oh, interesting. proc { || }.call(0) raises in 1.8.6, but proc { |x| }.call(0,1,2) does not.
[22:06:43] apeiros: yeah, I guess I never used || to express "no arguments"
[22:07:24] apeiros: |void| still issues a warning
[22:07:37] adaedra: No no, for the no-argument.
[22:07:40] adaedra: Like C does.
[22:08:01] Rollabunna: has joined #ruby
[22:08:23] adaedra: int main(void)
[22:09:50] affenhod1n: has joined #ruby
[22:10:25] ereslibre: has joined #ruby
[22:10:47] Scripore: has joined #ruby
[22:10:59] atmosx: middleman is really good
[22:11:43] gizmore: has joined #ruby
[22:11:55] irobevjodu: has joined #ruby
[22:12:16] atmosx: adaedra: Just re-attach the screen, had no idea what you guys were talking about :-P
[22:13:45] swgillespie: has joined #ruby
[22:14:01] x1337807x: has joined #ruby
[22:15:14] blackmesa: has joined #ruby
[22:17:55] shuber_: has joined #ruby
[22:18:04] Igorshp: has joined #ruby
[22:18:38] fabrice31: has joined #ruby
[22:19:14] ereslibre: has joined #ruby
[22:19:51] diegoviola: has joined #ruby
[22:19:51] dorei: is there a better way for: https://eval.in/368922 ?
[22:20:23] adaedra: that's the point of a module and include/extend, I think
[22:21:35] apeiros: dorei: define "better"
[22:21:37] ruboto: I don't know anything about better
[22:21:53] dorei: apeiros: line 6 looks ugly/lame to me
[22:21:55] zenspider: hah. I think that's a PERFECT answer
[22:22:23] zenspider: dorei: what are you actually trying to accomplish, and why?
[22:22:57] dorei: zenspider: i'm definining a class method and then i want to define an instance method with the same name that at some point calls the class method i defined before
[22:25:29] sinequanon: has joined #ruby
[22:25:37] giuseppesolinas: has joined #ruby
[22:26:25] Stalkr_: has joined #ruby
[22:26:39] bmurt: has joined #ruby
[22:26:51] gambl0re: has joined #ruby
[22:27:11] rrichardsr3: has joined #ruby
[22:27:57] wallerdev: has joined #ruby
[22:30:25] ruboto: "Best" and "better" are subjective. Try to use a different term.
[22:30:35] jhass: apeiros: maybe we need fact aliases :P
[22:31:12] apeiros: good point. please add it to the todo :D
[22:32:23] pengin: has joined #ruby
[22:32:43] jhass: dorei: I think I'd got for self.class.public_send(m)
[22:33:44] mjuszczak: has joined #ruby
[22:33:49] _blizzy_: has joined #ruby
[22:34:04] havenwood: zenspider: commented on your earlier gist run with a few more Rubies, just because I was curious: https://gist.github.com/zenspider/ab3843195b8b328eef10
[22:34:51] mallu: has joined #ruby
[22:35:05] affenhoden: has joined #ruby
[22:35:13] finisherr: has joined #ruby
[22:36:23] sent1nel: has joined #ruby
[22:36:40] TheNet: has joined #ruby
[22:36:48] TheNet: is Variable part of the stdlib?
[22:36:59] TheNet: possibly as a class
[22:37:40] jhass: https://www.omniref.com/?utf8=%E2%9C%93&q=Variable&commit=Search
[22:37:44] jhass: doesn't look like it
[22:37:47] dorei: jhass: i think your idea is better than me :)
[22:38:29] coetry: has joined #ruby
[22:39:01] dorei: than mine even
[22:39:15] baweaver: has joined #ruby
[22:39:19] mallu: Can you please tell me how I can reduce the number of line? https://dpaste.de/bLan
[22:40:14] jhass: mallu: Array#map
[22:40:20] jhass: also make sure to indent
[22:41:06] baweaver: see comment
[22:41:41] dorei: let's say i have a module Amodule and i use it to add class methods into class X (by using extend Amodule in class X), is there a way to have an instance method added too? maybe like using the extended callback and do a define_method there
[22:42:13] baweaver: included do ...
[22:42:15] mallu: jhass: can you give me an example?
[22:42:32] baweaver: >> (1..5).map { |x| x * 2 }
[22:42:33] ruboto: baweaver # => [2, 4, 6, 8, 10] (https://eval.in/368930)
[22:44:33] baweaver: mallu: http://ruby-doc.org/core-2.2.2/Enumerable.html - This is your new best friend
[22:46:08] edwinvdgraaf: has joined #ruby
[22:46:11] mallu: thank you
[22:46:11] rotcetorptekcop: no worries, mallu
[22:46:47] car: has joined #ruby
[22:47:15] soulcake: has joined #ruby
[22:49:44] dopie: has joined #ruby
[22:50:18] dorei: is the another way to do this: https://eval.in/368940 ?
[22:50:42] commondream: has joined #ruby
[22:50:43] apeiros: yes. there's always another way.
[22:50:47] dopie: I updated it with the concern
[22:51:39] apeiros: dorei: I *really* dislike people adding stuff to the instance on extend, or to the singleton class on include.
[22:51:52] apeiros: dorei: just provide two modules. let the user include + extend
[22:52:03] soulcake: has joined #ruby
[22:52:16] dorei: apeiros: it's for a dsl, it'll make it ugly if the user should use both include/extend
[22:52:24] apeiros: and if you insist on using extended/included hook, *at the very least* clearly document that you're doing so.
[22:52:49] apeiros: dorei: adding stuff unexpectedly is ugly in its own right.
[22:53:04] juanpaucar: has joined #ruby
[22:54:49] apeiros: dorei: i.e., if I do `SomeClass.extend Foo`, I expect SomeClass.singleton_class to change. I do not expect SomeClass to change. Vice versa with SomeClass.include Foo.
[22:55:14] soulcake: has joined #ruby
[22:56:25] dorei: apeiros: I generally agree with you, but I think in the case of a dsl, one is prepared to deal with some "magic"
[22:56:47] Kiseki: has joined #ruby
[22:58:34] rotcetorptekcop: has joined #ruby
[22:58:41] tubuliferous: has joined #ruby
[22:58:55] duncannz: has joined #ruby
[23:01:43] Deele: has joined #ruby
[23:02:09] cirn0: has joined #ruby
[23:02:27] bronson: has joined #ruby
[23:03:56] jhass: oh man, rubycoin.org so who of you has some?
[23:04:19] apeiros: nope, not me.
[23:04:30] apeiros: but I don't have neither bitcoins or dogecoins either
[23:05:23] adaedra: I have eurocoins
[23:06:40] TheNet: has joined #ruby
[23:06:44] phizzbuzz: has joined #ruby
[23:08:29] adaedra: But is rubycoin better than https://github.com/c-darwin/dcoin ?
[23:08:56] ruboto: I don't know anything about better
[23:09:01] zenspider: haha. I love that
[23:09:20] ruboto: I don't know anything about better
[23:09:23] jhass: democracy is a tool of capitalists, didn't you know!
[23:09:29] bhaak: has joined #ruby
[23:09:32] baweaver: Oh hey, I can get ruboto to answer me now.
[23:09:38] baweaver: helpa still hates me.
[23:09:56] adaedra: I'm looking for the original thread about it in /r/php
[23:10:03] adaedra: /r/lolphp *
[23:10:10] apeiros: helpa is muted in this channel to avoid double invocation
[23:10:27] apeiros: it is still in this channel so it can collect logs (useful to radar)
[23:10:31] jenrzzz: has joined #ruby
[23:10:34] shevy: damn CIA-helpa
[23:10:52] mary5030: has joined #ruby
[23:10:52] baweaver: In NSA America, bot logs you
[23:11:12] DerisiveLogic: has joined #ruby
[23:13:06] adaedra: "There were people commiting sudoku over the bitcoin scandal."
[23:13:18] bkxd: has joined #ruby
[23:13:45] Stalkr^: has joined #ruby
[23:14:23] zenspider: what I wouldn't give to see you guys actually talk about ruby more than once in a rare while...
[23:14:29] TheNet: has joined #ruby
[23:14:41] apeiros: I prefer people committing bimaru.
[23:14:45] adaedra: we talked about it earlier.
[23:14:54] apeiros: zenspider: what's ruby?
[23:15:20] mary5030: has joined #ruby
[23:15:50] apeiros: well, bedtime for me. nighty night!
[23:16:04] Stalkr^: has joined #ruby
[23:16:38] Stalkr^: has left #ruby: ()
[23:17:48] macmarti_: has joined #ruby
[23:18:20] dfockler: has joined #ruby
[23:19:03] qwertme: has joined #ruby
[23:22:46] bcavileer: has joined #ruby
[23:23:20] bjeanes: has joined #ruby
[23:24:05] firevolt: has joined #ruby
[23:24:51] poikon: has joined #ruby
[23:25:05] MiracleBlue: has joined #ruby
[23:25:13] zzak: has joined #ruby
[23:25:23] skmp: has joined #ruby
[23:25:30] vcoinminer: has joined #ruby
[23:27:15] pwattstbd: has joined #ruby
[23:27:26] havenwood: has joined #ruby
[23:27:49] Zamyatin: has joined #ruby
[23:28:04] lrcezimbra: has joined #ruby
[23:28:34] DerisiveLogic: has joined #ruby
[23:29:11] jeregrine: has joined #ruby
[23:29:44] Zamyatin: has joined #ruby
[23:30:53] Wobbley: has joined #ruby
[23:31:34] Zamyatin: has joined #ruby
[23:34:16] tuelz: has joined #ruby
[23:35:14] shuber_: has joined #ruby
[23:36:04] bogdanteleaga: has joined #ruby
[23:37:27] sent1nel: has joined #ruby
[23:40:43] RegulationD: has joined #ruby
[23:43:32] TigerWolf: has joined #ruby
[23:47:00] Kiseki: has left #ruby: ()
[23:47:30] phizzbuzz: has joined #ruby
[23:47:40] WillAmes: has joined #ruby
[23:52:14] swgillespie: has joined #ruby
[23:52:35] commondream: has joined #ruby
[23:53:18] Hanmac: has joined #ruby
[23:54:11] shuber_: has joined #ruby
[23:57:08] lidenskap: has joined #ruby
[23:58:01] xxneolithicxx: has joined #ruby
[23:58:24] dseitz: has joined #ruby
[23:59:14] rickmasta: has joined #ruby