« Back to channel list

#ruby - 08 August 2017

« Back 1 day Forward 1 day »
[00:00:06] ramfjord: has joined #ruby
[00:05:51] Cohedrin_: has joined #ruby
[00:06:06] ramfjord: has joined #ruby
[00:12:21] ramfjord: has joined #ruby
[00:13:38] charliesome: has joined #ruby
[00:15:54] jphase: has joined #ruby
[00:16:02] chouhoulis: has joined #ruby
[00:19:47] ramfjord: has joined #ruby
[00:23:09] spheric: has joined #ruby
[00:27:52] jphase: has joined #ruby
[00:28:18] brent__: has joined #ruby
[00:31:31] jenrzzz: has joined #ruby
[00:31:32] jenrzzz: has joined #ruby
[00:35:23] jphase: has joined #ruby
[00:37:54] __Yiota: has joined #ruby
[00:38:22] charliesome: has joined #ruby
[00:38:37] cadillac_: has joined #ruby
[00:39:59] planigan: has joined #ruby
[00:42:53] jphase: has joined #ruby
[00:43:38] hutch34: has joined #ruby
[00:45:19] mtkd: has joined #ruby
[00:45:42] Moosashi_: has joined #ruby
[00:46:08] guacamole: has joined #ruby
[00:49:12] ascarter: has joined #ruby
[00:50:13] skweek: has joined #ruby
[00:50:19] dlitvak: has joined #ruby
[00:50:40] blindMoe: has joined #ruby
[00:50:58] bronson: has joined #ruby
[00:51:26] arkinor: has joined #ruby
[00:52:34] dviola: has joined #ruby
[00:56:03] jphase: has joined #ruby
[00:58:46] lexruee: has joined #ruby
[01:01:05] jackjackdripper: has joined #ruby
[01:01:49] hutch34: has joined #ruby
[01:04:12] Sambsquanch: has joined #ruby
[01:11:32] DoubleMalt: has joined #ruby
[01:15:46] charliesome: has joined #ruby
[01:22:52] astrobunny: has joined #ruby
[01:25:58] jphase: has joined #ruby
[01:27:25] gizmore: has joined #ruby
[01:31:15] t-recx: has joined #ruby
[01:31:35] bronson: has joined #ruby
[01:42:54] shiranuidong: has joined #ruby
[01:43:01] ncthom91: has joined #ruby
[01:44:52] skweek: has joined #ruby
[01:45:20] DTZUZO_: has joined #ruby
[01:47:35] duderonomy: has joined #ruby
[01:49:12] ecuanaso: has joined #ruby
[01:55:41] AxelAlex: has joined #ruby
[01:56:16] ascarter: has joined #ruby
[01:57:48] cdg: has joined #ruby
[01:59:17] hahuang65: has joined #ruby
[02:01:19] mjolnird: has joined #ruby
[02:01:47] mjolnird: has joined #ruby
[02:03:39] shterrett: has joined #ruby
[02:05:36] K3rber0s: has joined #ruby
[02:06:30] cdg: has joined #ruby
[02:08:38] Alina-malina: has joined #ruby
[02:09:32] mistergibson: has joined #ruby
[02:10:09] cdg: has joined #ruby
[02:15:46] lexruee: has joined #ruby
[02:17:11] APK: has joined #ruby
[02:18:33] jtd: has joined #ruby
[02:19:27] chrisarcand: has joined #ruby
[02:19:32] abort: has joined #ruby
[02:19:46] matti: has joined #ruby
[02:19:46] matti: has joined #ruby
[02:19:49] freeze: has joined #ruby
[02:20:06] Raboo: has joined #ruby
[02:20:08] bhaak: has joined #ruby
[02:20:12] Bish: has joined #ruby
[02:20:51] m27frogy: has joined #ruby
[02:23:04] Didac: has joined #ruby
[02:23:27] duracrisis: has joined #ruby
[02:25:08] KrzaQ: has joined #ruby
[02:25:56] NightMonkey: has joined #ruby
[02:25:58] spider-mario: has joined #ruby
[02:25:59] nofxx: has joined #ruby
[02:28:17] __Yiota: has joined #ruby
[02:29:48] Alina-malina: has joined #ruby
[02:32:11] mwlang: has joined #ruby
[02:34:58] charliesome_: has joined #ruby
[02:38:30] Alina-malina: has joined #ruby
[02:44:40] nostalgiccloud: has joined #ruby
[02:44:48] nostalgiccloud: How can I make ruby faster
[02:47:00] Alina-malina: has joined #ruby
[02:48:51] Nilium: Are you done trying to troll the channel yet?
[02:51:32] Moosashi: has joined #ruby
[02:51:59] nostalgiccloud: Nilium, It's not trolling to acknowledge ruby isn't the fastest language around nor is it the friendliest
[02:52:18] Nilium: I'm taking that as a no.
[02:52:22] nostalgiccloud: If you're going to call everything you dislike / disagree with trolling then you need to sit down and re-assess your thought process
[02:52:30] nostalgiccloud: Right now I'm trying to setup Jekyll
[02:53:00] nostalgiccloud: I'm coming from the world of PHP and Java, so everything about ruby is different. Things like the RVM
[02:54:44] Nilium: Do you have a question that isn't pointless baiting?
[02:55:19] nostalgiccloud: Well, I asked how I can make ruby faster but that's just "trolling" and "pointless baiting" according to you
[02:55:32] Nilium: It is. Your code is as fast as you make it.
[02:55:33] nostalgiccloud: So why should I ask you for help if you're going to attack everything you don't like / disagree with?
[02:55:48] nostalgiccloud: Ruby is as fast as it's interpreter.
[02:56:12] nostalgiccloud: I can optimize my code all day, if the interpreter isn't fast my code wont be fast.
[02:56:13] Nilium: There are multiple implementations of Ruby, so yes, that is true.
[02:56:40] nostalgiccloud: So then it's not pointless baiting / trolling but a real question / concern around the performance of the stock interpreter.
[02:56:52] nofxx: nostalgiccloud, run it in java, join #java, ask to make it faster
[02:56:58] nostalgiccloud: I'm still learning to work with Ruby right now and from what I can find, the RVM is key.
[02:57:00] Nilium: I have serious doubts that you've hit the limits of MRI.
[02:57:13] nostalgiccloud: nofxx, #java is possibly the most toxic channel on all of freenode.
[02:57:16] nofxx: also ask if they can use less than 5gb of ram to run 2 prints
[02:57:30] nofxx: nostalgiccloud, no, ruby in java.. jruby
[02:57:44] nostalgiccloud: nofxx, That actually isn't a bad idea
[02:57:52] nostalgiccloud: Java the language isn't the issue, the JVM is
[02:58:32] nostalgiccloud: But this is going off topic, so to work with ruby I should use the RVM
[02:58:44] jenrzzz: has joined #ruby
[02:58:45] Nilium: Do you mean MRI?
[02:58:46] nofxx: nostalgiccloud, hehe, I think the exact opposite... but yeah, I was joking with the slowness thing, but jruby is pretty solid
[02:58:56] nostalgiccloud: Nilium, RVM to manage the interpreters
[02:59:07] nofxx: you don't need rvm
[02:59:16] Nilium: I'm not sure how rvm fits into this.
[02:59:25] Alina-malina: has joined #ruby
[02:59:27] Nilium: ACTION wanders off to deal with pagerduty
[02:59:40] mim1k: has joined #ruby
[03:00:00] nofxx: this rvm thing plagued ruby... everything just works, questions here were about ruby... last years, all questions are about rvm
[03:00:09] cadillac_: has joined #ruby
[03:00:12] nostalgiccloud: https://stackoverflow.com/questions/8146249/jekyll-command-not-found
[03:01:43] nofxx: nostalgiccloud, that has nothing to do with ruby, you need to understand how your bash $PATH works
[03:03:05] ascarter: has joined #ruby
[03:03:25] nofxx: nostalgiccloud, and just add gem home to it
[03:04:04] nofxx: ok, has to do with ruby hehe.. but would be the same for every other lang that has package management
[03:04:55] nostalgiccloud: nofxx, I understand $PATH but I'm so used to things already being in their when working with global packages :S!
[03:06:22] Alina-malina: has joined #ruby
[03:06:26] nofxx: nostalgiccloud, you don't fool me... java has a lot of darn $PATh gotchas
[03:06:36] nofxx: not to mention android sdk thing
[03:06:46] nostalgiccloud: don't drag Android SDK into this
[03:06:50] nostalgiccloud: none of us like it.
[03:07:32] ramfjord: has joined #ruby
[03:07:38] nofxx: ok, just java... got some npm needs in $PATH too
[03:07:54] nofxx: hehe still have a path to maglev...jez
[03:08:50] nofxx: nostalgiccloud, you can hardcode ~/.gem/ruby/[version]/bin
[03:09:09] nofxx: I use this, dunno if there's a better option :
[03:09:12] nofxx: export GEM_HOME=$(ruby -rubygems -e "puts Gem.user_dir")
[03:09:52] nofxx: but you need to add /bin to that ^
[03:10:01] nofxx: export PATH="$GEM_HOME/bin:..........
[03:11:16] uZiel: has joined #ruby
[03:14:20] guardianx: has joined #ruby
[03:14:21] anaeem1: has joined #ruby
[03:18:49] AxelAlex: has joined #ruby
[03:26:42] Alina-malina: has joined #ruby
[03:26:46] charliesome: has joined #ruby
[03:27:15] Vingador: has joined #ruby
[03:28:05] ramfjord: has joined #ruby
[03:29:15] nostalgiccloud: nofxx, not gonna lie I gave up setting up Ruby and RVM and Jekyll
[03:29:20] nostalgiccloud: Been playing with Pelican
[03:29:28] nostalgiccloud: The syntax is similar to reddit
[03:31:57] nostalgiccloud: ruby is neat though
[03:32:13] nostalgiccloud: I did start learning it years ago but never followed through in favor of PHP
[03:35:05] Radar: Well there's your problem
[03:35:25] herbmillerjr: has joined #ruby
[03:37:54] ecuanaso: has joined #ruby
[03:38:11] Radar: RVM: https://media.licdn.com/mpr/mpr/AAEAAQAAAAAAAAXuAAAAJGIyMmRjYWNhLWM3N2QtNDQyZS04MmQyLTUwMDEyOTgxMmJlZg.jpg
[03:38:32] RahulT: has joined #ruby
[03:41:30] Cohedrin_: has joined #ruby
[03:41:49] eckhardt: has joined #ruby
[03:43:41] gix: has joined #ruby
[03:48:39] ramfjord: has joined #ruby
[03:52:49] jenrzzz: has joined #ruby
[03:54:21] anaeem1__: has joined #ruby
[03:54:38] Bhootrk_: has joined #ruby
[03:56:19] nofxx: nostalgiccloud, next time, forget rvm =D
[03:57:38] Joufflu: has joined #ruby
[04:00:04] hahuang65: has joined #ruby
[04:02:18] sneakerhax: has joined #ruby
[04:03:08] uZiel: has joined #ruby
[04:03:33] beauby: has joined #ruby
[04:04:46] bronson: has joined #ruby
[04:07:57] ascarter: has joined #ruby
[04:09:11] ramfjord: has joined #ruby
[04:19:32] rgiscard: has joined #ruby
[04:23:36] Moosashi: has joined #ruby
[04:24:54] ecuanaso: has joined #ruby
[04:26:18] hahuang65: has joined #ruby
[04:27:39] digitalnomad: has joined #ruby
[04:27:49] jenrzzz: has joined #ruby
[04:27:49] jenrzzz: has joined #ruby
[04:29:44] ramfjord: has joined #ruby
[04:31:59] digitalnomad: has left #ruby: ()
[04:34:36] mim1k: has joined #ruby
[04:35:55] Alina-malina: has joined #ruby
[04:37:13] charliesome_: has joined #ruby
[04:41:42] SeepingN: has joined #ruby
[04:42:34] RahulT: has joined #ruby
[04:43:43] rgiscard: has joined #ruby
[04:50:18] ramfjord: has joined #ruby
[04:54:13] ecuanaso: has joined #ruby
[04:56:22] dennisvennink: has joined #ruby
[05:01:20] Moosashi: has joined #ruby
[05:14:07] patrontechnosoft: has joined #ruby
[05:15:47] ecuanaso: has joined #ruby
[05:16:08] cjk101010: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[05:16:59] ascarter: has joined #ruby
[05:18:11] Bock: has joined #ruby
[05:25:02] anisha: has joined #ruby
[05:26:59] _sfiguser: has joined #ruby
[05:31:06] blindMoe: has joined #ruby
[05:35:52] beauby: has joined #ruby
[05:37:34] Moosashi: has joined #ruby
[05:37:37] eckhardt: has joined #ruby
[05:43:16] rahul_bajaj: has joined #ruby
[05:44:32] anaeem1_: has joined #ruby
[05:46:58] Jameser: has joined #ruby
[05:49:37] ramfjord: has joined #ruby
[05:51:53] ecuanaso: has joined #ruby
[05:52:08] ShekharReddy: has joined #ruby
[05:53:59] uZiel: has joined #ruby
[05:55:01] Asher: has joined #ruby
[05:55:32] RahulT: has joined #ruby
[06:05:08] bronson: has joined #ruby
[06:05:14] ramfjord: has joined #ruby
[06:12:35] steveAT: has joined #ruby
[06:15:24] dionysus69: has joined #ruby
[06:20:34] beauby: has joined #ruby
[06:22:02] ascarter: has joined #ruby
[06:23:48] KeyJoo: has joined #ruby
[06:25:40] ramfjord: has joined #ruby
[06:27:07] hahuang65: has joined #ruby
[06:28:15] dennisvennink: has joined #ruby
[06:30:30] brent__: has joined #ruby
[06:32:52] ltem: has joined #ruby
[06:32:55] shiranuidong: has joined #ruby
[06:33:08] ur5us: has joined #ruby
[06:34:10] charliesome: has joined #ruby
[06:35:00] Bhootrk_: has joined #ruby
[06:40:31] conta: has joined #ruby
[06:41:18] ramfjord: has joined #ruby
[06:43:13] nhhc: has joined #ruby
[06:43:35] high_fiver: has joined #ruby
[06:45:10] Joufflu: has joined #ruby
[06:48:38] jackjackdripper1: has joined #ruby
[06:51:04] xco: has joined #ruby
[06:51:13] Silthias1: has joined #ruby
[06:51:53] digitalnomad: has joined #ruby
[06:53:33] Jameser: has joined #ruby
[06:54:38] digitalnomad: has joined #ruby
[06:56:32] [dmp]: has joined #ruby
[06:57:01] tAn: has joined #ruby
[06:57:02] anaeem1: has joined #ruby
[06:57:23] djbkd: has joined #ruby
[06:59:25] rabajaj: has joined #ruby
[07:01:10] Joufflu: has joined #ruby
[07:05:44] anisha: has joined #ruby
[07:07:09] anaeem1_: has joined #ruby
[07:19:04] anas: has joined #ruby
[07:23:21] mark_66: has joined #ruby
[07:25:28] charliesome: has joined #ruby
[07:27:50] hahuang65: has joined #ruby
[07:29:03] ascarter: has joined #ruby
[07:34:08] ramfjord: has joined #ruby
[07:34:19] burgestrand: has joined #ruby
[07:36:26] howdoi: has joined #ruby
[07:42:47] Silthias: has joined #ruby
[07:53:36] digitalnomad: has joined #ruby
[07:53:49] anaeem1__: has joined #ruby
[07:55:06] X-tonic: has joined #ruby
[07:57:41] arkinor: has joined #ruby
[08:05:54] bronson: has joined #ruby
[08:10:09] ramfjord: has joined #ruby
[08:12:09] jaruga: has joined #ruby
[08:12:54] leandrobighetti: has joined #ruby
[08:24:38] antgel: has joined #ruby
[08:25:05] nofxxx: has joined #ruby
[08:27:02] nofxx: has joined #ruby
[08:27:32] Bhootrk_: has joined #ruby
[08:28:28] sysvalve: has joined #ruby
[08:30:27] Jameser: has joined #ruby
[08:30:42] Tharbakim: has joined #ruby
[08:31:07] Tharbakim: has joined #ruby
[08:34:07] workmad3: has joined #ruby
[08:36:21] ascarter: has joined #ruby
[08:37:32] arkinor: has joined #ruby
[08:39:38] aupadhye: has joined #ruby
[08:39:53] jenrzzz: has joined #ruby
[08:39:53] jenrzzz: has joined #ruby
[08:45:14] Beams: has joined #ruby
[08:46:13] ramfjord: has joined #ruby
[08:48:47] tvw: has joined #ruby
[08:49:40] Tempesta: has joined #ruby
[08:57:58] _sfiguser: has joined #ruby
[08:59:37] rgtk: has joined #ruby
[09:07:07] bronson: has joined #ruby
[09:10:28] vladline: has joined #ruby
[09:16:00] bigkevmcd: has joined #ruby
[09:16:50] Sylario: has joined #ruby
[09:17:29] arkinor: has joined #ruby
[09:22:07] blindMoe: has joined #ruby
[09:22:14] ramfjord: has joined #ruby
[09:23:07] arkinor: has joined #ruby
[09:23:45] Paraxial: has joined #ruby
[09:25:26] pandaant: has joined #ruby
[09:27:46] jamesaxl: has joined #ruby
[09:29:28] hahuang65: has joined #ruby
[09:30:13] Paraxial: has joined #ruby
[09:32:40] Serpent7776: has joined #ruby
[09:32:50] Paraxial: has joined #ruby
[09:35:18] apparition: has joined #ruby
[09:37:49] ramfjord: has joined #ruby
[09:41:38] beauby: has joined #ruby
[09:41:54] ascarter: has joined #ruby
[09:42:42] znz_jp: has joined #ruby
[09:46:52] Beams: has joined #ruby
[09:48:24] jinie_: has joined #ruby
[09:53:54] marr: has joined #ruby
[09:55:11] Paraxial: has joined #ruby
[09:58:14] ramfjord: has joined #ruby
[09:58:21] aufi: has joined #ruby
[10:00:59] konsolebox: is there another native method to converting string to hex besides unpack('H*')?
[10:01:24] dminuoso: What does "converting string to hex" exactly mean?
[10:02:14] Paraxial: has joined #ruby
[10:02:53] konsolebox: "//" -> "2f2f"
[10:04:39] dminuoso: konsolebox: unpack is the shortest way
[10:04:53] Paraxial: has joined #ruby
[10:04:58] dminuoso: konsolebox: You could also use String#codepoints and Kernel#sprintf if you wanted fine control
[10:06:06] ur5us: has joined #ruby
[10:07:32] konsolebox: dminuoso: yes, but i'm looking for an internal method that any implementation of a "ruby" method may expose
[10:07:43] konsolebox: digest.c has hexencode_str_new, but it's static.
[10:07:53] ch3: has joined #ruby
[10:08:04] bronson: has joined #ruby
[10:08:23] konsolebox: now it leads me to asking, what exactly are the parts of ruby that are "public domain"?
[10:08:46] konsolebox: digest.c is copyrighted by Yukihiro Matsumoto and Akinori MUSHA
[10:09:51] konsolebox: reading LEGAL i guess there's just a few, and digest.c doesn't look like one of them
[10:11:46] ahrs: has joined #ruby
[10:12:00] mim1k: has joined #ruby
[10:14:58] Paraxial: has joined #ruby
[10:16:47] zenspider_: has joined #ruby
[10:16:55] bmn: has joined #ruby
[10:17:32] unsymbol_: has joined #ruby
[10:18:00] cydrobolt: has joined #ruby
[10:18:01] willymox: has joined #ruby
[10:18:12] GorillaApe: This code on *bsd and osx consumes memory without limit.. Left it for one day and got 250mb + kernel panik. On ubuntu it seems that it stops at 18mb.
[10:18:14] GorillaApe: https://pastebin.com/mJ2vB7Sp
[10:18:16] ruby[bot]: GorillaApe: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/e567ea5e71202132963dc83409137de5
[10:18:16] ruby[bot]: GorillaApe: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[10:18:23] soulcutter: has joined #ruby
[10:18:30] brucebag: has joined #ruby
[10:18:32] burgestrand: has joined #ruby
[10:18:37] woodruffw: has joined #ruby
[10:18:37] woodruffw: has joined #ruby
[10:18:39] mclee: has joined #ruby
[10:18:50] Raboo: has joined #ruby
[10:19:10] brucebag: has joined #ruby
[10:19:23] CustosLimen: has joined #ruby
[10:19:29] careta: has joined #ruby
[10:19:45] bodie_: has joined #ruby
[10:19:51] DTZUZO_: has joined #ruby
[10:19:57] careta: how can I simulate an assembly instruction that adds two 64 bit numbers?
[10:20:10] careta: I need to add them and ignore any carry
[10:20:37] careta: so basically add them and cut off the result to 64 bit
[10:20:43] careta: which might mean an overflow
[10:24:27] careta: nevermind, found it https://stackoverflow.com/questions/7250216/emulating-int64-overflows-in-ruby
[10:25:00] rgtk: has joined #ruby
[10:30:49] GodFather: has joined #ruby
[10:31:28] __Yiota: has joined #ruby
[10:34:14] BSaboia: has joined #ruby
[10:34:15] karnak: has joined #ruby
[10:34:17] ramfjord: has joined #ruby
[10:36:00] ur5us: has joined #ruby
[10:36:56] xall: has joined #ruby
[10:46:48] ur5us: has joined #ruby
[10:46:50] brent__: has joined #ruby
[10:46:59] ascarter: has joined #ruby
[10:56:25] antgel: has joined #ruby
[10:57:29] InfinityFye: has joined #ruby
[10:57:46] Papierko-: has joined #ruby
[10:58:18] dminuoso: careta: That is called modular addition by the way.
[10:58:33] dminuoso: I still hate that people call it overflow, because a register cant overflow.
[10:59:52] dminuoso: And the post just uses the fact that a + b (mod n) is the same as (a + b) (mod n)
[11:00:28] dminuoso: careta: For sufficiently large numbers that is extremely inefficient by the way.
[11:05:00] fmartingr: has joined #ruby
[11:08:48] bronson: has joined #ruby
[11:10:19] ramfjord: has joined #ruby
[11:20:56] careta: dminuoso, I'm emulating functionality, so efficiency is not a problem
[11:21:19] careta: I found that the best way (in C) is to add them as separate 32 bit numbers and then just add the carry
[11:21:57] careta: although to be honest I don't really grasp how the carry works very well, need to read up on it
[11:22:19] dminuoso: "add the carry" ?
[11:23:00] herwin: I think the best way in C is to add them as 64-bit integers
[11:25:55] ramfjord: has joined #ruby
[11:30:19] hahuang65: has joined #ruby
[11:41:29] ldnunes: has joined #ruby
[11:46:18] ramfjord: has joined #ruby
[11:48:41] anaeem1_: has joined #ruby
[11:50:10] mark_66: has joined #ruby
[11:52:48] synthroid: has joined #ruby
[11:53:27] ascarter: has joined #ruby
[11:59:41] synthroid: has joined #ruby
[12:00:31] sleepee: has joined #ruby
[12:06:18] sepp2k: has joined #ruby
[12:07:26] evie_hammond: has joined #ruby
[12:09:26] xall: has joined #ruby
[12:09:31] spheric: has joined #ruby
[12:09:35] mark_66: has joined #ruby
[12:09:43] bronson: has joined #ruby
[12:12:25] burgestrand: has joined #ruby
[12:12:32] mim1k: has joined #ruby
[12:13:59] quobo: has joined #ruby
[12:17:09] arkinor: has joined #ruby
[12:22:17] ramfjord: has joined #ruby
[12:30:38] uZiel: has joined #ruby
[12:35:12] Jameser: has joined #ruby
[12:37:58] tryfan: has left #ruby: ()
[12:39:11] konsolebox: has joined #ruby
[12:41:08] t-recx: has joined #ruby
[12:41:56] aufi: has joined #ruby
[12:42:13] cadillac_: has joined #ruby
[12:47:15] anuxivm: has joined #ruby
[12:48:09] anuxivm: has left #ruby: ()
[12:49:46] Didac: has joined #ruby
[12:53:38] EBANX: has joined #ruby
[12:55:32] ephemera_: has joined #ruby
[12:58:23] ramfjord: has joined #ruby
[12:58:24] ascarter: has joined #ruby
[12:59:01] Jameser: has joined #ruby
[13:00:19] apparition47: has joined #ruby
[13:01:48] sonOfRa: has joined #ruby
[13:06:17] MatrixBridge: has joined #ruby
[13:06:19] MatrixBridge: has left #ruby: ("User left")
[13:06:21] MatrixBridge: has joined #ruby
[13:06:24] MatrixBridge: has left #ruby: ("User left")
[13:07:04] ddffg: has joined #ruby
[13:07:18] MatrixBridge: has joined #ruby
[13:07:21] MatrixBridge: has left #ruby: ("User left")
[13:07:43] MatrixBridge: has joined #ruby
[13:07:45] MatrixBridge: has left #ruby: ("User left")
[13:10:37] bronson: has joined #ruby
[13:23:01] synthroid: has joined #ruby
[13:24:11] jphase: has joined #ruby
[13:28:07] herbmillerjr: has joined #ruby
[13:31:10] hahuang65: has joined #ruby
[13:31:40] _sfiguser: has joined #ruby
[13:33:43] ldnunes: has joined #ruby
[13:34:22] ramfjord: has joined #ruby
[13:39:07] Jameser`: has joined #ruby
[13:43:58] ldnunes_: has joined #ruby
[13:48:29] oleo: has joined #ruby
[13:49:57] ramfjord: has joined #ruby
[13:53:07] danman: has joined #ruby
[13:54:28] bruno-: has joined #ruby
[13:56:00] cdg: has joined #ruby
[13:57:33] Silthias1: has joined #ruby
[14:06:05] ascarter: has joined #ruby
[14:07:24] GodFather: has joined #ruby
[14:07:47] ecuanaso: has joined #ruby
[14:09:12] high_fiver: has joined #ruby
[14:10:19] ramfjord: has joined #ruby
[14:13:00] mim1k: has joined #ruby
[14:13:21] ResidentBiscuit: has joined #ruby
[14:15:57] travisgrib: has joined #ruby
[14:16:38] travisgrib: hi guys, does anyone here have experience of sinatra apps?
[14:17:26] __Yiota: has joined #ruby
[14:17:49] jphase: has joined #ruby
[14:19:45] travisgrib: specifically, with redirects in sinatra apps
[14:21:43] Jameser: has joined #ruby
[14:22:34] Rapture: has joined #ruby
[14:31:23] theunraveler: has joined #ruby
[14:33:07] HoloIRCUser1: has joined #ruby
[14:36:15] rgr: has joined #ruby
[14:38:32] swills: has joined #ruby
[14:38:44] catphish: has joined #ruby
[14:41:36] adam12: travisgrib: Is there a specific problem you're trying to solve?
[14:42:06] jphase: has joined #ruby
[14:42:38] high_fiver: has joined #ruby
[14:43:39] uZiel: has joined #ruby
[14:43:53] steveAT: has joined #ruby
[14:43:56] phinxy: has joined #ruby
[14:44:32] swills: has joined #ruby
[14:44:34] swills: has joined #ruby
[14:45:02] travisgrib: adam12: i want to redirect requests from an old api to a new api. but i need to update the request body before forwarding it to the new api. i can use “redirect” to call the new api from the old, but i don’t know how to update the request body
[14:45:21] adam12: What do you mean, request body?
[14:45:27] adam12: Like post data?
[14:45:45] adam12: I don't think that's even possible? Redirect's can be GET's only, IIRC
[14:46:19] adam12: If this wasn't an API, you might be able to fake it with a pre-filled HTML form that auto-submits itself
[14:47:01] adam12: If this is low-traffic, maybe you can just make the new request and proxy the data back.
[14:47:19] aleph-: So, I'm using nokogiri, just curious what would be the way to select text from the alt tag inside a <a> tag.
[14:47:45] aleph-: Incidentally, is nokogiri still good or is there something better to use?
[14:47:47] polishdub: has joined #ruby
[14:48:21] synthroid: has joined #ruby
[14:48:24] travisgrib: adam12: but how would i call the new api with the new request?
[14:48:25] adam12: aleph_: nokogiri is fine but Oga is nice too, and no dependency on libxml
[14:48:34] synthroid: has joined #ruby
[14:49:31] adam12: aleph_: I can never remember nokogiri syntax, but could you do something like your_tag_handle.attr("alt").value ?
[14:49:50] aleph-: Checking.
[14:50:20] adam12: travisgrib: How many URLs are you changing? And can this not be done at the client?
[14:50:29] adam12: travisgrib: Are you using a reverse proxy like nginx?
[14:51:08] Rubiano001: has joined #ruby
[14:51:33] adam12: Rubiano001: o/
[14:51:39] aleph-: adam12: Tried, didn't work. Bollocks.
[14:51:48] adam12: aleph_: You know of pry?
[14:51:56] aleph-: I do not.
[14:52:00] aleph-: What is it?
[14:52:05] adam12: aleph_: Install pry gem
[14:52:14] adam12: aleph_: It's a REPL, but has a bunch of nice features.
[14:52:20] aleph-: Neat. Thanks.
[14:52:29] Rubiano001: https://thepasteb.in/p/r0hwl0v6V66iK
[14:52:33] adam12: aleph_: Once you install pry dependency, once you get the handle for that <a> tag, require "pry"; binding.pry
[14:52:34] Rubiano001: I won't see anything like this
[14:53:02] adam12: aleph_: That will drop you into the repl, then you can use `ls`, and `cd` to poke around. I'd start by `ls` the variable that stores your <a> tag and see if anything looks juicy.
[14:53:14] Rubiano001: don't put entire script in the begin/rescue block please
[14:53:35] adam12: Rubiano001: That's a classic way of debugging CGI scripts, FYI
[14:53:40] adam12: Rubiano001: But not normally used in production.
[14:54:15] vuoto: has joined #ruby
[14:54:19] adam12: aleph_: Pry is awesome. Spend some time with it.
[14:54:20] Rubiano001: but you can't understand what is the error that cause the rescue block to be executed
[14:54:39] adam12: Rubiano001: I'm not saying your example is great, but a giant begin/rescue block that outputs exception to stdout is very common.
[14:54:49] aleph-: Will do. Just different enough from python to stumble me up. :P
[14:55:09] adam12: aleph_: Yeah - I'm not even sure python has a repl/debugger like pry.
[14:55:20] aleph-: Eh, there are some close to it.
[14:55:24] Rubiano001: has left #ruby: ()
[14:57:12] banisterfiend: has joined #ruby
[14:57:15] adam12: yorickpeterse: Thanks for oga, in case I've never said it before.
[14:57:40] aleph-: adam12: Is there any better docs out there for nokogiri? Ones I've found have sucked a big one.
[14:58:02] adam12: aleph_: I don't think so :\ I've run into that before too.
[14:58:28] adam12: aleph_: You might have to read the test/specs? Sometimes they give away more clues.
[14:59:18] adam12: aleph_: What are you looking to do - big picture? (outside of parsing html). Are you scraping? Is this a one-off?
[14:59:38] aleph-: Aye. Bollocks. I prefer docs to specs. Might just try oga first.
[14:59:42] rippa: has joined #ruby
[14:59:48] adam12: aleph_: Yeah, that might be a better idea :)
[15:00:18] aleph-: adam12: One off for now kinda, site wide scraping and conversion into ebook. Blog posts and comments.
[15:00:49] aleph-: This is me just trying to get the usernames per comments. :P
[15:00:53] adam12: aleph_: Gotcha. I'd definitely give oga a go.
[15:04:45] adam12: aleph_: https://gist.github.com/adam12/92c94c8a74c928109974faad12f78eaa
[15:04:58] Jameser: has joined #ruby
[15:05:49] eelster: has joined #ruby
[15:06:10] anaeem1: has joined #ruby
[15:06:29] high_fiver: has joined #ruby
[15:06:49] raspado: has joined #ruby
[15:06:58] anaeem1_: has joined #ruby
[15:07:31] aleph-: adam12: Came out wonky, but this is what I'm parsing. https://bpaste.net/show/8d0b083b2302
[15:07:45] anaeem1: has joined #ruby
[15:07:55] adam12: aleph_: I only see one div?
[15:08:29] aleph-: Scroll right. >_>
[15:08:32] anaeem1_: has joined #ruby
[15:08:43] aleph-: Gotta find a new paste service.
[15:09:21] anaeem1: has joined #ruby
[15:10:05] aleph-: Hmm, welp my method isn't working so far.
[15:10:36] ascarter: has joined #ruby
[15:10:53] adam12: oh lol. I see it
[15:11:02] aleph-: https://bpaste.net/show/3d8afe8310a8
[15:11:05] adam12: a tag's don't normally have alt attrs.
[15:11:15] adam12: I see your img tags do tho
[15:11:15] aleph-: Yeah my naive approach ain't working. :p
[15:11:28] aleph-: ACTION sighs
[15:11:45] bronson: has joined #ruby
[15:12:51] adam12: aleph_: do you care about the a tag?
[15:13:46] adam12: aleph_: https://gist.github.com/adam12/b30bf2c39631f736a353865f26d4501e
[15:14:07] adam12: aleph_: Very naive solution tho. You'll need to tweak it.
[15:14:44] aleph-: Aye. My question is, can I nest that inaide say .css('.user-pic').each do |m|
[15:15:13] aleph-: Because that's what I'm trying, and I'm getting no output.
[15:15:57] adam12: https://gist.github.com/adam12/aea969d2824172d60a17711e3e51ae2b
[15:16:11] aleph-: Since I have some several hundred odd comments per blog, and I'd like to make sure I grab those and not say random images on the blog.
[15:16:44] adam12: Could likely even simplify it into one css selector, '.user-pic img[alt]'
[15:16:59] guacamole: has joined #ruby
[15:17:45] aleph-: adam12: Figured out my error. I was only ending the inner anon function.... >_>
[15:17:51] yehowyada: has joined #ruby
[15:17:55] adam12: aleph_: lol.
[15:18:11] adam12: whitespace significant, ruby is not
[15:28:37] AxelAlex: has joined #ruby
[15:29:16] Junaos: has joined #ruby
[15:29:59] MarkBilk__: has joined #ruby
[15:30:57] Junaos: has joined #ruby
[15:31:39] chouhoul_: has joined #ruby
[15:32:15] hahuang65: has joined #ruby
[15:33:44] TTilus: has joined #ruby
[15:35:50] Ryzokuken: has joined #ruby
[15:38:01] rgtk: has joined #ruby
[15:39:44] AnoHito_: has joined #ruby
[15:45:19] cdg: has joined #ruby
[15:48:30] cdg_: has joined #ruby
[15:55:56] brent__: has joined #ruby
[15:56:51] [Butch]: has joined #ruby
[15:56:53] TomyLobo: has joined #ruby
[15:58:09] brent__: has joined #ruby
[15:59:51] rabajaj: has joined #ruby
[16:00:12] matled: has joined #ruby
[16:00:15] rabajaj: has joined #ruby
[16:04:20] jackjackdripper: has joined #ruby
[16:06:37] bruno-: has joined #ruby
[16:13:27] mim1k: has joined #ruby
[16:14:54] Paraxial: has joined #ruby
[16:16:43] HoloIRCUser2: has joined #ruby
[16:17:49] ascarter: has joined #ruby
[16:19:39] brent__: has joined #ruby
[16:24:57] HoloIRCUser1: has joined #ruby
[16:25:04] conta: has joined #ruby
[16:27:12] sepp2k: has joined #ruby
[16:28:17] sl0thentr0py: has joined #ruby
[16:29:18] gusrub: has joined #ruby
[16:37:40] Ryzokuken: has joined #ruby
[16:38:15] Ryzokuken: has joined #ruby
[16:38:33] HoloIRCUser2: has joined #ruby
[16:39:09] dionysus69: has joined #ruby
[16:44:19] guacamole: has joined #ruby
[16:45:22] hahuang65: has joined #ruby
[16:46:22] chouhoul_: has joined #ruby
[16:47:04] eckhardt: has joined #ruby
[16:48:01] HoloIRCUser1: has joined #ruby
[16:49:42] psmolen: has joined #ruby
[16:50:14] digitalnomad: has joined #ruby
[16:51:38] blindMoe: has joined #ruby
[16:55:22] rabajaj: has joined #ruby
[16:57:45] jackjackdripper: has joined #ruby
[16:57:45] hahuang65: has joined #ruby
[17:01:51] kahra: has joined #ruby
[17:03:30] kkiero: has joined #ruby
[17:05:55] Frem: has joined #ruby
[17:07:03] cagomez: has joined #ruby
[17:12:33] mim1k: has joined #ruby
[17:12:50] bronson: has joined #ruby
[17:13:53] charliesome: has joined #ruby
[17:15:06] dn`: has joined #ruby
[17:15:37] dviola: has joined #ruby
[17:17:29] seitensei: has joined #ruby
[17:21:12] synthroid: has joined #ruby
[17:25:40] ascarter: has joined #ruby
[17:25:58] jphase: has joined #ruby
[17:27:25] uZiel: has joined #ruby
[17:27:53] imperator: has joined #ruby
[17:28:54] digitalnomad: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[17:29:20] charliesome: has joined #ruby
[17:29:25] wilbert: has joined #ruby
[17:30:07] sneakerhax: has joined #ruby
[17:30:45] nostalgiccloud: has joined #ruby
[17:33:23] jphase: has joined #ruby
[17:34:45] cagomez: has joined #ruby
[17:37:27] mooser: has joined #ruby
[17:37:58] ramfjord: has joined #ruby
[17:43:24] universal: has joined #ruby
[17:46:54] Ryzokuken: has joined #ruby
[17:48:02] dionysus69: has joined #ruby
[17:51:14] aufi: has joined #ruby
[17:52:07] raspado: has joined #ruby
[17:52:34] guacamole: has joined #ruby
[17:58:25] jphase: has joined #ruby
[17:59:32] postmodern: has joined #ruby
[17:59:43] beilabs: has joined #ruby
[18:00:21] beilabs: has joined #ruby
[18:02:14] synthroid: has joined #ruby
[18:03:30] cdg: has joined #ruby
[18:05:43] jphase: has joined #ruby
[18:06:59] ecuanaso: has joined #ruby
[18:07:50] chouhoulis: has joined #ruby
[18:08:10] cdg: has joined #ruby
[18:10:22] jphase: has joined #ruby
[18:10:24] dionysus69: has joined #ruby
[18:17:25] spiette: has joined #ruby
[18:18:49] yorickpeterse: adam12: no problem, glad you enjoy using it
[18:19:40] cdg_: has joined #ruby
[18:20:40] dcunit3d: has joined #ruby
[18:23:40] cdg__: has joined #ruby
[18:31:32] ascarter: has joined #ruby
[18:32:28] belmoussaoui: has joined #ruby
[18:36:38] belmoussaoui: has joined #ruby
[18:42:12] guardian: has joined #ruby
[18:44:45] uZiel: has joined #ruby
[18:44:53] jenrzzz: has joined #ruby
[18:44:53] jenrzzz: has joined #ruby
[18:46:08] benlieb: has joined #ruby
[18:54:38] jphase: has joined #ruby
[18:54:53] AgentVenom: has joined #ruby
[18:55:14] boombox_: has joined #ruby
[18:55:38] ski7777: has joined #ruby
[18:57:30] balazs: has joined #ruby
[19:00:47] tAn: has joined #ruby
[19:02:17] weaksauce: has joined #ruby
[19:12:56] Ryzokuken: has joined #ruby
[19:13:15] mustaffa: has joined #ruby
[19:13:44] bronson: has joined #ruby
[19:14:47] workmad3: has joined #ruby
[19:14:59] Nahra: has joined #ruby
[19:15:31] vuoto: has joined #ruby
[19:15:44] high_fiver: has joined #ruby
[19:18:06] Moosashi: has joined #ruby
[19:19:10] eckhardt: has joined #ruby
[19:19:52] olivier__: has joined #ruby
[19:20:05] anisha: has joined #ruby
[19:23:22] Ryzokuken: has joined #ruby
[19:27:17] Morrolan: has joined #ruby
[19:31:49] naprimer: has joined #ruby
[19:32:39] hays: has joined #ruby
[19:32:39] hays: has joined #ruby
[19:33:00] nopolitica: has joined #ruby
[19:38:10] ascarter: has joined #ruby
[19:40:06] conta: has joined #ruby
[19:40:18] lxsameer: has joined #ruby
[19:40:30] DrCode: has joined #ruby
[19:43:40] Joufflu: has joined #ruby
[19:44:40] mooser: has joined #ruby
[19:44:53] sumobob: has joined #ruby
[19:46:25] runescape07rsps: has joined #ruby
[19:46:30] GodFather: has joined #ruby
[19:47:27] guacamole: has joined #ruby
[19:49:16] dionysus69: has joined #ruby
[19:52:58] sspreitz: has joined #ruby
[19:55:15] logicscience: has joined #ruby
[19:56:08] jenrzzz: has joined #ruby
[19:56:08] jenrzzz: has joined #ruby
[19:56:23] wilbert: has joined #ruby
[19:56:54] cschneid_: has joined #ruby
[19:58:23] funburn: has joined #ruby
[20:00:19] Moosashi: has joined #ruby
[20:02:19] dn`: has joined #ruby
[20:02:28] yokel: has joined #ruby
[20:06:03] gthank: has joined #ruby
[20:06:30] gthank: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[20:09:31] mooser: has joined #ruby
[20:15:01] bronson: has joined #ruby
[20:20:24] tvw: has joined #ruby
[20:20:54] jenrzzz: has joined #ruby
[20:20:54] jenrzzz: has joined #ruby
[20:24:48] cagomez: has joined #ruby
[20:28:48] agent_white: has joined #ruby
[20:33:28] sepp2k: has joined #ruby
[20:33:41] flaf: has joined #ruby
[20:34:15] Kitty-: has joined #ruby
[20:34:19] Kitty-: has joined #ruby
[20:35:47] ur5us: has joined #ruby
[20:36:44] cagomez: has joined #ruby
[20:36:58] cagomez: has joined #ruby
[20:38:05] Moosashi: has joined #ruby
[20:39:48] cdg: has joined #ruby
[20:43:22] cagomez: has joined #ruby
[20:44:56] ascarter: has joined #ruby
[20:46:28] careta: has joined #ruby
[20:48:25] workmad3: has joined #ruby
[20:49:50] flaf: has left #ruby: ("WeeChat 1.9")
[20:54:38] guacamole: has joined #ruby
[20:55:53] cagomez: has joined #ruby
[20:55:55] preyalone: has joined #ruby
[20:56:22] Polysics: has joined #ruby
[20:57:41] theunraveler: has joined #ruby
[20:58:06] yeticry_: has joined #ruby
[21:00:54] cagomez: has joined #ruby
[21:01:32] ecuanaso: has joined #ruby
[21:02:18] knight33: has joined #ruby
[21:03:19] johnny56: has joined #ruby
[21:05:52] naftilos76: has joined #ruby
[21:06:11] minimalism: has joined #ruby
[21:12:11] brendan-: has joined #ruby
[21:15:50] bronson: has joined #ruby
[21:17:16] Polysics_: has joined #ruby
[21:19:50] Papierkorb: ACTION cleans off some dust
[21:24:31] jenrzzz: has joined #ruby
[21:24:32] jenrzzz: has joined #ruby
[21:24:50] agent_white: has joined #ruby
[21:27:35] thuryn: has joined #ruby
[21:28:00] thuryn: i'm having regex reading issues. what does this do?
[21:28:19] thuryn: foo =~ /(^|\/)#{some_var}$/
[21:29:04] thuryn: the $ is the "end of string" anchor.
[21:29:46] thuryn: does (^|\/) mean to match if the value of #{some_var} appears after the last / OR at the beginning of foo?
[21:30:49] havenwood: thuryn: $ is either end of line or end of string
[21:31:09] havenwood: thuryn: \z is end of string
[21:32:11] havenwood: thuryn: the parens are a capture group
[21:32:49] havenwood: thuryn: ^ is beginning of a line or string
[21:32:58] havenwood: thuryn: \A is beginning of a string
[21:33:10] havenwood: thuryn: \/ is an escaped /
[21:34:08] _sfiguser: has joined #ruby
[21:35:17] havenwood: thuryn: | is alternation, thing on left or thing on right
[21:35:29] gloscombe: has joined #ruby
[21:35:47] havenwood: thuryn: I gather you know interpolation? That should cover the bases.
[21:36:01] `derpy: http://ruby-doc.org/core-2.4.1/Regexp.html
[21:36:09] havenwood: thuryn: https://www.zenspider.com/ruby/quickref.html#regexen
[21:36:16] cagomez: has joined #ruby
[21:39:46] havenwood: thuryn: I take it the capture group isn't used? You could probably improve on that part.
[21:41:29] jinie_: has joined #ruby
[21:41:31] nopolitica: has joined #ruby
[21:49:40] leandrobighetti: has joined #ruby
[21:52:08] ascarter: has joined #ruby
[21:52:15] DrCode: has joined #ruby
[21:54:41] agent_white: has joined #ruby
[21:59:48] TomyLobo: has joined #ruby
[22:00:12] logicscience: i'd like a free copy of EU GDPR – A Pocket Guide ... what is the community opinion of this desire?
[22:01:15] Kitty-: has joined #ruby
[22:04:24] gusrub: has joined #ruby
[22:07:39] Kitty-: has joined #ruby
[22:16:53] bronson: has joined #ruby
[22:16:58] havenwood: logicscience: Is it Ruby-related?
[22:18:22] havenwood: logicscience: Just load it onto your watch: http://ec.europa.eu/justice/data-protection/reform/files/regulation_oj_en.pdf
[22:18:25] ruby[bot]: this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
[22:18:53] conta: has joined #ruby
[22:38:26] johnny56: has joined #ruby
[22:41:02] Kitty-: has joined #ruby
[22:42:13] hahuang65: has joined #ruby
[22:42:33] ur5us: has joined #ruby
[22:42:38] gusrub_: has joined #ruby
[22:42:46] Rodya_: has joined #ruby
[22:51:13] moei: has joined #ruby
[22:57:08] boombox_: has joined #ruby
[22:59:51] ascarter: has joined #ruby
[23:02:06] __Yiota: has joined #ruby
[23:02:51] cschneid_: has joined #ruby
[23:04:04] Joufflu: has joined #ruby
[23:05:28] nOwz: has joined #ruby
[23:05:33] brent__: has joined #ruby
[23:06:29] patr0clus: has joined #ruby
[23:06:54] brent__: has joined #ruby
[23:10:04] jphase: has joined #ruby
[23:11:07] nOwz: has joined #ruby
[23:12:00] jphase: has joined #ruby
[23:12:13] nOwz: has joined #ruby
[23:13:35] jphase: has joined #ruby
[23:14:24] ecuanaso: has joined #ruby
[23:14:54] jenrzzz: has joined #ruby
[23:17:27] bronson: has joined #ruby
[23:17:49] benlieb: has joined #ruby
[23:19:07] gusrub: has joined #ruby
[23:20:56] ben_: has joined #ruby
[23:21:37] goyox86__: has joined #ruby
[23:22:25] ledestin: has joined #ruby
[23:27:31] __Yiota: has joined #ruby
[23:33:00] Bhootrk_: has joined #ruby
[23:33:59] Dimik: has joined #ruby
[23:40:39] dcunit3d: has joined #ruby
[23:41:56] hahuang65: has joined #ruby
[23:45:18] ur5us: has joined #ruby
[23:58:16] brent__: has joined #ruby
[23:59:12] jphase: has joined #ruby