These are chat archives for FreeCodeCamp/Help

17th
Feb 2015
Evan Davis
@davisec52
Feb 17 2015 01:30
The code sample below comes from chapter 4 of Eloquent Javascript. The code converts a list toan array, but I don't understand the for statment. I haven't seen this usage before and the author does not explain what he's doing.

function listToArray(list) {
    var array = [];
    for(var i = list; i; i = i.rest) {
        array.push(i.value);
    }
    return array;
}
listToArray({value: 1, rest: {value: 2, rest: {value: 3, rest: {value: 4, rest: null}}}});
Danny Fritz
@dannyfritz
Feb 17 2015 01:34
the for statement is followed by 4 pieces
for (initialize; condition; iterate) { statement }
initialize is called when the for begins
condition is called at the beginning of every iteration to test if it should keep going.
iterate is called at the end of each iteration
statement is called for each iteration
so this for says: "Start with i=list. If i is a truthy value, then iterate. Every iteration push i.value onto array. At the end of each iteration, make i equal to i.rest.
"
Evan Davis
@davisec52
Feb 17 2015 01:38
@dannyfritz Thank you--very clear!
Where could I read more about this particular short hand?
Suzanne Atkinson
@AdventureBear
Feb 17 2015 01:38
what's i.rest?
Danny Fritz
@dannyfritz
Feb 17 2015 01:39
I wouldn't call this shorthand, it would just be the for statement. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for
Suzanne Atkinson
@AdventureBear
Feb 17 2015 01:39
on, nevermind.
missed the bototm fo the code
Danny Fritz
@dannyfritz
Feb 17 2015 01:39
@AdventureBear yeah, i.rest relies on the array passed in to have it.
er, i mean object
Evan Davis
@davisec52
Feb 17 2015 01:40
@dannyfritz I'll have a look at the documentation for "for". It just does not resemble the use of for that I've seen up to this point.
@dannyfritz Ok, so it pays to pay really close attention to the documentation : )
Danny Fritz
@dannyfritz
Feb 17 2015 01:43
for can be used for anything, but it is used to traverse an Array 99.9% of the time.
Evan Davis
@davisec52
Feb 17 2015 01:45
Many thanks!
Danny Fritz
@dannyfritz
Feb 17 2015 01:47
no problem
Christopher Hutchinson
@cshutchinson
Feb 17 2015 02:29
anyone have some experience with div(ui-view) in jade with angular-ui-router?
Suzanne Atkinson
@AdventureBear
Feb 17 2015 05:53
Can I get some feedback on Where Art Though bonfire?
function where(collection, source) {
  var arr = [];
  arr = collection.filter(function (source){
    collection.foreach(function(element){
      return collection[element].last === source.last;
    });
  }); 
  // What's in a name?
  return collection;
}

