« Back to channel list

#ruby - 03 April 2017

« Back 1 day Forward 1 day »
[00:04:31] Jameser: has joined #ruby
[00:06:54] blackwind_123: has joined #ruby
[00:08:05] BSaboia: has joined #ruby
[00:11:56] skweek: has joined #ruby
[00:16:04] blackwind_123: has joined #ruby
[00:18:52] toretore: has joined #ruby
[00:20:53] gdonald: has joined #ruby
[00:22:29] blackwind_123: has joined #ruby
[00:27:44] __Yiota: has joined #ruby
[00:28:54] blackwind_123: has joined #ruby
[00:29:33] charliesome: has joined #ruby
[00:34:53] jgt: has joined #ruby
[00:36:58] marcdel: has joined #ruby
[00:38:18] blackwind_123: has joined #ruby
[00:38:41] charliesome: has joined #ruby
[00:40:08] johnzorn: has joined #ruby
[00:42:48] astrobunny: has joined #ruby
[00:43:03] enterprisey: has joined #ruby
[00:47:40] mooser: has joined #ruby
[00:55:41] _sfiguser: has joined #ruby
[00:57:06] Jameser: has joined #ruby
[00:59:25] Vile`: has joined #ruby
[01:09:02] JoshS: has joined #ruby
[01:09:02] Verity: has joined #ruby
[01:09:10] Verity: milestone
[01:09:19] Verity: couple bugs to work out
[01:09:44] rgtk: has joined #ruby
[01:16:35] thistle: has joined #ruby
[01:16:49] adam12: Verity: congrats
[01:16:52] thistle: has joined #ruby
[01:16:53] mooser: has joined #ruby
[01:16:57] adam12: Stick that sucker in version control so you don't lose it
[01:18:31] bkxd: has joined #ruby
[01:20:59] Verity: ty, good idea. I'll do that now
[01:24:33] wilbert: has joined #ruby
[01:29:44] hndk: has joined #ruby
[01:30:56] astrobunny: has joined #ruby
[01:34:19] hahuang61: has joined #ruby
[01:45:49] mooser_: has joined #ruby
[01:45:59] ger0: has joined #ruby
[01:47:25] ger0: has joined #ruby
[01:47:44] Rodya_: has joined #ruby
[01:49:13] johnzorn: has joined #ruby
[01:56:01] gdonald: has joined #ruby
[01:56:42] d^sh: has joined #ruby
[01:59:47] JoshS: has joined #ruby
[02:03:12] BTRE: has joined #ruby
[02:04:57] libastral: has joined #ruby
[02:07:04] skweek: has joined #ruby
[02:21:13] danielpclark: has joined #ruby
[02:29:01] mim1k: has joined #ruby
[02:29:35] thistle: has joined #ruby
[02:31:03] JoshGlzBrk: has joined #ruby
[02:33:36] blackwind_123: has joined #ruby
[02:35:36] jgt: has joined #ruby
[02:48:50] rgtk: has joined #ruby
[02:51:39] houhoulis: has joined #ruby
[02:56:16] thistle: has joined #ruby
[03:01:41] mooser: has joined #ruby
[03:04:59] skweek: has joined #ruby
[03:08:13] xall_: has joined #ruby
[03:09:23] rgtk: has joined #ruby
[03:16:47] BSAlb: has joined #ruby
[03:19:17] bkxd: has joined #ruby
[03:20:45] mattp_: has joined #ruby
[03:23:38] xzhao_: has joined #ruby
[03:26:37] thistle: has joined #ruby
[03:31:27] zipace: has joined #ruby
[03:35:12] hahuang61: has joined #ruby
[03:41:36] AnoHito: has joined #ruby
[03:48:47] mooser: has joined #ruby
[03:49:38] __Yiota: has joined #ruby
[03:57:02] ziprar: has joined #ruby
[03:58:57] gix: has joined #ruby
[04:02:10] jgt: has joined #ruby
[04:02:12] last_staff: has joined #ruby
[04:08:19] elifoster: has joined #ruby
[04:20:07] bkxd: has joined #ruby
[04:22:28] jcao219: has joined #ruby
[04:25:12] __Yiota: has joined #ruby
[04:29:29] mim1k: has joined #ruby
[04:31:13] mooser: has joined #ruby
[04:34:27] ryan_notabot: has joined #ruby
[04:36:02] renchan: has joined #ruby
[04:42:00] jcao219: has joined #ruby
[04:42:39] coatezy: has joined #ruby
[04:44:39] ledestin: has joined #ruby
[04:47:37] pmatsino: has joined #ruby
[04:48:10] pmatsino: has left #ruby: ()
[04:55:39] jeyraof^mbpr: has joined #ruby
[04:57:07] dionysus69: has joined #ruby
[04:59:26] __Yiota: has joined #ruby
[04:59:27] d^sh: has joined #ruby
[05:04:39] AnoHito: has joined #ruby
[05:06:17] patarr: has joined #ruby
[05:07:20] __Yiota: has joined #ruby
[05:19:14] jcao219: has joined #ruby
[05:21:43] john11111: has joined #ruby
[05:21:57] john11111: Why do niggers put big ass rims on small ass cars?
[05:25:15] mikecmpbll: has joined #ruby
[05:30:46] __Yiota: has joined #ruby
[05:31:43] tildes: has joined #ruby
[05:35:29] IRCFrEAK: has joined #ruby
[05:36:01] hahuang61: has joined #ruby
[05:37:23] IRCFrEAK: has left #ruby: ()
[05:42:31] IRCFrEAK: has joined #ruby
[05:44:13] IRCFrEAK: has left #ruby: ()
[05:47:13] baweaver: !troll john11111
[05:47:14] ruby[bot]: +bb john11111!*@*$#ruby-banned *!*@gateway/web/freenode/ip.172.58.12.3$#ruby-banned
[05:47:19] kernelPaniq: has joined #ruby
[05:52:58] lele: has joined #ruby
[05:53:25] Arpanet69: has joined #ruby
[05:56:42] Alina-malina: has joined #ruby
[06:08:31] JoshS: has joined #ruby
[06:20:32] mooser: has joined #ruby
[06:20:44] bkxd: has joined #ruby
[06:29:37] nofxxx: has joined #ruby
[06:29:57] mim1k: has joined #ruby
[06:32:10] johnzorn: has joined #ruby
[06:37:16] conta: has joined #ruby
[06:37:44] ostera-mobile: has joined #ruby
[06:37:57] CloCkWeRX: has joined #ruby
[06:39:09] BabyMario: has joined #ruby
[06:50:18] mooser: has joined #ruby
[06:54:21] antgel: has joined #ruby
[06:55:06] aufi: has joined #ruby
[06:56:54] conta: has joined #ruby
[06:57:47] ddffg: has joined #ruby
[06:59:55] dionysus69: has joined #ruby
[07:00:40] papillon_: has joined #ruby
[07:04:12] vali: has joined #ruby
[07:04:48] Alina-malina: has joined #ruby
[07:06:45] jcao219: has joined #ruby
[07:07:07] patarr: has joined #ruby
[07:08:51] valentin: has joined #ruby
[07:09:29] Arpanet69: has joined #ruby
[07:21:23] johnny56: has joined #ruby
[07:22:20] burgestrand: has joined #ruby
[07:23:58] mark_66: has joined #ruby
[07:25:53] ostera-mobile: has joined #ruby
[07:27:30] tAn: has joined #ruby
[07:33:11] gfvkdd: has joined #ruby
[07:34:29] valentin: has joined #ruby
[07:37:07] hahuang61: has joined #ruby
[07:39:06] papillon_: has joined #ruby
[07:41:11] oded: has joined #ruby
[07:42:09] andikr: has joined #ruby
[07:49:46] vondruch: has joined #ruby
[07:50:41] bigkevmcd: has joined #ruby
[07:51:04] lenwood: has joined #ruby
[07:51:36] uncertainty: has joined #ruby
[07:52:38] mikecmpbll: has joined #ruby
[07:58:09] Qchmqs: has joined #ruby
[07:58:38] aganov: has joined #ruby
[07:58:39] Toledo: has joined #ruby
[08:02:17] nowhere_man: has joined #ruby
[08:03:29] Silthias1: has joined #ruby
[08:04:26] mim1k: has joined #ruby
[08:06:43] slima: has joined #ruby
[08:10:05] recrypt: has joined #ruby
[08:12:14] recrypt: has left #ruby: ()
[08:15:04] xall_: has joined #ruby
[08:16:55] nowhere_man: has joined #ruby
[08:17:17] synbit: has joined #ruby
[08:21:28] bkxd: has joined #ruby
[08:23:19] Pumukel: has joined #ruby
[08:24:43] mim1k: has joined #ruby
[08:26:59] Pumukel: has joined #ruby
[08:27:00] pwnd_nsfw`: has joined #ruby
[08:27:42] Sweetlie: has joined #ruby
[08:30:04] Pumukel: has joined #ruby
[08:30:06] jsrn_: has joined #ruby
[08:32:07] esObe_: has joined #ruby
[08:38:26] Stan: has joined #ruby
[08:40:19] Pumukel: has joined #ruby
[08:41:07] Pumukel: has joined #ruby
[08:41:21] uncertainty: has joined #ruby
[08:41:56] Pumukel: has joined #ruby
[08:42:46] Pumukel: has joined #ruby
[08:42:52] Stan: has joined #ruby
[08:43:32] Pumukel: has joined #ruby
[08:44:32] maattdd_: has joined #ruby
[08:49:34] lxsameer: has joined #ruby
[08:49:35] jokke: are there any alternatives for celluloid out there?
[08:50:08] jokke: i have the impression, that celluloid is a bit abandoned
[08:52:58] Pisuke: has joined #ruby
[08:53:01] darix: jokke: tbh ... last release november last year ... slow maybe ... abandoned i wouldnt say so
[08:53:15] darix: last git commit 3days ago
[08:53:24] darix: what do you base that statement on?
[08:56:58] roshanavand: has joined #ruby
[08:57:35] _sfiguser: has joined #ruby
[08:57:41] _aeris_: has joined #ruby
[08:58:02] jokke: and elixir seems like quite
[08:58:34] jokke: darix: oh. nothing. i just heard a coworker complain
[08:58:43] Beams: has joined #ruby
[08:59:04] jokke: darix: do you know if connection pooling for http client connections works in celluloid
[08:59:58] jokke: we've had a lot of problems with it
[09:00:07] jokke: as in: it doesn't work
[09:00:09] darix: which http client?
[09:02:23] jamesaxl: has joined #ruby
[09:03:24] Stan: has joined #ruby
[09:04:04] jokke: none seem to work
[09:04:35] jokke: (with connection pooling)
[09:06:59] darix: well if you just need an http client you can look at eventmachine maybe.
[09:07:08] jokke: darix: nope
[09:07:13] jokke: it's way more complex
[09:07:17] darix: also it might be worth to be more specific what kind of problems you see
[09:08:03] patarr: has joined #ruby
[09:08:05] spicerack: has joined #ruby
[09:11:01] recrypt: has joined #ruby
[09:11:28] recrypt: has left #ruby: ()
[09:12:48] astrobunny: has joined #ruby
[09:15:03] biberu: has joined #ruby
[09:25:02] tlaxkit: has joined #ruby
[09:26:02] workmad3: has joined #ruby
[09:30:21] bweston92: has joined #ruby
[09:31:23] rgtk: has joined #ruby
[09:37:59] hahuang61: has joined #ruby
[09:39:43] cfec0b8d: has joined #ruby
[09:43:06] jcao219: has joined #ruby
[09:44:56] lel: has joined #ruby
[09:57:31] sigv: has joined #ruby
[09:58:28] anisha: has joined #ruby
[09:59:56] Bish: has joined #ruby
[10:00:53] charliesome: has joined #ruby
[10:01:26] TomyWork: has joined #ruby
[10:04:47] ikopico: Hi, can anyone refer me to a good modern Ruby VM (GC, memory model) articles/videos please?
[10:05:09] charliesome: has joined #ruby
[10:18:14] rideh: has joined #ruby
[10:19:43] maloik: has joined #ruby
[10:21:35] jokke: darix: any idea how to verify if connection pooling is working?
[10:22:20] bkxd: has joined #ruby
[10:29:04] esObe_: has joined #ruby
[10:33:48] xwcius: has joined #ruby
[10:44:00] mikeiniowa: has joined #ruby
[10:45:57] tvw: has joined #ruby
[10:49:01] pagios: has left #ruby: ("Leaving")
[10:50:20] User458764: has joined #ruby
[10:53:06] GodFather: has joined #ruby
[10:53:49] BSaboia: has joined #ruby
[10:58:33] jcao219: has joined #ruby
[10:58:41] ij: has joined #ruby
[10:59:26] ij: Why isn't Hash#slice in stdlib?
[11:06:45] bkxd: has joined #ruby
[11:08:22] catenthusiast: has joined #ruby
[11:08:33] icyphox: has left #ruby: ("Python's more fun (jk)")
[11:08:36] mattp_: has joined #ruby
[11:08:54] patarr: has joined #ruby
[11:12:04] bkxd: has joined #ruby
[11:21:14] Tau: has joined #ruby
[11:24:07] marr: has joined #ruby
[11:24:31] mark_66: has joined #ruby
[11:26:03] agit0: has joined #ruby
[11:27:20] uncertainty: has joined #ruby
[11:29:49] mark_66: has joined #ruby
[11:32:20] mark_66: has joined #ruby
[11:33:06] FMan: has joined #ruby
[11:34:27] FastJack: what? jseifer died? nooooo! that ruins all my hope for new episodes of IRL talk :(
[11:37:43] spicerack: has joined #ruby
[11:38:45] hahuang61: has joined #ruby
[11:40:27] FastJack: jason seifer
[11:46:35] CloCkWeRX: has joined #ruby
[11:50:44] aryaching: has joined #ruby
[11:56:44] synthroid: has joined #ruby
[11:57:49] chihhsin: has joined #ruby
[11:59:29] vali: has joined #ruby
[11:59:54] ddffg: Who is it?
[12:00:51] Verity: jason seifer
[12:01:09] modin: has joined #ruby
[12:01:44] sepp2k: has joined #ruby
[12:03:36] vali: has joined #ruby
[12:06:48] patarr: has joined #ruby
[12:07:00] bsartek: has joined #ruby
[12:11:57] hutch34: has joined #ruby
[12:13:13] python247: has joined #ruby
[12:13:36] ldnunes: has joined #ruby
[12:13:43] python247: making a comparsion table, need to confirm/deny language features https://docs.google.com/spreadsheets/d/18-Yy2UDLK6krKPq8Lx8ezKOgdSKd4E5pYpVT_MF3uMk/edit?usp=sharing
[12:13:56] acalycine: has joined #ruby
[12:13:58] Lord_of_Life: has joined #ruby
[12:14:42] acalycine: [0] should give me the first capturing group in this (\d+), right? `viewgames[/GameID=(\d+)">[^>]+>\s+(?<first_team>[^>]+)?\s+vs\s+[^>]+>\s+(?<second_team>#{team})\s+(?!upcoming)</][0]`
[12:14:53] jcao219: has joined #ruby
[12:16:25] zipace: has joined #ruby
[12:16:42] Mon_Ouie: python247: What specifically do generators and iterators mean?
[12:17:10] Mon_Ouie: Also Ruby 2 added keyword arguments
[12:17:39] python247: source: http://mitsuhiko.pocoo.org/pythonruby.html#ruby-generators-and-iterators
[12:18:16] mitsuhiko: this link is ages old
[12:18:28] Lord_of_Life: has joined #ruby
[12:18:47] python247: whoops, will you be able to update the sheet?
[12:19:05] Verity: I much prefer ruby to python, so far
[12:19:09] Verity: thats the "feel" I get
[12:19:22] Verity: my mind itself isnt sure, but the feel is that ruby is more for me
[12:19:22] Mon_Ouie: Yeah, "Ruby 1.8", there have been many changes in Ruby 1.9 and 2.x
[12:19:35] python247: and i have an idea to combine those three
[12:19:53] Verity: you're making a new language, python247 ?
[12:20:37] anekos: has joined #ruby
[12:21:19] pupsicle: has joined #ruby
[12:21:27] python247: trying to, at least, lacking the "how will i build this" knowledge, but having the general idea
[12:21:49] python247: and it's over here - http://github.com/aolko/rubito
[12:25:02] uncertainty: has joined #ruby
[12:26:44] sigv: acalycine, [0] will return the whole match
[12:27:02] sigv: acalycine, that is, starting with ´viewgames´ and so on.
[12:27:16] matthewd: acalycine: If you're actually waiting for someone to say "no, it does the thing it's doing"... no, it does the thing it's doing
[12:27:18] sigv: acalycine, what you want is [1] in your case.
[12:27:50] sigv: acalycine, that is usual matching behavior in a variety of languages - that [0] is the whole match.
[12:28:28] bkxd: has joined #ruby
[12:30:02] mim1k: has joined #ruby
[12:31:38] spicerack: has joined #ruby
[12:32:27] GeorgesLeYeti: has joined #ruby
[12:33:11] GeorgesLeYeti: I have a string like "[1] Test". I want to return the value between [] and the text after that.
[12:33:19] GeorgesLeYeti: I think I have the regex
[12:33:22] GeorgesLeYeti: ^\[(\d+)]((.?)+)
[12:33:46] GeorgesLeYeti: But I don't know how to extract values
[12:35:01] matthewd: GeorgesLeYeti: Have you found any likely-sounding methods on String or Regexp?
[12:35:13] blackwind_123: has joined #ruby
[12:43:38] bkxd: has joined #ruby
[12:44:32] duckpupp1: has joined #ruby
[12:48:34] aupadhye: has joined #ruby
[12:48:36] Sweetlie: has joined #ruby
[12:50:15] bkxd: has joined #ruby
[12:50:33] acalycine: OK, so how could I fetch the first capturing group in this (\d+): `viewgames[/GameID=(\d+)">[^>]+>\s+(?<first_team>[^>]+)?\s+vs\s+[^>]+>\s+(?<second_team>#{team})\s+(?!upcoming)</]`?
[12:50:39] acalycine: Would I use [1][1]?
[12:51:04] acalycine: i.e. Group 1 in this: https://regex101.com/r/oc3IUp/5
[12:51:21] matthewd: acalycine: Like GeorgesLeYeti, you want #match
[12:51:50] acalycine: OK, but it works fine in normal regex. Is that unrelated?
[12:52:23] rwb: has joined #ruby
[12:52:40] acalycine: That's my code, if it's any help. gameid should equal the Group 1 in that regex link ^ https://gist.github.com/anonymous/8b42e2198f9428584383f6ae96dcfb80
[12:58:48] charliesome: has joined #ruby
[13:00:05] pwnd_nsfw: has joined #ruby
[13:00:06] Mon_Ouie: >> "foo 14"[/\w (\d+)/, 1]
[13:00:07] ruby[bot]: Mon_Ouie: # => "14" (https://eval.in/766895)
[13:01:18] allisio: >> 'foo 14'[/\w (\d+)/]; $1 # This is okay too.
[13:01:19] ruby[bot]: allisio: # => "14" (https://eval.in/766896)
[13:04:28] allisio: acalycine: I recommend just getting ahold of all the relevant data in one fell swoop and then massaging it as suits your purposes: https://eval.in/766901
[13:05:11] allisio: There's no way to unambiguously avoid that trailing space at the end of the second team's name, but Ruby is strong enough to chop it off.
[13:05:24] acalycine: Data is updated every week or so.
[13:05:32] acalycine: And it's going off user input.
[13:05:51] allisio: That has no bearing on my recommendation, for what that's worth.
[13:05:53] acalycine: My question is about the capturing groups, really. Why doesn't [1] get the captured ID?
[13:06:32] allisio: It was probably a bad idea for me to show you String#[](Regexp). :/
[13:06:42] matthewd: acalycine: String#[] doesn't return an array. Why do you think it does?
[13:06:43] Mon_Ouie: Why would it? string[regexp] is the string that contains the whole match
[13:06:58] Mon_Ouie: (the first match of the regexp)
[13:07:56] acalycine: What should I use instead, using that regexp?
[13:09:20] matthewd: <matthewd> acalycine: Like GeorgesLeYeti, you want #match
[13:09:37] thistle: has joined #ruby
[13:10:35] allisio: acalycine: Is it that you're just trying to be done with the thing, or?
[13:11:38] Xiti: has joined #ruby
[13:11:39] User458764: has joined #ruby
[13:11:43] allisio: I'm just saying, Ruby provides all sorts of convenient and unfinicky methods for querying collections of data. Having it all in one place with a relatively simple #scan wouldn't stop you from being able to drill down based on user input.
[13:12:52] acalycine: OK. I used match.
[13:13:03] acalycine: But I'm getting the same issue that I got days ago.
[13:13:37] mim1k: has joined #ruby
[13:14:05] acalycine: I want the first match on this page. Currently I'm getting the "Gold Coast vs Brisbane" result under Round 1, when I should be getting "Brisbane vs Essendon" under Round 2. Page here: http://dtlive.com.au/afl/viewgames.php
[13:14:52] herwin: just to think outside the box: don't they have a json-feed (or any other format that is easy to read by machines)?
[13:15:26] acalycine: The website? Nope.
[13:15:32] acalycine: Damn finicky website.
[13:16:19] allisio: acalycine: The first Brisbane game in that listing is against St Kilda, though.
[13:16:34] acalycine: Yep, but I don't want any ones that have "(upcoming)"
[13:16:36] asdsa: has joined #ruby
[13:16:40] acalycine: That's why I modified the regex
[13:16:51] acalycine: `(?!upcoming)`
[13:16:55] allisio: Did you happen to scroll down and see the output of the program I posted?
[13:17:09] acalycine: Not all of it. Let me look.
[13:17:14] allisio: The output.
[13:18:06] dminuoso: So. We should make a feature request. I really do want to be able to define hashes like this { a <= b, c => d }
[13:18:08] acalycine: Just saw it.
[13:18:11] dminuoso: It looks awesome.
[13:18:23] dminuoso: { { a => b } <= c }
[13:18:38] allisio: I'm with you.
[13:18:42] jrafanie: has joined #ruby
[13:19:00] uncertainty: has joined #ruby
[13:20:05] herwin: so we can add more bike shedding to code reviews
[13:20:36] dminuoso: Yes. I'd love to be able to argue endlessly about using <= rather than =>
[13:20:45] allisio: acalycine: Once more, with feeling: https://eval.in/766916
[13:20:55] allisio: That Line 5 is intention-revealing as fuck, innit?
[13:21:44] acalycine: That looks all good and dandy. But why the hell wouldn't my regexp work?
[13:21:56] allisio: Are you sure you want to know?
[13:22:35] allisio: http://stackoverflow.com/a/1732454
[13:23:46] matthewd: acalycine: I haven't tried it / checked the rest, but at a glance, your negative lookahead isn't doing what you intend
[13:24:21] acalycine: ACTION grins at allisio
[13:25:20] allisio: ACTION puts on hir robe and witchard hat.
[13:25:25] acalycine: matthewd: but it works fine in the regexp tester here https://regex101.com/r/oc3IUp/5
[13:25:38] acalycine: Wait, it doesn't.
[13:25:39] millerti: has joined #ruby
[13:25:45] acalycine: This is a #regex problem now isn't it.
[13:26:22] allisio: Sounds like you want it to be, you delightful masochist.
[13:26:44] acalycine: ACTION laughs
[13:28:49] dminuoso: Perl makes look regex look like they are turing complete. :|
[13:29:06] dminuoso: And wow, that typo power.
[13:30:57] jmignault: has joined #ruby
[13:31:03] patarr: has joined #ruby
[13:31:38] rgtk: has joined #ruby
[13:33:02] pwnd_nsfw`: has joined #ruby
[13:33:28] jmignault: has left #ruby: ()
[13:33:55] fuzzyhorns: has joined #ruby
[13:34:10] allisio: Has anyone ever been far as decided even go want to do look more like Perl?
[13:34:50] allisio: Pretty sure Perl's regexen have been Turing-complete for a very long time with that silly /e flag.
[13:35:13] allisio: That's how Acme::EyeDrops works, anyway.
[13:37:08] DLSteve: has joined #ruby
[13:39:13] droidburgundy: has joined #ruby
[13:39:51] hahuang61: has joined #ruby
[13:40:26] anisha: has joined #ruby
[13:41:14] esObe_: has joined #ruby
[13:43:44] esObe__: has joined #ruby
[13:44:06] gnufied: has joined #ruby
[13:46:24] GodFather: has joined #ruby
[13:51:59] LyndsySimon: Style question: would you put parens around the left condition in this ternary expression?
[13:52:04] LyndsySimon: `colname !~ /\D/ ? _new_sort_column(item) : get_full_column_name(colname)`
[13:53:04] meshsmith: has joined #ruby
[13:53:14] canton7: I would, just because otherwise the amount of punctuation makes it hard to spot where the ? is
[13:53:38] canton7: (but I wouldn't if it was just `colname == "foo" ? bar : baz`)
[13:53:42] yeticry_: has joined #ruby
[13:55:35] LyndsySimon: That's what I was thinking as well. Thanks :)
[13:56:21] LyndsySimon: "x !~ /\D/" returns true if x is a string that contains only digits, by the way. I thought that was nifty.
[14:00:25] canton7: meh, I don't like the double negation. I'd go with `x =~ /^\d*$/`
[14:01:44] gizmore: has joined #ruby
[14:02:07] lhambley: has joined #ruby
[14:03:15] mim1k: has joined #ruby
[14:03:18] __Yiota: has joined #ruby
[14:05:00] rmfnqo: has joined #ruby
[14:05:51] esObe_: has joined #ruby
[14:07:04] jonjitsu: has joined #ruby
[14:07:29] bkxd: has joined #ruby
[14:08:09] jonjitsu: has joined #ruby
[14:09:49] jon-: has joined #ruby
[14:10:09] aupadhye: has joined #ruby
[14:10:10] jonjitsu: has joined #ruby
[14:12:36] spicerack: has joined #ruby
[14:17:34] shinnya: has joined #ruby
[14:18:01] aupadhye: has joined #ruby
[14:19:15] User458764: has joined #ruby
[14:23:34] agent_white: has joined #ruby
[14:24:23] lenwood: has joined #ruby
[14:29:16] cdg: has joined #ruby
[14:31:48] chouhoulis: has joined #ruby
[14:33:21] uncertainty: has joined #ruby
[14:35:04] agent_white: Mornin' folks
[14:35:09] agent_white: Mornin' folks
[14:38:47] last_staff: has joined #ruby
[14:39:36] qchmqs_: has joined #ruby
[14:40:42] nowhere_man: has joined #ruby
[14:42:38] Shoutsid: has joined #ruby
[14:43:36] phansch: has joined #ruby
[14:45:12] ikopico: has joined #ruby
[14:45:46] aupadhye: has joined #ruby
[14:46:01] Qchmqs: has joined #ruby
[14:46:36] rippa: has joined #ruby
[14:48:01] PaulCapestany: has joined #ruby
[14:48:15] kazo: has joined #ruby
[14:51:15] masta``: has joined #ruby
[14:53:13] polishdub: has joined #ruby
[14:53:20] nowhereman: has joined #ruby
[14:53:49] tlaxkit: has joined #ruby
[14:54:02] Asher: has joined #ruby
[14:55:18] ResidentBiscuit: has joined #ruby
[14:55:31] thistle_: has joined #ruby
[14:55:37] _aeris_: has joined #ruby
[14:57:16] Alina-malina: has joined #ruby
[14:57:26] jzigmund: has joined #ruby
[14:59:18] HoierM: has joined #ruby
[14:59:36] Alina-malina: has joined #ruby
[15:00:59] nowhereman: has joined #ruby
[15:01:54] thistle: has joined #ruby
[15:08:19] bkxd: has joined #ruby
[15:10:37] LuckyABA: has joined #ruby
[15:12:13] Shoutsid: has joined #ruby
[15:13:37] Shoutsid: has joined #ruby
[15:14:54] ziprar: has joined #ruby
[15:16:40] Shoutsid: has joined #ruby
[15:21:53] c0mrad3: has joined #ruby
[15:22:11] kassav_: has joined #ruby
[15:23:24] t-recx: has joined #ruby
[15:23:45] VladGh: has joined #ruby
[15:27:00] apeiros: canton7: \A and \z instead of ^ and $
[15:27:11] apeiros: otherwise "foo\n12" will happily match
[15:27:25] apeiros: same re double neg, though :D
[15:27:40] apeiros: (I don't like double negation either)
[15:28:48] nowhere_man: has joined #ruby
[15:28:57] binaryplease: has joined #ruby
[15:30:41] dminuoso: ACTION pokes apeiros 
[15:30:46] dminuoso: Haven't seen you in a while in here
[15:30:50] apeiros: holidays :D
[15:30:57] dminuoso: They have that in Switzerland?
[15:31:01] minimalism: has joined #ruby
[15:33:53] droidburgundy: has joined #ruby
[15:34:23] tsou: has joined #ruby
[15:35:13] droidburgundy: has joined #ruby
[15:36:45] jgnagy: has joined #ruby
[15:40:42] hahuang61: has joined #ruby
[15:40:56] dopamean_: has joined #ruby
[15:41:09] VladGh: has joined #ruby
[15:41:28] ledestin: has joined #ruby
[15:44:35] olivierjanss: has joined #ruby
[15:44:43] chouhoulis: has joined #ruby
[15:45:21] chouhoulis: has joined #ruby
[15:46:33] yurikoles: has joined #ruby
[15:46:38] LyndsySimon: canton7: `x =~ /^\d*$/` matches an empty string, my example doesn't :)
[15:47:13] govg: has joined #ruby
[15:47:53] apeiros: >> "" !~ /\D/
[15:47:55] ruby[bot]: apeiros: # => true (https://eval.in/767031)
[15:47:59] apeiros: ruby says you're wrong
[15:48:11] LyndsySimon: Yeah, I see that...
[15:48:25] LyndsySimon: I've forgotten why i went with that syntax. I thought that was why.
[15:48:32] apeiros: and as said, \A and \z, not ^ and $ :-)
[15:48:41] apeiros: if you use + instead of *, it won't match an empty string
[15:48:50] apeiros: "" =~ /\A\d+\z/
[15:49:11] apeiros: >> ["" =~ /\A\d+\z/, "123x34" =~ /\A\d+\z/, "123" =~ /\A\d+\z/]
[15:49:12] ruby[bot]: apeiros: # => [nil, nil, 0] (https://eval.in/767034)
[15:49:20] apeiros: (note: 0 is trueish in ruby)
[15:49:31] dminuoso: >> 0 == trueish
[15:49:32] ruby[bot]: dminuoso: # => undefined local variable or method `trueish' for main:Object ...check link for more (https://eval.in/767035)
[15:49:33] LyndsySimon: Yeah, I know. Confusing for a Pythonista.
[15:49:58] apeiros: dminuoso: you literator
[15:50:14] LyndsySimon: http://i.imgur.com/u61Wfsa.jpg
[15:50:22] dminuoso: apeiros, I have started abusing Enumerators for interacting with remote APIs.
[15:50:24] dminuoso: Am I naughty?
[15:50:41] apeiros: have you ever not been? o0
[15:50:48] LyndsySimon: dminuoso: That sounds exactly like something I would do.
[15:50:48] User458764: has joined #ruby
[15:51:26] dminuoso: LyndsySimon, heh. I've done redux-saga and HTTP interaction in C++ with coroutines now. Doing it with enumerators or fibers in Ruby was the next step.
[15:51:27] User458764: has joined #ruby
[15:52:01] LyndsySimon: dminuoso: If I understand what you're saying, then I've done the same in Python, using custom generators.
[15:53:10] LyndsySimon: Return an object representing a result set. That object contains the first page of results. Iterating over the object iterates over the page of results until it's done, then fetches the next page over HTTP and begins iterating over those - without requiring the dev to know or care that it's sending an HTTP request ever n iterations.
[15:54:17] Bozo: has joined #ruby
[15:55:45] amclain: has joined #ruby
[15:56:17] nofxx: has joined #ruby
[15:57:45] rakm: has joined #ruby
[15:58:01] tristanp: has joined #ruby
[15:58:43] ResidentBiscuit: has joined #ruby
[16:01:20] marxarelli: has joined #ruby
[16:04:05] [Butch]: has joined #ruby
[16:05:09] tlaxkit: has joined #ruby
[16:06:21] thistle: has joined #ruby
[16:08:17] ozcanesen: has joined #ruby
[16:13:24] jusa: has joined #ruby
[16:13:31] tildes: has joined #ruby
[16:16:49] gigetoo: has joined #ruby
[16:21:21] droidburgundy: has joined #ruby
[16:21:46] nitric: has joined #ruby
[16:21:56] theRoUS: has joined #ruby
[16:23:38] Fernando-Basso: has joined #ruby
[16:27:53] gusrub: has joined #ruby
[16:28:34] prrpl: has joined #ruby
[16:30:23] agit0: has joined #ruby
[16:31:57] skweek: has joined #ruby
[16:34:50] uncertainty: has joined #ruby
[16:35:08] nowhere_man: has joined #ruby
[16:41:10] DroidBur_: has joined #ruby
[16:44:31] t-recx: has joined #ruby
[16:51:03] dopamean_: has joined #ruby
[16:53:07] hahuang61: has joined #ruby
[16:53:27] djbkd: has joined #ruby
[16:57:58] conta: has joined #ruby
[16:58:57] ElderFain: has joined #ruby
[17:00:21] hahuang65: has joined #ruby
[17:01:47] _sfiguser: has joined #ruby
[17:05:12] lhambley: has joined #ruby
[17:05:45] balazs: has joined #ruby
[17:07:01] mkillebrew: has joined #ruby
[17:08:52] bkxd: has joined #ruby
[17:09:16] mkillebrew: can gsub be used to replace a multi-line block of text? I have chunks read in with scan(/-BEGIN-\s.*?-END-/m) to a variable, trying to swap it with contents of anoter variable
[17:09:59] jamesaxl: has joined #ruby
[17:10:40] cow[baby]: has joined #ruby
[17:12:02] llua: >> "a\nblock\nof\ntext".gsub(/a\nblock\nof\ntext/,"does it sub?")
[17:12:04] ruby[bot]: llua: # => "does it sub?" (https://eval.in/767066)
[17:14:32] skweek: has joined #ruby
[17:16:05] mostlybadfly: has joined #ruby
[17:17:36] futilegames: has joined #ruby
[17:18:35] dopamean_: has joined #ruby
[17:19:50] marr: has joined #ruby
[17:21:13] Hanmac: apeiros: https://bugs.ruby-lang.org/issues/13395 Nobu was wrong and I was right XD
[17:27:01] skweek: has joined #ruby
[17:27:29] snockerton: has joined #ruby
[17:27:41] antoniobeyah: has joined #ruby
[17:28:52] tildes: has joined #ruby
[17:31:06] milardovich: has joined #ruby
[17:31:41] StoneCypher: has joined #ruby
[17:31:58] StoneCypher: so some languges with repls also have drop debuggers
[17:32:09] allisio: StoneCypher: You want Pry.
[17:32:12] StoneCypher: by example in python i can `import ipdb; ipdb.set_trace()`
[17:33:01] bruce_lee: has joined #ruby
[17:33:40] StoneCypher: will pry work from within rake
[17:34:25] ixti: has joined #ruby
[17:34:52] synthroid: has joined #ruby
[17:35:52] Papierkorb: StoneCypher: it will work from anything that's a ruby project/script
[17:36:03] StoneCypher: ok cool, thanks
[17:36:12] droidburgundy: has joined #ruby
[17:36:16] ruby[bot]: Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (https://pryrepl.org/): gem install pry pry-doc
[17:37:26] sagax: has joined #ruby
[17:37:39] erlend: has joined #ruby
[17:40:11] masta``: has joined #ruby
[17:41:09] Rodya_: has joined #ruby
[17:41:20] duckpupp1: has joined #ruby
[17:42:45] GodFather: has joined #ruby
[17:43:16] tildes_: has joined #ruby
[17:44:18] gusrub_: has joined #ruby
[17:44:52] StoneCypher: i'm sorry. i think i'm doing something wrongly. i installed pry, and i get the pry console when i run it. however, rake seems unable to see the gem
[17:45:12] StoneCypher: i found a stackoverflow which claims i should bundle exec rake install , to get this installed in the context of rake
[17:45:21] StoneCypher: but that just fails as if rake's interpreting install as the name of a task
[17:45:33] cfec0b8d: has joined #ruby
[17:46:44] StoneCypher: oh, their instructions are wrong, nevermind, sorted it
[17:47:02] gusrub: has joined #ruby
[17:47:03] t-recx: btw does anyone ever get a Error: uninitialized constant Pry::ObjectPath::StringScanner when trying to autocomplete a file/directory using pry?
[17:47:16] StoneCypher: oh, no, i didn't. :/
[17:47:28] GodFather: has joined #ruby
[17:50:44] StoneCypher: ACTION has found three different sets of instructions for installing pry now :(
[17:51:07] tercenya: has joined #ruby
[17:51:16] Papierkorb: StoneCypher: do you use Bundler to run that rake script?
[17:51:22] StoneCypher: Papierkorb: yes
[17:51:47] Papierkorb: StoneCypher: bundler makes it so that whatever it runs only sees the gems that are installed in the local project
[17:51:56] Papierkorb: StoneCypher: Add `pry` to your Gemfile, bundle, and then try again
[17:52:04] StoneCypher: oh, right, bundle doesn't touch the gem list
[17:52:07] StoneCypher: ACTION sighs. "sorry"
[17:53:04] Papierkorb: t-recx: path completion in pry?
[17:54:35] tAn: has joined #ruby
[17:55:39] synthroid: has joined #ruby
[17:55:41] StoneCypher: Papierkorb: you were correct
[17:58:19] Papierkorb: t-recx: I don't know where that's used. Do you mean standard tab autocompletion of classes/methods, or file paths?
[17:58:33] Papierkorb: t-recx: Err, dunno about path completion, only know of class/method completion
[17:58:43] t-recx: when for instance I try to require './<tab>
[17:58:50] duderonomy: has joined #ruby
[17:59:22] kies: has joined #ruby
[17:59:34] enterprisey: has joined #ruby
[17:59:35] Papierkorb: It tries to complete methods for me if I do that
[17:59:53] FastJack_: has joined #ruby
[18:01:03] t-recx: completing methods/class names works fine
[18:01:57] joelwallis: has joined #ruby
[18:02:02] br0d1n: has joined #ruby
[18:02:34] gigetoo: has joined #ruby
[18:04:12] mkillebrew: oh, I had to Regex.escape(variable) before using it in gsub
[18:05:35] StoneCypher: is a Rakefile supposed to automatically pick tasks up from /lib/tasks?
[18:06:21] mooser: has joined #ruby
[18:06:56] StoneCypher: oh, if there's no desc it doesn't show
[18:09:04] dionysus69: has joined #ruby
[18:13:51] hahuang65: has joined #ruby
[18:17:30] mkillebrew: how can I print a multi-line string with indentation on each line?
[18:19:45] allisio: mkillebrew: How about `gsub("\n", "\n ")`?
[18:20:18] ionte: has joined #ruby
[18:28:16] futilegames: has joined #ruby
[18:30:40] millerti: has joined #ruby
[18:34:27] Kug3lis: has joined #ruby
[18:34:54] A124: has joined #ruby
[18:36:02] ski7777: has joined #ruby
[18:38:53] mim1k: has joined #ruby
[18:39:03] Mon_Ouie: You still need to indent the first line with that
[18:43:12] Rodya_: has joined #ruby
[18:44:22] Xiti: has joined #ruby
[18:46:55] tolerablyjake: has joined #ruby
[18:47:09] SeepingN: has joined #ruby
[18:50:07] ahrs: has joined #ruby
[18:53:18] patarr: Can I only use RSpec's expect() on doubles?
[18:53:41] patarr: I would like to create a test that checks whether a method was called on an object, but I don't want to stub that object. I only want to "spy" it.
[18:56:04] br0d1n: has joined #ruby
[18:56:40] dionysus70: has joined #ruby
[19:02:05] mlehrer: has joined #ruby
[19:02:46] havenwood: Mon_Ouie: Good point.
[19:03:07] havenwood: mkillebrew: prepend("\t").gsub("\n", "\n\t")
[19:03:50] lenwood: has joined #ruby
[19:04:48] machinewar: has joined #ruby
[19:06:06] apeiros: hanmac: heh, rare enough that nobu is wrong about something ruby :D
[19:07:52] ColeHub: has joined #ruby
[19:09:00] Rodya_: has joined #ruby
[19:09:19] Mon_Ouie: prepend is in-place though, prefer String#+ if you don't want that to happen
[19:09:34] havenwood: another good point
[19:09:40] bkxd: has joined #ruby
[19:10:55] havenwood: hmm, what would be a nice way with just regexp?
[19:11:13] lenwood: has joined #ruby
[19:12:18] Mon_Ouie: >> "foo\nbar\nbaz".gsub(/^/, "\t") # seems to work
[19:12:19] ruby[bot]: Mon_Ouie: # => "\tfoo\n\tbar\n\tbaz" (https://eval.in/767088)
[19:12:28] matthewd: patarr: There's a method for that -- to make the stub re-call the original
[19:13:08] millerti: has joined #ruby
[19:13:11] havenwood: Mon_Ouie: that's nice
[19:13:27] havenwood: mkillebrew: ^
[19:13:56] Rodya_: has joined #ruby
[19:16:29] TomyLobo2: has joined #ruby
[19:22:01] TomyLobo: has joined #ruby
[19:22:24] moei: has joined #ruby
[19:23:41] lxsameer: has joined #ruby
[19:24:46] jphase: has joined #ruby
[19:30:20] ColeHub: has joined #ruby
[19:31:15] chwood: has joined #ruby
[19:32:00] yxhuvud: has joined #ruby
[19:41:10] Mon_Ouie: has joined #ruby
[19:42:12] govg: has joined #ruby
[19:46:24] papillon: has joined #ruby
[19:48:00] Coldblackice: has joined #ruby
[19:52:00] j416: randomly landed on this page http://www.banggood.com/Electric-Blackhead-Suction-Ance-Remover-Vacuum-Microdermabrasion-Pore-Cleanser-Facial-Skin-Lift-p-1067553.html
[19:52:06] j416: discovered strange feature http://img.banggood.com/images/oaupload/banggood/images/85/AE/e6f7ab49-8df9-453c-a5a3-d91a8df319b1.jpg
[19:53:17] j416: fak, wrong channel
[19:53:21] j416: but, there you go.
[19:53:29] j416: apologies
[19:56:50] jenrzzz: has joined #ruby
[19:56:51] jenrzzz: has joined #ruby
[20:00:48] hahuang61: has joined #ruby
[20:02:23] tildes: has joined #ruby
[20:05:06] dviola: has joined #ruby
[20:08:44] Rodya_: has joined #ruby
[20:10:18] FastJack: has joined #ruby
[20:10:35] bkxd: has joined #ruby
[20:13:08] ruby[bot]: +bbb $a:j416$#ruby-banned j416!*@*$#ruby-banned *!*@unaffiliated/j416$#ruby-banned
[20:13:09] ruby[bot]: ruby[bot] kicked j416: is a bannable offense, see http://ruby-community.com/pages/user_rules
[20:13:45] TheHodge: has joined #ruby
[20:13:59] tildes: has joined #ruby
[20:15:50] baweaver: !unban j416
[20:15:50] ruby[bot]: -bbb $a:j416$#ruby-banned j416!*@*$#ruby-banned *!*@unaffiliated/j416$#ruby-banned
[20:16:56] j416: has joined #ruby
[20:17:30] Coldblackice: has joined #ruby
[20:18:01] KnownSyntax: has joined #ruby
[20:18:28] baweaver: read banggood as some type of bad site, bit trigger happy
[20:18:37] bsartek: has joined #ruby
[20:21:01] cdg: has joined #ruby
[20:23:05] ruby: has joined #ruby
[20:24:02] johnzorn: has joined #ruby
[20:25:10] aglorei: has joined #ruby
[20:27:47] enterprisey: has joined #ruby
[20:28:06] Rodya_: has joined #ruby
[20:30:06] j416: it does indeed look like one. I wonder how they came up with that name in the first place. o_O Thanks for unbanning.
[20:32:45] __Yiota: has joined #ruby
[20:34:28] nofxxx: has joined #ruby
[20:35:55] tekk: has joined #ruby
[20:37:38] Rodya_: has joined #ruby
[20:42:46] ColeHub: has joined #ruby
[20:44:47] millerti: has joined #ruby
[20:48:41] kith: has joined #ruby
[20:51:25] Rodya_: has joined #ruby
[21:00:38] ColeHub: has joined #ruby
[21:03:28] __Yiota: has joined #ruby
[21:04:53] twistedpixels_: has joined #ruby
[21:06:27] jaegerca: has joined #ruby
[21:09:43] xenops: has joined #ruby
[21:09:53] agent_white: has joined #ruby
[21:11:15] bkxd: has joined #ruby
[21:13:42] ovaltine: has joined #ruby
[21:15:08] ColeHub: has joined #ruby
[21:17:55] Rodya_: has joined #ruby
[21:21:00] mustmodify: has joined #ruby
[21:21:13] mustmodify: Anyone know how I can have a windows user test that her build tools are installed?
[21:21:36] mustmodify: She's seeing "The 'nio4r' native gem requires installed build tools." but she swears she followed the installation instructions.
[21:22:10] Rodya_: has joined #ruby
[21:26:40] Rodya_: has joined #ruby
[21:28:37] mim1k: has joined #ruby
[21:29:05] havenwood: mustmodify: https://github.com/socketry/nio4r/issues/42
[21:29:43] cow[baby]: has joined #ruby
[21:31:38] enterprisey: has joined #ruby
[21:35:05] nitric_: has joined #ruby
[21:37:38] Tau: has joined #ruby
[21:39:05] Rodya_: has joined #ruby
[21:39:56] __Yiota: has joined #ruby
[21:41:43] spicerack: has joined #ruby
[21:41:48] patarr: How do I have RSpec expect a method call at least once, but I don't know when?
[21:42:00] patarr: The method is called a few times with different parameters, but I don't care. I just want to check _one_ of the
[21:43:45] cow[baby]: has joined #ruby
[21:44:59] ColeHub: has joined #ruby
[21:50:50] br0d1n: has joined #ruby
[21:51:30] mustmodify: havenwood: thanks. Turns out she extracted the build tools but hadn't run commands to install them.
[21:51:52] mustmodify: has left #ruby: ()
[21:57:47] Jayson_Virissimo: has joined #ruby
[22:01:02] jusa: has joined #ruby
[22:01:40] hahuang61: has joined #ruby
[22:02:49] esObe_: has joined #ruby
[22:06:45] blackwind_123: has joined #ruby
[22:10:29] zipper: has joined #ruby
[22:12:43] cjk101010: has joined #ruby
[22:13:55] hekin: has joined #ruby
[22:14:24] nitric: has joined #ruby
[22:16:21] hekin: please help to find out the encoding for text in https://gist.github.com/leomayleomay/501cc224d27f3ec14289044a4ead6dbe, no luck with `str.encode('GB18030').force_encoding('UTF-8')`
[22:17:31] StoneCypher: what's the language inside
[22:18:16] hxegon: hekin: I'd try the venerable "file" command if you are on linux. OS X might have it too
[22:18:19] hekin: @StoneCypher it’s supposed to be Simplified Chinese
[22:18:50] hekin: @hxegon `file` command with any option?
[22:19:04] hekin: StoneCypher: any way to make it readable?
[22:19:27] hxegon: hekin: just "file filename.whatever"
[22:19:50] hekin: @hxegon will try
[22:20:58] hekin: @hxegon it says `UTF-8`, sorry I didn’t make it clear at the first place, I meant to find a way of showing the text in a readable way
[22:22:21] hekin: str.force_encoding('GB18030').encode('UTF-8') gives me https://gist.github.com/leomayleomay/0ce0556237aa6deeeccfb886a6eb3db0, which is also invalid ...
[22:23:58] lupine: see: charlock_holmes
[22:25:02] StoneCypher: hekin: it's utf8. stop trying to convert it from something else to utf8. it's already utf8.
[22:25:45] hekin: @StoneCypher yes, it’s UTF-8 in an encrypted way :)
[22:25:54] hekin: any way of decrypting it?
[22:26:39] mikecmpbll: has joined #ruby
[22:27:55] cow[baby]: has joined #ruby
[22:31:42] hxegon: hekin: not sure what you are asking. Is it actually encrypted?
[22:32:19] hxegon: pushing part of that text through google translate gives me "donkey doll ugly flesh chick fleece ridge Lie Lu Te donkeys step lower drainage magnesium abdomen Lu Lu Mang captive:"
[22:33:29] twistedpixels_: has joined #ruby
[22:35:10] gloscombe_: has joined #ruby
[22:35:13] manveru: looks like chinese spam mail
[22:38:40] hekin: @hxegon no, it’s not encrypted, it’s just encoded in a unreadable way
[22:38:59] hekin: @manveru no, it’s not a spam :)
[22:40:09] rwb: has joined #ruby
[22:40:17] claw: has joined #ruby
[22:44:59] bsartek: has joined #ruby
[22:47:04] al2o3-cr: hekin: https://gist.githubusercontent.com/leomayleomay/501cc224d27f3ec14289044a4ead6dbe/raw/4abb2fce21a2d6aaca66f8de5f9d1d56040bc44e/gistfile1.txt
[22:48:22] hekin: @al2o3-cr you want to tell me it’s actually Vietnamese?
[22:48:27] ozcanesen: has joined #ruby
[22:49:12] al2o3-cr: hekin: you sick?
[22:49:26] hekin: @al2o3-cr why’s that?
[22:49:26] cow[baby]: has joined #ruby
[22:49:43] hekin: it’s teeth, not mask ..
[22:50:15] claw: has joined #ruby
[22:51:11] al2o3-cr: dick turpin wore a mask
[22:52:19] StoneCypher: hekin: it's just utf8. i don't know why you're asserting that it's unreadable or encrypted. it's perfectly normal utf8.
[22:52:36] StoneCypher: the first encoding detector i tried opened it right up without problems
[22:53:19] hekin: @StoneCypher i try to find out the content of the text, i tried to `puts str` directly, it’s not readable, just some random text
[22:53:45] t-recx: has joined #ruby
[22:53:58] agent_white: has joined #ruby
[22:55:00] hekin: al2o3-cr: ?
[22:55:10] hutch34: has joined #ruby
[22:55:52] hxegon: How is it not readable?
[22:56:25] esObe_: has joined #ruby
[22:57:23] hekin: @hxegon_afk thank you for your help, never mind, will try to figure it out myself
[22:58:20] j416: hekin: given the date format it looks, to me, chinesey
[22:58:29] j416: but I can't figure out the encoding
[22:58:32] al2o3-cr: hekin: good luck ;)
[22:59:00] al2o3-cr: IT'S UNICODE
[22:59:06] StoneCypher: ACTION sighs
[22:59:34] hekin: @j416 thank you for your help
[22:59:47] j416: al2o3-cr, StoneCypher: obviously garbled in some way?
[22:59:49] hekin: @StoneCypher thank you for your help, sorry for wasting your time
[23:00:08] j416: how can you be so sure?
[23:00:37] j416: it's an honest question
[23:00:41] j416: I'm interested to learn.
[23:02:27] esObe_: has joined #ruby
[23:04:35] naprimer: has joined #ruby
[23:11:01] StoneCypher: j416: how can i be sure that unicode isn't garbled? by the mechanism i already described earlier. i looked at it.
[23:11:42] dtzuzu: has joined #ruby
[23:12:05] bkxd: has joined #ruby
[23:12:34] chouhoul_: has joined #ruby
[23:13:19] j416: StoneCypher: well it's not very readable is it
[23:13:53] al2o3-cr: hekin: Encoding.list.map(&:name).each { |enc| puts foo.encode(enc) rescue nil } # check em' all
[23:14:33] al2o3-cr: it's still unicode
[23:22:59] al2o3-cr: who-tf still uses iso-8859-1 and binary
[23:25:40] elomatreb: 8859-15 is for some reason still very common in Germany
[23:28:59] mim1k: has joined #ruby
[23:29:06] j416: hekin: found it
[23:29:11] cow[baby]: has joined #ruby
[23:30:28] j416: hekin: https://gist.github.com/anonymous/740724a468d9760a787daa3712afbed8
[23:31:07] hekin: @j416 yeah, that’s expected, how did you do that?
[23:31:47] thistle: has joined #ruby
[23:31:51] j416: I've really no idea, but I guess it's an encoding that iconv doesn't support? http://www.mandarintools.com/email.html
[23:32:28] j416: hekin: do you know the encoding?
[23:33:05] hekin: @j416 i have no idea what the encoding should be for this text …
[23:33:41] al2o3-cr: the encoding is utf8
[23:34:31] ozcanesen: has joined #ruby
[23:36:03] cow[baby]: has joined #ruby
[23:37:42] al2o3-cr: "ÎҵĻØ" is utf8
[23:38:09] thistle: has joined #ruby
[23:38:35] al2o3-cr: "ÎҵĻØ" ascii-8bit is
[23:38:39] al2o3-cr: >> "ÎҵĻØ".b
[23:38:51] charliesome: has joined #ruby
[23:39:10] ytti: in my experience early UF8 adopters were people using 7bit ascii characters solely
[23:39:21] VladGh: has joined #ruby
[23:39:28] ytti: it took quite bit longer for people using umlauts etc to join the bandwagon
[23:39:44] al2o3-cr: yada yada yada
[23:40:27] al2o3-cr: no disrespect
[23:41:02] h8niggggggers: has joined #ruby
[23:41:12] al2o3-cr: >> "»".bytes
[23:41:20] al2o3-cr: >> "»".codepoints
[23:41:35] al2o3-cr: 1 byte vs 3 byte
[23:41:36] cow[baby]: has joined #ruby
[23:41:47] h8niggggggers: How do you call the interpreter bot?
[23:42:25] al2o3-cr: go hate somewhere else
[23:42:42] havenwood: !badnick h8niggggggers
[23:42:45] h8niggggggers: Hating niggers is hating crime and bad things
[23:43:00] h8niggggggers: How is hating niggers bad again?
[23:44:07] ChanServ: +o havenwood
[23:44:08] h8niggggggers: Have wood your bot sux
[23:44:19] havenwood: +b *!ac3a0c01@gateway/web/freenode/ip.172.58.12.1
[23:44:19] havenwood: havenwood kicked h8niggggggers: behavior is not conducive to the desired environment.
[23:44:45] ChanServ: -o havenwood
[23:45:32] havenwood: ACTION tries to wake ruby[bot] from slumber
[23:45:37] S1kx: has joined #ruby
[23:49:06] hfp: One more question... In my .profile, I'm setting a variable within an if statement with `_myvar=true`. Then I try to use it in my .bashrc and in the terminal with `echo $_myvar` but I'm getting an empty var. What am I missing?
[23:52:30] thistle: has joined #ruby
[23:52:34] hekin: hfp: have you run `source ~/.bashrc`?
[23:53:48] skweek: has joined #ruby
[23:54:22] SeepingN: has joined #ruby
[23:56:16] hfp: hekin: I'm sorry, did I ask a bash question here just now? If so, I meant to post it in #bash :s
[23:56:54] Guest916: has joined #ruby
[23:56:57] al2o3-cr: hfp: you sure did
[23:57:39] al2o3-cr: but no worries, you is legit
[23:58:05] hfp: haha sorry about that, bash is /4 in my IRC client, and ruby is /14... I guess I got confused
[23:58:39] al2o3-cr: you got to many channels :)
[23:59:53] al2o3-cr: shit, weechat doesn't alphabetize