« Back to channel list

#ruby - 08 July 2016

« Back 1 day Forward 1 day »
[00:02:25] isene: has joined #ruby
[00:03:01] LoneHerm_: has joined #ruby
[00:03:40] dmak1112: ok, i fixed them, and i pasted the code where it is saying it is getting an error
[00:03:49] dmak1112: let me know what else i can do thank you!
[00:05:19] Ponyo: has joined #ruby
[00:05:27] toretore: you can make sure the line numbers in your gist match those in the error message by pasting entire files independently
[00:05:57] toretore: (and fix the newlines)
[00:06:44] pawnbox: has joined #ruby
[00:07:16] Radar: ?gist-usage
[00:07:16] ruby[bot]: Radar: I don't know anything about gist-usage
[00:07:33] Radar: dmak1112: https://github.com/radar/guides/blob/master/using-gist.markdown
[00:08:17] rkazak: has joined #ruby
[00:09:39] dmak1112: ok thanks! let me fix this
[00:10:58] nankyokusei: has joined #ruby
[00:11:52] toretore: there is something wrong with the data being given to write_points, figure out what the data looks like and where it's coming from
[00:12:27] dmak1112: ok, so i thought it was something like that. the confusion i have is that the data that is giving an error looks almost exactly like the data that is working
[00:12:39] dmak1112: ill post it on the gist
[00:12:40] toretore: give information
[00:14:05] dmak1112: ok its on the gist i called it "Data information"
[00:14:45] toretore: 5 bucks says it's "centos6.7"
[00:15:18] dmak1112: do you have venmo?
[00:15:27] dmak1112: how can i check if thats the issue?
[00:15:27] toretore: figure out how it's parsed and what data is then passed on
[00:16:46] leea: has joined #ruby
[00:17:05] leea: i think it's ?gist
[00:19:34] dmak1112: i've got it to print the data before it tries to insert it
[00:19:36] dmak1112: ill post it on the gist
[00:21:51] JoshGlzBrk: has joined #ruby
[00:23:49] dmak1112: so its on the gist in data output... i guess for some reason its receiving the output "centos6.7....." but somehow parses it into nothingness
[00:24:03] jaguarmagenta: has joined #ruby
[00:25:01] igam`: has joined #ruby
[00:26:09] allcentury: has joined #ruby
[00:28:04] leea: can you paste the gist
[00:29:35] LoneHerm_: has joined #ruby
[00:30:08] dmak1112: ok, i've updated the gist with the relevant information now https://gist.github.com/dmak1112/47976150ab2917b3ca1a67803de72010
[00:30:20] coffeecupp: has joined #ruby
[00:30:38] dmak1112: basically im receiving two sets of data and for one of them it seems to parse correctly and upload to influxdb, and for the other it somewhere gets mixed up
[00:37:55] leea: I'm not sure what I'm looking at
[00:38:38] dmak1112: so i've got two sets of data that this ruby script is receiving and trying to convert into data that it pushes to influxdb
[00:38:40] leea: I see a mix of JSON hashes and ruby hash "data output"
[00:39:28] dmak1112: for the first set of data, tdrr-sensu-server, its converting it into some hash and writing it correctly, but for the other set of data, it's not
[00:39:49] dmak1112: sorry let me update data output section to make it more clear
[00:42:05] dmak1112: ok i've updated it it only has ruby hash data output now
[00:43:26] leea: have you tried using pry to debug?
[00:44:05] macsteps: has joined #ruby
[00:44:08] dmak1112: no i haven't let me look up pry
[00:46:04] neo_: has joined #ruby
[00:46:37] hazelux: has joined #ruby
[00:48:48] arlek: has joined #ruby
[00:50:30] weaksauce: has joined #ruby
[00:50:50] Hobogrammer: has joined #ruby
[00:51:21] mistermocha: has joined #ruby
[00:53:12] elifoster: has joined #ruby
[00:54:25] RegulationD: has joined #ruby
[00:55:32] mistermocha: has joined #ruby
[00:57:13] ReK2: has joined #ruby
[00:57:13] ReK2: has joined #ruby
[00:58:10] pawnbox: has joined #ruby
[00:59:21] kevr: has joined #ruby
[01:00:58] JeanCarloMachado: has joined #ruby
[01:01:46] jenrzzz: has joined #ruby
[01:01:49] shinnya: has joined #ruby
[01:02:29] aaeron: has joined #ruby
[01:02:49] dmak1112: for anyone interested it was because it was separating output by "." and the hostname "centos6.7" had a period so it was calculating an additional tag and crashing. so i owe toretore 5 bucks
[01:02:57] hahuang61: has joined #ruby
[01:02:58] daffy_duck_2: has joined #ruby
[01:04:53] dmak1112: thanks for your help guys!
[01:04:54] dmak1112: has left #ruby: ("Ex-Chat")
[01:07:52] hellcode: has joined #ruby
[01:14:36] charliesome: has joined #ruby
[01:15:52] skweek: has joined #ruby
[01:18:09] coffeecupp: has joined #ruby
[01:20:52] mistermocha: has joined #ruby
[01:21:14] z3ndrag0n: has joined #ruby
[01:22:49] roamingdog: has joined #ruby
[01:29:32] karapetyan: has joined #ruby
[01:31:05] kinduff: has joined #ruby
[01:38:05] v0n: has joined #ruby
[01:41:47] colegatron_origi: has joined #ruby
[01:44:08] Ponyo: has joined #ruby
[01:46:09] TheWhip: has joined #ruby
[01:47:21] coffeecupp: has joined #ruby
[01:50:06] nando293921: has joined #ruby
[01:50:53] mistergibson: has joined #ruby
[01:51:26] ekinmur: has joined #ruby
[01:51:34] watersoul: has joined #ruby
[01:51:36] pawnbox: has joined #ruby
[01:55:58] UnKnOwN|: has joined #ruby
[01:56:13] watersoul: has joined #ruby
[01:56:31] gizless: is there a identd2www interface, that unsures your nickname everywhere, even on fuckbook? (no typo)?
[01:56:40] gizless: now there is!
[01:57:03] gizmore: Global Nick IdentD Service Protocol thingy \o/
[01:57:25] gizmore: it ensures your nickname on the internet...
[01:57:34] zacts: has joined #ruby
[01:57:45] gizmore: we use DNS to ensure the nick is yours
[01:58:05] gizmore: like gizmore.org is me
[01:58:24] gizmore: so you will be gizmore.org in any state
[01:58:53] gizmore: like DANE+IdentD maybe? ... sry for short posts
[01:58:56] ascarter: has joined #ruby
[02:02:42] MuffinPimp: has joined #ruby
[02:04:55] enterprisey: has joined #ruby
[02:07:02] mistermocha: has joined #ruby
[02:09:47] Yzguy: has joined #ruby
[02:09:48] enterprisey_: has joined #ruby
[02:11:12] pwnd_nsfw: has joined #ruby
[02:11:50] nankyokusei: has joined #ruby
[02:14:36] LoneHermit: has joined #ruby
[02:15:40] flashpoint9: has joined #ruby
[02:15:43] nettoweb: has joined #ruby
[02:15:45] blackmesa: has joined #ruby
[02:19:29] kriskropd: has joined #ruby
[02:24:48] jaguarmagenta: has joined #ruby
[02:27:37] pawnbox: has joined #ruby
[02:33:12] jaguarmagenta: has joined #ruby
[02:33:55] Asher: has joined #ruby
[02:35:34] coffeecupp: has joined #ruby
[02:37:31] Xiti: has joined #ruby
[02:38:10] pdoherty: has joined #ruby
[02:42:04] karapetyan: has joined #ruby
[02:44:35] zacstewart: has joined #ruby
[02:46:23] elifoster: has joined #ruby
[02:52:19] nofxx: Remember I did this, but can't remember: Any quick way to hsh.merge() only merge nil keys on hsh?
[02:52:59] nofxx: { a: 5 }.something { a: 6, b: 7} => { a: 5, b: 7 }
[02:53:28] zacts: hi rubyists
[02:53:28] nofxx: duh... just reverse, how dumb.. sorry
[02:53:49] nofxx: zacts, hey there
[02:54:04] RegulationD: has joined #ruby
[02:55:42] mistermocha: has joined #ruby
[02:57:07] `tim`: has joined #ruby
[03:02:19] Vingador: has joined #ruby
[03:03:35] pawnbox: has joined #ruby
[03:03:42] hahuang61: has joined #ruby
[03:03:52] mistermocha: has joined #ruby
[03:04:42] mistermocha: has joined #ruby
[03:05:45] chipotle: has joined #ruby
[03:05:55] SilverKey: has joined #ruby
[03:07:48] BTRE: has joined #ruby
[03:14:34] gix: has joined #ruby
[03:15:40] LoneHermit: has joined #ruby
[03:15:49] jenrzzz: has joined #ruby
[03:15:50] jenrzzz: has joined #ruby
[03:17:04] roamingdog: has joined #ruby
[03:17:30] blackmesa: has joined #ruby
[03:19:08] braincras: has joined #ruby
[03:22:39] treaki_: has joined #ruby
[03:23:50] ReK2GnULinuX: has joined #ruby
[03:23:54] ReK2GnULinuX: has joined #ruby
[03:25:43] SilverKey: has joined #ruby
[03:27:03] dc4: has joined #ruby
[03:28:19] chouhoul_: has joined #ruby
[03:36:26] TheWhip: has joined #ruby
[03:37:17] c0mrad3: has joined #ruby
[03:39:00] Yzguy: has joined #ruby
[03:48:56] mistermocha: has joined #ruby
[03:49:39] mistermocha: has joined #ruby
[03:51:04] jeffreylevesque: has joined #ruby
[03:51:15] jeffreylevesque: is this directly a gem problem - https://travis-ci.org/jeff1evesque/machine-learning#L1435-L1456?
[03:53:09] colegatron_origi: has joined #ruby
[03:55:17] llua: looks like a permissions issue
[03:57:35] queequeg1: has joined #ruby
[03:59:46] jeffreylevesque: llua: i think you're right. i didn't have any errors until i removed the `sudo` - https://github.com/jeff1evesque/machine-learning/blob/master/.travis.yml#L68-L69
[04:01:16] TheWhip: has joined #ruby
[04:05:18] rickmasta: has joined #ruby
[04:07:47] pontiki: has joined #ruby
[04:08:43] tmtwd: has joined #ruby
[04:09:43] harfangk: has joined #ruby
[04:09:44] coffeecupp: has joined #ruby
[04:11:51] kareeoleez: has joined #ruby
[04:12:40] nankyokusei: has joined #ruby
[04:13:03] charliesome: has joined #ruby
[04:15:26] kareeole_: has joined #ruby
[04:16:00] pawnbox: has joined #ruby
[04:17:13] LoneHerm_: has joined #ruby
[04:17:40] hahuang61: has joined #ruby
[04:22:46] blackmesa: has joined #ruby
[04:25:03] hahuang61: has joined #ruby
[04:27:27] vdamewood: has joined #ruby
[04:30:22] duncannz: has joined #ruby
[04:30:43] karapetyan: has joined #ruby
[04:31:04] duncannz: has joined #ruby
[04:31:50] coffeecupp: has joined #ruby
[04:33:29] astrobunny: has joined #ruby
[04:38:17] rkazak: has joined #ruby
[04:38:45] jenrzzz: has joined #ruby
[04:38:54] jenrzzz: has joined #ruby
[04:39:24] blackgoat: has joined #ruby
[04:41:37] Macaveli: has joined #ruby
[04:45:11] Tempesta: has joined #ruby
[04:46:13] coffeecupp: has joined #ruby
[04:46:37] ensyde__: has joined #ruby
[04:47:34] Madplatypus: has joined #ruby
[04:47:37] astrobunny: has joined #ruby
[04:51:57] pawnbox: has joined #ruby
[04:53:09] AndrewIsHere: has joined #ruby
[04:55:04] RegulationD: has joined #ruby
[04:55:20] flashpoint9: has joined #ruby
[04:55:41] alfiemax: has joined #ruby
[04:56:42] kareeoleez: has joined #ruby
[04:58:53] eprasad: has joined #ruby
[04:59:54] smathy: has joined #ruby
[04:59:58] joonty: has joined #ruby
[05:02:04] Vingador_: has joined #ruby
[05:02:49] ddffg: has joined #ruby
[05:07:54] jenrzzz: has joined #ruby
[05:08:06] kareeole_: has joined #ruby
[05:09:59] pawnbox: has joined #ruby
[05:10:00] zacts: has joined #ruby
[05:10:03] CloCkWeRX: has joined #ruby
[05:13:21] kareeoleez: has joined #ruby
[05:14:41] tvw: has joined #ruby
[05:17:02] mistermocha: has joined #ruby
[05:18:13] LoneHermit: has joined #ruby
[05:21:09] charliesome: has joined #ruby
[05:22:17] djbkd: has joined #ruby
[05:23:43] wldcordeiro: has joined #ruby
[05:25:49] blackmesa: has joined #ruby
[05:28:48] pawnbox_: has joined #ruby
[05:29:53] TheWhip: has joined #ruby
[05:32:17] LoneHerm_: has joined #ruby
[05:35:03] mitt3ns: has joined #ruby
[05:37:54] charliesome: has joined #ruby
[05:41:31] harfangk: has joined #ruby
[05:43:01] aufi: has joined #ruby
[05:45:50] leea: has joined #ruby
[05:49:25] dtzuzu: has joined #ruby
[05:53:01] nando293921: has joined #ruby
[05:54:28] nando293921: has joined #ruby
[05:55:26] buharin: has joined #ruby
[05:55:36] buharin: I installed gem
[05:55:42] buharin: but no gem path added
[05:56:40] yfeldblum: has joined #ruby
[05:56:45] vuoto: has joined #ruby
[05:56:46] astrobun_: has joined #ruby
[06:03:42] Silthias: has joined #ruby
[06:05:26] Radar: buharin: We're going to need more info.
[06:05:58] kevr: has joined #ruby
[06:06:33] zacts: has joined #ruby
[06:06:47] pawnbox: has joined #ruby
[06:07:25] Silthias1: has joined #ruby
[06:07:48] daumie: has joined #ruby
[06:08:19] R_B98: has joined #ruby
[06:09:40] pawnbox: has joined #ruby
[06:10:08] kareeoleez: has joined #ruby
[06:10:17] burgestrand: has joined #ruby
[06:11:25] solars: has joined #ruby
[06:12:25] kareeoleez: has joined #ruby
[06:13:35] nankyokusei: has joined #ruby
[06:16:16] buharin: Radar, I got rvm
[06:16:19] buharin: installem gem
[06:16:32] buharin: and when I am trying to run sample app
[06:17:21] Radar: buharin: Are there any errors?
[06:17:39] buharin: `<main>': uninitialized constant Shoes (NameError)
[06:18:18] jenrzzz: has joined #ruby
[06:18:18] jenrzzz: has joined #ruby
[06:19:04] z3ndrag0n: has joined #ruby
[06:20:32] shevy: looks like it can not find the gem
[06:20:58] Radar: buharin: Did you do require 'shoes' first?
[06:21:02] rkazak: has joined #ruby
[06:22:31] mistermocha: has joined #ruby
[06:25:10] AndrewIsHere: has joined #ruby
[06:25:48] hahuang61: has joined #ruby
[06:26:25] coffeecupp: has joined #ruby
[06:26:42] cd-rum: has joined #ruby
[06:27:35] blackmesa: has joined #ruby
[06:27:48] z3ndrag0n: has joined #ruby
[06:27:53] conta: has joined #ruby
[06:28:40] andikr: has joined #ruby
[06:29:29] tmtwd: has joined #ruby
[06:32:01] firstdayonthejob: has joined #ruby
[06:32:19] buharin: has joined #ruby
[06:33:55] zacts: has joined #ruby
[06:33:59] Pupeno: has joined #ruby
[06:34:46] bluOxigen: has left #ruby: ()
[06:37:39] howdoi: has joined #ruby
[06:39:14] dminuoso: has joined #ruby
[06:41:05] coffeecupp: has joined #ruby
[06:42:07] zacstewart: has joined #ruby
[06:45:45] pawnbox: has joined #ruby
[06:46:49] Abonec: has joined #ruby
[06:53:24] aganov: has joined #ruby
[06:54:51] ur5us: has joined #ruby
[06:55:53] RegulationD: has joined #ruby
[06:55:55] codecop: has joined #ruby
[06:57:59] aibot: has joined #ruby
[06:58:26] Macaveli: has joined #ruby
[06:58:29] A_Drone: has joined #ruby
[06:58:41] alfiemax: has joined #ruby
[07:00:00] charliesome: has joined #ruby
[07:00:55] karapetyan: has joined #ruby
[07:01:21] jaruga___: has joined #ruby
[07:03:34] digneety: has joined #ruby
[07:05:16] dionysus69: has joined #ruby
[07:06:38] deecross: has joined #ruby
[07:06:41] ghr: has joined #ruby
[07:06:57] dminuoso: has joined #ruby
[07:06:57] SuperLag: has joined #ruby
[07:07:04] raeoks: has joined #ruby
[07:07:54] haxrbyte: has joined #ruby
[07:07:59] colegatron_origi: has joined #ruby
[07:08:13] charliesome: has joined #ruby
[07:10:23] vondruch: has joined #ruby
[07:15:33] blaxter: has joined #ruby
[07:15:45] SuperLag: has joined #ruby
[07:16:37] aibot: has joined #ruby
[07:16:37] vuoto: has joined #ruby
[07:17:20] TomyWork: has joined #ruby
[07:18:43] mark_66: has joined #ruby
[07:18:43] aibot: has joined #ruby
[07:22:43] SuperLag: has joined #ruby
[07:23:46] atomx: has joined #ruby
[07:26:17] deecross: has joined #ruby
[07:26:40] chipotle: has joined #ruby
[07:26:43] Ishido: has joined #ruby
[07:29:21] internetbird: has joined #ruby
[07:29:22] blackmesa: has joined #ruby
[07:29:27] Pupeno: has joined #ruby
[07:31:16] coffeecupp: has joined #ruby
[07:31:49] coffeecupp: has joined #ruby
[07:32:40] chipotle: has joined #ruby
[07:33:16] vuoto: has joined #ruby
[07:33:34] Kedare: has joined #ruby
[07:35:03] anisha: has joined #ruby
[07:36:11] colegatron_origi: has joined #ruby
[07:39:47] haxrbyte: has joined #ruby
[07:41:12] kevr: has joined #ruby
[07:41:51] dkam: has joined #ruby
[07:43:50] digneety: has joined #ruby
[07:45:36] zacts: guten morgen
[07:45:49] zacts: I guess it's now morning for me
[07:46:01] internetbird: has joined #ruby
[07:46:05] zacts: I'm reading Eloquent Ruby. I'm now Officially 1/2 way through it
[07:46:14] zacts: I'm reading Eloquent Ruby. I'm now Officially 1/2 way through it
[07:46:19] zacts: I really like it
[07:48:23] vuoto: has joined #ruby
[07:49:21] multi_io: has joined #ruby
[07:51:39] flughafen_: has joined #ruby
[07:52:07] A_Drone: has joined #ruby
[07:53:01] ferr: has joined #ruby
[07:54:16] zacts: oops didn't mean to paste twice
[07:55:03] craigp: has joined #ruby
[07:55:06] coffeejunk: has joined #ruby
[07:57:21] vuoto: has joined #ruby
[07:57:22] alfiemax: has joined #ruby
[07:57:36] madhatter: has joined #ruby
[08:00:14] Pupeno: has joined #ruby
[08:02:20] Pupeno: has joined #ruby
[08:02:32] Dimik: has joined #ruby
[08:04:42] ngw: has joined #ruby
[08:04:45] heinrich5991: has joined #ruby
[08:09:27] skade: has joined #ruby
[08:10:43] Pupeno: has joined #ruby
[08:11:33] hahuang61: has joined #ruby
[08:11:49] teclator: has joined #ruby
[08:12:48] zacts: has joined #ruby
[08:14:23] nankyokusei: has joined #ruby
[08:15:04] shevy: it is too late!
[08:15:06] shevy: you must be punished
[08:15:54] blackmesa: has joined #ruby
[08:16:17] sethetter: has joined #ruby
[08:16:58] Evan: has joined #ruby
[08:16:58] Pupeno: has joined #ruby
[08:17:00] zacts: shevy: lol
[08:17:06] axisys: has joined #ruby
[08:17:13] alnewkirk: has joined #ruby
[08:17:35] Sammichmaker: has joined #ruby
[08:17:38] brainslug: has joined #ruby
[08:17:59] mistermocha: has joined #ruby
[08:19:58] vuoto_: has joined #ruby
[08:21:20] Pupeno: has joined #ruby
[08:22:22] z3ndrag0n: has joined #ruby
[08:23:47] bweston92: has joined #ruby
[08:24:44] Silthias: has joined #ruby
[08:25:01] connor_goodwolf: has joined #ruby
[08:26:29] Pupeno: has joined #ruby
[08:27:26] ramfjord: has joined #ruby
[08:27:33] A_Drone_: has joined #ruby
[08:28:21] marr: has joined #ruby
[08:28:48] vuoto: has joined #ruby
[08:31:00] haxrbyte: has joined #ruby
[08:31:20] senayar: has joined #ruby
[08:31:20] senayar: has joined #ruby
[08:31:31] tomphp: has joined #ruby
[08:34:57] Silthias: has joined #ruby
[08:35:58] Silthias1: has joined #ruby
[08:37:47] Boatkenende: has joined #ruby
[08:38:55] nhhc: has joined #ruby
[08:41:27] coffeecupp: has joined #ruby
[08:43:15] LoneHermit: has joined #ruby
[08:44:40] agit0: has joined #ruby
[08:46:37] yonatankoren: has joined #ruby
[08:46:51] AlexRussia: has joined #ruby
[08:48:26] ecksit: has joined #ruby
[08:48:56] Mon_Ouie: has joined #ruby
[08:56:02] chipotle_: has joined #ruby
[08:56:41] RegulationD: has joined #ruby
[09:01:55] burgestrand: has joined #ruby
[09:01:58] karapetyan: has joined #ruby
[09:01:58] lxsameer: has joined #ruby
[09:02:37] alfiemax: has joined #ruby
[09:06:37] TheHodge: has joined #ruby
[09:06:56] Pupeno: has joined #ruby
[09:08:13] acepil: has joined #ruby
[09:11:06] burgestrand: has joined #ruby
[09:11:49] Pupeno: has joined #ruby
[09:11:49] Pupeno: has joined #ruby
[09:12:17] digneety: has joined #ruby
[09:12:37] sanjayu: has joined #ruby
[09:13:04] vuoto: has joined #ruby
[09:13:14] toretore: has joined #ruby
[09:13:18] nocco: has joined #ruby
[09:14:42] burgestrand: has joined #ruby
[09:14:46] bluOxigen: has joined #ruby
[09:14:57] zacts: how can metaprogramming simplify complexity?
[09:15:24] vuoto: has joined #ruby
[09:16:04] PaulCapestany: has joined #ruby
[09:17:40] vuoto: has joined #ruby
[09:24:00] wldcordeiro: has joined #ruby
[09:25:35] mark_66: has left #ruby: ("PART #RubyOnRails :PART #elixir-lang :PART #crystal-lang :PONG :wilhelm.freenode.net")
[09:27:25] coffeecupp: has joined #ruby
[09:28:09] dminuoso: zacts: Metaprogramming is a rather generic term, so it's hard to answert that question.
[09:28:12] bluOxigen: has joined #ruby
[09:29:09] blackmesa: has joined #ruby
[09:30:06] Shashikant86: has joined #ruby
[09:30:15] A_Drone: has joined #ruby
[09:31:08] A_Drone_: has joined #ruby
[09:32:21] zacts: hrm... I'm still learning
[09:32:36] zacts: so my question is very likely naive. :-P
[09:33:00] bluOxigen: has joined #ruby
[09:33:31] dminuoso: zacts: Well, not as much naive as not specific enough.
[09:33:52] zacts: what would be an example of a more specific question for this?
[09:33:54] dminuoso: zacts: Metaprogramming is anything where your program itself is treated as data from the program.
[09:34:28] nettoweb: has joined #ruby
[09:34:36] digneety: has joined #ruby
[09:34:49] zacts: ok, so I guess a program where it actually modifies parts of the program
[09:34:54] zacts: like self-modifying classes
[09:34:57] dminuoso: zacts: Not necessarily modification.
[09:35:22] zacts: but I mean my question would be on a Ruby program that modifies classes while running?
[09:35:34] zacts: I don't know. I'm trying to decide if I should learn metaprogramming at all yet
[09:35:51] zacts: via this Metaprogramming Ruby2 book
[09:36:19] zacts: what are the concepts of this book useful for?
[09:36:36] zacts: will it really improve my code tremendously, or is it for special side use-cases?
[09:36:40] dminuoso: zacts: Well, there are many techniques that at times can be quite useful in order to create elegant solutions.
[09:37:24] dminuoso: zacts: Perhaps it would be a good idea for an example.
[09:38:24] dminuoso: zacts: https://gist.github.com/anonymous/7d972a7e8aa1187fc59a53a26746962d
[09:38:55] dminuoso: zacts: This is a mixin to allow plain Ruby classes to have rails-type associations with actual database models.
[09:39:06] dminuoso: And it relies on some basic metaprogramming techniques, such as define_method.
[09:39:54] zacts: so it creates the attr_ style methods on the spot?
[09:40:03] zacts: instead of you having to explicitly code those in yourself?
[09:40:04] harfangk: has joined #ruby
[09:40:10] dminuoso: zacts: Exactly.
[09:40:22] zacts: so it can save lots of duplication it sounds like?
[09:40:33] dminuoso: That is one huge usecase for such techniques, but not the only.
[09:42:59] zacts: thanks for the example
[09:44:17] yqt: has joined #ruby
[09:44:19] LoneHermit: has joined #ruby
[09:44:40] astrobun_: has joined #ruby
[09:45:27] jrabe: has left #ruby: ("Leaving")
[09:47:47] chip_: has joined #ruby
[09:48:32] workmad3: has joined #ruby
[09:48:57] dkam: has joined #ruby
[09:50:10] jrabe: has joined #ruby
[09:52:58] alfiemax: has joined #ruby
[09:55:21] allcentury: has joined #ruby
[09:56:52] roshanavand: has joined #ruby
[09:58:06] ffgghhj: has joined #ruby
[10:03:57] user_corrupt: has joined #ruby
[10:04:56] pawnbox: has joined #ruby
[10:06:08] user_corrupt: new to ruby... wanna install it on an Amazon Web Services instance of Amazon Linux that I am running (in order to run some exotic CSS3 library that I don't quite understand yet)... is it hard to install?
[10:07:13] Vingador: has joined #ruby
[10:08:36] TheWhip: has joined #ruby
[10:09:10] atomx: user_corrupt: isn't `yum -y install ruby` enough?
[10:09:44] dorenkampm: has joined #ruby
[10:10:28] user_corrupt: atom_: yeah, I guess that it is... was confused by some other instructions that I had found.. thanks
[10:11:01] Hobogrammer: has joined #ruby
[10:11:23] dorenkampm: how can i transform ['1.2.3.4','1.2.3.5'] to [{'PrivateIpAddress' => '1.2.3.4', 'Primary' => false}, {'PrivateIpAddress' => '1.2.3.5', 'Primary' => false}] ?
[10:12:18] hahuang61: has joined #ruby
[10:13:14] zacts: has joined #ruby
[10:13:19] user_corrupt: did "gem install compass" and received the following output + error: http://paste.ee/p/cO3pG
[10:13:40] canton7: have you installed the ruby headers?
[10:14:02] canton7: I think the package is 'ruby-dev' on ubuntu
[10:14:23] atomx: ruby-devel on RHEL-based (hence amazon linux)
[10:15:14] nankyokusei: has joined #ruby
[10:15:50] canton7: is "amazon linux" a new thing? last time I played around with ec2, they were pushing ubuntu-based amis
[10:15:58] harfangk: has joined #ruby
[10:16:30] canton7: 2011, apparently
[10:18:11] Vingador: has joined #ruby
[10:20:59] digneety: has joined #ruby
[10:21:42] user_corrupt: did "sudo yum -y install ruby-devel" and got this output (no errors): http://paste.ee/p/qwzrT and then did "gem install compass" and got this output (with errors): http://paste.ee/p/pXOUq
[10:22:13] canton7: user_corrupt, "You have to install development tools first."
[10:23:42] AlexRussia: has joined #ruby
[10:23:50] canton7: googling that and redhat, I get to https://developer.fedoraproject.org/tech/languages/ruby/gems-installation.html, which gives instructions right at the top
[10:24:21] dminuoso: user_corrupt: You should try to avoid your system ruby. Linux distributions are known for shipping outdated Ruby versions, and usually you get all kinds of problems when you try to run multiple Ruby versions.
[10:24:37] jrabe: has left #ruby: ("Leaving")
[10:24:57] canton7: yeah, but that is not the problem here
[10:24:58] nocco: has joined #ruby
[10:25:34] dminuoso: canton7: Regardless. Unless ruby-install (or rbenv/rvm is you are still a fan of those) doesn't work, yum should not be the first choice.
[10:26:09] canton7: I don't disagree - I just think you should only solve one problem at a time :P
[10:26:09] al2o3-cr: you gotta love arch linux :)
[10:26:10] dminuoso: user_corrupt: That Ruby (2.0) is extremely old.
[10:27:54] AndrewIsHere: has joined #ruby
[10:28:51] al2o3-cr: >> ip_list = ['1.2.3.4','1.2.3.5']; ip_list.map { |ip| {'PrivateIpAddress' => ip, 'Primary' => false} } # dorenkampm incase you wasn't sure
[10:28:52] ruby[bot]: al2o3-cr: # => [{"PrivateIpAddress"=>"1.2.3.4", "Primary"=>false}, {"PrivateIpAddress"=>"1.2.3.5", "Primary"=>false ...check link for more (https://eval.in/602433)
[10:30:41] user_corrupt: ok, well I've now got compass installed on my out of date crappy ruby
[10:32:33] igam`: has joined #ruby
[10:32:43] wldcordeiro: has joined #ruby
[10:33:25] blackmesa: has joined #ruby
[10:34:39] shadowshell: has joined #ruby
[10:36:25] A_Drone: has joined #ruby
[10:37:45] atomx: dminuoso: but ruby-lang.org advises in favor of using the package manager
[10:38:00] atomx: now maybe the repos for Amazon Linux are different
[10:38:22] tenc: has joined #ruby
[10:39:04] dminuoso: atom_: Where is that advise?
[10:40:25] user_corrupt: trying to follow the following tutorial to get compass & SCASS going (both are totally new for me): http://www.webdesignerdepot.com/2013/11/how-to-write-simple-elegant-css-with-compass-sass/ I've been able to install ruby, devel tools, compass, and configure it to "watch" the directory that I am trying to run the following in: http://codepen.io/chriscoyier/pen/yqHxB my problem now is that when I browse to that director
[10:40:25] user_corrupt: y then "@import "compass/css3";" fails with the following error: GET http://www.kojiproforums.com/glitch/css/compass/css3 404 (Not Found)
[10:40:26] user_corrupt: http://www.kojiproforums.com/glitch/
[10:40:34] user_corrupt: is where I am trying to get this running
[10:40:43] Wildfyr: has joined #ruby
[10:41:34] atomx: dminuoso: https://www.ruby-lang.org/en/documentation/installation/
[10:41:44] atomx: well, it's a little bit ambiguous
[10:42:56] A_Drone: has joined #ruby
[10:43:19] sdothum: has joined #ruby
[10:46:28] user_corrupt: atom_ do you think it may be a problem with an out of date version of ruby?
[10:48:08] dminuoso: user_corrupt: For one it is not supported any more, so you may not have access to proper support, modern gems, extensions.
[10:48:28] dminuoso: user_corrupt: ruby-install is extremely simple to use, so that there should be little reason not to use it to install a modern Ruby. :)
[10:48:33] Shashikant86: has joined #ruby
[10:48:42] atomx: +1 to dminuoso though
[10:52:03] dminuoso: user_corrupt: Plus you don't get access to all the modern features that have been introduced in the years since 2.0 was released. :)
[10:52:18] user_corrupt: dminuoso: should I unistall the ruby + ruby-devel that I just installed with yum?
[10:52:48] dminuoso: user_corrupt: That is what I would recommend, yes.
[10:52:58] matled: has joined #ruby
[10:53:43] al2o3-cr: user_corrupt: i thought you installed with yum?
[10:53:51] pawnbox: has joined #ruby
[10:53:56] ruby-lang102: has joined #ruby
[10:54:19] al2o3-cr: i read that as install :(
[10:54:19] dminuoso: user_corrupt: Note though, it is just a recommendation. If you want to run with what you have, then that's fine too.
[10:54:59] wldcordeiro: has joined #ruby
[10:55:09] yqt: has joined #ruby
[10:55:26] user_corrupt: dminuoso: well, I'm currently trying to figure out why I'm unable to import compass, so I figure that I need to try a more up to date version of ruby
[10:55:31] nocco: has joined #ruby
[10:56:23] dminuoso: user_corrupt: Well, the error you have is unrelated to your Ruby version in all likelihood.
[10:56:44] cats: has joined #ruby
[10:56:54] user_corrupt: then I guess that I'll just stick with what I had until I figure that part out
[10:57:31] RegulationD: has joined #ruby
[10:58:11] dangerousdave: has joined #ruby
[10:58:32] blackgoat: has joined #ruby
[10:58:47] dminuoso: user_corrupt: Switching to a modern Ruby makes sense if you are serious about trying out Ruby - but if you are just toying around with it, just stick with what you have. :)
[10:58:51] chipotle: has joined #ruby
[10:59:35] user_corrupt: dminuoso: once I get this crazy SCSS animation stuff running, then I'll tackle the job of getting a modern ruby installed
[11:00:29] rodfersou: has joined #ruby
[11:00:38] workmad3: user_corrupt: if you're planning on updating ruby anyway, it may make sense to do so now just so you can eliminate it from the list of potential suspects
[11:01:04] workmad3: (and if you use ruby-install and chruby to install it, you can always switch back too)
[11:01:52] user_corrupt: workmad3: that's true, but I get the feeling that something is wrong with how I am trying to use scss (something I've never used before).. I basically just have some css files in the directory that is being "watched" by compass
[11:02:30] umdstu: has joined #ruby
[11:02:50] binaryplease3: has joined #ruby
[11:03:54] sepp2k: has joined #ruby
[11:05:04] gregf_: has joined #ruby
[11:05:29] coffeecupp: has joined #ruby
[11:05:43] user_corrupt: do I need a file with an extension of ".sass" or something?
[11:07:48] TheWhip: has joined #ruby
[11:09:04] pawnbox: has joined #ruby
[11:09:29] freerobby: has joined #ruby
[11:10:20] Shashikant86: has joined #ruby
[11:10:57] nocco: has joined #ruby
[11:10:59] johnmilton: has joined #ruby
[11:11:12] inukshuk_: has joined #ruby
[11:11:54] davedev24: has joined #ruby
[11:12:49] johnmilton: has joined #ruby
[11:13:24] digneety: has joined #ruby
[11:16:04] Vingador: has joined #ruby
[11:18:25] Xentil: has joined #ruby
[11:18:45] karapetyan: has joined #ruby
[11:18:51] cd-rum: has joined #ruby
[11:20:17] Macaveli: has joined #ruby
[11:22:06] Shashikant86: has joined #ruby
[11:22:47] user_corrupt: should a file named "style.scss" be automatically detected and compiled by compass once it is watching a folder, or do I need to link to it from the <head></head> of my index.php?
[11:23:46] mrmortondk: has joined #ruby
[11:24:34] user_corrupt: ok, I think that it is being compiled since animations are visible within the "computed styles" part of chrome inspector
[11:25:11] eugenmayer1: has joined #ruby
[11:25:44] eugenmayer1: a gem of mine needs something similar to Thor/Rake/Hodor: from the current folder, find the next folder traversing up, which has a .docker_sync file
[11:26:13] craigp: has joined #ruby
[11:26:14] flashpoint9: has joined #ruby
[11:26:16] eugenmayer1: any hints how to implement this solid? Semantically speaking, 'find the configuration of the current project'
[11:27:29] A_Drone: has joined #ruby
[11:28:48] user_corrupt: ok, nevermind, my style.scss file is not being compiled..
[11:29:19] ddffg: has joined #ruby
[11:32:51] craigp_: has joined #ruby
[11:33:00] maloik: has joined #ruby
[11:33:03] karapetyan: has joined #ruby
[11:33:47] dionysus69: has joined #ruby
[11:35:13] blackmesa: has joined #ruby
[11:35:20] duoi: has joined #ruby
[11:35:52] ldnunes: has joined #ruby
[11:36:09] deecross: has joined #ruby
[11:36:24] karapetyan: has joined #ruby
[11:36:24] rickmasta: has joined #ruby
[11:38:14] Shashikant86: has joined #ruby
[11:38:30] JeanCarloMachado: has joined #ruby
[11:39:21] jaguarmagenta: has joined #ruby
[11:40:06] Gooer: has joined #ruby
[11:40:46] hk238: has joined #ruby
[11:42:19] digneety: has joined #ruby
[11:43:25] user_corrupt: ok, well I am now getting the following error at least: "undefined mixin 'textGlitch'... I guess that maybe I just need to update my ruby now..
[11:44:51] dminuoso: user_corrupt: Do that, and please also make it a habit to provide a gist with a complete stack trace if you intend to share errors with us.
[11:45:13] user_corrupt: dminuoso: thanks, will do
[11:46:13] Hanmac: has joined #ruby
[11:46:49] LoneHerm_: has joined #ruby
[11:49:09] Xentil: has joined #ruby
[11:49:11] synthroid: has joined #ruby
[11:49:21] vuoto: has joined #ruby
[11:51:49] pawnbox: has joined #ruby
[11:52:22] colegatron_origi: has joined #ruby
[11:52:36] bruce_lee: has joined #ruby
[11:52:36] bruce_lee: has joined #ruby
[11:57:16] A_Drone: has joined #ruby
[12:00:47] burgestrand: has joined #ruby
[12:05:40] avelldiroll: has joined #ruby
[12:06:23] allcentury: has joined #ruby
[12:06:36] freerobby1: has joined #ruby
[12:09:00] arlek: has joined #ruby
[12:09:00] Vlat-: has joined #ruby
[12:09:14] pawnbox: has joined #ruby
[12:10:37] nocco: has joined #ruby
[12:10:58] AngryBuzzy: has joined #ruby
[12:11:42] A_Drone: has joined #ruby
[12:12:30] skweek: has joined #ruby
[12:13:02] lupine: has joined #ruby
[12:13:02] hahuang61: has joined #ruby
[12:16:08] nankyokusei: has joined #ruby
[12:16:17] nocco: has joined #ruby
[12:20:41] mistermocha: has joined #ruby
[12:23:31] deviation: has joined #ruby
[12:24:19] AngryBuzzy: has joined #ruby
[12:25:32] deviation: has joined #ruby
[12:25:46] karapetyan: has joined #ruby
[12:29:22] AndrewIsHere: has joined #ruby
[12:30:54] karapetyan: has joined #ruby
[12:31:42] rodfersou: has joined #ruby
[12:34:02] AngryBuzzy: has joined #ruby
[12:35:04] A_Drone: has joined #ruby
[12:36:01] karapetyan: has joined #ruby
[12:38:14] blackmesa: has joined #ruby
[12:39:28] pawnbox: has joined #ruby
[12:40:53] bradflaugher: has joined #ruby
[12:42:30] charliesome: has joined #ruby
[12:42:57] digneety: has joined #ruby
[12:43:14] flashpoint9: has joined #ruby
[12:46:06] griffindy: has joined #ruby
[12:46:34] ghr: has joined #ruby
[12:46:44] user_corrupt: dmiuoso: I've uninstalled ruby and ruby-devel and reinstalled ruby via RVM... I'm still getting the following error: http://www.kojiproforums.com/glitch/ when I try to implement the following: http://codepen.io/chriscoyier/pen/yqHxB here is my index.php: http://paste.ee/p/NrfKE and here is my screen.scss: http://paste.ee/p/jTdj1
[12:47:06] flashpoint9: has joined #ruby
[12:47:47] LoneHerm_: has joined #ruby
[12:50:35] user_corrupt: ok, gotta reinstall compass at least..
[12:51:18] gigetoo: has joined #ruby
[12:52:07] seth: has joined #ruby
[12:52:54] tkiel: has joined #ruby
[12:54:11] tvw: has joined #ruby
[12:54:28] nettoweb: has joined #ruby
[12:55:18] colegatron: has joined #ruby
[12:56:15] blackmesa: has joined #ruby
[12:56:59] pawnbox: has joined #ruby
[12:58:23] RegulationD: has joined #ruby
[12:58:27] aupadhye: has joined #ruby
[12:58:49] user_corrupt: well, compass is reinstalled and same problem..
[12:59:28] user_corrupt: so here I am running latest ruby + compass and I'm getting an error that tells me I'm using an undefined mixin: http://www.kojiproforums.com/glitch/
[13:00:10] user_corrupt: yet it works fine here: http://codepen.io/chriscoyier/pen/yqHxB
[13:00:31] charliesome: has joined #ruby
[13:00:32] akira616: has joined #ruby
[13:00:45] kareeoleez: guys is there any way to check "something" =~ /something/ with an "if" to see if it's true ?
[13:00:46] ramortegui: has joined #ruby
[13:00:58] bmurt: has joined #ruby
[13:01:06] kareeoleez: without complicating with match or ! ().nil?
[13:02:03] mark_66: has joined #ruby
[13:02:17] bmurt: has joined #ruby
[13:02:35] A_Drone: has joined #ruby
[13:02:40] adaedra: `if "something" =~ /something/`?
[13:02:48] zacts: has joined #ruby
[13:03:41] kareeoleez: If true returns 0
[13:03:46] adaedra: user_corrupt: and where's the error?
[13:04:08] adaedra: kareeoleez: can you show: current code, expected output, actual output?
[13:04:35] kareeoleez: adaedra: irb -> "something" =~ /something/
[13:04:40] kareeoleez: adaedra: returns 0
[13:04:49] kareeoleez: adaedra: I want to return true
[13:04:55] adaedra: 0 is truthy
[13:05:14] kareeoleez: is truthy? trustworthy ?
[13:05:20] Macaveli: has joined #ruby
[13:05:27] adaedra: >> puts "0 is truthy" if 0
[13:05:28] ruby[bot]: adaedra: # => 0 is truthy ...check link for more (https://eval.in/602561)
[13:05:44] kareeoleez: but again I can't do "something" =~ /something/.truthy ?
[13:05:45] xiq: has joined #ruby
[13:05:50] kareeoleez: maybe ("something" =~ /something/).truthy?
[13:06:03] adaedra: why do you absolutely want a boolean?
[13:06:20] kareeoleez: I am checking with an If
[13:06:23] deecross_: has joined #ruby
[13:06:27] kareeoleez: unless could work
[13:06:38] kareeoleez: but I have been having this question for a while
[13:06:41] xrlabs: has joined #ruby
[13:06:51] adaedra: >> if "something" =~ /something/; "It matches"; else; "It doesn't"; end
[13:06:52] ruby[bot]: adaedra: # => "It matches" (https://eval.in/602562)
[13:06:59] adaedra: I don't see your problem?
[13:07:04] gener1c: has joined #ruby
[13:07:14] kareeoleez: you overcomplicate it
[13:07:30] adaedra: I'm not sure I'm the one who does.
[13:07:32] gener1c: i am getting a permissin demied error when trying to install a gem using rvm user
[13:07:36] kareeoleez: It could also be "something".match(/something/)
[13:07:47] al2o3-cr: kareeoleez: so
[13:07:49] kareeoleez: I am asking about the =~ operator that I don't get
[13:07:57] daumie: has joined #ruby
[13:08:07] kareeoleez: does anyone know how is it called ?
[13:08:24] gener1c: i tried the rvm --fix-permissions
[13:08:24] adaedra: it returns either the position of the match (in your case, 0), or nil if it doesn't match
[13:08:30] mattwashere: has joined #ruby
[13:09:16] gener1c: You don't have write permissions for the /var/lib/gems/2.1.0 directory.
[13:09:47] adaedra: gener1c: you have a problem in your rvm installation. Check that rvm is a function and that `gem` command is provided by rvm.
[13:10:56] pwnd_nsfw`: has joined #ruby
[13:11:21] malconis: has joined #ruby
[13:12:22] vuoto: has joined #ruby
[13:12:44] adaedra: kareeoleez: there are only two values which are "falsy", meaning that they won't match in an if: nil and false. Any other value is truthy. Even 0, as opposed to many other languages.
[13:12:50] A_Drone: has joined #ruby
[13:13:42] aegis3121: has joined #ruby
[13:14:09] adaedra: so, as shown above, even if =~ returns 0, it will still trigger the if part.
[13:15:17] colegatron: has joined #ruby
[13:17:30] ekinmur: has joined #ruby
[13:18:59] flashpoint9: has joined #ruby
[13:19:44] neo_: has joined #ruby
[13:20:10] deecross: has joined #ruby
[13:21:21] naftilos76: has joined #ruby
[13:21:32] user_corrupt: adaedra: well, I've since gotten rid of that particular error, by using this scss to at least get the text animation going: http://paste.ee/ that came from this tutorial here: https://css-tricks.com/glitch-effect-text-images-svg/ basically, I get lost at the point where he creates his own mixin to apply to the images as well
[13:22:25] deecross: has joined #ruby
[13:22:33] adaedra: I think you've pasted the wrong link.
[13:24:14] user_corrupt: adaedra: oops, this was the scss that I used to get the text going: http://paste.ee/p/S4KHd
[13:24:15] A_Drone: has joined #ruby
[13:24:47] adaedra: ok, and what is your problem?
[13:26:25] user_corrupt: just that I'm unable to get the images animated the way that they are in that tutorial
[13:26:57] al2o3-cr: user_corrupt: have taken a look at this: http://codepen.io/chriscoyier/pen/FwJux.scss
[13:28:12] gener1c: adaedra rvm is not a function in my case but a file at this location : /home/ubuntu/.rvm/bin/rvm
[13:28:20] nando294021: has joined #ruby
[13:28:35] gener1c: adaedra: how do i check if gem is provided by rvm?
[13:28:43] adaedra: gener1c: which gem
[13:28:48] gener1c: /usr/bin/gem
[13:29:01] gener1c: if its not in the rvm install dir its not?
[13:29:12] adaedra: it's linked to the fact rvm is not a function
[13:29:18] Xentil2: has joined #ruby
[13:29:32] adaedra: Did you respect all the install steps, including setting your terminal emulator to spawn login shells?
[13:30:08] gener1c: ah ... i used their bash script i didnt find an install doc
[13:30:34] adaedra: And did you read the output of the bash script?
[13:31:07] mattwashere: has joined #ruby
[13:31:17] adaedra: iirc, it is explained at the end of the installation.
[13:31:18] gener1c: ill read it
[13:31:37] user_corrupt: adaedra: I have, but adding that to my screen.scss file doesn't work
[13:31:50] gener1c: in cse of problems..
[13:32:02] ebbflowgo: has joined #ruby
[13:32:16] adaedra: You also should be able to read all documentation needed on rvm.io
[13:32:31] dikons: has joined #ruby
[13:32:37] todd_dsm_wk: headius: thanks, just retweeted you for now. I appreciate it.
[13:33:19] gener1c: yeah i am ther adaedra
[13:33:27] gener1c: reading the single-user install right now
[13:33:31] gener1c: looks like its what i did
[13:33:41] camonz: has joined #ruby
[13:33:53] swills: has joined #ruby
[13:34:15] macsteps: has joined #ruby
[13:34:20] shock_one: has joined #ruby
[13:34:37] hogetaro: has joined #ruby
[13:35:07] deecross: has joined #ruby
[13:35:08] sergio_101: has joined #ruby
[13:36:27] ramfjord: has joined #ruby
[13:37:11] gener1c: wow adaedra , it seems that due to the fact that i just installed it the shell env didnt source ~/.rvm/scripts/rvm and that was the issue , i had to restart the shell , dumb me
[13:37:38] deecross: has joined #ruby
[13:38:18] SilverKey: has joined #ruby
[13:38:42] karapetyan: has joined #ruby
[13:38:55] gener1c: it installed nokogiri but not encinch because i already installed it using root
[13:38:55] dennisvennink: has joined #ruby
[13:38:58] gener1c: im reinstalling
[13:39:29] adaedra: Everything installed outside of rvm is irrelevant now that you installed rvm.
[13:39:35] Gooer: has joined #ruby
[13:39:43] antgel: has joined #ruby
[13:40:02] jaguarmagenta: has joined #ruby
[13:40:52] gener1c: ok then ill try to find out what the new issue is
[13:41:04] karapetyan: has joined #ruby
[13:42:01] charliesome: has joined #ruby
[13:45:49] harfangk: has joined #ruby
[13:46:54] SilverKey: has joined #ruby
[13:47:52] digneety: has joined #ruby
[13:48:18] _Gooer: has joined #ruby
[13:48:36] chipotle: has joined #ruby
[13:48:50] flashpoint9: has joined #ruby
[13:49:12] skalfyfan: has joined #ruby
[13:50:44] allcentury: has joined #ruby
[13:51:30] mattwashere: has joined #ruby
[13:51:37] SilverKey: has joined #ruby
[13:52:18] user_corrupt: adaedra: Thanks. My index.php now looks like this: http://paste.ee/p/qcUR8 and I've included that file you asked me about. My screen.scss looks like this: http://paste.ee/p/QRHBU Here is the error that I am now getting: http://www.kojiproforums.com/glitch/
[13:52:46] user_corrupt: it says I have an undefined mixin even though I've included it?
[13:52:55] adaedra: I'm not the last person you talked to
[13:53:00] LoneHerm_: has joined #ruby
[13:53:24] skade: has joined #ruby
[13:53:38] adaedra: But yeah, nowhere you define the textGlitch mixin
[13:54:28] Rodya_: has joined #ruby
[13:55:08] user_corrupt: adaedra: Oops on both counts.
[13:55:23] user_corrupt: would you be able to tell me how to do that?
[13:55:41] antgel: has joined #ruby
[13:55:56] user_corrupt: I've never used sass before
[13:56:00] adaedra: you have to include the @mixin code
[13:56:21] adaedra: in your .scss
[13:56:49] gigetoo: has joined #ruby
[13:57:51] UnKnOwN|: has joined #ruby
[13:58:55] nettoweb: has joined #ruby
[14:00:54] chipotle: has joined #ruby
[14:03:34] Es0teric: has joined #ruby
[14:05:57] chouhoulis: has joined #ruby
[14:08:42] Nahra: has joined #ruby
[14:10:42] zacts: has joined #ruby
[14:12:30] Xentil: has joined #ruby
[14:12:35] mistermocha: has joined #ruby
[14:13:46] hahuang61: has joined #ruby
[14:16:59] nankyokusei: has joined #ruby
[14:17:11] flashpoint9: has joined #ruby
[14:17:13] Xentil2: has joined #ruby
[14:17:56] VeryBewitching: has joined #ruby
[14:18:20] flashpoi_: has joined #ruby
[14:20:22] SilverKey: has joined #ruby
[14:21:20] TomyWork: i have a method foo that takes two arguments. I run method(:foo). Can I bind something to the first argument?
[14:21:45] TomyWork: so that it becomes a single-argument method
[14:21:53] adaedra: &ri Method#curry
[14:21:53] `derpy: http://ruby-doc.org/core-2.3.1/Method.html#method-i-curry
[14:22:13] TomyWork: let's see what ubuntu 16.04 has
[14:22:28] adaedra: Ah yes, I think I run into this one
[14:22:40] TomyWork: ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu]
[14:23:06] adaedra: Otherwise, there's Proc#curry which should be older.
[14:23:12] TomyWork: now i just have to get that on my desktop as well, which runs on ubuntu 14.04 :)
[14:23:14] cdg: has joined #ruby
[14:23:54] TomyWork: adaedra and Proc is what? is &mymethod a Proc?
[14:24:03] adaedra: Given what Method#curry actually does, it's easy to replace
[14:24:22] neo_: has joined #ruby
[14:24:34] TomyWork: VALUE proc = method_to_proc(self); return proc_curry(argc, argv, proc);
[14:24:54] Xentil: has joined #ruby
[14:24:54] TomyWork: doesnt look that easy to replace, if one doesnt know what method_to_proc does :)
[14:25:06] adaedra: It's Method#to_proc
[14:25:11] cdg: has joined #ruby
[14:25:49] TomyWork: oh this is odd, Method has curry
[14:25:49] adaedra: So Method#curry is, ruby-wise, to_proc.curry
[14:25:55] TomyWork: i was looking at UnboundMethod
[14:26:46] neo_: has joined #ruby
[14:27:01] ngw: has joined #ruby
[14:27:10] TomyWork: ok so i have to_proc, but not Method.curry in this 1.9.3 version on ubuntu 14.04
[14:27:10] pdoherty: has joined #ruby
[14:27:34] adaedra: ACTION takes 1.9.3 and puts it in the trash bin
[14:27:43] TomyWork: Method.curry is 2.2+
[14:27:50] adaedra: And Proc#curry?
[14:28:01] adaedra: 19>> proc {}.curry
[14:28:02] ruby[bot]: adaedra: # => #<Proc:0x98c4020> (https://eval.in/602614)
[14:28:53] deecross: has joined #ruby
[14:28:55] TomyWork: yeah like you said, Proc.curry is ancient
[14:28:58] adaedra: 19>> def add(a, b); a + b; end; add_two_to = method(:add).curry[2]; add_two_to.(3)
[14:28:59] ruby[bot]: adaedra: # => undefined method `curry' for #<Method: Object#add> (NoMethodError) ...check link for more (https://eval.in/602616)
[14:29:05] adaedra: aaaand I'm dumb.
[14:29:11] adaedra: 19>> def add(a, b); a + b; end; add_two_to = method(:add).to_proc.curry[2]; add_two_to.(3)
[14:29:11] ruby[bot]: adaedra: # => 5 (https://eval.in/602617)
[14:30:19] TomyWork: traverser.traverse_one(object, &method(:commit_handler).to_proc.curry(ref_short_name))
[14:30:45] agent_white: has joined #ruby
[14:31:02] adaedra: curry(x) and curry[x] is not the same — I think you want the latter
[14:31:30] TomyWork: what's the difference?
[14:32:12] adaedra: in the first case, you call curry with x as parameter (which defines the arity); in the second case, you call [] on curry return value with x (actually doing the binding)
[14:32:34] TomyWork: i think i'll just monkey-patch Method to have a curry method
[14:32:43] TomyWork: (with an "if 1.9")
[14:33:53] nando294121: has joined #ruby
[14:34:06] TomyWork: https://github.com/marcandre/backports/blob/c11c9a6b0b5e362eee8171f2341a6572b1c118a0/lib/backports/1.9.1/proc/curry.rb perfect :)
[14:34:11] SilverKey: has joined #ruby
[14:34:30] adaedra: That's Proc#curry
[14:34:31] TomyWork: not perfect...
[14:34:57] aryaching: has joined #ruby
[14:35:49] adaedra: class Method; def curry(*args); to_proc.curry(*args); end; end
[14:36:30] SilverKey: has joined #ruby
[14:37:15] Macaveli_: has joined #ruby
[14:37:28] TomyWork: unless Method.method_defined? :curry class Method def curry(*args) to_proc.curry(*args) end end end plus semicolons
[14:37:49] SilverKey: has joined #ruby
[14:39:07] benlieb: has joined #ruby
[14:40:32] mostlybadfly: has joined #ruby
[14:41:04] diegoviola: has joined #ruby
[14:43:11] naftilos76: has joined #ruby
[14:43:17] tjbiddle: has joined #ruby
[14:43:19] SilverKey: has joined #ruby
[14:44:38] dminuoso: has joined #ruby
[14:45:39] duoi: has joined #ruby
[14:48:45] nk121: has joined #ruby
[14:50:49] banisterfiend: has joined #ruby
[14:52:02] shock_one: has joined #ruby
[14:54:08] charliesome: has joined #ruby
[14:55:31] zacstewart: has joined #ruby
[14:56:24] skalfyfan: has joined #ruby
[14:56:34] blackgoat: has joined #ruby
[14:57:01] flashpoint9: has joined #ruby
[14:58:14] charliesome_: has joined #ruby
[14:58:37] eljimmy: has joined #ruby
[14:59:16] RegulationD: has joined #ruby
[14:59:17] mistermocha: has joined #ruby
[15:01:06] charliesome: has joined #ruby
[15:01:28] shock_one: has joined #ruby
[15:02:21] blackmesa: has joined #ruby
[15:03:59] zacts: has joined #ruby
[15:04:11] digneety: has joined #ruby
[15:04:20] charliesome_: has joined #ruby
[15:05:53] charliesome_: has joined #ruby
[15:06:00] chipotle: has joined #ruby
[15:07:44] chipotle: has joined #ruby
[15:08:39] rkazak: has joined #ruby
[15:09:11] aegis3121: has joined #ruby
[15:09:50] dhollinger: has joined #ruby
[15:10:03] pawnbox: has joined #ruby
[15:10:25] banisterfiend: has joined #ruby
[15:10:26] harfangk: has joined #ruby
[15:13:20] zacts|pi: has joined #ruby
[15:14:05] minimalism: has joined #ruby
[15:14:33] JakFrist: has joined #ruby
[15:15:02] smathy: has joined #ruby
[15:15:21] croberts_: i know in bash you can do <script> variable, is that possible in Ruby?
[15:15:38] croberts_: and have it do a different action based on what is passed into it
[15:15:40] rippa: has joined #ruby
[15:16:55] raeoks: has joined #ruby
[15:17:30] apeiros: croberts_: I don't understand what you're asking for
[15:18:23] croberts_: apeiros: i have a script in bash if you do -h or --help it will show the help and exit or without options it will run normal. in ruby can you do that i found this but not sure if its what im looking for
[15:18:27] croberts_: http://learnrubythehardway.org/book/ex13.html
[15:18:51] apeiros: ah, you mean ARGV
[15:19:01] apeiros: all arguments passed to your script are in ARGV
[15:19:03] croberts_: yes sorry, still new
[15:19:16] apeiros: you can use libs like optparse (stdlib) or slop (gem) to process them
[15:19:28] apeiros: or you can just access the plain ARGV array and do whatever
[15:19:49] tvw: has joined #ruby
[15:21:32] zacts: has joined #ruby
[15:22:28] zacts|pi: has joined #ruby
[15:25:35] pawnbox: has joined #ruby
[15:26:50] agentmeerkat: has joined #ruby
[15:27:48] antgel: has joined #ruby
[15:29:36] blackmesa: has joined #ruby
[15:29:38] roshanavnad_: has joined #ruby
[15:29:57] mattwashere: has joined #ruby
[15:30:33] nadir: has joined #ruby
[15:30:52] AndrewIsHere: has joined #ruby
[15:31:00] zacstewart: has joined #ruby
[15:33:13] cschneid_: has joined #ruby
[15:35:03] The_Phoenix: has joined #ruby
[15:35:38] mistermocha: has joined #ruby
[15:37:05] banisterfiend: has joined #ruby
[15:37:31] cdg_: has joined #ruby
[15:38:12] ecnalyr: has joined #ruby
[15:38:43] TomyWork: croberts_ it's called command-line arguments and everything has it :)
[15:39:00] mistermocha: has joined #ruby
[15:39:01] TomyWork: not just bash and ruby
[15:39:09] Xentil: has joined #ruby
[15:39:23] nk121: has joined #ruby
[15:40:49] jaguarmagenta: has joined #ruby
[15:41:14] croberts_: good to know the name of them now :)
[15:43:00] Wildfyr: what are you guys doing in ruby?
[15:43:11] skalfyfan: has joined #ruby
[15:44:47] Papierkorb: Wildfyr: managing/building a computing cluster, random tooling, applications with web UIs. Also as handy calculator.
[15:45:01] Papierkorb: Wildfyr: why you ask? Anything specific on your mind?
[15:45:07] Wildfyr: Papierkorb: wow, the web ui seems fun
[15:45:14] Neo--: has joined #ruby
[15:45:32] Wildfyr: Papierkorb: i ask as i'm getting very bored and want something to do (which is in my league)
[15:46:26] Papierkorb: Wildfyr: If you want to build web applications, and have never done anything like this, check out (Ruby on) Rails. It's the most popular web framework. There are other web-frameworks, but the tooling around and the tutorials about rails are the best
[15:46:28] cdg: has joined #ruby
[15:46:46] wldcordeiro: has joined #ruby
[15:47:31] hxegon: Wildfyr: ecommerce middleware/etl, ecommerce web stuff
[15:47:44] Papierkorb: Wildfyr: Even if you later decide that Rails is not for you, the knowledge you gain from it can be applied elsewhere too. But it is fun to build stuff with it.
[15:48:05] hxegon: Also familiarity massively increases your job prospects
[15:48:23] hxegon: (with rails)
[15:49:37] hxegon: also, morning all
[15:51:02] dennisvennink: has joined #ruby
[15:51:22] skatopustaz: has joined #ruby
[15:54:18] shock_one: has joined #ruby
[15:54:47] mistermocha: has joined #ruby
[15:55:36] snowy: has joined #ruby
[15:55:48] deecross_: has joined #ruby
[15:56:50] bogusdisk: has joined #ruby
[15:57:36] Xentil: has joined #ruby
[15:58:52] SCHAAP137: has joined #ruby
[15:59:00] agentmee1kat: has joined #ruby
[15:59:34] hutch34: has joined #ruby
[16:00:06] freerobby2: has joined #ruby
[16:00:08] RegulationD: has joined #ruby
[16:00:12] ecnalyr: has joined #ruby
[16:01:29] Wildfyr: Papierkorb: for doing anything useful with rails, i'm presuming i must have some knowledge of html/css (my knowledge is non-existant)
[16:02:26] yadobujo: has joined #ruby
[16:02:41] Papierkorb: Wildfyr: You learn along the way. You will also make mistakes. That's okay, just try to do it better next time :)
[16:03:35] Wildfyr: Papierkorb: Mistakes are fine with me (as long as i learn something useful) but i couldn't get myself to learn html
[16:03:41] Wildfyr: It is so boring ...
[16:04:04] symm-: has joined #ruby
[16:04:10] dgynn: has joined #ruby
[16:04:11] Papierkorb: Wildfyr: HTML alone is not that useful. Writing HTML isn't even fun or anything. It's just a tool for you to create a UI
[16:04:24] amclain: has joined #ruby
[16:04:40] Wildfyr: Papierkorb: i know css/js also are needed
[16:04:45] Papierkorb: Wildfyr: Same goes for CSS. I also don't see the point in learning HTML+CSS first and then rails. Learn those two by using them.
[16:04:48] ekinmur: has joined #ruby
[16:05:03] Wildfyr: Papierkorb: okay
[16:05:30] Papierkorb: Wildfyr: Oh no, JS is not a requirement. You can add your own JS later on, which you can also learn as you go for now.
[16:06:00] Wildfyr: Papierkorb: okay
[16:06:22] Papierkorb: Wildfyr: http://guides.rubyonrails.org/getting_started.html for the hello world project, also there's #RubyOnRails for rails questions
[16:06:38] Wildfyr: thanks, it is time i get started
[16:06:55] Wildfyr: Any other resources u'd recommend?
[16:07:10] flashpoint9: has joined #ruby
[16:07:18] Papierkorb: Wildfyr: HTML/CSS, even SQL, are just tools. Do you learn how to use a hammer without hitting on nails?
[16:07:33] aep-shoutlet: has joined #ruby
[16:07:55] Wildfyr: Papierkorb: no, but a hammer has other uses as well
[16:08:51] deecross: has joined #ruby
[16:09:00] memorasus: has joined #ruby
[16:09:00] [Butch]: has joined #ruby
[16:09:28] Papierkorb: Wildfyr: I can't honestly. Never did a beginner HTML/CSS tutorial. Some W3School, but that I can't recommend. You can peek at it and learn the utmost basics, and then move on.
[16:09:44] leea: has joined #ruby
[16:10:07] Guest23954: has joined #ruby
[16:10:15] The_Phoenix1: has joined #ruby
[16:10:37] hxegon: no such file or directory: ./quit
[16:11:50] hxegon: Any recommendations for ruby OO design, beyond POODR?
[16:11:50] ekinmur: has joined #ruby
[16:12:14] akira616: has joined #ruby
[16:13:03] pawnbox: has joined #ruby
[16:13:29] The_Phoenix: has joined #ruby
[16:14:18] whathappens: has joined #ruby
[16:14:30] hahuang61: has joined #ruby
[16:14:44] zacts_raincity: has joined #ruby
[16:14:46] Xentil: has joined #ruby
[16:15:27] zacts: has joined #ruby
[16:15:54] bmurt: has joined #ruby
[16:16:38] roamingdog: has joined #ruby
[16:16:55] The_Phoenix1: has joined #ruby
[16:17:03] alfiemax: has joined #ruby
[16:17:52] nankyokusei: has joined #ruby
[16:18:03] hxegon: I ask because I just spent 2 months implementing some sort of anti-factory pattern abomination
[16:18:12] chipotle: has joined #ruby
[16:20:44] yadobujo: has joined #ruby
[16:22:22] TheWhip: has joined #ruby
[16:22:34] nettoweb: has joined #ruby
[16:27:11] Xentil: has joined #ruby
[16:27:53] Sashimi: has joined #ruby
[16:28:34] isberg: has joined #ruby
[16:30:22] AndrewIsHere: has joined #ruby
[16:30:23] yxhuvud: common sense /s
[16:31:21] prestorium: has joined #ruby
[16:31:23] shinnya: has joined #ruby
[16:31:44] SilverKey: has joined #ruby
[16:32:31] bkxd: has joined #ruby
[16:33:13] DrCode: has joined #ruby
[16:33:25] neo_: has joined #ruby
[16:33:30] SilverKey: has joined #ruby
[16:36:42] SCHAAP137: has joined #ruby
[16:36:51] yqt: has joined #ruby
[16:37:06] dionysus69: has joined #ruby
[16:37:49] JakFrist: has joined #ruby
[16:37:55] JeanCarloMachado: has joined #ruby
[16:39:00] yadobujo: has joined #ruby
[16:39:03] sinpai9: has joined #ruby
[16:39:25] digneety: has joined #ruby
[16:39:40] pawnbox: has joined #ruby
[16:40:36] TomyLobo: has joined #ruby
[16:41:58] dtzuzu: has joined #ruby
[16:42:08] yadobujo: has joined #ruby
[16:44:07] stephan_: has joined #ruby
[16:44:35] ecnalyr: has joined #ruby
[16:44:51] Xentil: has joined #ruby
[16:45:13] shevy: hxegon have you been writing java there!
[16:45:48] shevy: Papierkorb I used to read selfhtml for learning :-)
[16:45:53] Wildfyr: has joined #ruby
[16:45:53] Wildfyr: has joined #ruby
[16:46:06] Papierkorb: shevy: Isn't that German only?
[16:47:10] whathappens: has joined #ruby
[16:47:44] neo_: has joined #ruby
[16:48:23] neo_: has joined #ruby
[16:49:53] Sembei: has joined #ruby
[16:51:22] Xentil: has joined #ruby
[16:51:26] ghr: has joined #ruby
[16:52:34] NingaLeaf: has joined #ruby
[16:54:16] pawnbox_: has joined #ruby
[16:54:46] lorenalexm: has joined #ruby
[16:55:18] kiyote23: has joined #ruby
[16:55:23] ebbflowgo: has joined #ruby
[16:57:50] zacts: has joined #ruby
[17:01:29] xaxisx: has joined #ruby
[17:01:33] Xentil: has joined #ruby
[17:02:32] Hyuk: has joined #ruby
[17:02:53] whathappens: has joined #ruby
[17:03:31] whathapp_: has joined #ruby
[17:05:24] ramfjord: has joined #ruby
[17:05:39] Sashimi: has joined #ruby
[17:06:46] aegis3121: has joined #ruby
[17:07:07] SilverKey: has joined #ruby
[17:07:23] toretore: has joined #ruby
[17:07:34] rcvalle: has joined #ruby
[17:08:56] ghr: has joined #ruby
[17:09:31] skalfyfan: has joined #ruby
[17:09:57] hxegon: shevy: nope, just a junior dev left to his own devices
[17:10:41] whiteline_: has joined #ruby
[17:11:06] blackmesa: has joined #ruby
[17:13:21] daumie: has joined #ruby
[17:13:46] fullofcaffeine: has joined #ruby
[17:16:04] firstdayonthejob: has joined #ruby
[17:16:24] craigp_: has joined #ruby
[17:16:44] chipotle: has joined #ruby
[17:22:41] flashpoint9: has joined #ruby
[17:23:02] ghr: has joined #ruby
[17:24:01] SilverKey: has joined #ruby
[17:24:15] karapetyan: has joined #ruby
[17:25:12] dikaio: has joined #ruby
[17:25:44] Neo--: has joined #ruby
[17:26:26] Sashimi: has joined #ruby
[17:27:37] deecross: has joined #ruby
[17:28:55] edwardly: has joined #ruby
[17:28:55] edwardly: has joined #ruby
[17:30:10] neo_: has joined #ruby
[17:30:19] fullofcaffeine: has joined #ruby
[17:30:37] JakFrist: has joined #ruby
[17:31:00] RegulationD: has joined #ruby
[17:32:52] polishdub: has joined #ruby
[17:33:12] Sashimi: has joined #ruby
[17:34:09] VeryBewitching: has joined #ruby
[17:34:54] LoneHerm_: has joined #ruby
[17:35:03] aryaching: has joined #ruby
[17:35:57] ghr: has joined #ruby
[17:36:37] SilverKey: has joined #ruby
[17:38:36] troulouliou_div2: has joined #ruby
[17:40:50] last_staff: has joined #ruby
[17:41:05] LoneHerm_: has joined #ruby
[17:41:06] pilne: has joined #ruby
[17:41:34] jaguarmagenta: has joined #ruby
[17:42:16] replay: has joined #ruby
[17:42:37] colegatron: has joined #ruby
[17:46:21] RegulationD: has joined #ruby
[17:47:32] angrybuzzy_: has joined #ruby
[17:47:58] ghr: has joined #ruby
[17:48:10] freerobby: has joined #ruby
[17:49:15] MrBusiness3: has joined #ruby
[17:49:44] mx055: has joined #ruby
[17:53:01] agentmeerkat: has joined #ruby
[17:53:44] AndrewIsHere: has joined #ruby
[17:53:56] mloy: has joined #ruby
[17:54:12] AndrewIs_: has joined #ruby
[17:55:00] deecross: has joined #ruby
[17:55:09] yqt: has joined #ruby
[17:55:24] houhoulis: has joined #ruby
[17:57:28] ghr: has joined #ruby
[17:57:55] blackmesa: has joined #ruby
[17:58:16] Haaibo: has joined #ruby
[17:59:17] vuoto: has joined #ruby
[18:00:23] Sashimi: has joined #ruby
[18:01:00] flashpoint9: has joined #ruby
[18:02:34] roamingdog: has joined #ruby
[18:02:54] SilverKey: has joined #ruby
[18:03:15] roamingdog: has joined #ruby
[18:04:36] A5101: has joined #ruby
[18:06:21] dionysus69: has joined #ruby
[18:07:29] ghr: has joined #ruby
[18:08:29] Uranio: has joined #ruby
[18:10:55] finisherr: has joined #ruby
[18:12:59] mistermocha: has joined #ruby
[18:13:06] Jackneill: has joined #ruby
[18:13:29] sneakers: has joined #ruby
[18:13:46] shevy: Papierkorb yeah! good oldschool :-)
[18:13:57] shevy: though admittedly, I looked at it again a few years ago or so
[18:14:02] shevy: and the old glamour sorta went away
[18:14:04] mistermocha: has joined #ruby
[18:14:07] shevy: ACTION is a sad panda.
[18:15:16] hahuang61: has joined #ruby
[18:15:59] yadobujo_: has joined #ruby
[18:16:52] baweaver: I thought you were a shevy
[18:18:41] nankyokusei: has joined #ruby
[18:18:50] aegis3121: has joined #ruby
[18:19:08] shevy: I just like those dam pandas and beavers
[18:19:30] JakFrist: has joined #ruby
[18:19:32] mattwashere: has joined #ruby
[18:20:30] ghr: has joined #ruby
[18:20:47] sebstrax: has joined #ruby
[18:23:08] weaksauce: has joined #ruby
[18:23:12] wldcordeiro: has joined #ruby
[18:26:08] arlek: has joined #ruby
[18:26:10] miqlas-H: has joined #ruby
[18:26:30] ramfjord: has joined #ruby
[18:26:37] KCmetro: has joined #ruby
[18:27:10] tjbiddle: has joined #ruby
[18:28:46] roamingd_: has joined #ruby
[18:29:06] macsteps: has joined #ruby
[18:31:00] ghr: has joined #ruby
[18:32:15] postmodern: has joined #ruby
[18:33:45] Coldblackice: has joined #ruby
[18:34:52] Dimik: has joined #ruby
[18:35:19] jenrzzz: has joined #ruby
[18:35:20] jenrzzz: has joined #ruby
[18:38:39] mattwashere: has joined #ruby
[18:39:12] SilverKey: has joined #ruby
[18:40:06] mistermocha: has joined #ruby
[18:40:40] dzduvall: has joined #ruby
[18:42:48] neo_: has joined #ruby
[18:43:01] ghr: has joined #ruby
[18:43:15] AndrewIsHere: has joined #ruby
[18:44:27] codecop: has joined #ruby
[18:45:48] mattwashere: has joined #ruby
[18:45:59] Silthias: has joined #ruby
[18:46:09] irregular: has joined #ruby
[18:47:29] Ebok: has joined #ruby
[18:47:36] babblebre: has joined #ruby
[18:49:15] BaroMeter: has joined #ruby
[18:49:31] craigp_: has joined #ruby
[18:50:04] yfeldblum: has joined #ruby
[18:50:55] chip_: has joined #ruby
[18:53:01] ghr: has joined #ruby
[18:53:46] diegoviola: has joined #ruby
[18:53:49] cdg: has joined #ruby
[18:54:00] deecross: has joined #ruby
[18:54:05] bmurt: has joined #ruby
[18:54:30] zacts: has joined #ruby
[18:54:44] cdg: has joined #ruby
[18:57:31] Wildfyr: has left #ruby: ("Bye")
[18:57:57] douglascorrea: has joined #ruby
[18:59:26] fullofcaffeine: has joined #ruby
[18:59:54] zacts: hi rubyists
[18:59:56] fullofcaffeine: has joined #ruby
[19:00:36] ekinmur: has joined #ruby
[19:00:44] irregular: has joined #ruby
[19:01:17] pawnbox: has joined #ruby
[19:01:20] havenwood: zacts: halloo
[19:01:29] Sashimi: has joined #ruby
[19:02:39] wldcordeiro: has joined #ruby
[19:03:31] mattwashere: has joined #ruby
[19:04:32] ghr: has joined #ruby
[19:04:55] mistermocha: has joined #ruby
[19:06:05] blackmesa: has joined #ruby
[19:08:07] duoi: has joined #ruby
[19:09:42] jhack: has joined #ruby
[19:10:34] ur5us: has joined #ruby
[19:13:08] conta: has joined #ruby
[19:14:36] miqlas-H: has joined #ruby
[19:15:21] lorenalexm: has joined #ruby
[19:16:20] mistermocha: has joined #ruby
[19:21:23] ecnalyr: has joined #ruby
[19:21:33] ghr: has joined #ruby
[19:23:36] jackhill: Hi all, I'm fairly new to Ruby, and I'm looking library to use to read configuration files for a cli app that I'm writing.
[19:24:00] jackhill: I would like for it to look at a system location, and then overlay that with a user's local configuration.
[19:25:16] apeiros: YAML is a commonly used library to read/write config files
[19:25:29] maikowblue: has joined #ruby
[19:25:34] ReK2: has joined #ruby
[19:25:37] apeiros: as for sys > local - standard File.exist? calls
[19:26:46] jackhill: apeiros: that would definitely work for me, but didn't want to re-invent that logic if there was something existing that was popular that does it.
[19:26:52] jackhill: I guess it's not /that/ much logic.
[19:28:07] kirun: has joined #ruby
[19:28:19] SilverKey: has joined #ruby
[19:28:42] apeiros: yeah, if it's only 2 paths to check it's some ~10-ish lines of code
[19:28:56] leea: has joined #ruby
[19:29:17] apeiros: I think there's some gem which provides methods to get standard/common paths. not sure I remember the name correctly, moment…
[19:29:22] poporul: has joined #ruby
[19:30:04] frem_: has joined #ruby
[19:31:31] apeiros: eam: ping - you might know - what was that standard for linux paths? xdg or somesuch?
[19:31:38] jackhill: searching for 'config' on rubygems tuned up lots of things
[19:31:48] arlek: has joined #ruby
[19:31:54] apeiros: ?ruby-toolbox jackhill
[19:31:55] ruby[bot]: apeiros: I don't know anything about ruby-toolbox
[19:32:01] apeiros: ?toolbox jackhill
[19:32:02] ruby[bot]: jackhill: https://www.ruby-toolbox.com is a website which lists lots of gems, topically organized
[19:32:08] apeiros: wrote too much. unbelievable.
[19:32:09] duoi: has joined #ruby
[19:32:45] jackhill: apeiros: oh, cool. xdg sounds vaguely correct to me
[19:33:26] apeiros: seems it was xdg indeed: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
[19:33:35] apeiros: and iirc there was a gem for it
[19:34:13] apeiros: https://github.com/rubyworks/xdg would be it
[19:34:43] jackhill: apeiros: cool, thanks!!
[19:35:11] GodFather: has joined #ruby
[19:35:28] Dimik: has joined #ruby
[19:35:58] leea: has joined #ruby
[19:36:09] ghr: has joined #ruby
[19:36:53] jenrzzz: has joined #ruby
[19:36:53] jenrzzz: has joined #ruby
[19:37:09] havenwood: http://www.pathname.com/fhs/pub/fhs-2.3.html
[19:37:48] Sashimi: has joined #ruby
[19:38:09] havenwood: ooh, they released a 3.0 it looks like
[19:38:10] havenwood: https://refspecs.linuxfoundation.org/FHS_3.0/fhs-3.0.html
[19:38:24] apeiros: is that a successor or a competing standard?
[19:38:32] bmurt: has joined #ruby
[19:39:19] jackhill: xdg v. fhs? I think they specify different things. FHS is more concerned with system-wide paths, while xdg would govern what goes on inside a user's home directory.
[19:39:49] solars: has joined #ruby
[19:40:49] `tim`: has joined #ruby
[19:41:08] apeiros: oh, nice, so we need 2 standards to cover all paths :-S :D
[19:41:40] havenwood: apeiros: I guess the systemd folk didn't think FHS covered the bases. :P
[19:41:57] ecnalyr: has joined #ruby
[19:42:10] havenwood: https://www.freebsd.org/doc/handbook/dirstructure.html
[19:42:10] zeroDi: has joined #ruby
[19:42:23] jaguarmagenta: has joined #ruby
[19:42:34] fullofcaffeine: has joined #ruby
[19:43:46] karapetyan: has joined #ruby
[19:44:18] fullofca_: has joined #ruby
[19:45:21] ekinmur: has joined #ruby
[19:45:28] mistermocha: has joined #ruby
[19:45:32] DrCode: has joined #ruby
[19:45:36] irregular: how can I access the last element of an array? is there something like array[last]?
[19:46:36] irregular: for elements in siteprism/ruby https://github.com/natritmeyer/site_prism
[19:47:10] apeiros: array.last
[19:47:12] toretore: ?ri Array#last
[19:47:13] ruby[bot]: toretore: I don't see no Array#last, whom should I tell about ri?
[19:47:13] mistermocha: has joined #ruby
[19:47:15] apeiros: >> [1,2,3].last
[19:47:16] ruby[bot]: apeiros: # => 3 (https://eval.in/602712)
[19:47:30] apeiros: also the slice method ([]) accepts negative args
[19:47:41] neo_: has joined #ruby
[19:48:19] apeiros: >> [1,2,3][-1]
[19:48:20] ruby[bot]: apeiros: # => 3 (https://eval.in/602713)
[19:48:37] irregular: apeiros: darn for siteprism i can't do element :switch, '.configuration-settings .switch: .toggle-switch'.last
[19:48:41] yqt: has joined #ruby
[19:48:46] Mimorial: has joined #ruby
[19:49:31] neo_: has joined #ruby
[19:49:52] apeiros: oooh, siteprism seems to do what I wanted to do… gotta investigate that
[19:51:26] irregular: apeiros:would you have any thoughts on getting the last child? (say of the parent could be selected with .configuration but the # of child elements is variable?
[19:51:43] apeiros: in css? :last-child
[19:52:37] apeiros: if that's not the selector you want, check some css3 selector page. there's almost nothing you can't do. and if there is, then switch to xpath.
[19:52:48] karapetyan: has joined #ruby
[19:53:07] whathappens: has joined #ruby
[19:53:07] Mimorial: has joined #ruby
[19:53:28] SilverKey: has joined #ruby
[19:53:47] tvw: has joined #ruby
[19:54:06] Mimorial: has joined #ruby
[19:55:50] ecnalyr: has joined #ruby
[19:57:05] mistermocha: has joined #ruby
[19:58:39] neo_: has joined #ruby
[19:59:07] ghr: has joined #ruby
[19:59:12] bmurt: has joined #ruby
[19:59:14] karapetyan: has joined #ruby
[20:01:02] mistermo_: has joined #ruby
[20:03:41] ekinmur: has joined #ruby
[20:04:10] shevy: havenwood let's invent a better standard!
[20:04:36] akira616: has joined #ruby
[20:05:35] nofxx: has joined #ruby
[20:06:43] mattwashere: has joined #ruby
[20:07:46] malconis: has joined #ruby
[20:07:52] blackmesa: has joined #ruby
[20:07:53] Mimorial: hey, can you run shoes from the command line or something? the "open program --> choose file --> look at the result" is annoying and time-consuming
[20:07:53] vuoto: has joined #ruby
[20:09:36] agentmeerkat: has joined #ruby
[20:10:48] digneety: has joined #ruby
[20:15:24] postmodern: has joined #ruby
[20:16:01] hahuang61: has joined #ruby
[20:16:05] ghr: has joined #ruby
[20:18:00] SilverKey: has joined #ruby
[20:18:06] Silthias: has joined #ruby
[20:19:34] nankyokusei: has joined #ruby
[20:19:43] douglascorrea: has joined #ruby
[20:21:33] workmad3: has joined #ruby
[20:21:59] JeanCarloMachado: has joined #ruby
[20:22:44] SilverKey: has joined #ruby
[20:23:07] ur5us: has joined #ruby
[20:23:08] tjbiddle: has joined #ruby
[20:25:20] troulouliou_dev: has joined #ruby
[20:25:36] ghr: has joined #ruby
[20:27:17] ensyde: has joined #ruby
[20:27:57] Darmani: has joined #ruby
[20:30:21] ekinmur: has joined #ruby
[20:31:58] triangles: has joined #ruby
[20:32:02] macsteps: has joined #ruby
[20:32:31] douglascorrea: has joined #ruby
[20:33:09] Sashimi: has joined #ruby
[20:33:11] fullofcaffeine: has joined #ruby
[20:33:36] Darmani: Hey guys, I have an array of items with numbers attached to them. How do I get the total of all the numbers combined?
[20:34:13] colegatron: has joined #ruby
[20:34:56] tAn: has joined #ruby
[20:35:07] ghr: has joined #ruby
[20:35:22] dzduvall: has joined #ruby
[20:35:56] fullofca_: has joined #ruby
[20:38:53] shevy: Mimorial it should be possible
[20:39:02] minimali1: has joined #ruby
[20:39:26] shevy: common idioms would be like Shoes.run but you may have to look at how Shoes initialize itself, in ruby code. if you can find out how, you can start it from the commandline
[20:39:28] craigp_: has joined #ruby
[20:39:29] jhack: has joined #ruby
[20:39:33] djbkd: has joined #ruby
[20:39:58] aegis3121: has joined #ruby
[20:40:18] Madplatypus: has joined #ruby
[20:40:54] fullofcaffeine: has joined #ruby
[20:44:43] shinnya: has joined #ruby
[20:44:56] fullofcaffeine: has joined #ruby
[20:45:04] dc4: has joined #ruby
[20:45:13] ghr: has joined #ruby
[20:46:18] fullofca_: has joined #ruby
[20:48:09] havenwood: Darmani: What are "attached" numbers?
[20:48:33] Darmani: havenwood: You are everywhere aren't you.
[20:48:39] havenwood: >> [1, 2, 3].inject :+
[20:48:40] ruby[bot]: havenwood: # => 6 (https://eval.in/602760)
[20:48:46] havenwood: Darmani: If it's Rails; [1, 2, 3].sum
[20:49:07] Darmani: havenwood: They are prices attached to an object.
[20:49:17] Darmani: So you would do shirt.price to get to the number.
[20:49:54] ekinmur: has joined #ruby
[20:50:39] havenwood: >> ['1', '2', '3'].reduce(0) { |sum, s| sum + s.to_i }
[20:50:40] ruby[bot]: havenwood: # => 6 (https://eval.in/602761)
[20:50:51] pawnbox: has joined #ruby
[20:51:07] fullofcaffeine: has joined #ruby
[20:51:10] blackmesa: has joined #ruby
[20:51:15] Darmani: havenwood: hm. okay.
[20:51:19] havenwood: Darmani: Or if it's Rails: ['1', '2', '3'].sum &:to_i
[20:52:05] The_Phoenix: has joined #ruby
[20:52:10] havenwood: Darmani: In your case: sum &:price
[20:53:45] Darmani: havenwood: gotcha
[20:54:38] ghr: has joined #ruby
[20:54:43] whathappens: has joined #ruby
[20:54:51] Darmani: havenwood: hang on wait. The numbers aren't the objects themselves... they are part of the object..
[20:54:54] Darmani: How do I work around that?
[20:55:38] mattwashere: has joined #ruby
[20:55:39] havenwood: >> ['1', '2', '3'].sum { |s| s.to_i.size }
[20:55:40] havenwood: oops, not Rails
[20:55:40] ruby[bot]: havenwood: # => undefined method `sum' for ["1", "2", "3"]:Array (NoMethodError) ...check link for more (https://eval.in/602763)
[20:55:49] havenwood: Darmani: ^ works in Rails
[20:55:51] Mimorial: shevy; shoes doesn't have a gem or anything
[20:56:04] Mimorial: it's just a packaging thing and a runtime
[20:56:09] havenwood: Mimorial: There's the green shoes gem.
[20:56:18] havenwood: Mimorial: Or shoes4 on JRuby.
[20:56:33] kevr: has joined #ruby
[20:56:39] havenwood: (Also a gem.)
[20:56:40] havenwood: https://github.com/shoes/shoes4#readme
[20:56:46] havenwood: https://github.com/ashbb/green_shoes#readme
[20:57:02] shock_one: has joined #ruby
[20:57:07] Mimorial: yeah, I found green_shoes
[20:57:39] havenwood: Mimorial: Shoes4 has some fun samples.
[20:57:50] Mimorial: I wanted to try tk, so I downloaded the Arcadia IDE, but I'm getting this error: "Arcadia require ruby-tk extension"
[20:57:59] Mimorial: there is no such thing in gems nor in the repo
[20:58:42] havenwood: Mimorial: Does your package manager have it?
[20:59:12] Mimorial: havenwood; package manager? I said it's not in the repo
[20:59:17] Mimorial: I downloaded tk as well as tk-dev
[20:59:35] Ebok: has joined #ruby
[20:59:36] mattwashere: has joined #ruby
[21:00:26] isberg: has joined #ruby
[21:02:20] ur5us: has joined #ruby
[21:05:13] karapetyan: has joined #ruby
[21:06:00] replay: has joined #ruby
[21:06:57] jenrzzz: has joined #ruby
[21:07:05] ecnalyr: has joined #ruby
[21:09:36] gener1c: has joined #ruby
[21:10:03] nando293921: has joined #ruby
[21:10:10] diegoviola: has joined #ruby
[21:10:31] brianpWins: has joined #ruby
[21:11:24] Xiti: has joined #ruby
[21:11:39] ghr: has joined #ruby
[21:13:42] shevy: yeah the error reporting of arcadia is obviously bad
[21:13:48] shevy: ruby-tk works fine however had
[21:14:14] houhoulis: has joined #ruby
[21:20:58] Rodya_: has joined #ruby
[21:21:09] ghr: has joined #ruby
[21:21:42] whathappens: has joined #ruby
[21:22:32] tokynet: has joined #ruby
[21:23:19] fredolinhares: has joined #ruby
[21:23:40] agentmeerkat: has joined #ruby
[21:25:33] swills: has joined #ruby
[21:26:04] Mimorial: and I'm confused about the tk development... "require 'tk'" returns an error, and there is no such gem
[21:26:34] Mimorial: ah ok, nvm, I checked it in the core instead of std *facepalm*
[21:27:28] shevy: if you have tcl/tk on your linux system then it should work out of the box, tk is the only toolkit that is part of default ruby stanrdard
[21:27:37] shevy: it also is very ugly
[21:28:30] pawnbox: has joined #ruby
[21:28:47] macsteps: has joined #ruby
[21:29:27] Mimorial: "require 'tk'" or Tk says that it can't load, and without it, the constant isn't initialised
[21:29:29] Mimorial: what's wrong?
[21:30:03] mtkd: has joined #ruby
[21:30:16] Es0teric: has joined #ruby
[21:32:22] shevy: returns true here for me
[21:32:33] shevy: I assume that you don't have all of tcl/tk that is required for it to run
[21:32:44] shevy: or perhaps your distribution has splitted it up into tk-dev
[21:32:57] spudowiar: has joined #ruby
[21:33:28] Mimorial: shevy; it did indeed
[21:33:40] ghr: has joined #ruby
[21:35:13] roamingdog: has joined #ruby
[21:35:14] flughafen_: has joined #ruby
[21:35:59] gener1c: has joined #ruby
[21:36:00] QORRiE: has joined #ruby
[21:36:16] Darmani: havenwood: bruh
[21:36:34] Darmani: http://pastie.org/10902361
[21:36:53] craigp_: has joined #ruby
[21:37:46] Coldblackice: has joined #ruby
[21:37:53] Ebok: has joined #ruby
[21:38:20] SCHAAP137: has joined #ruby
[21:38:47] wald0: has joined #ruby
[21:39:03] Rodya_: has joined #ruby
[21:39:10] torandu: has joined #ruby
[21:40:19] `tim`: has joined #ruby
[21:42:08] gener1c: has joined #ruby
[21:42:10] RegulationD: has joined #ruby
[21:42:12] rodfersou: has joined #ruby
[21:43:09] jaguarmagenta: has joined #ruby
[21:43:49] d5sx43: has joined #ruby
[21:45:31] roamingdog: has joined #ruby
[21:46:10] banisterfiend: has joined #ruby
[21:46:45] hahuang61: has joined #ruby
[21:47:02] AlexRussia: has joined #ruby
[21:48:07] Azure|dc: has joined #ruby
[21:48:41] ghr: has joined #ruby
[21:51:25] Mimorial: shevy; what can I do then?
[21:54:28] shevy: Mimorial you have to find out into which packages they split it up and install these then
[21:54:43] shevy: or use a distribution that does not annoy you with splitting things up
[21:54:54] houhoulis: has joined #ruby
[21:55:01] Mimorial: shevy; I have tk as well as tk-dev
[21:55:06] Mimorial: will try to install the others
[21:55:13] Mimorial: so, do I need to requite tk/Tk or not?
[21:55:22] gener1c: has joined #ruby
[21:56:17] houhoulis: has joined #ruby
[21:56:40] kavanagh: has joined #ruby
[21:58:12] ghr: has joined #ruby
[21:58:38] shevy: you need to always require, it is not required by default
[21:58:48] shevy: require 'tk' # => true
[22:00:07] shevy: this one works for hello world in tk for me: https://gist.github.com/shevegen/5b384ac60e14c1f34e720b1f4194616b
[22:01:27] shevy: here is how that one looks http://shevegen.square7.ch/TK.png
[22:01:38] shevy: I personally use ruby-gnome, I find it much better than tk
[22:05:11] Mimorial: shevy; for now, I just want something that's easy
[22:05:26] Mimorial: gtk isn't very futureproof
[22:05:59] Mimorial: qt is pretty difficult for now
[22:06:22] Mimorial: *too difficult
[22:06:45] gener1c: has joined #ruby
[22:07:25] shevy: tk is easy!
[22:07:42] karapetyan: has joined #ruby
[22:07:44] hutch34: has joined #ruby
[22:07:59] shevy: tcl and tk sources are at: http://downloads.sourceforge.net/tcl/tcl8.6.4-src.tar.gz http://sourceforge.net/projects/tcl/files/Tcl/8.6.0/tk8.6.0-src.tar.gz
[22:08:03] shevy: dunno if these are the latest
[22:08:23] shevy: oh... Tcl 8.6.5 Sources and Tk 8.6.5 Sources is the latest
[22:11:12] ghr: has joined #ruby
[22:12:38] JeanCarloMachado: has joined #ruby
[22:16:37] NingaLeaf: has joined #ruby
[22:18:47] skalfyfan: has joined #ruby
[22:19:24] tAn: has joined #ruby
[22:20:28] nankyokusei: has joined #ruby
[22:20:55] skalfyfan: has joined #ruby
[22:22:05] Polysics: has joined #ruby
[22:24:13] ghr: has joined #ruby
[22:25:05] karapetyan: has joined #ruby
[22:25:22] tomphp: has joined #ruby
[22:26:25] srgupta: has joined #ruby
[22:28:40] JeanCarloMachado: has joined #ruby
[22:31:51] postmodern: has joined #ruby
[22:32:36] dc4: has joined #ruby
[22:33:44] malconis: has joined #ruby
[22:34:10] ensyde: has joined #ruby
[22:34:44] ghr: has joined #ruby
[22:40:28] cdg: has joined #ruby
[22:41:07] ur5us: has joined #ruby
[22:42:18] ecnalyr: has joined #ruby
[22:43:02] fullofcaffeine: has joined #ruby
[22:43:11] roamingdog: has joined #ruby
[22:43:39] Asher: has joined #ruby
[22:43:45] hutch34: has joined #ruby
[22:44:14] ghr: has joined #ruby
[22:45:12] nettoweb: has joined #ruby
[22:45:55] spudowiar: has joined #ruby
[22:46:29] ramfjord: has joined #ruby
[22:46:48] gizmore: has joined #ruby
[22:48:41] djbkd: has joined #ruby
[22:48:41] `tim`: has joined #ruby
[22:49:10] alfiemax: has joined #ruby
[22:53:53] ma489: has joined #ruby
[22:55:52] mistermocha: has joined #ruby
[22:58:45] ghr: has joined #ruby
[22:59:27] whathappens: has joined #ruby
[23:01:21] `tim`: has joined #ruby
[23:03:53] toretore: has joined #ruby
[23:03:59] pawnbox: has joined #ruby
[23:05:14] Polysics: has joined #ruby
[23:05:31] whathappens: has joined #ruby
[23:05:48] workmad3: has joined #ruby
[23:07:51] yadobujo: has joined #ruby
[23:08:32] tjohnson: has joined #ruby
[23:15:21] ghr: has joined #ruby
[23:16:33] troulouliou_dev: has joined #ruby
[23:24:08] mattwashere: has joined #ruby
[23:24:40] David27: has joined #ruby
[23:27:46] ghr: has joined #ruby
[23:28:24] burgestrand: has joined #ruby
[23:29:03] ElFerna: has joined #ruby
[23:29:21] Elvin: has joined #ruby
[23:30:03] Mimorial: has joined #ruby
[23:31:18] kevr: has joined #ruby
[23:32:13] kevr: So, I want to define a class that has an internal Hash object, but I want the class to be able to read just like the Hash does
[23:32:41] kevr: let's say that the internal Hash is { :key => "value" }, I can access the key by Hash.key
[23:33:01] kevr: let's say that Object is the class that i'm wrapping around Hash, I'd like to be able to access Hash.key by Object.key
[23:33:02] Rodya_: has joined #ruby
[23:33:14] kevr: but only for reading purposes, not modifying
[23:33:18] kevr: How can I achieve this?
[23:35:25] shevy: hash = { cat: 'Tom' }; hash.cat # => nil
[23:36:39] havenwood: >> class Kevr; def initialize hash; @hash = hash end; def keys; @hash.keys end end; Kevr.new({aim: true}).keys
[23:36:40] ruby[bot]: havenwood: # => [:aim] (https://eval.in/602802)
[23:36:43] havenwood: >> class Kevr; extend Forwardable; def_delegator :@hash, :keys; def initialize hash; @hash = hash end; end; Kevr.new({aim: true}).keys
[23:36:44] ruby[bot]: havenwood: # => uninitialized constant Kevr::Forwardable (NameError) ...check link for more (https://eval.in/602803)
[23:37:09] havenwood: kevr: require 'forwardable' # before that one ^
[23:37:39] havenwood: kevr: If you want to forward multiple methods: def_delegator :@hash, :keys, :values
[23:38:12] leea: has joined #ruby
[23:39:17] ghr: has joined #ruby
[23:41:18] karapetyan: has joined #ruby
[23:42:07] kevr: havenwood: thanks sir
[23:42:56] kevr: havenwood: however, one little issue, if i forward the whole method set it'll be able to behave as a hash, i assume, but i'd like to make it read-only, does def_delegator have a read-only setting?
[23:43:53] jaguarmagenta: has joined #ruby
[23:44:35] Darmani: havenwood: Hey so .sum adds up all of the prices together but what if a person orders more than one of the same item?
[23:44:39] Darmani: How do I account for that?
[23:47:29] hahuang61: has joined #ruby
[23:48:48] ghr: has joined #ruby
[23:49:24] ur5us: has joined #ruby
[23:52:23] akira616: has joined #ruby
[23:54:05] roamingdog: has joined #ruby
[23:58:25] nando293921: has joined #ruby
[23:59:51] mattwashere: has joined #ruby