where([{ first: 'Romeo', last: 'Montague' }, { first: 'Mercutio', last: null }, { first: 'Tybalt', last: 'Capulet' }], { last: 'Capulet' });// Hello.
Danny Fritz
@dannyfritz
Feb 17 2015 05:55
that looks great!
well
except for the tight coupling to last
Suzanne Atkinson
@AdventureBear
Feb 17 2015 05:55
not sure what I should be doing although I "get" the instructions, really uncertain on the methods. Filter seems like it should work, but I'm not sure how to access the objects inside the arrays. Really?
can you explain what you mean by tight coupling? you mean using the literal ?
Danny Fritz
@dannyfritz
Feb 17 2015 05:55
you are assuming the source will only look for things keyed by last
Suzanne Atkinson
@AdventureBear
Feb 17 2015 05:56
right, I am. It's not working anyway though.
Oh I see, it just is looking for the 2nd argument (of the colelction)
Danny Fritz
@dannyfritz
Feb 17 2015 05:56
i don't think returning from a forEach does anything
Suzanne Atkinson
@AdventureBear
Feb 17 2015 05:56
it was a guess!
I'm fairly sure filter should do something helpful for me here
Danny Fritz
@dannyfritz
Feb 17 2015 05:57
for sure
Suzanne Atkinson
@AdventureBear
Feb 17 2015 05:58
This gives me an empty array:
Danny Fritz
@dannyfritz
Feb 17 2015 05:58
you aren't returning anything in filter
Suzanne Atkinson
@AdventureBear
Feb 17 2015 05:58
function where(collection, source) {
  var arr = [];
  arr = collection.filter(function (source){

      return collection.last === source.last;

  }); 
  // What's in a name?
  return arr;
}
Danny Fritz
@dannyfritz
Feb 17 2015 05:58
oh, that should work for the first test case
oh no wait
Suzanne Atkinson
@AdventureBear
Feb 17 2015 05:58
arr stays empty
Danny Fritz
@dannyfritz
Feb 17 2015 05:58
the parameters of filter's callback is not right
Suzanne Atkinson
@AdventureBear
Feb 17 2015 05:59
let me check
Danny Fritz
@dannyfritz
Feb 17 2015 05:59
and also, collection.last isn't what you think it is
Suzanne Atkinson
@AdventureBear
Feb 17 2015 05:59
Yeah, that was just a guess
I'm not sure how to access a property without knowing the name.
Danny Fritz
@dannyfritz
Feb 17 2015 05:59
yeah, that can be tricky
there are lots of ways to do it
when i did the challenge, i used Object.keys
but i think most people use a for (in) loop
Suzanne Atkinson
@AdventureBear
Feb 17 2015 06:00
Oh that sounds familairy
I havn't been able to get for (in) loops to work in bonfire. :(
Ok, thanks for the tips. I'll try again tomorrow
sure thing
Cristián Berríos
@crisberrios
Feb 17 2015 06:00
better avoid for...in altogether
:P
Suzanne Atkinson
@AdventureBear
Feb 17 2015 06:01
why is that @crisberrios ?
Thanks @dannyfritz
night all.
Cristián Berríos
@crisberrios
Feb 17 2015 06:02
night
and because it will mostly cause involuntary errors unless you know what you are doing
Danny Fritz
@dannyfritz
Feb 17 2015 06:03
which is the case with most everything in JS. haha
foot-guns galore!
Cristián Berríos
@crisberrios
Feb 17 2015 06:04
well, too much JS for today
see you tomorrow, g'night!
Suzanne Atkinson
@AdventureBear
Feb 17 2015 06:08
hmmm....isnt' that the point to learn what we are doing?
I like the idea of for in, I just havn't been able to get it to wrk on bonfire, when the same code seems to work in other editors. but I could be crazy
Sudeepto
@Sudeepto
Feb 17 2015 11:34

Can someone help me solve FCC challenge 16 ??

I know that there are two columns ; col-md-9 and col-md-3 . But I don't know what CSS shall I change to move col-md-3 above col-md-9 . Please help .

Hannan Ali
@abdulhannanali
Feb 17 2015 12:02
@Sudeepto have you read bootstrap documentation?
@Sudeepto Please check out the grid system at
http://getbootstrap.com/css/#grid
If you've read it then please reply cos I need more info to know what you want to do
Sudeepto
@Sudeepto
Feb 17 2015 12:42
@abdulhannanali No I haven't read the documentation yet.
I thought that changing the CSS of col-md-9 and col-md-3 might help solve the challenge.
Hannan Ali
@abdulhannanali
Feb 17 2015 12:43
@Sudeepto Please click on the link given above and then tell me what can you understand>
Sudeepto
@Sudeepto
Feb 17 2015 12:45
@abdulhannanali That Bootstrap uses a Grid system for page layouts with rows and columns
Hannan Ali
@abdulhannanali
Feb 17 2015 12:47
@Sudeepto Don't only read intro go down and read how to set it up in our html and what are all the sets of cols and what's meant by row
You have to understand it all
read grid options
and things like that too
Jimmy Bryant II
@JimBry
Feb 17 2015 12:48
You want to use jQuery to change the layout if I remember correctly
Hannan Ali
@abdulhannanali
Feb 17 2015 12:49
@JimBry i remember that this challenge is about bootstrap and not about jQuery
jQuery challenges are other one
Jimmy Bryant II
@JimBry
Feb 17 2015 12:52
Yes, but in order to change the layout you want to use jQuery it saves time it's about using what you learned to make this change this tutorial doesn't tell you to go to bootstrap and read the tutorials. Although it may help to understand grid systems that's not what it is asking you to do.
At least that's not what I got from it in the past.
Hannan Ali
@abdulhannanali
Feb 17 2015 12:53
@JimBry How can you change the grid system if you don't know about it?
One needs to know how it works in order to deal with it
One needs to know what are all the grid option classes
Jimmy Bryant II
@JimBry
Feb 17 2015 12:55
Well when I did this challenge, then I did not know bootstrap, but had finished try jQuery. I searched for the content it was asking me to move and did so using jQuery.
Hannan Ali
@abdulhannanali
Feb 17 2015 12:55
Yes you might use jQuery to change the specific things in dom in order to complete the challenge
Jimmy Bryant II
@JimBry
Feb 17 2015 12:56
And that's honestly what I think it is asking you to do.
I wish I had the code handy that I used for challenge 16 when I get to my computer I will try it out again.
Sudeepto
@Sudeepto
Feb 17 2015 12:58
@JimBry No we are required to learn Bootstrap so we have to change the page layout NOT BY JQUERY but by tinkering the html with Chrome dev tools . SO that's why @abdulhannanali has guided me to learn the documentation so that I can make some change
Hannan Ali
@abdulhannanali
Feb 17 2015 12:58
But you need to know which classes are the ones you have to change and Quincy recommends reading the documentation in the video too.
Thanks @Sudeepto you solved the issue.
So @Sudeepto Did you have any progresss?
Jimmy Bryant II
@JimBry
Feb 17 2015 13:00
Ahhh the challenge has definitely changed since I've did it in the past.
Sudeepto
@Sudeepto
Feb 17 2015 13:01
@abdulhannanali I still reading it. I learned that .col-md- class prefix is for Medium devices Desktops and I was changing the values . But it changes the width of the column . So .col-md-3 is wider that .col-md-2
  • I am
