clorisu

Activity Graph

Page 1 of 2 | Next »

2018-09-07

[08:30:09] clorisu: has joined #ruby
[08:44:21] clorisu: Quit: Leaving

2018-09-06

[00:54:59] clorisu: Read error: Connection reset by peer
[11:23:28] clorisu: has joined #ruby
[11:34:26] clorisu: Quit: Leaving

2018-09-05

[00:22:40] clorisu: Quit: Leaving
[08:18:00] clorisu: has joined #ruby
[08:18:42] clorisu: Client Quit
[21:46:40] clorisu: has joined #ruby
[22:07:12] clorisu: is there a way to use sleep as a condition in an if branch? eg `if sleep(10) == true puts "true" else puts "false"`?
[23:02:15] clorisu: Ping timeout: 252 seconds
[23:23:52] clorisu: has joined #ruby

2018-09-04

[08:49:18] clorisu: has joined #ruby
[08:50:42] clorisu: Read error: Connection reset by peer
[10:29:24] clorisu: has joined #ruby
[20:58:46] clorisu: Remote host closed the connection
[21:45:53] clorisu: has joined #ruby
[23:00:03] clorisu: Ping timeout: 245 seconds
[23:19:34] clorisu: has joined #ruby

2018-09-03

[07:12:19] clorisu: Remote host closed the connection
[07:52:58] clorisu: has joined #ruby
[08:16:35] clorisu: Quit: Leaving
[09:37:32] clorisu: has joined #ruby
[10:31:26] clorisu: Remote host closed the connection
[10:37:49] clorisu: has joined #ruby
[11:35:58] clorisu: Ping timeout: 272 seconds
[20:32:43] clorisu: has joined #ruby
[20:46:13] clorisu: Remote host closed the connection
[22:12:30] clorisu: has joined #ruby
[22:13:22] clorisu: Read error: Connection reset by peer
[23:07:33] clorisu: has joined #ruby
[23:25:28] clorisu: Ping timeout: 245 seconds
[23:29:51] clorisu: has joined #ruby
[23:37:24] clorisu: Quit: Leaving

2018-09-02

[01:56:38] clorisu: Remote host closed the connection
[02:25:01] clorisu: has joined #ruby
[02:25:54] clorisu: Client Quit
[23:03:58] clorisu: has joined #ruby

2018-09-01

[01:41:28] clorisu: does anyone know why I'm getting undefined local variable/method 'items' for these?: https://gist.github.com/brasscapon/c6c2547324e91982e580661f3469aaee https://gist.github.com/brasscapon/e6142ae50f8815b3f5d652310b3b5030
[01:51:24] clorisu: baweaver: i get hashCanvasChallenge2.rb:6:in `<main>': undefined local variable or method `items' for main:Object (NameError)
[01:51:40] clorisu: because ive moved the items method into a different file im trying to retrieve from
[01:51:52] clorisu: sorry, items variable*
[01:53:30] clorisu: baweaver: i'm separating a file for coursework that i'm using to practice. i'm sure its being included in the sense that i'm sure they are in the same directory, thats about it. as for why its not working im not sure
[01:54:31] clorisu: yeah, it worked baweaver
[01:55:22] clorisu: so it seems its including the file but not the variable for some reason. is it because its a local variable?
[01:55:50] clorisu: okay, that fixed it. lol
[01:56:54] clorisu: i guess only instance variables work in required
[01:59:21] clorisu: i'm yet to learn json. whats the benefit of using it?
[01:59:45] clorisu: i'm just separating their files to teach myself how to require
[02:01:48] clorisu: thanks, ill look into learning it today. appreciate the help
[05:37:58] clorisu: Ping timeout: 245 seconds
[06:01:00] clorisu: has joined #ruby
[09:57:00] clorisu: does anyone know why my ruby doesnt return the last line to terminal? ive tried across many files
[12:51:31] clorisu: Remote host closed the connection
[21:39:29] clorisu: has joined #ruby

