« Back to channel list

#ruby - 05 June 2016

« Back 1 day Forward 1 day »
[00:02:46] N1njturt_: has joined #ruby
[00:03:29] hahuang65: has joined #ruby
[00:09:17] duncannz: has joined #ruby
[00:15:38] weemsledeux: has joined #ruby
[00:16:34] splitlip: has joined #ruby
[00:18:39] maletor3: has joined #ruby
[00:20:30] chipotle: has joined #ruby
[00:23:46] Dimik: has joined #ruby
[00:27:18] rickmasta: has joined #ruby
[00:27:34] Rodya_: has joined #ruby
[00:33:18] LoneHerm_: has joined #ruby
[00:34:56] jenrzzz: has joined #ruby
[00:35:35] symm-_: has joined #ruby
[00:38:28] N1njturt_: has joined #ruby
[00:39:33] rkazak: has joined #ruby
[00:40:40] sneakerhax: has joined #ruby
[00:42:05] duckpuppy: has joined #ruby
[00:42:05] iamjhu: has joined #ruby
[00:42:29] noobsu_: has joined #ruby
[00:46:28] solocshaw1: has joined #ruby
[00:49:15] hahuang65: has joined #ruby
[00:51:12] Tristan-Speccy: has joined #ruby
[00:55:46] buddhabrot_: has joined #ruby
[00:56:33] al2o3-cr: has joined #ruby
[00:56:58] djbkd: has joined #ruby
[00:58:43] Yzguy: has joined #ruby
[00:59:39] electrostat: has joined #ruby
[01:03:47] soLucien: has joined #ruby
[01:05:48] Coldblackice: has joined #ruby
[01:07:45] millerti: has joined #ruby
[01:10:30] harai54: has joined #ruby
[01:12:35] David_H__: has joined #ruby
[01:13:15] Yiota: has joined #ruby
[01:13:52] TinkerTyper: has joined #ruby
[01:16:06] jerematic: has joined #ruby
[01:19:25] maletor3: has joined #ruby
[01:19:44] David_H_Smith: has joined #ruby
[01:21:37] charliesome: has joined #ruby
[01:23:51] aeterne: has joined #ruby
[01:24:23] Es0teric: has joined #ruby
[01:26:07] nando294021: has joined #ruby
[01:27:04] Elvin: has joined #ruby
[01:31:32] LoneHerm_: has joined #ruby
[01:34:46] N1njturt_: has joined #ruby
[01:35:08] hahuang65: has joined #ruby
[01:36:57] jenrzzz: has joined #ruby
[01:36:57] jenrzzz: has joined #ruby
[01:37:06] flashpoint9: has joined #ruby
[01:37:44] sharkman: has joined #ruby
[01:39:37] LoneHerm_: has joined #ruby
[01:42:51] duckpuppy: has joined #ruby
[01:44:34] smathy: has joined #ruby
[01:46:14] pilne: has joined #ruby
[01:56:06] weemsledeux: has joined #ruby
[02:03:35] LoneHerm_: has joined #ruby
[02:03:57] nando294021: has joined #ruby
[02:04:44] charliesome: has joined #ruby
[02:04:45] kraken: has joined #ruby
[02:05:10] krakenr: is it more convention to call "hi".upcase or "hi".upcase()
[02:05:24] krakenr: conventional*
[02:07:51] arescorpio: has joined #ruby
[02:15:45] GodFather: has joined #ruby
[02:16:24] hahuang65: has joined #ruby
[02:17:35] crystal77: has joined #ruby
[02:20:16] N1njturt1e: has joined #ruby
[02:21:19] maletor3: has joined #ruby
[02:21:29] jancel: has joined #ruby
[02:23:39] razer_: has joined #ruby
[02:24:34] razer_: I'm can't figure out why my class can't access the a method from a module I mixed in.
[02:24:48] razer_: https://codeshare.io/TxcFZ
[02:24:49] bougyman: can you show code?
[02:24:57] bougyman: which method?
[02:25:11] razer_: The method it can't access is Calculator.add_3_method
[02:25:27] bougyman: it's not a class method
[02:25:32] bougyman: it's an instance method.
[02:25:38] bougyman: Calculator.new.add_3_method
[02:26:23] razer_: Oh, so I have to define it in the module like a class method then I guess.
[02:26:32] bougyman: well, it's more than that.
[02:26:40] razer_: I just figured it was by default because you couldn't make instances of modules.
[02:26:43] bougyman: you have to attach it to self.included, too
[02:27:18] bougyman: http://www.railstips.org/blog/archives/2009/05/15/include-vs-extend-in-ruby/
[02:27:20] razer_: Or maybe you can, I don't know. I didn't even know about that self.included.
[02:27:36] bougyman: and http://stackoverflow.com/questions/10692961/inheriting-class-methods-from-mixins
[02:27:50] charliesome: has joined #ruby
[02:28:42] razer_: Ah, thank you
[02:31:29] skweek: has joined #ruby
[02:33:04] mleung: has joined #ruby
[02:39:10] cd83x: has joined #ruby
[02:39:58] Lildirt: has joined #ruby
[02:40:32] weaksauce: has joined #ruby
[02:41:41] arooni: has joined #ruby
[02:42:48] razer_: This is sort of off topic, but I've been thinking of making a ruby world introduction that explains all the concepts of the ruby world without any code. Only after understanding the ruby world would I show people how to write ruby to interact with the ruby world.
[02:43:37] duckpuppy: has joined #ruby
[02:48:03] eljimador: has joined #ruby
[02:48:04] JesseH: has joined #ruby
[02:48:05] MrBusiness2: has joined #ruby
[02:54:36] Coldblackice_: has joined #ruby
[02:57:40] hahuang65: has joined #ruby
[03:00:43] karmatr0n: has joined #ruby
[03:16:35] krakenr: Hey guys, ruby noob here having a tough time. I have two files that are in the same directory, a board.rb file and a player.rb file, and I'm trying to create a player object within the board file, but I can't. Don't I need to ((( require 'player' ))) at the top of my Board class? I've already done this and I'm getting "cannot load such file --- player"
[03:17:52] krakenr: Alright I just fixed it with require './player'
[03:17:58] krakenr: not sure why I needed the './'
[03:18:37] Radar: kraken_: because you're referencing it relative to the board file
[03:18:42] Radar: You can do require_relative 'player'
[03:18:51] braincrash: has joined #ruby
[03:18:55] Radar: "./" is shorthand for "this current directory"
[03:19:10] krakenr: I though ./ would mean one directory down
[03:20:18] Radar: no, that's ../
[03:20:59] k3rn31: has joined #ruby
[03:21:14] krakenr: Radar: huh? When I $cd .. it brings me one directory up
[03:21:22] Radar: that's what I just said.
[03:22:19] Radar: one directory "back" would be a better word.
[03:22:29] N1njturt1e: has joined #ruby
[03:23:07] maletor3: has joined #ruby
[03:23:40] krakenr: True that!
[03:33:44] Vingador: has joined #ruby
[03:36:59] r_rios: has joined #ruby
[03:37:39] buddhabrot_: what no, one directory back is 'cd -'
[03:38:07] Radar: That goes back to the last directory you visited, not one directory "back" from where you are now
[03:38:22] Yzguy: has joined #ruby
[03:38:22] Radar: For instance, I'm at ~/Projects/elixir. If I do "cd -" it will take me back to ~ because that's where I was before I got here.
[03:38:32] Radar: "cd .." will take me back to ~/Projects
[03:39:48] buddhabrot_: is the directory tree oriented horizontal or vertical?
[03:39:52] olspookishmagus: has joined #ruby
[03:40:05] buddhabrot_: I always thought of it, like a tree, vertically
[03:40:11] buddhabrot_: so why back, and not up?
[03:41:06] djbkd: has joined #ruby
[03:41:21] CloCkWeRX: has joined #ruby
[03:43:10] pilne: is there a good place to learn about what is going to be coming to ruby 3?
[03:43:31] hahuang65: has joined #ruby
[03:44:07] pilne: and i always saw it as the concept of a directory that is inside another being a "subdirectory" sub is "lower" so you go "up" when you go "back".
[03:44:12] jaguarmagenta: has joined #ruby
[03:44:12] jenrzzz: has joined #ruby
[03:44:12] jenrzzz: has joined #ruby
[03:44:23] duckpuppy: has joined #ruby
[03:44:51] jaguarmagenta: has joined #ruby
[03:50:10] diegoaguilar: has joined #ruby
[03:50:54] ohcibi: has joined #ruby
[03:51:44] jaguarmagenta: has joined #ruby
[03:51:56] soahccc: has joined #ruby
[03:52:04] RushPL: has joined #ruby
[03:52:18] bauruine: has joined #ruby
[03:52:21] contradictioned: has joined #ruby
[03:53:00] gix: has joined #ruby
[03:55:35] Yiota: has joined #ruby
[03:58:48] 7GHAA9N4L: has joined #ruby
[03:59:57] Yiota: has joined #ruby
[04:01:02] allcentury: has joined #ruby
[04:02:19] hk238: has joined #ruby
[04:02:30] k3rn31: has joined #ruby
[04:08:57] nemish: has joined #ruby
[04:09:31] jancel: has joined #ruby
[04:10:18] ohcibi: has joined #ruby
[04:10:28] soahccc: has joined #ruby
[04:10:31] contradictioned: has joined #ruby
[04:10:37] kalleth: has joined #ruby
[04:10:41] Rush: has joined #ruby
[04:11:16] RushPL: has joined #ruby
[04:14:43] nibbo: has joined #ruby
[04:14:59] Guest70615: has joined #ruby
[04:15:41] karmatr0n: has joined #ruby
[04:17:09] crystal77: has joined #ruby
[04:18:23] jerematic: has joined #ruby
[04:22:42] Es0teric: has joined #ruby
[04:22:46] yfeldblum: has joined #ruby
[04:23:25] djbkd: has joined #ruby
[04:25:02] maletor3: has joined #ruby
[04:27:20] d0lph1n98: has joined #ruby
[04:27:24] LoneHermit: has joined #ruby
[04:27:52] unvexp: has joined #ruby
[04:30:13] rippa: has joined #ruby
[04:34:47] houhoulis: has joined #ruby
[04:36:19] xcesariox: has joined #ruby
[04:41:53] crystal77: has joined #ruby
[04:45:16] duckpuppy: has joined #ruby
[04:46:05] k0n: has joined #ruby
[04:46:13] k0n: can you help me build a nonprofit for black supremacist groups?
[04:48:08] crystal77: has joined #ruby
[04:51:24] ruby[bot]: +bbbb $a:k0n$#ruby-banned k0n!*@*$#ruby-banned mynameisntroy!*@*$#ruby-banned *!*@gateway/web/freenode/ip.99.181.20.181$#ruby-banned
[04:51:26] ruby[bot]: ruby[bot] kicked k0n: offense, see http://ruby-community.com/pages/user_rules
[04:51:26] ruby[bot]: -bb doodlehaus!*@*$#ruby-banned ZerGabriel!*@*$#ruby-banned
[04:51:42] metateck: has joined #ruby
[04:52:03] Radar: !troll k0n
[04:53:20] lxsameer: has joined #ruby
[04:55:28] sumobob: has joined #ruby
[04:56:55] flashpoint9: has joined #ruby
[04:57:57] allcentury: has joined #ruby
[04:58:04] metateck: i am new to ruby, and it appears to me i created an instance of a string that does not have a starts_with? method
[04:58:04] metateck: http://paste.ubuntu.com/17020409/
[04:59:14] Radar: metateck: what version of Ruby?
[04:59:19] metateck: http://paste.ubuntu.com/17020437/
[04:59:22] metateck: that is a little more information
[04:59:42] Radar: metateck: the method is called start_with?
[04:59:50] Radar: On Ruby 2.3, it'll tell you that
[04:59:50] Radar: NoMethodError: undefined method `starts_with?' for "Ghent":String
[04:59:50] Radar: Did you mean? start_with?
[05:00:10] metateck: that was 2 hours well spent
[05:00:19] jaguarmagenta: has joined #ruby
[05:00:28] metateck: thanks radar i got it now
[05:01:51] arkore: has joined #ruby
[05:02:46] arkore: hello, how do i configure ruby on windows to use the git i already have installed, so that i dont receive an error "You need Git installed to get started."
[05:04:20] arkore: or maybe it doesn't matter, but i figured it'd be normal and natural that my git in ruby be the git i already have.
[05:04:39] crystal77: has joined #ruby
[05:04:47] yfeldblum: has joined #ruby
[05:06:17] yfeldblum: has joined #ruby
[05:07:35] d0lph1n98: has joined #ruby
[05:08:12] hk238: has joined #ruby
[05:10:28] xpt: arkore: I don't have an access to my windows box today, but I think you just need to set ENV path to point to your git directory
[05:11:16] arkore: xpt, yeah, thx. im trying it now after adding C:\Users\...\AppData\Local\Programs\Git\bin to PATH
[05:12:35] arkore: yeah, that fixed it.
[05:19:07] jerematic: has joined #ruby
[05:21:22] dh64: has joined #ruby
[05:23:23] nando293921: has joined #ruby
[05:26:00] jaguarmagenta: has joined #ruby
[05:26:36] jaguarma_: has joined #ruby
[05:26:51] maletor3: has joined #ruby
[05:31:52] Sammichmaker: has joined #ruby
[05:32:24] tatsuo: has joined #ruby
[05:32:58] metateck: i was just cleaning up tabs and this is like the 20th tab im closing that i opened because of my start_with? typo
[05:33:07] metateck: good night and thanks Radar
[05:33:36] hahuang65: has joined #ruby
[05:33:47] Radar: metateck: see ya
[05:35:13] tildes_: has joined #ruby
[05:40:07] blackgoat: has joined #ruby
[05:44:52] beilabs: has joined #ruby
[05:45:30] Cohedrin: has joined #ruby
[05:45:59] duckpuppy: has joined #ruby
[05:47:13] beilabs_: has joined #ruby
[05:50:32] bnjf: has joined #ruby
[05:52:18] Yiota: has joined #ruby
[05:56:18] allcentury: has joined #ruby
[06:01:41] bnjf: has joined #ruby
[06:01:54] karmatr0n: has joined #ruby
[06:03:50] blockchan: has joined #ruby
[06:05:11] nando293921: has joined #ruby
[06:06:30] moeabdol: has joined #ruby
[06:11:02] allcentury: has joined #ruby
[06:12:59] giz|work|2: has joined #ruby
[06:13:52] kareeoleez: has joined #ruby
[06:20:19] djbkd: has joined #ruby
[06:27:35] maletor3: has joined #ruby
[06:30:04] Hyuk: has joined #ruby
[06:30:28] jud: has joined #ruby
[06:30:28] jud: has joined #ruby
[06:42:15] LoneHerm_: has joined #ruby
[06:43:13] djbkd: has joined #ruby
[06:46:36] Hyuk: has joined #ruby
[06:46:49] duckpuppy: has joined #ruby
[06:54:18] beilabs: has joined #ruby
[07:04:57] JPer: has joined #ruby
[07:05:00] CJKinni: has joined #ruby
[07:06:42] tristanp_: has joined #ruby
[07:06:48] JPer: has left #ruby: ()
[07:10:09] tvw: has joined #ruby
[07:10:26] elifoster: has joined #ruby
[07:11:05] gtsai: has joined #ruby
[07:11:57] kareeole_: has joined #ruby
[07:12:16] allcentury: has joined #ruby
[07:12:46] codecop: has joined #ruby
[07:14:22] harai54: has joined #ruby
[07:15:24] ishe_ua: has joined #ruby
[07:16:24] Devalo: has joined #ruby
[07:17:39] CJKinni: has joined #ruby
[07:24:25] Ishido: has joined #ruby
[07:27:05] framling: has joined #ruby
[07:27:07] kareeoleez: has joined #ruby
[07:28:22] maletor3: has joined #ruby
[07:33:55] dionysus69: has joined #ruby
[07:35:53] blockchan: has joined #ruby
[07:36:07] haraigo: has joined #ruby
[07:37:50] Devalo: has joined #ruby
[07:40:34] allcentury: has joined #ruby
[07:43:15] LoneHermit: has joined #ruby
[07:47:24] duckpuppy: has joined #ruby
[07:48:41] phredus: has joined #ruby
[07:49:22] Yiota: has joined #ruby
[07:49:40] Guest19482: has joined #ruby
[07:50:32] Guest19482: Is there anyway to create 100 variable using a loop?
[07:51:28] the_drow: has joined #ruby
[07:52:08] lightt: has joined #ruby
[07:55:23] d0lph1n98: has joined #ruby
[07:57:14] N1njturt1e: has joined #ruby
[07:57:50] jhass: Guest19482: use a hash or array
[08:01:53] hahuang65: has joined #ruby
[08:03:10] dar123: has joined #ruby
[08:16:24] Hyuk: has joined #ruby
[08:16:41] marr: has joined #ruby
[08:18:35] sneakerhax: has joined #ruby
[08:19:40] kareeole_: has joined #ruby
[08:21:26] jerematic: has joined #ruby
[08:22:09] Virus: has joined #ruby
[08:22:20] pawnbox: has joined #ruby
[08:22:38] Virus: can someone help me with a ruby script?
[08:24:05] Hanmac: Virus: just show us the gist
[08:24:52] CloCkWeRX: has joined #ruby
[08:26:33] kareeoleez: has joined #ruby
[08:28:32] Nawn: has joined #ruby
[08:28:44] Devalo: has joined #ruby
[08:29:06] maletor3: has joined #ruby
[08:30:00] jhass: too slow ;)
[08:33:08] firstdayonthejob: has joined #ruby
[08:34:14] MrBusiness3: has joined #ruby
[08:34:41] charliesome: has joined #ruby
[08:35:48] Madplatypus: has joined #ruby
[08:36:30] nankyokusei: has joined #ruby
[08:40:47] moeabdol: has joined #ruby
[08:41:44] allcentury: has joined #ruby
[08:47:52] guardian: has joined #ruby
[08:48:10] duckpuppy: has joined #ruby
[08:48:25] Infra-Red: has joined #ruby
[08:51:11] contradictioned: has joined #ruby
[08:51:18] kalleth: has joined #ruby
[08:51:21] Rush: has joined #ruby
[08:51:28] ohcibi: has joined #ruby
[08:51:57] soahccc: has joined #ruby
[08:52:31] RushPL: has joined #ruby
[08:57:48] bauruine: has joined #ruby
[09:03:35] rkoller: has joined #ruby
[09:04:39] SCHAAP137: has joined #ruby
[09:06:05] elementaru: has joined #ruby
[09:06:08] symm-: has joined #ruby
[09:06:16] Devalo: has joined #ruby
[09:10:21] agit0: has joined #ruby
[09:12:43] Gasher: has joined #ruby
[09:12:51] tildes_: has joined #ruby
[09:15:04] Devalo: has joined #ruby
[09:15:41] scepticulous: has joined #ruby
[09:19:45] blockchan: has joined #ruby
[09:22:16] TomyLobo: has joined #ruby
[09:29:55] maletor3: has joined #ruby
[09:31:30] LoneHermit: has joined #ruby
[09:32:55] blockchan: has joined #ruby
[09:33:15] mdw: has joined #ruby
[09:34:48] allcentury: has joined #ruby
[09:37:04] Tempesta: has joined #ruby
[09:39:01] kareeoleez: has joined #ruby
[09:39:52] domgetter: has joined #ruby
[09:40:33] pawnbox: has joined #ruby
[09:43:43] charliesome: has joined #ruby
[09:46:42] nofxx: has joined #ruby
[09:48:55] duckpuppy: has joined #ruby
[09:49:51] xcesariox: has joined #ruby
[09:50:21] CJKinni: has joined #ruby
[09:50:23] noobsu_: has joined #ruby
[09:55:19] spider-mario: has joined #ruby
[09:56:48] helpa: has joined #ruby
[09:58:25] phredus: has joined #ruby
[09:59:15] N1njturt1e: has joined #ruby
[10:00:14] dionysus69: has joined #ruby
[10:00:37] vjacob: has joined #ruby
[10:01:17] N1njturt1e: has joined #ruby
[10:01:56] Mon_Ouie: has joined #ruby
[10:02:34] beilabs: has joined #ruby
[10:14:34] jokke: about celluloid: i have an actor that listens to a topic via subscribe and triggers a callback when it receives a message. This callback is blocking. I need the actor to be able to receive messages asynchronously (so that multiple blocking callbacks can be triggered simultaniously)
[10:14:56] jokke: how can i do this?
[10:16:11] CJKinni: has joined #ruby
[10:16:15] jokke: hm maybe with a future
[10:17:52] nerium: has joined #ruby
[10:18:45] hays: has joined #ruby
[10:25:48] banister: has joined #ruby
[10:30:36] shevy: solve all problems in the future!
[10:30:41] maletor3: has joined #ruby
[10:35:17] allcentury: has joined #ruby
[10:36:50] noobsu: has joined #ruby
[10:44:04] Hyuk: has joined #ruby
[10:45:04] araujo: has joined #ruby
[10:46:47] edavis_: has joined #ruby
[10:46:50] araujo: has joined #ruby
[10:47:05] domgetter: Everything happens somewhen else
[10:48:48] araujo: has joined #ruby
[10:49:39] duckpuppy: has joined #ruby
[10:49:45] LoganG_: has joined #ruby
[10:49:52] diprotic: has joined #ruby
[10:49:52] tatsuo_: has joined #ruby
[10:50:24] agentmee1kat: has joined #ruby
[10:50:31] chrismytton_: has joined #ruby
[10:50:42] deavidsedice: has joined #ruby
[10:50:45] ELLIOTTCABLE_: has joined #ruby
[10:50:56] _whitelogger_: has joined #ruby
[10:50:56] ohcibi_: has joined #ruby
[10:50:59] contradictioned_: has joined #ruby
[10:51:01] voker57_: has joined #ruby
[10:51:29] kalleth_: has joined #ruby
[10:51:40] Madplatypus_: has joined #ruby
[10:52:03] Rush_: has joined #ruby
[10:52:28] rushed: has joined #ruby
[10:52:47] DefV_: has joined #ruby
[10:53:01] [ace]_: has joined #ruby
[10:53:05] nano-_: has joined #ruby
[10:53:10] queequeg2: has joined #ruby
[10:53:14] blackgoat_: has joined #ruby
[10:53:18] stevenxl_: has joined #ruby
[10:53:21] genpaku_: has joined #ruby
[10:53:23] prooftechnique_: has joined #ruby
[10:53:24] M-Techni1: has joined #ruby
[10:53:28] vqrs_: has joined #ruby
[10:53:31] rgs_: has joined #ruby
[10:53:36] speaking1ode: has joined #ruby
[10:53:36] Sp4rKy_: has joined #ruby
[10:53:43] tabakhase__: has joined #ruby
[10:53:44] humd1ng3r: has joined #ruby
[10:53:55] mrgrieves: has joined #ruby
[10:53:57] imajes: has joined #ruby
[10:54:00] jolamb_: has joined #ruby
[10:54:03] eljimador: has joined #ruby
[10:54:08] bazzy: has joined #ruby
[10:54:09] DarkBushido: has joined #ruby
[10:54:09] DarkBushido: has joined #ruby
[10:54:10] existensil: has joined #ruby
[10:54:12] irick: has joined #ruby
[10:54:27] ELLIOTTCABLE_: has joined #ruby
[10:54:34] eggoez: has joined #ruby
[10:54:37] Lord_of_-: has joined #ruby
[10:54:48] pelegreno_: has joined #ruby
[10:54:50] adgtl: has joined #ruby
[10:55:08] lele: has joined #ruby
[10:55:09] Arcaire: has joined #ruby
[10:55:29] llua: has joined #ruby
[10:56:04] hahuang65: has joined #ruby
[10:56:17] nisstyre: has joined #ruby
[10:56:29] SegFaultAX: has joined #ruby
[10:56:38] heinrich5991: has joined #ruby
[10:56:46] Liam`: has joined #ruby
[10:57:37] Skelz0r: has joined #ruby
[10:57:44] fnux: has joined #ruby
[10:58:24] JStoker: has joined #ruby
[10:58:36] connor_goodwolf: has joined #ruby
[10:59:55] EXCHGR: has joined #ruby
[10:59:57] yasu___: has joined #ruby
[11:00:02] epitron: has joined #ruby
[11:00:02] epitron: has joined #ruby
[11:00:10] Nanuq: has joined #ruby
[11:00:14] mrgrieves: has joined #ruby
[11:00:51] gregf: has joined #ruby
[11:00:58] DanielI: has joined #ruby
[11:01:49] shevy: has joined #ruby
[11:01:54] cajone: has joined #ruby
[11:02:02] kapowaz: has joined #ruby
[11:02:05] Rasi: has joined #ruby
[11:02:11] digitalfiz: has joined #ruby
[11:02:12] lipoqil: has joined #ruby
[11:02:29] blaxter: has joined #ruby
[11:02:40] jokke: has joined #ruby
[11:03:03] ddfreyne_: has joined #ruby
[11:03:09] zapata: has joined #ruby
[11:03:45] knowtheory: has joined #ruby
[11:03:53] moss: has joined #ruby
[11:04:28] illusionmedic: has joined #ruby
[11:06:35] dellavg: has joined #ruby
[11:08:24] CloCkWeRX: has joined #ruby
[11:08:49] ICantCook: has joined #ruby
[11:10:00] nerium: has joined #ruby
[11:10:46] spudowiar: has joined #ruby
[11:11:35] gremax: has joined #ruby
[11:11:40] banister: has joined #ruby
[11:12:05] crayfishx: has joined #ruby
[11:14:37] araujo: has joined #ruby
[11:14:58] Azure|dc: has joined #ruby
[11:15:49] _aeris_: has joined #ruby
[11:18:10] toretore: has joined #ruby
[11:18:54] TheBrayn: has joined #ruby
[11:24:09] jerematic: has joined #ruby
[11:25:24] davedev24: has joined #ruby
[11:25:38] ohcibi: has joined #ruby
[11:26:16] sepp2k: has joined #ruby
[11:26:44] CJKinni: has joined #ruby
[11:30:14] DanielI: has joined #ruby
[11:31:27] maletor3: has joined #ruby
[11:36:16] CloCkWeRX: has left #ruby: ()
[11:36:42] c355E3B: has joined #ruby
[11:36:53] crdpink2: has joined #ruby
[11:37:22] hahuang65: has joined #ruby
[11:37:26] millerti: has joined #ruby
[11:38:29] heyimwill: has joined #ruby
[11:38:58] nemesit|znc: has joined #ruby
[11:41:02] drPoggs: has joined #ruby
[11:41:22] kareeoleez: has joined #ruby
[11:41:45] allcentury: has joined #ruby
[11:42:15] soahccc: has joined #ruby
[11:42:35] Hobbyboy|BNC: has joined #ruby
[11:45:06] bauruine: has joined #ruby
[11:46:35] SuperTux88: has joined #ruby
[11:46:42] jokke: how can i perform a blocking gets on a fifo?
[11:48:22] jhass: it is blocking?
[11:50:23] gheegh: has joined #ruby
[11:50:23] duckpuppy: has joined #ruby
[11:50:58] d0lph1n98: has joined #ruby
[11:52:02] arifba: has joined #ruby
[11:52:49] jokke: jhass: no
[11:53:14] jhass: stdlib gets is
[11:53:32] jhass: perhaps yours is overriden
[11:53:51] arifba: how would i go about replacing multiple characters in a string using .tr?
[11:54:16] arifba: for instance, i want to replace all "a" and "b" from a string with a hyphen
[11:54:17] jokke: jhass: hmmm it indeed is
[11:54:29] jhass: arif__: .tr("ab", "-")
[11:54:55] krasnus: has joined #ruby
[11:55:23] jokke: jhass: but there's another problem
[11:55:29] jokke: jhass: https://p.jreinert.com/LcNXx/
[11:55:34] jokke: try running this
[11:55:59] jokke: and then echo something to the fifo
[11:56:09] jokke: and check htop
[11:56:37] Hanmac: has joined #ruby
[11:56:42] jokke: so it's not blocking
[11:56:50] jokke: because print nil doesn't do anything
[11:57:36] jhass: mmh, perhaps a fifo is special after all
[11:57:46] jokke: yeah because there's no EOF
[11:58:45] Mia: has joined #ruby
[11:58:45] Mia: has joined #ruby
[12:05:55] xcesariox: has joined #ruby
[12:06:06] ponga: has joined #ruby
[12:06:26] symm-: has joined #ruby
[12:06:48] shevy: has joined #ruby
[12:10:43] Nanuq: has joined #ruby
[12:11:20] zapata: has joined #ruby
[12:13:02] sdothum: has joined #ruby
[12:15:15] Hyuk: has joined #ruby
[12:15:42] charliesome: has joined #ruby
[12:16:51] karmatr0n: has joined #ruby
[12:18:42] hahuang65: has joined #ruby
[12:21:15] d0lph1n98: has joined #ruby
[12:21:57] Mon_Ouie: has joined #ruby
[12:24:29] helpa-bot: has joined #ruby
[12:25:14] arifba: has joined #ruby
[12:26:00] moredhel: has joined #ruby
[12:26:08] solocshaw: has joined #ruby
[12:26:29] helpa: has joined #ruby
[12:27:25] arifba: how can i selectively delete occurrences of a particular word from a string?
[12:27:29] arifba: for example
[12:27:43] arifba: str = "the quick the brown the fox jumped over the lazy dog"
[12:27:52] arifba: here, i'd like to do two things
[12:28:05] arifba: 1. delete only the third "the"
[12:28:23] arifba: 2. delete every third "the"
[12:28:44] CJKinni: has joined #ruby
[12:28:49] ensyde: has joined #ruby
[12:32:18] maletor3: has joined #ruby
[12:34:05] lupine: has joined #ruby
[12:38:31] agit0: has joined #ruby
[12:40:34] c0mrad3: has joined #ruby
[12:41:20] jhass: arif__: maybe there's an easier pattern in your real values
[12:41:34] millerti: has joined #ruby
[12:43:31] arifba: jhass: this is just an example sentence
[12:43:54] arifba: jhass: what i want to know is if i can delete nth character from a string
[12:44:48] arifba: jhass: is there a way to do that?
[12:45:18] jhass: is my point
[12:45:26] jhass: ACTION slaps ruby[bot]
[12:45:27] ruby[bot]: it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
[12:46:26] arifba: well then :/
[12:47:00] apeiros: arif__: yes you can, no there's no built-in method to do it without any additional effort
[12:47:07] apeiros: easiest would probably be to use gsub with a block
[12:47:15] CJKinni: has joined #ruby
[12:47:17] apeiros: but I concur with jhass - this smells of xy
[12:48:06] bathtub_shark: has joined #ruby
[12:48:22] domgetter: arif__ so you'd want "a the b the c the d the e the f the g the h the i the j the k" to become "a the b the c d the e the f g the h the i j the k" ?
[12:49:16] watersoul: has joined #ruby
[12:50:33] arifba: sorry guys, i'm new to this and i had no idea what xy was prior to this day
[12:50:39] arifba: domgetter: yes that's exactly what i'm trying to do
[12:50:44] Vingador: has joined #ruby
[12:50:59] aryaching: has joined #ruby
[12:51:09] duckpuppy: has joined #ruby
[12:51:30] m_antis: has joined #ruby
[12:51:31] mdw7: has joined #ruby
[12:53:25] chipotle: has joined #ruby
[12:55:01] miqlas-H: has joined #ruby
[12:55:13] lxsameer: has joined #ruby
[12:56:00] haraigo: has joined #ruby
[12:57:33] crystal77: has joined #ruby
[12:58:02] nankyokusei: has joined #ruby
[12:59:03] dionysus69: has joined #ruby
[13:01:37] tAn: has joined #ruby
[13:03:55] araujo_: has joined #ruby
[13:04:31] hahuang65: has joined #ruby
[13:04:40] beilabs: has joined #ruby
[13:05:17] JJM: has joined #ruby
[13:06:04] araujo_: has joined #ruby
[13:06:43] thejamespinto: has joined #ruby
[13:06:51] davedev24: has joined #ruby
[13:07:00] shevy: my head aches after domgetter's statement
[13:07:22] LoneHermit: has joined #ruby
[13:07:28] Pumukel: has joined #ruby
[13:07:34] shevy: what is with those "ask-a-question-then-insta-quit" :)
[13:07:48] domgetter: I was gonna help them, but they ran off...
[13:08:23] araujo_: has joined #ruby
[13:10:25] araujo_: has joined #ruby
[13:10:59] nankyokusei: has joined #ruby
[13:11:01] tudor123: has joined #ruby
[13:12:12] tudor123: Hello, I have a question. How can I check the proxy type if it is http/s or socks4/5 with net/http ?
[13:12:18] nankyokusei: has joined #ruby
[13:13:11] araujo_: has joined #ruby
[13:13:24] weemsledeux: has joined #ruby
[13:13:33] allcentury: has joined #ruby
[13:15:09] valkyr1e: has joined #ruby
[13:15:16] vjacob: has joined #ruby
[13:15:30] araujo_: has joined #ruby
[13:17:52] araujo_: has joined #ruby
[13:18:18] hahuang65: has joined #ruby
[13:18:49] qasaur: has joined #ruby
[13:19:31] jhass: does net/http even support a socks proxy? I don't think so
[13:19:40] jhass: also check in what situation?
[13:19:58] araujo_: has joined #ruby
[13:21:37] crystal77: has joined #ruby
[13:22:04] araujo_: has joined #ruby
[13:24:16] araujo_: has joined #ruby
[13:25:40] jerematic: has joined #ruby
[13:26:31] araujo_: has joined #ruby
[13:28:38] araujo_: has joined #ruby
[13:30:47] araujo_: has joined #ruby
[13:31:37] biberu: has joined #ruby
[13:33:04] maletor3: has joined #ruby
[13:33:05] araujo_: has joined #ruby
[13:33:15] Yiota: has joined #ruby
[13:33:47] scepticulous: has joined #ruby
[13:34:39] banister: has joined #ruby
[13:35:14] araujo_: has joined #ruby
[13:35:27] howdoi: has joined #ruby
[13:40:25] lupine: has joined #ruby
[13:42:43] crystal77: has joined #ruby
[13:44:14] kareeoleez: has joined #ruby
[13:45:33] aryaching: has joined #ruby
[13:49:01] vjacob: has joined #ruby
[13:49:47] ayonkhan: has joined #ruby
[13:52:54] Guest63: has joined #ruby
[13:56:08] hutch34: has joined #ruby
[13:56:12] duoi: has joined #ruby
[13:58:28] magikid: has joined #ruby
[13:58:52] zapata: has joined #ruby
[13:59:22] dmr8: has joined #ruby
[13:59:25] davedev24: has joined #ruby
[13:59:55] Vingador: has joined #ruby
[14:00:58] Yiota: has joined #ruby
[14:02:24] terlar: has joined #ruby
[14:05:03] banister: has joined #ruby
[14:05:10] CJKinni: has joined #ruby
[14:08:41] hahuang65: has joined #ruby
[14:09:23] codecop: has joined #ruby
[14:11:19] jaruga___: has joined #ruby
[14:14:45] allcentury: has joined #ruby
[14:22:00] TomyLobo: has joined #ruby
[14:26:29] solocshaw: has joined #ruby
[14:26:46] duoi: has joined #ruby
[14:27:45] dmr8: has joined #ruby
[14:28:31] giz|work|2: has joined #ruby
[14:28:45] sphex: has joined #ruby
[14:29:56] aries_liuxueyang: has joined #ruby
[14:31:30] allcentury: has joined #ruby
[14:32:15] djbkd: has joined #ruby
[14:33:48] maletor3: has joined #ruby
[14:39:46] kareeoleez: has joined #ruby
[14:42:41] dmr8: has left #ruby: ("Leaving")
[14:44:02] _aeris_: has left #ruby: ("Konversation terminated!")
[14:49:53] hahuang65: has joined #ruby
[14:51:14] dumdedum: has joined #ruby
[14:52:02] duckpuppy: has joined #ruby
[14:52:56] haxrbyte: has joined #ruby
[14:53:14] jaruga___: has joined #ruby
[14:56:32] Ishido: has joined #ruby
[14:59:25] kspencer: ok i'm trying to loop through a hash and check each keys value, with each value if the value is 1 then i want to change the value to true, anything else, make it false, but i seem to be drawing a blank
[15:00:48] haxrbyte: has joined #ruby
[15:01:51] ayonkhan: has joined #ruby
[15:02:27] jhass: hash.each do |k, v| hash[k] = true if v == 1 end
[15:02:55] al2o3-cr: h.each { |k, v| v == 1 ? h[k] = true : h[k] = false }
[15:03:10] al2o3-cr: oops to late
[15:03:27] jhass: I dislike ternary for control flow
[15:03:48] al2o3-cr: yeah, agree
[15:03:54] jhass: and if a non-1 should indeed become false, just h[k] == (v == 1)
[15:03:58] al2o3-cr: is a bit meh
[15:04:03] jhass: eh, single first =
[15:04:20] kspencer: alright thank you
[15:05:33] dionysus69: has joined #ruby
[15:05:56] CJKinni: has joined #ruby
[15:07:49] tjohnson: has joined #ruby
[15:08:03] Alazoral: has joined #ruby
[15:12:11] kspencer: if i want it to ignore a key's value, use continue correct?
[15:13:54] al2o3-cr: kspencer: next, yeah
[15:14:24] haxrbyte: has joined #ruby
[15:16:28] houhoulis: has joined #ruby
[15:17:40] diegoviola: has joined #ruby
[15:17:57] davedev24: has joined #ruby
[15:19:22] haxrbyte: has joined #ruby
[15:19:46] nando293921: has joined #ruby
[15:19:58] kspencer: ok works just how i want it to now
[15:20:53] nando293921: has joined #ruby
[15:21:55] banister: has joined #ruby
[15:22:20] Yuri4_: has joined #ruby
[15:24:26] hightower2: has joined #ruby
[15:24:50] lupine: has joined #ruby
[15:24:58] Yuri4_: this is 1 out of 3 channels I didn't get banned from for saying that
[15:27:12] jerematic: has joined #ruby
[15:31:09] diegoaguilar: has joined #ruby
[15:31:10] hahuang65: has joined #ruby
[15:31:57] Stazer: has joined #ruby
[15:32:43] allcentury: has joined #ruby
[15:34:09] Soraroxasxion: has joined #ruby
[15:34:33] maletor3: has joined #ruby
[15:36:02] jhass: !troll Yuri4_ count again
[15:36:03] ruby[bot]: jhass: Could not process command, usage: !troll nick [channel]
[15:36:10] jhass: !troll Yuri4_
[15:36:11] ruby[bot]: +bbb $a:Yuri4_$#ruby-banned Yuri4_!*@*$#ruby-banned *!*@178.169.87.12$#ruby-banned
[15:36:12] ruby[bot]: ruby[bot] kicked Yuri4_: is a bannable offense, see http://ruby-community.com/pages/user_rules
[15:36:12] ruby[bot]: -bbb michaelreed!*@*$#ruby-banned *!*@gateway/web/freenode/ip.198.72.233.72$#ruby-banned heavyside!*@*$#ruby-banned
[15:36:28] Soraroxasxion: Did I miss something?
[15:36:31] jhass: not about you, welcome ;)
[15:36:50] jhass: anything we can help you with?
[15:37:24] Soraroxasxion: Having trouble with one of my scripts :/ need to get the error to pop up again really quickly to make sure it isn't a one off thing.
[15:37:28] jhass: arkore: shevy please just !ops on such stuff, thanks ;)
[15:39:50] Soraroxasxion: How do I open the debug console?
[15:40:24] 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
[15:40:49] zotherstupidguy: has joined #ruby
[15:44:12] arlek: has joined #ruby
[15:45:53] zotherstupidguy: has joined #ruby
[15:47:00] Soraroxasxion: So it tells, me Script 'Item Effects' Line 213:NoMethod Error occurred. see debug console for more info (https://gist.github.com/anonymous/e4cfcca44ee8dc2f60c23290f8ba5ede)
[15:48:24] jhass: That's not any standard Ruby error message
[15:49:10] moeabdol: has joined #ruby
[15:49:55] mdw: has joined #ruby
[15:50:08] Soraroxasxion: It's a script for rpg maker vx ace, the original author has not been online for, a couple years, they had made a pack where you just move the scripts and resources to a new script, would it be better to seek help elsewhere, If so, sorry for bothering you.
[15:50:42] Ranoppinsky: has joined #ruby
[15:50:47] jhass: no worries
[15:51:40] Soraroxasxion: Would it be better to seek help elsewhere?
[15:52:48] jhass: doesn't look like freenode has a specific channel
[15:53:32] jhass: http://forums.rpgmakerweb.com/ probably?
[15:53:56] Soraroxasxion: okay, thanks for the help.I'll try that.
[15:54:20] StevenXL: has joined #ruby
[15:55:36] tildes_: has joined #ruby
[15:56:51] Ranoppinsky: has joined #ruby
[15:59:33] lupine: has joined #ruby
[16:00:27] duoi: has joined #ruby
[16:02:20] Ranoppinsky: has joined #ruby
[16:04:54] tsou: has joined #ruby
[16:06:55] CJKinni: has joined #ruby
[16:12:22] LoneHerm_: has joined #ruby
[16:13:14] pilne: has joined #ruby
[16:15:56] jaguarmagenta: has joined #ruby
[16:16:00] allcentury: has joined #ruby
[16:16:25] darkxploit: has joined #ruby
[16:17:21] beilabs: has joined #ruby
[16:23:01] fedruantine: has joined #ruby
[16:25:02] kgrz: has joined #ruby
[16:26:20] N1njturt1e: has joined #ruby
[16:26:32] arlek: has joined #ruby
[16:26:47] ElFerna: has joined #ruby
[16:27:10] sepp2k1: has joined #ruby
[16:28:07] jerematic: has joined #ruby
[16:28:55] minimalism: has joined #ruby
[16:30:48] banister: has joined #ruby
[16:31:42] Nahra: has joined #ruby
[16:31:47] moeabdol1: has joined #ruby
[16:31:49] sumobob: has joined #ruby
[16:32:43] terlar: has joined #ruby
[16:35:07] fenre: has joined #ruby
[16:35:22] maletor3: has joined #ruby
[16:36:54] symm-: has joined #ruby
[16:37:01] davedev24: has joined #ruby
[16:37:31] arlek: has joined #ruby
[16:38:02] Cohedrin: has joined #ruby
[16:38:12] ElFerna: has joined #ruby
[16:38:32] CJKinni: has joined #ruby
[16:39:11] banister: has joined #ruby
[16:40:10] flashpoint9: has joined #ruby
[16:41:08] davedev24: has joined #ruby
[16:41:36] [ace]: has joined #ruby
[16:50:11] ramfjord: has joined #ruby
[16:52:39] duckpuppy: has joined #ruby
[16:54:04] duoi: has joined #ruby
[16:55:42] N1njturt1e: has joined #ruby
[16:58:13] jaguarmagenta: has joined #ruby
[17:00:15] pawnbox: has joined #ruby
[17:01:59] statelesscode: has joined #ruby
[17:04:42] N1njturt1e: has joined #ruby
[17:04:55] banister: has joined #ruby
[17:05:03] N1njturt1e: has joined #ruby
[17:05:56] nanoz: has joined #ruby
[17:05:56] nanoz: has joined #ruby
[17:10:10] darkxploit: has joined #ruby
[17:11:02] rippa: has joined #ruby
[17:12:51] Ranoppoletto: has joined #ruby
[17:14:15] mdw: has joined #ruby
[17:15:18] mdw7: has joined #ruby
[17:16:48] allcentury: has joined #ruby
[17:18:59] ElFerna: has joined #ruby
[17:19:44] ramfjord: has joined #ruby
[17:21:09] solocshaw1: has joined #ruby
[17:21:50] weaksauce: has joined #ruby
[17:21:54] mdw: has joined #ruby
[17:26:38] banister: has joined #ruby
[17:28:07] the_drow: has joined #ruby
[17:29:45] DaniG2k: has joined #ruby
[17:30:29] Mon_Ouie: has joined #ruby
[17:30:48] wolffles: has joined #ruby
[17:31:42] illusionmedic: has left #ruby: ()
[17:32:31] the_drow: has joined #ruby
[17:36:12] maletor3: has joined #ruby
[17:43:30] mdw7: has joined #ruby
[17:44:12] mdw7: has joined #ruby
[17:46:17] sumobob: has joined #ruby
[17:47:03] LoneHermit: has joined #ruby
[17:51:18] Dimik: has joined #ruby
[17:57:09] the_drow: has joined #ruby
[17:57:32] fckyoufreenode: has joined #ruby
[18:01:17] zeroDi: has joined #ruby
[18:01:25] Yzguy: has joined #ruby
[18:01:33] goodroot: has joined #ruby
[18:04:03] houhoulis: has joined #ruby
[18:04:42] codecop: has joined #ruby
[18:05:55] Yzguy: has joined #ruby
[18:05:55] djbkd: has joined #ruby
[18:07:13] N1njturt1e: has joined #ruby
[18:08:24] N1njturt_: has joined #ruby
[18:10:15] crystal77: has joined #ruby
[18:11:43] last_staff: has joined #ruby
[18:14:09] PlasmaStar: has joined #ruby
[18:16:22] mleung: has joined #ruby
[18:17:32] rkazak: has joined #ruby
[18:19:19] youch: has joined #ruby
[18:22:06] noodle: has joined #ruby
[18:22:08] LoneHerm_: has joined #ruby
[18:22:32] crystal77: has joined #ruby
[18:23:06] Yzguy: has joined #ruby
[18:24:13] kraken: has joined #ruby
[18:24:29] krakenr: is there a string method for identifying whether a string contains a regex?
[18:24:54] shevy: how would you identify a string that has a regex?
[18:25:27] krakenr: a = "apple"
[18:25:30] soud: with regex!
[18:25:39] krakenr: I want to check whether or not a contains p, l, or e
[18:25:49] Bish: has joined #ruby
[18:26:00] aryaching: has joined #ruby
[18:26:44] soud: a =~ /[ple]/
[18:27:26] krakenr: Hm I never knew about the =~ method
[18:27:29] CJKinni: has joined #ruby
[18:27:33] shevy: I once wanted to have a method on class String to find out whether the string has only numbers
[18:27:38] soud: it's an operator
[18:27:46] the_drow: has joined #ruby
[18:28:03] krakenr: ohhh it returns the index and nil if it's not in there
[18:28:37] mdw: has joined #ruby
[18:28:44] the_drow: has joined #ruby
[18:29:23] jhass: kraken_: you can also just String#match or even String#[]
[18:29:34] jhass: >> "apple"[/[ple]/]
[18:29:36] ruby[bot]: jhass: # => "p" (https://eval.in/583639)
[18:29:47] jhass: >> "banana"[/[ple]/]
[18:29:48] ruby[bot]: jhass: # => nil (https://eval.in/583640)
[18:30:58] pepee: has joined #ruby
[18:32:02] Dimik: has joined #ruby
[18:33:47] Xentil: has joined #ruby
[18:34:22] Suntzu: has joined #ruby
[18:34:25] multi_io: has joined #ruby
[18:36:58] maletor3: has joined #ruby
[18:37:48] Yzguy: has joined #ruby
[18:42:27] Es0teric: has joined #ruby
[18:43:03] the_drow: has joined #ruby
[18:43:12] Es0teric: has joined #ruby
[18:43:57] Es0teric: has joined #ruby
[18:44:05] the_drow: has joined #ruby
[18:44:43] Es0teric: has joined #ruby
[18:46:40] crystal77: has joined #ruby
[18:48:44] speakingcode: has joined #ruby
[18:52:30] arlek: has joined #ruby
[18:53:24] pawnbox: has joined #ruby
[18:53:27] duckpuppy: has joined #ruby
[18:54:33] the_drow_: has joined #ruby
[18:56:13] blackmesa: has joined #ruby
[19:00:25] crystal77: has joined #ruby
[19:07:00] djbkd: has joined #ruby
[19:07:44] dellavg: has joined #ruby
[19:09:14] gremax: has joined #ruby
[19:09:19] allcentury: has joined #ruby
[19:09:46] sumobob: has joined #ruby
[19:13:53] eljimmy: has joined #ruby
[19:14:18] A124: has joined #ruby
[19:15:37] spider-mario: has joined #ruby
[19:20:10] kgrz: has joined #ruby
[19:21:18] araujo__: has joined #ruby
[19:23:35] Kus: has joined #ruby
[19:24:38] drale2k: has joined #ruby
[19:25:23] the_drow: has joined #ruby
[19:26:48] N1njturt1e: has joined #ruby
[19:28:08] CJKinni: has joined #ruby
[19:30:10] jerematic: has joined #ruby
[19:31:52] lightt: has joined #ruby
[19:32:21] the_drow: has joined #ruby
[19:36:00] DylanJ: has joined #ruby
[19:37:42] maletor3: has joined #ruby
[19:37:47] kareeoleez: has joined #ruby
[19:40:37] Madplatypus: has joined #ruby
[19:41:46] gremax: has joined #ruby
[19:42:18] dellavg: has joined #ruby
[19:44:34] Rodya_: has joined #ruby
[19:45:40] drale2k: has joined #ruby
[19:48:03] karmatr0n: has joined #ruby
[19:48:27] lightt: has joined #ruby
[19:52:14] scottschecter: has joined #ruby
[19:52:48] UserInneed: has joined #ruby
[19:54:04] Rodya_: has joined #ruby
[19:55:02] qasaur: has joined #ruby
[19:55:33] the_drow: has joined #ruby
[19:55:36] davedev24: has joined #ruby
[19:58:42] binaryplease1: has joined #ruby
[19:59:21] maloik: has joined #ruby
[19:59:32] dionysus69: has joined #ruby
[19:59:50] CJKinni: has joined #ruby
[20:00:09] crystal77: has joined #ruby
[20:01:56] yqt: has joined #ruby
[20:02:47] Yiota: has joined #ruby
[20:03:03] Respek: has joined #ruby
[20:03:47] bqscott: has joined #ruby
[20:04:22] sarcas: has joined #ruby
[20:06:43] crystal77: has joined #ruby
[20:06:47] gooodroot: has joined #ruby
[20:07:46] djbkd: has joined #ruby
[20:08:17] sdothum: has joined #ruby
[20:10:19] n1x-nz: has joined #ruby
[20:15:28] flashpoint9: has joined #ruby
[20:16:27] the_drow: has joined #ruby
[20:16:59] ips|malc: has joined #ruby
[20:18:02] weemsledeux: has joined #ruby
[20:21:06] kgrz: has joined #ruby
[20:24:24] banister: has joined #ruby
[20:25:36] N1njturt1e: has joined #ruby
[20:25:40] lightt: has joined #ruby
[20:27:03] workmad3: has joined #ruby
[20:27:12] ElFerna: has joined #ruby
[20:27:53] webnanners: has joined #ruby
[20:28:16] domgetter: has joined #ruby
[20:32:08] marr: has joined #ruby
[20:34:11] the_drow: has joined #ruby
[20:34:18] LoneHerm_: has joined #ruby
[20:36:21] eljimmy: has joined #ruby
[20:36:56] Coldblackice: has joined #ruby
[20:38:31] maletor3: has joined #ruby
[20:38:56] webnanners: has left #ruby: ("See Ya!")
[20:39:30] Azure: has joined #ruby
[20:40:31] sergey_makagon: has joined #ruby
[20:40:33] speakingcode: has joined #ruby
[20:42:22] ElFerna: has joined #ruby
[20:43:13] crystal77: has joined #ruby
[20:43:49] freerobby: has joined #ruby
[20:44:03] freerobby: has joined #ruby
[20:46:32] haraigo: has joined #ruby
[20:48:51] LastWhisper____: has joined #ruby
[20:49:00] karmatr0n: has joined #ruby
[20:50:26] flashpoint9: has joined #ruby
[20:50:57] nankyokusei: has joined #ruby
[20:54:39] techietrash: has joined #ruby
[20:55:24] jokke: any go-to gems for system health information quering? (cpu, memory, disk usage etc)
[20:56:22] nankyokusei: has joined #ruby
[20:56:35] the_drow: has joined #ruby
[20:57:23] LoneHerm_: has joined #ruby
[21:00:38] crystal77: has joined #ruby
[21:01:00] the_drow: has joined #ruby
[21:04:40] ljames: has joined #ruby
[21:06:30] zapata: has joined #ruby
[21:06:49] the_drow: has joined #ruby
[21:08:22] domgetter: jokke are you looking for Ruby solutions or tools that people generally use? I've seen a lot of htop usage for unix systems
[21:08:42] jokke: domgetter: no i really mean ruby gems
[21:09:30] jokke: domgetter: i just want an documented api to get system health information
[21:09:48] djbkd: has joined #ruby
[21:09:56] the_drow: has joined #ruby
[21:10:13] CJKinni: has joined #ruby
[21:10:16] N1njturt1e: has joined #ruby
[21:11:25] elifoster: has joined #ruby
[21:11:42] the_drow: has joined #ruby
[21:18:07] lightt: has joined #ruby
[21:19:50] the_drow_: has joined #ruby
[21:21:27] terlar: has joined #ruby
[21:21:38] LoneHerm_: has joined #ruby
[21:22:31] SCHAAP137: has joined #ruby
[21:23:09] kgrz: has joined #ruby
[21:24:02] eserror: has joined #ruby
[21:25:29] the_drow__: has joined #ruby
[21:26:28] N1njturt1e: has joined #ruby
[21:30:35] shevy: like conky!
[21:31:38] jerematic: has joined #ruby
[21:32:39] the_drow: has joined #ruby
[21:32:59] Vingador: has joined #ruby
[21:33:17] PaulCapestany: has joined #ruby
[21:34:17] shevy: jokke do you also need live-monitoring? or just one-time snapshots stats
[21:35:43] crystal77: has joined #ruby
[21:39:16] maletor3: has joined #ruby
[21:39:30] ncthom91: has joined #ruby
[21:39:45] the_drow_: has joined #ruby
[21:39:47] ncthom91: Hi all. I'm trying to upgrade ruby on my system, and no matter what I do I get stuck with ruby 1.9
[21:40:24] ncthom91: Is ruby > 1.9 locked to mac os x > 9.5?
[21:41:12] adaedra: what do you mean by "upgrade ruby"?
[21:41:20] ncthom91: get a newer version of it?
[21:41:29] adaedra: But how do you do it?
[21:41:52] edwardly: has joined #ruby
[21:41:52] edwardly: has joined #ruby
[21:42:10] ncthom91: i've tried `rvm get stable`
[21:42:17] ncthom91: `rvm get stable --auto-dotfiles`
[21:42:19] shevy: perhaps you also have your old ruby
[21:42:37] ncthom91: rvm ls only shows 1.9
[21:43:05] adaedra: rvm get stable updates rvm itself
[21:43:29] adaedra: then you have to install a ruby, e.g. rvm install 2.3.1
[21:43:31] ncthom91: i've also tried `gem update system`
[21:47:13] zapata: has joined #ruby
[21:49:50] nofxx: has joined #ruby
[21:50:21] lalalaaa: has joined #ruby
[21:50:25] lalalaaa: Hi! Is [/'", \s+"'/, '", "'] a valid regex for removing the whitespace in say `"@context": "http://schema.org", "@type": "WebSite"`?
[21:52:48] jokke: shevy: live monitoring
[21:52:55] jokke: shevy: funny you mention conky
[21:52:59] jokke: shevy: i hate it
[21:53:13] jokke: shevy: and i'm writing an alternative
[21:53:26] jokke: which is what i need the live monitoring for
[21:53:52] statelesscode: has joined #ruby
[21:56:40] lalalaaa: Nope didn't work
[21:58:16] the_drow: has joined #ruby
[22:05:12] the_drow: has joined #ruby
[22:06:25] jhass: lalalaaa: could you show real input as a valid ruby literal and desired output?
[22:06:29] diegoviola: has joined #ruby
[22:07:12] Es0teric: has joined #ruby
[22:10:28] djbkd: has joined #ruby
[22:10:59] CJKinni: has joined #ruby
[22:14:53] weemsledeux: has joined #ruby
[22:16:54] domgetter: has joined #ruby
[22:20:49] duncannz: has joined #ruby
[22:21:35] roamingdog: has joined #ruby
[22:21:47] duncannz: has joined #ruby
[22:22:48] duncannz: has joined #ruby
[22:23:01] lightt: has joined #ruby
[22:23:28] duncannz: has joined #ruby
[22:23:52] kgrz: has joined #ruby
[22:24:41] lupine: has joined #ruby
[22:25:48] roamingdog: has joined #ruby
[22:26:52] the_drow: has joined #ruby
[22:27:46] lalalaaa: jhass: Well, I'm trying to minify some JSON-LD. So how do I make say:
[22:27:46] crystal77: has joined #ruby
[22:28:29] lalalaaa: {"@context": "http://schema.org", "@type": "WebSite"} into { "@context": "http://schema.org", "@type": "WebSite" }? I've tried gsub[/\", \s+\"/, ", "], gsub[/"\"}"/, "\" }"] and gsub[/"\"}"/, "\" }"] but that errors out.
[22:28:52] edwardly: has joined #ruby
[22:28:52] edwardly: has joined #ruby
[22:29:19] ledestin: has joined #ruby
[22:29:51] jhass: .squeeze(' ')?
[22:30:12] jhass: or just JSON.parse(..).to_json?
[22:30:33] kent\n: has joined #ruby
[22:30:33] kent\n: has joined #ruby
[22:34:16] the_drow: has joined #ruby
[22:37:24] wolffles: has joined #ruby
[22:38:27] mc_fail: hi everyone
[22:38:54] mc_fail: why i'm getting logger.level = 0 in http://pastebin.com/7ZZwbbgJ ?
[22:38:54] ruby[bot]: mc_fail: as I told you already, please use https://gist.github.com
[22:39:30] mc_fail: whatever, in https://gist.github.com/anonymous/a9a08ce287d6d2dc5781f541479cf032
[22:39:46] Azure|dc: has joined #ruby
[22:39:55] mc_fail: as i understand, @@logger is the same for each class
[22:40:04] maletor3: has joined #ruby
[22:42:00] mc_fail: i have found few examples with singleton wrapper for logging, but it doesn't look like a good solution
[22:43:45] eserror_: has joined #ruby
[22:44:17] the_drow: has joined #ruby
[22:44:22] lalalaaa: jhass: It's actually part of this middleware I got my app running which minifies HTML and inline JS: https://gist.github.com/anonymous/35cf4eb4e2f64e6f42a1a7ccbafcd248
[22:44:27] blackmesa: has joined #ruby
[22:46:09] jhass: I wonder whether the time you save with that in page load time and parsing actually outweights the increased request time of doing it
[22:46:57] nexace: has joined #ruby
[22:47:16] mc_fail: maybe you guys can point me for any best-practice solution, four sharing logger instance across all classes?
[22:47:22] Rodya_: has joined #ruby
[22:47:28] mc_fail: (without using global variables)
[22:47:38] nexace: I'm getting this error on: sudo gem install hpricot http://pastebin.com/mQekZ0uF -- any help would be appreciated (ruby noob)
[22:47:39] ruby[bot]: nexace: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/24b474606075717f81926c81b61b0901
[22:47:40] ruby[bot]: nexace: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[22:47:43] pilne: has joined #ruby
[22:48:12] jhass: nexace: install ruby-dev or ruby-devel, whatever it is on your distro
[22:48:55] nexace: jhass: thanks a lot
[22:50:08] lalalaaa: jhass: I thought it looked innocent ;)
[22:51:29] Rodya__: has joined #ruby
[22:52:20] bollullera: has joined #ruby
[22:53:06] bollullera: has left #ruby: ()
[22:54:04] Rodya__: has joined #ruby
[22:54:55] duckpuppy: has joined #ruby
[22:55:00] nofxx: mc_fail, LOG = your log, you knowyou can use syslog? very cool
[22:55:10] nofxx: and just use LOG everywhere... LOG.info, LOG.warn...
[22:56:11] mc_fail: nofxx the question was about changing log level
[22:57:34] nofxx: mc_fail, it's a cli app? Use env vars
[22:58:03] mc_fail: i have class1, in which i can change log level to 'debug' for example, but if i create instance of class2 inside class1, in class2 log level resets back to default
[22:58:11] DanielI: has joined #ruby
[22:58:20] LastWhisper____: has joined #ruby
[22:58:43] mc_fail: just look on https://gist.github.com/anonymous/a9a08ce287d6d2dc5781f541479cf032
[22:58:53] nofxx: mc_fail, set it only on one place, outside classes, on your main module, as I said first
[22:59:30] mc_fail: nofxx cool, but if i need to change it outside main class?
[22:59:55] nofxx: log level is not something you should change in runtime imho... can't remember or something that does it
[23:00:12] nofxx: mc_fail, just override the constant
[23:00:40] nofxx: actually it won't 'override' per se, as you'll change the object inside
[23:01:11] mc_fail: nofxx actually, setting it in main is ok for me, but the problem is: how to access it in other classes?
[23:01:18] nofxx: mc_fail, more like you restart your app to change log level, you see?
[23:01:22] mc_fail: i mean. the instance
[23:01:31] Azure: has joined #ruby
[23:01:41] qasaur: has joined #ruby
[23:01:42] nofxx: constants are avaiable to everyone, everywhere
[23:01:50] UserInneed: has joined #ruby
[23:02:18] mc_fail: nofxx you meain, use global variable for that?
[23:02:39] nofxx: mc_fail, another option is a self.method on your main module: MyApp.loginfo ... MyApp.log_warn 'foo' ... well, anyway you want
[23:02:52] nofxx: mc_fail, no, a CONSTANT
[23:03:21] nofxx: CONSTANT | @@globalvar | @instancevar | var
[23:03:28] weemsledeux: has joined #ruby
[23:03:54] nofxx: or a class method, gotta go, back soon
[23:05:52] qasaur: has joined #ruby
[23:08:33] rkazak: has joined #ruby
[23:08:58] webnanners: has joined #ruby
[23:08:59] nankyokusei: has joined #ruby
[23:11:17] djbkd: has joined #ruby
[23:11:55] Rodya_: has joined #ruby
[23:11:59] CJKinni: has joined #ruby
[23:13:38] scepticulous: has joined #ruby
[23:14:37] agent_white: has joined #ruby
[23:18:07] arooni: has joined #ruby
[23:18:57] nando293921: has joined #ruby
[23:19:44] nettoweb: has joined #ruby
[23:20:10] nando293921: has joined #ruby
[23:20:30] diegoaguilar: has joined #ruby
[23:24:38] kgrz: has joined #ruby
[23:24:47] nadir: has joined #ruby
[23:29:45] tabakhase: has joined #ruby
[23:31:12] araujo_: has joined #ruby
[23:31:50] koooge: has joined #ruby
[23:31:51] koooge_: has joined #ruby
[23:32:09] N1njturt1e: has joined #ruby
[23:33:11] jerematic: has joined #ruby
[23:33:19] Yzguy: has joined #ruby
[23:34:24] flashpoint9: has joined #ruby
[23:35:19] razzsicle: has joined #ruby
[23:36:59] aeterne: has joined #ruby
[23:39:59] crystal77: has joined #ruby
[23:40:54] maletor3: has joined #ruby
[23:42:43] al2o3-cr: has joined #ruby
[23:44:45] arescorpio: has joined #ruby
[23:45:00] davedev24: has joined #ruby
[23:52:51] razzsicle: so many people talking
[23:55:07] Radar: razzsicle: Yes.
[23:55:26] eserror_: that would be good.
[23:55:43] duckpuppy: has joined #ruby
[23:56:34] KillerFox: has joined #ruby
[23:57:08] RobertBirnie: has joined #ruby
[23:58:01] lightt: has joined #ruby