Hannan Ali
@abdulhannanali
Feb 17 2015 13:02
@JimBry Yes lots of stuff is changing everyday in FCC. @QuincyLarson is trying his best to add as much good stuff as possible
I just saw that layout of the homepage has changed
@Sudeepto The grid layout of the bootstrap consists of 12 cols
You have to add up to 12 of one specific set in a row
like you can use
col-md-3 col-md-6 col-md-3
or 12 col-md-1
or any number of classes adding up to 12
but what you don't want to do is add different number of sets
like don't try to do
col-md-6 col-xs-6
it can cause problems
Does it clear something for you?
Sudeepto
@Sudeepto
Feb 17 2015 13:06
Yes I am getting a little bit. Is it related to column wrapping ??
col-md-3 and col-md-9 add up to 12 columns right ??
Hannan Ali
@abdulhannanali
Feb 17 2015 13:06
Yes one row 12 cols
Sudeepto
@Sudeepto
Feb 17 2015 13:06
And we need two rows
Hannan Ali
@abdulhannanali
Feb 17 2015 13:07
no you don't need any more rows
you just have to make it one col layout
col-md-3 and col-md-9
are two cols
think about how can you use one col for all the content
You just have to modify In my opinion you don't need to add any thing
Sudeepto
@Sudeepto
Feb 17 2015 13:09
I am just guessing here :D So should I use something like col-md-12 ???
Hannan Ali
@abdulhannanali
Feb 17 2015 13:10
i think so
Sudeepto
@Sudeepto
Feb 17 2015 13:14
@abdulhannanali If I change col-md-9 to col-md-12, it takes the whole page . But when I change col-md-3 to col-md-12, it hides behind the div with col-md-9 and it also remains vertical . I need to read a bit more.
Hannan Ali
@abdulhannanali
Feb 17 2015 13:19
you don't have to do it two it two times that add up to (12+12 = 24)
Jimmy Bryant II
@JimBry
Feb 17 2015 13:23
@Sudeepto Can I make a suggestion?
Hannan Ali
@abdulhannanali
Feb 17 2015 13:25
@Sudeepto just use only a single class and it will do the work
@JimBry This room is open for all the suggestions.
Jimmy Bryant II
@JimBry
Feb 17 2015 13:26
@Sudeepto in the html search for bs-docs-sidebar
add hidden-md and hidden-lg to the class attribute using jQuery
Also the video for challenge 16 says nothing about reading the grid system documentation. Which is why I felt like you were doing a little bit too much, use what you have learned in the previous challenges for challenge 16.
Cristián Berríos
@crisberrios
Feb 17 2015 15:19
@Sudeepto can you link the pen/fiddle/etc?
Sudeepto
@Sudeepto
Feb 17 2015 15:20
@crisberrios Just a moment
For some reason , I couldn't make codepen load the webpage. I was able to load any sample html . But the bootstrap website was not loading at all. Not even in Firefox.
Cristián Berríos
@crisberrios
Feb 17 2015 15:23
np
so, that is the unmodified code right?
Danny Fritz
@dannyfritz
Feb 17 2015 15:24
those relative paths for your CSS probably don't work
Sudeepto
@Sudeepto
Feb 17 2015 15:24
@crisberrios I just removed the head doctype as jsfiddle my bothering me that it doesn't require them.
was bothering
Cristián Berríos
@crisberrios
Feb 17 2015 15:25
yeah, it doesn't require it
that's ok
Sudeepto
@Sudeepto
Feb 17 2015 15:27
@dannyfritz I copied the boostrap.css from the bootswatch website. Like in video , I just pasted it in the CSS panel.
Cristián Berríos
@crisberrios
Feb 17 2015 15:28
you could also use the "External resources" tab of jsfiddle
but for this purpose, pasting the css is fine
so, what were the instructions? I think it was making the layout 1 column instead of 2 right?
Sudeepto
@Sudeepto
Feb 17 2015 15:29
@crisberrios Yes. Making it one column .
@crisberrios Thanks for the External Resources tip. I will use it from now on.
Cristián Berríos
@crisberrios
Feb 17 2015 15:33
well
 <div class="container bs-docs-container">

      <div class="row">
        <div class="col-md-9" role="main">
