« Back to channel list

#ruby - 14 June 2015

« Back 1 day Forward 1 day »
[00:00:21] matugm: has joined #ruby
[00:00:25] dgutierrez1287: has joined #ruby
[00:01:14] yoongkang: has joined #ruby
[00:01:50] starfox_sf: I can ping both
[00:02:01] ebbflowgo: has joined #ruby
[00:02:25] jhass: sounds like google is blocking connections on port 25 from your network then
[00:02:37] freerobby: has joined #ruby
[00:02:53] jhass: home broadband?
[00:03:16] jhass: thank the spammers and windows people not securing their shit then ;)
[00:03:50] starfox_sf: I will make sure I send them a thank you card.
[00:03:59] jhass: that's nice
[00:04:05] starfox_sf: jhass: thanks btw
[00:04:59] metallicrwr_: has joined #ruby
[00:05:17] commondream: has joined #ruby
[00:10:36] bruceleez: has joined #ruby
[00:11:05] bruceleez: hello - has anyone gone through Chris Pine's how to learn Ruby book?
[00:11:54] ruboto: Just ask your question, if anyone has or can, they will respond.
[00:12:38] bruceleez: well, I've created a program but kind of cheated by using a command that hasn't been mentioned in the book so far and I want to rectify this.
[00:12:46] arescorpio: has joined #ruby
[00:13:21] jhass: I see no issue
[00:13:44] jhass: using the best tool you know is a good mindset
[00:14:00] lupine: unless it means you never learn about another tool, of course
[00:14:11] bruceleez: I have the following code "sorted_array = Array.new(array_size)" but the method "new" has not been mentioned.
[00:14:47] lupine: hmm, that's an odd one
[00:14:50] lupine: you can just do []
[00:15:20] lupine: the value of pre-filling your array with nils is questionable
[00:15:21] cats: has joined #ruby
[00:15:48] jhass: well, it does avoid the resizing if you know the target size you're going to fill up
[00:16:03] jhass: but that's perhaps something to optimize if it proves to be a bottleneck
[00:16:34] bruceleez: I'll share the code. I found the solution the other day but I'm returning to it to address this issue. What's the website to share code again?
[00:16:52] ruboto: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[00:17:37] bruceleez: https://gist.github.com/anonymous/ab8ec3dfa8820a804323 - here you go
[00:18:13] freerobby: has joined #ruby
[00:18:30] bruceleez: I asked a question about sorting lists the other day and someone mentioned bubble sort. I'm wondering what is the most efficient way to sort?
[00:18:34] vifino: has joined #ruby
[00:19:19] bruceleez: that's a side question, but concerning the code, the issue is with line 11. The rest of the code is fine
[00:19:32] bruceleez: at least i think it is ;/
[00:20:19] francois_: has joined #ruby
[00:20:20] jhass: you're overthinking this
[00:22:16] simplyianm: has joined #ruby
[00:22:27] centrx: what the heck
[00:25:36] cytoskeletor: has joined #ruby
[00:26:20] centrx: bruceleez, Use Array#sort to sort?
[00:26:31] kies: has joined #ruby
[00:28:02] bruceleez: hi centrx - sorry i should have been clear. The aim of the program is to sort without using the sort method. if you enter any random words it will sort for you.
[00:28:44] bmurt: has joined #ruby
[00:33:38] mdz_: has joined #ruby
[00:34:10] al2o3-cr: has joined #ruby
[00:36:44] failshell: has joined #ruby
[00:38:24] robustus|Off: has joined #ruby
[00:40:08] mleung: has joined #ruby
[00:42:55] dopie: has joined #ruby
[00:44:09] krisquigley: has joined #ruby
[00:45:11] lupine: quicksort
[00:45:18] lupine: whatever the question, quicksort is always the answer
[00:46:03] Ox0dea: lupine: Which pivot is best pivot?
[00:50:00] LJT: has joined #ruby
[00:51:51] Azure: has joined #ruby
[00:53:20] micmus: has joined #ruby
[00:53:28] ylla: has joined #ruby
[00:55:39] Guest6: has joined #ruby
[00:57:07] serivich: has joined #ruby
[00:57:21] bruno-: has joined #ruby
[00:57:32] shevy: I think I just accidentally found a loop in my program
[00:57:34] mcclurmc: has joined #ruby
[00:57:37] shevy: I had two different files with the same method name
[00:58:21] Scripore: has joined #ruby
[00:59:31] bmurt: has joined #ruby
[00:59:58] JamesDH: has joined #ruby
[01:01:17] Pupeno: has joined #ruby
[01:01:20] Spami: has joined #ruby
[01:03:54] Maletor: has joined #ruby
[01:06:01] bkxd: has joined #ruby
[01:06:55] rubynewby: has joined #ruby
[01:07:02] mrmargolis: has joined #ruby
[01:07:04] Pupeno: has joined #ruby
[01:07:04] Pupeno: has joined #ruby
[01:07:07] jphenow: has joined #ruby
[01:07:56] whoami: has joined #ruby
[01:08:35] pontiki: has joined #ruby
[01:08:50] rubynewby: Could anybody tell me what this might mean? I think it's related to ruby gems: https://gist.githubusercontent.com/anonymous/43e7953571e82a94f3f8/raw/0073a9f6a20c2951df98c3d7bf30496756494a70/gistfile1.rb
[01:09:27] jhass: a riddle?
[01:09:29] Rollabunna: has joined #ruby
[01:09:32] jhass: got some context?
[01:10:14] chouhoulis: has joined #ruby
[01:10:15] rubynewby: it is a sort of riddle and the only context was a hint about gems, so I thought ruby
[01:11:12] allomov: has joined #ruby
[01:11:13] rubynewby: seems like maybe I'm supposed to know what to put in the brackets to make it return the answer
[01:11:21] nikhgupta: has joined #ruby
[01:12:02] jhass: mmh, looks like something like brainfuck with a different grammar to me
[01:12:27] jhass: eh, grammar, keyword set or whatever you would call it
[01:13:27] ebbflowgo: has joined #ruby
[01:14:07] rubynewby: oh yea that's a good point, I think that might be the right direction
[01:14:28] ebbflowgo: has left #ruby: ()
[01:15:46] jhass: otoh it's not really repetitive enough
[01:16:01] jhass: I mean the highest value in there would be something like 2, 3?
[01:18:14] Ox0dea: It's JavaScript.
[01:18:19] attlasbot: has joined #ruby
[01:18:47] Ox0dea: It evaluates to: alert("flag=WhatKindOfMonsterCodesLikeThis?")
[01:18:55] Ox0dea: Make of that what you will.
[01:18:59] rubynewby: why do you say that
[01:19:43] Ox0dea: http://patriciopalladino.com/blog/2012/08/09/non-alphanumeric-javascript.html
[01:20:26] simplyianm: has joined #ruby
[01:20:58] jhass: good thing we don't like JS I guess
[01:21:15] Ox0dea: Non-alphanumeric Ruby is also a "thing".
[01:21:23] simplyianm: has joined #ruby
[01:21:28] jhass: but it's not as ugly
[01:21:40] Ox0dea: It's... pretty u
[01:22:27] jhass: shit, I remember actually reading that blog post now
[01:23:06] Ox0dea: The JS one, or Ruby?
[01:23:40] duncannz: has joined #ruby
[01:23:40] jhass: the js one
[01:23:54] mary5030: has joined #ruby
[01:24:09] Ox0dea: A number of people have explored that territory; that was just the first search result.
[01:25:40] Ox0dea: The JS approach is more interesting in that it's reaching into real objects and grabbing portions of their properties, but then the code is just brackets for days.
[01:26:17] Ox0dea: Doing it in Ruby just involves taking advantage of how many symbols have meaning in the syntax.
[01:26:31] Ox0dea: Read: everything but '#'.
[01:26:43] balazs: has joined #ruby
[01:28:16] Yiota: has joined #ruby
[01:28:58] luckyme: has joined #ruby
[01:29:51] havenwood: has joined #ruby
[01:30:45] BlueProtoman: has joined #ruby
[01:31:23] RegulationD: has joined #ruby
[01:32:09] workmad3: has joined #ruby
[01:32:23] BlueProtoman: Kernel::format isn't a security risk with arbitrary format strings in the same way printf is in C, is it?
[01:32:30] yfeldblum: has joined #ruby
[01:33:25] lkba_: has joined #ruby
[01:34:42] nikhgupta: has joined #ruby
[01:34:55] Ox0dea: >> '%9999999d' % 1
[01:34:57] ruboto: Ox0dea, I'm terribly sorry, I could not evaluate your code because of an error: OpenURI::HTTPError:500 Internal Server Error
[01:35:24] Ox0dea: Sorry about that, ruboto.
[01:36:27] ferr: has joined #ruby
[01:37:41] Ox0dea: BlueProtoman: That was essentially a call to Kernel::format, in case you didn't catch it.
[01:38:30] BlueProtoman: Ox0dea: I'm sorry, I don't follow.
[01:38:37] ramfjord: has joined #ruby
[01:38:52] nikhgupta: has joined #ruby
[01:39:20] Ox0dea: BlueProtoman: Are you aware that ruboto evaluates messages prefixed with ">> " as Ruby code?
[01:39:51] BlueProtoman: Ox0dea: Yes, that I figured out.
[01:39:57] Ox0dea: Then the rest should be clear.
[01:40:20] BlueProtoman: Ox0dea: Then I wouldn't have asked. Are you implying that Kernel::format is unsafe?
[01:40:43] Ox0dea: Do *you* like it when your server shits itself?
[01:40:46] pepelui: has joined #ruby
[01:40:49] Ox0dea: Neither does your server.
[01:41:42] BlueProtoman: Ox0dea: Oh, that throws an ArgumentError, right?
[01:44:41] BlueProtoman: Ox0dea: I should clarify. Remember that format flag I was fussing about earlier? I finished it, and decided that if the user provides bad input, that's not my problem. If there'
[01:45:04] BlueProtoman: If there's an exception, I just return the error message instead of the format string and get on with it.
[01:45:08] jpfuentes2: has joined #ruby
[01:45:17] BlueProtoman: (The site user doesn't provide the format string; the Jekyll user, i.e. the website designer, does)
[01:45:31] jerius: has joined #ruby
[01:46:50] jerius_: has joined #ruby
[01:47:44] Ox0dea: BlueProtoman: You should be all right, then.
[01:48:07] charliesome: has joined #ruby
[01:48:28] Ox0dea: Ruby does give you the power to muck about with its internal bookkeeping, but you've gotta really want to.
[01:50:02] BlueProtoman: Ox0dea: Okay, just making sure. I wanna use this Liquid tag at work, and I wanna see if I can get it into the github-pages gem (I think a "format" tag would be really useful, and I'm not sure why there isn't one already).
[01:50:11] BlueProtoman: *and I also wanna see if
[01:52:05] nikhgupta: has joined #ruby
[01:53:34] BlueProtoman: (GitHub pages uses Jekyll, which is written in Ruby and can be extended with it; but they don't allow arbitrary plugins for security reasons, so I wanna try to get this approved)
[01:53:44] justintv90: has joined #ruby
[01:54:15] pontiki: a sprintf-like format filter for liquid? i'd be all for it
[01:57:03] ellisTAA: has joined #ruby
[01:57:05] rickmasta: has joined #ruby
[01:57:17] BlueProtoman: pontiki: Go nuts. https://github.com/JesseTG/jekyll-format
[01:57:44] millerti: has joined #ruby
[01:58:27] ellisTAA: i???m trying to create a tiny search engine for a class project, and when i run this file it says uninitialized constant DatabaseBuilder::Url (NameError)
[01:58:31] yoongkang: has joined #ruby
[01:58:32] ellisTAA: https://github.com/ellismarte/niche/blob/master/db/seeds.rb#L25 anyone know why that is happening? the Url class is a model that I made using AR
[01:58:46] anthony: has joined #ruby
[01:59:22] ylla: has joined #ruby
[02:01:09] jonr22: has joined #ruby
[02:05:04] bmurt: has joined #ruby
[02:05:14] dopie: has joined #ruby
[02:06:38] A205B064: has joined #ruby
[02:06:38] nikhgupta: has joined #ruby
[02:08:44] commondream: has joined #ruby
[02:08:49] davedev24_: has joined #ruby
[02:13:11] caseypatrickdris: has joined #ruby
[02:15:29] malconis: has joined #ruby
[02:18:42] djbkd_: has joined #ruby
[02:20:30] f3lp: has joined #ruby
[02:20:57] AbinoamJr: has joined #ruby
[02:21:24] CustosLimen: has joined #ruby
[02:22:22] failshell: has joined #ruby
[02:23:03] simplyianm: has joined #ruby
[02:26:08] nikhgupta: has joined #ruby
[02:27:03] allcentury: has joined #ruby
[02:32:53] krisquigley: has joined #ruby
[02:33:27] shevy: EllisTAA the constant called Url is not known to that file you showed
[02:33:51] jonr22: has joined #ruby
[02:34:35] houhoulis: has joined #ruby
[02:34:35] wildroman2: has joined #ruby
[02:35:03] ellisTAA: i dont understand why ??? i have a model called Url
[02:35:34] chouhoulis: has joined #ruby
[02:36:38] hoddoko: has joined #ruby
[02:36:40] Yiota: has joined #ruby
[02:36:46] Oog: has joined #ruby
[02:37:24] shevy: you did not require whoever has Url defined
[02:37:52] ellisTAA: ok ill try that
[02:39:09] Axsuul: has joined #ruby
[02:40:04] Yiota: has joined #ruby
[02:41:38] eggoez: has joined #ruby
[02:42:49] ellisTAA: has left #ruby: ()
[02:43:42] charliesome: has joined #ruby
[02:46:03] phizzbuzz: has joined #ruby
[02:48:34] Yiota: has joined #ruby
[02:49:15] Aryasam: has joined #ruby
[02:49:30] pepperbreath1: has joined #ruby
[02:49:45] dopie: has joined #ruby
[02:50:11] mdz_: has joined #ruby
[02:50:16] ramfjord: has joined #ruby
[02:50:36] aylla: has joined #ruby
[02:55:24] drizz: has joined #ruby
[02:59:23] justintv90: has joined #ruby
[02:59:41] ndrei: has joined #ruby
[03:01:59] freerobby: has joined #ruby
[03:03:48] dfockler: has joined #ruby
[03:08:49] jonr22: has joined #ruby
[03:08:54] mkosaki: has joined #ruby
[03:09:38] bronson: has joined #ruby
[03:10:26] Rollabunna: has joined #ruby
[03:11:04] Musashi007: has joined #ruby
[03:11:38] Miphix: has joined #ruby
[03:11:38] michael_mbp: has joined #ruby
[03:12:32] braincras: has joined #ruby
[03:13:38] nikhgupta: has joined #ruby
[03:13:58] kies: has joined #ruby
[03:13:58] Azure: has joined #ruby
[03:14:17] nikhgupt`: has joined #ruby
[03:14:19] bogdanteleaga: has joined #ruby
[03:15:33] nikhgupta: has joined #ruby
[03:17:14] nikhgupta: has joined #ruby
[03:20:21] RegulationD: has joined #ruby
[03:20:45] darkf: has joined #ruby
[03:20:55] workmad3: has joined #ruby
[03:23:30] simplyianm: has joined #ruby
[03:24:18] nikhgupta: has joined #ruby
[03:26:02] 21WACFTOL: has joined #ruby
[03:26:04] acke: has joined #ruby
[03:27:04] psye: has joined #ruby
[03:30:03] LicHacker: has joined #ruby
[03:31:45] psye: has joined #ruby
[03:33:24] heftig: has joined #ruby
[03:37:10] Yiota: has joined #ruby
[03:38:24] jonr22: has joined #ruby
[03:45:35] CloCkWeRX: has joined #ruby
[03:46:43] j4cknewt: has joined #ruby
[03:47:35] CloCkWeRX: has left #ruby: ()
[03:48:11] gix: has joined #ruby
[03:49:49] bruno-: has joined #ruby
[03:52:41] mleung: has joined #ruby
[03:55:56] djbkd_: has joined #ruby
[03:56:06] acke: has joined #ruby
[03:57:57] francois_: has joined #ruby
[03:57:59] Nahra`: has joined #ruby
[03:59:41] lessless: has joined #ruby
[03:59:52] joaomdmoura: has joined #ruby
[03:59:58] jonr22: has joined #ruby
[04:01:30] devdazed: has joined #ruby
[04:02:05] Levko: has joined #ruby
[04:02:13] mcclurmc: has joined #ruby
[04:05:00] allcentury: has joined #ruby
[04:09:26] simplyianm: has joined #ruby
[04:10:19] jaequery: has joined #ruby
[04:10:47] quazimodo: has joined #ruby
[04:11:14] failshell: has joined #ruby
[04:12:33] commondream: has joined #ruby
[04:12:52] jonr22: has joined #ruby
[04:15:20] Axsuul: has joined #ruby
[04:16:48] pyon: has joined #ruby
[04:16:51] jonr2219: has joined #ruby
[04:18:14] Forgetful_Lion: has joined #ruby
[04:20:58] baweaver: has joined #ruby
[04:21:19] davedev24: has joined #ruby
[04:21:50] krisquigley: has joined #ruby
[04:30:35] CyborgCygnus: has joined #ruby
[04:31:32] ramfjord: has joined #ruby
[04:33:48] jume: has joined #ruby
[04:35:49] noethics: has joined #ruby
[04:38:42] CyborgCygnus: has joined #ruby
[04:40:25] bronson: has joined #ruby
[04:43:07] Hanmac: has joined #ruby
[04:43:44] sleungcy: has joined #ruby
[04:44:10] riotjones: has joined #ruby
[04:48:26] Oog: has joined #ruby
[04:48:56] mleung: has joined #ruby
[04:51:15] yayfoxes: has joined #ruby
[04:52:16] balazs: has joined #ruby
[04:52:30] Ox0dea: >> $__=$$/$$;_=$__+$__;__=$__+_;$_=_+_;@_=$__+$_;$-_=_**@_;$___=_*$-_;@__=$-_+$___;''<<$___+__*@_<<@__+_*$_<<@__+$__<<@__+__*__<<$-_+$__
[04:52:32] ruboto: Ox0dea # => "Ohai!" (https://eval.in/381133)
[04:52:59] stoogenmeyer: has joined #ruby
[04:55:51] lxsameer: has joined #ruby
[04:58:47] whoami: has joined #ruby
[05:01:47] eggoez: has joined #ruby
[05:04:23] weemsledeux: has joined #ruby
[05:06:05] nwmcsween: has joined #ruby
[05:07:34] nwmcsween: hmm so what am I doing wrong here? [1, 2, 3, 4, 5].reduce([0, 0, 0]) {|m, s| m[s <=> 0] += 1
[05:09:01] doctorly: has joined #ruby
[05:09:11] RegulationD: has joined #ruby
[05:09:42] workmad3: has joined #ruby
[05:11:15] Rollabunna: has joined #ruby
[05:11:33] Pumukel: has joined #ruby
[05:13:16] djbkd_: has joined #ruby
[05:14:17] Ox0dea: Well, that's new.
[05:16:08] Ox0dea: nwmcsween: You have to yield the memo at the end of the block.
[05:16:10] Ox0dea: >> [1, 2, 3, 4, 5].reduce([0, 0, 0]) {|m, s| m[s <=> 0] += 1; m}
[05:16:11] ruboto: Ox0dea # => [0, 5, 0] (https://eval.in/381135)
[05:16:47] nwmcsween: ah so im returning the num instead of the memo
[05:17:22] pontiki: Ox0dea: yeah, it's so obvious :D
[05:17:46] pontiki: [23:52:30] <Ox0dea> >> $__=$$/$$;_=$__+$__;__=$__+_;$_=_+_;@_=$__+$_;$-_=_**@_;$___=_*$-_;@__=$-_+$___;''<<$___+__*@_<<@__+_*$_<<@__+$__<<@__+__*__<<$-_+$__
[05:17:46] pontiki: [23:52:31] <ruboto> Ox0dea # => "Ohai!" (https://eval.in/381133)
[05:18:07] Ox0dea: Am I to conclude you understand how it works?
[05:18:19] pontiki: not a fucking clue
[05:18:32] nwmcsween: mmm ruby magic vars
[05:19:12] Ox0dea: $$ (process ID) is the only default global being used.
[05:19:20] Ox0dea: All the others are just assignments for the sake of brevity.
[05:19:49] nwmcsween: hmm I though $_ was somthing in ruby too
[05:20:23] Ox0dea: It is, but it's being repurposed as storage in this case.
[05:20:53] nwmcsween: pure evilness
[05:21:54] Ox0dea: There's a Sinatra app written almost entirely in this way.
[05:22:08] Ox0dea: Spawned surely by Satan himself.
[05:22:44] Peteykun: has joined #ruby
[05:23:41] yardenbar: has joined #ruby
[05:23:46] Channel6: has joined #ruby
[05:24:45] cbear0x: has joined #ruby
[05:25:04] cbear0x: has left #ruby: ("Closing Window")
[05:26:00] Ox0dea: nwmcsween: What's up with that reduction, anyhow?
[05:26:06] pontiki: i was watching jim weirich's keynote on y-combinator yesterday; that's p. ebille too
[05:26:16] nwmcsween: seperate ints into 3 classifications
[05:26:42] Ox0dea: You're losing the numbers, though.
[05:26:48] nwmcsween: that's fine
[05:27:39] Ox0dea: pontiki: Why do strokes always seem to happen at the ends of sentences?
[05:27:54] baweaver: Better question, why are you trying that and what's the point?
[05:28:05] dgutierrez1287: has joined #ruby
[05:28:21] nwmcsween: hackerrank, project euler stuff
[05:28:39] baweaver: Which problem specifically
[05:28:50] nwmcsween: algorithms I think
[05:29:05] baweaver: was it that 5 problems post where you're not really a programmer if you can't solve them?
[05:29:40] nwmcsween: no idea just started playing some hackerrank problems
[05:29:47] sophiapstefan: has joined #ruby
[05:29:53] nwmcsween: most of the submitions are pretty bad imo
[05:30:07] baweaver: sounds par for course
[05:30:58] baweaver: https://www.hackerrank.com/challenges/plus-minus
[05:31:10] baweaver: nwmcsween: that one, and you want to use group_by
[05:31:22] nwmcsween: show me a better one
[05:31:28] nwmcsween: reduce will work
[05:31:45] baweaver: just a sec, simulating to make sure I have it right before I fill 10 lines of repl here.
[05:32:47] Ox0dea: >> [1, 2, -5, 0, -3, 0].group { |n| n <=> 0 }.map(&:size)
[05:32:48] ruboto: Ox0dea # => undefined method `group' for [1, 2, -5, 0, -3, 0]:Array (NoMethodError) ...check link for more (https://eval.in/381140)
[05:32:53] Ox0dea: >> [1, 2, -5, 0, -3, 0].group_by { |n| n <=> 0 }.map(&:size)
[05:32:54] ruboto: Ox0dea # => [2, 2, 2] (https://eval.in/381141)
[05:33:13] j4cknewt: has joined #ruby
[05:33:16] baweaver: yeah, pretty much that then map by divided by the array length
[05:33:34] Ox0dea: nwmcsween: Reaching for reduce for this was pretty novel.
[05:34:51] baweaver: >> a = [-1, -2, -3, 0, 0, 1, 2, 3]; a.group_by { |i| i <=> 0 }.map { |k,v| v.size / a.length.to_f }
[05:34:52] ruboto: baweaver # => [0.375, 0.25, 0.375] (https://eval.in/381142)
[05:35:03] baweaver: Ox0dea: it's a hash by the way on group_by
[05:35:11] baweaver: so you get two for everything
[05:35:22] Ox0dea: baweaver: As expected?
[05:35:29] nwmcsween: [1] doesn't pass
[05:35:44] baweaver: >> [1, 2, -5, 0, -3, 0,0,0,0].group_by { |n| n <=> 0 }.map(&:size)
[05:35:45] ruboto: baweaver # => [2, 2, 2] (https://eval.in/381143)
[05:36:00] Ox0dea: Ah, derp.
[05:36:46] Ox0dea: The price paid for trying to evenly distribute the example inputs.
[05:36:51] nwmcsween: I guess it doesn't matter you could still puts %f.2
[05:38:05] Rollabunna: has joined #ruby
[05:38:37] bruno-: has joined #ruby
[05:38:39] Ox0dea: baweaver: How well do you know your way around parse.y?
[05:38:56] baweaver: since I have to google that, probably not
[05:38:57] luckyme: has joined #ruby
[05:39:04] Ox0dea: Ruby's parser.
[05:39:13] nwmcsween: man don't even
[05:39:14] dopie: has joined #ruby
[05:39:17] Ox0dea: %d(1 2 3) would be really nice...
[05:39:41] Ox0dea: I've been mulling over the commits that added %i() symbol arrays to see how easy it'd be to extrapolate, but it's fucking hairy.
[05:39:47] nwmcsween: the parser must be monstrous
[05:39:47] baweaver: Yeah, beyond my C skills for sure.
[05:40:04] nwmcsween: lets see it linky?
[05:40:12] Ox0dea: nwmcsween: It's currently 11,374 lines.
[05:40:14] baweaver: https://github.com/ruby/ruby/blob/trunk/parse.y
[05:40:16] rippa: has joined #ruby
[05:40:48] Ox0dea: It's gotta be the nastiest parser in the mainstream programming world.
[05:40:50] nwmcsween: should see how rubinious parses ruby
[05:41:01] zenguy_pc: has joined #ruby
[05:41:01] Ox0dea: I suspect it's comparatively gorgeous.
[05:41:30] commondream: has joined #ruby
[05:41:36] nwmcsween: has to be better thank yacc
[05:42:55] Spami: has joined #ruby
[05:46:49] mcclurmc: has joined #ruby
[05:46:50] francois_: has joined #ruby
[05:47:48] Ox0dea: Is there any precedent for enabling a gem to update itself when appropriate?
[05:49:25] yoongkang: has joined #ruby
[05:50:37] Cache_Money: has joined #ruby
[05:51:22] chouhoulis: has joined #ruby
[05:51:45] mdz_: has joined #ruby
[05:51:54] allcentury: has joined #ruby
[05:53:05] zotherstupidguy: has joined #ruby
[05:53:33] snockerton: has joined #ruby
[05:56:42] snockerton: if I have an array of like hashes, [{a: 1, b: 2, c: 3}, {a: 2, b: 3, c: 4}] how can I turn this into an array of hashes minus a couple k/v pairs?
[05:57:07] snockerton: [{a: 1, b: 2}, {a: 2, b: 3}]
[05:58:40] sophiapstefan: has joined #ruby
[05:58:51] GnuYawk: has joined #ruby
[05:59:43] Ox0dea: snockerton: You haven't very clearly specified your selection predicate, but...
[05:59:45] Ox0dea: >> [{a: 1, b: 2, c: 3}, {a: 2, b: 3, c: 4}].map { |h| h.select { |k, _| %i[a b].include? k } }
[05:59:46] ruboto: Ox0dea # => [{:a=>1, :b=>2}, {:a=>2, :b=>3}] (https://eval.in/381144)
[06:00:00] failshell: has joined #ruby
[06:01:22] snockerton: what is %i ?
[06:01:31] Ox0dea: Symbol array literal.
[06:01:47] Ox0dea: >> %i[a b c] == [:a, :b, :c]
[06:01:48] ruboto: Ox0dea # => true (https://eval.in/381145)
[06:02:24] snockerton: ooo, very handy
[06:03:11] Ox0dea: There's also %w for "words", and both of their capitalized counterparts permit interpolation.
[06:06:20] Xiti: has joined #ruby
[06:06:34] snockerton: is the underscore to indicate an unused value in the select block?
[06:06:52] skade: has joined #ruby
[06:07:12] bosma: has joined #ruby
[06:07:22] chinmay_dd: has joined #ruby
[06:08:21] sophiapstefan: Heya, I was here a couple days ago under my nickname, and haven't been available since, but- I'll paste it in- I'm trying to figure out how to make this figure go DOWN. I know I have to use an (x,y) type of coordinate system- but I'm basing this off of a template a book gave me, and I'm trying to make a game out of it, and I'm not experienced.
[06:08:23] sophiapstefan: https://gist.github.com/anonymous/54060c0c7b3c47716758
[06:08:37] sophiapstefan: Any suggestions? Let me know if it runs weirdly
[06:10:58] krisquigley: has joined #ruby
[06:10:59] sophiapstefan: (sorry for the block of text!)
[06:11:16] baweaver: http://www.dreamincode.net/forums/topic/372710-working-with-2d-arrays-and-trying-to-change-touching-indexes/page__view__findpost__p__2134986
[06:11:25] baweaver: This might be an interesting read on something similar
[06:11:47] keen______: has joined #ruby
[06:16:07] yfeldblum: has joined #ruby
[06:16:18] sophiapstefan: we've only learned a little about arrays. How do I make it as in the explanation?
[06:16:30] Obfuscate: has joined #ruby
[06:16:39] chinmay_dd: has joined #ruby
[06:17:36] jaequery: has joined #ruby
[06:18:02] wildroman2: has joined #ruby
[06:19:12] simplyianm: has joined #ruby
[06:19:36] cvtsx: has joined #ruby
[06:19:42] sophiapstefan: I think I would have to create a whole new class for the figure.
[06:20:14] cvtsx: has joined #ruby
[06:21:36] moshee: has joined #ruby
[06:21:39] Ox0dea: sophiapstefan: https://gist.github.com/anonymous/c71c6ce4c48553e39500
[06:22:08] Ox0dea: It's embarrassingly non-object-oriented, but the overarching approach to movement may be of some use.
[06:22:37] nickfausnight: has joined #ruby
[06:24:17] Ox0dea: snockerton: Yes, using an underscore communicates that you're not interested in the value. In fact, Ruby even special-cases it.
[06:24:23] Ox0dea: >> [1, 2].map { |a, a| }
[06:24:24] ruboto: Ox0dea # => /tmp/execpad-a116c4804643/source-a116c4804643:2: duplicated argument name ...check link for more (https://eval.in/381153)
[06:24:28] Ox0dea: >> [1, 2].map { |_, _| }
[06:24:29] ruboto: Ox0dea # => [nil, nil] (https://eval.in/381154)
[06:25:16] Ox0dea: More specifically, any underscore-prefixed parameter name can be duplicated.
[06:25:27] sophiapstefan: Thank you all! This is incredibly helpful.
[06:25:56] Ox0dea: sophiapstefan: Did it work?
[06:26:55] sophiapstefan: The code given in the github link prints out a great world- but it doesn't move. I don't think i'm doing that right. I'll try something
[06:27:57] ledestin: has joined #ruby
[06:28:23] Ox0dea: sophiapstefan: Are you required to shell out to stty in order to get raw character input?
[06:28:36] gianlucadv: has joined #ruby
[06:28:41] Ox0dea: Maybe your instructor doesn't know about and would appreciate being made aware of io/console. :)
[06:28:43] sophiapstefan: Yes, unfortunately.
[06:29:45] sophiapstefan: This is a very basic class- I think he just wants us to try and find a good way to get a solid x,y coordinate system in there. I hate the "here just try to figure it out for yourself before I teach you how to do it" problems. :((
[06:30:44] sophiapstefan: Ah! It works- there's a few bugs, but that's fine....
[06:31:35] Ox0dea: Famous last words.
[06:33:33] nwmcsween: hmm can you express y combinator in ruby?
[06:34:02] lapide_viridi: has joined #ruby
[06:34:06] Ox0dea: Z combinator, yes.
[06:34:10] skade: has joined #ruby
[06:34:27] nwmcsween: http://rosettacode.org/wiki/Y_combinator#Ruby
[06:35:16] Ox0dea: fac and fib are one more level of indirection "around" the Y combinator.
[06:35:57] Ox0dea: The Y combinator, strictly speaking, only works in normal-order languages.
[06:36:25] chinmay_dd: has joined #ruby
[06:38:05] Ox0dea: Erm, applicative-order...
[06:38:13] Ox0dea: Math is hard, let's go shopping.
[06:38:41] skade: has joined #ruby
[06:38:54] nwmcsween: now I wonder how the c version works must make a fat call stack
[06:39:07] pragmatism: has joined #ruby
[06:40:21] sophiapstefan: I would write a whole class for the player's figure. It would store its own position and its own size. I would also have it provide one more method: getRowCharacters(y) that returns the ascii characters that are in the specified row. That way, in your print loop, you can check each position, before you print it, for whether the figure is present in that position. If it is, then you can print all the characters for that row, then
[06:40:21] sophiapstefan: skip your loop forward a number of steps equal to the number of characters you just printed.
[06:40:42] sophiapstefan: Problem is- I have no idea how to do ANY of this!
[06:40:52] sophiapstefan: I know WHAT I have to do, just now how to do it.
[06:40:53] nwmcsween: I'd prob beat someone with a brick if I saw them write this: http://rosettacode.org/wiki/Y_combinator#C
[06:41:04] sophiapstefan: it's incredibly infuriating.
[06:41:35] nwmcsween: wrong chan?
[06:43:31] Ox0dea: nwmcsween: I wasn't very clear back there, but did you catch the gist?
[06:44:03] Ox0dea: Notice that fac and fib are both a lambda inside a lambda, rather than just a single lambda.
[06:44:20] Scripore: has joined #ruby
[06:44:24] Ox0dea: This is to overcome the limitations of applicative order.
[06:44:52] Ox0dea: The lambda is evaluated too soon without the wrapper.
[06:45:01] simplyianm: has joined #ruby
[06:45:16] Ox0dea: sophiapstefan: It seems you're being taught, or else learning, how to press certain characters on your keyboard rather than how to program in Ruby. :/
[06:45:45] Ox0dea: *limitations of normal order
[06:46:00] roolo: has joined #ruby
[06:46:30] sophiapstefan: I would agree! But i have no other choice until the fall.
[06:46:50] Ox0dea: sophiapstefan: You don't appear to be illiterate. :P
[06:48:59] sophiapstefan: Yeah. I just have to tough it out until I manage to figure out what he wants!
[06:49:15] balazs: has joined #ruby
[06:49:24] baweaver: Say hello to most programming classes :/
[06:51:08] Musashi007: has joined #ruby
[06:51:11] baweaver: nwmcsween: To be fair it's more the theory behind it than anything
[06:51:38] michael_mbp: has joined #ruby
[06:52:48] erts: has joined #ruby
[06:53:39] Ox0dea: baweaver: And here I was convinced that there were little Turing machines inside all the transistors.
[06:54:44] bkxd: has joined #ruby
[06:55:08] commondream: has joined #ruby
[06:55:38] dcarmich: has joined #ruby
[06:57:03] ex0ns: has joined #ruby
[06:57:07] erts: has joined #ruby
[06:57:07] erts: has joined #ruby
[06:57:39] ertse: has joined #ruby
[06:58:00] RegulationD: has joined #ruby
[06:58:28] workmad3: has joined #ruby
[06:58:53] MVPhelp: has joined #ruby
[06:59:26] GnuYawk: has joined #ruby
[07:02:05] yayfoxes: has joined #ruby
[07:02:21] meph: has joined #ruby
[07:04:39] skade: has joined #ruby
[07:06:09] aapole: has joined #ruby
[07:10:15] MVPhelp: has joined #ruby
[07:12:32] allcentury: has joined #ruby
[07:12:47] greenbagels: has joined #ruby
[07:14:36] antgel: has joined #ruby
[07:20:15] kraljev11: has joined #ruby
[07:23:12] Akagi201: has joined #ruby
[07:23:43] kraljev11: has joined #ruby
[07:23:58] sophiapstefan: has joined #ruby
[07:24:07] sophiapstefan: has left #ruby: ()
[07:25:37] rht: has joined #ruby
[07:27:04] pepperbreath1: has left #ruby: ()
[07:27:21] bruno-: has joined #ruby
[07:31:57] vdamewood: has joined #ruby
[07:34:27] swgillespie: has joined #ruby
[07:35:18] j4cknewt: has joined #ruby
[07:36:22] niemc2: has joined #ruby
[07:39:48] senayar: has joined #ruby
[07:40:35] skade: has joined #ruby
[07:41:56] x77686d: has joined #ruby
[07:45:15] ylla: has joined #ruby
[07:46:02] micmus: has joined #ruby
[07:46:18] ta: has joined #ruby
[07:46:32] speaking1ode: has joined #ruby
[07:47:08] n008f4g_: has joined #ruby
[07:48:35] failshell: has joined #ruby
[07:49:18] ylla: has joined #ruby
[07:49:48] hardlin3r: has joined #ruby
[07:51:12] acke: has joined #ruby
[07:58:13] commondream: has joined #ruby
[07:59:43] skade: has joined #ruby
[07:59:48] krisquigley: has joined #ruby
[08:01:25] wildroman2: has joined #ruby
[08:02:00] d0lph1n98: has joined #ruby
[08:03:02] gluten_hell: has joined #ruby
[08:04:25] CloCkWeRX: has joined #ruby
[08:05:29] Alina-malina: has joined #ruby
[08:08:08] k3asd`: has joined #ruby
[08:08:08] yoongkang: has joined #ruby
[08:11:07] yayfoxes: has joined #ruby
[08:12:36] allomov: has joined #ruby
[08:18:50] pragmatism: has joined #ruby
[08:20:13] k3asd`: has joined #ruby
[08:21:29] sandstrom: has joined #ruby
[08:24:42] nhhagen: has joined #ruby
[08:26:05] phutchins: has joined #ruby
[08:27:20] unshadow: has joined #ruby
[08:28:29] allcentury: has joined #ruby
[08:32:39] Musashi007: has joined #ruby
[08:32:40] nhhagen: has joined #ruby
[08:41:45] balazs: has joined #ruby
[08:46:57] RegulationD: has joined #ruby
[08:47:13] workmad3: has joined #ruby
[08:48:39] j4cknewt: has joined #ruby
[08:49:19] micmus: has joined #ruby
[08:50:59] ndrei: has joined #ruby
[08:54:00] duncannz: has joined #ruby
[08:55:02] zenguy_pc: has joined #ruby
[08:55:48] sinkensabe: has joined #ruby
[08:57:26] ta: has joined #ruby
[08:59:42] JamesDH: has joined #ruby
[09:01:40] ndrei: has joined #ruby
[09:02:53] sinkensabe: has joined #ruby
[09:03:08] Aswebb_: has joined #ruby
[09:05:09] Guest80919: has joined #ruby
[09:05:43] alphaatom: has joined #ruby
[09:07:32] shevy: little beavers inside all the things
[09:09:40] JamesDH: has joined #ruby
[09:12:02] ndrei: has joined #ruby
[09:12:23] alphaatom: has joined #ruby
[09:15:12] DEA7TH: has joined #ruby
[09:19:46] Musashi007: has joined #ruby
[09:23:49] ylla: has joined #ruby
[09:24:07] francois_: has joined #ruby
[09:25:36] ylla: has joined #ruby
[09:25:40] Spami: has joined #ruby
[09:26:41] multi_io: has joined #ruby
[09:27:41] revath: has joined #ruby
[09:28:50] bruno-: has joined #ruby
[09:29:57] bronson: has joined #ruby
[09:30:16] HotCoder: has joined #ruby
[09:31:14] kies: has joined #ruby
[09:31:22] zotherstupidguy: has joined #ruby
[09:31:26] tkuchiki: has joined #ruby
[09:33:10] lkba: has joined #ruby
[09:37:31] failshell: has joined #ruby
[09:38:20] zotherstupidguy: has joined #ruby
[09:40:19] yoongkang: has joined #ruby
[09:41:49] sinkensabe: has joined #ruby
[09:43:34] ndrei: has joined #ruby
[09:43:50] hectortrope: has joined #ruby
[09:44:45] riotjones: has joined #ruby
[09:45:15] al2o3-cr: has joined #ruby
[09:48:39] krisquigley: has joined #ruby
[09:49:02] ndrei: has joined #ruby
[09:50:04] nichtdiebohne: has joined #ruby
[09:50:25] stnly: has joined #ruby
[09:54:19] stardiviner: has joined #ruby
[09:54:27] ndrei: has joined #ruby
[09:54:31] ruurd: has joined #ruby
[09:55:41] tkuchiki: has joined #ruby
[09:57:15] FernandoBasso: has joined #ruby
[09:57:28] bruno-: has joined #ruby
[09:58:22] ta: has joined #ruby
[09:58:56] yoongkang: has joined #ruby
[10:00:01] commondream: has joined #ruby
[10:02:30] gluten_hell: has joined #ruby
[10:04:50] ndrei: has joined #ruby
[10:06:09] shevy: http://download.icu-project.org/files/icu4c/55.1/icu4c-55_1-src.tgz
[10:06:17] shevy: http://downloads.sourceforge.net/boost/boost_1_58_0.tar.bz2
[10:06:21] shevy: what is wrong with these C++ guys
[10:06:54] shevy: what happened to good old naming schemes such as foobar-1.0.1
[10:07:09] Rubie: has joined #ruby
[10:07:24] shevy: similar can be said about debian... http://ftp.debian.org/debian/pool/main/a/apt/apt_1.0.9.10.tar.xz and extracted, it suddenly becomes apt-1.0.9.10
[10:07:34] MasterPiece: has joined #ruby
[10:07:40] gluten_hell_: has joined #ruby
[10:11:00] tkuchiki: has joined #ruby
[10:11:30] gluten_hell_: has joined #ruby
[10:11:35] roshanavand: has joined #ruby
[10:13:04] Billias: has joined #ruby
[10:18:56] Ishiro: has joined #ruby
[10:20:35] qwertme: has joined #ruby
[10:21:28] workmad3: has joined #ruby
[10:21:29] zotherstupidguy: has joined #ruby
[10:23:01] niemcu: has joined #ruby
[10:23:13] noethics: has joined #ruby
[10:23:40] CloCkWeRX: has joined #ruby
[10:23:54] CloCkWeRX: has left #ruby: ()
[10:26:02] kraljev11: has joined #ruby
[10:30:38] michael_mbp: has joined #ruby
[10:31:32] startupality: has joined #ruby
[10:32:20] spider-mario: has joined #ruby
[10:35:48] RegulationD: has joined #ruby
[10:36:31] Jackneill: has joined #ruby
[10:37:21] chinmay_dd: has joined #ruby
[10:40:26] ebbflowgo: has joined #ruby
[10:41:28] konsolebox: has joined #ruby
[10:42:13] startupality: has joined #ruby
[10:42:39] edwinvdgraaf: has joined #ruby
[10:43:05] balazs: has joined #ruby
[10:43:07] skade: has joined #ruby
[10:46:03] j4cknewt: has joined #ruby
[10:46:20] allomov: has joined #ruby
[10:51:37] workmad3: has joined #ruby
[10:51:54] dopie: has joined #ruby
[10:52:49] Narzew: has joined #ruby
[10:54:05] tomphp: has joined #ruby
[10:54:29] platzhirsch: has joined #ruby
[10:55:20] skade: has joined #ruby
[10:58:30] timonv: has joined #ruby
[10:58:33] sarkyniin: has joined #ruby
[10:58:45] ta: has joined #ruby
[11:03:21] allcentury: has joined #ruby
[11:04:14] chinmay_dd: has joined #ruby
[11:08:55] DexterLB: has joined #ruby
[11:11:26] lapide_viridi: has joined #ruby
[11:12:54] roshanavand: has joined #ruby
[11:16:09] apt-get_: has joined #ruby
[11:16:45] arturmartins: has joined #ruby
[11:17:23] stamina: has joined #ruby
[11:18:19] vickleton: has joined #ruby
[11:18:44] pontiki: has joined #ruby
[11:20:57] yfeldblum: has joined #ruby
[11:21:24] pontiki: how're things?
[11:25:38] skade: has joined #ruby
[11:26:07] failshell: has joined #ruby
[11:31:41] apeiros: moin pontiki
[11:31:51] pontiki: hi apeiros
[11:32:00] apeiros: everything's horrible. and you?
[11:33:59] nihils: has joined #ruby
[11:34:05] phutchins: has joined #ruby
[11:34:12] aapole: has joined #ruby
[11:34:36] serivich: has joined #ruby
[11:35:54] kirun: has joined #ruby
[11:36:52] pontiki: everything is awesome!!
[11:36:59] pontiki: and all that denial-type bullshit
[11:37:27] krisquigley: has joined #ruby
[11:38:20] workmad3: has joined #ruby
[11:38:48] platzhirsch: has left #ruby: ()
[11:40:41] sonOfRa: has joined #ruby
[11:41:25] krz: has joined #ruby
[11:42:29] dgutierrez1287: has joined #ruby
[11:43:20] jpfuentes2: has joined #ruby
[11:45:23] apeiros: pontiki: cool, cool
[11:45:40] apeiros: is it at least getting better? :)
[11:45:54] jpfuentes2: has joined #ruby
[11:46:16] yoongkang: has joined #ruby
[11:46:24] pontiki: one bit of stress is out of my life, the product has shipped
[11:46:42] pontiki: now it's just the lingering sense of doom
[11:49:00] shevy: drama... dramatic... dramatiki!
[11:49:42] jpfuentes2: has joined #ruby
[11:50:43] mgorbach: has joined #ruby
[11:51:19] nickjj: pontiki, post-ship is usually more stress unless you have a well tested deployment/alerting system setup
[11:51:55] pontiki: we have had that, this isn't first release. i think this is version 5.x
[11:52:19] pontiki: but it contains major new functionality that i wrote major bits of
[11:52:24] nfk: has joined #ruby
[11:52:51] pontiki: and the added fun that no one was actually assigned to this project; we all had full-time gigs that paid
[11:53:06] sarkyniin: has joined #ruby
[11:53:14] pontiki: idk, i shouldn't complain
[11:53:17] mistnim: has joined #ruby
[11:53:21] pontiki: i love this company
[11:53:43] pontiki: they're the best people i've worked with in probably two decades
[11:54:41] apeiros: pontiki: awesome @ product has shipped!
[11:54:42] spider-mario: has joined #ruby
[11:54:56] apeiros: don't worry, the lingering doom will not be all that impactful
[11:55:34] pontiki: i didn't want to get this emotionally invested
[11:56:06] apeiros: means you're still part human and not yet fully transformed to a mouse ;-p
[11:56:44] pontiki: so many times i've worked at places and seen so many stupidities, especially in how management deals with people, that make me so angry
[11:56:53] jcaho: has joined #ruby
[11:57:00] lkba_: has joined #ruby
[11:57:16] pontiki: generally well under a year
[11:59:34] millerti: has joined #ruby
[11:59:42] pontiki: smartest bloody group of people
[12:00:14] sdothum: has joined #ruby
[12:00:44] ta: has joined #ruby
[12:03:58] dgutierrez1287: has joined #ruby
[12:04:05] Soda: has joined #ruby
[12:04:50] rickmasta: has joined #ruby
[12:04:53] j4cknewt: has joined #ruby
[12:04:57] charliesome: has joined #ruby
[12:05:55] pontiki: hello, atmosx
[12:07:13] dfockler: has joined #ruby
[12:08:30] workmad3: has joined #ruby
[12:09:25] Rubie: has joined #ruby
[12:09:50] atmosx: pontiki: I read you just shipped, cool.
[12:10:33] pontiki: ya, thanks
[12:10:51] The_Phoenix: has joined #ruby
[12:11:15] pontiki: first push to prod was a soft release last monday. i was adding major pieces of functionality until after midnight tuesday (so wednesday)
[12:11:41] pontiki: the app absolutely had to be done by the time the conference started on thursday
[12:11:50] atmosx: ah, high pressure
[12:11:58] atmosx: you had any all-nighters?
[12:12:10] pontiki: i'm way too old for that
[12:12:31] pontiki: but almost 20 hours on tuesday
[12:12:55] atmosx: I see, rails app?
[12:13:17] pontiki: just a stupid rails app, moving and displaying data
[12:13:31] atmosx: and you didn't had any phonecalls about it the first 3 days it went live, so I guess you're fine.
[12:13:50] atmosx: Displaying data for a DS system to pick it up?
[12:14:06] pontiki: no, this is just forms and stuff
[12:14:38] pontiki: i mean, there's some science in the formulae for brewing, but that's none of my stuff
[12:14:48] pontiki: mine has been all the e-commerce stuff
[12:16:17] bruno-: has joined #ruby
[12:17:37] maxshelley: has joined #ruby
[12:18:15] pontiki: there's still a major major issue that i haven't figured out, but we've just side-stepped it in the app for now
[12:19:35] pontiki: and crikey there's some embarrassing stuff in there i never want anyone to see
[12:19:36] charliesome: has joined #ruby
[12:19:42] A205B064: has joined #ruby
[12:19:57] jhass: so everything as always
[12:20:09] pontiki: this is the post-partum blues
[12:20:49] atmosx: There few things that I hate more than (extremely) slow procedures where you have to *wait* until something appears on a black screen.
[12:20:54] startupality: has joined #ruby
[12:20:59] zotherstupidguy: has joined #ruby
[12:21:03] atmosx: ACTION is dumping an RPi image to an SD card
[12:21:15] symm-: has joined #ruby
[12:21:18] jhass: pkill -1 dd ?
[12:21:26] atmosx: jhass: no, no it's not an option.
[12:21:37] atmosx: I have to get this music-box setup and get over with.
[12:21:41] jhass: also extremely slow? forgot to set a decent buffer size?
[12:21:44] RegulationD: has joined #ruby
[12:22:01] jhass: SIGHUP (1) makes dd print the progress
[12:22:14] atmosx: jhass: I'm using OSX's rdisk1 it goes as fast as it's physically possible.
[12:22:32] atmosx: it's prone to errors though
[12:23:12] marr: has joined #ruby
[12:23:17] atmosx: apeiros: you do web-dev too, at work?
[12:24:16] atmosx: 1369.229683 seconds ~ 22 minutes.
[12:24:19] atmosx: a lifetime
[12:25:58] atmosx: 1,7G Volumio1.55PI.img
[12:26:03] caseypatrickdris: has joined #ruby
[12:26:05] jhass: that's really slow
[12:26:14] jhass: you'll need to buy better sd cards
[12:26:20] atmosx: it's a class 10
[12:26:29] jhass: then rdisk1 is crap
[12:26:33] jhass: our your reader
[12:26:37] atmosx: maybe it's the card reader, but even the embedded card reader on the MBA is just as slow.
[12:26:44] kirun_: has joined #ruby
[12:26:51] arup_r: has joined #ruby
[12:26:51] atmosx: do you have any numbers to back up your CLAIMS?
[12:26:56] failshell: has joined #ruby
[12:27:05] mistnim: has joined #ruby
[12:27:43] pontiki: that does seem slow. mine get done in about 3 minutes
[12:27:52] pontiki: and i thought that was an interminable wait
[12:27:58] jhass: class10 should make 10MB/s
[12:28:15] atmosx: and USB2 should make around 400 MB/s
[12:28:17] caseypat_: has joined #ruby
[12:28:24] jhass: yeah, 3 minutes seems realistic for a class 10
[12:28:25] atmosx: I don't know why it's so slow but it has always been.
[12:29:15] qwertme: has joined #ruby
[12:29:52] WillAmes: has joined #ruby
[12:30:11] mistnim: has joined #ruby
[12:30:29] jhass: I mean 20 minutes, that's what, 1.5MB/s?
[12:30:49] chris2: has joined #ruby
[12:30:54] jhass: my broadband is faster than that
[12:30:58] bronson: has joined #ruby
[12:31:21] atmosx: jhass: you're making me feel awful. My broadband reaches 700 kb/s max.
[12:31:23] allomov: has joined #ruby
[12:32:36] k3asd`: has joined #ruby
[12:32:39] jhass: I do wonder if dd if=whatever of=/dev/whatever bs=5M or something like that is faster for you
[12:32:54] bruno-: has joined #ruby
[12:33:12] atmosx: tried that out
[12:33:21] jhass: with bs=5M or similar?
[12:35:31] lapide_viridi: has joined #ruby
[12:36:10] mistnim: has joined #ruby
[12:36:19] rickmasta: has joined #ruby
[12:36:57] atmosx: I've treid with 1024K before didn't see any difference. Then I've read somewhere that with rdisk on OSX speed doesn't matter, it goes as fast as possible.
[12:37:16] atmosx: r stands for 'raw', but it's dangerous. If an error occurs it won't get reported
[12:37:47] atmosx: I think the problem is the all-in-one SD card reader or my iMac is just too old.
[12:37:53] bruno-: has joined #ruby
[12:37:56] endash: has joined #ruby
[12:38:59] mistnim: has joined #ruby
[12:39:17] mdz_: has joined #ruby
[12:39:36] leslie: has joined #ruby
[12:39:36] leslie: has joined #ruby
[12:40:09] shevy: now there is your problem
[12:42:08] atmosx: linux is an accident waiting to "happen" :-P
[12:42:10] mary5030: has joined #ruby
[12:42:41] shevy: you have to know how to work with its warts :)
[12:42:52] bruno-: has joined #ruby
[12:43:08] atmosx: hehe true
[12:43:19] codecop: has joined #ruby
[12:44:03] startupality: has joined #ruby
[12:44:42] pontiki: wow, i'm smelling cigar smoke from outside
[12:44:56] pontiki: who smokes a cigar at 7 in the morning??
[12:45:04] shevy: young people!
[12:45:13] shevy: my neighbor smokes late night
[12:45:14] pontiki: that's crazy talk
[12:45:22] shevy: since it is hot here, I have my window open, and the smoke gets in :(
[12:45:33] unshadow: has joined #ruby
[12:46:48] atmosx: pontiki: why are you awake at 7 am in the morning? Are you big on exercise or something?
[12:47:13] pontiki: i woke up about 5 am and couldn't get back to sleep
[12:47:14] atmosx: ACTION the neighbours is at least 0.8 km away in all directions so...
[12:47:26] atmosx: err neighbour*
[12:47:45] pontiki: tho now i want to crawl back in bed, but i know my mom will start ringing for me any minute
[12:47:46] atmosx: pontiki: well, at least it's Sunday.
[12:47:54] bruno-: has joined #ruby
[12:48:03] skade: has joined #ruby
[12:49:11] atmosx: gonna grab somethin to eat, later all
[12:52:06] chouhoulis: has joined #ruby
[12:52:16] shevy: Sundays are lazy days
[12:52:39] edwinvdg_: has joined #ruby
[12:52:50] bruno-: has joined #ruby
[12:53:03] pontiki: they should be
[12:53:27] pontiki: but i still have to attend to my parents' needs
[12:56:11] codenihal: has joined #ruby
[12:56:39] codenihal: What are symbols? i just cant get my head around them
[12:57:54] bruno-: has joined #ruby
[12:58:51] pontiki: sorta like labels
[12:58:59] pontiki: idk if i have a good explanation...
[12:59:05] oddmunds: https://youtu.be/mBXGBbEbXZY
[12:59:20] oddmunds: ^ Ruby's Symbols Explained
[12:59:46] pontiki: so a half-hour explanation?
[13:00:12] codenihal: Could I have something a bit smaller?
[13:00:30] oddmunds: codenihal: what exactly are you not getting your head around?
[13:00:53] codenihal: Ok, I better ask this as a question. Are they like global variables?
[13:01:07] jhass: no, they are values
[13:01:12] jhass: 1, "foo", :bar
[13:01:15] zotherstupidguy: has joined #ruby
[13:01:24] oddmunds: no. you can't assign anything to a symbol like you can a variable.
[13:01:24] bin_005: has joined #ruby
[13:01:36] francois_: has joined #ruby
[13:01:48] codenihal: Alright, and what value do they hold? And why are they used instead of strings?
[13:02:33] ta: has joined #ruby
[13:02:40] zenguy_pc: has joined #ruby
[13:02:51] commondream: has joined #ruby
[13:02:52] bruno-: has joined #ruby
[13:03:20] futilegames: has joined #ruby
[13:03:46] codenihal: Alright, and what value do they hold? And why are they used instead of strings?
[13:03:51] oddmunds: i guess you could say that their names are the values they hold
[13:03:52] pontiki: a value is also not a variable
[13:04:06] pontiki: given the confusion, perhaps it's worth spending half an hour on it
[13:04:12] oddmunds: codenihal: would you say that 4 holds a value?
[13:04:30] codenihal: oddmunds, no
[13:04:46] oddmunds: then symbols do not hold any value
[13:04:52] codenihal: Why are they used instead of strings in rails?
[13:04:54] Ox0dea: has joined #ruby
[13:04:59] codenihal: Like :something
[13:05:41] Ox0dea: codenihal: http://bfy.tw/KXx
[13:06:00] Ox0dea: I mean, doesn't that make you feel at least a little silly?
[13:06:34] qwertme: has joined #ruby
[13:06:58] skade: has joined #ruby
[13:07:05] codenihal: Ox0dea: Yes it does, yes it does. Thank you.
[13:07:15] Ox0dea: Well, I appreciate your honesty.
[13:08:24] codenihal: Thanks for that link Ox0dea
[13:08:39] codenihal: and for sharing that wonderful site
[13:09:41] bruno-: has joined #ruby
[13:10:57] codecop: has joined #ruby
[13:11:11] ruurd: has joined #ruby
[13:12:32] alphaatom: has joined #ruby
[13:14:50] AbinoamJr: has joined #ruby
[13:15:43] chris2: has joined #ruby
[13:15:51] dgutierrez1287: has joined #ruby
[13:16:13] zenguy_pc: has joined #ruby
[13:16:36] wmoxam: has joined #ruby
[13:17:27] lkba: has joined #ruby
[13:19:30] charliesome: has joined #ruby
[13:20:01] shevy: another one fell to Ox0dea's hammer
[13:20:02] qwertme: has joined #ruby
[13:21:30] bkxd: has joined #ruby
[13:22:13] Scripore: has joined #ruby
[13:23:06] hexxx: has joined #ruby
[13:23:45] mrmargolis: has joined #ruby
[13:26:15] pontiki: i was almost banned from a channel for using that
[13:26:21] krisquigley: has joined #ruby
[13:31:45] ahmadsoe: has joined #ruby
[13:32:11] alphaatom: has joined #ruby
[13:32:18] bruno-: has joined #ruby
[13:32:23] hectorsq: has joined #ruby
[13:34:30] skade: has joined #ruby
[13:35:10] yoongkang: has joined #ruby
[13:37:33] RegulationD: has joined #ruby
[13:39:42] psye: has joined #ruby
[13:39:44] ndrei: has joined #ruby
[13:39:59] railsraider: has joined #ruby
[13:40:38] sarkyniin: has joined #ruby
[13:40:49] dreatn: has joined #ruby
[13:40:53] atomical: has joined #ruby
[13:46:11] jume: has joined #ruby
[13:46:19] devdazed: has joined #ruby
[13:48:20] zenguy_pc: has joined #ruby
[13:48:36] senayar: has joined #ruby
[13:48:43] senayar: has joined #ruby
[13:51:34] qwertme: has joined #ruby
[13:51:38] michael_mbp: has joined #ruby
[13:53:09] j4cknewt: has joined #ruby
[13:54:17] chris2: has joined #ruby
[13:57:14] workmad3: has joined #ruby
[13:59:18] blackmesa: has joined #ruby
[14:00:10] skade: has joined #ruby
[14:01:06] mary5030: has joined #ruby
[14:03:02] yqt: has joined #ruby
[14:04:08] ta: has joined #ruby
[14:04:09] weszlem: has joined #ruby
[14:04:33] Scripore: has joined #ruby
[14:05:39] shevy: does one of you know the behaviour
[14:05:43] shevy: say, I have a gem called foobar
[14:05:47] shevy: the latest version is 1.0.0
[14:06:05] shevy: and I have it installed. if I then do "gem install foobar", will it download 1.0.0 again?
[14:06:26] shevy: the message is sort of confusing
[14:06:28] shevy: "Successfully installed kramdown-1.7.0"
[14:06:50] jalcine: if it doesn't have the gem cached, afaik
[14:06:50] shevy: I would have expected something like "Latest version kramdown-1.7.0 is already installed." or something like that
[14:07:13] startupality: has joined #ruby
[14:07:19] havenwood: has joined #ruby
[14:07:43] jalcine: what version of Bundler are you using? When I attempt to install an already installed gem, it's just quiet for me
[14:07:51] chouhoulis: has joined #ruby
[14:07:54] jalcine: on gem 2.4.5
[14:08:01] jalcine: (not Bundler then, gem)
[14:08:27] shevy: hmm I am on 2.4.8
[14:08:30] shevy: but now that you mention it
[14:08:34] shevy: I think I may have a gemrc file ...
[14:08:49] shevy: oh yeah... I have an entry there :verbose: true
[14:09:16] shevy: hmm no, it still writes that message
[14:09:32] shevy: jalcine, does gem not yield to you the "Successfully installed" part message?
[14:10:14] mdz_: has joined #ruby
[14:10:17] jalcine: also with 'verbose: true' in my ~/.gemrc
[14:10:37] aapole: has joined #ruby
[14:11:11] veleno: has joined #ruby
[14:12:51] failshell: has joined #ruby
[14:13:32] freerobby: has joined #ruby
[14:14:38] michael_mbp: has joined #ruby
[14:14:41] borodin: ok folks - I switched my app from development to production - it's serving pages but all the assets are missing (failed to,load resource - 404). Is there a checklist for "stuff you must do to switch to RAILS_ENV=production ?
[14:19:31] jalcine: err things like running `rake assets:precompile` and `rake db:migrate` are two that should be on there
[14:19:35] jalcine: in reverse order, bo
[14:19:52] blackmesa: has joined #ruby
[14:20:23] k3asd`: has joined #ruby
[14:24:01] hardlin3r: has joined #ruby
[14:24:58] dionysus69: has joined #ruby
[14:27:55] ikbenhet: has joined #ruby
[14:28:56] n3vtelen: has joined #ruby
[14:29:12] n3vtelen: has left #ruby: ("Leaving")
[14:29:32] blackmesa: has joined #ruby
[14:30:39] AbinoamJr: has joined #ruby
[14:33:19] michael_mbp: has joined #ruby
[14:36:41] jhass: ?crosspost borodin
[14:36:41] ruboto: borodin, Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
[14:37:49] mcclurmc: has joined #ruby
[14:37:59] xcesariox: has joined #ruby
[14:38:57] enebo: has joined #ruby
[14:39:33] casadei: has joined #ruby
[14:41:02] cytoskeletor: has joined #ruby
[14:41:40] adac: has joined #ruby
[14:43:11] trollstation: has joined #ruby
[14:44:06] trollstation: Ruby fucking sucks pythons dick
[14:44:21] jhass: !mute trollstation
[14:44:21] ruboto: +q trollstation!*@*
[14:44:21] ruboto: -o ruboto
[14:44:26] jhass: such creativity
[14:44:27] chinmay_dd: has joined #ruby
[14:44:33] jume: has left #ruby: ()
[14:46:10] borodin: jhass sorry for the crosspost - I made a mistake
[14:46:14] borodin: but thanks for your help
[14:46:16] rindolf: has joined #ruby
[14:46:38] rindolf: havenwood: morning. Sup?
[14:46:39] borodin: still doesn't work, however. I wonder if it's due to using docker for the web server
[14:47:08] NeverDie: has joined #ruby
[14:47:24] jhass: borodin: your reverse proxy is configured to serve them?
[14:47:28] bkxd: has joined #ruby
[14:47:42] borodin: in dev I don't have any proxy
[14:47:52] jhass: yes, that's normal
[14:48:07] havenwood: rindolf: Hmm, maybe brunch. ;)
[14:48:38] rindolf: havenwood: om nom nom.
[14:48:49] wildroman2: has joined #ruby
[14:49:35] trollstation: has left #ruby: ()
[14:49:54] jhass: !unmute trollstation
[14:49:54] ruboto: -q trollstation!*@*
[14:49:54] ruboto: -o ruboto
[14:49:57] blackmesa: has joined #ruby
[14:49:57] niemc2: has joined #ruby
[14:50:49] NeverDie: has joined #ruby
[14:50:59] borodin: that guys has some recent pain he needs to free himself of
[14:52:42] startupality: has joined #ruby
[14:54:22] allcentury: has joined #ruby
[14:55:42] commondream: has joined #ruby
[14:58:54] Rubie: has joined #ruby
[14:59:16] ndrei: has joined #ruby
[15:00:14] rickmasta: has joined #ruby
[15:00:20] zotherstupidguy: has joined #ruby
[15:00:25] _whitelogger: has joined #ruby
[15:00:48] allcentury: has joined #ruby
[15:02:24] DLSteve: has joined #ruby
[15:03:16] ruby-lang493: has joined #ruby
[15:04:03] arturmartins: has joined #ruby
[15:04:57] weszlem: has joined #ruby
[15:05:29] davedev24_: has joined #ruby
[15:05:38] wildroman2: has joined #ruby
[15:05:45] ta: has joined #ruby
[15:06:10] trollstation: has joined #ruby
[15:06:57] nhhagen: has joined #ruby
[15:06:59] trollstation: Jhass why you do that joker
[15:07:08] S_Walker: has joined #ruby
[15:07:15] jhass: !mute trollstation
[15:07:15] ruboto: +q trollstation!*@*
[15:07:15] ruboto: -o ruboto
[15:07:19] jhass: sorry for the noise
[15:08:26] trollstation: has left #ruby: ()
[15:08:37] adaedra: wait, how could he talk if he was muted
[15:08:49] jhass: nah I unmuted after he left
[15:08:59] jhass: thought no need to clutter up the list
[15:09:03] jhass: thought wrong ;)
[15:09:35] adaedra: ah yes, here it is ??? scrolled too fast
[15:10:12] Scripore: has joined #ruby
[15:10:51] mdz_: has joined #ruby
[15:14:17] mary5030: has joined #ruby
[15:14:36] banister: has joined #ruby
[15:14:57] rbennacer: has joined #ruby
[15:15:13] krisquigley: has joined #ruby
[15:15:46] pontiki: borodin: you have the assets volume mounted for your web server container?
[15:15:56] pontiki: probably a stupid question, sorry
[15:16:14] borodin: the app with all the assets etc is in a volume, yes
[15:16:42] borodin: typically this means when I make changes to the local filesystem, those changes appear in the webserver and in the browser
[15:16:59] shevy: jhass perhaps he has more than just that account here
[15:17:41] railsraider_: has joined #ruby
[15:17:48] jhass: maybe, I see no other client with the same host so we can't know
[15:17:56] adac: has joined #ruby
[15:19:29] zotherstupidguy: has joined #ruby
[15:21:30] banister: has joined #ruby
[15:23:29] ylla: has joined #ruby
[15:24:08] platosha: has joined #ruby
[15:24:10] fsvehla: has joined #ruby
[15:24:46] platosha: has joined #ruby
[15:24:55] atomical: has joined #ruby
[15:26:18] rbennacer: has joined #ruby
[15:26:29] RegulationD: has joined #ruby
[15:27:24] iamninja: has joined #ruby
[15:29:10] sinkensabe: has joined #ruby
[15:30:52] hakunin: has joined #ruby
[15:31:10] ScriptGeek: has joined #ruby
[15:31:52] Guest6: has joined #ruby
[15:32:19] k3asd`: has joined #ruby
[15:32:57] JDiPierro: has joined #ruby
[15:35:48] ndrei: has joined #ruby
[15:37:42] mleung: has joined #ruby
[15:40:32] gluten_hell_: has joined #ruby
[15:42:36] balazs: has joined #ruby
[15:43:00] trollstation: has joined #ruby
[15:43:43] mintux: has joined #ruby
[15:43:47] mintux: has left #ruby: ()
[15:45:58] workmad3: has joined #ruby
[15:46:21] Pisuke: has joined #ruby
[15:47:26] Rubie: has joined #ruby
[15:47:31] trollstation: has left #ruby: ()
[15:48:37] chinmay_dd: has joined #ruby
[15:48:46] phutchins: has joined #ruby
[15:49:52] bmurt: has joined #ruby
[15:50:01] balazs: has joined #ruby
[15:51:56] bzb: has joined #ruby
[15:56:32] allcentury: has joined #ruby
[15:56:42] mdw: has joined #ruby
[15:58:32] failshell: has joined #ruby
[15:59:19] cytoskeletor: has joined #ruby
[16:01:06] platzhirsch: has joined #ruby
[16:02:23] someword: has joined #ruby
[16:03:17] commondream: has joined #ruby
[16:03:33] trollstation: has joined #ruby
[16:04:02] mgorbach: has joined #ruby
[16:04:27] railsraider: has joined #ruby
[16:06:14] rht: has joined #ruby
[16:06:30] rbennacer: has joined #ruby
[16:06:50] trollstation: has left #ruby: ()
[16:06:56] lavros: has joined #ruby
[16:07:13] ta: has joined #ruby
[16:07:19] Scroff: has joined #ruby
[16:08:21] trollololo: has joined #ruby
[16:08:45] serivich: has joined #ruby
[16:08:54] ebbflowgo: has joined #ruby
[16:09:11] trollololo: Ruby is shit
[16:09:14] havenwood: !mute trollololo
[16:09:14] ruboto: +q trollololo!*@*
[16:09:15] ruboto: -o ruboto
[16:09:33] mleung: has joined #ruby
[16:09:45] trollololo: has left #ruby: ()
[16:09:53] platosha: has joined #ruby
[16:11:51] Scripore: has joined #ruby
[16:12:09] trollflow: has joined #ruby
[16:12:21] havenwood: !mute trollflow
[16:12:21] ruboto: +q trollflow!*@*
[16:12:21] ruboto: -o ruboto
[16:13:21] startupality: has joined #ruby
[16:14:11] trollmagic: has joined #ruby
[16:14:14] bgmarx: has joined #ruby
[16:14:21] havenwood: !mute trollmagic
[16:14:22] ruboto: +q trollmagic!*@*
[16:14:22] ruboto: -o ruboto
[16:15:48] JDiPierro: has joined #ruby
[16:16:22] enebo: has joined #ruby
[16:16:26] mrsolo: has joined #ruby
[16:16:34] jenny209: has joined #ruby
[16:16:57] jenny209: Cock suckers
[16:17:26] havenwood: !ban jenny209 !T 1d
[16:17:27] jhass: +q-o *!*@dab-glb1-h-*.dab.02.net jhass
[16:17:27] ChanServ: +b jenny209!*@*
[16:17:27] ChanServ: ChanServ kicked jenny209: is banned from this channel
[16:17:52] slackbotgz: has joined #ruby
[16:18:18] havenwood: !unmute trollmagic
[16:18:23] havenwood: !unmute trollflow
[16:18:37] jhass: oh I didn't hit that one
[16:18:44] ruboto: -q trollmagic!*@*
[16:18:44] ruboto: -o ruboto
[16:18:45] alphaatom: has joined #ruby
[16:19:36] jhass: +qq +q!*@* *!*@dab-*.dab.02.net
[16:20:20] jhass: -q +q!*@*
[16:20:23] jhass: -q *!*@dab-glb1-h-*.dab.02.net
[16:20:58] jhass: -qqq trollflow!*@* trollololo!*@* trollstation!*@*
[16:21:02] trollalldaylong: has joined #ruby
[16:21:53] yardenbar: has joined #ruby
[16:22:11] simplyianm: has joined #ruby
[16:22:39] Master44: has joined #ruby
[16:23:32] trollwashere: has joined #ruby
[16:23:59] Nagaraj: has joined #ruby
[16:24:51] Master44: Its sublime text a good text editor?
[16:24:57] Master44: or any other sugestions?
[16:24:58] bgmarx: has joined #ruby
[16:25:21] jhass: Master44: it's fine, whatever comes now just ignore it
[16:25:49] dagda1: has joined #ruby
[16:25:57] havenwood: Master44: Atom is a free option you might want to look into if you don't own a copy of Sublime.
[16:26:27] al2o3-cr: havenwood: have you tried atom?
[16:26:34] havenwood: al2o3-cr: Yup
[16:26:53] al2o3-cr: might have to try it, looks nice :)
[16:27:26] Master44: I got some wifi issues
[16:28:12] havenwood: Master44: Here's the log if you mean you missed something here: http://irclog.whitequark.org/ruby/
[16:28:48] Master44: has joined #ruby
[16:29:14] Master44: got wifi issues, gtg sorry
[16:29:20] Master44: has left #ruby: ()
[16:30:02] psye: has joined #ruby
[16:31:04] psye: has joined #ruby
[16:31:31] lavros: has joined #ruby
[16:32:50] al2o3-cr: this is taking some time :(
[16:33:09] micmus: has joined #ruby
[16:34:18] al2o3-cr: eventually :)
[16:34:51] alphaatom: has joined #ruby
[16:35:28] weemsledeux: has joined #ruby
[16:35:33] Yiota: has joined #ruby
[16:35:39] weszlem: has joined #ruby
[16:35:43] aapole: has joined #ruby
[16:36:06] JCOE: has joined #ruby
[16:36:41] edwinvdgraaf: has joined #ruby
[16:37:21] edwinvdg_: has joined #ruby
[16:37:50] startupality: has joined #ruby
[16:38:13] phutchins: has joined #ruby
[16:39:01] francois_: has joined #ruby
[16:42:34] otherj: has joined #ruby
[16:42:49] dagda1: has joined #ruby
[16:43:15] Someer: has joined #ruby
[16:43:42] dgutierrez1287: has joined #ruby
[16:43:44] milktrader: has joined #ruby
[16:44:15] milktrader: Been a while since I programmed in Ruby, what release should I update to?
[16:44:30] milktrader: ACTION has 1.9.2
[16:44:46] milktrader: I???m interested in developing a Sinatra app, btw
[16:45:09] Someer: milktrader: 2.2
[16:45:17] otherj: is there some reason why you wouldn't just use the latest?
[16:45:36] Someer: Maybe he/she is running Ubuntu and installed it from software center?
[16:45:41] milktrader: not sure if there are hidden hazards with using the *latest*
[16:45:59] milktrader: gotcha, 2.2.2 thanks
[16:46:12] super: has joined #ruby
[16:46:36] otherj: the people you are attracted to prefer people who use 2.2
[16:46:39] otherj: that's a fact my friend
[16:47:17] mleung: has joined #ruby
[16:48:40] milktrader: okay, is rvm still the king of all things ruby installation?
[16:48:53] LJT: has joined #ruby
[16:48:56] jhass: if it works for you then it works for you
[16:49:52] apeiros: milktrader: rvm is still good.
[16:50:03] milktrader: cool, the site looks update
[16:50:23] otherj: I like rbenv personally
[16:50:47] LicHacker: has joined #ruby
[16:51:02] jhass: I don't like the stupid ".ruby-version must contain the exact version" policy
[16:52:48] Nagaraj: has joined #ruby
[16:54:02] millerti: has joined #ruby
[16:55:30] blackmesa: has joined #ruby
[16:55:42] xxneolithicxx: has joined #ruby
[16:57:02] n008f4g_: has joined #ruby
[16:57:47] erts: has joined #ruby
[16:57:47] erts: has joined #ruby
[17:00:10] LJT: has joined #ruby
[17:00:37] ellisTAA: has joined #ruby
[17:01:00] Scroff: has joined #ruby
[17:01:12] apeiros: ?ugt al2o3-cr
[17:01:13] ruboto: al2o3-cr, it's morning, see http://www.total-knowledge.com/~ilya/mips/ugt.html
[17:01:35] jhass: oh, a riddle, cxvxv
[17:01:40] jhass: roman number literal?
[17:02:36] ellisTAA: I???m trying to iterate over an array of urls and turn those urls into nokogiri objects using an each loop, but everytime it runs it raises an error ???undefined method ???join??? for #<String;-01293-01293???> does anyone know how i can iterate over a list of urls and turn them into nokogiri objects without getting this error?
[17:02:41] apeiros: they're gone already jhass
[17:02:52] jhass: hence I said anything
[17:02:52] ilr: has joined #ruby
[17:03:05] apeiros: ?code EllisTAA
[17:03:05] ruboto: EllisTAA, We can't help you without your code, please post it to https://gist.github.com
[17:04:12] ellisTAA: https://gist.github.com/ellismarte/ff4da421a7f2fb2a1c9b
[17:04:15] krisquigley: has joined #ruby
[17:04:38] ellisTAA: you can ignore the name of the route for now ill move this to the seed folder
[17:05:06] apeiros: EllisTAA: a) indentation?!??!?
[17:05:15] ellisTAA: yeah sorry about that
[17:05:21] apeiros: b) I'd assume sinatra? given the `get ???`
[17:05:22] jhass: b) backtrace?
[17:05:55] apeiros: d) if b is correct - sinatra probably wants a proper return value from the block, not just random plerp
[17:06:27] ellisTAA: apeiros: what do u mean it wants a proper return value?
[17:06:29] apeiros: (at the moment your block returns website_que - since Array#each returns the receiver)
[17:07:06] pyon: has joined #ruby
[17:07:14] apeiros: EllisTAA: first things first - *is* it sinatra? you know, because??? context matters.
[17:07:20] ellisTAA: hmm so maybe if i just put ???puts ???done??? after it is done iterating?
[17:07:24] ellisTAA: yes this is sinatra
[17:07:35] mattarse: has joined #ruby
[17:07:35] apeiros: great. next time you tell without asking :-p
[17:07:41] ertse: has joined #ruby
[17:07:56] apeiros: EllisTAA: how does a proper `get` with block look in sinatra look like?
[17:08:12] ellisTAA: get ???/??? do end
[17:08:19] apeiros: and that renders what?
[17:08:25] ellisTAA: content ...
[17:08:26] apeiros: or returns what to the browser?
[17:08:34] apeiros: your block is empty, so no, no content???
[17:08:39] commondream: has joined #ruby
[17:08:49] ta: has joined #ruby
[17:09:07] senayar: has joined #ruby
[17:09:13] ellisTAA: idk. it seems to be trying to join objects into a string ???
[17:09:44] chinmay_dd: has joined #ruby
[17:10:10] ellisTAA: ok so the route is trying to return an object of strings to the browser but it can???t do that ???
[17:10:31] ledestin: has joined #ruby
[17:10:48] jhass: because it should return ...
[17:10:50] apeiros: EllisTAA: time to read sinatra docs
[17:11:13] apeiros: EllisTAA: see what a proper block to `get` should return.
[17:11:36] apeiros: http://www.sinatrarb.com/intro.html#Return%20Values
[17:12:11] JDiPierro: has joined #ruby
[17:12:20] RegulationD: has joined #ruby
[17:12:22] lavros: has joined #ruby
[17:12:56] gregf: has joined #ruby
[17:13:13] zenguy_pc: has joined #ruby
[17:13:31] f3lp: has joined #ruby
[17:13:45] platosha: has joined #ruby
[17:14:08] xxneolithicxx: has joined #ruby
[17:14:28] startupality: has joined #ruby
[17:14:56] speaking1ode: has joined #ruby
[17:16:45] Cache_Money: has joined #ruby
[17:16:48] Vendo: has joined #ruby
[17:16:51] Scroff: has joined #ruby
[17:16:55] timonv: has joined #ruby
[17:16:56] Vendo: "Ruby will interpret your use of main as a regular variable or method name."
[17:17:00] Vendo: has this changed from 1.9?
[17:18:49] apeiros: Vendo: context?
[17:19:02] apeiros: main is not a keyword in ruby, if that's what you mean
[17:19:12] tomphp: has joined #ruby
[17:19:57] Vendo: apeiros: So what does it mean to say it will interpret my use of main as a regular variable or method name?
[17:19:59] Spami: has joined #ruby
[17:20:09] apeiros: again, context.
[17:20:09] Vendo: apeiros: I'm reading Eloquent Ruby parallel with The well grounded rubyist (1.9 version) and also have the pickaxe book 1.9&2.0. Is it ok to use those books?
[17:20:10] allomov: has joined #ruby
[17:20:14] Vendo: A bit outdated
[17:20:35] apeiros: I don't have those books, so that context does not help
[17:21:16] Vendo: main is a special term that the default self object uses to refer to itself. You can???trefer to it as main; Ruby will interpret your use of main as a regular variable or methodname.
[17:21:19] apeiros: but I guess all it means is: main is not a keyword. it's a normal method- or lvar name
[17:22:26] aapole: has joined #ruby
[17:22:31] yqt: has joined #ruby
[17:23:32] tennis_: has joined #ruby
[17:23:34] chouhoulis: has joined #ruby
[17:24:25] Vendo: It clearly says, "Ruby will interpret your use of main as a regular variable or methodname."
[17:24:40] jhass: can you phrase a more specific question?
[17:24:53] jhass: what's unclear to you?
[17:25:13] Vendo: Interpret? I can do main = 1
[17:28:28] senayar: has joined #ruby
[17:29:19] Scroff: has joined #ruby
[17:30:59] gubznf: has joined #ruby
[17:31:46] gubznf: has left #ruby: ()
[17:32:11] joaomdmoura: has joined #ruby
[17:33:26] e1nh4nd3r: has joined #ruby
[17:33:52] Scroff: has joined #ruby
[17:34:02] e1nh4nd3r: has joined #ruby
[17:34:49] workmad3: has joined #ruby
[17:35:35] flughafen_: has joined #ruby
[17:35:46] ikbenhet: has joined #ruby
[17:36:26] senayar: has joined #ruby
[17:36:26] Akagi201: has joined #ruby
[17:37:35] lessless: has joined #ruby
[17:38:50] someword: has joined #ruby
[17:39:53] veleno: has joined #ruby
[17:40:33] ellisTAA: has joined #ruby
[17:40:33] flughafen_: certainty: hi
[17:41:33] Channel6: has joined #ruby
[17:43:18] banister: has joined #ruby
[17:44:15] failshell: has joined #ruby
[17:44:33] atm0sphere_: has joined #ruby
[17:44:36] bluOxigen: has joined #ruby
[17:44:52] bluOxigen: has left #ruby: ()
[17:45:01] atm0sphere_: is there any ruboto devloper here?
[17:45:18] chinmay__: has joined #ruby
[17:45:29] epistrephein: has joined #ruby
[17:45:37] erts: has joined #ruby
[17:45:37] erts: has joined #ruby
[17:45:44] jhass: atm0sphere_: sup?
[17:45:44] veinofstars: has joined #ruby
[17:45:46] atm0sphere_: any idea where to get ruboto example app for devloping android app?
[17:46:12] jhass: you mean the code evaluation?
[17:46:18] atm0sphere_: i know ruby and want to make android app
[17:46:29] jhass: what does ruboto have to do with it?
[17:46:31] atm0sphere_: i want tutorials
[17:46:41] mcclurmc: has joined #ruby
[17:46:47] epistrephein: has joined #ruby
[17:46:59] zenguy_pc: has joined #ruby
[17:47:07] baweaver: has joined #ruby
[17:47:07] lavros: has joined #ruby
[17:47:07] chinmay__: has joined #ruby
[17:47:34] jhass: exactly, ??
[17:48:09] jhass: apeiros: ^ that's what you get from picking that name :P
[17:48:15] jhass: atm0sphere_: ignore me^^
[17:48:22] Asher: has joined #ruby
[17:49:06] atm0sphere_: one more question do i have trouble in installing ruboto on windows like rails??
[17:49:07] al2o3-cr: oh my god i burst out laughing so hard then it's not even funny lol
[17:49:22] ruboto: I'm the channel bot, linker of the rules, adept of the facts, wielder of the banhammer.
[17:50:35] atm0sphere_: ruboto why r u not on ruboto channel?
[17:50:54] ellisTAA: hey yall. when i run be rake db:seed i get an error on line 33 when it tries to run seed_urls. the error is NameError: Undefined local variable or method ???seed_urls??? for database builder class, does anyone know why https://gist.github.com/ellismarte/ff4da421a7f2fb2a1c9b#file-pp-rb-L33 my guess is there is something wrong with the end statement for the exceptions?
[17:51:23] al2o3-cr: i'm in tears here
[17:51:31] erts: has joined #ruby
[17:51:34] jume: has joined #ruby
[17:51:54] jhass: EllisTAA: your indentation is still confusing...
[17:52:03] ellisTAA: which part? haha
[17:52:07] swgillespie: has joined #ruby
[17:52:17] Scroff: has joined #ruby
[17:52:19] jhass: that you unindented the method definitions
[17:52:20] erts: has joined #ruby
[17:52:23] ellisTAA: ok this should be better https://gist.github.com/ellismarte/ff4da421a7f2fb2a1c9b#file-pp-rb-L33
[17:52:30] jhass: anyway, you can't call methods before you define them
[17:52:48] ellisTAA: jhass: ah so i just need to put the methods above the initial method?
[17:53:09] jhass: there's no "initial method", but yes
[17:53:22] jhass: I'm not sure why you define a class at all there tbh
[17:53:47] ellisTAA: i didn???t have a class initially i just put it there bc i thought it would help me get over an error ill remove it
[17:54:16] nertzy: has joined #ruby
[17:54:17] blueOxigen: has joined #ruby
[17:55:19] wildroman2: has joined #ruby
[17:55:41] havenwood: has joined #ruby
[17:55:47] bgmarx: has joined #ruby
[17:57:22] towski_: has joined #ruby
[18:00:33] banister: has joined #ruby
[18:02:01] acke: has joined #ruby
[18:02:18] vickleton: has joined #ruby
[18:02:20] gkra: has joined #ruby
[18:03:49] weszlem: has joined #ruby
[18:03:52] ellisTAA: sorry about the many questions, but now when i run be rake db:seed, i dont get any errors but nothing gets created in my db, do i need to call the run method? https://gist.github.com/ellismarte/ff4da421a7f2fb2a1c9b#file-pp-rb-L33
[18:04:26] jhass: of course?!
[18:04:35] yqt: has joined #ruby
[18:04:35] jhass: also why don't you fix your indentation already
[18:04:52] Guest6: has joined #ruby
[18:05:28] ellisTAA: i thought i fixed it. how do i run it? i put run at the bottom of the file
[18:07:04] k3asd`: has joined #ruby
[18:07:51] serivichi: has joined #ruby
[18:10:18] Axsuul: has joined #ruby
[18:10:53] spider-mario: has joined #ruby
[18:12:06] bmurt: has joined #ruby
[18:12:11] startupality: has joined #ruby
[18:12:18] ta: has joined #ruby
[18:12:33] simplyianm: has joined #ruby
[18:12:45] lavros: has joined #ruby
[18:13:10] RegulationD: has joined #ruby
[18:13:18] allomov: has joined #ruby
[18:14:09] sinkensabe: has joined #ruby
[18:14:27] x1337807x: has joined #ruby
[18:14:40] weszlem: has joined #ruby
[18:16:52] ellisTAA: has joined #ruby
[18:17:05] ellisTAA: why the fuck isn???t this working https://gist.github.com/ellismarte/ff4da421a7f2fb2a1c9b
[18:17:14] jhass: EllisTAA: slight refactor, didn't watch for bugs http://paste.mrzyx.de/pyeedshcl
[18:17:21] nikhgupta: has joined #ruby
[18:17:34] JDiPierro: has joined #ruby
[18:17:54] atmosx: EllisTAA: can you be more specific, line etc?
[18:18:39] diegoviola: has joined #ruby
[18:18:41] doerteDev: has joined #ruby
[18:18:44] diegoviola: has joined #ruby
[18:19:17] ellisTAA: jhass: omfg how does yours work and mine doesnt. thank you so much for taking the time to help me out, i???m going to go read over your code and try to learn something
[18:19:23] timmac: has joined #ruby
[18:19:41] jhass: I kept it simple
[18:19:49] ellisTAA: what do you mean
[18:19:53] timmac: has left #ruby: ()
[18:20:24] jhass: like not messing around with instance variables if there's zero need or extracting stuff that's a single line I'm repeating nowhere into a method
[18:21:30] ellisTAA: hmm ok cool im going to study this. thanks again
[18:22:44] mister_solo: has joined #ruby
[18:24:12] weaksauce: has joined #ruby
[18:24:21] sdothum: has joined #ruby
[18:25:29] startupality: has joined #ruby
[18:25:42] flughafen_: is there something wrong with this statement? if line.include? 'Scenario' && ! line.include? '#'
[18:25:43] _seanc_: has joined #ruby
[18:26:15] jume: has left #ruby: ()
[18:26:23] jhass: flughafen_: if you meant to do line.include?('Scenario' && !line.include?('#')), no ;P
[18:26:45] flughafen_: jhass: i totally meant to do that
[18:26:54] flughafen_: i was just testing you ;)
[18:27:13] flughafen_: of course you passed, since you're jhass
[18:27:33] flughafen_: i think i read in the styleguide that you should always use () with functions?
[18:27:37] aryaching: has joined #ruby
[18:27:45] jhass: some say so, some say so
[18:27:52] jhass: I tend to leave them off where I can
[18:28:02] jhass: that's simply a case where you can't
[18:28:09] bluOxigen: has joined #ruby
[18:28:11] flughafen_: ok, that syntax looks weird.
[18:28:19] francois_: has joined #ruby
[18:28:20] Axsuul: has joined #ruby
[18:28:49] jhass: confused yet? line.include? 'Scenario' and !line.include? '#' would do what you intended
[18:28:50] lavros: has joined #ruby
[18:29:08] Vendo: line.include?('Scenario' && !line.include?('#'))
[18:29:30] flughafen_: i searched and theyh said always use && ha.
[18:29:31] atmosx: flughafen_: to me that syntax is confusing to read, although I understand what you're up to.
[18:29:46] Vendo: flughafen_: In that case, you should use and, not &&
[18:29:54] jhass: flughafen_: I agree, add parens instead of using and
[18:30:02] Vendo: flughafen_: You have to differ between control flow and boolean checks.
[18:30:33] flughafen_: well, it was weird that it didn't work with if (check1 && !check2)
[18:30:35] jhass: control flow via operator shortcuit is meh, hence I never use and and or
[18:30:40] hakunin: has joined #ruby
[18:30:51] Vendo: not a true Rubyist.
[18:30:56] simplyianm: has joined #ruby
[18:30:59] atmosx: we should ban him
[18:31:06] jhass: as if you had the authority to define that
[18:31:15] jhass: na, Vendo
[18:31:23] flughafen_: yeah, ok, let's ban him ;)
[18:31:30] Vendo: jhass: Old authors do.
[18:31:32] codecop: has joined #ruby
[18:31:32] pabloh: has joined #ruby
[18:31:34] codecop_: has joined #ruby
[18:32:09] jhass: I'd grant Matz that privilege, maybe. But he's nice so he'll never use it
[18:32:16] flughafen_: thanks jhass i'll just use that then
[18:32:20] Vendo: flughafen_: You will find the Ruby control flow and boolean checks to differ from other languages, like C.
[18:32:46] jhass: flughafen_: line.include?('Scenario') && !line.include?('#') would be my preferred form
[18:33:10] nikhgupta: has joined #ruby
[18:33:17] flughafen_: i like that better. OOOOh, that's why it was complaining because I didn't use the () and it thiniks i'm going crazy with args?
[18:33:33] flughafen_: jhass: that would be my preffered way
[18:33:37] jhass: uh, did you carefully read my initial response?
[18:33:43] workmad3: has joined #ruby
[18:33:59] jhass: that's what's equivalent to leaving the parens off
[18:34:27] Vendo: They also have precedence, hence it's obvious when to use one over the other.
[18:34:30] jhass: though the and variant is equivalent to the latter because the precedence rules for && and and differ (which is there only real difference)
[18:34:35] rickmasta: has joined #ruby
[18:34:35] Vendo: different precedence*
[18:35:33] simplyianm: has joined #ruby
[18:35:51] dagda1: has joined #ruby
[18:35:58] Axsuul: has joined #ruby
[18:36:07] endash: has joined #ruby
[18:36:39] blueOxigen: has joined #ruby
[18:37:15] atmosx: jhass: what does the keyword next mean under rescue? https://gist.github.com/ellismarte/ff4da421a7f2fb2a1c9b#file-pp-rb-L43
[18:37:22] senayar: has joined #ruby
[18:37:32] atmosx: go to next rescue clause?
[18:37:32] jhass: atmosx: nothing, it affects the block
[18:37:43] jhass: next returns from the current block
[18:38:08] jhass: break returns from the method calling the current block
[18:38:19] jhass: and return returns from the current method
[18:38:19] rbennacer: has joined #ruby
[18:38:34] atmosx: ah so basically it exist with an error doesn't handle anything
[18:38:49] jhass: I forgot to remove it, I made it useless
[18:38:52] atmosx: and some descriptive message hopefully.
[18:38:55] al2o3-cr: next is like continue
[18:38:59] jhass: ah no, I removed it in my version
[18:39:07] atmosx: al2o3-cr: and what does continue due?
[18:39:21] atmosx: keep the flow running to the next clause?
[18:39:25] Vendo: atmosx: Continue without affecting any current state.
[18:39:28] atmosx: then why rescue?
[18:39:52] jhass: I think next has the mostly same usecases as continue in other language is slightly better wording ;)
[18:40:48] xxneolithicxx: has joined #ruby
[18:42:12] Aswebb_: has joined #ruby
[18:42:16] jhass: >> def foo; a=[]; a << yield 1; a << yield 2; a << yield 3; a end; [foo {|i| next i if i == 2; i*4; }, foo {|i| break i if i == 2; i*4; }]
[18:42:17] ruboto: jhass # => /tmp/execpad-13ce2e28fd4d/source-13ce2e28fd4d:2: syntax error, unexpected tINTEGER, expecting keywor ...check link for more (https://eval.in/381311)
[18:42:55] jhass: >> def foo; a=[]; a << yield(1); a << yield(2); a << yield(3); a end; [foo {|i| next i if i == 2; i*4; }, foo {|i| break i if i == 2; i*4; }]
[18:42:56] ruboto: jhass # => [[4, 2, 12], 2] (https://eval.in/381312)
[18:43:14] adaedra: > not able to get sample right the first time
[18:43:17] adac: has joined #ruby
[18:43:32] adaedra: come on jhass, you were better than that.
[18:43:40] adaedra: hey flughafen_
[18:43:46] jhass: fun part: not the first time I made that exact mistake, I should know yield wants parens there :/
[18:44:48] bluOxigen: has joined #ruby
[18:44:55] m8: has joined #ruby
[18:45:14] veleno: has joined #ruby
[18:45:44] Guest6: has joined #ruby
[18:45:44] atmosx: don't worry, we will forgive you
[18:46:09] lavros: has joined #ruby
[18:47:18] flughafen_: is system() recommended for executing a console app? i want the output to show as it goes. but i don't want to the ruby code to exit like with exec()
[18:47:38] mcclurmc: has joined #ruby
[18:47:45] nikhgupt`: has joined #ruby
[18:47:48] jhass: it always depends on your usecase, system sounds good for what you describe
[18:48:00] havenwood: flughafen_: what's the command you're running? or just generally?
[18:48:07] atmosx: http://craphound.com/littlebrother/download/ <-- here a nice read for teenagers, computers, hackers, security, surveillance state... It's the whole package.
[18:48:09] flughafen_: havenwood: cucumber
[18:48:48] flughafen_: i'm writing a little tool to help me develop/test stuff with cucumber/capybara/phantomjs
[18:49:53] atmosx: flughafen_: sounds cool
[18:52:07] Macaveli: has joined #ruby
[18:52:28] chussenot: has joined #ruby
[18:53:00] krisquigley: has joined #ruby
[18:54:19] ayonkhan: has joined #ruby
[18:54:40] flughafen_: i'm switching from selenium/firefox to phantomjs, holy crap it's so much faster
[18:56:10] senayar: has joined #ruby
[18:56:18] ayonkhan: has joined #ruby
[18:56:58] otherj: has joined #ruby
[18:57:00] ayonkhan: has joined #ruby
[18:58:07] jaequery: has joined #ruby
[18:59:06] simplyianm: has joined #ruby
[19:00:31] afrianska: has joined #ruby
[19:01:02] ellisTAA: has joined #ruby
[19:01:27] ellisTAA: if i have a user table how can i return just there name based on the condition that their id is 1. so far i have User.where(id: 1)
[19:03:03] AlexRussia: has joined #ruby
[19:03:31] jhass: .pluck(:name) (assuming activerecord which your question lacks as context)
[19:04:30] platosha_: has joined #ruby
[19:05:39] ellisTAA: god damn thank yoU!
[19:05:42] ellisTAA: that worked
[19:05:47] xxneolithicxx: has joined #ruby
[19:06:38] lavros: has joined #ruby
[19:07:24] atmosx: Here is a good read about the .pluck method lol http://solnic.eu/2015/06/06/cutting-corners-or-why-rails-may-kill-ruby.html
[19:08:02] atmosx: EllisTAA: I'm trolling the guy goes kinda crazy over the idea of adding 'pluck' to ruby because it's used by AR.
[19:09:21] chouhoulis: has joined #ruby
[19:10:15] Kricir: has joined #ruby
[19:10:31] crazydiamond: has joined #ruby
[19:12:26] mdz_: has joined #ruby
[19:12:59] someword: has joined #ruby
[19:13:37] iooner: has joined #ruby
[19:13:53] ta: has joined #ruby
[19:16:01] alem0lars___: has joined #ruby
[19:16:24] pontiki: has joined #ruby
[19:16:44] jalopezsilva: has joined #ruby
[19:16:49] simplyianm: has joined #ruby
[19:17:35] Yiota: has joined #ruby
[19:17:51] veleno: has joined #ruby
[19:18:16] ellisTAA: has joined #ruby
[19:18:30] ellisTAA: so when i iterate over an array of nokogiri objects i get a join error at the end because it wants to turn them into a string ??? how can i get over this? i dont want to return the array ???
[19:18:53] jhass: did you follow apeiros's link?
[19:18:57] ayonkhan: has joined #ruby
[19:19:13] ellisTAA: yeah it said sinatra expects a string ???
[19:19:17] Yiota: has joined #ruby
[19:19:24] psye: has joined #ruby
[19:19:25] jhass: does each return a string?
[19:19:42] ellisTAA: no it returns a stupid array
[19:19:47] jhass: there you go
[19:19:48] JDiPierro: has joined #ruby
[19:20:00] ellisTAA: so how do i get it to not return the array?
[19:20:02] ayonkhan: has joined #ruby
[19:20:15] jhass: you can't
[19:20:25] jhass: however you can have your block not return an array
[19:20:37] ellisTAA: what do u mean
[19:20:58] jhass: the last expression of a block is its return value
[19:21:31] sinkensabe: has joined #ruby
[19:21:40] bmurt: has joined #ruby
[19:22:02] ellisTAA: ok ??? i???m iterating over nokogiri objects trying to print one of their atttributes ??? but it is returning an array of objects??? ???how can i get it to not return an array ..
[19:22:04] Scripore: has joined #ruby
[19:22:28] jhass: again you can't
[19:22:39] jhass: but you can control what the last expression of your block is
[19:22:45] ellisTAA: how do i do that?
[19:22:49] havenwood: EllisTAA: Gist the code around what your talking about?
[19:22:57] JCOE: has joined #ruby
[19:22:57] jhass: you add an expression to your block
[19:22:58] toretore: has joined #ruby
[19:23:05] lavros: has joined #ruby
[19:24:06] ellisTAA: https://gist.github.com/ellismarte/ff4da421a7f2fb2a1c9b#file-results-rb-L15-L17
[19:24:19] millerti: has joined #ruby
[19:24:58] ellisTAA: actually ignore that ill fix it up real quick
[19:25:20] ixti: has joined #ruby
[19:25:33] Xeago: has joined #ruby
[19:25:37] ayonkhan: has joined #ruby
[19:25:47] ellisTAA: https://gist.github.com/ellismarte/ff4da421a7f2fb2a1c9b#
[19:25:51] bruno-: has joined #ruby
[19:26:04] jhass: add a file with the _full_ error output
[19:26:35] ellisTAA: https://gist.github.com/ellismarte/ff4da421a7f2fb2a1c9b#
[19:27:01] micmus: has joined #ruby
[19:28:08] rbennacer: has joined #ruby
[19:28:40] jhass: all_h1s is a local variable, it's not shared with the view in sinatra
[19:28:40] hyperjuice: has joined #ruby
[19:28:48] jhass: #<NameError: undefined local variable or method `all_h1s' for #<Sinatra::Application:0x007f860b4acb88>>
[19:29:02] niemc2: has joined #ruby
[19:29:08] ellisTAA: omg that worked lol
[19:29:25] Scroff: has joined #ruby
[19:29:48] ellisTAA: however it didn???t return anything ??? is my form mesed up?
[19:29:56] ellisTAA: nvm ill figure it out
[19:31:22] babykosh: has joined #ruby
[19:31:29] AbinoamJr: has joined #ruby
[19:32:04] symm-: has joined #ruby
[19:32:06] Roa: has joined #ruby
[19:33:59] dgutierrez1287: has joined #ruby
[19:35:36] avahey: has joined #ruby
[19:36:22] qwertme: has joined #ruby
[19:37:28] bluOxigen: has joined #ruby
[19:40:39] hectortrope: has joined #ruby
[19:41:55] bgmarx: has joined #ruby
[19:42:53] Ox0dea: has joined #ruby
[19:44:35] lavros: has joined #ruby
[19:44:46] diego1: has joined #ruby
[19:44:54] diego1: has joined #ruby
[19:45:27] Ox0dea: Anybody care to hazard a rough guess at how much space would be required to install all the gems?
[19:46:55] ellisTAA: has joined #ruby
[19:47:05] jhass: 1.3 WonderBytes
[19:47:18] horsecowdog: has joined #ruby
[19:47:51] ndrei: has joined #ruby
[19:48:06] ellisTAA: i???m trying to query some stuff in sinatra, and when i write ???@all_h1s = H1.where(???content LIKE????, ???%#{params[:search]}%???).all params search is seen as a string instead of as a variable
[19:48:10] AbinoamJr: has joined #ruby
[19:48:16] shevy: Ox0dea one gem would be, 50kb on average
[19:48:23] shevy: so we have... less than 120.000 gems
[19:49:13] haxrbyte: has joined #ruby
[19:49:16] Ox0dea: Sorry, it was a Game of Thrones reference.
[19:49:48] Ox0dea: I ran `gem install $(gem search | cut - ' ' -f 1)`, and now I'm waiting for something to happen.
[19:50:01] senayar^: has joined #ruby
[19:50:19] jhass: see you 2020
[19:50:19] Ox0dea: That would be cut -d, of course.
[19:50:44] Ox0dea: I think my shell's probably going to complain the lenght of the argument list.
[19:51:07] jhass: I think the number was quite high
[19:51:24] jhass: individual argument size is quite low though
[19:52:09] ellisTAA: can anyone tell me why this line isn???t interploating foo? https://gist.github.com/ellismarte/ff4da421a7f2fb2a1c9b#file-error-txt-L8
[19:52:40] jhass: because single quotes don't interpolate
[19:52:55] atmosx: http://devblog.avdi.org/2015/06/04/how-a-keyboard-changed-what-i-look-for-in-an-editor/ interesting keyboard
[19:53:00] ellisTAA: http://gamerindebt.co.uk/wp-content/uploads/2013/07/double-facepalm.jpg
[19:53:05] jhass: oh, and that weird percent literal there doesn't either
[19:53:13] jhass: what's up with that?
[19:53:24] jhass: does that even parse?
[19:54:13] atmosx: jhass: I don't think so
[19:54:16] ellisTAA: no that was a typo
[19:54:26] atmosx: EllisTAA: are you getting paid? :-P
[19:54:27] jhass: pretty hard typo
[19:54:38] ellisTAA: no not paid, im a student
[19:54:42] jhass: do you have a cat?
[19:54:43] Roa: has joined #ruby
[19:54:48] atmosx: EllisTAA: for a moment I was about to switch carrier
[19:54:48] j4cknewt: has joined #ruby
[19:54:51] flughafe1: has joined #ruby
[19:54:58] ellisTAA: i have feelings
[19:55:00] Ox0dea: >> %/#{?a+?b}/
[19:55:01] ruboto: Ox0dea # => "ab" (https://eval.in/381332)
[19:55:04] atmosx: EllisTAA: j/k
[19:56:16] ayonkhan: has joined #ruby
[19:57:32] ayonkhan: has joined #ruby
[19:58:13] blackmesa: has joined #ruby
[19:59:04] rkazak: has left #ruby: ()
[19:59:30] rkazak: has joined #ruby
[20:01:18] krz: has joined #ruby
[20:01:55] yeticry: has joined #ruby
[20:02:05] RegulationD: has joined #ruby
[20:03:43] flughafe1: night atmosx adaedra jhass , i'll be back tomorrow when i get to work
[20:04:44] atmosx: night :-)
[20:04:46] atmosx: sleep tight!
[20:06:20] allcentury: has joined #ruby
[20:06:21] ruboto: existensil # => "a" (https://eval.in/381333)
[20:06:27] existensil: what is that?
[20:06:42] x1337807x: has joined #ruby
[20:07:05] lavros: has joined #ruby
[20:07:16] mozzarella: >> ?a == 'a'
[20:07:17] ruboto: mozzarella # => true (https://eval.in/381334)
[20:07:18] Ox0dea: Ancient character literal syntax.
[20:07:25] preller_: has joined #ruby
[20:07:33] ruboto: jhass # => 97 (https://eval.in/381335)
[20:07:42] ruboto: havenwood # => "a" (https://eval.in/381336)
[20:07:42] jhass: was useful back then
[20:07:49] jhass: not anymore
[20:07:58] Ox0dea: It's still good for golf. :)
[20:08:01] jhass: 18>> "aaa"[0] == ?a
[20:08:02] ruboto: jhass # => true (https://eval.in/381337)
[20:08:20] Ox0dea: That equality still holds, of course.
[20:08:23] qwertme: has joined #ruby
[20:08:28] Ox0dea: And String has #bytes, so nothing really lost.
[20:08:30] havenwood: >> "aaa".chr == ?a
[20:08:31] ruboto: havenwood # => true (https://eval.in/381338)
[20:08:32] adaedra: 100% tests passing, 100% code coverage, guess it's time for doc
[20:08:40] jhass: 18>> "aaa"[0] == 'a'
[20:08:41] ruboto: jhass # => false (https://eval.in/381339)
[20:08:45] borodin: has joined #ruby
[20:08:48] jhass: that's what changed though
[20:08:54] jhass: which is why it was useful back then
[20:09:02] Ox0dea: >> '%c' % 'ab'
[20:09:03] ruboto: Ox0dea # => %c requires a character (ArgumentError) ...check link for more (https://eval.in/381340)
[20:09:07] alem0lars__: has joined #ruby
[20:09:09] Ox0dea: I think that ArgumentError should go away.
[20:09:19] Ox0dea: It's the last indication that Ruby makes a distinction between characters and strings.
[20:09:27] Ox0dea: Feels like a leaked abstraction to me.
[20:10:03] k3asd`: has joined #ruby
[20:11:16] Yiota: has joined #ruby
[20:11:38] ellisTAA: has joined #ruby
[20:12:15] wildroman2: has joined #ruby
[20:12:47] iamninja: has joined #ruby
[20:13:06] commondream: has joined #ruby
[20:13:19] erts: has joined #ruby
[20:13:21] erts: has joined #ruby
[20:14:18] Aswebb__: has joined #ruby
[20:14:21] Xeago: has joined #ruby
[20:15:20] blue_deref: has joined #ruby
[20:15:31] ta: has joined #ruby
[20:16:01] Agoldfish: has joined #ruby
[20:16:08] bin_005: has joined #ruby
[20:16:51] francois_: has joined #ruby
[20:17:48] mfranzwa: has joined #ruby
[20:18:26] djbkd_: has joined #ruby
[20:20:55] JamesDH: has joined #ruby
[20:23:42] MasterPiece: has joined #ruby
[20:26:07] yfeldblum: has joined #ruby
[20:26:19] sinkensabe: has joined #ruby
[20:27:22] JamesDH: has joined #ruby
[20:33:59] TheHodge: has joined #ruby
[20:34:15] postmodern: has joined #ruby
[20:36:52] sinkensabe: has joined #ruby
[20:37:27] shevy: isn't that the amount of arguments given?
[20:37:57] grzywacz: has joined #ruby
[20:37:57] grzywacz: has joined #ruby
[20:38:05] Rollabunna: has joined #ruby
[20:41:00] Xeago: has joined #ruby
[20:41:24] sarkyniin: has joined #ruby
[20:41:30] dagda1: has joined #ruby
[20:42:03] krisquigley: has joined #ruby
[20:43:13] zotherstupidguy: has joined #ruby
[20:46:00] Ox0dea: >> ['ab'.ord, 'ab'.chr]
[20:46:02] ruboto: Ox0dea # => [97, "a"] (https://eval.in/381342)
[20:46:04] micmus: has joined #ruby
[20:46:35] Ox0dea: shevy: Given the above, I would think '%c' % 'ab' ought to just be 'a'.
[20:46:55] mrmargolis: has joined #ruby
[20:47:18] apeiros: >> "%d" % "hi"
[20:47:19] ruboto: apeiros # => invalid value for Integer(): "hi" (ArgumentError) ...check link for more (https://eval.in/381343)
[20:47:36] apeiros: it's consistent with other printf substitutions
[20:47:57] Ox0dea: But it's inconsistent with what "character" means anywhere else.
[20:48:00] apeiros: or well, it's at least with that single one I just checked :)
[20:48:41] apeiros: not really. both methods state that they refer to the first character in the string
[20:48:49] dagda1: has joined #ruby
[20:48:56] tomphp_: has joined #ruby
[20:49:11] mcclurmc: has joined #ruby
[20:49:16] gluten_hell_: has joined #ruby
[20:49:24] Ox0dea: String#ord's current documentation actually says that it returns the ordinal of "a one-character string".
[20:49:26] apeiros: I would have found it useful if both accepted an index argument
[20:49:35] rbennacer: has joined #ruby
[20:49:36] Maletor: has joined #ruby
[20:50:09] apeiros: oh, right, I'm looking at "from gem mail-2.6.3" - seems like I haven't generated core docs here yet???
[20:50:09] psye: has joined #ruby
[20:50:34] rbennacer: has joined #ruby
[20:50:40] platosha_: has joined #ruby
[20:50:59] apeiros: in that case - that should be documented appropriately :)
[20:51:10] gianlucadv: has joined #ruby
[20:51:23] Ox0dea: Why not just fail with an ArgumentError for strings of size greater than 1?
[20:51:32] Ox0dea: In order to be consistent with '%c'. :P
[20:52:09] apeiros: I'd again still prefer an index arg
[20:52:23] Ox0dea: I'm not sure how you mean.
[20:52:43] allcentury: has joined #ruby
[20:52:51] apeiros: "az".ord(1) # => 122
[20:52:58] apeiros: defaulting to 0
[20:52:59] Musashi007: has joined #ruby
[20:53:15] Ox0dea: But Ruby strings can contain embedded NULs.
[20:53:29] Ox0dea: Defaulting to nil would be more sensibl.
[20:53:46] JimBurns83: has joined #ruby
[20:53:58] apeiros: defaulting to nil would make no sense
[20:54:24] Ox0dea: Ascribing an ordinal value to a nonexistent character seems pretty silly.
[20:54:40] apeiros: I think you're getting something wrong there???
[20:54:58] Ox0dea: You'd want String#ord to return the ordinal value of the nth character, right?
[20:55:05] apeiros: an index param, as in "give me the ordinal of the character at the given index"
[20:55:14] Ox0dea: Yeah, I gotcha. That was bad.
[20:55:47] apeiros: but right now it takes an argument for the encoding
[20:56:22] j_mcnally: has joined #ruby
[20:56:22] Ox0dea: No, String#ord doesn't take any arguments.
[20:56:39] apeiros: oh wait, chr takes the encoding arg
[20:56:47] phat4life: has joined #ruby
[20:57:03] apeiros: ok, so ord(index=0) would even be backwards compatible
[20:58:28] Ox0dea: It seems like a reasonable enough change, but then why not apply the same reason to '%c'?
[20:58:34] Ox0dea: *reasoning
[20:59:26] perturbation: has joined #ruby
[20:59:36] apeiros: IMO the reasoning is that printf doesn't coerce. or doesn't seem to at least (I really only probed %d)
[20:59:43] horsecowdog: has joined #ruby
[20:59:55] bronson: has joined #ruby
[21:00:03] apeiros: (nb: just trying to figure the reasoning - it's not my own)
[21:00:07] Ox0dea: Ruby doesn't have a character type/class.
[21:00:42] failshell: has joined #ruby
[21:01:00] apeiros: that's not really of relevance for that reasoning
[21:01:17] apeiros: the reasoning says "if you use %c, you want a single character, if you pass in something else, you did so in error and I tell you"
[21:01:31] centrx: has joined #ruby
[21:01:43] apeiros: but it's relatively arbitrary
[21:01:59] apeiros: could raise with "%d" % "10" too, but that it will coerce???
[21:02:08] centrx: has joined #ruby
[21:02:33] tomphp: has joined #ruby
[21:03:28] Ox0dea: >> '%c' % [97, 98]
[21:03:29] ruboto: Ox0dea # => "a" (https://eval.in/381344)
[21:03:32] Ox0dea: The defense rests.
[21:04:10] apeiros: % with an array is to fill multiple %'s ;-)
[21:04:13] al2o3-cr: Ox0dea: made a little script to calculate all bytes for all remote gems :)
[21:04:27] apeiros: i.e. what you show is that String% will not care if you have superfluous arguments
[21:04:31] Ox0dea: al2o3-cr: Please share.
[21:04:38] apeiros: >> '%c%c' % [97, 98]
[21:04:40] ruboto: apeiros # => "ab" (https://eval.in/381345)
[21:04:56] apeiros: >> '%p --- %s' % ["97", "98"]
[21:04:57] ruboto: apeiros # => "\"97\" --- 98" (https://eval.in/381346)
[21:05:09] apeiros: counter-defense rests ;-)
[21:05:34] pragmatism: has joined #ruby
[21:06:17] Ox0dea: al2o3-cr: Whoops, I took that to mean you'd written and run such a script and had the data.
[21:06:18] al2o3-cr: Ox0dea: https://gist.github.com/239c6cd2657c9840fa86
[21:07:11] al2o3-cr: it's running now, i'll report back
[21:07:27] Ox0dea: Heh, well, thank you for taking one for the team.
[21:07:55] bin_005_f: has joined #ruby
[21:08:10] Ox0dea: I'm thinking it's likely somewhere in the 5-10GB range.
[21:08:26] shevy: 10GB of what
[21:08:35] Ox0dea: Ice cream.
[21:08:53] Ox0dea: The total storage space required to have all the gems installed.
[21:09:07] shevy: that should be submitted to the rubygems team
[21:09:13] shevy: so that they can include that into a new API call :-)
[21:09:48] dellavg_: has joined #ruby
[21:09:54] Akagi201: has joined #ruby
[21:10:04] zotherstupidguy: has joined #ruby
[21:10:30] Ox0dea: I might as well start installing, I suppose.
[21:10:49] RazorX: has joined #ruby
[21:11:02] arescorpio: has joined #ruby
[21:11:11] Ox0dea: shevy: From whence comes your 50kb estimate?
[21:11:15] Axsuul: has joined #ruby
[21:11:24] Ox0dea: s/From w/W/
[21:12:55] aapole: has joined #ruby
[21:13:45] tomphp: has joined #ruby
[21:13:50] al2o3-cr: hehe no way bytes.rb:50:in `+': nil can't be coerced into Fixnum (TypeError) what a plonker
[21:13:53] shevy: Ox0dea well, most gems are small like 12kb
[21:14:14] shevy: and then there are some bigger ones like activerecord, shoes, passenger
[21:14:17] alexandra: has joined #ruby
[21:16:56] Ox0dea: shevy: To clarify, I meant installed size after unpacking.
[21:17:08] ta: has joined #ruby
[21:17:46] ntln: has joined #ruby
[21:18:06] Musashi007: has joined #ruby
[21:20:46] Ox0dea: From a dirty place, expr $(du -bs | cut -f1) / $(ls | wc -l) says the average gem is 3.5MB.
[21:20:47] al2o3-cr: has joined #ruby
[21:20:52] shevy: hmmm in ruby cgi code I see this here:
[21:20:55] shevy: attr_reader('secure')
[21:20:57] startupality: has joined #ruby
[21:21:02] shevy: but that is the same as attr_reader :secure right?
[21:21:21] shevy: Ox0dea cool, that's quite huge
[21:21:45] Ox0dea: Looks like I'll not be installing all the gems locally after all. :/
[21:21:56] swgillespie: has joined #ruby
[21:22:40] ellisTAA: has joined #ruby
[21:24:24] Ox0dea: Ain't nobody got 3.5TB for the purposes of pointless experimentation.
[21:26:03] horsecowdog: has joined #ruby
[21:26:22] Usaur: has joined #ruby
[21:26:37] al2o3-cr: it come back with 700025595 bytes not unpacked :)
[21:26:47] hardlin3r: has joined #ruby
[21:27:32] Ox0dea: al2o3-cr: The gzipped tars, right?
[21:27:47] al2o3-cr: Ox0dea: yeah
[21:29:22] Ox0dea: Nah, that's just 700MB.
[21:29:25] al2o3-cr: that's under a gig
[21:29:39] shevy: that proves it
[21:29:42] shevy: ruby is small :>
[21:29:49] Ox0dea: But .gems are tar archives containing several gzip archives.
[21:29:55] Ox0dea: So that 700MB would feckin' balloon.
[21:30:44] Ox0dea: al2o3-cr: You didn't happen to pull all those .gems down, did you?
[21:30:49] Spami: has joined #ruby
[21:30:51] benanne: has joined #ruby
[21:32:11] Xeago: has joined #ruby
[21:32:29] Ox0dea: has joined #ruby
[21:32:43] towski_: has joined #ruby
[21:33:25] shevy: now I understand why bots download ruby gems
[21:33:30] Ox0dea: al2o3-cr: I thought I might be able to avoid hitting rubygems.org 100k+ times.
[21:33:32] shevy: we have two of them right here!
[21:33:53] Ox0dea: shevy: For science!
[21:34:52] JDiPierro: has joined #ruby
[21:35:12] al2o3-cr: ACTION thinks he better hide from the internet police
[21:35:59] skade: has joined #ruby
[21:36:05] tomphp_: has joined #ruby
[21:36:52] adaedra: *woop* *woop*
[21:36:57] adaedra: tis is te polis
[21:37:13] ddarkpassenger: has joined #ruby
[21:38:33] houhoulis: has joined #ruby
[21:39:21] shevy: le french police hunting for le baguette thief
[21:39:40] jerius: has joined #ruby
[21:40:20] tomphp: has joined #ruby
[21:40:29] al2o3-cr: Je vois les policiers fran??ais au coin
[21:40:35] adaedra: Well, I'd be happy if baguette thieves were the only problem for le french police
[21:40:52] LicHacker: has joined #ruby
[21:40:54] adaedra: al2o3-cr: les poulets
[21:40:57] baweaver: has joined #ruby
[21:42:21] jaequery: has joined #ruby
[21:43:13] rbennacer: has joined #ruby
[21:44:12] shazaum: has joined #ruby
[21:45:38] FernandoBasso: has joined #ruby
[21:46:28] dented42: has joined #ruby
[21:46:57] tomphp: has joined #ruby
[21:48:02] dented42: has left #ruby: ()
[21:49:27] mrmargolis: has joined #ruby
[21:50:23] ayonkhan: has joined #ruby
[21:50:47] Maletor: has joined #ruby
[21:50:55] shevy: adaedra writing about food makes me hungry
[21:50:59] RegulationD: has joined #ruby
[21:51:09] adaedra: then go eat
[21:51:10] hedgecore: has joined #ruby
[21:52:03] davedev24_: has joined #ruby
[21:53:04] shevy: ruby-cgi is confusing, it has:
[21:53:07] shevy: STDERR.print( %|(offline mode: enter name=value pairs on standard input)\n| )
[21:53:20] shevy: why did he use %|| there ?
[21:53:44] alphaatom: has joined #ruby
[21:55:03] al2o3-cr: shevy: its a delimiter
[21:55:06] chouhoulis: has joined #ruby
[21:56:05] shevy: what means /foo/n the n part? newline?
[21:56:10] Rubie: has joined #ruby
[21:56:28] Musashi007: has joined #ruby
[21:56:35] millerti: has joined #ruby
[21:57:18] Ox0dea: shevy: http://idiosyncratic-ruby.com/15-207-ways-to-rome.html#percent-syntax--none
[21:57:33] Ox0dea: There are 66 (!) different delimiters you can use.
[21:58:02] Ox0dea: He couldn't use () because he needs those characters in the actual string.
[21:58:11] Pupeno_: has joined #ruby
[21:58:11] acke: has joined #ruby
[21:58:12] allcentury: has joined #ruby
[21:58:28] Ox0dea: %[] and %{} are more common, but I've seen %|| now and then.
[21:58:51] al2o3-cr: can even use whitespace
[21:59:25] startupality: has joined #ruby
[21:59:29] AndyBotwin: has joined #ruby
[21:59:34] Ox0dea: shevy: %() strings permit escape sequences, whereas %q() ones do not; since he's using the former, \n is just a literal newline here.
[21:59:42] shevy: al2o3-cr the code I am looking at is this here:
[21:59:44] shevy: if words.find {|x| /=/n.match(x) }
[22:00:05] Ox0dea: That n is a regular expression flag/modifier.
[22:00:14] al2o3-cr: yeah, like i
[22:01:27] Ox0dea: al2o3-cr: I made my .gem fetcher a shell one-liner, and I thought I might be able to just feed it to GNU parallel, but the jq utility seems to be blocking. :(
[22:02:13] bin_005_f: has joined #ruby
[22:02:47] CloCkWeRX: has joined #ruby
[22:03:07] kobain: has joined #ruby
[22:03:46] decoponyo: has joined #ruby
[22:04:07] al2o3-cr: shevy: /foo/n # that n means ASCII-8BIT encoding according to the docs
[22:07:54] shevy: so I guess that must be a more recent change
[22:08:03] shevy: since that was not necessary in ruby 1.8.x era right?
[22:08:14] centrx: What year is it
[22:08:15] al2o3-cr: that's from the 1.9.3 docs by the way
[22:08:17] Ox0dea: centrx: Heh.
[22:08:41] shevy: yeah, looks as if a lot of code had to happen due to that transition
[22:08:52] fsvehla: has joined #ruby
[22:09:46] Ox0dea: Trunk's doc/regexp.rdoc says that "Regular expressions are assumed to use the source encoding", but this doesn't seem to be the case.
[22:09:50] Ox0dea: >> [''.encoding, //.encoding]
[22:09:51] ruboto: Ox0dea # => [#<Encoding:UTF-8>, #<Encoding:US-ASCII>] (https://eval.in/381361)
[22:10:27] Ox0dea: This language is too big. Let's go shopping.
[22:11:44] centrx: http://www.amazon.com/s/?keywords=ruby+earrings
[22:12:38] al2o3-cr: >> [//u.encoding, //e.encoding, //s.encoding, //n.encoding] # all possible encodings
[22:12:39] ruboto: al2o3-cr # => [#<Encoding:UTF-8>, #<Encoding:EUC-JP>, #<Encoding:Windows-31J>, #<Encoding:US-ASCII>] (https://eval.in/381365)
[22:14:54] skippy_77: has joined #ruby
[22:15:13] commondream: has joined #ruby
[22:15:16] meph: has joined #ruby
[22:17:03] al2o3-cr: need to reboot
[22:18:43] ta: has joined #ruby
[22:19:03] skippy_77: hey folks; I'm looking at a memory leak in google/protobuf, and it seems as though it may be related to a patch that was put into string.c as a part of 2.2.0-preview2. The behavior stops leaking memory in 2.3.0-dev. I'm curious if this is a core ruby issue, or if the google/protobuf lib is using rb_str_cat incorrectly. https://github.com/google/protobuf/issues/474
[22:19:26] mfranzwa: has joined #ruby
[22:22:48] al2o3-cr: has joined #ruby
[22:24:42] pengin: has joined #ruby
[22:25:39] gluten_hell_: has joined #ruby
[22:26:29] davedev24: has joined #ruby
[22:27:35] Ox0dea: al2o3-cr: https://gist.github.com/0x0dea/274eed988ad0addfc16b
[22:27:58] Ox0dea: http://i.imgur.com/vwMin.gif
[22:29:13] al2o3-cr: hehe, cool nicking that one :)
[22:29:59] Ox0dea: "Only enough file handles to run 252 jobs in parallel."
[22:30:13] Ox0dea: How best to increase this paltry figure?
[22:30:48] krisquigley: has joined #ruby
[22:30:56] Ox0dea: I answered more specifically than Linux in case that would assist you in assisting me. :)
[22:31:25] lkba: has joined #ruby
[22:31:56] volty: has joined #ruby
[22:32:15] bougyman: what's ulimit tell you?
[22:32:22] Ox0dea: unlimited
[22:33:25] bougyman: cat /proc/sys/fs/file-max
[22:33:52] Ox0dea: That's the global maximum, not the maximum a single process is allowed to have open.
[22:33:59] bougyman: or cat /proc/sys/fs/file-nr
[22:34:37] bougyman: and ulimit -Hn, ulimit -Sn ?
[22:34:44] bougyman: I assume you've seen all this tuff.
[22:35:06] Ox0dea: I have, and all the values are substantially higher than 252.
[22:35:19] bougyman: well each of those processes has a few fds.
[22:35:23] bougyman: is what i'm guessing
[22:35:28] bougyman: I can't tell how many, of course.
[22:35:46] bougyman: stdin and stdout and stderr are fds, afaik.
[22:35:48] qwertme: has joined #ruby
[22:35:53] Guest6: has joined #ruby
[22:37:00] Ox0dea: Ah, that makes sense.
[22:37:23] Ox0dea: I wonder if it's possible to tell parallel to repurpose the unused fds.
[22:37:30] Aeyrix: sysctl -w fs.file-max=10000
[22:38:11] Ox0dea: Aeyrix: Why, it's already at 197711?
[22:38:51] Aeyrix: ACTION greps logs for where you told me what the value is.
[22:38:58] Rollabunna: has joined #ruby
[22:39:09] towski_: has joined #ruby
[22:39:19] platosha: has joined #ruby
[22:39:33] Limix: has joined #ruby
[22:39:58] Ox0dea: I reckon bougyman figured it correctly. My soft limit is 1024, and 252 is suspiciously close to a quarter of that, so it seems the processes parallel spawns contribute their stdin, stdout, and stderr handles to the total.
[22:40:01] yfeldblum: has joined #ruby
[22:40:15] Ox0dea: Regrettable, but it makes sense enough.
[22:40:34] apoplexy: has joined #ruby
[22:40:45] apoplexy: hi what is better ruby or python, i need the answer immediately
[22:41:16] Aeyrix: Please hand in your computer driving license and cancel your internet service.
[22:41:27] apoplexy: hahaha im just kidding :D
[22:41:36] Ox0dea: apoplexy: Now that you've been given a definitive answer, don't you think you're in the wrong channel?
[22:41:47] Aeyrix: I wasn't kidding about the license. That exists, weirdly enough.
[22:41:51] Aeyrix: It's a European thing!
[22:42:21] centrx: I have a Master's degree in Advanced Word Processing
[22:42:24] Aeyrix: https://en.m.wikipedia.org/wiki/European_Computer_Driving_Licence
[22:42:49] Ox0dea: centrx: Wanna race?
[22:43:15] centrx: >> 1.upto(Float::INFINITY).to_a
[22:43:18] ruboto: centrx # => (https://eval.in/381367)
[22:44:25] Ox0dea: What happened there?
[22:44:50] Aeyrix: It terminated because it took too long to complete.
[22:45:10] centrx: It means I win
[22:45:30] Ox0dea: >> '%9999999d' % 1
[22:45:31] ruboto: Ox0dea, I'm terribly sorry, I could not evaluate your code because of an error: OpenURI::HTTPError:500 Internal Server Error
[22:45:34] Ox0dea: Do I also win?
[22:46:01] amclain: has joined #ruby
[22:46:08] volty: that ??computer licence?? has nothing to do with europe, it's just crap publicity
[22:46:26] Ox0dea: volty: The people with Xs in their nicks were speaking, thank you very much.
[22:46:40] centrx: >> %w(win win chick din).map { |x| x + "nar" }
[22:46:41] ruboto: centrx # => ["winnar", "winnar", "chicknar", "dinnar"] (https://eval.in/381369)
[22:46:50] heftig_: has joined #ruby
[22:47:04] pragmatism: has joined #ruby
[22:47:34] bruno-_: has joined #ruby
[22:47:36] Agoldfish378: has joined #ruby
[22:47:52] Ox0dea: So great.
[22:48:32] jaequery: has joined #ruby
[22:48:50] apoplexy: Ox0dea: i always go with the underdog so you just got yourself a new teammate
[22:49:05] apoplexy: now, how do we make Ruby better than Python, im willing to work hard, whos got ideas
[22:49:32] Aeyrix: Import system!.
[22:49:35] failshell: has joined #ruby
[22:50:27] Ox0dea: Named unicode literals!
[22:50:36] volty: mabye ruby became web-centric. go with qtruby, for example(too few ppl use it). as fro the ??better??, ruby is already better
[22:51:00] volty: (I meant too web-centric)
[22:51:11] Aeyrix: What about Elixir
[22:51:34] Aeyrix: Or Crystal
[22:51:38] Aeyrix: Or Haskell
[22:51:39] bougyman: elixir gives you an erlang vm to manage your processes.
[22:51:43] bougyman: if you like that, sure.
[22:52:00] bougyman: I'm fine with a unix vm (or bare metal) managing my processes.
[22:52:10] volty: the ruby lang is better, while the python community is more productive ??? more than it seems, taken into account the weirdness of that language, oo-monkey imitation comprised
[22:52:22] ogpastaling: has joined #ruby
[22:52:58] Aeyrix: That's my opinion of it overall.
[22:53:34] ogpastaling: has joined #ruby
[22:54:50] shevy: python has the better docs
[22:55:38] volty: by ??more productive?? I meant exactly that ???- docs + interfacing with other langs + libs
[22:56:27] serivich: has joined #ruby
[22:57:00] volty: maybe ??more freedom?? translates in ??more play?? ??? so they are less free, but more serious
[22:57:29] shevy: well, ruby is actually a pretty complex language
[22:57:35] Channel6: has joined #ruby
[22:58:00] volty: to understand this (cause) you should try haskell (e.g.) ??? they play, play, play, fancy constructs, but nothing worth in the end
[22:58:26] shevy: you have hash-arguments, normal arguments, keywords arguments, procs/lambda, and block arguments
[22:58:50] ogpastaling: has joined #ruby
[22:59:06] volty: never mind, the answer lies in the typology of the users ??? python has still ??academic?? followers
[22:59:08] shevy: volty php has got one focus right back then, which was the web
[22:59:23] shevy: there are lots of aging perl users in the scientific community
[22:59:34] shevy: you'd have to give them compelling reasons to want to switch
[22:59:53] shevy: now they have perl 6 :>
[23:00:04] volty: they (grand-perlers) are too old to change habits :)
[23:01:10] volty: maybe splitting the ruby community could do well, in the end // could be after forking
[23:01:20] Ox0dea: volty: Do you write code?
[23:01:34] volty: now I need to embed ruby in qt application
[23:01:40] shevy: splitting is a bad idea, you fragment and end up with less people who use a given language
[23:01:48] volty: Ox0dea: something :)
[23:02:41] volty: already wrote some extensions time ago, but now need a complete solution ???- for migration purposes, as well as mixed development
[23:03:15] volty: but do not know what to choose - manually, rice, something else? can advice (except after googling, of course)?
[23:03:29] serivich: has joined #ruby
[23:03:52] shevy: whatever you do
[23:03:55] shevy: provide working examples
[23:04:06] attlasbot: has joined #ruby
[23:04:18] volty: what do you mean by ??working examples?? ?
[23:05:17] tomphp: has joined #ruby
[23:07:23] dorei: has joined #ruby
[23:08:19] volty: I can continue with an (abstract) example if some of you have some experience with extensions & embedding // now I use qtruby, could use a qt c++ written class from with ruby (and in run-time located by qtruby library routine), now I just want to start from qt c++ side and call ruby. that's all
[23:09:08] Ox0dea: You can call Ruby from C++ just fine.
[23:09:47] Ox0dea: Ruby's C API is actually not terrible to work with.
[23:09:57] Ox0dea: It's significantly more high-level than it might have been.
[23:10:03] pwnz0r: has joined #ruby
[23:11:44] volty: yes, thx. I was reading Rice. So my question is: should I go my way, or should I go with Rice. Because having something ready is nice, but if it isn't complete (satisfying) it would be time (and nerves) losing.
[23:11:48] nofxx: has joined #ruby
[23:12:36] dseitz: has joined #ruby
[23:12:42] dgutierrez1287: has joined #ruby
[23:13:18] GnuYawk: has joined #ruby
[23:14:49] Akagi201: has joined #ruby
[23:14:58] MatthewsFace: has joined #ruby
[23:15:46] Aeyrix: What are you doing?
[23:15:46] Musashi007: has joined #ruby
[23:15:52] Aeyrix: Project wise.
[23:17:47] volty: various gui apps. one of which is my own editor. the last one being a chess interface - just for the sake of trying to freely mix qt c++ classes and qtruby classes
[23:19:37] pwnz0r: has joined #ruby
[23:20:00] commondream: has joined #ruby
[23:20:05] volty: you can't just deploy an app on (only) qtruby because isn't (that) stable. I guess (from what I see) that PyQt is much more stable, but I don't like python
[23:20:10] qwertme: has joined #ruby
[23:20:29] ta: has joined #ruby
[23:21:25] j4cknewt: has joined #ruby
[23:21:53] havenwood: has joined #ruby
[23:22:00] commondream: has joined #ruby
[23:22:11] Yiota: has joined #ruby
[23:22:51] nofxx: volty, played with electron? or you really like qt
[23:23:21] workmad3: has joined #ruby
[23:24:34] volty: nofxx: 1. I like qt 2. the first also because once you learn (it takes time) a lib you are bound to like it :) // but going to see what it is, thx
[23:25:36] zotherstupidguy: has joined #ruby
[23:25:49] chouhoulis: has joined #ruby
[23:27:31] volty: I see only electron ide. I can't see any gui toolkit there
[23:27:45] volty: s/see/find/
[23:28:39] bkxd: has joined #ruby
[23:28:57] volty: found, sorry.
[23:31:21] blackmesa: has joined #ruby
[23:31:30] hyperjuice: has joined #ruby
[23:33:36] Scripore: has joined #ruby
[23:37:36] Limix: has joined #ruby
[23:39:52] RegulationD: has joined #ruby
[23:44:45] cats: has joined #ruby
[23:45:19] j_mcnally: has joined #ruby
[23:45:44] CloCkWeRX1: has joined #ruby
[23:45:52] shevy: volty with working example I mean code that opens up a GUI :)
[23:46:04] Axsuul: has joined #ruby
[23:47:27] gluten_hell_: has joined #ruby
[23:47:36] CloCkWeRX: has joined #ruby
[23:49:23] platzhirsch: has left #ruby: ()
[23:50:44] quazimodo: has joined #ruby
[23:52:06] jphenow: has joined #ruby
[23:53:03] dseitz: has joined #ruby
[23:54:12] francois_: has joined #ruby
[23:54:23] volty: require 'Qt'; Qt::Application.new(ARGV); Qt::Label.new("Hi, <b><font color='red'>Shevy</font></b>").show(); $qApp.exec();
[23:58:03] shevy: LoadError: cannot load such file -- Qt