« Back to channel list

#ruby - 01 February 2016

« Back 1 day Forward 1 day »
[00:00:11] Dimik: has joined #ruby
[00:00:47] rkazak: has joined #ruby
[00:02:51] pdoherty: has joined #ruby
[00:04:08] Musashi007: has joined #ruby
[00:04:42] arescorpio: has joined #ruby
[00:05:43] TomPeed: has joined #ruby
[00:07:17] pdoherty: has joined #ruby
[00:08:09] stevemackinnon: has joined #ruby
[00:10:05] zzak__: has joined #ruby
[00:10:13] mostlybadfly: has joined #ruby
[00:10:16] joaomdmoura__: has joined #ruby
[00:10:32] twodayslate: has joined #ruby
[00:10:35] Heero: has joined #ruby
[00:10:36] amitchellbullard: has joined #ruby
[00:10:37] sideshowcoder: has joined #ruby
[00:10:47] lancetw: has joined #ruby
[00:11:00] jpinnix_______: has joined #ruby
[00:11:07] Guest4184_____: has joined #ruby
[00:11:36] nug: has joined #ruby
[00:12:13] kent\n: has joined #ruby
[00:12:24] yirvineox: has joined #ruby
[00:12:31] spastorino: has joined #ruby
[00:12:39] pmarreck: has joined #ruby
[00:12:40] pfg: has joined #ruby
[00:13:04] Cihan: has joined #ruby
[00:13:13] danzilio: has joined #ruby
[00:13:28] yo61: has joined #ruby
[00:13:28] gmci: has joined #ruby
[00:13:32] rfv: has joined #ruby
[00:13:33] tejasmanohar: has joined #ruby
[00:13:51] yirvineox-x360: has joined #ruby
[00:14:16] ec: has joined #ruby
[00:15:14] Ebok: has joined #ruby
[00:15:50] mrsolo: has joined #ruby
[00:16:34] AdamMeghji: has joined #ruby
[00:17:54] gbgdev_: has joined #ruby
[00:18:26] kalz: has joined #ruby
[00:19:47] kent\n: has joined #ruby
[00:20:50] nirix: has joined #ruby
[00:21:07] ruurd: has joined #ruby
[00:24:33] pfg: has joined #ruby
[00:25:41] victortyau: has joined #ruby
[00:27:39] Cihan: has joined #ruby
[00:27:48] Glenboi: has left #ruby: ()
[00:28:45] jsrn: has joined #ruby
[00:37:41] stannard: has joined #ruby
[00:39:16] duckpuppy: has joined #ruby
[00:42:00] lyoshajapan: has joined #ruby
[00:43:37] CloCkWeRX: has joined #ruby
[00:44:36] lyoshajapan: has joined #ruby
[00:44:58] ur5us: has joined #ruby
[00:45:23] gbgdev: has joined #ruby
[00:46:29] chouhoulis: has joined #ruby
[00:46:37] dling`: has joined #ruby
[00:47:04] s00pcan: has joined #ruby
[00:47:23] ur5us_: has joined #ruby
[00:47:39] j416: has joined #ruby
[00:48:20] blackmes1: has joined #ruby
[00:49:30] TomPeed: has joined #ruby
[00:50:04] at46: has joined #ruby
[00:51:12] C0deMaver1ck: has joined #ruby
[00:51:42] sivam: has joined #ruby
[00:52:09] william3: has joined #ruby
[00:53:43] dwfait: has joined #ruby
[00:54:19] maverous: has joined #ruby
[00:55:00] marius: has joined #ruby
[00:55:54] houhoulis: has joined #ruby
[01:00:20] ledestin: has joined #ruby
[01:02:13] ebit: has joined #ruby
[01:02:23] ebit: can you use chomp to break out of a loop
[01:03:26] ftj: has joined #ruby
[01:04:12] Ox0dea: "I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question."
[01:05:00] volty: today I chomped out of the bus
[01:05:45] barhum2013: has joined #ruby
[01:07:43] jgt: has joined #ruby
[01:08:17] cpup: has joined #ruby
[01:08:58] snapcase: has joined #ruby
[01:11:25] william3: has joined #ruby
[01:11:33] volty: ebit: probably meant ??? break if line.chomp.empty?
[01:12:19] djbkd: has joined #ruby
[01:12:43] nanoz: has joined #ruby
[01:12:44] ebit: I made this script but it's stuck in a endless loop http://pastebin.com/pC62wyJc
[01:12:45] ruby[bot]: ebit: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/cdca193097477d9be9a9
[01:12:45] ruby[bot]: ebit: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[01:12:46] volty: guessing what people mean is funnier than programming, sometimes :)
[01:14:05] barajasfab: has joined #ruby
[01:14:35] volty: there's no loop
[01:15:39] jimeh: Indeed, there's no loop
[01:16:11] Ox0dea: There's a loop!
[01:16:14] apeiros: 1.upto(no) do |x| # I'd say that is a loop
[01:16:34] volty: yes, i was thinking about a literal endless loop
[01:16:50] volty: (his context & language)
[01:17:23] volty: ??endless??, sorry
[01:17:54] jimeh: As long as you don't give it a stupid high number like 1^100 or something, it won't loop very long
[01:18:03] Ox0dea: That's not necessarily true.
[01:18:19] Ox0dea: Also, Ruby has Float::INFINITY for using the bestest stupid-high "number".
[01:18:19] volty: ebit, where you get stuck ? for superuser password ?
[01:18:34] gbgdev: has joined #ruby
[01:18:53] ebit: I'm trying to make a script that will make how many users needed from the entered input
[01:18:54] Ox0dea: >> 1.upto(1) { redo } # jimeh
[01:18:57] ruby[bot]: Ox0dea: # => (https://eval.in/510854)
[01:19:15] sankaber: has joined #ruby
[01:19:29] speakingcode: has joined #ruby
[01:20:23] volty: ebit, are you running it as superuser ?
[01:20:29] ebit: yes as sudo
[01:21:13] jimeh: Ox0dea: well yeah, but that's cheating... lol
[01:21:15] volty: so, what's the output? at least one 'created' ? or .... ?
[01:22:12] nettoweb: has joined #ruby
[01:22:27] jimeh: ebit: are you sure the `system` call isn't hanging waiting for user input via stdin which never comes?
[01:23:30] ManUtd27: has joined #ruby
[01:23:43] volty: he has to state it better ??? endless loop should have created zillions of users till now :)
[01:23:45] jimeh: I can never remember if it's useradd or adduser that asks for user input though :P
[01:23:56] ebit: I run my scripts in a VM
[01:24:35] jevs: has joined #ruby
[01:24:50] volty: ebit: state better how your script behaves. no output? blocked?
[01:26:00] ebit: Here is the error I get when I run the script http://postimg.org/image/ssl1juu63/full/
[01:26:11] baweaver: has joined #ruby
[01:26:34] ebit: from the term
[01:26:49] jsrn: has joined #ruby
[01:30:35] lyoshajapan: has joined #ruby
[01:30:56] volty: ah, I see
[01:31:11] volty: quite a large view, the term is on the right
[01:31:24] volty: you should full login sudo
[01:32:03] ebit: I think that worked
[01:33:02] william3: has joined #ruby
[01:33:07] agent_white: has joined #ruby
[01:33:39] tuelz1: has joined #ruby
[01:33:55] agent_white: Evenin' folks
[01:34:42] CloCkWeRX1: has joined #ruby
[01:35:01] cdg: has joined #ruby
[01:37:19] dasboot: has joined #ruby
[01:38:44] ruby-lang843: has joined #ruby
[01:38:55] gidlf: has joined #ruby
[01:39:19] minibar: has joined #ruby
[01:41:26] minibar: have a problema with my bundler ruby version
[01:41:41] minibar: installed ruby 2.1 and linked it with homebrew
[01:41:50] minibar: tried to gem install bundler but it doesn't put any executable scripts in /usr/local/bin
[01:41:53] minibar: any idea why?
[01:43:02] pilne: i'm seeing "i ||= 1" in a tutorial, and I honestly have no idea what it is supposed to mean
[01:44:03] minibar: maybe if i is false set it to 1?
[01:44:20] Ox0dea: minibar: Run `brew info ruby`.
[01:44:20] volty: false or nil
[01:44:57] Ox0dea: pilne: `i ||= 1` is shorthand for `i = i || 1`.
[01:45:22] pilne: interesting
[01:45:24] minibar: Ox0dea https://dpaste.de/4iAk/raw
[01:45:36] Ox0dea: If `i` is "falsy" (`false` or `nil`), it'll take the new value of 1; otherwise, it'll keep its old value.
[01:45:54] minibar: I `brew install homebrew/versions/ruby21`
[01:46:18] Ox0dea: I guess try `brew info ruby21`, then.
[01:46:25] Ox0dea: Why're you using 2.1, though?
[01:46:26] diegoviola: has joined #ruby
[01:46:29] pilne: ty, i'm reading a tutorial on scope (something i'm a fish outta water if i don't "get" early on with a language)
[01:47:18] minibar: Ox0dea I think metasploit requires it
[01:47:45] chouhoulis: has joined #ruby
[01:48:17] minibar: Ox0dea https://dpaste.de/oThx/raw
[01:48:23] minibar: I think I understand the problem now
[01:48:29] minibar: By default, binaries installed by gem will be placed into:
[01:48:29] minibar: /usr/local/lib/ruby/gems/2.1.0/bin
[01:48:33] Ebok: has joined #ruby
[01:48:39] Ox0dea: That'd be the one. :)
[01:48:56] ftj: has joined #ruby
[01:49:10] Ox0dea: Sure thing.
[01:49:14] jimeh: minibar: I'd suggest you use rbenv to install and manage Ruby versions, instead of Homebrew
[01:49:27] minibar: jimeh why is that
[01:49:32] volty: how do you handle ldconfig with rbenv ?
[01:50:08] jimeh: Let's you install and quickly switch between any number of versions of Ruby....
[01:50:16] cmckee: has joined #ruby
[01:50:25] jimeh: Just makes it easy :)
[01:50:49] at46: has joined #ruby
[01:51:06] minibar: don't use ruby much
[01:51:15] volty: for me it makes it easy only for switching to a new version ??? from the series ??Never look back??
[01:51:26] jimeh: And it let's you install any specific version you need, rather than only versions available as Homebrew packages...
[01:52:04] blackmes1: has joined #ruby
[01:52:28] jimeh: minibar: ah, fair enough, plain Homebrew might be enough for you then :)
[01:52:36] volty: jimeh: a case use? what kind of people needs to switch forth & back between versions ?
[01:52:44] Rodya_: has joined #ruby
[01:53:40] jimeh: volty: personally I need to switch depending on the client and/or project...
[01:54:38] jimeh: One client is using 2.1.5, and have some issues they need to solve before moving to later versions...
[01:54:38] dwfait: has joined #ruby
[01:54:39] Rodya_: has joined #ruby
[01:54:56] jimeh: While another client is using 2.2.2...
[01:55:02] volty: I see ... thx :)
[01:56:51] jimeh: And in both cases upgrades require devops work, extensive testing and shit, basically I let them do whatever they want and just use rbenv and stick a .ruby-version file in each project and the relevant version is used automatically :)
[01:56:54] volty: some useless code : https://eval.in/private/bcdff89f6401b9
[01:57:58] volty: jimeh: I'm blowing with just one version :)
[01:59:09] Ox0dea: volty: This doesn't do the right thing, right?
[01:59:40] Rodya_: has joined #ruby
[02:00:10] volty: true_false? yes, but would be too ugly, we are not in c++ where I can 'fake' directly
[02:01:45] volty: Btw it's out of fun. I have great fun playing with enumerators
[02:02:08] Ox0dea: As do I: https://eval.in/510863
[02:02:14] Ox0dea: It feels like that's what you were going for.
[02:02:19] speakingcode: has joined #ruby
[02:02:56] volty: I was just thinking the same. Was going to post zip. ah ah
[02:03:30] ebit: 7z is the best
[02:03:47] AccordLTN: has joined #ruby
[02:04:24] duckpuppy: has joined #ruby
[02:04:57] volty: 'ebit'.chars.zip('what'.chars).join
[02:05:00] volty: >> 'ebit'.chars.zip('what'.chars).join
[02:05:01] ruby[bot]: volty: # => "ewbhiatt" (https://eval.in/510864)
[02:05:10] pawnbox: has joined #ruby
[02:05:12] volty: >> 'ebit'.chars.7z('what'.chars).join
[02:05:13] ruby[bot]: volty: # => /tmp/execpad-820ffc396a43/source-820ffc396a43:2: no .<digit> floating literal anymore; put 0 before ...check link for more (https://eval.in/510865)
[02:05:45] william3: has joined #ruby
[02:08:15] Rodya_: has joined #ruby
[02:11:50] baweaver: has joined #ruby
[02:12:34] yoongkang: has joined #ruby
[02:13:47] davedev24: has joined #ruby
[02:14:08] hnagamin: has joined #ruby
[02:15:03] zacstewart: has joined #ruby
[02:15:45] rkazak: has joined #ruby
[02:18:35] speaking2ode: has joined #ruby
[02:19:03] sivam: has joined #ruby
[02:19:38] JCOE: has joined #ruby
[02:21:18] diego1: has joined #ruby
[02:22:03] baweaver: has joined #ruby
[02:22:29] davedev24: has joined #ruby
[02:22:32] Rodya_: has joined #ruby
[02:23:51] speakingcode: has joined #ruby
[02:25:05] william3: has joined #ruby
[02:25:26] barhum2013: has joined #ruby
[02:26:49] jbrhbr: has joined #ruby
[02:27:21] Rodya_: has joined #ruby
[02:28:15] devbug_: has joined #ruby
[02:31:01] s2013: has joined #ruby
[02:31:50] g3funk: has joined #ruby
[02:32:55] pawnbox: has joined #ruby
[02:33:50] davedev24: has joined #ruby
[02:34:33] Rodya_: has joined #ruby
[02:34:56] Biopandemic: has joined #ruby
[02:35:08] djbkd: has joined #ruby
[02:35:46] djbkd: has joined #ruby
[02:35:54] dlitvak: has joined #ruby
[02:35:55] Channel6: has joined #ruby
[02:36:13] psye: has joined #ruby
[02:37:00] jorrin: has joined #ruby
[02:38:53] barhum2013: has joined #ruby
[02:39:03] nanoz]: has joined #ruby
[02:39:30] stannard: has joined #ruby
[02:42:10] jorrin: has joined #ruby
[02:44:44] auzty: has joined #ruby
[02:45:42] Rodya_: has joined #ruby
[02:47:41] bahar: has joined #ruby
[02:47:41] bahar: has joined #ruby
[02:47:51] dasboot: has joined #ruby
[02:48:33] chouhoulis: has joined #ruby
[02:49:03] dasboot: has joined #ruby
[02:49:18] Rodya_: has joined #ruby
[02:50:04] sivam: has left #ruby: ()
[02:50:36] rkazak: has joined #ruby
[02:51:35] at46: has joined #ruby
[02:51:48] dasboot: has joined #ruby
[02:51:51] barhum2013: has joined #ruby
[02:52:20] juddey: has joined #ruby
[02:52:45] arlek: has joined #ruby
[02:53:44] dasboot: has joined #ruby
[02:55:06] blackmes1: has joined #ruby
[02:56:01] fedexo: has joined #ruby
[02:57:04] Bloomer: has joined #ruby
[02:58:44] oetjenj: has joined #ruby
[02:59:22] yonatankoren: has joined #ruby
[02:59:47] newbie22: has joined #ruby
[03:01:04] speakingcode: has joined #ruby
[03:01:18] lyoshajapan: has joined #ruby
[03:01:38] dass: has joined #ruby
[03:02:42] william3: has joined #ruby
[03:05:14] A124: has joined #ruby
[03:06:31] Glenny: has joined #ruby
[03:07:41] ICantCook: has left #ruby: ("bbl")
[03:09:48] arlek: has joined #ruby
[03:09:50] cmckee: has joined #ruby
[03:10:33] s00pcan: has joined #ruby
[03:12:08] duncannz: has joined #ruby
[03:12:09] tjbiddle: has joined #ruby
[03:13:41] ellisTAA: has joined #ruby
[03:13:43] yoongkang: has joined #ruby
[03:14:33] duncannz: has joined #ruby
[03:15:45] ellisTAA: im using the pg gem and im trying to connect to a db i created from the command line. when i initialize this in another file where i pass in the params for the db name i get this error ???initialize': FATAL: database "ellismarte" does not exist (PG::ConnectionBad)??? https://github.com/ellismarte/Personal-Spending-Analysis/blob/master/db/config.rb#L6 the db_name i???m passing in is personal-spending-db
[03:16:15] uris: has joined #ruby
[03:17:12] ellisTAA: why would it be looking for database ???ellismarte??? when im passing in ???personal-spending-db????
[03:17:27] ellisTAA: maybe i didnt start the db?
[03:18:33] lyoshajapan: has joined #ruby
[03:20:00] zzz: has joined #ruby
[03:21:29] baweaver: has joined #ruby
[03:24:32] ellisTAA: has joined #ruby
[03:25:17] konsolebox: has joined #ruby
[03:28:28] arthropodado: has joined #ruby
[03:30:07] dlitvak: has joined #ruby
[03:30:12] arthropodado: has joined #ruby
[03:32:33] Rodya_: has joined #ruby
[03:34:20] astrobun_: has joined #ruby
[03:34:34] dopamean_: has joined #ruby
[03:35:55] cmckee: has joined #ruby
[03:35:59] tuelz1: has joined #ruby
[03:36:25] dasboot: has joined #ruby
[03:36:44] arthropodado: has joined #ruby
[03:37:01] elifoster: has joined #ruby
[03:37:56] ramfjord: has joined #ruby
[03:38:04] Rodya_: has joined #ruby
[03:38:06] iateadonut: has joined #ruby
[03:38:16] djbkd: has joined #ruby
[03:38:48] skcin7: has joined #ruby
[03:39:30] Ebok: has joined #ruby
[03:39:50] ICantCook: has joined #ruby
[03:44:20] unreal: has joined #ruby
[03:44:23] ellisTAA: has joined #ruby
[03:46:16] spags: has joined #ruby
[03:47:36] dlitvak: has joined #ruby
[03:49:18] chouhoulis: has joined #ruby
[03:50:02] Puffball: has joined #ruby
[03:51:22] northfurr: has joined #ruby
[03:51:35] arthropodado: has joined #ruby
[03:52:21] at46: has joined #ruby
[03:56:56] Rodya_: has joined #ruby
[03:57:07] dwfait: has joined #ruby
[03:57:51] sucks: has joined #ruby
[03:58:08] blackmes1: has joined #ruby
[03:59:33] grill: has joined #ruby
[04:03:06] harly: has joined #ruby
[04:04:15] william3: has joined #ruby
[04:05:02] youch: has joined #ruby
[04:05:55] djbkd: has joined #ruby
[04:06:34] atomical: has joined #ruby
[04:07:29] cdg: has joined #ruby
[04:07:50] atomical_: has joined #ruby
[04:08:24] ellisTAA: has joined #ruby
[04:10:06] pawnbox: has joined #ruby
[04:10:30] northfurr: has joined #ruby
[04:11:11] rkazak: has joined #ruby
[04:12:54] lessless: has joined #ruby
[04:13:28] lessless: Hey folks, where can I read about role of subscription operator in the inheritance `class Create < ROM::Commands::Create[:sql]` ?
[04:14:13] skcin7: has joined #ruby
[04:15:56] braincrash: has joined #ruby
[04:17:04] Ebok: has joined #ruby
[04:19:08] lyoshajapan: has joined #ruby
[04:22:53] nbdy: has joined #ruby
[04:24:41] sgambino: has joined #ruby
[04:34:22] barhum2013: has joined #ruby
[04:35:36] dlitvak_: has joined #ruby
[04:36:41] tuelz1: has joined #ruby
[04:38:13] Limix: has joined #ruby
[04:42:14] tw1sted: has joined #ruby
[04:43:30] Guest21134: has joined #ruby
[04:43:44] Guest21134: anyone here?
[04:45:45] Guest21134: can anyone tell me what is the server used in RailsInstaller?
[04:47:29] htmldrum: has joined #ruby
[04:47:34] gix: has joined #ruby
[04:49:29] barhum2013: has joined #ruby
[04:50:03] chouhoulis: has joined #ruby
[04:51:52] barhum2013: has joined #ruby
[04:53:07] at46: has joined #ruby
[04:56:00] bluOxigen: has joined #ruby
[04:58:30] at46: has joined #ruby
[05:01:08] blackmes1: has joined #ruby
[05:01:21] baweaver: server used?
[05:01:42] baweaver: Hm, guess they left
[05:02:01] baweaver: missing a slash there
[05:02:02] VeganGreg: has left #ruby: ("WeeChat 1.2")
[05:02:06] baweaver: there ya go
[05:02:51] arlek: has joined #ruby
[05:05:48] william3: has joined #ruby
[05:10:32] lyoshajapan: has joined #ruby
[05:11:24] blackgoat: has joined #ruby
[05:11:56] dionysus69: has joined #ruby
[05:15:28] rkazak: has joined #ruby
[05:20:29] CloCkWeRX: has joined #ruby
[05:20:45] paradisaeidae: has joined #ruby
[05:21:50] chipotle: has joined #ruby
[05:24:07] krz: has joined #ruby
[05:28:13] william3: has joined #ruby
[05:28:35] UtkarshRay: has joined #ruby
[05:29:44] ramfjord: has joined #ruby
[05:31:02] elifoster: has joined #ruby
[05:34:32] MrSamuel: has joined #ruby
[05:39:30] ur5us: has joined #ruby
[05:40:11] yirvineox_: has joined #ruby
[05:40:17] dlitvak: has joined #ruby
[05:40:33] Xiti`: has joined #ruby
[05:40:52] arlek: How would I use ruby to scrape a website?
[05:41:24] dopie2: has joined #ruby
[05:41:44] Keltia: has joined #ruby
[05:41:52] dling: has joined #ruby
[05:42:36] halfdan_: has joined #ruby
[05:42:38] baweaver: has joined #ruby
[05:42:43] artmann_: has joined #ruby
[05:42:46] pmarreck_: has joined #ruby
[05:43:41] Miccet: has joined #ruby
[05:43:41] fedexo_: has joined #ruby
[05:43:52] Meeh_: has joined #ruby
[05:43:52] zrl_: has joined #ruby
[05:44:57] mc_fail: has joined #ruby
[05:45:20] kloeri_: has joined #ruby
[05:45:26] Mattix: has joined #ruby
[05:45:29] hinbody_: has joined #ruby
[05:45:34] qpls_: has joined #ruby
[05:45:35] kaspergr1bbe: has joined #ruby
[05:45:35] Kero_: has joined #ruby
[05:46:15] hostess_: has joined #ruby
[05:46:50] frankS2_: has joined #ruby
[05:47:32] duderono_: has joined #ruby
[05:47:49] Bilge-: has joined #ruby
[05:47:53] sgambino: has joined #ruby
[05:47:59] denym_`: has joined #ruby
[05:48:05] BTRE: has joined #ruby
[05:48:08] omninonsense: has joined #ruby
[05:48:17] DanKnox^: has joined #ruby
[05:48:21] aef_: has joined #ruby
[05:48:23] mahk_: has joined #ruby
[05:48:25] thomasfedb: has joined #ruby
[05:48:25] thomasfedb: has joined #ruby
[05:48:25] twe4ked_: has joined #ruby
[05:48:27] Biohazard_: has joined #ruby
[05:48:28] paultreny: has joined #ruby
[05:48:31] MalcolmReynolds: has joined #ruby
[05:48:40] Billias_: has joined #ruby
[05:48:50] FastJack_: has joined #ruby
[05:48:58] ZeeNoodleyGamer: has joined #ruby
[05:48:59] Olipro_: has joined #ruby
[05:49:01] braincra-: has joined #ruby
[05:49:23] Morrolan_: has joined #ruby
[05:49:35] iooner-: has joined #ruby
[05:49:55] tylersmith: has joined #ruby
[05:50:05] crank1988_: has joined #ruby
[05:50:07] Log1x: has joined #ruby
[05:50:08] Log1x: has joined #ruby
[05:50:09] duderono_: has joined #ruby
[05:50:16] Miron: has joined #ruby
[05:50:28] heinrich5991: has joined #ruby
[05:50:34] jsrn: has joined #ruby
[05:50:45] gambl0re: has joined #ruby
[05:50:46] gambl0re: has joined #ruby
[05:50:46] chouhoulis: has joined #ruby
[05:51:00] demophoon: has joined #ruby
[05:51:46] zack6849: has joined #ruby
[05:51:46] zack6849: has joined #ruby
[05:51:59] giraffe_: has joined #ruby
[05:52:40] skade: has joined #ruby
[05:53:02] dionysus69: has joined #ruby
[05:53:03] Voyage: has joined #ruby
[05:53:21] william3: has joined #ruby
[05:53:33] duderonomy: has joined #ruby
[05:53:38] grill: has joined #ruby
[05:53:58] DarkBushido: has joined #ruby
[05:53:58] DarkBushido: has joined #ruby
[05:54:16] epochwolf: has joined #ruby
[05:55:56] SaintAardvark: has joined #ruby
[05:56:17] Stan: has joined #ruby
[05:56:23] JoL1hAHN: has joined #ruby
[05:56:27] alexherbo2: has joined #ruby
[05:56:27] konsolebox: has joined #ruby
[05:56:38] AlexRussia: has joined #ruby
[05:56:42] jpoole: has joined #ruby
[05:56:47] SilentEcho: has joined #ruby
[05:56:50] Veejay: has joined #ruby
[05:56:53] ltp: has joined #ruby
[05:56:58] kies: has joined #ruby
[05:57:00] tim_s007: has joined #ruby
[05:57:02] skade: has joined #ruby
[05:57:20] marcdel: has joined #ruby
[05:57:29] saneax_AFK: has joined #ruby
[05:58:01] govg: has joined #ruby
[05:58:07] zast: has joined #ruby
[05:58:15] linduxed: has joined #ruby
[05:58:40] jokester: has joined #ruby
[05:59:16] at46: has joined #ruby
[05:59:31] lyoshajapan: has joined #ruby
[06:00:48] infernix: has joined #ruby
[06:01:07] sorah: has joined #ruby
[06:03:46] nodejunkie: has joined #ruby
[06:04:06] theRealAlexz: has joined #ruby
[06:04:06] theRealAlexz: has joined #ruby
[06:04:10] blackmes1: has joined #ruby
[06:09:26] d4rkmarmota: has joined #ruby
[06:10:46] d4rkmarmota: has joined #ruby
[06:11:41] User458764: has joined #ruby
[06:12:03] MrSamuel: Coraline: Did you propose a CoC for Ruby?
[06:15:22] krz: has joined #ruby
[06:17:03] yoongkang: has joined #ruby
[06:18:28] cdg: has joined #ruby
[06:19:10] blackjid: has joined #ruby
[06:19:41] skarn: has joined #ruby
[06:21:38] Limix: has joined #ruby
[06:22:02] juddey: has joined #ruby
[06:22:57] theRealAlexz: has joined #ruby
[06:23:07] tpendragon: has joined #ruby
[06:23:17] k13nox: has joined #ruby
[06:23:27] zacts: hi rubyists
[06:23:38] zacts: what is a CoC?
[06:23:46] zacts: what does CoC stand for?
[06:25:09] joneshf-laptop: has joined #ruby
[06:28:36] LoneHerm_: has joined #ruby
[06:28:54] blackgoat: has joined #ruby
[06:29:19] agit0: has joined #ruby
[06:29:20] codezomb: has joined #ruby
[06:29:58] adgtl: has joined #ruby
[06:32:29] william3: has joined #ruby
[06:32:57] govg: has joined #ruby
[06:35:08] domgetter: has joined #ruby
[06:36:06] PedramT: has joined #ruby
[06:36:26] djbkd: has joined #ruby
[06:36:42] dseitz: has joined #ruby
[06:37:26] tuelz1: has joined #ruby
[06:37:40] anisha: has joined #ruby
[06:42:29] grill: has joined #ruby
[06:44:45] nerium: has joined #ruby
[06:45:07] skade: has joined #ruby
[06:46:04] catbusters: has joined #ruby
[06:51:33] chouhoulis: has joined #ruby
[06:54:49] ruby[bot]: has joined #ruby
[06:54:49] ChanServ: +o ruby[bot]
[06:55:35] claw: has joined #ruby
[06:55:42] jgt: has joined #ruby
[06:56:09] e4xit: has joined #ruby
[06:56:57] Ebok: has joined #ruby
[06:56:57] htmldrum: has joined #ruby
[06:57:20] ur5us: has joined #ruby
[06:58:33] ruby[bot]: has joined #ruby
[06:58:33] ChanServ: +o ruby[bot]
[06:58:58] solars: has joined #ruby
[07:00:17] grekko: has joined #ruby
[07:00:41] at46: has joined #ruby
[07:01:30] rkazak: has joined #ruby
[07:04:00] toretore: has joined #ruby
[07:05:04] jamw: has joined #ruby
[07:05:30] lyoshajapan: Im curious too lol
[07:06:19] william3: has joined #ruby
[07:06:24] darkf: has joined #ruby
[07:06:53] nofxx: arlek, there's a nice gem that helps with the download part: ruby retriever
[07:07:09] defendguin: has joined #ruby
[07:07:12] blackmes1: has joined #ruby
[07:09:45] olspookishmagus: has joined #ruby
[07:10:28] Ebok: has joined #ruby
[07:13:09] followinfrared: has joined #ruby
[07:15:34] bigkevmcd: has joined #ruby
[07:15:56] cibs: has joined #ruby
[07:16:38] mhoungbo: has joined #ruby
[07:16:54] grayjedi: has joined #ruby
[07:22:33] chipotle: has joined #ruby
[07:25:14] Asher: has joined #ruby
[07:26:18] blackmes1: has joined #ruby
[07:29:34] burgestrand: has joined #ruby
[07:32:33] govg: has joined #ruby
[07:32:43] moeabdol1: has joined #ruby
[07:33:07] grayjedi: has joined #ruby
[07:33:38] aganov: has joined #ruby
[07:33:56] scepticulous: has joined #ruby
[07:35:56] hnagamin: has joined #ruby
[07:37:44] moeabdol2: has joined #ruby
[07:40:39] dextertzu: has joined #ruby
[07:42:41] juddey: has joined #ruby
[07:43:29] enkristoffer: has joined #ruby
[07:43:32] ta: has joined #ruby
[07:43:48] htmldrum: has joined #ruby
[07:44:01] kirillzh: has joined #ruby
[07:44:17] firstdayonthejob: has joined #ruby
[07:44:38] pawnbox: has joined #ruby
[07:45:04] tAn: has joined #ruby
[07:45:17] lsmola: has joined #ruby
[07:46:06] enkristoffer: has joined #ruby
[07:46:50] snapcase: has joined #ruby
[07:46:53] Ishido: has joined #ruby
[07:47:03] Voyage: has joined #ruby
[07:47:34] jcp: has joined #ruby
[07:49:36] djbkd: has joined #ruby
[07:50:24] Macaveli: has joined #ruby
[07:50:47] avenj: has joined #ruby
[07:51:14] nerium: has joined #ruby
[07:51:55] govg_: has joined #ruby
[07:52:17] chouhoulis: has joined #ruby
[07:53:11] jbrhbr: has joined #ruby
[07:53:57] lyoshajapan: has joined #ruby
[07:54:59] andikr: has joined #ruby
[07:55:58] kerunaru: has joined #ruby
[07:57:30] lyoshaja_: has joined #ruby
[07:58:49] blackms: has joined #ruby
[07:58:54] symm-: has joined #ruby
[07:59:04] einarj: has joined #ruby
[07:59:10] blaxter: has joined #ruby
[07:59:50] _joes_: has joined #ruby
[07:59:54] htmldrum: has joined #ruby
[08:01:06] at46: has joined #ruby
[08:01:43] anisha: has joined #ruby
[08:02:44] yoongkang: has joined #ruby
[08:02:52] sandstrom: has joined #ruby
[08:02:59] codecop: has joined #ruby
[08:04:26] lxsameer: has joined #ruby
[08:07:57] william3: has joined #ruby
[08:11:29] adgtl: has joined #ruby
[08:12:28] govg_: has joined #ruby
[08:14:53] ddv: has joined #ruby
[08:16:46] vikas027: has joined #ruby
[08:18:57] aupadhye: has joined #ruby
[08:19:48] DoubleMalt: has joined #ruby
[08:19:54] arlek: wow, actually writing ruby scripts after such a long time feels so awarding
[08:20:17] arlek: rewarding**
[08:21:41] flughafen_: whats the big euro ruby conference?
[08:22:50] sandstrom: has joined #ruby
[08:23:36] moeabdol2: has joined #ruby
[08:23:54] djbkd: has joined #ruby
[08:25:06] ur5us: has joined #ruby
[08:25:06] htmldrum: has joined #ruby
[08:25:08] apeiros: flughafen: euruko?
[08:25:21] flughafen: apeiros: ok, thanks.
[08:26:25] blackmes1: has joined #ruby
[08:26:26] sftrabbit: has joined #ruby
[08:27:15] aufi: has joined #ruby
[08:28:05] PedramT: has joined #ruby
[08:31:47] vondruch: has joined #ruby
[08:31:48] govg: has joined #ruby
[08:33:07] pawnbox: has joined #ruby
[08:34:01] TomyLobo2: has joined #ruby
[08:34:10] TomyWork: has joined #ruby
[08:35:55] nettoweb: has joined #ruby
[08:37:02] enkristoffer: has joined #ruby
[08:37:03] chipotle: has joined #ruby
[08:37:30] anisha: has joined #ruby
[08:38:11] tuelz1: has joined #ruby
[08:39:08] grekko: has joined #ruby
[08:42:11] htmldrum: has joined #ruby
[08:44:23] astrobun_: has joined #ruby
[08:44:36] theRealAlexz: has joined #ruby
[08:45:52] enkristoffer: has joined #ruby
[08:47:08] burgestrand: has joined #ruby
[08:49:21] kristoffer: has joined #ruby
[08:51:09] enkristoffer_: has joined #ruby
[08:51:40] enkristoffer_: has left #ruby: ()
[08:53:05] chouhoulis: has joined #ruby
[08:59:57] enkristoffer_: has joined #ruby
[09:01:27] Xeago: has joined #ruby
[09:01:58] at46: has joined #ruby
[09:03:29] yoongkang: has joined #ruby
[09:03:33] htmldrum: has joined #ruby
[09:03:42] moei: has joined #ruby
[09:04:22] moei: has joined #ruby
[09:04:39] mdw: has joined #ruby
[09:04:48] tvw: has joined #ruby
[09:05:57] rdark: has joined #ruby
[09:06:10] anisha: has joined #ruby
[09:06:21] agent_white: has joined #ruby
[09:10:11] htmldrum: has joined #ruby
[09:11:14] mark2: has joined #ruby
[09:18:04] Jamazia: has joined #ruby
[09:18:34] Jamazia: has joined #ruby
[09:18:50] tomphp: has joined #ruby
[09:19:04] Jamazia: has joined #ruby
[09:19:17] c0m0: has joined #ruby
[09:19:37] Jamazia: has joined #ruby
[09:20:06] futilegames: has joined #ruby
[09:20:22] PedramT: has joined #ruby
[09:20:34] Jamazia: has joined #ruby
[09:21:04] Jamazia: has joined #ruby
[09:21:34] Jamazia: has joined #ruby
[09:21:36] rodfersou: has joined #ruby
[09:21:45] sysanthrope: has joined #ruby
[09:22:13] Luna_Moonfang: has joined #ruby
[09:22:16] ElderFain: has joined #ruby
[09:22:23] ddfreyne: has joined #ruby
[09:22:34] Jamazia: has joined #ruby
[09:22:39] joonty: has joined #ruby
[09:23:04] Jamazia: has joined #ruby
[09:23:18] lyoshajapan: has joined #ruby
[09:23:34] Jamazia: has joined #ruby
[09:23:35] shredding: has joined #ruby
[09:24:04] Jamazia: has joined #ruby
[09:24:17] astrobun_: has joined #ruby
[09:24:33] f4cl3y: has joined #ruby
[09:24:35] yirvineox-x360: has joined #ruby
[09:26:13] sftrabbit: has joined #ruby
[09:26:38] User458764: has joined #ruby
[09:28:18] anisha: has joined #ruby
[09:31:14] lyoshajapan: has joined #ruby
[09:31:18] gbgdev: has joined #ruby
[09:32:04] Xeago: has joined #ruby
[09:33:44] marr: has joined #ruby
[09:35:25] aufi2: has joined #ruby
[09:35:27] bluOxigen: has joined #ruby
[09:38:41] yoongkang: has joined #ruby
[09:40:29] binaryplease: has joined #ruby
[09:44:02] bluOxigen_: has joined #ruby
[09:44:37] Xeago: has joined #ruby
[09:44:45] mooru: has joined #ruby
[09:45:28] chipotle: has joined #ruby
[09:45:55] joast: has joined #ruby
[09:47:44] lee-jon: has joined #ruby
[09:50:32] yoongkang: has joined #ruby
[09:53:51] chouhoulis: has joined #ruby
[09:53:52] jgt: has joined #ruby
[09:55:57] blackmes1: has joined #ruby
[09:56:29] vifino: has joined #ruby
[09:58:06] tsunamie: has joined #ruby
[09:59:20] jxs_: has joined #ruby
[10:00:40] platzhirsch: has joined #ruby
[10:01:29] CloCkWeRX: has joined #ruby
[10:01:58] dwfait: has joined #ruby
[10:02:55] at46: has joined #ruby
[10:04:14] ElFerna_: has joined #ruby
[10:05:46] User458764: has joined #ruby
[10:06:34] m1dnight_: has left #ruby: ("WeeChat 1.4-dev")
[10:07:08] Voyage: has joined #ruby
[10:08:00] sftrabbit: has joined #ruby
[10:09:24] william3: has joined #ruby
[10:10:14] platzhirsch: has left #ruby: ()
[10:13:18] claw: hey guys
[10:13:19] colli5ion: has joined #ruby
[10:13:24] claw: i need some help with regexp
[10:13:40] claw: i want to alter string like "SomeWordCombo" to "Some-Word-Combo"
[10:14:00] Xeago: has joined #ruby
[10:14:27] ruby[bot]: claw: We can't help you without your code, please post it to https://gist.github.com
[10:14:36] claw: /\w[A-Z]/ matches the regions but i need to insert
[10:14:54] claw: well there is no code yet Burgestrand
[10:15:43] gbgdev: has joined #ruby
[10:16:49] htmldrum: has joined #ruby
[10:17:00] zacstewart: has joined #ruby
[10:17:28] sonOfRa: has joined #ruby
[10:18:19] domgetter: claw: check out String#scan
[10:18:23] ready: s.split(/(?=[A-Z])/).join('-')
[10:18:48] domgetter: >> "HelloWorld".scan(/[A-Z][a-z]+/)
[10:18:49] ruby[bot]: domgetter: # => ["Hello", "World"] (https://eval.in/511027)
[10:18:56] dwfait: has joined #ruby
[10:19:02] vikas027: has joined #ruby
[10:19:31] workmad3: has joined #ruby
[10:19:45] burgestrand: Caution, use \p{Lu} instead of A-Z if you want it to work for non-english uppercase characters as well.
[10:19:46] domgetter: from there you can join("-") like in ready's example
[10:20:11] gregf_: claw: just do a [a-z][A-Z] with gsub?
[10:20:18] mickey_mouse: has joined #ruby
[10:20:22] Cohedrin: has joined #ruby
[10:20:49] gregf_: >> "SomeWordCombo".gsub!(/([a-z])([A-Z])/,["\\1","\\2"].join("-")) # together with what Burgestrand said
[10:20:50] ruby[bot]: gregf_: # => "Some-Word-Combo" (https://eval.in/511029)
[10:21:07] domgetter: is there a camel-snake-kebab gem?
[10:21:44] felixal: has joined #ruby
[10:21:45] burgestrand: >> "SomeWordCombo".gsub(/(?<!\A)(\p{Lu})/, '-\0')
[10:21:46] ruby[bot]: Burgestrand: # => "Some-Word-Combo" (https://eval.in/511030)
[10:21:55] domgetter: looks like I have a fun week ahead of me
[10:22:05] burgestrand: So many ways to do this with these vague specifications. :x
[10:22:24] gregf_: Burgestrand: that looks quite neat :)
[10:22:34] domgetter: Burgestrand: thanks for the \p{Lu} tip
[10:23:27] domgetter: >> "HelloWorld".scan(/\p{Lu}\p{Ll}+/).join("-")
[10:23:29] ruby[bot]: domgetter: # => "Hello-World" (https://eval.in/511031)
[10:23:40] burgestrand: Docs for \p{Lu}: https://github.com/ruby/ruby/blob/trunk/doc/regexp.rdoc#character-properties
[10:24:05] burgestrand: Actually, here is better: http://ruby-doc.org/core-2.3.0/Regexp.html
[10:24:29] domgetter: just for funsies:
[10:24:42] domgetter: >> "HelloWorld".scan(/[[:upper]][[:lower]]+/).join("-")
[10:24:43] ruby[bot]: domgetter: # => "ello-rl" (https://eval.in/511032)
[10:24:49] Ox0dea: Well done.
[10:24:51] vikas027: has joined #ruby
[10:24:52] ljarvis: > "SomeWordCombo".gsub(/(?!^)[A-Z]/, '-\0')
[10:24:57] ljarvis: >> "SomeWordCombo".gsub(/(?!^)[A-Z]/, '-\0')
[10:24:58] ruby[bot]: ljarvis: # => "Some-Word-Combo" (https://eval.in/511033)
[10:25:04] domgetter: >> "HelloWorld".scan(/[[:upper:]][[:lower:]]+/).join("-")
[10:25:05] ruby[bot]: domgetter: # => "Hello-World" (https://eval.in/511034)
[10:25:16] ljarvis: ACTION is baffled by all the complexity
[10:25:23] jxs_: has joined #ruby
[10:26:14] pandaant: has joined #ruby
[10:26:55] jxs_: has joined #ruby
[10:27:12] claw: nice that works :)
[10:27:42] skade: has joined #ruby
[10:28:03] burgestrand: For english as long as it's just one line!
[10:28:14] claw: thank you everyone
[10:28:23] ljarvis: i work with what i'm given
[10:28:30] burgestrand: Endless possibilities!
[10:29:02] Xeago: has joined #ruby
[10:29:50] ldnunes: has joined #ruby
[10:29:50] nettoweb: has joined #ruby
[10:30:30] domgetter: I never user the enter key. no problem
[10:31:23] Ox0dea: I tried to train myself to use ^J instead of Enter.
[10:31:37] kent\n: any recommendations for a low-level low-magic ORM? My last interaction with Active<ThingsHere> made me hate it and I find rails over-complicated.
[10:31:57] ljarvis: kent\n: sequel is good, I wouldn't consider it "low-magic", though
[10:32:12] ljarvis: less so than ActiveLol
[10:34:07] kent\n: "Lower" will have to suffice. Its not magic if its apparent how the code I write maps to the guts, even if I'm not 100% sure how it manages ;)
[10:34:55] huyderman: has joined #ruby
[10:36:31] LoneHerm_: has joined #ruby
[10:36:43] apeiros: kent\n: low-magic orm is an oxymoron ;-)
[10:36:54] Ox0dea: kent\n: http://rom-rb.org/
[10:37:01] Ox0dea: But apeiros is right.
[10:37:40] jottr: has joined #ruby
[10:38:56] tuelz1: has joined #ruby
[10:39:16] hinbody: has joined #ruby
[10:39:20] kent\n: You need /some/ magic. After all, its an ORM. The trick is having that magic in places where you're not terrified by things randomly going "bang", sparks, and magic smoke comming out of holes in your brain :)
[10:39:47] apeiros: yeah, I doubt that's possible.
[10:40:10] apeiros: any orm which tries to actually be an orm will easily reach a level of complexity where that's inevitable.
[10:40:28] domgetter: I implemented the List monad on Rosetta Code in Ruby, let me know what you all think: http://rosettacode.org/wiki/Monads/List_monad
[10:41:05] apeiros: I am writing something low-magic myself, and I wouldn't dare calling it an orm, and it already has quite a high level of complexity. I don't even want to know how much more complex it got if I'd add abstractions for all the things I decided not to.
[10:41:15] PedramT: has joined #ruby
[10:41:41] kent\n: If your ORM tries to hide that you have a database underneath things and forces/encourages you do do everything with pure method calls, I agree completely. But anything where you can perform an abstract query and just have the ORM turn that into objects of a class you control on the way out .. I'm not so sure.
[10:41:44] dlitvak: has joined #ruby
[10:41:56] kent\n: ( Though I guess we might have different interpretations on what ORM implies )
[10:42:44] anisha_: has joined #ruby
[10:42:45] tsunamie: has joined #ruby
[10:42:45] joast: has joined #ruby
[10:44:28] jhass: I think you'll like sequel, you can pretty much use it both ways
[10:44:35] apeiros: complexity starts with "abstract query"
[10:44:44] apeiros: stuff like knowing which value to translate in what way
[10:45:05] apeiros: and sql allowing a ridiculous amount of ways to phrase a query
[10:45:35] marr: has joined #ruby
[10:45:41] Ox0dea: Query Planner is a job description. :P
[10:46:25] kent\n: Yeah. Except when you're MySQL, and then the employee who's job description is "Query planner" is one of those guys who is always eating their lunch when you look.
[10:46:58] zacstewart: has joined #ruby
[10:47:18] evidex: has joined #ruby
[10:47:26] Ropeney: has joined #ruby
[10:48:20] lee-jon: has joined #ruby
[10:48:37] apeiros: did I miss the joke? mysql doesn't have a query planner afaik?
[10:49:08] apeiros: time to refuel I guess. lunch, cya :)
[10:49:10] kent\n: I had a lot of battles with that thing because I learnt most of my understanding of SQL using Postgres ... and when you port Postgres code with lots of nested IN ( SUBQUERY ) queryies to mysql ... it does incredibly poorly
[10:50:01] kent\n: because Postgres was smart enough to rewrite those and eliminate side effect results in the sub-query that weren't needed, while mysql just created a temp table for each subquery, stuffed all the results in it, and then used that for the parent query....
[10:50:38] kent\n: needless to say that results in a very amusing performance issue.
[10:54:01] kent\n: apeiros: it does have a planner of sorts, its just really bad at optimising queries. Like the sort of bad you'd expect if somebody had a bunch of regex they applied to every query
[10:54:31] User458764: has joined #ruby
[10:54:31] chouhoulis: has joined #ruby
[10:56:24] Xeago: has joined #ruby
[10:58:51] spk: has joined #ruby
[11:00:21] gbgdev: has joined #ruby
[11:01:06] spk: has left #ruby: ()
[11:01:44] fsapo: has joined #ruby
[11:02:38] al2o3-cr: has joined #ruby
[11:03:31] spk: has joined #ruby
[11:03:40] at46: has joined #ruby
[11:04:24] arup_r: has joined #ruby
[11:04:49] FooMunki: has joined #ruby
[11:05:29] Voyage: has joined #ruby
[11:05:57] skade: has joined #ruby
[11:07:38] tvw: has joined #ruby
[11:09:36] braincrash: has joined #ruby
[11:10:29] tsunamie: has joined #ruby
[11:11:03] william3: has joined #ruby
[11:11:43] User458764: has joined #ruby
[11:12:51] PedramT: has joined #ruby
[11:14:41] k13nox: has joined #ruby
[11:15:09] grekko: has joined #ruby
[11:16:20] jaiks: has joined #ruby
[11:17:11] platzhirsch: has joined #ruby
[11:19:58] FernandoBasso: has joined #ruby
[11:23:00] CloCkWeRX: has joined #ruby
[11:23:31] zacts: ok, so...
[11:23:36] zacts: for a simple Todo app
[11:23:38] namxam: has joined #ruby
[11:23:51] zacstewart: has joined #ruby
[11:24:07] zacts: with a Todo object. would it be better to have the Todo object write itself to a file, or would it be better to do this outside of the object?
[11:24:51] zacts: is it more idiomatic for objects to write themselves to files, or is it more idiomatic to do this with logic outside of an object?
[11:25:07] zacts: (I don't mean object serialization, I mean just writing data)
[11:25:18] Zarthus: I've personally always had a #store(path) method, that means the object knows how to read itself as well.
[11:25:25] kent\n: I'd be asking if you're reading that from a file later.
[11:25:33] kent\n: and where the code to read from a file is going
[11:25:45] Ox0dea: Resist the urge to have something called TodoManager. :P
[11:26:01] zacts: hrm.. I would like to pastebin... just a sec.
[11:26:07] zacts: it's actually a Bookmark app.
[11:26:10] Zarthus: Ox0dea: any reason in particular for that?
[11:26:22] kent\n: Because TodoFile is a totally better name :p
[11:26:23] Ox0dea: Zarthus: The kingdoms of nouns and verbs do not get along overmuch.
[11:26:33] Zarthus: Ox0dea: right.
[11:26:36] burgestrand: zacts for simple, let the object store itself.
[11:26:46] burgestrand: zacts it's completely OK.
[11:26:48] Zarthus: Ox0dea: I was curious because I had a few *Managers myself, primarily for keeping track of my loggers.
[11:27:15] burgestrand: zacts once it becomes unwieldy, you might want to think of moving it somewhere else but most of the time YAGNI.
[11:27:47] zacts: https://gist.github.com/anonymous/1991b321b46f227dfd7d
[11:27:58] zacts: Burgestrand: this is a small gli command line app
[11:28:10] kent\n: I think it makes sense for there to be a *method* on the object to store it, but there's no requirement for the implementation details of that method to be entirely in the same class
[11:28:22] zacts: I have lots of non-DRY code in here
[11:28:29] zacts: I was starting to repeat myself tons
[11:28:39] zacts: this is my first Ruby app ever basically
[11:28:40] Ox0dea: Zarthus: Do your Foos tend to hold references to their FooManager?
[11:28:42] burgestrand: zacts if it helps, ActiveRecord have been letting objects more or less persist themselves for years.
[11:28:50] kent\n: Careful, its not "Don't Repeat Yourself", people over-use that phrase and misinterpret it.
[11:28:59] kent\n: Like repeating something twice is fine.
[11:29:04] Zarthus: Ox0dea: no, FooManager is just a fancy word for hash with helper methods
[11:29:17] burgestrand: Many people consider it an anti-pattern, but for small enough things it's OK, but not a silver bullet.
[11:29:21] zacts: DRYO perhaps?
[11:29:35] Ox0dea: Zarthus: Ah, fair enough, then; that's using the term in a different sense than I meant.
[11:29:39] kent\n: creating a constant called "FOUR" that is used everywhere you wrote the number 4, and having a function that handles every single loop iteration in your code is "evil" ;)
[11:29:41] zacts: Don't Repeat Yourself too Often
[11:29:57] zotherstupidguy: has joined #ruby
[11:30:00] PedramT: has joined #ruby
[11:30:05] dmolina: has joined #ruby
[11:30:13] kent\n: The point of DRY is to keep /knowledge/ in one place.
[11:30:28] zacts: the Bookmark class seems to have logic outside that I feel might be better inside
[11:30:33] zacts: such as writing data to a file
[11:30:45] zacts: but also, I wonder what else might be appropriate to put in there
[11:31:05] kent\n: For instance, if you need to know "How to turn an object into a file", then you should only have *that* part once.
[11:32:50] zacts: so it's not a literal syntactical DRY, but more of a semantics DRY
[11:32:51] chipotle: has joined #ruby
[11:33:26] Ox0dea: Logistical DRY.
[11:33:40] zacts: better way to put it yeah
[11:33:49] kent\n: https://www.youtube.com/watch?v=T93aexpXShE # I find this a good collection of examples of how people misapplying "best practices" results in garbage.
[11:34:55] zacts: how about parsing of arguments?
[11:35:10] zacts: should a list of tags be parsed outside of the object into an array?
[11:35:16] tf_: has joined #ruby
[11:35:32] Ox0dea: kent\n: https://git.io/NELD
[11:35:35] zacts: or is it ok to pass a delimited string of tags into the object, and have the object parse it there?
[11:35:56] kent\n: I love that repository.
[11:36:00] PedramT: has joined #ruby
[11:36:32] Guest96203: has left #ruby: ()
[11:37:54] zacts: I'm assuming it's better to parse the args outside of an object, so that the object's interface doesn't change over time?
[11:37:54] kent\n: Design Patterns the Book: Intent: Here's ways of solving certain kinds of problems in useful ways. World Reaction: Lets use these like its chocolate flavoured paint and dove tail everything into these
[11:38:50] zacts: it's better to design objects' APIs that will always work into the future, rather than changing data types
[11:39:15] zacts: like I'm inputing tags as a string into Bookmark objects, rather than an array of tags
[11:39:18] jamw: has joined #ruby
[11:39:25] darkxploit: has joined #ruby
[11:39:27] zacts: the object is currently parsing the string into an array of tags
[11:39:38] zacts: I'm assuming this is a really poor design?
[11:39:56] kent\n: From a security perspective I'd say "probably"
[11:39:59] Macaveli: has joined #ruby
[11:40:35] dlitvak: has joined #ruby
[11:42:31] Macaveli: has joined #ruby
[11:42:58] meves: has joined #ruby
[11:43:34] kent\n: I feel you're going to want Dependency Injection here eventually. Though I can't explain why I have that feeling yet.
[11:43:45] dagda1: has joined #ruby
[11:43:51] zacts: I feel I have a bit of a long road to learning Ruby ahead of me
[11:44:44] zacts: but I'm hoping that the fact I'm even concerned about these issues in the first place, means I'm not a total dummie
[11:45:00] zacts: even though my code is 100% naively newbie
[11:46:13] Xeago: has joined #ruby
[11:46:39] shinnya: has joined #ruby
[11:46:44] despai: has joined #ruby
[11:47:18] shevy: it gets better and better the more you write!
[11:48:12] DEA7TH: has joined #ruby
[11:48:18] Shaboum: has joined #ruby
[11:48:45] CloCkWeRX: has joined #ruby
[11:49:08] Voyage: has joined #ruby
[11:49:46] zacts: I felt like UNIX cli apps would be a good entry point for me
[11:49:54] zacts: and text processing stuff, eventually
[11:49:57] zacts: filter programs
[11:50:01] zacts: and then moving up from there
[11:50:22] Ox0dea: busybox.rb!
[11:50:23] mauricio: has joined #ruby
[11:50:33] moeabdol3: has joined #ruby
[11:50:46] lipoqil: has joined #ruby
[11:51:29] dlitvak_: has joined #ruby
[11:52:05] joast: has joined #ruby
[11:52:16] kent\n: /boot/kernel.rb
[11:52:44] Ox0dea: Saints preserve us.
[11:52:59] gfvcastro: has joined #ruby
[11:53:51] kent\n: cat /proc/cpuinfo | grep "model name" # Ruby(R) Core(TM) SpecialFastCPU.rb
[11:54:26] zacts: next I hope to takle the Linux kernel in pure Ruby
[11:54:34] zacts: using a Ruby -> asm I write via the busybox app
[11:54:49] zacts: anyway, back to /topic from me...
[11:55:12] adgtl: has joined #ruby
[11:55:20] chouhoulis: has joined #ruby
[11:56:07] kent\n: Oh, I forgot, pervasive NIH syndrome is a PHP thing, so we don't have to write our own processor/kernel just for our $Project
[11:57:05] chthon: has joined #ruby
[11:57:27] moeabdol4: has joined #ruby
[11:57:48] Abrin: has joined #ruby
[11:58:02] anisha: has joined #ruby
[11:58:07] inukshuk_: has joined #ruby
[11:58:18] shevy: zacts you could start by building up individual apps that do similar things like coreutils/busybox
[11:58:45] zacstewa_: has joined #ruby
[11:59:10] sepp2k: has joined #ruby
[12:02:26] Voyage: has joined #ruby
[12:03:58] robbyoconnor: has joined #ruby
[12:04:03] ElFerna_: has joined #ruby
[12:04:05] at46: has joined #ruby
[12:05:00] dionysus69: has joined #ruby
[12:05:15] PedramT: has joined #ruby
[12:05:15] codecop: has joined #ruby
[12:07:05] dlitvak: has joined #ruby
[12:07:11] Azulinho: has joined #ruby
[12:07:56] shevy: then! a rubinius VM running a RubyOS!
[12:09:09] sandstrom: has joined #ruby
[12:11:07] platzhirsch: has joined #ruby
[12:12:44] DirtyFInn: has joined #ruby
[12:12:45] william3: has joined #ruby
[12:13:05] manveru: shevy: but rubinius is also written in C++ :P
[12:13:53] shevy: yeah we have to go in intermediate steps until the end goal has been achieved
[12:14:08] duckpuppy: has joined #ruby
[12:14:12] c355E3B: has joined #ruby
[12:14:25] chrisseaton: this guy is working on an AOT Ruby compiler http://hokstad.com/compiler
[12:15:47] shevy: "the oldest entries in the series I'm about to start posting is stuff I started writing back in early 2005"
[12:15:50] shevy: he is persistent :)
[12:17:09] platzhirsch: has left #ruby: ()
[12:18:35] Xeago: has joined #ruby
[12:18:48] Voyage: has joined #ruby
[12:19:14] sftrabbit: has joined #ruby
[12:19:22] Meow-J: has joined #ruby
[12:21:27] dlitvak_: has joined #ruby
[12:25:19] LoneHerm_: has joined #ruby
[12:25:41] BTRE: has joined #ruby
[12:27:56] stevemackinnon: has joined #ruby
[12:28:44] blackmes1: has joined #ruby
[12:31:54] stannard: has joined #ruby
[12:34:29] burgestrand: has joined #ruby
[12:34:39] ElFerna: has joined #ruby
[12:34:51] dexter_e: has joined #ruby
[12:35:16] william3: has joined #ruby
[12:39:31] adgtl: has joined #ruby
[12:39:42] tuelz1: has joined #ruby
[12:40:56] FooMunki: has joined #ruby
[12:43:08] geekbri: has joined #ruby
[12:44:45] pawnbox: has joined #ruby
[12:45:59] geekbri: has joined #ruby
[12:47:16] syk: has joined #ruby
[12:47:23] platzhirsch: has joined #ruby
[12:52:31] duckpuppy: has joined #ruby
[12:52:41] dlitvak: has joined #ruby
[12:52:59] f4cl3y: has joined #ruby
[12:53:55] platzhirsch: has left #ruby: ()
[12:54:10] lee-jon: has joined #ruby
[12:54:42] mdw: has joined #ruby
[12:56:02] chouhoulis: has joined #ruby
[12:58:42] PedramT: has joined #ruby
[12:58:58] Xeago: has joined #ruby
[12:59:25] gfvcastro: has joined #ruby
[12:59:47] sdothum: has joined #ruby
[12:59:55] pawnbox: has joined #ruby
[13:00:38] k13nox: has joined #ruby
[13:01:53] Xiti: has joined #ruby
[13:01:57] darkxploit: has joined #ruby
[13:01:58] Xiti: has joined #ruby
[13:02:04] tuelz1: has joined #ruby
[13:02:42] duckpuppy: has joined #ruby
[13:02:45] nertzy: has joined #ruby
[13:03:56] shevy: yo castro
[13:04:00] Xeago: has joined #ruby
[13:04:55] at46: has joined #ruby
[13:06:02] grekko: has joined #ruby
[13:07:02] k13nox: has joined #ruby
[13:08:32] p1k: has joined #ruby
[13:09:08] Mon_Ouie: has joined #ruby
[13:09:16] p1k: <float>.to_s.to_f should always return itself shouldn't it ?
[13:11:10] Mon_Ouie: String#to_f doesn't recognize things like NaN and Infinity so at least those numbers are exceptions
[13:11:46] p1k: I mean as far as regular floats, e.g. Time.now.to_f
[13:12:43] namxam: has joined #ruby
[13:15:35] lee-jon: has joined #ruby
[13:16:42] p1k: very puzzling
[13:16:46] Ox0dea: >> loop.find { f = rand; f.to_s.to_f != f }
[13:16:48] ruby[bot]: Ox0dea: # => nil (https://eval.in/511098)
[13:17:02] Ox0dea: Uh... that was fast.
[13:17:16] Ox0dea: I'm pretty sure that's an infinite loop on my machine.
[13:17:56] Ox0dea: p1k: https://eval.in/511100
[13:19:24] pdoherty: has joined #ruby
[13:19:38] gagrio: has joined #ruby
[13:20:24] p1k: hmm? that should be infinite
[13:20:37] Ox0dea: Seems 32 bits just isn't enough.
[13:21:16] michael_mbp: has joined #ruby
[13:21:30] d10n-work: has joined #ruby
[13:21:49] p1k: I'm not familiar with the loop.find syntax but those outputs don't evaluate to true in that inequality
[13:21:54] william3: has joined #ruby
[13:22:19] User458764: has joined #ruby
[13:22:38] dlitvak_: has joined #ruby
[13:23:29] namxam: has joined #ruby
[13:23:30] bluOxigen_: has left #ruby: ()
[13:24:35] Ox0dea: p1k: https://eval.in/511109
[13:25:04] Ox0dea: As you can see, the loss of precision is being ignored, and two distinct floats are comparing true.
[13:25:52] Ox0dea: The output makes more sense in a 64-bit environment: https://glot.io/snippets/ebinf48si9
[13:27:00] Lochez: has joined #ruby
[13:27:37] anisha: has joined #ruby
[13:30:23] Macaveli: has joined #ruby
[13:30:24] hinbody: has joined #ruby
[13:30:46] yalue: has joined #ruby
[13:31:37] Ox0dea: Er, never mind, that was dumb. The precision gets lots immediately: https://eval.in/511118
[13:31:46] El3k0n: has joined #ruby
[13:31:47] Ox0dea: Are you sure you're not comparing two separate calls to Time.now?
[13:32:10] Xeago: has joined #ruby
[13:32:16] JDiPierro: has joined #ruby
[13:33:31] joonty: has joined #ruby
[13:34:52] p1k: No it shouldn't be possible in ruby, if you start with 53 bits of precision (double) there shouldn't be a way for that to change
[13:34:56] tsunamie: has joined #ruby
[13:35:23] p1k: but I'm using redis ordered sets (zadd) and the floats I get back are different from what I started with
[13:35:46] despai: has joined #ruby
[13:37:28] karapetyan: has joined #ruby
[13:38:11] adgtl: has joined #ruby
[13:38:12] jamw: has joined #ruby
[13:38:31] p1k: but that's very puzzling, doubles in c and ruby should be interoperable
[13:39:16] ZeeNoodleyGamer: has joined #ruby
[13:39:46] Bloomer: has joined #ruby
[13:40:27] JamieD: has joined #ruby
[13:42:35] atmosx: has joined #ruby
[13:42:55] namxam: has joined #ruby
[13:43:09] stannard: has joined #ruby
[13:43:20] dwfait: has joined #ruby
[13:45:08] Anderson69s_Pi: has joined #ruby
[13:45:09] jamw: has joined #ruby
[13:45:26] al2o3-cr: just whipped up a quick script, is there a way of creating a KML file using Nokogiri perhaps, instead of writing to a standard file while in the loop? https://gist.github.com/96cea6c8d068d44719c7
[13:47:08] Macaveli: has joined #ruby
[13:47:18] Rodya_: has joined #ruby
[13:47:26] astrobun_: has joined #ruby
[13:48:47] glcx: has joined #ruby
[13:49:19] al2o3-cr: would nokogiri xml builder be ble to do this?
[13:50:44] aryaching: has joined #ruby
[13:50:45] mary5030: has joined #ruby
[13:52:44] geekbri: has joined #ruby
[13:53:33] SCHAAP137: has joined #ruby
[13:53:35] mary5030: has joined #ruby
[13:54:09] atomical: has joined #ruby
[13:56:31] yoongkang: has joined #ruby
[13:56:49] chouhoulis: has joined #ruby
[13:58:36] lee-jon: has joined #ruby
[13:59:45] sgambino: has joined #ruby
[14:00:19] puria: has joined #ruby
[14:01:09] joast: has joined #ruby
[14:02:44] waka: has joined #ruby
[14:03:11] Xeago: has joined #ruby
[14:03:59] karapetyan: has joined #ruby
[14:05:40] at46: has joined #ruby
[14:05:45] zzz: has joined #ruby
[14:06:09] cdg: has joined #ruby
[14:07:20] joast: has joined #ruby
[14:07:41] dlitvak: has joined #ruby
[14:09:57] greynetic: has joined #ruby
[14:13:13] malconis: has joined #ruby
[14:14:03] djcp: has joined #ruby
[14:14:07] hayden_: has joined #ruby
[14:14:14] crowell: has joined #ruby
[14:15:36] flughafen_: has joined #ruby
[14:15:48] zacstewart: has joined #ruby
[14:16:54] karapetyan: has joined #ruby
[14:17:28] malconis: has joined #ruby
[14:18:42] gagrio: has joined #ruby
[14:19:15] glcx: has joined #ruby
[14:19:15] glcx: has joined #ruby
[14:19:27] s2013: has joined #ruby
[14:19:42] platzhirsch: has joined #ruby
[14:22:17] jhass: wouldn't be too surprised if there's a gem or two that can handle KML
[14:23:17] jhass: https://github.com/schleyfox/ruby_kml might still function
[14:23:30] william3: has joined #ruby
[14:25:53] al2o3-cr: jhass: will take at look at this gem as i'm getting know where with nokogiri, thanks
[14:26:30] sankaber: has joined #ruby
[14:27:02] krobzaur: has joined #ruby
[14:28:00] ziyadb: has joined #ruby
[14:28:13] namxam: has joined #ruby
[14:28:23] karapetyan: has joined #ruby
[14:29:14] ddv: al2o3-cr: easy to make with nokogiri
[14:29:43] Toledo|gone: has joined #ruby
[14:29:45] ddv: it's just xml right
[14:29:57] victortyau: has joined #ruby
[14:30:50] al2o3-cr: ddv: i know how to make with nokogiri, just not how to apply within the loop, but looking at ruby_kml i think i may know how
[14:31:08] ddv: al2o3-cr: apply within the loop?
[14:32:12] al2o3-cr: write <coordinates>23.9832,-34.3434</coordinates>
[14:32:16] ramortegui: has joined #ruby
[14:32:50] al2o3-cr: ddv: i'mm ask again if this doesn't work, thanks anyway
[14:32:52] sftrabbit: has joined #ruby
[14:33:24] arthropododo: has joined #ruby
[14:34:01] symm-_: has joined #ruby
[14:36:36] dfinninger: has joined #ruby
[14:37:48] dlitvak_: has joined #ruby
[14:38:39] mjuszczak: has joined #ruby
[14:38:56] zacstewart: has joined #ruby
[14:41:08] weemsledeux: has joined #ruby
[14:42:12] manus: has joined #ruby
[14:43:49] baweaver: has joined #ruby
[14:43:58] TomPeed: has joined #ruby
[14:44:30] mfb2: has joined #ruby
[14:44:36] seneca: has joined #ruby
[14:47:06] agit0: has joined #ruby
[14:47:30] mooru: has joined #ruby
[14:47:41] treehug88: has joined #ruby
[14:50:57] Jardayn: has joined #ruby
[14:52:17] snowy: has joined #ruby
[14:52:42] sankaber: has joined #ruby
[14:52:43] newdan: has joined #ruby
[14:53:16] zerowaitstate: has joined #ruby
[14:53:35] decoponio: has joined #ruby
[14:54:37] sucks: has joined #ruby
[14:56:32] meves: has joined #ruby
[14:57:27] grekko: has joined #ruby
[14:57:34] chouhoulis: has joined #ruby
[14:58:08] mikecmpbll: has joined #ruby
[14:58:33] IrishGringo: has joined #ruby
[15:00:30] B1n4r10: has joined #ruby
[15:00:36] davedev24: has joined #ruby
[15:03:07] polishdub: has joined #ruby
[15:03:22] User458764: has joined #ruby
[15:03:26] griffindy: has joined #ruby
[15:03:31] astrobun_: has joined #ruby
[15:04:40] adgtl: has joined #ruby
[15:05:00] shredding: has joined #ruby
[15:05:03] Dreamer3: has joined #ruby
[15:05:25] stannard: has joined #ruby
[15:05:30] skade: has joined #ruby
[15:05:37] raimumizu: has joined #ruby
[15:06:09] Xeago: has joined #ruby
[15:06:28] at46: has joined #ruby
[15:07:10] snowy: has joined #ruby
[15:08:47] zast: has joined #ruby
[15:09:07] davedev24: has joined #ruby
[15:09:39] s2013: has joined #ruby
[15:09:46] stannard: has joined #ruby
[15:11:48] Brklyn: has joined #ruby
[15:12:09] Frem: has joined #ruby
[15:15:10] PedramT: has joined #ruby
[15:15:36] cpup: has joined #ruby
[15:16:15] stannard: has joined #ruby
[15:16:20] chipotle: has joined #ruby
[15:17:04] skade: has joined #ruby
[15:17:49] inukshuk_: has joined #ruby
[15:19:11] dopamean_: has joined #ruby
[15:20:09] TomyLobo: has joined #ruby
[15:21:24] namxam: has joined #ruby
[15:23:44] Xeago: has joined #ruby
[15:24:00] nofacade: has joined #ruby
[15:24:00] burgestrand: has joined #ruby
[15:24:09] wireddude: has joined #ruby
[15:24:46] gregf: has joined #ruby
[15:24:56] william3: has joined #ruby
[15:26:41] aegis3121: has joined #ruby
[15:27:09] karapetyan: has joined #ruby
[15:27:29] duckpuppy: has joined #ruby
[15:30:13] diegoviola: has joined #ruby
[15:32:39] karapetyan: has joined #ruby
[15:34:14] LoneHerm_: has joined #ruby
[15:35:29] kies^: has joined #ruby
[15:37:54] IrishGringo: has joined #ruby
[15:38:16] lipoqil: has joined #ruby
[15:38:23] govg: has joined #ruby
[15:38:52] nodejunkie: has joined #ruby
[15:39:32] kalopsian: has joined #ruby
[15:40:20] gbgdev: has joined #ruby
[15:42:22] Fizz: has joined #ruby
[15:42:51] JamieD: has joined #ruby
[15:43:33] dhollinger: has joined #ruby
[15:44:26] aegis3121: has joined #ruby
[15:46:41] duckpuppy: has joined #ruby
[15:47:03] sgambino: has joined #ruby
[15:48:04] bkxd: has joined #ruby
[15:48:37] mary5030: has joined #ruby
[15:48:42] mooru: has joined #ruby
[15:48:55] eyesnot: has joined #ruby
[15:49:27] blackmes1: has joined #ruby
[15:50:14] mary5030: has joined #ruby
[15:52:04] nofacade: has joined #ruby
[15:53:09] rkazak: has joined #ruby
[15:54:52] krz: has joined #ruby
[15:55:30] dudedudeman: has joined #ruby
[15:55:31] ilzoff: has joined #ruby
[15:57:58] nettoweb: has joined #ruby
[15:58:18] chouhoulis: has joined #ruby
[15:58:31] ElFerna: has joined #ruby
[15:58:40] avril14th: has joined #ruby
[15:59:21] avril14th: Hello, will MRI support using multiple cores one of these days? How is it possible to have multiple sidekiq running on different ruby each with an assigned CPU?
[15:59:34] kalopsian: has joined #ruby
[15:59:47] Guest38: has joined #ruby
[16:00:27] despai: has joined #ruby
[16:00:35] newdan: avril14th: AFAIK Matz has plans to eventually remove the GIL (which should allow multicore) but that is very far in the future
[16:00:44] newdan: avril14th: JRuby does support multicore now (I think)
[16:00:51] avril14th: newdan: okay.
[16:00:51] arashb: has joined #ruby
[16:00:52] PedramT: has joined #ruby
[16:00:56] meves: has joined #ruby
[16:00:57] mfb2: has joined #ruby
[16:01:00] havenwood: avril14th: MRI (or rather CRuby or YARV these days) does support using multiple cores. You can use multiple processes or threads for the variety of things that don't lock the GVL.
[16:01:44] avril14th: I got a shitload of code (not a web app) using tons of gems (and drink tons of coffee) and I'm scared that changing the interpreter will yield troubles
[16:02:08] avril14th: Don't know if I should
[16:02:15] havenwood: avril14th: Try JRuby and see if your tests pass? It's easy to try.
[16:02:34] meves: has joined #ruby
[16:02:55] avril14th: well, that's the thing, this code is still in bootstrap mode. tests are not that present yet
[16:03:20] skade: has joined #ruby
[16:03:32] avril14th: and they're freaking hard to write. all this code is probabilities and machine learning and external services and document format conversion
[16:03:46] avril14th: whatever, one day I'll write them
[16:03:57] havenwood: Ruby 3 in 2020. A bit less than four years away now! (2020 seems like it should be the distant future. :O)
[16:03:59] avril14th: right now I just want to find out how I can have a VM with 4 cores run my stuff
[16:04:08] Canar: has joined #ruby
[16:04:16] astrobun_: has joined #ruby
[16:04:26] puria: has joined #ruby
[16:04:38] ilzoff_: has joined #ruby
[16:04:55] avril14th: I thought I could have like 4 ruby running 1 sidekiq each
[16:05:01] avril14th: just don't know how I can do that
[16:05:10] Canar: has joined #ruby
[16:06:00] gbgdev: has joined #ruby
[16:06:39] dudedudeman: has joined #ruby
[16:07:02] gbgdev: has joined #ruby
[16:07:05] at46: has joined #ruby
[16:07:12] newdan: avril14th: Maybe this will help https://github.com/grosser/parallel
[16:08:06] hxegon: has joined #ruby
[16:08:11] avril14th: newdan: that look cool, I'll inquire that, thx
[16:08:39] havenwood: avril14th: You might take a look at Rescue for forking rather than threading: https://github.com/resque/resque
[16:09:00] avril14th: havenwood: Can't do that right now
[16:09:06] avril14th: I have a home made gem on top of sidekiq
[16:09:19] finisherr: has joined #ruby
[16:09:23] avril14th: that allows both concurrent and subsequent processing (1 eorker after another)
[16:09:42] avril14th: not ready to port that to resque atm
[16:10:07] havenwood: avril14th: Sidekiq is compatible with Resque. Mmm.
[16:10:30] avril14th: yes, the job pushing thing. Not sure about the rest. I don't think it would be too hard to port. but I can't do it right now
[16:10:34] kappy: has joined #ruby
[16:10:37] avril14th: I'd better open source my stuff
[16:10:43] avril14th: looks like the fastest way there lol
[16:11:13] newdan: Wow, Rubinius has a GVL?
[16:11:20] skade: has joined #ruby
[16:12:18] havenwood: newdan: nope
[16:12:26] havenwood: shevy: Global VM Lock
[16:12:36] havenwood: shevy: Like a Global Interpreter Lock, but for a VM
[16:12:40] nerium: has joined #ruby
[16:13:00] newdan: Oh I see a Rubinius blog post talking about the GVL but that's from 2011
[16:13:12] tomchapin: has joined #ruby
[16:13:16] havenwood: shevy: MRI had a GIL and YARV has a GVL. Pedantry! \o/
[16:13:29] hxegon: havenwood had or has?
[16:13:36] IrishGringo: has joined #ruby
[16:14:06] havenwood: hxegon: 1.8 is dead!
[16:14:11] newdan: hxegon: Technically MRI is not currently maintained, Ruby's implementation is now YARV
[16:14:25] shevy: matz ruby!
[16:14:28] newdan: hxegon: So the same problem still exists but its name changed when Ruby switched from MRI to YARV
[16:14:29] tsunamie: has joined #ruby
[16:14:31] stannard: has joined #ruby
[16:14:37] darkxploit: has joined #ruby
[16:14:38] havenwood: hxegon: (That's the only reason for my past tense.)
[16:15:23] shevy: oh... a new rubygems is out but not on https://rubygems.org/pages/download ?
[16:16:01] shevy: I am dumb
[16:16:11] shevy: "2.5.2 - February 1, 2016"
[16:16:15] shevy: I thought that was january haha
[16:16:58] shevy: hmm nope... download link does not work for me
[16:17:36] mikecmpbll: has joined #ruby
[16:18:17] havenwood: shevy: gem update --system
[16:18:21] newdan: shevy: Same here, trying to download the .tgz file gives me some XML
[16:18:34] ilzoff: has joined #ruby
[16:18:38] shevy: I am too scared to update my whole system :D
[16:18:49] Lochez: has joined #ruby
[16:19:08] shevy: guess it will take a while before mirrors are synced and such
[16:21:33] mfb2: has joined #ruby
[16:22:44] fedexo: has joined #ruby
[16:22:59] avril14th: ok found it. You can have capistrano run multiple sidekiq processes
[16:23:03] avril14th: as easy as that
[16:24:07] jokke: has joined #ruby
[16:26:25] dudedudeman: has joined #ruby
[16:26:31] william3: has joined #ruby
[16:27:48] havenwood: avril14th: nice :)
[16:27:49] tomchapin: has joined #ruby
[16:28:55] mostlybadfly: has joined #ruby
[16:28:59] VeryBewitching: has joined #ruby
[16:29:18] cschneid_: has joined #ruby
[16:29:35] avril14th: hi VeryBewitching
[16:30:02] krobzaur_: has joined #ruby
[16:30:20] aegis3121: has joined #ruby
[16:31:02] pdoherty: has joined #ruby
[16:32:05] despai: has joined #ruby
[16:32:10] Meow-J: has joined #ruby
[16:32:30] borodin: has joined #ruby
[16:34:04] shevy: yo BeryVewitching
[16:34:38] hobodave: has joined #ruby
[16:34:52] ElFerna: has joined #ruby
[16:36:19] dlitvak: has joined #ruby
[16:37:53] zacstewart: has joined #ruby
[16:39:46] tiagobarreto: has joined #ruby
[16:40:09] lee-jon: has joined #ruby
[16:41:26] shevy: when you have a class that accepts a lot of commandline --switches
[16:41:48] shevy: is it better to store them all in individual @ivars or should these be bundled into a hash that keeps track of these values respectively?
[16:41:50] chouhoulis: has joined #ruby
[16:42:01] jbrhbr: has joined #ruby
[16:42:28] tubbo: i usually keep an options hash for that stuff
[16:42:38] tubbo: easier to handle with OptionParser
[16:43:45] IrishGringo: has joined #ruby
[16:44:29] mg^: I keep 'em in a hash
[16:45:22] cmckee: has joined #ruby
[16:45:30] babblebre: has joined #ruby
[16:48:01] aufi: has joined #ruby
[16:49:03] mark2: has left #ruby: ("PART #RubyOnRails :PART #jquery :PART #reactjs :PART ##javascript :PART #elixir-lang :QUIT :Leaving.")
[16:50:33] nodejunkie: has joined #ruby
[16:50:35] al2o3-cr: jhass: ruby_kml worked, thanks
[16:51:00] gambl0re: has joined #ruby
[16:51:00] gambl0re: has joined #ruby
[16:53:34] tomchapin: has joined #ruby
[16:53:43] dudedudeman: has joined #ruby
[16:55:12] dlitvak: has joined #ruby
[16:55:18] govg: has joined #ruby
[16:56:50] Rodya_: has joined #ruby
[16:56:52] Senecea: has joined #ruby
[16:57:51] yoongkang: has joined #ruby
[16:58:16] sftrabbit: has joined #ruby
[16:58:39] B1n4r10: has joined #ruby
[17:00:29] hobodave_: has joined #ruby
[17:00:34] dionysus69: has joined #ruby
[17:04:14] vlunkr: has joined #ruby
[17:04:30] amclain: has joined #ruby
[17:04:52] vlunkr: has left #ruby: ()
[17:04:58] A124: has joined #ruby
[17:05:10] dmolina: has joined #ruby
[17:05:12] agent_white: has joined #ruby
[17:05:37] lee-jon: has joined #ruby
[17:05:38] blunckr: has joined #ruby
[17:06:54] Lochez: has joined #ruby
[17:07:10] whiteline: has joined #ruby
[17:08:05] at46: has joined #ruby
[17:08:49] skcin7: has joined #ruby
[17:09:01] RalfJ: has joined #ruby
[17:09:01] agent_white: Mornin' folks
[17:09:18] platzhirsch: has left #ruby: ()
[17:09:52] blunckr: has left #ruby: ()
[17:10:41] meves: has joined #ruby
[17:11:03] dhollinger: has joined #ruby
[17:13:10] IrishGringo: has joined #ruby
[17:13:18] gdd229: has joined #ruby
[17:14:36] mondok: has joined #ruby
[17:14:38] arup_r: has joined #ruby
[17:14:46] TomPeed: has joined #ruby
[17:14:53] Spami: has joined #ruby
[17:15:04] grill: has joined #ruby
[17:15:10] chouhoulis: has joined #ruby
[17:15:11] vlunkr: has joined #ruby
[17:16:07] jabreity_: has joined #ruby
[17:16:08] jabreity_: has joined #ruby
[17:16:12] grill: could someone in here explain to me how I could stream stdout using popen3 without filling up its buffer?
[17:18:35] jabreity: has joined #ruby
[17:18:42] PedramT: has joined #ruby
[17:19:02] crdpink: has joined #ruby
[17:19:32] rrichardsr3: has joined #ruby
[17:20:12] crdpink: has joined #ruby
[17:21:13] astrobun_: has joined #ruby
[17:24:02] valetudo: has joined #ruby
[17:24:07] Ebok: has joined #ruby
[17:24:50] karapetyan: has joined #ruby
[17:25:05] LoneHerm_: has joined #ruby
[17:25:57] psye: has joined #ruby
[17:26:26] sgambino: has joined #ruby
[17:26:42] jabreity: has joined #ruby
[17:26:42] jabreity: has joined #ruby
[17:27:26] htmldrum: has joined #ruby
[17:27:31] Eiam: has joined #ruby
[17:27:49] JJM: has joined #ruby
[17:27:50] jds: has joined #ruby
[17:29:00] elifoster: has joined #ruby
[17:29:14] maho: has joined #ruby
[17:29:15] davedev24: has joined #ruby
[17:29:22] maho: has left #ruby: ()
[17:29:55] davedev24: has joined #ruby
[17:30:25] kirillzh: has joined #ruby
[17:30:47] caliostro: has joined #ruby
[17:30:49] caliostro_: has joined #ruby
[17:31:13] mrmargolis: has joined #ruby
[17:31:16] grill: I'm running into this issue where I run rsync via popen3() and monitor stdout. however, if rsync's output is too long, the os buffer fills up and rsync hangs forever. what's going on here?
[17:31:24] kirillzh: has joined #ruby
[17:31:38] the_drow: has joined #ruby
[17:33:01] duckpuppy: has joined #ruby
[17:33:24] x77686d: has joined #ruby
[17:35:04] gizmore: has joined #ruby
[17:35:15] the_drow: Is there a way to declare a typed array that only accept a specific Struct type?
[17:35:50] jhass: the_drow: how do you declare it so that it doesn't?
[17:36:01] dlitvak: has joined #ruby
[17:36:59] the_drow: I'm looking for a specialized array implementation to help speed up appending to https://github.com/TwP/logging/blob/master/lib/logging/appenders/buffering.rb#L39 which only accepts a LogEvent struct
[17:37:09] rakm: has joined #ruby
[17:37:22] Mr0riss0: has joined #ruby
[17:37:25] adgtl: has joined #ruby
[17:37:32] coyo: has joined #ruby
[17:37:46] the_drow: jhass: In python I would have written some binding to std::list or something similar
[17:38:08] the_drow: But I don't know Ruby's C API well enough
[17:38:45] caliostro: has left #ruby: ("Exit-Chat")
[17:38:45] jhass: http://crystal-lang.org/api/Deque.html
[17:39:01] grill: i take it no one in here has ever used open3?
[17:39:16] dfockler: has joined #ruby
[17:39:25] shellie_: has joined #ruby
[17:39:26] Musashi007: has joined #ruby
[17:39:29] the_drow: jhass: But that doesn't really work with Ruby yet
[17:39:40] gizmore: grill: i did
[17:40:49] djbkd: has joined #ruby
[17:40:56] the_drow: jhass: That is, as far as I recall you can't really bind crystal code to Ruby code yet
[17:40:56] jhass: ugh, I'm looking at the wrong channel :/
[17:41:00] the_drow: I saw an issue about it
[17:41:03] jhass: sorry I'm a bit beside me, just ignore me
[17:41:08] jhass: well you can
[17:41:17] jhass: by using the Ruby C API from crystal
[17:41:36] the_drow: Yeh but it's not "meant for it" according to one issue I saw
[17:41:41] newdan: has left #ruby: ()
[17:41:42] glcx: has joined #ruby
[17:41:52] jhass: it runs a second GC, which can be undesirable
[17:42:42] Macaveli: has joined #ruby
[17:42:45] the_drow: jhass: See https://github.com/manastech/crystal/issues/1717
[17:42:48] DEA7TH: how can I wait until someone writes to a fifo (Unix named pipe) and when it happens, read all of its contents into a variable?
[17:43:07] mrsolow: has joined #ruby
[17:43:10] the_drow: I'm looking for a library that already implements a C extension of a typed array
[17:43:23] the_drow: DEA7TH: use select to wait for the file descriptor
[17:43:23] manus: has joined #ruby
[17:44:51] momomomomo: has joined #ruby
[17:45:06] DEA7TH: the_drow: then how can I read all the contents which are currently available?
[17:45:13] benlieb: has joined #ruby
[17:45:27] grill: gizmore did you ever have to deal with stdout deadlocks?
[17:45:30] the_drow: IO.read maybe?
[17:45:38] the_drow: I'm not much of a ruby dev
[17:45:41] kalopsian: has joined #ruby
[17:45:49] gizmore: grill: yeah.... when git required a password... unsolved problem :(
[17:46:00] the_drow: Google it. I think you'll find the answer
[17:46:10] DEA7TH: IO.read reads only n bytes, but I don't know the length in advance
[17:46:10] benlieb: I'm trying to verify some calculations in a spec, but the floating point precision "error" is getting me. expected: "-t 10.1", got: "-t 10.100000000000001" How do I solve this?
[17:46:20] DEA7TH: where n is its argument
[17:46:20] TomyLobo: how would i handle reading binary files, modifying the binary a bit and passing them on to an HTTP PUT?
[17:46:38] TomyLobo: are ruby strings up to the task?
[17:47:01] crank1988: has joined #ruby
[17:47:07] User458764: has joined #ruby
[17:49:32] adgtl: has joined #ruby
[17:49:59] namxam: has joined #ruby
[17:50:04] william3: has joined #ruby
[17:50:09] joonty: has joined #ruby
[17:50:31] sftrabbit: has joined #ruby
[17:52:44] the_drow: DEA7TH: I don't think you can. You don't know the length of the buffer you have
[17:52:55] the_drow: You have to read N bytes until the buffer is empty
[17:52:57] DEA7TH: I'm going to use a file instead then
[17:54:06] DEA7TH: is it ok to use a file when I'm actually only writing from one of the processes and only reading from another? very small amounts of data
[17:54:31] DEA7TH: I know it will work
[17:54:48] segmond: has joined #ruby
[17:55:19] IrishGringo: has joined #ruby
[17:55:35] preyalone: has joined #ruby
[17:57:23] mikecmpbll: has joined #ruby
[17:57:27] grill: could someone in here explain to me how I could stream stdout using popen3 without filling up its buffer? (ruby)
[17:57:31] grill: I'm running into this issue where I run rsync via popen3() and monitor stdout. however, if rsync's output is too long, the os buffer fills up and rsync hangs forever. what's going on here?
[17:59:07] jrvlima: has joined #ruby
[17:59:12] johnnyt: has joined #ruby
[17:59:41] momomomomo: grill: $stdout.ioflush ?
[18:00:15] momomomomo: has left #ruby: ()
[18:00:39] davedev24: has joined #ruby
[18:02:03] karapetyan: has joined #ruby
[18:02:24] firstdayonthejob: has joined #ruby
[18:02:57] grill: here's my code. does stdout.each not clear out the os buffer on each line read? http://hastebin.com/jazutuxame.rb
[18:03:15] ElFerna: has joined #ruby
[18:03:56] PedramT: has joined #ruby
[18:04:04] arian0n: has joined #ruby
[18:05:56] pietr0: has joined #ruby
[18:06:33] Shaboum: has joined #ruby
[18:08:26] johnnyt: has joined #ruby
[18:08:43] at46: has joined #ruby
[18:10:55] pilne: has joined #ruby
[18:11:11] IrishGringo: has joined #ruby
[18:12:13] Mon_Ouie: 'return true if ???' <- after returning true, you're no longer reading from the buffer
[18:12:21] greynetic: has joined #ruby
[18:13:18] akaiiro: has joined #ruby
[18:13:49] ramfjord: has joined #ruby
[18:14:02] freerobby: has joined #ruby
[18:14:04] aegis3121: has joined #ruby
[18:14:08] sole: has joined #ruby
[18:14:27] grill: Mon_Ouie ok. so?
[18:15:10] moss: has joined #ruby
[18:15:30] ledestin: has joined #ruby
[18:16:43] thegunbuster: has joined #ruby
[18:17:13] adgtl: has joined #ruby
[18:17:59] thegunbuster: hey, I had a question. Would this gist (https://gist.github.com/vaibhav-y/e7350a01acfcf0c87707) be a valid way to simulate goto / state transfer in ruby?
[18:18:33] thegunbuster: My goal is to implement a binomial RNG, but most papers specify psuedo code that relies heavily on gotos
[18:19:09] atmosx: has joined #ruby
[18:19:25] thegunbuster: so I came up with that gist. Does anyone have any better ideas / advice / opinions? Would love to hear them as long as you're not flaming me for thinking about gotos
[18:19:56] dseitz: has joined #ruby
[18:20:31] daniel_d: has joined #ruby
[18:20:52] nettoweb: has joined #ruby
[18:21:37] PedramT: has joined #ruby
[18:21:37] Canar: thegunbuster: http://patshaughnessy.net/2012/2/29/the-joke-is-on-us-how-ruby-1-9-supports-the-goto-statement
[18:21:56] Canar: IDK if that still works in current Ruby though. :)
[18:22:10] thegunbuster: I read that. But I would rather not have to recompile ruby from scratch :)
[18:22:13] last_staff: has joined #ruby
[18:22:22] Ox0dea: `throw` and `catch`, then.
[18:23:16] thegunbuster: Do you think that has any specific advantages over loop { case {...} } ?
[18:23:47] thegunbuster: I like that idea, just wondering if it would be good for stuff like this: http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.47.8407&rep=rep1&type=pdf
[18:23:50] william3: has joined #ruby
[18:24:04] tjohnson: has joined #ruby
[18:24:06] thegunbuster: page 6 of that if you do open it
[18:25:08] dfockler: thegunbuster: Unless you are doing some sort of multithreaded implementation, then as long as the state gets changed does it matter how it happens?
[18:26:17] thegunbuster: ok, good point. I didn't consider that.
[18:26:29] daniel_d: has left #ruby: ("Leaving")
[18:26:45] thegunbuster: I'll experiment with the throw catch system, since it seems to be safer against threads
[18:27:25] jbrhbr: has joined #ruby
[18:28:00] thegunbuster: has left #ruby: ()
[18:28:31] ded: has joined #ruby
[18:29:05] jason^: has joined #ruby
[18:29:27] caliostro_: what is the difference among rake ... and bundle exec rake ... ?
[18:29:39] dudedudeman: has joined #ruby
[18:29:44] gfvcastro: has joined #ruby
[18:30:00] jason^: what's a good way to post data to a web server? it doesn't have to be fancy, i just need to essentially do something like this example in curl: curl -i -XPOST 'http://localhost:8086/write?db=home' --data-binary "ups_stats,ups=primary_stack,metric=involts value=$involts"
[18:32:04] snowy: has joined #ruby
[18:32:38] dfockler: caliostro_: bundle exec rake uses your Gemfile to determine what gems to use when running the rake commands
[18:32:54] Coldblackice: has joined #ruby
[18:33:14] dfockler: or any command for that matter like `bundle exec whatever command`
[18:33:26] dfockler: any ruby command at least
[18:34:13] dfockler: jason^: Are you trying to use ruby to do it? Or just anything?
[18:35:13] Pintor: has joined #ruby
[18:36:22] rht: has joined #ruby
[18:36:51] tomchapin: has joined #ruby
[18:37:10] freezevee: has joined #ruby
[18:37:17] dome22xl: has joined #ruby
[18:37:49] sftrabbit: has joined #ruby
[18:38:03] zerowaitstate: I discovered today that the mysql2 gem doesn't actually dispose of libmysqlcient result sets after you've finished iterating over them. there's a period of time where they hang around in C-land, during which you cannot execute another query or you get "Commands out of sync; you cna't run this command now (Mysql2::Error)." Do you guys insert busy waits to overcome this, or is there some other way of handling it?
[18:38:37] Musashi007: has joined #ruby
[18:39:03] freezevee: guys I have been programming for some years, then started with Ruby/Rails and going on for the last 2-3 yrs and I've become a Rails developer for last 3 months, so I am looking for programs to get more knowledge. What could you suggest as a course, degree or anything similar? Maybe mentoring ? I am looking into Ruby/Linux/devOps
[18:39:43] bronson: has joined #ruby
[18:39:53] Pintor: Hi! I need some help please. My code obtains a value from a "gets.chomp", and I split that value. Depending of what says "splitvalue[0]" shows an output. It works when I put at least one word on uppercase, but if I write any value in only downcase shows error with split method, why is happening this? Can someone answer me?
[18:39:55] binaryplease: has joined #ruby
[18:40:17] Pintor: I put at least one word capitalized*
[18:40:32] dfockler: zerowaitstate: https://github.com/brianmario/mysql2/issues/307#issuecomment-33438621
[18:40:33] jason^: dfockler: ruby would be good
[18:40:35] havenwood: Pintor: Show your error.
[18:40:38] bronson: Pintor: can't understand... put some code on gist.github.com?
[18:41:00] Pintor: give a minute and I can put it there
[18:41:18] arianon: has joined #ruby
[18:41:57] dfockler: jason^: https://www.ruby-toolbox.com/categories/http_clients Take your pick, most of them are pretty straight forward
[18:42:10] zzz: has joined #ruby
[18:42:26] binaryplease: I get this error when running db:migrate: http://vpaste.net/Jujoe my migraton is http://vpaste.net/85Ffn Rails 4.2.5.1 ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]
[18:42:38] Pintor: https://gist.github.com/anonymous/3f044482d69fdd05e467 you can ignore the big Hash, skip to line 612
[18:43:13] Pintor: 626* my problem happens only on that "else"
[18:44:12] bronson: Pintor: and what's the problem?
[18:44:49] Pintor: I write "Light Something" and shows "Luz", that's ok
[18:44:56] k13nox: has joined #ruby
[18:45:02] Pintor: I write 'Light something' and shows 'Luz', already ok
[18:45:13] Pintor: I write 'light Something' and, again, shows 'Luz', it's ok
[18:45:21] Pintor: but I write 'light something' and displays error
[18:46:00] spider-mario: has joined #ruby
[18:46:21] bronson: Pintor: what error?
[18:46:33] Pintor: shows error if is all downcase
[18:46:46] bronson: I mean, what is the error message?
[18:46:56] shevy: does anyone of you happen to have an example with ruby prawn to delete a .pdf page? if not that is ok, I can use pdftk but I was wondering about a pure ruby solution
[18:47:04] shevy: (I mean a page in said .pdf file)
[18:47:36] varunwachaspati: has joined #ruby
[18:48:21] Pintor: (directory):627:in '(main)': undefined method 'split' for nil:NilClass (NoMethodError)
[18:48:31] shevy: you got a nil there!
[18:48:44] Pintor: sorry my infinite ignorance, what is that?
[18:48:59] shevy: btw you can store with .rb end
[18:49:03] shevy: then you get coloured output on gist
[18:49:14] dfockler: shevy: https://github.com/prawnpdf/prawn/issues/886 Looks like it's an open issue
[18:49:30] shevy: the line seems to be: separado = buscar.split
[18:49:40] shevy: Pintor, the solution may be to ensure that "buscar" always has a value
[18:49:45] shevy: dfockler ok
[18:49:46] bronson: Pintor: either write 'buscar = buscar.downcase' or 'buscar.downcase!'
[18:50:15] mdw: has joined #ruby
[18:50:20] bronson: Pintor: http://ruby-doc.org/core-2.1.0/String.html#method-i-downcase
[18:50:26] Pintor: hum, like this? Give me a minute to fix and upload it on gist
[18:50:28] bronson: see the docs on when downcase! returns nil.
[18:50:35] psye: has joined #ruby
[18:51:02] hasitha: has joined #ruby
[18:51:10] bronson: (i.e. when you use downcase!, there's no need to assign the result -- the string is changed in-place)
[18:51:48] Pintor: ... I feel some dork
[18:51:49] shevy: Pintor, don't forget to save via trailing .rb
[18:52:24] zeroDivisible: has joined #ruby
[18:52:26] followinfrared: has joined #ruby
[18:52:34] Pintor: just replaced first "buscar" to "buscar = gets.chomp.downcase"
[18:52:38] Ox0dea: Pintor: Lots of "bang methods" return `nil` if their operation would not modify the receiver.
[18:52:55] Pintor: I am starting on Ruby, hehe
[18:53:23] Pintor: thanks guys, and sorry for disturbing you
[18:53:39] zerowaitstate: dfockler: I actually tried that, and it doesn't do anything. immediately after the call to abandon_results!, mysql queries still fail
[18:54:09] bronson: Pintor: yep, sounds like a good fix. may your other bugs be this easy.
[18:54:34] william3: has joined #ruby
[18:54:36] danielwzd: has joined #ruby
[18:54:54] shadoi: has joined #ruby
[18:55:00] Ox0dea: Pintor: https://eval.in/511275
[18:55:03] Ox0dea: For reference.
[18:55:08] Pintor: thanks you so much, bronson and shevy
[18:55:27] shevy: charles bronson is in da house
[18:55:49] Pintor: ohhh, I understand now haha
[18:55:56] araujo: has joined #ruby
[18:56:06] binaryplease: I get the error "undefined method 'integer'" when running db:migrate: http://vpaste.net/Jujoe my migraton is http://vpaste.net/85Ffn Rails 4.2.5.1 ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]
[18:56:57] mfb2: has joined #ruby
[18:57:13] araujo: has joined #ruby
[18:57:15] greynetic: has joined #ruby
[18:57:15] adgtl_: has joined #ruby
[18:57:17] mg^: has joined #ruby
[18:58:00] JDiPierro: has joined #ruby
[18:58:40] yoongkang: has joined #ruby
[18:58:42] Chachi: has joined #ruby
[18:58:43] sankaber: has joined #ruby
[18:59:04] Ox0dea: binaryplease: You've spelled it "interger".
[18:59:25] kies^: has joined #ruby
[19:00:12] baweaver: has joined #ruby
[19:00:16] cjbischoff: has joined #ruby
[19:00:38] djbkd: has joined #ruby
[19:00:50] dudedudeman: has joined #ruby
[19:01:26] binaryplease: Ox0dea: you cant believe how long I tryed to solve this.
[19:01:29] binaryplease: ACTION is ashamed
[19:01:44] djbkd: has joined #ruby
[19:02:07] Limix: has joined #ruby
[19:02:14] Anderson69s_Deb: has joined #ruby
[19:02:45] hobodave: has joined #ruby
[19:03:59] patientj: has joined #ruby
[19:04:01] adaedra: binaryplease: that's common. Dumbest errors are usually the hardest to find.
[19:04:09] mfb2: has joined #ruby
[19:04:11] Torrone: has joined #ruby
[19:04:13] cmckee: has joined #ruby
[19:05:13] Torrone: hello, what is it called in ruby when you assign a variable like so : variable = { 0=> "a", 1=> "b", 2 => "c" }[otherVariable]
[19:06:08] adaedra: that seems inefficient
[19:06:25] adaedra: you create a hash (between {}) and then get a value with []
[19:06:36] Torrone: Pintor, it works a bilt like a puts statement
[19:06:39] mg^: has joined #ruby
[19:06:58] adaedra: so if otherVariable is 1, in your example, variable will be "b"
[19:07:06] Torrone: but I need to figure out what I can and cannot do, I saw it in a file on the internet
[19:07:15] Torrone: adaedra, exactly
[19:07:19] mg^: has left #ruby: ()
[19:07:21] Ox0dea: It's a mapping.
[19:07:35] krz: has joined #ruby
[19:07:48] mg^^: has joined #ruby
[19:07:54] Voyage: has joined #ruby
[19:09:39] lemur: has joined #ruby
[19:11:14] despai: has joined #ruby
[19:13:48] LoneHermit: has joined #ruby
[19:15:06] BTRE: has joined #ruby
[19:15:25] patientj: has joined #ruby
[19:17:20] joonty: has joined #ruby
[19:20:02] einarj: has joined #ruby
[19:22:22] astrobun_: has joined #ruby
[19:24:42] zacstewart: has joined #ruby
[19:24:50] einarj: has joined #ruby
[19:25:50] incite: has joined #ruby
[19:26:37] sol: has joined #ruby
[19:26:39] skade: has joined #ruby
[19:26:47] ta: has joined #ruby
[19:29:09] danielwzd: has joined #ruby
[19:31:30] aswinramakrish: has joined #ruby
[19:31:31] Eiam: has joined #ruby
[19:31:41] aswinramakrish: has left #ruby: ()
[19:32:04] burgestrand: has joined #ruby
[19:32:16] pawnbox: has joined #ruby
[19:32:16] greynetic: has joined #ruby
[19:32:16] 92AACA3RA: has joined #ruby
[19:34:07] Dimik: has joined #ruby
[19:34:25] B1n4r10: has joined #ruby
[19:34:33] User458764: has joined #ruby
[19:34:37] mdw: has joined #ruby
[19:35:00] skcin7: has joined #ruby
[19:35:05] dudedudeman: has joined #ruby
[19:35:09] kalopsian: has joined #ruby
[19:35:57] Jackneill: has joined #ruby
[19:36:32] shadoi: has joined #ruby
[19:36:38] codecop: has joined #ruby
[19:37:26] shevy: we need to make ruby more kickass!
[19:38:15] Voyage: has joined #ruby
[19:38:33] shevy: by improving everything!!!
[19:38:35] ur5us: has joined #ruby
[19:38:41] shevy: Ebok no idea really
[19:38:51] freezevee: guys I have been programming for some years, then started with Ruby/Rails and going on for the last 2-3 yrs and I've become a Rails developer for last 3 months, so I am looking for programs to get more knowledge. What could you suggest as a course, degree or anything similar? Maybe mentoring ? I am looking into Ruby/Linux/devOps
[19:39:27] joonty: has joined #ruby
[19:39:36] djbkd: has joined #ruby
[19:40:35] danielwzd: https://www.railstutorial.org/
[19:40:46] danielwzd: The ebook is free
[19:41:52] sgambino_: has joined #ruby
[19:41:53] djbkd: has joined #ruby
[19:42:59] cpup: has joined #ruby
[19:42:59] slxbn: has joined #ruby
[19:43:32] djbkd: has joined #ruby
[19:45:40] kalopsian: has joined #ruby
[19:46:28] tsunamie: has joined #ruby
[19:46:59] danielwzd: has joined #ruby
[19:49:59] moeabdol: has joined #ruby
[19:51:11] baweaver: has joined #ruby
[19:52:12] bmalum: has joined #ruby
[19:53:23] renancarvalho: has joined #ruby
[19:54:29] nertzy: has joined #ruby
[19:55:16] anisha: has joined #ruby
[19:56:32] mdw: has joined #ruby
[19:58:17] elifoster: has joined #ruby
[19:59:18] yoongkang: has joined #ruby
[19:59:27] yeticry_: has joined #ruby
[20:00:24] cmckee: has joined #ruby
[20:00:33] jamw: has joined #ruby
[20:00:40] molgrew: has joined #ruby
[20:01:06] sgambino: has joined #ruby
[20:01:07] molgrew: has left #ruby: ()
[20:01:44] tomchapin: has joined #ruby
[20:02:24] Renich: has joined #ruby
[20:04:01] freerobby: has joined #ruby
[20:04:25] freerobby: has joined #ruby
[20:05:29] freerobby: has joined #ruby
[20:05:36] Ebok: has joined #ruby
[20:05:53] yfeldblum: has joined #ruby
[20:06:00] tomchapin: has joined #ruby
[20:08:23] poguez_: has joined #ruby
[20:08:28] ht_: has joined #ruby
[20:08:59] grekko: has joined #ruby
[20:09:08] nerium: has joined #ruby
[20:10:04] william3: has joined #ruby
[20:10:40] Aviio: has joined #ruby
[20:11:42] shevy: Ebok you working on anything cool?
[20:11:59] [Butch]: has joined #ruby
[20:13:15] k13nox: has joined #ruby
[20:14:25] Aviio: oh well nobody asks ME if im working on anything cool
[20:14:26] Azulinho: has joined #ruby
[20:14:52] podman: has joined #ruby
[20:15:05] danielwzd: Aviio are you working on anything cool?
[20:15:43] Aviio: danielwzd: As a matter of fact, I am! Thank's for asking, you're so kind :)
[20:16:18] Aviio: Im working on a module for something called 'SecGen' and this module will randomly generate vulnerable web applications to help students learn web app testing techniques
[20:17:08] danielwzd: Sounds interesting
[20:17:31] luckyme: has joined #ruby
[20:18:39] sgambino: has joined #ruby
[20:19:30] ElFerna_: has joined #ruby
[20:21:38] pdoherty: has joined #ruby
[20:21:53] chrisrhoden: has joined #ruby
[20:21:55] zacstewa_: has joined #ruby
[20:23:28] sandstrom: has joined #ruby
[20:23:42] lemur: has joined #ruby
[20:25:25] sormik: has joined #ruby
[20:25:36] s00pcan: has joined #ruby
[20:25:46] sormik: has left #ruby: ()
[20:27:19] ravinggenius: has joined #ruby
[20:27:34] einarj_: has joined #ruby
[20:27:48] jbrhbr: has joined #ruby
[20:29:40] dlitvak: has joined #ruby
[20:30:02] freerobby: has joined #ruby
[20:30:26] ljames: has joined #ruby
[20:31:13] robbyoconnor: has joined #ruby
[20:31:14] chrisrhoden: has joined #ruby
[20:31:34] einarj: has joined #ruby
[20:32:48] Macaveli: has joined #ruby
[20:33:25] djbkd: has joined #ruby
[20:34:39] atmosx_laptop: has joined #ruby
[20:34:55] yqt: has joined #ruby
[20:35:00] yoongkang: has joined #ruby
[20:36:24] nofxx: has joined #ruby
[20:36:27] anisha: has joined #ruby
[20:39:11] aegis3121: has joined #ruby
[20:39:46] arlek: has joined #ruby
[20:39:51] spooq: has joined #ruby
[20:41:25] joonty: has joined #ruby
[20:41:41] DoubleMalt: has joined #ruby
[20:41:50] s00pcan_: has joined #ruby
[20:42:08] tomchapin: has joined #ruby
[20:42:12] FernandoBasso: has joined #ruby
[20:42:46] serbalgi: has joined #ruby
[20:45:11] zacstewart: has joined #ruby
[20:46:02] elifoster: has joined #ruby
[20:46:07] El3ktra: has joined #ruby
[20:46:07] El3ktra: has joined #ruby
[20:46:21] baweaver: has joined #ruby
[20:46:49] skade: has joined #ruby
[20:47:37] al2o3-cr: has joined #ruby
[20:47:53] grekko: has joined #ruby
[20:48:13] arianon: has joined #ruby
[20:51:41] grill: what is incorrect about this expression? stderr.length > 0 ? raise(Exception, stderr) : return false
[20:51:51] mdw: has joined #ruby
[20:52:37] nfk|laptop: has joined #ruby
[20:53:10] dionysus69: has joined #ruby
[20:54:00] chrisrhoden: has joined #ruby
[20:54:14] Aviio: what type is stderr ?
[20:54:53] jackjackdripper: has joined #ruby
[20:55:18] adaedra: Aviio: you can ask it directly, do $stderr.class
[20:55:24] jackjackdripper: has joined #ruby
[20:55:30] einarj_: has joined #ruby
[20:55:42] adaedra: oh wait, I missed a line here.
[20:55:46] dlitvak: has joined #ruby
[20:55:55] chrisrhoden: Aviio: if you're asking about $stderr, it's an IO
[20:55:59] Ebok: has joined #ruby
[20:56:03] adaedra: grill: well, do you have an error ?
[20:56:08] Aviio: sorry I was answering grill's question
[20:56:21] grill: it's because the return needs to be in parenthesis
[20:57:46] adaedra: you can also put the "return" at the beginning of the line, works too.
[20:58:08] grill: but you can't really return a raise statement, can you?
[20:58:27] sgambino: has joined #ruby
[20:58:42] adaedra: this part won't return.
[20:58:48] Aviio: return t/f and then raise based on that
[20:58:52] cmckee: has joined #ruby
[20:59:29] einarj: has joined #ruby
[20:59:53] chipotle: has joined #ruby
[21:00:01] slash_join: or return a callable that raises or does nothing, and call the callable when returned by the method.. yuck
[21:00:02] tomphp: has joined #ruby
[21:00:08] meves: has joined #ruby
[21:01:14] nchambers: has joined #ruby
[21:01:40] skade: has joined #ruby
[21:01:49] cdg: has joined #ruby
[21:02:03] agent_white: has joined #ruby
[21:02:18] Allaman: has joined #ruby
[21:02:41] nettoweb: has joined #ruby
[21:03:19] jackjackdripper: has joined #ruby
[21:03:51] Ox0dea: I suppose I was being a little facetious there, but callables are generally pretty great.
[21:04:16] minimalism: has joined #ruby
[21:04:31] hobodave: has joined #ruby
[21:05:58] list: has joined #ruby
[21:06:20] list: has left #ruby: ()
[21:06:51] slash_join: you could return an instance of an exception object... raise if the return value is a kind of exception...
[21:07:56] despai: has joined #ruby
[21:09:02] B1n4r10: has joined #ruby
[21:09:50] Kruppe: has joined #ruby
[21:09:55] mdw: has joined #ruby
[21:11:36] puria: has joined #ruby
[21:11:37] trabulmonkee: has joined #ruby
[21:12:33] william3: has joined #ruby
[21:13:58] bungoman_: has joined #ruby
[21:14:06] finisherr: has joined #ruby
[21:15:00] bmalum: has joined #ruby
[21:15:03] sgambino: has joined #ruby
[21:16:06] kirillzh: has joined #ruby
[21:18:55] mfb2: has joined #ruby
[21:19:34] chipotle: has joined #ruby
[21:19:34] sankaber: has joined #ruby
[21:19:59] momomomomo: has joined #ruby
[21:20:38] dml337ira: has joined #ruby
[21:21:02] dml337ira: has joined #ruby
[21:21:11] william3: has joined #ruby
[21:21:30] Cohedrin: has joined #ruby
[21:21:42] dml337ira: has joined #ruby
[21:22:02] aegis3121: why not just raise(Exception, stderr) if stderr.length > 0; false ?
[21:22:26] apeiros: ugh, never raise Exception
[21:22:35] apeiros: raise any subclass of it, but not Exception itself.
[21:22:40] meves: has joined #ruby
[21:23:05] aegis3121: I'm not advocating it; just mimicking the code given.
[21:23:39] astrobun_: has joined #ruby
[21:23:48] Cohedrin: has joined #ruby
[21:26:12] pdoherty: has joined #ruby
[21:26:25] dasher00: has joined #ruby
[21:26:28] vqrs: has joined #ruby
[21:28:25] Eindoofus: has joined #ruby
[21:28:35] aegis3121: has joined #ruby
[21:29:04] skade: has joined #ruby
[21:29:31] ldg: has joined #ruby
[21:29:56] despai: has joined #ruby
[21:30:20] hxegon: has joined #ruby
[21:30:37] Eindoofus: hi, how to you guys keep your minds in order during a long day of looking at code? mine feels so cluttered at the moment and i've left my desk too many times already.
[21:31:40] Chachi: has joined #ruby
[21:31:51] Papierkorb: eindoofus: checking reddit or playing a round of 2048. I'm not really good at 2048 though.
[21:32:31] Aviio: eindoofus: I go grab a coffee and check up on reddit
[21:32:33] x77686d: has joined #ruby
[21:32:42] slash_join: eindoofus: hangman in #ruby-offtopic
[21:33:20] Eindoofus: concerned that reddit will get me into the "ooo, that's interesting.. let me click *insert random link here*" cycle
[21:33:28] Eindoofus: which is very hard to leave
[21:33:40] meves: has joined #ruby
[21:33:54] Papierkorb: eindoofus: use a tea timer app or widget and put it on 5 minutes or something
[21:34:12] Aviio: eindoofus: try the pomodoro technique
[21:34:36] Ox0dea: Force yourself to purposely stub your toe every time you know you're not doing The Right Thing.
[21:35:02] Eindoofus: forgot about that. what's a good time on those? 25min work / 5min break?
[21:35:56] Ox0dea: Stubbing your toe takes a few seconds at most.
[21:35:59] Aviio: traditionally its 25 / 5
[21:36:27] ellisTAA: has joined #ruby
[21:36:29] Aviio: then a 10 min break after every 3 pomodoro's?
[21:36:33] moeabdol1: has joined #ruby
[21:36:34] Darmani: has joined #ruby
[21:36:49] Papierkorb: is that a pasta dish Aviio?
[21:36:57] Aviio: Ox0dea: toes can only take so much!
[21:37:30] Ox0dea: Aviio: The discipline is intended to come long before the toes can take no more.
[21:38:05] Ox0dea: The pinkie toe's contribution to proper balance is psychosomatic, anyway.
[21:38:09] Darmani: Hey kids<3
[21:38:31] mfb2: has joined #ruby
[21:40:54] cmckee: has joined #ruby
[21:42:23] slawrence00: has joined #ruby
[21:43:12] momomomomo: has joined #ruby
[21:44:41] ellisTAA: has joined #ruby
[21:44:56] Renich: has joined #ruby
[21:45:06] despai: has joined #ruby
[21:47:06] at46: has joined #ruby
[21:48:27] last_staff1: has joined #ruby
[21:48:53] meves: has joined #ruby
[21:49:22] ogpastaling: has joined #ruby
[21:49:37] sandstrom: has joined #ruby
[21:50:16] Aviio: is there a way to cast from a string in a hash to a bool?
[21:50:37] aegis3121: Is there a reason you really need a boolean?
[21:50:41] hobodave: has joined #ruby
[21:50:45] tomphp: has joined #ruby
[21:51:03] Aviio: well I just want to get a true/false value from some xml
[21:51:19] aegis3121: So your string is "true" ?
[21:51:23] aegis3121: (or "false")
[21:51:29] aegis3121: I woudl say str == "true"
[21:51:55] serbalgi: has joined #ruby
[21:51:57] Ox0dea: I would use Kernel#eval. :P
[21:52:02] Yeomra: has joined #ruby
[21:52:41] aegis3121: oh lord. or that.
[21:52:50] astrobun_: has joined #ruby
[21:53:34] tomphp: has joined #ruby
[21:53:51] dopie: has joined #ruby
[21:54:45] blackgoat: has joined #ruby
[21:55:09] mfb2: has joined #ruby
[21:55:28] bronson: has joined #ruby
[21:55:59] at46: has joined #ruby
[21:56:37] at46_: has joined #ruby
[21:56:46] freerobby: has joined #ruby
[21:57:31] jgt: has joined #ruby
[21:57:44] jbrhbr: has joined #ruby
[21:58:36] despai: has joined #ruby
[21:59:16] paradisaeidae: has joined #ruby
[21:59:27] hxegon: has joined #ruby
[21:59:43] momomomomo: has joined #ruby
[22:00:06] ellisTAA: has joined #ruby
[22:01:13] cmckee: has joined #ruby
[22:01:14] solars: has joined #ruby
[22:03:47] nofxx: aegis3121, if it has ML in the name do use #strip
[22:04:01] nofxx: ppl can't agree when it comes to whitespace
[22:04:29] bmalum: has joined #ruby
[22:04:46] chipotle: has joined #ruby
[22:08:59] stevemackinnon: has joined #ruby
[22:09:15] dcunit3d: has joined #ruby
[22:09:23] zacts: 'lo rubyists
[22:10:16] Ox0dea: Ahoy, zacts!
[22:11:16] shevy: zacts ready for more mischief?
[22:14:17] platzhirsch: has joined #ruby
[22:17:33] ta: has joined #ruby
[22:18:47] jackjackdripper1: has joined #ruby
[22:19:35] jackjackdripper1: has joined #ruby
[22:19:47] tomphp: has joined #ruby
[22:19:59] shevy: Darmani have you published a gem yet?
[22:20:13] newbie22: has joined #ruby
[22:20:15] mary5030: has joined #ruby
[22:20:25] ledestin: has joined #ruby
[22:20:27] Darmani: I'm sorry you must have mistaken me for Radar or Ox0dea
[22:20:30] shevy: you wrote a game
[22:20:36] Ox0dea: Darmani: Did you mean shevy?
[22:20:54] shevy: WAR!!! TOTAL WAR
[22:20:59] Darmani: lol you guys are idiots
[22:21:09] Ox0dea: Except that's the fifth or sixth time you've done that...
[22:21:10] shevy: that is now the third time that you want to go to war
[22:21:15] pawnbox: has joined #ruby
[22:21:17] Darmani: I'm going to manually switch the keys to the r and the t
[22:21:19] shevy: oh already at number six
[22:21:19] slash_join: Darmani: ?guys
[22:21:25] slash_join: ACTION frowns
[22:21:38] jottr_: has joined #ruby
[22:21:42] Darmani: I need to practice
[22:21:47] Darmani: there we go
[22:21:48] slash_join: Darmani: i mean to suggest you be inclusive when calling folks idiots
[22:22:07] Darmani: oh god here we go....
[22:22:27] adaedra: Best solution: don't call people idiots.
[22:22:48] despai: has joined #ruby
[22:23:02] jbrhbr: has joined #ruby
[22:23:04] Darmani: thank you adaedra. I will keep that in mind.
[22:23:27] Darmani: shevy - What do you mean a gem?
[22:23:52] apeiros: ?guys slash_join
[22:23:52] ruby[bot]: slash_join: Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
[22:23:59] apeiros: ^ slash_join that's how ;-)
[22:24:07] shevy: Darmani package your game, then publish it on: https://rubygems.org
[22:24:12] ogpastal_: has joined #ruby
[22:24:32] shevy: if you can't think of a name for your game, called the gem: darmani_game1
[22:25:01] shevy: ok hurry up Darmani https://rubygems.org/profiles/darmani_game1
[22:25:07] shevy: else Ox0dea may clog up the namespace
[22:25:18] Darmani: I except nothing less from him
[22:25:28] Ox0dea: Nice speling.
[22:25:32] Darmani: but I have to finish the game before I publish anything Q.Q
[22:25:37] slash_join: Ox0dea: it's like a riddle
[22:25:41] Darmani: Ox0dea - Lol I just noticed that xD
[22:25:42] shevy: nono Darmani!
[22:25:42] apeiros: Ox0dea will preemptively occupy darmani_game1 - 99
[22:25:53] shevy: that is the beauty... just publish. and when you make updates, just update to a new version
[22:25:55] Ox0dea: Occupy Darmani games!
[22:25:56] adaedra: Why stop at two numbers?
[22:26:07] adaedra: s/numbers/digits/
[22:26:11] 92AACA5WJ: has joined #ruby
[22:26:15] sandstrom: has joined #ruby
[22:26:27] Darmani: shevy - Well let me see if I can do it then.
[22:26:45] slash_join: apeiros: he's probably whipping up a bot to register gems any time someone sends a msg with "name" "gem" included
[22:26:50] kirillzh: has joined #ruby
[22:26:51] yoongkang: has joined #ruby
[22:27:14] adaedra: I wouldn't totally agree on publishing an unfinished thing tho.
[22:27:33] shevy: publish early, publish often
[22:27:34] Darmani: adaedra - wat
[22:27:38] shevy: let me find the adaedra snowman...
[22:27:41] Darmani: HA I didn't write war!
[22:27:50] adaedra: shevy: it's totally done and working.
[22:27:53] shevy: Darmani there https://github.com/adaedra/unicode-snowman
[22:27:57] slash_join: shevy: there's probably so many gem names taken by abandoned projects... abandoned before completion
[22:28:12] shevy: slash_join there are also many silly names!
[22:28:31] shevy: -> https://rubygems.org/gems/phuby
[22:28:40] adaedra: github for development, rubygems for release sounds like a good plan for me
[22:28:44] shevy: "Phuby wraps PHP in a loving embrace."
[22:29:24] nofxx: best gem name ever is 'jesus' ... god's web interface for the manking
[22:30:58] milt: has joined #ruby
[22:31:05] yfeldblum: has joined #ruby
[22:34:03] renancarvalho: has joined #ruby
[22:34:12] renancarvalho: has left #ruby: ()
[22:35:11] moeabdol2: has joined #ruby
[22:35:36] Chachi: has joined #ruby
[22:37:46] jackjackdripper: has joined #ruby
[22:37:54] Ebok: has joined #ruby
[22:39:35] codezomb: has joined #ruby
[22:39:55] jgt1: has joined #ruby
[22:40:24] jackjackdripper1: has joined #ruby
[22:40:35] cmckee: has joined #ruby
[22:41:39] zacts: shevy: I'm just reading through a Ruby book on cli apps
[22:41:59] zacts: https://pragprog.com/book/dccar2/build-awesome-command-line-applications-in-ruby-2
[22:42:02] ellisTAA: i???m trying to build a priority queue, when i run heapify on [10,9,8,11] i???m expecting => [11,10,8,9] but i???m getting [9,10,8,11] https://github.com/ellismarte/non-linear-data-structures/blob/master/heap.rb#L46
[22:43:49] hxegon: has joined #ruby
[22:43:52] shevy: zacts cool
[22:44:01] shevy: I never read that book, hopefully I don't miss out on important information
[22:44:51] zenlot3: has joined #ruby
[22:46:36] stannard: has joined #ruby
[22:47:09] meves: has joined #ruby
[22:48:02] zacts: so far I like it
[22:48:09] jackjackdripper: has joined #ruby
[22:48:14] zacts: it's actually full of great information on the design of cli apps
[22:48:24] zacts: especially from a UI usability perspective
[22:48:30] despai: has joined #ruby
[22:48:31] zacts: and tips on how to use Ruby for this
[22:49:02] zacts: I'm coming from knowing a bit of Perl5 for system scripting (like from way back 2 years ago)
[22:49:09] Ebok: has joined #ruby
[22:49:11] zacts: and I really love Ruby2 a ton for this
[22:49:17] zacstewart: has joined #ruby
[22:49:23] zacts: even over Perl5 I'm starting to feel
[22:50:01] LoneHerm_: has joined #ruby
[22:51:10] oetjenj: has joined #ruby
[22:51:35] jackjackdripper1: has joined #ruby
[22:51:54] moeabdol3: has joined #ruby
[22:54:32] benlieb: has joined #ruby
[22:55:11] zacts: shevy: next for me is https://pragprog.com/book/rmtpruby/text-processing-with-ruby
[22:55:16] jackjackdripper: has joined #ruby
[22:55:21] zacts: ^ which I'm going to use to make a mini-pandoc for my college papers
[22:55:26] johnnyt: has joined #ruby
[22:55:38] zacts: I want to translate outlines from Freemind in to various formats, and also integrate it with a task manager
[22:55:40] jackjackdripper: has joined #ruby
[22:55:43] zacts: using Ruby glue code
[22:55:56] zacts: into a full formatted MLA research paper, for example
[22:57:08] bronson: has joined #ruby
[22:59:28] mfb2: has joined #ruby
[22:59:47] Domaldel: has joined #ruby
[23:00:20] dfockler: ellistaa: Your indexes are going into the negatives then I think current_item gets set equal to the same index it's comparing to
[23:00:32] ellisTAA: dfockler: u nailed it thank you so much
[23:00:45] wireddude: has joined #ruby
[23:00:52] dfockler: that integer division :P
[23:01:06] dfockler: mixed with negative indexing haha
[23:01:10] jackjackdripper1: has joined #ruby
[23:02:37] baweaver: has joined #ruby
[23:03:01] marr: has joined #ruby
[23:06:08] victortyau: has joined #ruby
[23:08:21] skcin7: has joined #ruby
[23:08:33] glcx: has joined #ruby
[23:09:30] william3: has joined #ruby
[23:10:16] renancarvalho: has joined #ruby
[23:10:22] ellisTAA: has joined #ruby
[23:10:34] paradisaeidae: has left #ruby: ()
[23:10:55] pawnbox: has joined #ruby
[23:11:13] mfb2: has joined #ruby
[23:11:56] solocshaw: has joined #ruby
[23:13:11] jamw: has joined #ruby
[23:16:04] ellisTAA: has joined #ruby
[23:18:40] tuelz1: has joined #ruby
[23:20:38] lipoqil: has joined #ruby
[23:25:05] CloCkWeRX: has joined #ruby
[23:26:05] johnny56_: has joined #ruby
[23:29:22] S01780: has joined #ruby
[23:30:56] Xiti: has joined #ruby
[23:31:11] stevemackinnon: has joined #ruby
[23:31:43] blackmes1: has joined #ruby
[23:32:08] jackjackdripper: has joined #ruby
[23:33:30] hxegon: has joined #ruby
[23:33:40] kalopsian: has joined #ruby
[23:34:42] arthropodado: has joined #ruby
[23:35:48] yoongkang: has joined #ruby
[23:37:09] karapetyan: has joined #ruby
[23:37:28] moeabdol4: has joined #ruby
[23:37:32] mfb2: has joined #ruby
[23:40:25] Ropeney: has joined #ruby
[23:40:32] pawnbox: has joined #ruby
[23:41:16] braincra-: has joined #ruby
[23:42:11] renancarvalho1: has joined #ruby
[23:42:39] GeorgesLeYeti: has joined #ruby
[23:43:25] GeorgesLeYeti: I would like to remove a substring from "<Bottom Page>" to the end of string
[23:44:46] GeorgesLeYeti: gsub(/<Bottom Page>(.*)/, '').strip is it correct ?
[23:44:56] renancarvalho: has joined #ruby
[23:47:43] arthropodado: has joined #ruby
[23:49:11] shevy: x = "abc <Bottom Page> yo there" # => "abc <Bottom Page> yo there"
[23:49:12] iateadonut: has joined #ruby
[23:49:15] shevy: x.gsub(/<Bottom Page>(.*)/, '').strip # => "abc"
[23:54:12] mfb2: has joined #ruby
[23:55:00] dfockler: has joined #ruby
[23:56:43] ogpastaling: has joined #ruby
[23:57:27] shevy: the (.*) can probably become .*
[23:59:12] weemsledeux: has joined #ruby
[23:59:45] shevy: not sure how to avoid the .strip :)