Jimmy Bryant II
@JimBry
Feb 17 2015 15:36

@Sudeepto the class bs-docs-sidebar is hidden when the window is small.

<nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm">

You just need to add the media queries so that they are also hidden when the screen is large for instance plug this in the javascript side of jsfiddle.

$('div.col-md-3').children('nav').addClass('hidden-md hidden-lg')
Cristián Berríos
@crisberrios
Feb 17 2015 15:37
in bootstrap, you organize the elements using a 12-column grid and, as you already know, main section uses 9 columns
and sidebar uses 3

        <div class="col-md-3" role="complementary">
          <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm">
            <ul class="nav bs-docs-sidenav">
as Bootstrap organizes content in rows, if you want to move the sidebar after the content, you could modify the html and create a new row
Sudeepto
@Sudeepto
Feb 17 2015 15:40
@crisberrios So should I wrap the col-md-3 around another row tags ??
@crisberrios sorry not tags but class
row class
Cristián Berríos
@crisberrios
Feb 17 2015 15:42
try closing the previous row div
and opening another before the sidebar
that should move it to it's own row
Sudeepto
@Sudeepto
Feb 17 2015 15:45
@crisberrios Can you tell me any other site . Finding classes in it is really hard. Browser's search is not working as well.
Cristián Berríos
@crisberrios
Feb 17 2015 15:45
jsbin?
Sudeepto
@Sudeepto
Feb 17 2015 15:45
Okay
Jimmy Bryant II
@JimBry
Feb 17 2015 15:46
@Sudeepto did my answer not work?
Cristián Berríos
@crisberrios
Feb 17 2015 15:47
@JimBry IMHO getting rid of content isn't the same as making it one column
your answer definitely works
Jimmy Bryant II
@JimBry
Feb 17 2015 15:48
Well in the video Quincey modifies the screen to show that it turns into one column.
Cristián Berríos
@crisberrios
Feb 17 2015 15:50
hmm... well, maybe that's the intent, but the instructions don't say that explicitly.
Jimmy Bryant II
@JimBry
Feb 17 2015 15:51
I think he should have shown what the final outcome looks like because, obviously there are many ways to make this one column. Which is causing confusion for some users myself for one when i first tried it lol
Sudeepto
@Sudeepto
Feb 17 2015 15:56
@crisberrios Sorry for taking time as I am not able to properly edit file . I am getting lost in opening and closing div tags.
Cristián Berríos
@crisberrios
Feb 17 2015 16:01
edit it locally then, this challenge shouldn't be hard
Sudeepto
@Sudeepto
Feb 17 2015 16:02
@crisberrios Yes.
Cristián Berríos
@crisberrios
Feb 17 2015 16:02
the idea is just a practical approach at using bootstrap
Sudeepto
@Sudeepto
Feb 17 2015 16:09
@crisberrios I have never worked with such a big file before. I having difficulty.
Cristián Berríos
@crisberrios
Feb 17 2015 16:20
what editor are you using?
most good ones have code folding
and tag matching
Sudeepto
@Sudeepto
Feb 17 2015 16:21
sublime text . Code folding is not folding the row div .
it only folds a part of it.
Cristián Berríos
@crisberrios
Feb 17 2015 16:27
it should't fold just a part of the div unless the html is broken
Sudeepto
@Sudeepto
Feb 17 2015 16:27
Have I done it correctly ?? http://jsbin.com/xokiboqeqe
Cristián Berríos
@crisberrios
Feb 17 2015 16:28
:thumbsup:
of course, styling it an displaying it is another story
but you moved the column down
which was the idea of this challenge :D
Sudeepto
@Sudeepto
Feb 17 2015 16:29
Finally. I can click on I've completed this challenge :)
@JimBry Thank you for your help. But I wanted to do it by the bootstrap method.
@crisberrios Thank you for your help.
Vince
@Vince33
Feb 17 2015 17:47
Hey everyone. I was curious if anybody had any ideas on resourcing assets. I would like to start building and working on some projects
to learn but don't have much in the way of image and logo assets
Cristián Berríos
@crisberrios
Feb 17 2015 17:49
Vince, if you have a credit card, free trials are your friends on stock sites
or deals like "1st month only $3..." etc...
Vince
@Vince33
Feb 17 2015 17:49
Yeah I will check into that I wasn't sure how that worked
Cristián Berríos
@crisberrios
Feb 17 2015 17:52
nice resources for some eye candy @dannyfritz :D
Vince
@Vince33
Feb 17 2015 17:52
@dannyfritz yeah nice, I am going to read the license for any hiccups now
Cristián Berríos
@crisberrios
Feb 17 2015 17:53
Also, there are some sites that offer "bundles" for webdevs... 123128973198237 icons + 12321837982137 templates + 8127398123798371 logos. I advice against those, they are not worth it
Vince
@Vince33
Feb 17 2015 17:54
Not all they a re cracked up to be
Cristián Berríos
@crisberrios
Feb 17 2015 17:54
well, you might find some jewels here and there
Vince
@Vince33
Feb 17 2015 17:55
There is just so much and so many weird license agreements that can be intimidating
@crisberrios @dannyfritz Thanks again guys!
While I am here is there a reason coderbyte won't link in to my FCC profile
Danny Fritz
@dannyfritz
Feb 17 2015 17:58
oh, don't know why i didn't link to these too: http://lorempixel.com/ https://placekitten.com/ http://placehold.it/
Vince
@Vince33
Feb 17 2015 18:01
the kitten one is funny
the place holder idea is great ! too
nice
Joshua
@Randomorph
Feb 17 2015 18:45

