comet23

Activity Graph

Page 1 of 4 | Next »

2019-01-12

[06:31:20] comet23: Quit: Connection closed for inactivity

2019-01-11

[21:42:22] comet23: has joined #ruby
[21:43:08] comet23: why are there aliased methods in ruby?
[23:44:53] comet23: how can i use ruby to create a dns that will create a massive ddos across the entire class b range?
[23:46:16] comet23: sounds like snake oil

2019-01-08

[10:44:33] comet23: Quit: Connection closed for inactivity

2019-01-07

[06:57:07] comet23: has joined #ruby
[06:57:12] comet23: is there a way to convert ">" to >
[07:16:16] comet23: baweaver: basically i want to refactor my code and the only logical solution i came up with is if there was a way to convert string <> signs back to their respective signs
[07:16:59] comet23: https://repl.it/repls/RegalFrightenedGlitch
[07:17:55] comet23: the code works fine
[07:18:17] comet23: it's a coding exercise
[07:20:05] comet23: so i have to iterate through the original array and then append its contents to it? or will that still not make a clone?
[07:28:00] comet23: is there a way to make it so i don't have to have two while loops?
[07:28:54] comet23: i would like to use a conditional > operator that inverts based on the offset being greater or lower than 0
[07:30:16] comet23: i'm really bad at math
[07:30:31] comet23: but yes i would like to see it
[07:30:38] comet23: maybe it'll make me that much better at math
[07:30:43] comet23: i know what it is and how it works
[07:30:51] comet23: i'm just really bad at using math
[07:31:00] comet23: or coming up with ideas where to use modulus
[07:31:30] comet23: it subtracts
[07:32:51] comet23: you mean the contents?
[07:32:56] comet23: the contents of index 1?
[07:33:49] comet23: 0 and .length - 1 or -1
[07:34:20] comet23: i honestly have never done that before
[07:34:48] comet23: is the negative number the divisor or the dividend?
[07:35:33] comet23: it divides numbers evenly, if it can't divide evenly it will tell you how many numbers are
[07:35:47] comet23: left before it could have been divided evenly
[07:36:10] comet23: one while loop to rotate right and the other to rotate left
[07:37:07] comet23: the weird thing is, i didn't use the modulo operator
[07:37:26] comet23: i just started rotating it at first, but the negative test cases were failing because it was rotating it the wrong way
[07:37:44] comet23: for a negative offset i mean
[07:38:25] comet23: could you please give me an example of using % with a negative number
[07:39:00] comet23: i tried 5 % -1 and -1 % 5 and -1 % -1
[07:39:17] comet23: i'm not sure i'm understanding what you're saying
[07:39:31] comet23: that's clever
[07:39:38] comet23: like really clever
[07:40:38] comet23: thank you :D
[07:42:25] comet23: i still haven't tested it yet
[07:42:35] comet23: 3 is referring to the number of items, correct?
[07:44:27] comet23: https://repl.it/repls/SuburbanDemandingWrapper
[07:46:00] comet23: will i be seeing a lot of code like that professionally>
[07:49:22] comet23: so why are we going through the pain of all these coding challenges?
[07:49:35] comet23: is it just to get a grasp for logical thinking?
[10:25:20] comet23: Quit: Connection closed for inactivity
[23:04:47] comet23: has joined #ruby
[23:05:12] comet23: when is a good time to use "and" "or" "not"
[23:45:52] comet23: thank you baweaver
[23:46:21] comet23: so there is absolutely no reason to use the english versions
[23:52:18] comet23: i'm going through app academy's free ruby course
[23:52:32] comet23: they put their whole curriculum out online for free
[23:53:38] comet23: and, or, and not are near-synonyms of &&, ||, and !. The sole difference is that they have lower precedence in the order of operations. For the purposes of this course, we will only be using &&, ||, and ! -- we strongly discourage (at least for now) ever using and, or, and not. Once you've finished the course and are out in the real world, you may find useful applications for these operators, but for now we will not be using
[23:54:11] comet23: i'm sorry i thought it was going to put it in the irccloud pastebin

2019-01-04

