« Back to channel list

#ruby - 10 July 2018

« Back 1 day Forward 1 day »
[00:09:13] voker57: has joined #ruby
[00:09:14] voker57: has joined #ruby
[00:20:39] mynameisdebian: has joined #ruby
[00:21:24] noobineer: has joined #ruby
[00:21:45] pauliesaint_: has joined #ruby
[00:24:50] voker57: has joined #ruby
[00:24:51] voker57: has joined #ruby
[00:36:13] jhack: has joined #ruby
[00:36:54] spiette: has joined #ruby
[00:41:38] jhack: has joined #ruby
[00:42:19] lxsameer: has joined #ruby
[00:51:05] whippythellama: has joined #ruby
[00:51:10] bier: has joined #ruby
[00:56:48] lxsameer: has joined #ruby
[00:59:39] eckhardt_: has joined #ruby
[01:00:50] giraffe: has joined #ruby
[01:01:53] tpendragon: has joined #ruby
[01:02:54] jhack: has joined #ruby
[01:06:00] jhack: has joined #ruby
[01:06:00] jhack: has joined #ruby
[01:06:50] apeiros: has joined #ruby
[01:08:54] jasmith: has joined #ruby
[01:10:36] salasrod: has joined #ruby
[01:12:11] noobineer: has joined #ruby
[01:14:33] lxsameer: has joined #ruby
[01:15:46] npgm: has joined #ruby
[01:25:29] noobineer: has joined #ruby
[01:28:16] Asher: has joined #ruby
[01:29:04] apeiros: has joined #ruby
[01:29:43] willthechill: has joined #ruby
[01:36:09] noobineer: has joined #ruby
[01:42:44] white_lilies: has joined #ruby
[01:47:28] tty: has joined #ruby
[01:50:54] focodev: has joined #ruby
[01:51:20] focodev: what's up you ruby hipsters.. I have a rails app with two models... artists and albums... I run rails g createjointable artists albums and I get Artists_Albums table.. I see it in my postgres database.
[01:51:42] focodev: yet when I serve my app I get PG::UndefinedTable: ERROR: relation "albums_artists" does not exist
[01:51:49] focodev: and yes I have run rails db:migrate
[01:53:23] akkiguru: has joined #ruby
[01:53:56] focodev: nevermind... rails used capital letters for the join table and yet the SQL generated to grab my models out of the db was using lower case letters for the join table... why rails why.. I didn't do that shit, so why did you?
[01:54:22] voiceftp: has joined #ruby
[01:55:04] bmurt: has joined #ruby
[01:55:19] apeiros: has joined #ruby
[01:57:11] tdy: has joined #ruby
[02:07:06] kryptoz: has joined #ruby
[02:10:44] postmodern: has joined #ruby
[02:11:38] alfiemax: has joined #ruby
[02:12:22] Xiti`: has joined #ruby
[02:13:20] voice_ftp: has joined #ruby
[02:14:00] kenichi_: has joined #ruby
[02:14:12] m27frogy_: has joined #ruby
[02:14:43] Kilobyte22: has joined #ruby
[02:14:51] caw_________: has joined #ruby
[02:14:53] shinnya_: has joined #ruby
[02:15:04] DTZUZU2: has joined #ruby
[02:15:04] stairmast0r_: has joined #ruby
[02:15:08] duderono_: has joined #ruby
[02:15:11] foamz_: has joined #ruby
[02:15:14] jhill_: has joined #ruby
[02:15:35] postmodern_: has joined #ruby
[02:15:40] akkiguru_: has joined #ruby
[02:16:38] MagePsycho: has joined #ruby
[02:16:42] nibbo_: has joined #ruby
[02:16:47] tw1sted: has joined #ruby
[02:16:50] SirFunk_: has joined #ruby
[02:17:00] pisculic1i: has joined #ruby
[02:17:02] connor_g1odwolf: has joined #ruby
[02:17:17] ule_: has joined #ruby
[02:17:20] mrBen2k2k2k: has joined #ruby
[02:17:23] shaman42_: has joined #ruby
[02:17:24] asio_: has joined #ruby
[02:17:48] ptx0_: has joined #ruby
[02:17:49] justinmcp: has joined #ruby
[02:17:57] kapil___: has joined #ruby
[02:18:15] yosafbridge`: has joined #ruby
[02:18:16] ptx0_: has joined #ruby
[02:18:22] Cthulu202: has joined #ruby
[02:18:38] awx_: has joined #ruby
[02:18:39] jraavis: has joined #ruby
[02:18:44] diego2: has joined #ruby
[02:18:56] octomanc1: has joined #ruby
[02:18:58] ianmalcolm_: has joined #ruby
[02:19:09] Neptu_: has joined #ruby
[02:19:15] KramerC_: has joined #ruby
[02:19:24] wkoszek_: has joined #ruby
[02:19:24] zumbi: has joined #ruby
[02:19:24] olblak: has joined #ruby
[02:19:26] olspookishmagus: has joined #ruby
[02:19:26] caw_________: has joined #ruby
[02:19:26] jhill_: has joined #ruby
[02:19:26] foamz_: has joined #ruby
[02:19:26] nibbo_: has joined #ruby
[02:19:26] klaas: has joined #ruby
[02:19:26] kapil___: has joined #ruby
[02:19:27] mluts_: has joined #ruby
[02:19:27] coffeecupp__: has joined #ruby
[02:19:27] KramerC_: has joined #ruby
[02:19:28] diego2: has joined #ruby
[02:19:48] thejoecarroll: has joined #ruby
[02:20:06] RougeT430: has joined #ruby
[02:20:25] leafyleong: has joined #ruby
[02:20:26] Tharbakim: has joined #ruby
[02:20:45] volix: has joined #ruby
[02:20:52] avelldiroll: has joined #ruby
[02:21:40] KrzaQ: has joined #ruby
[02:21:48] diego2: has joined #ruby
[02:21:58] cgfbee: has joined #ruby
[02:22:11] avelldiroll: has joined #ruby
[02:22:24] infernix: has joined #ruby
[02:22:43] mkaito_: has joined #ruby
[02:23:20] volix: has joined #ruby
[02:23:25] zumbi: has joined #ruby
[02:23:58] snapcase: has joined #ruby
[02:24:02] kiki_lamb: has joined #ruby
[02:24:22] lxsameer: has joined #ruby
[02:24:27] alfiemax: has joined #ruby
[02:24:57] Tharbakim: has joined #ruby
[02:25:55] olblak: has joined #ruby
[02:25:55] wkoszek_: has joined #ruby
[02:25:56] gell5: has joined #ruby
[02:26:25] zenspider: ruby... hipsters...
[02:26:28] ruby[bot]: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[02:28:13] Paraxial: has joined #ruby
[02:28:33] jmcgnh: has joined #ruby
[02:28:37] Aloy: has joined #ruby
[02:29:16] _habnabit: has joined #ruby
[02:30:05] jp: has joined #ruby
[02:30:14] bier: has joined #ruby
[02:30:25] cthulchu: has joined #ruby
[02:30:48] ablackack: has joined #ruby
[02:31:05] bmurt: has joined #ruby
[02:31:17] camilasan: has joined #ruby
[02:31:23] shadeslayer: has joined #ruby
[02:31:43] booboy: has joined #ruby
[02:31:49] Arahael: has joined #ruby
[02:34:02] miah: has joined #ruby
[02:34:06] harmaahylje: has joined #ruby
[02:34:25] cthulchu_: has joined #ruby
[02:34:55] cthu|: has joined #ruby
[02:39:41] gell5: has joined #ruby
[02:40:08] apeiros: has joined #ruby
[02:41:27] kryptoz: has joined #ruby
[02:44:53] BTRE: has joined #ruby
[02:49:44] gell5: has joined #ruby
[02:52:53] nicht: has joined #ruby
[02:55:25] Guest84006: has joined #ruby
[03:00:12] cadillac_: has joined #ruby
[03:01:53] gell5: has joined #ruby
[03:05:58] cthulchu_: has joined #ruby
[03:10:49] braincrash: has joined #ruby
[03:12:07] r29v: has joined #ruby
[03:15:01] Guest84006: has joined #ruby
[03:19:36] jraavis: has joined #ruby
[03:26:32] apeiros: has joined #ruby
[03:27:16] alfiemax: has joined #ruby
[03:27:46] Axsuul: has joined #ruby
[03:32:54] Guest84006: has joined #ruby
[03:34:38] Nicmavr: has joined #ruby
[03:36:50] gix: has joined #ruby
[03:44:14] alfiemax: has joined #ruby
[03:45:17] tenderlove: has joined #ruby
[03:45:27] chkhanch: has joined #ruby
[03:45:46] r29v: has joined #ruby
[03:50:07] apeiros: has joined #ruby
[03:53:27] solocshaw: has joined #ruby
[03:55:07] gell5: has joined #ruby
[03:59:48] Guest84006: has joined #ruby
[04:03:42] solocshaw: has joined #ruby
[04:12:56] apeiros: has joined #ruby
[04:15:22] SeepingN: has joined #ruby
[04:15:26] kryptoz: has joined #ruby
[04:16:23] dellavg: has joined #ruby
[04:19:55] paradisaeidae: has joined #ruby
[04:20:00] paradisaeidae_: has joined #ruby
[04:20:00] dellavg: has joined #ruby
[04:25:19] StarSeed0000: has joined #ruby
[04:31:24] alfiemax_: has joined #ruby
[04:34:22] apeiros: has joined #ruby
[04:38:51] pisculichi: has joined #ruby
[04:42:33] solocshaw: has joined #ruby
[04:43:52] darkhanb: has joined #ruby
[04:45:08] Guest84006: has joined #ruby
[04:56:13] anisha: has joined #ruby
[05:02:47] Guest84006: has joined #ruby
[05:09:30] amar: has joined #ruby
[05:12:57] cadillac_: has joined #ruby
[05:14:43] za1b1tsu: has joined #ruby
[05:21:17] cadillac_: has joined #ruby
[05:24:00] Guest84006: has joined #ruby
[05:24:06] cadillac__: has joined #ruby
[05:24:47] mynameis_: has joined #ruby
[05:26:10] SeepingN: has joined #ruby
[05:29:41] r3m: has joined #ruby
[05:32:02] tenderlove: has joined #ruby
[05:32:12] mtkd: has joined #ruby
[05:39:03] cadillac_: has joined #ruby
[05:43:56] cadillac_: has joined #ruby
[05:47:49] tenderlove: has joined #ruby
[05:49:56] cadillac_: has joined #ruby
[05:51:39] mynameisdebian: has joined #ruby
[05:51:54] apeiros: has joined #ruby
[05:51:58] aupadhye: has joined #ruby
[05:53:27] reber: has joined #ruby
[05:53:59] tenderlove: has joined #ruby
[05:54:50] cadillac_: has joined #ruby
[05:55:41] gell5: has joined #ruby
[05:59:13] akkiguru_: has joined #ruby
[06:00:11] cadillac_: has joined #ruby
[06:04:54] ur5us: has joined #ruby
[06:05:55] cadillac_: has joined #ruby
[06:09:09] sidx64: has joined #ruby
[06:09:39] Mrgoose: has joined #ruby
[06:11:35] Technato1: has joined #ruby
[06:14:55] cadillac_: has joined #ruby
[06:15:10] Guest84006: has joined #ruby
[06:22:32] sauvin: has joined #ruby
[06:23:12] pabs: has joined #ruby
[06:25:07] akkiguru_: has joined #ruby
[06:27:25] postmodern__: has joined #ruby
[06:31:29] za1b1tsu: has joined #ruby
[06:32:20] rippa: has joined #ruby
[06:33:35] cadillac_: has joined #ruby
[06:33:36] tenderlove: has joined #ruby
[06:35:31] tenderlove: has joined #ruby
[06:37:01] schleppel: has joined #ruby
[06:40:45] tenderlove: has joined #ruby
[06:41:45] tenderlove: has joined #ruby
[06:41:47] konsolebox: has joined #ruby
[06:42:54] tenderlove: has joined #ruby
[06:43:08] go|dfish: has joined #ruby
[06:44:04] tenderlove: has joined #ruby
[06:45:14] Guest84006: has joined #ruby
[06:49:00] Pupeno_W: has joined #ruby
[06:54:09] Bloob_: has joined #ruby
[06:54:48] Bloob_: hi everyone ! im a total noob with ruby (I never studied it) and i did not get through a simple blocking thing
[06:55:12] Bloob_: can anyone help me to convert a data: {"current":260,"value":260,"points":[{"x":1,"y":239.0},{"x":2,"y":249.0},{"x":3,"y":241.0},"id":"Icng2-testicinga-procs","updatedAt":1530796631030}
[06:55:13] Bloob_: into data: {"current":260,"value":260,"points":[239,249,241], "id":"Icng2-testicinga-procs","updatedAt":1530796631030}
[06:55:36] Bloob_: i just want the y value separated by comma in the points variable;.
[06:55:57] Bloob_: i can provide code and help as long anyone answer me ^-^
[06:56:19] tbuehlmann: so convert [{"x":1,"y":239.0},{"x":2,"y":249.0},{"x":3,"y":241.0}] into [239, 249, 241], right?
[06:56:59] Bloob_: yes thats a way to do what i want
[06:57:23] Bloob_: can i explain you my all process ? because i think there's a simpler way to do it if you know the context
[06:58:09] tbuehlmann: not having too much time, but sure, go ahead. maybe there are more people reading
[06:58:23] Bloob_: do you know dashing ?
[06:58:35] dionysus69: has joined #ruby
[06:59:10] Bloob_: i'm currently using a job (file that goes for information and return it in an "event") in ruby which is working great. It takes data from a Graphite (time series database)
[06:59:27] Bloob_: the output of what it takes is {"current":260,"value":260,"points":[{"x":1,"y":239.0},{"x":2,"y":249.0},{"x":3,"y":241.0},"id":"Icng2-testicinga-procs","updatedAt":1530796631030}
[06:59:45] Bloob_: but i need an other event to be sent, something like [239, 249, 241]
[06:59:56] Bloob_: so 1 - i change what the job is taking from graphite
[07:00:17] Bloob_: 2- i do what you said : i convert the output into a new one
[07:02:14] Bloob_: job graphite.rb : https://pastebin.com/zMG3Fy05
[07:02:15] ruby[bot]: Bloob_: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
[07:02:25] Bloob_: oh, sorry
[07:02:32] andikr: has joined #ruby
[07:04:03] TomyWork: has joined #ruby
[07:05:44] yohji: has joined #ruby
[07:09:30] Tempesta: has joined #ruby
[07:09:54] alem0lars: has joined #ruby
[07:10:21] aufi: has joined #ruby
[07:10:21] za1b1tsu: has joined #ruby
[07:11:47] sidx64: has joined #ruby
[07:12:33] tbuehlmann: well, you can convert that array by calling .map { |element| element[:y] }
[07:13:48] Bloob_: literally ? because i dont know a damn thing about perl
[07:14:01] Bloob_: i'm about to copy paste as the best place i can find
[07:14:23] Bloob_: myArray.map{ |element| element[:y] }
[07:15:34] tbuehlmann: try it in a console: my_array = [{x: 1, y: 239.0}, {x: 2,y: 249.0}, {x: 3, y: 241.0}]; my_array.map { |element| element[:y] } # => [239.0, 249.0, 241.0]
[07:17:08] clemens3: has joined #ruby
[07:19:21] Dbugger: has joined #ruby
[07:20:52] Aloy: has joined #ruby
[07:22:00] Technato1: has joined #ruby
[07:22:15] DarthGandalf: has joined #ruby
[07:22:37] claudiuinberlin: has joined #ruby
[07:23:22] baweaver: graphite_rows.map(&Xf.trace('y').get)
[07:23:37] ams__: has joined #ruby
[07:24:55] burgestrand: has joined #ruby
[07:26:37] ams__: has joined #ruby
[07:27:57] Bloob_: undefined local variable or method `point' for #<Graphite:0x000000024c7af0>
[07:28:31] Bloob_: baweaver : it seems to be a good trick, where should i use it ?
[07:28:35] ByronJohnson: has joined #ruby
[07:28:52] biberu: has joined #ruby
[07:29:19] baweaver: It's a gem called Xf. That said simpler is probably better for now.
[07:30:16] Bloob_: ok, i know how to install a gem but i repeat, i dont know how to use any form of code in ruby. not even the simpliest
[07:31:01] Bloob_: i'm using code i found on the internet and i'm currently trying to adapt it. What you send me seems to be a nice feature bu i dont feel like i will be able to use it
[07:32:59] sphenxes: has joined #ruby
[07:33:02] alfiemax: has joined #ruby
[07:35:41] blackmesa: has joined #ruby
[07:37:35] Bloob_: i did it !!! thank you for help guys
[07:38:04] Bloob_: it was a "simple" points.map!{|element| element[:y]}
[07:42:45] DarthGandalf: has joined #ruby
[07:43:11] alfiemax: has joined #ruby
[07:47:16] Azure|dc: has joined #ruby
[07:51:18] Some-body_: has joined #ruby
[07:52:33] sticaz: has joined #ruby
[07:53:39] amar: has joined #ruby
[07:55:26] amar_: has joined #ruby
[07:56:51] Technato1: has joined #ruby
[07:57:36] gell5: has joined #ruby
[08:00:16] sticaz: has joined #ruby
[08:00:25] shinnya: has joined #ruby
[08:00:56] akkiguru_: has joined #ruby
[08:01:01] qba73: has joined #ruby
[08:01:29] ellcs: has joined #ruby
[08:02:57] Some-body_: has joined #ruby
[08:07:46] rupam123456: has joined #ruby
[08:08:29] riton: has left #ruby: ("WeeChat 2.1")
[08:10:41] za1b1tsu: has joined #ruby
[08:12:29] Beams: has joined #ruby
[08:12:42] Fridtjof: has joined #ruby
[08:14:15] Biohazard: has joined #ruby
[08:17:53] ciscam: has joined #ruby
[08:20:55] alex``: has joined #ruby
[08:22:17] Beams: has joined #ruby
[08:22:46] kryptoz: has joined #ruby
[08:24:18] mikecmpbll: has joined #ruby
[08:25:06] za1b1tsu: has joined #ruby
[08:26:03] sidx64: has joined #ruby
[08:27:06] sphenxes: has joined #ruby
[08:32:35] Technato1: has joined #ruby
[08:33:47] nicesignal: has joined #ruby
[08:35:09] Megamos: has joined #ruby
[08:36:33] Beams: has joined #ruby
[08:37:10] pauliesaint: has joined #ruby
[08:40:38] venmx: has joined #ruby
[08:44:42] za1b1tsu: has joined #ruby
[08:44:51] Sylario: has joined #ruby
[08:53:05] DarthGandalf: has joined #ruby
[08:55:49] sidx64: has joined #ruby
[08:55:57] Bloob_: Good morning everyone ! Is someone available for 2 minutes of his precious time?
[08:56:33] Some-body_: has joined #ruby
[09:01:19] ur5us: has joined #ruby
[09:04:11] dionysus69: has joined #ruby
[09:04:49] arne: has joined #ruby
[09:05:20] arne: can anyone lead me into a good direction for generating captchas?
[09:07:01] alfiemax: has joined #ruby
[09:08:38] nowhere_man: has joined #ruby
[09:10:20] duderonomy: has joined #ruby
[09:10:28] Bloob_: Hey, i would like labels[] to have something like [1,2,3,4,5] https://gist.github.com/bloobXcinga/c1f6274b3242bb8f4984100dbe5debd7 can anyone help me with this easy thing ?
[09:12:50] nima_m: has joined #ruby
[09:14:39] Azure: has joined #ruby
[09:14:42] arne: like.. labels << [item[:count]]
[09:14:51] arne: labels << item[:count]*
[09:15:25] Bloob_: ooooooooh yes it seems right
[09:16:56] Bloob_: i got an error : no implicit conversion of Symbol into Integer ???
[09:16:56] arne: but your code is odd, does item look like this? {0=>something1,:value=>something2,:count=>something3}
[09:17:16] arne: well, item is an array i guess
[09:17:26] arne: how does "item" look
[09:17:57] arne: is it [{:count=>3},{:value=>2}]
[09:18:06] Bloob_: i dont know exactly
[09:18:12] arne: well print it in line 4
[09:18:23] Bloob_: im currently taking datas from a graph
[09:18:27] Bloob_: Y is the Y axe
[09:18:31] Bloob_: and count the X axe
[09:18:42] arne: pls show us "datapoints" otherwise it's hard to help you
[09:18:49] tenderlove: has joined #ruby
[09:19:10] sidx64: has joined #ruby
[09:19:23] Bloob_: sorry, pastebin again https://pastebin.com/zMG3Fy05
[09:19:23] ruby[bot]: Bloob_: as I told you already, please use https://gist.github.com
[09:19:48] Bloob_: it is the original code. i'm working line 57
[09:20:29] Bloob_: i added the labels[] because i want it to be [1,2,3,4,5] (as much as it can find y value)
[09:20:32] arne: it doesn't help really
[09:20:35] arne: just print datapoints
[09:20:36] Bloob_: to re-graph it somewhere else
[09:20:46] Bloob_: data: {"datasets":[{"label":"First dataset","data":[{"y":255.0},{"y":240.0},{"y":245.0},{"y":232.0},{"y":240.0},{"y":232.0},{"y":239.0},{"y":245.0},{"y":236.0},{"y":238.0},{"y":234.0},{"y":235.0},{"y":233.0},{"y":249.0},{"y":245.0},{"y":247.0},{"y":235.0},{"y":238.0},{"y":237.0},{"y":234.0},{"y":245.0},{"y":231.0},{"y":235.0},{"y":237.0},{"y":240.0},{"y":240.0},{"y":233.0},{"y":234.0},{"y":238.0},{"y":245.0},{"y":232.0},{"y":235.0},{"y"
[09:21:03] Bloob_: https://gist.github.com/bloobXcinga/c1f6274b3242bb8f4984100dbe5debd7
[09:22:23] arne: so, what info you want to extract from that?
[09:22:26] arne: only "data"?
[09:22:37] dionysus70: has joined #ruby
[09:22:46] Bloob_: i managed to get the y value as i wanted to
[09:23:02] arne: i guess that's what get_value does?
[09:23:14] Bloob_: i need to add a variable ( labels[] ) to increment from 1 to 60
[09:23:18] Bloob_: as i get 60 y values
[09:23:19] mikecmpbll: has joined #ruby
[09:23:30] Bloob_: i just need to set a simple do boucle with an incremented variable in it
[09:23:42] Bloob_: which result should be labels=[1,2,3,4,5]
[09:24:22] Bloob_: i think is it a really simple thing but i always get an error when i try different ways to assign these [1.2.3.4]
[09:24:59] arne: ... well
[09:25:07] arne: labels << count
[09:25:09] arne: maybe :D ?
[09:25:39] arne: since count is a local variable there, and it gets incremented a line blow
[09:25:41] tenderlove: has joined #ruby
[09:25:55] Bloob_: ... yes, you are totally right
[09:26:02] Bloob_: i don't understand, i must have try it before
[09:26:07] Bloob_: that the first thing i did ..
[09:26:14] Bloob_: thank you anyway for helping total noob
[09:26:29] arne: it's fine, that code is super confusing, and the json object aswell
[09:26:36] Bloob_: haha yes it is
[09:26:53] Bloob_: i would love to modify it to make it clear but ... as you can see, i'm a bad developper
[09:27:27] arne: im sure it will work out fine
[09:27:37] Bloob_: it will. thanks again.
[09:29:47] dionysus70: has joined #ruby
[09:32:17] tenderlove: has joined #ruby
[09:32:58] tenderlove: has joined #ruby
[09:33:04] arne: is there maybe something like a "captchaPrint"
[09:33:13] arne: like, i give a function an input
[09:33:24] arne: "a94jn" and it amkes a captcha out of it? :D
[09:34:11] chmurifree: has joined #ruby
[09:36:11] Bloob_: i guess you had a look at https://github.com/kyledayton/rcaptcha
[09:36:21] Bloob_: and every gist captcha related
[09:37:01] arne: that's great
[09:37:25] Bloob_: i know nothing about what i gave you but hope it will help you
[09:37:35] arne: well i just googled gems, and they all did weird stuff
[09:37:41] arne: this one looks like what i want
[09:37:42] NL3limin4t0r: has joined #ruby
[09:37:46] tenderlove: has joined #ruby
[09:37:51] Bloob_: i googled " ruby captcha generator "
[09:38:04] arne: i guess i was missing the generator part :)
[09:44:11] tenderlove: has joined #ruby
[09:50:07] arne: why are we living in a world with bots
[09:50:09] arne: so annoying
[09:50:50] Bloob_: and why captcha are still asking me to select cars after 3 entire captcha (more than 45seconds wasted)
[09:51:34] arne: well, are u behind a tor node? because that never happens to me
[09:52:46] Bloob_: i'm not. but usually, the captchas i get let me click on a square then is turns white and it takes 4 secondes to load the next image. thats annoying as fck
[09:53:21] Bloob_: when you have 4 images to wait to load and then, you click "verify captcha" and you have to do it one more time ?.
[09:53:21] za1b1tsu: has joined #ruby
[09:53:46] Bloob_: there is better way to verify if someone is human, captchas are not as viable as before
[09:54:03] arne: BACK TO TOPIC
[09:54:14] Bish: >> "Hellö".each_byte.to_a.map(&:chr).join
[09:54:15] ruby[bot]: Bish: # => "Hell\xC3\xB6" (https://eval.in/1034217)
[09:54:21] Bish: how does one tackle that problem?
[09:54:39] sidx64: has joined #ruby
[09:54:47] Bish: ... i guess pack can do that.. nvm
[09:54:54] jottr: has joined #ruby
[09:56:26] alfiemax: has joined #ruby
[09:57:22] Bish: why is the encoding of a 88.chr US-ASCII anyways
[09:57:49] Bish: oh, because chr is only for ascii, i see myself out
[09:58:57] gell5: has joined #ruby
[10:03:36] apeiros: Bish: what problem?
[10:03:52] apeiros: >> "Hellö".each_byte.to_a.map(&:chr).join.force_encoding('utf-8')
[10:03:54] ruby[bot]: apeiros: # => "Hellö" (https://eval.in/1034221)
[10:04:06] Bish: i figured.
[10:04:26] apeiros: also yeah, .pack("C*") >>> .map(&:chr).join
[10:04:27] Bish: well, doesn't sound right to have a broken string to tell it's it's whole again
[10:04:38] apeiros: you have a misunderstanding there
[10:04:44] apeiros: the string isn't broken
[10:04:57] Bish: well, for a moment it is, it's just not used in that time :p
[10:05:04] apeiros: no, not even for a moment.
[10:05:48] Bish: well, if you take the bits of a float, and put it into an integer, put it back into a float, then the integer one would still be broken, wouldn't it
[10:05:54] Bish: just thought there was a cleaner version
[10:06:07] apeiros: that's not really a good comparison
[10:06:16] Bish: because those are 2 types?
[10:06:31] apeiros: no, because the mechanisms differ
[10:07:02] apeiros: you have a string with an encoding. you break it up into something which can't preserve the encoding, you put it back together, so the encoding is binary.
[10:07:14] apeiros: and all you tell ruby is that you know that the encoding actually is utf-8, and not binary.
[10:07:28] apeiros: it's knowledge which you have to provide. hence the force_encoding.
[10:07:52] Bish: but force always sounds unclean
[10:08:04] apeiros: that's your perception.
[10:08:34] Bish: well, if you have to force something
[10:08:44] sidx64: has joined #ruby
[10:08:50] apeiros: yeah, I'm not going to argue about your perception. that's kinda your own problem.
[10:08:54] Bish: there was something "wrong".. why would anyone "force" something.. if it wasn't supposed to be that way in the first place
[10:09:06] konsolebox: Bish: in some way i agree. #forced
[10:09:12] apeiros: what it does is inform ruby which encoding an array of bytes uses.
[10:09:25] Bish: describing it what it does is not an argument
[10:09:26] apeiros: if you want to hang yourself up about the naming of the method, well, d'uh. up to you.
[10:10:21] konsolebox: Bish: but seriously there is eventually a default choice of configuration that has to be made, hence forced configuration is needed sometimes
[10:10:35] Bish: i don't mind about the name.. the name is implied by what it does
[10:10:49] Bish: the unclean nature of it .. made it named "force"
[10:11:55] apeiros: eh, yeah, that's bullshit.
[10:14:21] Technato1: has joined #ruby
[10:18:00] zenspider: forcing the encoding IS unclean. It might be wrong and you can wind up with an invalid string. Not sure why you're so hung up on the naming tho
[10:18:09] zenspider: force seems fine to me
[10:18:38] Bish: no the naming is perfect for what it does, because it is unclean :D
[10:19:15] zenspider: I've used it before mostly when I don't actually know the encoding, so I try out the encodings in stastistically most likely order until I get one where #valid_encoding? is true
[10:19:34] Bish: yeah... maybe that.s the reason why i hate it
[10:19:46] apeiros: well, every single-byte encoding will always give you valid_encoding?
[10:20:08] Bish: because whenever code includes force_encoding.. you fixed that piece of code multiple times..
[10:20:16] Bish: zenspider: charlock_holmes and mojibake are good
[10:20:22] apeiros: and there's plenty of cases where you have to read data to determine the encoding. most common case nowadays: http. you read. extract the encoding. set the encoding.
[10:20:30] zenspider: I used charlock to figure out the statistics of it
[10:20:42] Bish: ... well, charlock also provides setting it
[10:20:51] apeiros: of course you can also just stick to binary all the time with such data. however, that's far from the string being "broken".
[10:20:52] elomatreb: has joined #ruby
[10:20:54] zenspider: yeah... but at least in that case, the http header encoding is previously defined.
[10:21:02] Bish: with charlock_holmes/string
[10:21:11] Bish: what zenspider said
[10:21:18] zenspider: charlock is slow. I didn't want to deal with it
[10:21:46] zenspider: so I did the maths and figured out the most likely encodings. 95% of ruby files are still ASCII anyhow
[10:22:05] zenspider: do some extra work on the other 5% but do it fast
[10:22:08] apeiros: charlock reproducibly returned false charsets for where I wanted to use it. so, I guess, good luck with that?
[10:22:40] Bish: apeiros: well, do you never work with broken input?
[10:22:41] zenspider: were they actually invalid?
[10:22:44] apeiros: no idea for the why.
[10:22:54] apeiros: Bish: all the time.
[10:23:05] apeiros: but encodings isn't one of my problems.
[10:23:29] Bish: well, charlock worked for me, detected/transformed the weirdest things
[10:23:30] apeiros: it's limited to utf-8, macroman and windows-1252 in my case. and I can detect those with a high probability without charlock too.
[10:24:06] zenspider: I have a date with a jackhammer at 8:30am...
[10:24:07] zenspider: ACTION heads to bed
[10:24:17] apeiros: sleep tight
[10:27:44] sticaz: has joined #ruby
[10:27:47] rawste: has joined #ruby
[10:30:11] dalpo: has joined #ruby
[10:31:02] cyberg: has joined #ruby
[10:33:42] Beams: has joined #ruby
[10:33:54] alfiemax: has joined #ruby
[10:36:50] nowhere_man: has joined #ruby
[10:37:35] amar_: has joined #ruby
[10:38:30] FernandoBasso: has joined #ruby
[10:41:34] jottr: has joined #ruby
[10:45:00] Technato1: has joined #ruby
[10:49:17] Cthulu201: has joined #ruby
[10:49:24] amar_: has joined #ruby
[10:49:29] ur5us: has joined #ruby
[10:52:51] Bish: dalpo: hi
[10:52:56] FernandoBasso1: has joined #ruby
[10:54:14] sticaz: has joined #ruby
[10:55:14] ur5us: has joined #ruby
[11:01:14] Xiti: has joined #ruby
[11:01:18] ur5us: has joined #ruby
[11:01:25] alcroito: has joined #ruby
[11:01:47] alcroito: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[11:02:13] sidx64: has joined #ruby
[11:02:29] Beams: has joined #ruby
[11:03:01] pauliesaint: has joined #ruby
[11:03:42] shinnya: has joined #ruby
[11:05:48] sticaz: has joined #ruby
[11:07:26] sidx64: has joined #ruby
[11:10:04] guille-moe: has joined #ruby
[11:11:16] postmodern: has joined #ruby
[11:14:53] amar_: has joined #ruby
[11:19:06] darix: apeiros: people still using anything else besides utf-8 or maybe utf-16 should be spanked anyway :P
[11:19:29] apeiros: yes. binary or unicode. everything else demands punishment.
[11:19:41] apeiros: (with some rather rare exceptions)
[11:23:51] amar_: has joined #ruby
[11:25:17] AJA4350: has joined #ruby
[11:26:33] amar_: has joined #ruby
[11:27:49] amar_: has joined #ruby
[11:31:25] ldnunes: has joined #ruby
[11:32:09] amar_: has joined #ruby
[11:32:20] sidx64: has joined #ruby
[11:32:47] zapata: has joined #ruby
[11:37:01] apparition: has joined #ruby
[11:37:30] claudiuinberlin: has joined #ruby
[11:39:19] Beams: has joined #ruby
[11:39:44] jrafanie: has joined #ruby
[11:47:31] alfiemax: has joined #ruby
[11:49:42] alfiemax_: has joined #ruby
[11:50:37] GodFather: has joined #ruby
[11:52:19] conta: has joined #ruby
[11:54:19] YokoBR: has joined #ruby
[11:54:43] YokoBR: please, I need help with nginx + passenger
[11:56:16] psychicist__: has joined #ruby
[11:56:49] YokoBR: I'm migrating an app from a server to another, but I can't set up it running on passenger. It runs fine if I run rails server. This is my nginx config: https://gist.github.com/jersobh/23e1400dc6071e1dea070598145e8409
[12:00:57] gell5: has joined #ruby
[12:07:35] synthroid: has joined #ruby
[12:09:49] ldepandis: has joined #ruby
[12:11:30] lunarkitty7: has joined #ruby
[12:15:13] sidx64: has joined #ruby
[12:19:15] alfiemax: has joined #ruby
[12:21:33] GodFather: has joined #ruby
[12:24:19] MatrixBridge: has joined #ruby
[12:24:21] MatrixBridge: has left #ruby: ("User left")
[12:24:52] jraavis: has joined #ruby
[12:25:35] griffindy: has joined #ruby
[12:26:55] sidx64: has joined #ruby
[12:27:13] tenderlove: has joined #ruby
[12:28:20] tenderlove: has joined #ruby
[12:30:41] tenderlove: has joined #ruby
[12:31:39] bak1an: has joined #ruby
[12:31:40] tenderlove: has joined #ruby
[12:32:09] epistrephein: has joined #ruby
[12:32:53] tenderlove: has joined #ruby
[12:33:09] za1b1tsu: has joined #ruby
[12:35:33] Beams: has joined #ruby
[12:39:30] jottr: has joined #ruby
[12:39:35] tenderlove: has joined #ruby
[12:40:35] tenderlove: has joined #ruby
[12:42:55] GodFather: has joined #ruby
[12:43:23] bkxd: has joined #ruby
[12:43:52] nowhere_man: has joined #ruby
[12:45:43] Beams: has joined #ruby
[12:49:51] alex``: has joined #ruby
[12:51:03] qba73: has joined #ruby
[12:51:33] rwb: has joined #ruby
[12:54:10] sidx64: has joined #ruby
[12:56:07] alex``: has joined #ruby
[12:56:29] fmcgeough: has joined #ruby
[12:56:59] sphenxes: has joined #ruby
[13:00:24] gell5: has joined #ruby
[13:00:48] gell5: has joined #ruby
[13:03:41] mikecmpbll: has joined #ruby
[13:05:58] bkxd: has joined #ruby
[13:06:20] tenderlove: has joined #ruby
[13:11:21] sidx64: has joined #ruby
[13:11:40] Es0teric: has joined #ruby
[13:16:52] pauliesaint: has joined #ruby
[13:18:30] amar_: has joined #ruby
[13:20:35] bkxd: has joined #ruby
[13:21:27] jraavis: has joined #ruby
[13:26:58] mtkd: has joined #ruby
[13:27:06] tenderlove: has joined #ruby
[13:27:19] Pupeno_: has joined #ruby
[13:28:05] tenderlove: has joined #ruby
[13:29:58] rawste: has joined #ruby
[13:30:41] depesz: has left #ruby: ("WeeChat 2.1")
[13:31:12] shinnya: has joined #ruby
[13:33:23] soniya29: has joined #ruby
[13:33:28] soniya29_: has joined #ruby
[13:33:47] psychicist__: has joined #ruby
[13:37:58] Technato1: has joined #ruby
[13:43:03] Asher: has joined #ruby
[13:45:07] jottr: has joined #ruby
[13:47:49] lupine: has joined #ruby
[13:52:38] kryptoz: has joined #ruby
[13:52:54] lupine: has joined #ruby
[13:56:45] conta: has joined #ruby
[13:58:43] tenderlove: has joined #ruby
[13:59:40] sina: has joined #ruby
[13:59:42] tenderlove: has joined #ruby
[14:00:51] tenderlove: has joined #ruby
[14:02:20] tenderlove: has joined #ruby
[14:02:59] tenderlove: has joined #ruby
[14:03:19] nowhere_man: has joined #ruby
[14:03:25] GodFather: has joined #ruby
[14:04:08] tenderlove: has joined #ruby
[14:06:04] sidx64: has joined #ruby
[14:06:06] yokel: has joined #ruby
[14:06:24] Zaab1t: has joined #ruby
[14:06:30] tenderlove: has joined #ruby
[14:07:24] Mike11: has joined #ruby
[14:09:32] jrafanie: has joined #ruby
[14:09:54] andyl: has joined #ruby
[14:09:56] sidx64: has joined #ruby
[14:10:23] vondruch: has joined #ruby
[14:10:49] andyl: is ruby 2.5 faster than 2.4?
[14:13:09] sidx64: has joined #ruby
[14:14:58] Nicmavr: has joined #ruby
[14:15:01] tvw: has joined #ruby
[14:17:24] tenderlove: has joined #ruby
[14:17:33] faces: has joined #ruby
[14:18:31] tenderlove: has joined #ruby
[14:18:43] mjacob: has joined #ruby
[14:19:26] mjacob: on which level does the string indexing (and size etc.) work? unicode code points?
[14:19:53] apeiros: what string indexing?
[14:20:12] tenderlove: has joined #ruby
[14:20:19] mjacob: e.g. a[1] where a is a string
[14:20:20] apeiros: andy_: as far as I'm aware, every new ruby version since 2.2 has mostly improved performance.
[14:20:38] apeiros: mjacob: String#[] is a character based operation.
[14:21:04] mjacob: apeiros: sure, but what's a character?
[14:21:10] tenderlove: has joined #ruby
[14:21:34] conta: has joined #ruby
[14:21:34] apeiros: I'd refer you to the unicode definition of it
[14:21:49] RougeR: has joined #ruby
[14:21:50] RougeR: has joined #ruby
[14:22:22] tenderlove: has joined #ruby
[14:23:47] Beams: has joined #ruby
[14:24:08] Rapture: has joined #ruby
[14:25:41] bmurt: has joined #ruby
[14:32:46] andyl: has left #ruby: ("Leaving")
[14:33:37] alem0lars: has joined #ruby
[14:33:39] tenderlove: has joined #ruby
[14:33:53] TomyWork: has joined #ruby
[14:34:12] dviola: has joined #ruby
[14:35:43] kryptoz: has joined #ruby
[14:36:36] tdy: has joined #ruby
[14:37:35] griffindy: has joined #ruby
[14:39:23] synthroid: has joined #ruby
[14:41:45] conta: has joined #ruby
[14:42:34] white_lilies: has joined #ruby
[14:43:55] darix: mjacob: maybe use "".codeporints "".chars "".bytes
[14:43:59] darix: depending what you want
[14:44:10] GodFather: has joined #ruby
[14:44:13] Technato1: has joined #ruby
[14:45:52] zapata: has joined #ruby
[14:49:38] bkxd: has joined #ruby
[14:51:45] nowhere_man: has joined #ruby
[14:52:13] kryptoz: has joined #ruby
[14:52:29] amar_: has joined #ruby
[14:54:54] tenderlove: has joined #ruby
[14:57:24] Beams: has joined #ruby
[14:58:41] amar_: has joined #ruby
[15:00:20] Asher: has joined #ruby
[15:00:47] conta: has joined #ruby
[15:01:18] mjacob: darix: thank you, that's in general a good idea! however i still don't quite understand what the chars method does exactly...
[15:04:02] GodFather: has joined #ruby
[15:04:10] nowhereman_: has joined #ruby
[15:07:52] chouhoulis: has joined #ruby
[15:15:02] shinnya: has joined #ruby
[15:17:13] synthroid: has joined #ruby
[15:20:11] synthroid: has joined #ruby
[15:20:12] havenwood: don't forget!: "".grapheme_clusters
[15:20:55] havenwood: >> '🇫🇮'[0] # mjacob
[15:20:56] ruby[bot]: havenwood: # => "🇫" (https://eval.in/1034388)
[15:21:06] havenwood: >> '🇫🇮'.bytes
[15:21:07] ruby[bot]: havenwood: # => [240, 159, 135, 171, 240, 159, 135, 174] (https://eval.in/1034389)
[15:21:13] havenwood: >> '🇫🇮'.codepoints
[15:21:14] ruby[bot]: havenwood: # => [127467, 127470] (https://eval.in/1034390)
[15:21:35] havenwood: >> 127467.chr 'utf-8'
[15:21:35] ruby[bot]: havenwood: # => "🇫" (https://eval.in/1034391)
[15:22:12] havenwood: mjacob: TL;DR: codepoints
[15:22:45] havenwood: >> '🇫🇮'.chars
[15:22:46] ruby[bot]: havenwood: # => ["🇫", "🇮"] (https://eval.in/1034392)
[15:22:51] havenwood: Which is the same thing as chars.
[15:24:18] havenwood: >> '🇫🇮'.chars == '🇫🇮'.codepoints.map { |codepoint| codepoint.chr 'utf-8' }
[15:24:18] ruby[bot]: havenwood: # => true (https://eval.in/1034393)
[15:24:56] mjacob: it seems like it depends on the encoding of the string...
[15:26:02] apeiros: the encoding defines how bytes map to characters, yes.
[15:26:07] apeiros: (and vice versa)
[15:26:31] tcopeland: has joined #ruby
[15:27:23] alex``: has joined #ruby
[15:27:27] zleap: has joined #ruby
[15:30:19] MzrE: has joined #ruby
[15:31:39] mjacob: nevermind my last message
[15:32:57] mjacob: my actual question is: is there a way to have a string s where `s.chars.size != s.codepoints.size`?
[15:34:01] fluxAeon: has joined #ruby
[15:34:05] r29v: has joined #ruby
[15:34:56] Technato1: has joined #ruby
[15:36:57] nowhereman_: has joined #ruby
[15:38:00] jhack: has joined #ruby
[15:38:00] jhack: has joined #ruby
[15:38:19] quobo: has joined #ruby
[15:39:42] salasrod: has joined #ruby
[15:39:59] r29v: has joined #ruby
[15:41:40] r29v: has joined #ruby
[15:42:14] jottr: has joined #ruby
[15:42:32] za1b1tsu: has joined #ruby
[15:44:42] havenwood: mjacob: Those are both: s.size
[15:45:06] mjacob: havenwood: always?
[15:45:45] soniya29_: has joined #ruby
[15:45:45] soniya29: has joined #ruby
[15:47:02] noobineer: has joined #ruby
[15:47:56] dviola: has joined #ruby
[15:48:17] havenwood: https://github.com/ruby/ruby/blob/22444ae9b1a20e39b7278193f85e4d805bd1d54d/string.c#L1794-L1813
[15:48:31] gnufied: has joined #ruby
[15:48:48] havenwood: mjacob: yes
[15:49:08] havenwood: https://github.com/ruby/ruby/blob/22444ae9b1a20e39b7278193f85e4d805bd1d54d/string.c#L8406
[15:49:35] havenwood: https://github.com/ruby/ruby/blob/22444ae9b1a20e39b7278193f85e4d805bd1d54d/string.c#L8260
[15:50:16] GodFather: has joined #ruby
[15:50:33] havenwood: mjacob: codepoints are the ordinal of each character
[15:51:20] havenwood: mjacob: size counts characters
[15:51:21] troys: has joined #ruby
[15:51:40] tenderlove: has joined #ruby
[15:51:41] mjacob: indeed, the size should be the same
[15:52:59] mjacob: also, is `s.chars.map { |c| c.ord } == s.codepoints` always true? the code paths for this look a bit different
[15:58:51] amarks: has joined #ruby
[16:01:59] ptx0: has joined #ruby
[16:03:45] dorian: hey can anybody point to best practices for dealing with namespace collisions? specifically if you define module/class Foo::Bar and thus module Foo, but there is a class Foo hanging out somewhere else?
[16:04:11] havenwood: mjacob: i can't think of a case where the ordinals of the characters would differ from the codepoints. i have to relocate at the moment, but i'll follow the code later to double check.
[16:04:21] amar_: has joined #ruby
[16:04:24] dviola: has joined #ruby
[16:04:34] jcarl43: has joined #ruby
[16:04:40] havenwood: dorian: Matz has mentioned that namespace improvements are something he has in mind for the future.
[16:05:41] mjacob: havenwood: thank you!
[16:05:42] havenwood: dorian: There's no way to have a class and module of the same name though. You have to rename one of them.
[16:06:18] dorian: yeah i don't really care whether Foo is a module or class,
[16:06:31] dorian: i just don't want it to collide when i load my own module
[16:09:55] tolerablyjake: has joined #ruby
[16:12:40] za1b1tsu: has joined #ruby
[16:13:14] dorian: i just did something like unless Module.const_defined? 'Foo'; module Foo; end; end
[16:13:18] dorian: seems to work?
[16:17:17] alem0lars: has joined #ruby
[16:19:00] bkxd: has joined #ruby
[16:19:16] yokel: has joined #ruby
[16:24:43] Inline: has joined #ruby
[16:27:28] GodFather: has joined #ruby
[16:28:01] punnie: has joined #ruby
[16:29:07] tdy: has joined #ruby
[16:29:45] Demos[m]: if I have a class defined over multiple files can I tell yard which is the correct file to pull top-level docs from
[16:29:46] punnie: has left #ruby: ()
[16:30:22] Demos[m]: I can just not comment on the other files but that generates rubocop warnings
[16:31:26] Demos[m]: also how can I suppress rubocop warnings where I have an attr_accessor then later a method overriding either the getter or setter
[16:31:52] Demos[m]: if I just comment the getter and setter then yard will generate a new symbol in the docs, which isn't really what I want
[16:32:39] alem0lars_: has joined #ruby
[16:37:27] mtkd: has joined #ruby
[16:41:59] Mia: has joined #ruby
[16:42:00] Mia: has joined #ruby
[16:44:34] alem0lars__: has joined #ruby
[16:46:27] jottr: has joined #ruby
[16:47:22] soniya29: has joined #ruby
[16:47:22] soniya29_: has joined #ruby
[16:48:40] hakusaro: has joined #ruby
[16:48:47] graphene: has joined #ruby
[16:49:26] cheater: has joined #ruby
[16:49:26] kryptoz: has joined #ruby
[16:49:52] dbugger_: has joined #ruby
[16:50:13] kryptoz: has joined #ruby
[16:52:03] hakusaro: If you have an Array of Arrays, like dr = Array.new(3, Array.new(3, "f")) and you set dr[0][0] = "z", why does every 0th item become "z" and not just the item at [0] of the [0]th array?
[16:53:17] hakusaro: example: https://gist.github.com/hakusaro/c5eecf45c3b8abf3e8bf80d712f93c8c
[16:54:48] agent_white: has joined #ruby
[16:56:37] havenwood: hakusaro: Because your Array contains a single other Array, three times.
[16:56:52] GodFather: has joined #ruby
[16:56:59] havenwood: hakusaro: Compare with: Array.new(3) { Array.new(3, "f") }
[16:57:25] havenwood: hakusaro: ^ That is an Array that contains three different Arrays.
[16:57:56] havenwood: >> Array.new(3, Array.new(3, "f")).map(&:object_id).uniq
[16:57:58] ruby[bot]: havenwood: # => [544427400] (https://eval.in/1034421)
[16:58:08] alem0lars: has joined #ruby
[16:58:12] havenwood: >> Array.new(3) { Array.new(3, "f") }.uniq
[16:58:13] ruby[bot]: havenwood: # => [["f", "f", "f"]] (https://eval.in/1034422)
[16:58:29] havenwood: >> Array.new(3) { Array.new(3, "f") }.map(&:object_id).uniq
[16:58:30] ruby[bot]: havenwood: # => [552619260, 552619240, 552619220] (https://eval.in/1034423)
[16:59:37] Guest84006: has joined #ruby
[17:05:00] Asher: has joined #ruby
[17:07:29] Eiam: has joined #ruby
[17:08:34] konsolebox: has joined #ruby
[17:09:52] Guest84006: has joined #ruby
[17:19:47] Guest84006: has joined #ruby
[17:24:42] zxq2: has joined #ruby
[17:26:21] zxq2: when using inheritance if i want to simply add code to the constructor method of the superclass in the derived class without completely replacing it, can i do this?
[17:27:23] zxq2: if that's not clear: i want the derived class to inherit the superclass's constructor and to modify in the derived class, instead of rewriting the whole thing
[17:28:13] samosaphile: havenwood: i liked that spidr crawler gem you linked to yesterday .. the only problem i'm having with it is, it seems to do a breadth first search (meaning scan all folders in higher level directories) before moving to lower levels. Need to somehow make it depth first (i.e. crawl deep first then move on) but not too sure how
[17:28:15] samosaphile: https://repl.it/repls/ModernAwkwardConfigfiles
[17:29:56] Guest84006: has joined #ruby
[17:30:29] apeiros_: has joined #ruby
[17:33:19] ellcs1: has joined #ruby
[17:36:44] ule: has joined #ruby
[17:38:47] sameerynho: has joined #ruby
[17:39:20] eckhardt_: has joined #ruby
[17:40:11] Guest84006: has joined #ruby
[17:44:23] nowhere_man: has joined #ruby
[17:50:29] Guest84006: has joined #ruby
[17:53:33] havenwood: samosaphile: You need to crawl it depth first, or just do whatever you're doing depth first?
[17:54:00] ellcs1: has joined #ruby
[17:54:26] zxq2: duh super
[17:54:30] havenwood: samosaphile: That doesn't seem to me like something that'd be easy to add to spidr.
[17:54:30] rawste: has joined #ruby
[17:54:46] havenwood: zxq2: Aye, super is handy!
[17:55:44] havenwood: zxq2: Just saw your question, but here are some interesting things about super args: https://gist.github.com/havenwood/3ca22b3e03a16509708002d6c3c13562
[17:57:52] Lytol: has joined #ruby
[18:00:36] Guest84006: has joined #ruby
[18:03:37] mynameisdebian: has joined #ruby
[18:04:23] samosaphile: havenwood: not sure what the difference is or if i understand you question correctly .. basically that site, the directory goes like: Day folders -> Name folders -> Contents (.rep file, .txt file, .jpg files) .. but I only need to read .txt files (ignore everything else)
[18:05:35] samosaphile: havenwood: right now, it tries to download (or print I mean) all like Day folders first, then all name folders first ... before getting to actual contents (.txt files)
[18:06:08] samosaphile: maybe you're right not easy to add..
[18:10:49] Guest84006: has joined #ruby
[18:12:03] mikecmpbll: has joined #ruby
[18:12:08] mitescugd: has joined #ruby
[18:15:47] pauliesaint: has joined #ruby
[18:18:07] Rapture: has joined #ruby
[18:18:15] tdy: has joined #ruby
[18:21:07] Guest84006: has joined #ruby
[18:28:01] GodFather: has joined #ruby
[18:29:13] pr0ton: has joined #ruby
[18:31:19] Guest84006: has joined #ruby
[18:33:12] mtkd: has joined #ruby
[18:37:51] tdy: has joined #ruby
[18:38:57] moei: has joined #ruby
[18:39:19] zachk: has joined #ruby
[18:39:20] zachk: has joined #ruby
[18:40:51] claudiuinberlin: has joined #ruby
[18:41:13] solocshaw: has joined #ruby
[18:41:32] Guest84006: has joined #ruby
[18:43:28] pr0ton: has left #ruby: ()
[18:44:04] solocshaw1: has joined #ruby
[18:44:21] IanMalcolm: has joined #ruby
[18:44:28] IanMalcolm: has joined #ruby
[18:47:51] alem0lars: has joined #ruby
[18:51:48] Guest84006: has joined #ruby
[18:53:20] StarSeed0000: has joined #ruby
[18:59:54] za1b1tsu: has joined #ruby
[19:02:02] Guest84006: has joined #ruby
[19:05:37] ellcs: has joined #ruby
[19:12:20] Guest84006: has joined #ruby
[19:19:55] mikecmpbll: has joined #ruby
[19:22:29] Guest84006: has joined #ruby
[19:22:45] tenderlove: has joined #ruby
[19:26:53] eckhardt_: has joined #ruby
[19:32:00] desperek: has joined #ruby
[19:32:46] Guest84006: has joined #ruby
[19:35:59] ldnunes: has joined #ruby
[19:38:30] mikecmpbll: has joined #ruby
[19:42:57] Guest84006: has joined #ruby
[19:44:40] dimino: has joined #ruby
[19:45:35] dimino: hey I'm not super familiar with ruby, but I want to run some tests for this project but I'm not sure how to get the dependencies working -- I've run "bundle" and then tried "rake test" but it's not finding the deps
[19:45:36] dimino: https://github.com/jcustenborder/puppet-confluent
[19:46:33] mtkd: has joined #ruby
[19:46:37] havenwood: dimino: try: bundle exec rake
[19:46:56] havenwood: dimino: (There's an rspec task that's default.)
[19:47:08] havenwood: There's no test task.
[19:47:43] dimino: that worked -- thanks
[19:47:52] dimino: yeah this is a lot of new stuff, I need to read more heh
[19:48:48] akaiiro: has joined #ruby
[19:52:55] CJKinni: has joined #ruby
[19:53:09] Guest84006: has joined #ruby
[19:58:13] beowuff: has joined #ruby
[20:03:29] Guest84006: has joined #ruby
[20:05:52] pauliesaint__: has joined #ruby
[20:13:40] Guest84006: has joined #ruby
[20:14:24] claudiuinberlin: has joined #ruby
[20:21:23] havenwood: has joined #ruby
[20:21:23] havenwood: has joined #ruby
[20:21:30] beefjoe: has joined #ruby
[20:23:53] Guest84006: has joined #ruby
[20:23:54] anisha: has joined #ruby
[20:28:48] Mike11: has joined #ruby
[20:29:35] \void: has joined #ruby
[20:31:51] tolerablyjake: has joined #ruby
[20:34:05] Guest84006: has joined #ruby
[20:38:28] havenwood: has joined #ruby
[20:38:28] havenwood: has joined #ruby
[20:39:06] quobo: has joined #ruby
[20:40:15] DarthGandalf: has joined #ruby
[20:43:20] beowuff: has joined #ruby
[20:44:17] Guest84006: has joined #ruby
[20:44:41] Zaab1t: has joined #ruby
[20:48:09] jenrzzz: has joined #ruby
[20:48:10] jenrzzz: has joined #ruby
[20:51:54] clemens3: has joined #ruby
[20:54:23] alfiemax: has joined #ruby
[20:54:34] Guest84006: has joined #ruby
[20:57:13] GodFather: has joined #ruby
[20:57:56] manakanapa: has joined #ruby
[21:01:19] jenrzzz_: has joined #ruby
[21:01:23] wald0: has joined #ruby
[21:01:53] Guest84006: has joined #ruby
[21:03:50] DarthGandalf: has joined #ruby
[21:05:14] ur5us: has joined #ruby
[21:06:30] za1b1tsu: has joined #ruby
[21:10:04] manakanapa: has joined #ruby
[21:12:04] Guest84006: has joined #ruby
[21:16:39] cagomez: has joined #ruby
[21:18:29] DarthGandalf: has joined #ruby
[21:22:14] Guest84006: has joined #ruby
[21:30:28] za1b1tsu: has joined #ruby
[21:32:11] shinnya: has joined #ruby
[21:32:33] Guest84006: has joined #ruby
[21:42:42] knight33: has joined #ruby
[21:42:47] Guest84006: has joined #ruby
[21:49:30] tolerablyjake: has joined #ruby
[21:50:05] ohcibi: has joined #ruby
[21:53:03] Guest84006: has joined #ruby
[22:00:55] ruby[bot]: has joined #ruby
[22:00:55] ChanServ: +o ruby[bot]
[22:02:31] jenrzzz: has joined #ruby
[22:02:32] jenrzzz: has joined #ruby
[22:03:15] Guest84006: has joined #ruby
[22:06:27] zenspider: havenwood: why do/did you recommend spidr? I'm checking it out out of curiosity and it seems slow as fuck to me. like REALLY slow.
[22:07:17] zenspider: rough guess... proportional or worse to number of links on a page
[22:07:45] ivanskie: has joined #ruby
[22:07:46] zenspider: it hits my sitemap page and literally sits there for ~8 seconds
[22:09:07] zenspider: I'm wondering if I'm missing something here... I'm using a snippet from the readme to print broken links
[22:09:45] zenspider: I think it is parsing an audio file now. :P
[22:10:17] havenwood: zenspider: I point people to it when I get the impression they're trying to create a crawler rather than use one, since it's simpler than something fancy and multithreaded like anemone.
[22:11:08] havenwood: Also, fewer tentacles.
[22:12:27] rwb: has joined #ruby
[22:13:28] Guest84006: has joined #ruby
[22:13:32] GodFather: has joined #ruby
[22:14:08] zenspider: I've been using a modified version of the spider that ships with mechanize... It's been drifting tho, so I need to bring it into my project properly and ship with it.
[22:14:17] zenspider: but it was MUUUCH faster
[22:14:45] alfiemax: has joined #ruby
[22:17:31] RougeR: has joined #ruby
[22:17:31] RougeR: has joined #ruby
[22:23:38] traumschule: has joined #ruby
[22:23:47] Guest84006: has joined #ruby
[22:24:09] traumschule: ACTION has issues to understand /var/lib/gems/2.5.0/gems/tilt-2.0.8/lib/tilt/haml.rb:77: warning: Haml::Engine#precompiled_method_return_value at
[22:24:10] traumschule: /usr/lib/ruby/2.5.0/forwardable.rb:157 forwarding to private method Haml::Compiler#precompiled_method_return_val
[22:24:14] gr33n7007h: has joined #ruby
[22:25:56] traumschule: it's raised by amber server. does it mean that precompiled_method_return_val was privatized?
[22:26:35] zenspider: IDGI... I switched back to the mechanize spider and it is SO fast in comparison
[22:26:44] zenspider: they both use nokogiri tho... so I'm confused
[22:26:50] ByronJohnson: has joined #ruby
[22:27:09] zenspider: traumschule: that's not raised. that's warned.
[22:27:34] traumschule: true, but a bit too often.
[22:28:30] traumschule: i'd like to submit a patch to tilt. what do you suggest?
[22:29:28] zenspider: looking at the code... this seems to be a straight call inside an instance eval but I'm not willing to chase this further. Should be straight forward to fix
[22:29:40] zenspider: yeah. I'd patch it up and send them a PR
[22:29:49] zenspider: maybe you're running with -w and they usually don't?
[22:30:37] postmodern: has joined #ruby
[22:31:20] traumschule: ACTION needs to check what amber does
[22:33:42] knight33: has joined #ruby
[22:33:56] Guest84006: has joined #ruby
[22:37:46] salasrod: has joined #ruby
[22:42:14] c0ncealed2: has joined #ruby
[22:44:08] Guest84006: has joined #ruby
[22:44:58] sticaz: has joined #ruby
[22:47:11] traumschule: nice, updating haml did it (4.0.7->5.0.4)
[22:47:18] sticaz: has joined #ruby
[22:52:22] crankharder: has joined #ruby
[22:54:26] Guest84006: has joined #ruby
[23:00:13] za1b1tsu: has joined #ruby
[23:03:04] alfiemax: has joined #ruby
[23:04:37] Guest84006: has joined #ruby
[23:11:24] nowhere_man: has joined #ruby
[23:12:01] jenrzzz: has joined #ruby
[23:12:01] jenrzzz: has joined #ruby
[23:14:52] Guest84006: has joined #ruby
[23:18:35] DarthGandalf: has joined #ruby
[23:19:04] pr0ton: has joined #ruby
[23:23:48] bak1an: has joined #ruby
[23:25:07] Guest84006: has joined #ruby
[23:31:56] DarthGandalf: has joined #ruby
[23:35:18] Guest84006: has joined #ruby
[23:39:29] mynameisdebian: has joined #ruby
[23:41:07] ur5us: has joined #ruby
[23:45:32] Guest84006: has joined #ruby
[23:46:54] pen: has joined #ruby
[23:47:36] desperek: has joined #ruby
[23:51:47] AKPWD: has joined #ruby
[23:55:44] Guest84006: has joined #ruby
[23:56:15] Some-body_: has joined #ruby
[23:57:03] connor_goodwolf: has joined #ruby