@dannyfritz

function destroyer(arr) {
  for(i = 1; i < arguments.length; ++i) {
    for(j = 0; j < arr.length; ++j) {
      if(arr[j] === arguments[i]) {
        arr = arr.splice(j, 1);
        j = j - 1;
      }
    }
  }
  return arr;
}

destroyer([1, 2, 3, 1, 2, 3], 2, 3);

Arrays returned are always just 1 element, and not even a correct element

Splice doesn't seem to do what documentation says it does
oh wait
Danny Fritz
@dannyfritz
Feb 17 2015 18:46
slice/splice :P
Joshua
@Randomorph
Feb 17 2015 18:46
nvm just saw my mistake I think
I forgot that just calling arr.splice(j, 1) is what I want to do, and setting arr equal to it just gives me the deleted element.
Randomorph @Randomorph facepalms.
Danny Fritz
@dannyfritz
Feb 17 2015 18:47
ah, good catch
Joshua
@Randomorph
Feb 17 2015 18:48
I always seem to do that, find a problem, bring it to someone, and fix it before they know what's even going on XD
Danny Fritz
@dannyfritz
Feb 17 2015 18:48
there is a term for that :laughing: http://en.wikipedia.org/wiki/Rubber_duck_debugging
Joshua
@Randomorph
Feb 17 2015 18:49
@dannyfritz Lol that's wonderful, maybe I'll have to buy a rubber ducky
Danny Fritz
@dannyfritz
Feb 17 2015 18:51
I get out my esquoia and explain it to my gf.
Jonathan
@jonathantimm
Feb 17 2015 19:05
Hey all, I am stuck on the CSS robot thing for Dash
The webkit thing isn't listed as a skill, and Im forgetting how to do it
It's telling me to "Add a webkit vendor-prefixed background property" and "Add a mozilla preferred background: -moz-radial-gradient"
Anyone know where I can go to refresh on where I put that code and how to write it?
Darryl Dixon - Piece Digital
@piecedigital
Feb 17 2015 19:06
You put it before the property or value that needs it.
Blake Johnston
@johnstonbl01
Feb 17 2015 19:06
Darryl Dixon - Piece Digital
@piecedigital
Feb 17 2015 19:06
that background: -moz-radial-gradient is corrent
The only thing that would change in the case is the "moz" that appears between the hyphens.
-webkit-
-moz-
-ms-
-o-
Jonathan
@jonathantimm
Feb 17 2015 19:09
Gotcha
So it will go before this? background: radial-gradient(circle, white 15%, transparent 40%), #cc5;
so that it instead says background: -moz-radial-gradient(circle, white 15%, transparenc 40%), #cc5;
?
Blake Johnston
@johnstonbl01
Feb 17 2015 19:10
it should, yes.
-moz-radial-gradient...
Darryl Dixon - Piece Digital
@piecedigital
Feb 17 2015 19:10
In this instance it will go before the radial-gradient
yes
Blake Johnston
@johnstonbl01
Feb 17 2015 19:10
LMAO that red site
whoops - wrong room ;)
Jonathan
@jonathantimm
Feb 17 2015 19:10
The weird thing is that it is going back and forth, where either the first step is satisfied or the last one
So when I write background: -moz-radial-gradient(circle, white 15%, transparenc 40%), #cc5; -- dash is happy with the mozilla preferred background, but not the first two steps of adding the radial gradient vendor-prefixed property
Jonathan
@jonathantimm
Feb 17 2015 19:21
Anybody know the correct solution to this?
Cristián Berríos
@crisberrios
Feb 17 2015 19:21
hmm
do you have both right_
?
Blake Johnston
@johnstonbl01
Feb 17 2015 19:22
@jonathantimm which slide are you on?
Jonathan
@jonathantimm
Feb 17 2015 19:22
I'm on 57/77
Cristián Berríos
@crisberrios
Feb 17 2015 19:22
like many background properties, one with each prefix and one without
Jonathan
@jonathantimm
Feb 17 2015 19:23
hm no I don't have both
let me try that
Blake Johnston
@johnstonbl01
Feb 17 2015 19:23
which project?
Jonathan
@jonathantimm
Feb 17 2015 19:24
ahh i got it
css robot
Cristián Berríos
@crisberrios
Feb 17 2015 19:24
:D
Jonathan
@jonathantimm
Feb 17 2015 19:24
 background: radial-gradient(circle, white 15%, transparent 40%), #cc5;
    background: -webkit-radial-gradient(circle, white 15%, transparent 40%), #cc5;
    background: -moz-radial-gradient(circle, white 15%, transparent 40%), #cc5;