2018-08-31

[07:58:29] clorisu: has joined #ruby
[09:44:17] clorisu: Read error: Connection reset by peer
[10:03:37] clorisu: has joined #ruby
[10:15:11] clorisu: Quit: Leaving
[21:37:08] clorisu: has joined #ruby
[23:11:51] clorisu: whats the difference between hash and hsh?
[23:30:35] clorisu: baweaver: in the ruby docs

2018-08-30

[02:42:52] clorisu: has joined #ruby
[02:57:30] clorisu: Quit: Leaving
[09:41:26] clorisu: has joined #ruby
[09:41:33] clorisu: Client Quit
[11:52:24] clorisu: has joined #ruby
[12:49:45] clorisu: Read error: No route to host

2018-08-29

[10:38:58] clorisu: has joined #ruby
[10:39:47] clorisu: Hi, could anybody let me know why line 35 is running when the expression at line 16 should prevent it? https://pastebin.com/RtpPkCBC
[10:41:26] clorisu: https://gist.github.com/brasscapon/4d99a6cd0f54841815393667e2a51443
[10:47:26] clorisu: elomatreb: im getting that the orange tree is now 21 years old. shouldnt the conditional of if @yearspassed <20 being true preven this and run the else?
[10:53:45] clorisu: elomatreb: im outputting it into `
[10:53:54] clorisu: line 18 no?
[11:23:20] clorisu: yes elomatreb , but shouldnt that if not run again once yearspassed is over 20?
[12:19:53] clorisu: Remote host closed the connection
[21:34:26] clorisu: has joined #ruby
[21:35:39] clorisu: Client Quit
[21:36:00] clorisu: has joined #ruby
[22:33:12] clorisu: Remote host closed the connection

2018-08-22

[09:31:16] clorisu: has joined #ruby
[09:35:03] clorisu: Client Quit

2018-08-20

[11:38:42] clorisu: has joined #ruby
[11:38:47] clorisu: Client Quit

2018-08-19

[01:55:37] clorisu: has joined #ruby
[01:56:22] clorisu: hi, can anyone tell me what the difference is between the to_s method and join("\n")
[02:12:52] clorisu: hi mozzarella , im just following along this tutorial https://gyazo.com/3ef4da86b4053107c8a31c8d818e8dd5 and the highlighted output says the join put the lines into strings, isnt that what to_s does?
[05:48:13] clorisu: Remote host closed the connection
[05:48:44] clorisu: has joined #ruby
[12:24:32] clorisu: Remote host closed the connection

2016-03-25

[00:54:33] clorisu: Read error: No route to host

2016-03-24

[01:00:13] clorisu: anyone know whats going on here https://ghostbin.com/paste/nadh4
[01:00:32] clorisu: anyone know whats going on here https://ghostbin.com/paste/nadh4
[01:01:09] clorisu: looks like a hashed password
[01:01:17] clorisu: think its my hashed password
[01:02:22] clorisu: is it because its too long radar?
[01:04:00] clorisu: i think i mightve accidentally pasted that
[01:04:03] clorisu: i dont recall that being there
[01:04:05] clorisu: let me see
[01:05:25] clorisu: yep, seems so. fixed it
[13:50:15] clorisu: Ping timeout: 244 seconds
[14:03:22] clorisu: has joined #RubyOnRails
[14:03:22] clorisu: has joined #ruby
[14:22:49] clorisu: Ping timeout: 260 seconds
[14:42:47] clorisu: has joined #RubyOnRails
[14:42:47] clorisu: has joined #ruby

2016-03-22

[00:20:16] clorisu: Ping timeout: 264 seconds
[00:26:39] clorisu: has joined #RubyOnRails
[00:26:39] clorisu: has joined #ruby
[00:59:37] clorisu: are objects that go inside () classified as 'arguments' or 'attributes' or both? i'm confused
[00:59:38] clorisu: or neither?
[01:04:26] clorisu: yeah shevy
[01:04:42] clorisu: shevy: https://pastee.org/vztvd
[01:05:25] clorisu: im guessing the attributes in there is just a hash's variable name?
[01:05:55] clorisu: and its still rightly called an argument because its inside ()?
[01:07:13] clorisu: shevy so are arguments sort of like methods for a method?
[01:07:19] clorisu: im trying to conceptualise this
[01:07:56] clorisu: but not all methods right Radar ?
[01:08:10] clorisu: ahh i think it just clicked
[01:08:39] clorisu: so for instance, the + operator is a variable. so would the 1 in 2+1 be the argument for +?
[01:09:03] clorisu: hmmm i think i get it
[01:10:14] clorisu: i finally wrapped my head around objects and methods last night
[01:10:20] clorisu: trying to fit arguments into this now
[01:10:48] clorisu: so arguments are still objects right?
[01:11:25] clorisu: and in this paste https://pastee.org/vztvd : attributes is just an object that inherits the hash method?
[01:11:49] clorisu: object/argument
[01:12:30] clorisu: okay youre right shevy
[01:12:34] clorisu: its just a variable name
[01:13:34] clorisu: shevy: so couldnt attributes[:name] be written as attributes.name ?
[01:16:03] clorisu: alright let me try to wrap my head around this
[01:16:07] clorisu: let me stare at the code for 10 mins
[01:24:04] clorisu: Ox0dea: I'm not sure where #who comes into it. is that a default rails method?
[01:24:25] clorisu: nvm missed line 6
[01:24:34] clorisu: my brains going blank.
[01:26:26] clorisu: okay i think that helped a bit Ox0dea
[01:26:35] clorisu: the switching between parens and no parens is a bit confusing though
[01:26:41] clorisu: Greeter.new('Ohai').greet 'Alice'
[01:26:45] clorisu: is the same as
[01:26:50] clorisu: Greeter.new('Ohai').greet('Alice') right?
[01:27:44] clorisu: okay so an argument is whats outputted?
[01:27:49] clorisu: or returned?
[01:28:50] clorisu: are these two the same?: `Alice = Greeter.new` and `Greener.new('Alice')` ?
[01:29:23] clorisu: what about these two:
[01:30:28] clorisu: @message = message is just defining a variable?
[01:30:46] clorisu: wouldnt 'message' work fine by itself for #{message} ?
[01:31:28] clorisu: variable undefined
[01:31:37] clorisu: why do #{who} work then?
[01:36:27] clorisu: are blocks considered arguments?
[01:47:01] clorisu: is attr accessor just a way to define multiple variables?
[01:52:18] clorisu: why `def initialize end` and call #new instead of `def new end` and call #new?
[01:54:41] clorisu: why self Ox0dea ? isnt `initialize(argument)` just defining a .new(argument) method?
[02:29:52] clorisu: always i shevy?
[02:29:57] clorisu: as in |i|?
[03:12:09] clorisu: postmodern: method argument as in a variable for a method?
[03:12:20] clorisu: oh shevy thanks
[09:47:43] clorisu: is there a command for seeing which classes a method belongs to?
[09:50:00] clorisu: is that for me adaedra ?
[09:50:36] clorisu: it went over my head ade
[09:50:55] clorisu: im guessing I replace (class)?
[09:51:06] clorisu: yeah im confused
[09:52:42] clorisu: so how does it know which method im searching for
[09:53:07] clorisu: replace :each ?
[09:53:26] clorisu: ah that worked
[09:53:33] clorisu: one more q
[09:53:48] clorisu: what does the doble colon signify eg ActiveRecord::Base
[09:54:04] clorisu: nah I just wanted to see which classes .valid? worked on
[09:56:25] clorisu: what are namespaces?
[11:23:18] clorisu: ive got an example_user.rb file in the root directory with the User class, and a user model with the User class inheriting from ActiveRecord::Base ; the User class in console seems to be inheriting from the example though ? (even though it seems to be the model that breaks the test if i remove it)
[11:30:17] clorisu: thats what im learning shevy
[11:30:33] clorisu: oh i forgot activerecord is a rails library
[11:30:37] clorisu: shouldnt have asked here my mistake

2016-03-21

[03:15:37] clorisu: Ping timeout: 250 seconds
[03:16:19] clorisu: has joined #RubyOnRails
[03:16:19] clorisu: has joined #ruby
[03:48:22] clorisu: Ping timeout: 252 seconds
[04:01:34] clorisu: has joined #RubyOnRails
[04:01:34] clorisu: has joined #ruby
[04:19:27] clorisu: Ping timeout: 244 seconds
[04:36:40] clorisu: has joined #RubyOnRails
[04:36:40] clorisu: has joined #ruby
[08:25:04] clorisu: Ping timeout: 240 seconds
[08:27:50] clorisu: has joined #RubyOnRails
[08:27:50] clorisu: has joined #ruby
[08:32:25] clorisu: Ping timeout: 240 seconds
[08:33:00] clorisu: has joined #RubyOnRails
[08:33:00] clorisu: has joined #ruby
[08:47:33] clorisu: Ping timeout: 250 seconds
[09:08:22] clorisu: has joined #RubyOnRails
[09:08:22] clorisu: has joined #ruby
[21:38:30] clorisu: what does the #example # mean ?
[21:38:37] clorisu: is it referring to a method?
[21:39:29] clorisu: why arent they alternatively described as .example shevy ?
[21:39:33] clorisu: wouldnt that be more consistent
[21:42:27] clorisu: niggurs: tryruby.org here's a good quick intro
[21:45:13] clorisu: wouldn't `.example` describe that situation just as well shevy?
[21:45:18] clorisu: or `.hi` in this instance?
[23:11:22] clorisu: Ping timeout: 260 seconds
[23:23:43] clorisu: has joined #RubyOnRails
[23:23:43] clorisu: has joined #ruby
[23:24:03] clorisu: Max SendQ exceeded
[23:24:36] clorisu: has joined #RubyOnRails
[23:24:36] clorisu: has joined #ruby
[23:35:39] clorisu: Ping timeout: 246 seconds
[23:56:30] clorisu: has joined #RubyOnRails
[23:56:30] clorisu: has joined #ruby

2016-03-20

[05:31:30] clorisu: hey, anyone know why i'm getting this error: http://pastie.org/10766829 ?
[05:45:40] clorisu: i'm following this: https://www.railstutorial.org/book/rails_flavored_ruby#sec-objects_and_message_passing
[05:45:50] clorisu: is his code incorrect or different in some way? (box 3)
[05:46:28] clorisu: oh theyre separate lines
[08:47:31] clorisu: im so confused. whats the difference between an object and a method?
[08:48:53] clorisu: could you give me an example forcer
[08:52:37] clorisu: thanks forcer ill read it and get back to you
[09:34:12] clorisu: is .map basically the .each for strings?
[09:34:14] clorisu: or arrays?
[09:35:30] clorisu: Ox0dea: by doing something do you mean applying a block?
[09:35:57] clorisu: Ox0dea: what do you mean by transforming the collection?
[09:36:03] clorisu: isn't 'doing something' transforming it?
[09:37:23] clorisu: also Ox0dea and hanmac : why the # before the method? does it signify something?
[10:04:18] clorisu: so they function the same, but each is basically explicit whereas map is implicit?
[10:04:29] clorisu: sort of like <% code %> vs <%= code %> ?
[10:04:43] clorisu: map/ %= has an output?
[10:04:46] clorisu: or prints?

2016-03-19

[09:24:32] clorisu: has joined #RubyOnRails
[09:24:48] clorisu: Max SendQ exceeded
[13:25:29] clorisu: has joined #RubyOnRails
[13:25:29] clorisu: has joined #ruby