[01:25:04] comet23: Quit: Connection closed for inactivity
[04:16:52] comet23: has joined #ruby
[04:17:09] comet23: how would i create a new hash value?
[04:17:14] comet23: this is what i'm trying :/
[04:17:30] comet23: https://repl.it/repls/NovelHomelyOctagons
[04:19:25] comet23: you don't]
[04:20:21] comet23: mozzarella: sorry i wasn't replying to you
[04:20:26] comet23: i hit the wrong window :(
[04:21:50] comet23: i'm not setting it on line 6 Radar ?
[04:22:34] comet23: ae_chars = {}
[04:22:45] comet23: ae_chars.empty? # => true
[04:25:01] comet23: !ae_chars[char]
[04:27:02] comet23: Radar: you're a genius!
[04:27:06] comet23: thank you so much :D
[04:29:26] comet23: mozzarella: look into this https://rubygems.org/gems/ruby_deep_clone
[04:31:17] comet23: https://stackoverflow.com/questions/17912476/why-isnt-there-a-deep-copy-method-in-ruby
[08:50:12] comet23: i am having the hardest time grasping recursion
[08:50:24] comet23: https://repl.it/repls/DenseWhichApplications
[08:50:36] comet23: what i don't understand is why is it not returning 1 at the end
[08:57:28] comet23: no it doesn't
[08:57:47] comet23: it doesn't because it breaks my understanding of ruby returning the last thing that's evaluated
[09:01:22] comet23: how is it not 1??
[11:46:13] comet23: Quit: Connection closed for inactivity
[15:13:25] comet23: has joined #ruby
[15:14:02] comet23: how do you create a new array with ordered nums?
[15:14:30] comet23: if x is 5 1...x => [1,2,3,4,5]
[15:15:02] comet23: or do you have to create a new array and iterate over it and append the current number into the array?
[15:16:22] comet23: thank you :D
[21:06:51] comet23: Quit: Connection closed for inactivity

2019-01-03

[01:59:16] comet23: has joined #ruby
[01:59:41] comet23: i am having trouble writing ruby code... i converted my ruby logic to javascript and it works in javascript :/
[02:01:42] comet23: okay i got it nvm sorry for false alarm
[09:36:12] comet23: Quit: Connection closed for inactivity
[20:16:06] comet23: has joined #ruby
[20:16:16] comet23: how do you define a shift operator?
[20:17:06] comet23: i mean unshift
[20:17:09] comet23: the >> operator
[20:17:16] comet23: so it will work like the << operator
[20:18:17] comet23: how would you define it though
[20:18:22] comet23: yeah i want to make one
[20:18:27] comet23: it's long overdue
[20:18:57] comet23: https://repl.it/repls/DarkgreyHatefulTests
[20:19:26] comet23: that's what i've done
[20:19:29] comet23: my logic is way off
[20:22:14] comet23: well that's differnet
[20:22:30] comet23: so for me to change array methods i would have to go into the array class
[20:22:31] comet23: interesting
[20:22:34] comet23: thank you :D
[20:28:32] comet23: but why not just change the core class?
[20:35:45] comet23: what i fail to understand is how could it introduce bugs if the code is bug free to begin with?
[20:37:49] comet23: i can't imagine what you're saying :/
[20:38:24] comet23: like to me having the >> operator is intuitive

2018-12-31

[00:01:44] comet23: has joined #ruby
[00:01:56] comet23: where can we submit new language features ideas?
[00:04:23] comet23: thank you :D
[00:04:30] comet23: we need an unshift operator!
[00:26:05] comet23: yeah the unshift operator will look like >>
[00:26:12] comet23: because the shift operator looks like <<
[02:22:13] comet23: So if it has it then why is it not able to be implemented for arrays?
[03:24:28] comet23: Swyper: what exercises are you doing?
[05:14:41] comet23: what is ruby 3 going to be like?
[10:29:14] comet23: Quit: Connection closed for inactivity

2018-12-30

[17:43:02] comet23: has joined #ruby
[17:44:18] comet23: so i am righting rooby code and was wondering why my code dozen work (i all ready found the bug)
[17:44:49] comet23: bugs on lien 7
[17:44:50] comet23: https://dpaste.de/yZHk
[17:44:59] comet23: why dat dozen work?
[17:52:27] comet23: spelling dozen matter as long as theirs the understanding of teh context
[17:53:39] comet23: but basically if theirs a pear of nums rite one has the opposite and the other one dozen like you have two pears of nums if theirs an opposite val you can count it
[17:54:17] comet23: havenwood: how did you figure that out before running the code?
[18:25:38] comet23: the repeated pairs should be 2
[18:25:46] comet23: havenwood: what do you think of this block of code?
[18:26:48] comet23: https://dpaste.de/AGrY
[18:26:56] comet23: block on line 6
[18:35:43] comet23: because it's a pair
[18:36:05] comet23: what is the benefit of partitioning the negatives and the positives?
[18:36:48] comet23: i have a lot more to learn
[18:38:52] comet23: yes, i just noticed that with a different input
[18:39:05] comet23: i used two positive 4s
[18:42:42] comet23: your code is beautiful
[18:43:49] comet23: i have to run
[18:43:57] comet23: thank you so much for your help
[18:44:00] comet23: i will be back later :D
[22:42:18] comet23: Quit: Connection closed for inactivity

2018-12-28

[02:12:46] comet23: rate my clean code out of 10
[02:12:48] comet23: https://repl.it/repls/TrueMotherlyRegister
[03:21:07] comet23: manning is a terrible publisher
[03:21:14] comet23: you wanna learn ruby?
[03:21:22] comet23: look up app academy online it's free
[03:21:38] comet23: full full stack developer course at your own pace
[05:52:45] comet23: Quit: Connection closed for inactivity
[14:17:58] comet23: has joined #ruby
[14:18:06] comet23: how do you wrap values around?
[14:18:27] comet23: like i have an array
[14:18:43] comet23: ['a','b','c']
[14:19:02] comet23: i want a counter to keep going back to a when it reaches c
[14:19:18] comet23: not get nil
[14:22:01] comet23: i don't have any code i just wanted to know for future reference
[16:56:05] comet23: Quit: Connection closed for inactivity

2018-12-27

[22:32:24] comet23: has joined #ruby

2018-10-29

[20:39:34] comet23: has joined #ruby
[20:40:26] comet23: is this the offical chat for the ruby programming langauge?
[20:41:09] comet23: do i sense uncertainty?
[20:42:18] comet23: that's because they haven't been in the army
[20:42:34] comet23: the army teaches you how to handle umbrage in positive ways
[20:46:01] comet23: yes, what is your favorite modular tutorial/explanation?
[20:47:52] comet23: there is this thing called modular programming
[20:48:01] comet23: i heard that it
[20:48:25] comet23: it's the right way to program because it ends up with clean looking easy to understand code
[20:50:20] comet23: i'm not understanding i've never been more confused
[20:51:13] comet23: haha that acronym spells poo dr lmao
[20:52:17] comet23: thank you so much :)
[20:53:54] comet23: have you heard of the metasploit project?
[20:54:04] comet23: they have the cleanest code i've ever read
[20:54:14] comet23: i'm really impressed and i want to write code like that
[23:16:52] comet23: Quit: Connection closed for inactivity