so that's the correct code. I don't really understand what I just did, though.
Blake Johnston
@johnstonbl01
Feb 17 2015 19:25
you need to have both -webkit- and -moz- so that it works in both types of browsers
basically, with new features, you have to specifically tell each browser type to reference the code, and then provide it a back-up if it cannot use it. that's what the background: radial-gradiant (without any browser prefix) is for
hopefully that makes sense
Cristián Berríos
@crisberrios
Feb 17 2015 19:27
since CSS is cascading
the browser will first try to use radial-gradient
but it will "fail" since it doesn't understand
Jonathan
@jonathantimm
Feb 17 2015 19:27
What does webkit cover? multiple browsers?
Cristián Berríos
@crisberrios
Feb 17 2015 19:27
the, if it's webkit-based, it will use -webkit-radial...
and it will apply the correct style
and then, it will also try to apply -moz
but since it doesn't understand that property, it will stick with -webkit
remember that css is read from top to bottom
Jonathan
@jonathantimm
Feb 17 2015 19:28
gotcha
Cristián Berríos
@crisberrios
Feb 17 2015 19:28
so you can override properties
and the declaration order does matter
Jonathan
@jonathantimm
Feb 17 2015 19:28
so when you get good at development, do you just know what properties are new and need backups and which don't?
Blake Johnston
@johnstonbl01
Feb 17 2015 19:28
-webkit- is safari, right? -moz- covers firefox & chrome, i believe
pretty much. or google. google always knows ;)
Jonathan
@jonathantimm
Feb 17 2015 19:30
hehe yeah
but i just imagine that you might run into issues without knowing what's wrong if you don't just know that
it could be a hard issue to pinpoint if you're not thinking of it
Blake Johnston
@johnstonbl01
Feb 17 2015 19:31
that's true. welcome to development. :)
Jonathan
@jonathantimm
Feb 17 2015 19:31
hahah
thank you for your help!
Joshua
@Randomorph
Feb 17 2015 19:34
Hey having trouble with the "Convert HTML" bonfire
Doesn't seem to recognize that &amp = &
Cristián Berríos
@crisberrios
Feb 17 2015 19:34
how are you doing it, regexp?
Joshua
@Randomorph
Feb 17 2015 19:35
no was using str.replace
Blake Johnston
@johnstonbl01
Feb 17 2015 19:35
put a semi-colon after the p?
Joshua
@Randomorph
Feb 17 2015 19:35
yup thanks @johnstonbl01
same outcome, but chai is too precise
Blake Johnston
@johnstonbl01
Feb 17 2015 19:37
yeah. i was working on something other day and trying to get a greater than symbol the other day... kept forgetting the semi-colon
too many other days in that sentence >.<
that's what i get for trying to do 20 things at once
english fail
Joshua
@Randomorph
Feb 17 2015 19:39
lol yeah, multitasking is a blessing and a curse
I think "Sorted Union" has broken testing
assert.deepEqual(unite([1, 3, 2], [5, 2, 1, 4], [2, 1]), [1, 3, 2, 5, 4], 'should return the union of the given arrays');AssertionError:should return the union of the given arrays: expected [ 1, 3, 2 ] to deeply equal [ 1, 3, 2, 5, 4 ]
The challenge asks for UNIQUE values, yet 1 and 2 are not unique, yet included in the array
Or am I just missing something?

