These are chat archives for FreeCodeCamp/Help

25th
Jan 2015
Briana Swift
@brianamarie
Jan 25 2015 00:19
@teddy-error I know this is a bit late, but in general I've found good personalized help via twitter. Just a thought.
Bin Ury
@teddy-error
Jan 25 2015 00:19
hi @brianamarie still here
i think it is something to do with rspec
I just skipped the challenge for now. What is the twitter thing?
Briana Swift
@brianamarie
Jan 25 2015 00:22
if you have a twitter account, posting a link or a screenshot of your problem and including relevant tags (like #ruby or #javascript or even asking specefic sources like @codehelp), people will look at what you post and give you their best tries to help
Bin Ury
@teddy-error
Jan 25 2015 00:24
oh cool thanks @brianamarie
i might try that
Briana Swift
@brianamarie
Jan 25 2015 00:25
I've had really good luck that way, better and more personalized than any forum. Less judgemental too, if you've ever gotten that vibe from a forum. If you join, follow me @brianamarie132
Bin Ury
@teddy-error
Jan 25 2015 00:40
done
I don't mind judgement. I've learned to cope with the vicious beast that is the Internet.
Branden Byers
@brandenbyers
Jan 25 2015 01:45
@brianamarie great tip on going to twitter for help!
Kathy O'Driscoll
@odrisck
Jan 25 2015 01:48
@brianamarie it was me that helped you on twitter :) but I'm usually here to help lol
Briana Swift
@brianamarie
Jan 25 2015 01:54
I know! You're fantastic! :) I also read on the FCC blog...was that about you also? inspiring!
Kathy O'Driscoll
@odrisck
Jan 25 2015 02:25
thank you :)
Briana Swift
@brianamarie
Jan 25 2015 15:56
Does anyone here use the program brackets to edit code, and if so, would you be willing to help me figure out how to push my code to a new repo? I'm trying to pull from the current master branch but "Merge remote-tracking branch 'VeteransMemorialPark/master' Conflicts: README.md". How do I make this NOT a conflict so I can upload new things?
Ammar Ali Shah
@AmmarAliShah
Jan 25 2015 15:58
@brianamarie Brackets.io?
Briana Swift
@brianamarie
Jan 25 2015 16:00
yep that's the one
Ammar Ali Shah
@AmmarAliShah
Jan 25 2015 16:03
@brianamarie i only use it for editing code...not with GH
Briana Swift
@brianamarie
Jan 25 2015 16:14
YES! I figured it out. Deleted the conflicting doc (README.md) from both brackets.io and the git repo, then pulled and was sucessfully merged. success :+1:
Suzanne Atkinson
@AdventureBear
Jan 25 2015 16:14
Hey all, I'm doing the coderbytes, run length encoding algorithm, and I have a method written down in pseudocode, but looking for shortcuts. As far as I can tell there is no built in regex or string method that will tell me if there are sequential matches. Regardless of how I match it looks like I'll have to loop through n, n+1, n+2 and see if each sequential one matches the one in questoin?
surikmeetr
@surikmeetr
Jan 25 2015 16:27
@AdventureBear I did that with a regex, then looped through the array of results to compose the output.
Suzanne Atkinson
@AdventureBear
Jan 25 2015 16:28
did the regex contain a variable? did you pull the character using CharAt or similar and insert that into a regex?
also FWIW I don't see any advantage in this case in converting the string to an array to loop through, I'd just planned on using charAt (i). (PS in the past 15 minutes instead of waiting for a response I probabaly could have just coded it!)
surikmeetr
@surikmeetr
Jan 25 2015 16:30
no and no. I used .match() and a regular expression that finds a character followed by more of the previously matched character...
it's possible to solve it without converting the string to array
Suzanne Atkinson
@AdventureBear
Jan 25 2015 16:35
agreed on the array part for sure. I'm confused about matching a previously matched character without using varabile to insert into regex. Does my question make sense? Here is my pseudocode:
  // get length of string
  // get next character
  // get total # of characters in a row
      //--->this is what stumps me Nested loop??
  // concat output with # + letter
  // move to next character in string
surikmeetr
@surikmeetr
Jan 25 2015 16:44
of course your pseudocode should work as well if you can work out the for loop. If you want to try the regex solution, you can use \1 to reference the previous capture group so you don't have to use variables
to solve your loop problem above I think you could use one array to store the letters you find and maybe another to store the number of occurrences. Maybe you could even use an object.
Suzanne Atkinson
@AdventureBear
Jan 25 2015 16:44
oh, I just saw the \1 expression today. Maybe that's just what I need.
thank you. Using an object hadn't occured to me. I think the \1 is what I was looking for
thank you!!
surikmeetr
@surikmeetr
Jan 25 2015 16:48
glad to be of help