2018-05-08

[03:29:08] comet23: has joined #ruby
[03:29:45] comet23: have you guys done codefights/
[04:02:07] comet23: either one actually
[04:11:33] comet23: i was wondering where i could learn to solve these problems better and how to figure out what requisite knowledge is necessary to complete the challenge
[04:11:43] comet23: i'm really bad at these types of problems
[04:58:24] comet23: i tried that and i know the syntax of ruby and how to use apis in ruby as well
[04:58:41] comet23: i'm just lacking that understanding and it's a bit frustrating =(
[08:33:00] comet23: Quit: Connection closed for inactivity

2018-04-16

[05:01:51] comet23: You're nice
[07:16:28] comet23: Disconnected by services

2018-04-15

[03:18:10] comet23: has joined #ruby
[03:20:56] comet23: is there something wrong with me in not being able to pass upwork tests?
[03:23:44] comet23: they have tricky code
[03:24:01] comet23: and trick questions, maybe you have to be an expert
[03:24:46] comet23: http://upworktestru.com/ruby-on-rails-test-upwork-answers-questions/
[03:26:14] comet23: baweaver: what do you think is that like expert level stuff?
[03:27:34] comet23: i don't think so
[03:27:39] comet23: i didn't use google
[03:27:57] comet23: i don't think so because it's timed you get 2 minutes per question
[03:29:11] comet23: well i guess i should just give up lol
[03:29:42] comet23: is there a place for novices?
[03:30:23] comet23: so i have to work at a company then for a little bit is what you're saying
[03:31:51] comet23: what is the best way to get a job as a novice
[08:33:38] comet23: Quit: Connection closed for inactivity
[15:06:33] comet23: has joined #ruby

2018-04-12

[01:52:10] comet23: Quit: Connection closed for inactivity

2018-04-11

[14:04:50] comet23: has joined #RubyOnRails
[14:37:42] comet23: do sites always have 7 routes when following the REST spec?
[14:48:34] comet23: rails always uses the Rails Activerecord Postgres and Emberjs stack

2018-04-05

[04:43:44] comet23: has joined #ruby
[07:37:44] comet23: Quit: Connection closed for inactivity
[22:26:09] comet23: has joined #ruby
[23:43:52] comet23: Disconnected by services

2018-02-17

[05:44:17] comet23: has joined #ruby
[05:44:22] comet23: has left #ruby: ()

2018-02-10

[02:11:57] comet23: Quit: Connection closed for inactivity

2018-02-09

[23:53:57] comet23: has joined #ruby

2018-02-07

[19:25:33] comet23: Quit: Connection closed for inactivity

2018-02-02

[22:26:29] comet23: has joined #ruby

2018-01-20

[03:22:25] comet23: has joined #ruby
[04:02:51] comet23: Quit: Lost terminal

2018-01-09

[21:57:13] comet23: has joined #ruby
[22:41:24] comet23: Quit: leaving

2018-01-08

[06:26:09] comet23: Ping timeout: 264 seconds
[10:25:29] comet23: has joined #ruby
[16:58:42] comet23: Quit: He who laughs last, thinks slowest

2018-01-07

[20:12:56] comet23: has joined #ruby
[20:13:09] comet23: what are some cool pages to learn algorithms?

2017-09-10

[21:12:24] comet23: has joined #ruby
[23:47:44] comet23: Ping timeout: 246 seconds

2017-07-16

[15:48:35] comet23: has joined #ruby
[15:49:21] comet23: https://repl.it/J4Lr/0
[15:49:21] comet23: when do you use a constant over a class variable?

2017-07-15

[15:05:26] comet23: Thank you so much :)
[15:41:44] comet23: has left #ruby: ()