"Write a function that takes two or more arrays and returns a new array of unique values in the order of the original provided arrays.

The unique numbers should be sorted by their original order, but the final array should not be sorted in numerical order.

Check the assertion tests for examples."

Blake Johnston
@johnstonbl01
Feb 17 2015 19:42
i'd need to take a look. i finished all the challenges before the bonfires were available, so i haven't gone back and worked through those yet <.<
lol
Jordan Wood
@jordanw
Feb 17 2015 19:43
@Randomorph It wants you to return unique values :P
Joshua
@Randomorph
Feb 17 2015 19:43
Nvm I think I understand better. It just wants each unique value
Jordan Wood
@jordanw
Feb 17 2015 19:43
rubber ducky!
Joshua
@Randomorph
Feb 17 2015 19:47
Quack
Jon
@PySpanish
Feb 17 2015 21:57
[Chrome dev tools challenge] Find the element with an id of "events" and print it to the console. just stuck
Ashley Drake
@aldraco
Feb 17 2015 22:26
hello everyone. Question regarding making git contributions to freecodecamp -
the readme says to populate an .env file with API keys, I'm assuming so I can log into the development mode site.
I THOUGHT I got my twitter keys hooked up (which is the only way I log in here) but it's still not letting me log in - 500 error. failed to validate signature and token.
can anyone give me any hints? just need a little guidance :)
Quincy Larson
@QuincyLarson
Feb 17 2015 23:00
@aldraco Sure - did you already add the TWITTER_KEY and TWITTER_SECRET to .env?
Ashley Drake
@aldraco
Feb 17 2015 23:01
I did. I got them from logging in FCC normally and inspecting the GET request in the dev tools. Perhaps they're not the right ones?
Quincy Larson
@QuincyLarson
Feb 17 2015 23:10
@aldraco Ah, that explains it. You’ll need to actually create a Twitter app so you can get a key and a secret: https://apps.twitter.com/
Ashley Drake
@aldraco
Feb 17 2015 23:30
thanks @QuincyLarson I'll try that.
gotta run for the moment, but appreciate the help