« Back to channel list

#ruby - 05 June 2018

« Back 1 day Forward 1 day »
[04:40:56] helpa: has joined #ruby
[04:49:47] stalactit: >> class A; class B; end; private_constant :B; end; A.constants
[04:51:44] karapetyan: has joined #ruby
[04:52:41] stalactit: anyone know how i can find A::B since constants is empty? is ObjectSpace.each_object(Class) my only hope?
[04:53:19] stalactit: assuming i don't know the name "B" already
[04:53:55] Liothen: has joined #ruby
[04:55:15] BlopMonster: has joined #ruby
[05:04:33] cadillac_: has joined #ruby
[05:09:25] alfiemax: has joined #ruby
[05:14:18] anisha: has joined #ruby
[05:16:06] ciscam: has joined #ruby
[05:17:05] ramfjord: has joined #ruby
[05:17:15] conta: has joined #ruby
[05:27:05] sauvin: has joined #ruby
[05:29:48] tAn: has joined #ruby
[05:33:49] reber: has joined #ruby
[05:41:07] mr_foto: has joined #ruby
[05:42:02] mr_foto: has joined #ruby
[05:42:07] fmartingr: has joined #ruby
[05:43:01] rfoust: has joined #ruby
[05:44:45] aupadhye: has joined #ruby
[05:45:04] MihaRekar: has joined #ruby
[05:45:41] mlkkk: has joined #ruby
[05:46:54] nowhere_man: has joined #ruby
[05:47:18] alfiemax: has joined #ruby
[05:47:43] weird_error: has joined #ruby
[05:49:38] ged_: has joined #ruby
[05:50:06] bbobb: has joined #ruby
[05:50:22] z3uS: has joined #ruby
[05:56:17] TinkerT: has joined #ruby
[06:05:55] kapil___: has joined #ruby
[06:07:43] snickers: has joined #ruby
[06:09:56] biberu: has joined #ruby
[06:11:23] vimal2012: has joined #ruby
[06:14:42] roshanavand: has joined #ruby
[06:15:08] dionysus69: has joined #ruby
[06:17:47] vimal2012: has left #ruby: ("Leaving")
[06:30:16] amar: has joined #ruby
[06:39:31] chat_: has joined #ruby
[06:40:14] burgestrand: has joined #ruby
[06:40:32] c0ncealed1: has joined #ruby
[06:44:31] chat: has joined #ruby
[06:47:02] clemens3: has joined #ruby
[06:49:59] amar: has joined #ruby
[06:50:32] mlkkk: has joined #ruby
[06:52:45] wkoszek: has joined #ruby
[06:53:14] karapetyan: has joined #ruby
[06:54:53] andikr: has joined #ruby
[06:56:38] alex``: has joined #ruby
[06:59:40] ged: has joined #ruby
[07:03:28] quobo: has joined #ruby
[07:03:45] chat_: has joined #ruby
[07:04:56] emilford: has joined #ruby
[07:08:43] chat: has joined #ruby
[07:17:16] ramfjord: has joined #ruby
[07:19:03] chat: has joined #ruby
[07:21:29] sysvalve: has joined #ruby
[07:24:40] burgestrand: has joined #ruby
[07:28:29] amar: has joined #ruby
[07:34:16] alfiemax: has joined #ruby
[07:34:40] aufi: has joined #ruby
[07:35:16] alfiemax: has joined #ruby
[07:36:50] dionysus69: has joined #ruby
[07:38:07] jottr: has joined #ruby
[07:42:50] cschneid: has joined #ruby
[07:43:44] ur5us: has joined #ruby
[07:50:44] Jameser: has joined #ruby
[07:51:18] kliq: has joined #ruby
[07:55:05] tomeaton17: has joined #ruby
[07:56:43] ellcs: has joined #ruby
[07:59:25] venmx: has joined #ruby
[08:00:04] emilford: has joined #ruby
[08:01:00] tAn: has joined #ruby
[08:12:38] Mike11: has joined #ruby
[08:17:37] guille-moe: has joined #ruby
[08:17:53] amar: has joined #ruby
[08:18:22] amar: has joined #ruby
[08:20:17] anisha: has joined #ruby
[08:22:23] schleppel: has joined #ruby
[08:24:45] mlkkk: has joined #ruby
[08:31:39] yohji: has joined #ruby
[08:32:13] johnny56_: has joined #ruby
[08:35:30] NL3limin4t0r: has joined #ruby
[08:38:02] wkoszek_: has joined #ruby
[08:42:15] BlopMonster: has joined #ruby
[08:43:50] venmx: has joined #ruby
[08:44:23] lxsameer: has joined #ruby
[08:47:33] karapetyan: has joined #ruby
[09:00:49] aakp: has joined #ruby
[09:00:56] plexigras: has joined #ruby
[09:01:30] dhollin3: has joined #ruby
[09:04:03] banisterfiend: has joined #ruby
[09:09:43] drale2k_: has joined #ruby
[09:17:55] tAn: has joined #ruby
[09:29:42] aufi: has joined #ruby
[09:32:38] karapetyan: has joined #ruby
[09:34:06] amar: has joined #ruby
[09:37:14] Cthulu201: has joined #ruby
[09:38:23] Megamos: has joined #ruby
[09:42:48] cschneid: has joined #ruby
[09:46:44] ShekharReddy: has joined #ruby
[09:47:19] mlkkk: has joined #ruby
[09:54:49] emilford: has joined #ruby
[09:57:48] ciscam: has joined #ruby
[09:59:32] Mrgoose2: has joined #ruby
[10:00:58] emilford: has joined #ruby
[10:07:32] mtkd: has joined #ruby
[10:11:05] Zaab1t: has joined #ruby
[10:17:30] alfiemax: has joined #ruby
[10:20:59] nowhere_man: has joined #ruby
[10:30:06] emilford: has joined #ruby
[10:36:14] amar: has joined #ruby
[10:37:17] ciscam: has joined #ruby
[10:38:12] alfiemax: has joined #ruby
[10:39:17] karapetyan: has joined #ruby
[10:39:24] emilford: has joined #ruby
[10:41:51] Defenestrate: has joined #ruby
[10:47:04] sonOfRa: has joined #ruby
[10:47:24] TheBetrayer: has joined #ruby
[10:47:44] banisterfiend: has joined #ruby
[10:48:51] redlegion: has joined #ruby
[10:51:20] emilford: has joined #ruby
[10:52:51] _aeris_: has joined #ruby
[11:02:35] krandi: has joined #ruby
[11:07:29] alfiemax: has joined #ruby
[11:09:01] VladGh: has joined #ruby
[11:09:32] Mrgoose2: has joined #ruby
[11:09:50] x71e6fd52: has joined #ruby
[11:16:06] simmaniac: has joined #ruby
[11:18:36] Mrgoose2: has joined #ruby
[11:19:59] emilford: has joined #ruby
[11:22:39] Mrgoose: has joined #ruby
[11:22:49] BlopMonster: has joined #ruby
[11:23:35] Cavallari: has joined #ruby
[11:24:18] dionysus69: how do I parse this format in ruby? 2018-06-04T14:45:11
[11:26:33] alfiemax: has joined #ruby
[11:28:09] apeiros__: >> require 'time'; Time.iso8601("2018-06-04T14:45:11")
[11:28:09] ruby[bot]: apeiros__: # => 2018-06-04 14:45:11 +0000 (https://eval.in/1015225)
[11:28:13] apeiros__: ^ dionysus69
[11:33:28] eelster: has joined #ruby
[11:37:14] sphenxes: has joined #ruby
[11:38:59] Nicmavr: has joined #ruby
[11:38:59] emilford: has joined #ruby
[11:39:44] _aeris_: has joined #ruby
[11:40:01] chat: has joined #ruby
[11:41:46] ldnunes: has joined #ruby
[11:41:58] andikr: has joined #ruby
[11:43:47] anisha: has joined #ruby
[11:46:23] dendazen: has joined #ruby
[11:50:41] alfiemax: has joined #ruby
[11:53:20] AJA4350: has joined #ruby
[11:54:31] emilford: has joined #ruby
[11:56:12] tvw: has joined #ruby
[11:56:49] balo: has joined #ruby
[11:57:10] dionysus69: nice, that's much better than what I was thinking about
[11:57:12] dionysus69: >>Time.strptime("2018-06-04T14:45:11", "%Y-%m-%dT%H:%M:%N")
[11:57:13] ruby[bot]: dionysus69: # => undefined method `strptime' for Time:Class (NoMethodError) ...check link for more (https://eval.in/1015240)
[11:57:46] dionysus69: >>require "date"
[11:57:47] ruby[bot]: dionysus69: # => true (https://eval.in/1015241)
[11:57:57] dionysus69: >> Time.strptime("2018-06-04T14:45:11", "%Y-%m-%dT%H:%M:%N")
[11:57:58] ruby[bot]: dionysus69: # => undefined method `strptime' for Time:Class (NoMethodError) ...check link for more (https://eval.in/1015242)
[11:58:08] shinnya: has joined #ruby
[11:59:05] ramfjord: has joined #ruby
[12:01:26] emilford: has joined #ruby
[12:04:54] cyberg: has joined #ruby
[12:05:29] karapetyan: has joined #ruby
[12:05:49] guille-moe: has joined #ruby
[12:07:02] NL3limin4t0r: require 'time'; Time.strptime("2018-06-04T14:45:11", "%Y-%m-%dT%H:%M:%N")
[12:07:06] NL3limin4t0r: >> require 'time'; Time.strptime("2018-06-04T14:45:11", "%Y-%m-%dT%H:%M:%N")
[12:07:07] ruby[bot]: NL3limin4t0r: # => 2018-06-04 14:45:00 +0000 (https://eval.in/1015255)
[12:07:36] NL3limin4t0r: dionysus69: Time::strptime is not in core, but in std-lib time.
[12:07:54] dionysus69: I dont have it required so I thought it was core :D
[12:08:05] dionysus69: thanks for letting me know
[12:08:08] emilford: has joined #ruby
[12:15:34] apeiros: iso8601 >> strptime
[12:16:21] apeiros: and %N is wrong
[12:16:37] apeiros: should be %S
[12:16:46] andikr: has joined #ruby
[12:16:58] emilford: has joined #ruby
[12:17:08] apeiros: >> require 'time'; Time.strptime("2018-06-04T14:45:11", "%FT%T") # as a side-note. as said, I'd use Time.iso8601
[12:17:08] ruby[bot]: apeiros: # => 2018-06-04 14:45:11 +0000 (https://eval.in/1015257)
[12:18:13] guille-moe: has joined #ruby
[12:26:58] fmcgeough: has joined #ruby
[12:28:30] drale2k_: has joined #ruby
[12:35:27] apparition: has joined #ruby
[12:35:35] emilford: has joined #ruby
[12:36:36] alfiemax: has joined #ruby
[12:37:21] banisterfiend: has joined #ruby
[12:37:29] jamesaxl: has joined #ruby
[12:39:11] bmurt: has joined #ruby
[12:47:29] emilford: has joined #ruby
[12:50:36] amar: has joined #ruby
[12:52:37] karapetyan: has joined #ruby
[12:53:57] TomyWork: has joined #ruby
[12:58:03] byte00: has joined #ruby
[12:58:06] Rapture: has joined #ruby
[13:04:02] Beams: has joined #ruby
[13:08:22] livcd: Is there anyone actively using Graal?
[13:09:48] nfk: has joined #ruby
[13:15:18] emilford: has joined #ruby
[13:16:43] alfiemax: has joined #ruby
[13:17:07] dionysus69: thanks apeiros
[13:18:47] apeiros: livcd: chrisseaton I'd presume :D
[13:19:30] livcd: apeiros: funny
[13:19:40] siery: has joined #ruby
[13:19:54] Cthulu201: has joined #ruby
[13:20:46] siery: Hi! I don't quite get when an variable is of Integer type.. Why is that not an Integer:
[13:21:01] siery: ruby> a.to_i == Integer
[13:21:05] siery: ruby> a == Integer
[13:21:36] apeiros: an integer is never equal to the Integer *class*
[13:21:42] apeiros: >> 1.is_a?(Integer)
[13:21:43] ruby[bot]: apeiros: # => true (https://eval.in/1015318)
[13:21:47] apeiros: >> 1 == Integer
[13:21:48] ruby[bot]: apeiros: # => false (https://eval.in/1015319)
[13:22:35] siery: ow.. thats becouse it is false or true.. that makes sens. Thank you c:
[13:23:32] siery: >> 'apeiros' == String
[13:23:44] mlkkk: has joined #ruby
[13:23:59] BlopMonster: has joined #ruby
[13:24:38] apeiros: it's because == is an equality check. not a test for whether an object is an instance of a class.
[13:24:46] siery: hmm.. how to use that eval? c:
[13:24:51] apeiros: is_a?/kind_of?/instance_of? are
[13:24:54] apeiros: you have to be registered
[13:24:58] emilford: has joined #ruby
[13:25:02] apeiros: /ns help register
[13:25:27] mlkkk: has joined #ruby
[13:27:15] synthroid: has joined #ruby
[13:27:51] jottr: has joined #ruby
[13:28:13] griffindy: has joined #ruby
[13:29:57] dalitom: has joined #ruby
[13:30:03] ramfjord: has joined #ruby
[13:31:17] emilford: has joined #ruby
[13:34:21] dalitom: Hey guys, noob here lol.....I need some advice. Basically I am trying to write a network discovery script in our lab, something like... discover all active IPs on each VALN and get information from physical gear ( servers and network gear) (MAC, COP capacity, RAM, HDD, etc). I wanted to go with SNMP but it needs to be enabled on all network gear and install agent on servers.
[13:35:28] dalitom: Please advise, I will consider any type of idea
[13:40:46] mlkkk: has joined #ruby
[13:45:20] havenwood: dalitom: My first thought was arp-scan. If you want to capture nearby packets, monitor mode with airmon-ng with airodump-ng.
[13:45:33] ellcs: has joined #ruby
[13:48:49] gray_-_wolf: has joined #ruby
[13:50:04] dalitom: havenwood: Well that's Backtrack/Kali stuff, I am writing this in Ruby. I got that part where I scan all VLANs and get active IPs with simple nmap. But actual communication with the server I cannot figure out, without installing SNMP agents
[13:50:18] havenwood: dalitom: ah
[13:51:04] havenwood: dalitom: Can you install DRb on each machine? ;-)
[13:52:56] dalitom: havenwood: :) no I do not have admin credentials to install agents :/
[13:53:28] dminuoso: havenwood: oh goodie, you were named on one of the major German tech websites
[13:53:58] havenwood: dminuoso: huh? :-O
[13:54:04] dminuoso: havenwood: https://www.golem.de/news/programmiersprache-vorschau-auf-ruby-2-6-bringt-jit-compiler-1806-134745.html
[13:54:15] dminuoso: Had to smile when I read that
[13:54:28] havenwood: dminuoso: :-D
[13:54:59] Nussi: has joined #ruby
[13:55:05] mtkd: has joined #ruby
[13:55:19] eelster: has joined #ruby
[13:55:23] RougeR: has joined #ruby
[13:55:23] RougeR: has joined #ruby
[13:55:45] gnufied: has joined #ruby
[14:00:30] Asher: has joined #ruby
[14:02:38] jrafanie: has joined #ruby
[14:05:24] jottr: has joined #ruby
[14:10:52] za1b1tsu: has joined #ruby
[14:14:14] chat_: has joined #ruby
[14:15:17] alfiemax: has joined #ruby
[14:16:29] beefjoe: has joined #ruby
[14:16:33] snickers: has joined #ruby
[14:17:03] ciscam: has joined #ruby
[14:18:03] clemens3: has joined #ruby
[14:18:56] linuxdaemon: has joined #ruby
[14:20:40] k0mpa: has joined #ruby
[14:24:54] chat: has joined #ruby
[14:25:52] LightStalker: has joined #ruby
[14:28:26] jottr: has joined #ruby
[14:34:15] iceden: has joined #ruby
[14:38:09] suukim: has joined #ruby
[14:38:12] fr4nt1c: has joined #ruby
[14:38:15] karapetyan: has joined #ruby
[14:40:39] LightStalker: has joined #ruby
[14:48:35] alfiemax: has joined #ruby
[14:51:51] mlkkk: has joined #ruby
[14:52:47] rippa: has joined #ruby
[14:54:33] drale2k_: has joined #ruby
[15:00:03] cschneid: has joined #ruby
[15:01:21] cdunklau: has joined #ruby
[15:02:08] cdunklau: i'm kind overwhelmed by all the tutorial choices here https://www.ruby-lang.org/en/documentation/
[15:02:50] cdunklau: i know it's probably a tired question, so sorry in advance: what's the "best" ruby tutorial for experienced programmers?
[15:07:50] cjohnson: metaprogramming ruby 2 is a book, not tutorial, but pretty good
[15:07:57] bonhoefer: has joined #ruby
[15:08:39] z64: cdunklau: i would recommend "learn ruby the hard way" (though mind the dated style choices). if you find that a bit dull, you might try why's poignant guide. ultimately depends on your background / how you learn
[15:11:51] cdunklau: z64: i'm not a fan of zed shaw's style :) i have heard of why's... does it assume some programming experience? my background is primarily python, with bits of php, perl, java, and C#
[15:13:11] cdunklau: i like deep dives and tangents, but practical guides suit me as well
[15:15:13] troys: has joined #ruby
[15:15:36] NL3limin4t0r: cdunklau: The codecademy for ruby is a pretty good start. The first few steps might be pretty dump if you'll are already an experienced programmer, but it picks up in the letter steps.
[15:15:58] NL3limin4t0r: http://www.codecademy.com/tracks/ruby
[15:17:08] cdunklau: thanks folks, that'll give me a good start i think
[15:17:12] elomatreb: Alternatively you can look at the book list linked in the topic
[15:17:16] cdunklau: will most likely ask around
[15:17:33] cdunklau: err, ask around here* at some point
[15:18:18] NL3limin4t0r: ?links cdunklau
[15:18:18] ruby[bot]: cdunklau: http://ruby-community.com/pages/links
[15:20:00] tcopeland: has joined #ruby
[15:20:03] chat_: has joined #ruby
[15:21:22] alfiemax: has joined #ruby
[15:22:15] cdunklau: one thing that confused me at first was vagrant's avoidance of parens for method calls. is that the conventional style, or is it more of an opinionated thing
[15:24:14] cjohnson: I find it to be fairly split
[15:24:53] z64: if you're new to ruby style, look at the
[15:24:59] chat: has joined #ruby
[15:25:00] z64: *ruby style guide
[15:25:19] elomatreb: There are some different style guides, some recommend always leaving them off where they would be optional, some recommend an approach based on semantics
[15:25:21] z64: and if you want, use rubocop and research the code it flags and why
[15:25:36] havenwood: cdunklau: Some folk call avoiding parens unless it breaks the interpreter "Seattle style".
[15:25:37] havenwood: cdunklau: (It's the style Seattle.rb uses.)
[15:25:37] elomatreb: i.e. leave the parens off for "public" methods, use them for internals
[15:25:46] jottr: has joined #ruby
[15:26:01] havenwood: I like omitting them, but follow the convention of the repo I'm working on.
[15:26:03] NL3limin4t0r: cdunklau: If you're questioning some Ruby code style I mostly check it with the ruby-style-guide but you're free to do whatever you want. https://github.com/rubocop-hq/ruby-style-guide
[15:27:35] havenwood: An argument for parens by drbrain: https://gist.github.com/drbrain/5ea7c9389a55c81fd3c1
[15:27:36] havenwood: no parens**
[15:28:02] havenwood: I do like how omitting parens often aligns with what's lovely to have on one line.
[15:29:02] havenwood: I like that style a lot. I think omitting them makes it way easier to read. I have less trouble quickly parsing default precedence than trying to follow a bunch of ((..)..)
[15:29:34] derp10327: lol I'm a cheater
[15:29:35] havenwood: "When I read code that requires parentheses I eventually stop paying attention to them and treat them like whitespace."
[15:31:11] derp10327: So I was attempting a fairly simple Ruby coding challenge that was just a cliché interview question: https://i.imgur.com/xO74vXu.png
[15:31:56] derp10327: Only problem was that I found out that the scales object wasn't actually an array, but it's own class, once I'd written all of the code to solve the problem.
[15:31:58] chat: has joined #ruby
[15:32:42] derp10327: https://screenshotscdn.firefoxusercontent.com/images/75292408-3a4a-4b11-ba8b-8f3fe945e823.png my "solution"
[15:34:23] cdunklau: NL3limin4t0r: fabulous, thanks
[15:34:29] cdunklau: havenwood: you too
[15:36:42] mlkkk: has joined #ruby
[15:39:39] chat_: has joined #ruby
[15:41:35] alfiemax: has joined #ruby
[15:42:24] eelster: has joined #ruby
[15:42:38] jcarl43: has joined #ruby
[15:43:02] alfiemax: has joined #ruby
[15:43:30] pastorinni: has joined #ruby
[15:48:43] cagomez: has joined #ruby
[15:48:44] alfiemax: has joined #ruby
[15:51:39] pastorinni: has joined #ruby
[15:52:05] bbobb: has joined #ruby
[15:52:23] mostlybadfly: has joined #ruby
[16:00:07] mtkd: has joined #ruby
[16:04:09] baweaver: ohai cjohnson
[16:09:13] apeiros: that's… an interesting reaction 😂
[16:10:35] baweaver: apeiros: There's history
[16:10:54] baweaver: I insist that puns are a delicacy. cjohnson is inclined to disagree
[16:11:15] baweaver: This one was fun: https://twitter.com/keystonelemur/status/1004032172074807296
[16:12:01] biberu: has joined #ruby
[16:14:00] baweaver: Also problem of the week is out: https://twitter.com/keystonelemur/status/1003701123092393984
[16:14:17] darkhanb: has joined #ruby
[16:15:19] chat: has joined #ruby
[16:15:42] brianpWins: has joined #ruby
[16:15:45] Sylario: ruby NET::HTTP does not support form-data?
[16:16:14] Sylario: https://ruby-doc.org/stdlib-2.5.1/libdoc/net/http/rdoc/Net/HTTP.html
[16:16:23] Sylario: Is this a doc typo?
[16:16:30] mozzarella: has joined #ruby
[16:19:09] KeyJoo: has joined #ruby
[16:19:10] Mike11: has joined #ruby
[16:20:23] chat_: has joined #ruby
[16:20:33] baweaver: havenwood: you get a solution yet? :D
[16:21:47] gizmore: has joined #ruby
[16:23:21] gizmore|3: has joined #ruby
[16:28:41] howdoi: has joined #ruby
[16:29:57] amar_: has joined #ruby
[16:31:12] fierycatnet: has joined #ruby
[16:34:11] Paraxial: has joined #ruby
[16:34:26] brianpWins: has joined #ruby
[16:35:14] nowhere_man: has joined #ruby
[16:37:09] TinkerT: has joined #ruby
[16:37:47] wkoszek_: has joined #ruby
[16:38:41] TomyLobo: has joined #ruby
[16:40:14] chatts: has joined #ruby
[16:41:42] Paraxial: has joined #ruby
[16:43:05] agent_white: has joined #ruby
[16:43:54] TinkerT: has joined #ruby
[16:44:19] amar: has joined #ruby
[16:45:18] jottr: has joined #ruby
[16:45:25] chat_: has joined #ruby
[16:45:33] roshanavand: has joined #ruby
[16:46:18] eelster: has joined #ruby
[16:47:42] Paraxial: has joined #ruby
[16:50:22] chatts: has joined #ruby
[16:51:39] nowhereman_: has joined #ruby
[16:52:53] kmurphy4: has joined #ruby
[16:53:06] Paraxial: has joined #ruby
[16:54:02] lxsameer: has joined #ruby
[16:59:15] badman: has joined #ruby
[17:00:51] chat_: has joined #ruby
[17:02:08] mzo: has joined #ruby
[17:02:14] lxsameer: has joined #ruby
[17:04:30] havenwood: baweaver: Not yet, but that looks like a fun one. Will do!
[17:05:53] chat_: has joined #ruby
[17:05:58] GodFather: has joined #ruby
[17:06:39] cadillac_: has joined #ruby
[17:07:55] Paraxial: has joined #ruby
[17:11:45] BlopMonster: has joined #ruby
[17:11:53] Mike11: has joined #ruby
[17:12:20] lxsameer: has joined #ruby
[17:12:31] havenwood: baweaver: Whats the thingy you use for code as an image in the tweets?
[17:13:00] havenwood: oh, carbon, nvm!
[17:13:52] Paraxial: has joined #ruby
[17:14:21] Mike11: has joined #ruby
[17:18:22] ldepandis: has joined #ruby
[17:21:21] alfiemax: has joined #ruby
[17:21:41] baweaver: carbon.now.sh - yeah
[17:22:09] alfiemax_: has joined #ruby
[17:22:14] lxsameer: has joined #ruby
[17:22:35] karapetyan: has joined #ruby
[17:27:04] spiette: has joined #ruby
[17:27:33] chat_: has joined #ruby
[17:32:06] lxsameer: has joined #ruby
[17:36:39] alfiemax: has joined #ruby
[17:42:12] lxsameer: has joined #ruby
[17:46:05] alfiemax: has joined #ruby
[17:46:42] ramfjord: has joined #ruby
[17:46:59] chatts: has joined #ruby
[17:48:16] jamesaxl: has joined #ruby
[17:49:46] alfiemax: has joined #ruby
[17:51:50] amar: has joined #ruby
[17:52:17] lxsameer: has joined #ruby
[17:55:37] Paraxial: has joined #ruby
[17:58:06] alfiemax: has joined #ruby
[18:02:14] lxsameer: has joined #ruby
[18:05:25] chat_: has joined #ruby
[18:08:07] hays: has joined #ruby
[18:08:36] Jiaoyin: has joined #ruby
[18:09:30] dionysus69: has joined #ruby
[18:09:56] mtkd: has joined #ruby
[18:10:24] drale2k_: has joined #ruby
[18:10:31] Jiaoyin: ..so I created a class called "Piglet". I added a def to it called "speak". Inside of speak I have "puts "oink oink!". After that I closed the def and the class.
[18:10:51] Jiaoyin: How do I puts out the string "oink oink!"
[18:11:42] Jiaoyin: Inside the IRB do I type in................................ puts Piglet.speak
[18:11:44] Jiaoyin: or...what?
[18:12:13] lxsameer: has joined #ruby
[18:12:53] elomatreb: First you need to load your file, so that irb knows about it
[18:13:00] elomatreb: load "yourfilename.rb"
[18:13:13] Hobbes: has joined #ruby
[18:13:58] Jiaoyin: ....so I have to save the whole Piglet.speak thing and re-open it up in IRB?
[18:14:15] elomatreb: Oh, sorry. I thought had a file, nevermind that then
[18:14:55] elomatreb: You created an instance method. You can now call it on an instance of the Piglet class (created using Piglet.new)
[18:15:00] Jiaoyin: I'm just working/learning ruby with only the IRB
[18:15:32] ellcs: has joined #ruby
[18:15:41] Jiaoyin: why Piglet.new ??? I didn't create a .new, did I?
[18:16:13] elomatreb: Do you know/understand the class<->instance relationship?
[18:16:19] Jiaoyin: When I typed in "puts Piglet.new"........I got 0x0000000005098f80
[18:16:38] Jiaoyin: well, not sure if I understand it. I thought I did. i guess not.
[18:16:39] elomatreb: Indeed, that is the location of the instance (an object) you just created in memory
[18:16:58] Jiaoyin: ........how do I pull that out of the memory?
[18:17:08] elomatreb: A class is like the blueprint for something, and you follow the instructions on it and build what it is for by calling .new on it (in Ruby)
[18:17:48] elomatreb: You don't have to retrieve it from memory, Ruby does that for you. Ruby just doesn't know how to print a Piglet, so it falls back to telling you where it is, basically
[18:17:52] Jiaoyin: So ".new" is something to use to see where it's stored in the memory?
[18:18:24] elomatreb: Forget about memory for now, Ruby takes care of all of that for you
[18:18:25] Jiaoyin: yea, that I get......but, how do I print/puts it on screen
[18:18:58] elomatreb: There is nothing meaningful to print for now. You can try calling Piglet.new.speak
[18:20:04] Jiaoyin: I see. That answers my question on how to puts it on screen, but what do you mean by it's nothing meaning to print for now?
[18:20:53] elomatreb: Ruby has to know how to print something. Internally, your piglet is a data structure somewhere in memory, a whole bunch of more or less meaningless bytes
[18:21:21] elomatreb: Some of these bytes are for remembering that it is a Piglet, some of them are for tracking relationships to other objects, and some of them are the actual "data"
[18:21:35] thinkpad: has joined #ruby
[18:22:03] lxsameer: has joined #ruby
[18:22:04] elomatreb: If you don't define some code that tells Ruby what is interesting about it, it doesn't which of these bytes you really care about (i.e. a String is something different from an Array is something different from a Piglet)
[18:22:20] elomatreb: (the method Ruby uses to turn something into something printable is `to_s`)
[18:22:52] Jiaoyin: makes sense. So, how does someone add another string to it......interger or something else to Piglet.speak
[18:23:21] elomatreb: That depends entirely on what you want to do
[18:23:32] Jiaoyin: or...remove something that is already in Piglet......for example remove speak
[18:24:03] elomatreb: Now we're back to the class-instance thing. You aren't calling speak on Piglet, but on an instance of the Piglet class
[18:25:07] karapetyan: has joined #ruby
[18:25:17] Jiaoyin: Lets say I want to just add a new string of text to what I have previous. How do I do that?
[18:25:31] elomatreb: You have to change the definition, and recreate the instances
[18:25:40] Jiaoyin: Instead of it saying "oink oink!", I want it to say "Hello World" or add to it.
[18:25:49] elomatreb: You can just open the class and the method definition again, the new method will override the old one
[18:26:23] \void: has joined #ruby
[18:28:04] elomatreb: I suggest you find a Ruby tutorial/guide that starts with class basics, this is something fundamental you need to understand before anything else will make sense
[18:28:05] cagomez: has joined #ruby
[18:29:54] Jiaoyin: yea, I know. That's what I'm doing right now. Taking a course. But I needed some help to sort things out, that's why I came here.
[18:30:04] Jiaoyin: I just tried it and it worked.
[18:31:01] Jiaoyin: I just have another question..... how come puts Piglet.new.speak + "Hello" doesn't work? is there a better way of writing this?
[18:31:18] Jiaoyin: without....changing speak like what we were talking before
[18:32:13] lxsameer: has joined #ruby
[18:32:21] Cavallari: has joined #ruby
[18:33:26] tobiasvl: Jiaoyin: what do you mean by "doesn't work"
[18:34:23] Jiaoyin: I'm trying to add "Hello" onto speak without changing speak.
[18:34:26] Jiaoyin: puts Piglet.new.speak + "Hello"
[18:34:30] tobiasvl: Jiaoyin: you should show your code, and explain what "doesn't work", ie. give a good description of the error and what you expect to happen
[18:34:45] tobiasvl: how is Piglet's speak method defined?
[18:35:41] Jiaoyin: Did that up there ^^^. But this is what I did........
[18:35:47] Jiaoyin: class Piglet
[18:36:04] Jiaoyin: puts "oink oink!"
[18:36:11] tobiasvl: sorry, too much to read through up there
[18:36:37] Jiaoyin: ...and now I'm trying to add a string to it. Not by changing "speak"
[18:36:57] Jiaoyin: I'm just doing this in the IRB
[18:37:06] tobiasvl: OK, so your speak method does not return anything. when you do `puts Piglet.new.speak + "Hello"` you're saying "print out the return value of Piglet.new.speak and concatenate 'Hello' to it" but there is no reurn value.
[18:38:00] [Butch]: has joined #ruby
[18:38:35] Jiaoyin: I know that by running puts Piglet.new.speak ..............it comes out "Hello"
[18:38:57] tobiasvl: that's a side effect
[18:39:08] Jiaoyin: side effect?
[18:39:08] tobiasvl: you probably get an empty line as well
[18:39:17] GodFather: has joined #ruby
[18:39:52] tobiasvl: when you do `puts Piglet.new.speak` you're saying "call Piglet.new.speak, and print out the return value afterwards". there is no return value. however, when calling Piglet.new.speak, that method itself prints out something
[18:40:48] Jiaoyin: how do I make it a return value?
[18:41:03] tobiasvl: Piglet.new.speak returns nil (as you can probably see in irb), because puts itself returns nil. nil basically means "no return value". if you `puts nil`, you just print an empty line (and return nil again).
[18:41:24] tobiasvl: Jiaoyin: if you want to change the speak method to return the string, you must return it using the return keyword
[18:41:28] tobiasvl: are you very new to programming?
[18:42:04] tobiasvl: do you know any other languages? ruby does it similarly to other languages, except that it also returns the value of the last expression if there's no explicit return statement
[18:42:14] lxsameer: has joined #ruby
[18:42:22] Jiaoyin: when I run puts Piglet.new.speak .....I got "Hello" though
[18:42:36] Jiaoyin: cuz I had the "Hello" string under speak before
[18:43:20] Jiaoyin: I know a bit of python, but honestly I'm new to that as well so that doesn't count. Ruby is the first lanuage i'm actually trying to learn here.
[18:43:23] eckhardt_: has joined #ruby
[18:43:50] Jiaoyin: outside of python..
[18:44:48] tobiasvl: ok, well, python is similar in that print() (the equivalent to puts) returns None (the equivalent to nil)
[18:46:00] tdy: has joined #ruby
[18:46:54] SeepingN: has joined #ruby
[18:48:02] safetypin: has joined #ruby
[18:49:57] pskosinski: has joined #ruby
[18:52:15] lxsameer: has joined #ruby
[18:55:47] kt: has joined #ruby
[18:58:01] sameerynho: has joined #ruby
[19:02:14] lxsameer: has joined #ruby
[19:07:14] dust_: has joined #ruby
[19:08:50] face: has joined #ruby
[19:12:02] lxsameer: has joined #ruby
[19:15:26] jenrzzz: has joined #ruby
[19:15:27] jenrzzz: has joined #ruby
[19:20:33] krawchyk: has joined #ruby
[19:21:30] cek: has joined #ruby
[19:22:15] lxsameer: has joined #ruby
[19:23:36] cek: What's the link to docs on latest yaml hooks framework? https://ruby-doc.org/stdlib-2.5.1/libdoc/yaml/rdoc/YAML.html is useless.
[19:24:36] synthroid: has joined #ruby
[19:26:02] cagomez: has joined #ruby
[19:31:59] lxsameer: has joined #ruby
[19:33:22] Liothen: has joined #ruby
[19:34:11] karapetyan: has joined #ruby
[19:41:10] wilbert: has joined #ruby
[19:41:39] cagomez: has joined #ruby
[19:42:00] lxsameer: has joined #ruby
[19:42:53] kt: has joined #ruby
[19:43:19] cek: has left #ruby: ()
[19:45:25] quobo: has joined #ruby
[19:52:07] lxsameer: has joined #ruby
[19:53:55] Sembei: has joined #ruby
[19:57:33] cagomez: has joined #ruby
[19:57:43] Liothen: has joined #ruby
[19:59:12] lxsameer: has joined #ruby
[20:00:10] p0p0pr37_: has joined #ruby
[20:00:10] p0p0pr37_: has joined #ruby
[20:01:04] jenrzzz_: has joined #ruby
[20:02:47] Liothen: has joined #ruby
[20:04:26] roshanavand: has joined #ruby
[20:06:28] eckhardt_: has joined #ruby
[20:07:11] tdy: has joined #ruby
[20:07:35] siery: has joined #ruby
[20:10:03] cagomez: has joined #ruby
[20:10:26] ryanmc: has joined #ruby
[20:11:11] ryanmc: has joined #ruby
[20:12:15] lxsameer: has joined #ruby
[20:12:15] RyanMcCoskrie: has joined #ruby
[20:12:57] akaiiro: has joined #ruby
[20:13:25] RyanMcCoskrie: has joined #ruby
[20:14:23] akaiiro: has left #ruby: ()
[20:14:29] akaiiro: has joined #ruby
[20:18:11] RyanMcCoskrie: has joined #ruby
[20:22:02] lxsameer: has joined #ruby
[20:31:17] pastorinni: has joined #ruby
[20:31:32] akaiiro: has joined #ruby
[20:32:13] lxsameer: has joined #ruby
[20:42:07] lxsameer: has joined #ruby
[20:44:31] Emmanuel_Chanel: has joined #ruby
[20:52:08] lxsameer: has joined #ruby
[20:55:43] yawniek: has joined #ruby
[20:57:58] icarus: has joined #ruby
[21:02:08] lxsameer: has joined #ruby
[21:08:48] za1b1tsu: has joined #ruby
[21:08:51] ur5us: has joined #ruby
[21:10:38] fmcgeough: has joined #ruby
[21:12:09] lxsameer: has joined #ruby
[21:13:14] BlopMonster: has joined #ruby
[21:15:28] pavtih: has joined #ruby
[21:17:24] za1b1tsu: has joined #ruby
[21:21:01] chat: has joined #ruby
[21:22:03] lxsameer: has joined #ruby
[21:23:51] zautomata: has left #ruby: ("WeeChat 1.9.1")
[21:25:39] mozzarella: has joined #ruby
[21:32:09] lxsameer: has joined #ruby
[21:34:37] siery: Sorry, but I have to enter 9 lines of code to explain my problem. I been trying this on gamedev forum, but nobady answer, so maybe here I will have luck.
[21:34:43] siery: File.foreach(f_map).with_index do |line, y|
[21:34:45] siery: line.each_char.lazy.each_slice(2).map(&:first).with_index do |char, x|
[21:34:47] siery: if char != ?\n and char.to_s != ' '
[21:34:49] siery: @tiles[[x, y]] = Tile.new(x * @tile_size, y * @tile_size, @tileset, char)
[21:34:51] siery: @width = x
[21:34:57] siery: @height = y
[21:35:23] apeiros: siery: see topic, paste >3 lines on a paste service
[21:36:31] siery: So.. is there something wrong with above code? It seem to produce correct data, but after I wite this into my `Map` constructor the `Map` render stoped working :c
[21:36:48] agent_white: has joined #ruby
[21:38:17] apeiros: the slice you're showing looks fine. the things I'd change are unlikely to be related to your problem.
[21:39:33] apeiros: ah, `map(&:first).with_index` is probably wrong. by "stops working", do you mean you get an exception?
[21:41:27] siery: Not really, I'm getting the error: undefined method `draw' for nil:NilClass (NoMethodError)
[21:41:45] apeiros: uh, that is an exception.
[21:42:31] apeiros: for future reference, "does not work" is a terrible problem description. in case of an exception, the exception is already a much better description.
[21:42:49] apeiros: anyway, "draw" is not called in the code above. so the piece you showed is insufficient.
[21:43:19] Mike11: has joined #ruby
[21:43:20] siery: Well, yes, so see..
[21:46:35] siery: The draw method is fair simple.. The part of code above shold feel @tiles instant 2D array with Tile objects.. and this seem to work, here is the state of @tiles[[0, 0]] inside Map.draw, bofore I call Tile.draw
[21:46:41] siery: https://paste.debian.net/1028123/
[21:47:47] apeiros: the draw method is irrelevant. the code where it is *called* is.
[21:48:01] siery: Then the draw method of Map class look simply like that
[21:48:03] siery: https://paste.debian.net/1028124/
[21:48:04] apeiros: what does this error tell you "undefined method `draw' for nil:NilClass (NoMethodError)"?
[21:49:21] ramfjord: has joined #ruby
[21:49:33] siery: well, let me finish explaining, sorry, Im pretty slow at writing english c:
[21:50:41] apeiros: note: 0..x will is an off-by-one error. if x = 10, you'll iterate 11 times.
[21:51:14] apeiros: use `x.times do |i|` instead.
[21:51:43] apeiros: (I mean instead of your `for y in 0..@width` and same for @height)
[21:53:37] kt: has joined #ruby
[21:54:22] siery: Simply as you see the Tile object calls it't instance of @spirite.draw with work really basic as well, thanks to gosu: https://paste.debian.net/1028126/
[21:55:07] jenrzzz: has joined #ruby
[21:55:08] jenrzzz: has joined #ruby
[21:55:09] apeiros: siery: please ping me when your explanation is complete
[21:55:22] apeiros: (ping = write my nick)
[21:59:00] siery: But I guess thats all data I get.. I spend few hours trying to fix that problem, but I guess I need to learn writing tests in Ruby to be more effective. So, thats really weird, I am getting the correct data when checking that object with pry, but the draw function is undefined.. I can't get it.
[21:59:46] siery: @ apeiros
[22:00:17] apeiros: I suggest you start with my question the :)
[22:00:25] apeiros: what does this error tell you "undefined method `draw' for nil:NilClass (NoMethodError)"?
[22:02:55] siery: well.. It looks like this method is not defined in this class? nil:NilClass.. like that class is not existing... idk. But it is defined right bellow constructor
[22:03:34] apeiros: the error tells you that you're trying to call draw on nil (an instance of NilClass)
[22:03:59] apeiros: you should also have gotten additional information with the exception, that is, in which line this happens
[22:04:16] apeiros: and I assume it points to what's line 4 of https://paste.debian.net/1028124/
[22:04:50] ski7777: has joined #ruby
[22:04:51] TheBetrayer: has joined #ruby
[22:04:58] apeiros: since you call draw on the result of @tiles[[x, y]], what does that tell you?
[22:04:58] RougeR: has joined #ruby
[22:04:58] RougeR: has joined #ruby
[22:05:00] siery: but as I say it calls the instance of Tile with state I posted here: https://paste.debian.net/1028123/
[22:05:12] apeiros: you're mistaken.
[22:05:56] apeiros: do you know pry?
[22:06:17] siery: yes.. I just start using it for this problem.. I love it ^^
[22:06:41] apeiros: change your code to https://gist.github.com/apeiros/5571a69fc5065e2fec4e0582b611c670
[22:06:47] siery: I never seen a debuger in any other language where you can `cd` into an object
[22:07:18] apeiros: poke around. I'm sure you'll figure out what's gone wrong. if not, ping me. also make sure you read what I wrote ~20min ago ;-)
[22:07:50] rodd: is there a way to use an existing rspec matcher inside a custom matcher?
[22:09:31] guacamole: has joined #ruby
[22:09:31] guacamole: has joined #ruby
[22:09:58] rodd: nvm just found my answer here https://relishapp.com/rspec/rspec-expectations/docs/custom-matchers/define-a-matcher-supporting-block-expectations
[22:11:37] mlkkk: has joined #ruby
[22:12:11] lxsameer: has joined #ruby
[22:13:51] siery: ah.. you are right apeiros C:.. but why is x and y still having the value last from the constructor? I didn't declare them as instant variables with @ but as locals.
[22:14:45] apeiros: siery: why do you htink those are the values from the constructor?
[22:16:05] byte512: has joined #ruby
[22:16:14] siery: becouse y is 11 and x 0, the samme values as at the end of that loop where I feed data from file into RAM
[22:16:56] siery: Here you can see whole class now: https://paste.debian.net/1028132/
[22:17:06] ramfjord: has joined #ruby
[22:17:18] apeiros: so what value does @width have?
[22:17:46] minimalism: has joined #ruby
[22:17:57] siery: 13 and height = 10
[22:18:14] apeiros: and you iterate from 0 to 13
[22:18:26] apeiros: of course y will at some point be 11. why does that surprise you?
[22:19:00] apeiros: or what do you think `for y in 0..@width` does?
[22:19:24] siery: well, it is 11 when I brake that loop in draw method with binding.pry
[22:19:45] siery: So before it starts iterating
[22:19:49] apeiros: yes. meaning it has gone from 0 to 10 already and now is at 11
[22:19:59] siery: changing x and y to i and j help
[22:20:12] apeiros: that won't change anything
[22:20:20] siery: but it did
[22:20:31] apeiros: if you changed the code the way I told you, you're not breaking out before iterating
[22:20:41] apeiros: you're in pry during the iteration
[22:20:42] siery: my map just been rendered corectly to the screen
[22:21:21] siery: so why x was 0?
[22:21:32] apeiros: why should it not be?
[22:21:58] apeiros: you do 14 * 12 iterations, going through all combinations of x and y
[22:22:00] siery: well, any ways y shold not be more then 10..
[22:22:18] lxsameer: has joined #ruby
[22:22:32] apeiros: `for y in 0..@width` so this is 2 errors then?
[22:22:41] apeiros: @width instead of @height being error 1
[22:22:43] siery: it is 11 at the end of the constructor becouse it reads an `/n` character, but not saving it to the @height
[22:22:51] apeiros: and this being error 2:
[22:22:53] apeiros: 23:50 apeiros: note: 0..x will is an off-by-one error. if x = 10, you'll iterate 11 times.
[22:22:54] apeiros: 23:51 apeiros: use `x.times do |i|` instead.
[22:22:58] ramfjord: has joined #ruby
[22:23:05] mozzarella: has joined #ruby
[22:24:00] akaiiro: has joined #ruby
[22:24:53] apeiros: (mind you, seeing the full code, there are more errors in your code too)
[22:25:20] siery: ah.. true, so I just misspell x for y
[22:25:39] apeiros: not just. see error 2.
[22:28:53] siery: ah.. ya, good to see that being rendered correctly, now I can go back to making graphics ^_^
[22:29:22] shinnya: has joined #ruby
[22:30:55] apeiros: the "you have other errors in your code" went by without you taking notice?
[22:30:57] karapetyan: has joined #ruby
[22:31:00] zapata: has joined #ruby
[22:31:18] ramfjord: has joined #ruby
[22:31:30] weaksauce: has joined #ruby
[22:33:06] siery: What you mean apeiros?
[22:33:44] siery: I fix both errors 1..2
[22:36:27] apeiros: it's not as bad as I originally thought, but the way your `if char != ?\n and char.to_s != ' '` works, you can up with @tiles being incomplete.
[22:36:42] apeiros: and `f_map = File.open(f_map, 'r')` does nothing in that code
[22:36:55] apeiros: (yes, it does something, but what it does is useless)
[22:37:17] lxsameer: has joined #ruby
[22:37:43] karapetyan: has joined #ruby
[22:40:16] venmx: has joined #ruby
[22:45:39] apeiros: btw., an alternative take: https://gist.github.com/apeiros/5571a69fc5065e2fec4e0582b611c670 - though personally I tend to use a single position index and calculate x/y from that if necessary. allows you to just do @tiles.each(&:draw)
[22:46:08] user01: has joined #ruby
[22:46:28] ur5us: has joined #ruby
[22:47:32] pastorinni: has joined #ruby
[22:47:59] apeiros: (and usually you'll only need methods à la each_tile, each_tile_in_col, each_tile_in_row, which are trivial on top of position)
[22:48:56] Spiker01: Hi all. My question on Jekyll static site generator https://stackoverflow.com/questions/50709412/how-to-install-the-required-version-of-packages-jekyll-plugins-in-the-bundle-m
[22:50:43] siery: ya.. I know `if char != ?\n and char.to_s != ' '` can leave some empty space with will be converted to 0, but I guess it is best in my situation, cose tiles with 0 code will be generated all around the map in camera field
[22:51:01] siery: I nedda hel me wife c:
[22:54:16] Spiker01: You see my messages (Maybe here atispam)?
[22:54:53] siery: Any ways.. removing this statement will not change any thing in functionality as `c = '\n'.to_i` and `c = ' '.to_i` is 0 as well, and I will spare some if
[23:02:23] akem: has joined #ruby
[23:14:23] akem: I have an issue with UTF-8, when printing it in the cygwin terminal window the string is ok and .encoding reports utf-8, but when i write it to a file using "w:utf-8", then opening the file in notepad++ it shows scrambled characters in place of accents and says encoding OEM-US. :/
[23:17:10] lxsameer: has joined #ruby
[23:17:13] havenwood: akem: If you can, you might consider WSL instead of Cygwin, and Atom instead of Notepad++.
[23:17:49] havenwood: akem: Windows Subsystem for Linux is far from perfect, but I think already more pleasant than Cygwin.
[23:18:03] havenwood: https://docs.microsoft.com/en-us/windows/wsl/install-win10
[23:18:18] havenwood: akem: Can you try another text editor to see if the problem is on Cygwin's side?
[23:18:32] havenwood: akem: Here's one by Microsoft: https://atom.io/
[23:19:33] Puffball: has joined #ruby
[23:19:39] amar: has joined #ruby
[23:22:11] akem: havenwood, i just noticed it displays correctly in regular Windows notepad.
[23:22:18] akaiiro: @spiker If all the gems installed without errors, start the server with `bundle exec jekyll serve -w`
[23:22:34] eckhardt_: has joined #ruby
[23:22:38] akem: havenwood, Btw that's a lot of changes ;)
[23:23:47] akaiiro: Spiker01 If all the gems installed without errors, start the server with `bundle exec jekyll serve -w`
[23:24:09] elomatreb: akem: Keep in mind that encoding detection is very hard, it might just be a heuristic going wrong
[23:28:31] Spiker01: akaiiro bundle exec jekyll serve -w
[23:28:32] Spiker01: Configuration file: /home/user01/jekyllsites/myblog01/_config.yml
[23:28:32] Spiker01: Deprecation: The 'gems' configuration option has been renamed to 'plugins'. Please update your config file accordingly.
[23:28:32] Spiker01: jekyll 3.5.2 | Error: Could not find a JavaScript runtime. See github.com/rails/execjs for a list of available runtimes
[23:28:55] akaiiro: Spiker01 Install Node.js
[23:29:38] akem: elomatreb, I see, that must be the problem then... thanks for the help, it's fine.
[23:31:13] kt: has joined #ruby
[23:33:52] Spiker01: akaiiro sudo bundle exec jekyll serve -w
[23:33:52] Spiker01: Configuration file: /home/user01/jekyllsites/myblog01/_config.yml
[23:33:52] Spiker01: Deprecation: The 'gems' configuration option has been renamed to 'plugins'. Please update your config file accordingly.
[23:33:52] Spiker01: Source: /home/user01/jekyllsites/myblog01
[23:33:53] Spiker01: Destination: /home/user01/jekyllsites/myblog01/_site
[23:33:55] Spiker01: Incremental build: disabled. Enable with --incremental
[23:33:57] Spiker01: Generating...
[23:33:59] Spiker01: GitHub Metadata: No GitHub API authentication could be found. Some fields may be missing or have incorrect data.
[23:34:04] Spiker01: fatal: Not a git repository (or any of the parent directories): .git
[23:34:06] Spiker01: GitHub Metadata: Error processing value 'title':
[23:34:08] Spiker01: Liquid Exception: No repo name found. Specify using PAGES_REPO_NWO environment variables, 'repository' in your configuration, or set up an 'origin' git remote pointing to your github.com repository. in atom.xml
[23:34:11] Spiker01: ERROR: YOUR SITE COULD NOT BE BUILT:
[23:34:13] Spiker01: ------------------------------------
[23:34:15] Spiker01: No repo name found. Specify using PAGES_REPO_NWO environment variables, 'repository' in your configuration, or set up an 'origin' git remote pointing to your github.com repository./// But I do not want to use the Git repository for hosting, I want to use it locally.
[23:34:17] baweaver: Spiker01: Please use Gist to paste things next time
[23:34:29] ruby[bot]: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[23:34:51] elomatreb: You'll be kicked automatically if you flood too many lines
[23:35:18] baweaver: kinda surprised Chanserv didn't already
[23:36:54] Spiker01: <baweaver> ok. I thought the url is forbidden this room.
[23:37:05] dendazen: has joined #ruby
[23:37:24] karapetyan: has joined #ruby
[23:39:00] akem: havenwood, wow atom setup is 145 Mb, it must be more than just a texteditor, i mean notepad++ is already full featured and is less than 10 Mb.
[23:39:24] griffindy: has joined #ruby
[23:39:40] baweaver: I tend to use Sublime Text.
[23:39:45] akem: I will check both anyway, i heard about WSL already.
[23:40:32] elomatreb: It is more than a text editor, it's an Electron app so it ships a complete copy of Chromium
[23:41:13] havenwood: akem: They're starting to optimize for stuff like startup time and typing latency instead of file size: https://blog.atom.io/2018/01/10/the-state-of-atoms-performance.html
[23:41:54] beefjoe: has joined #ruby
[23:43:05] ramfjord: has joined #ruby
[23:43:15] Spiker01: I can not understand in which file do I need to disable the Git profile support?
[23:44:52] banisterfiend: has joined #ruby
[23:49:01] cagomez: has joined #ruby
[23:52:03] Spiker01: English is not my native language. I can not understand what the program is writing to the console. Which file is edited to disable the support for the repositories? I do not understand the big and complex text.
[23:56:04] moei: has joined #ruby
[23:56:42] Spiker01: This text: https://gist.github.com/Spiker01/9591cb4a3d0fc4dbdbfd2522ba767fbb
[23:57:03] rfoust: has joined #ruby
[23:57:22] deadnull: has joined #ruby