Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 17 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 17:13
    @mstellaluna banned @cmal
  • Jan 08 22:05
    @mstellaluna banned @dertiuss323
  • Nov 07 2018 04:42
    User @texas2010 unbanned @ows-ali
  • Nov 02 2018 16:25
    @texas2010 banned @ows-ali
  • Oct 12 2018 05:50
    @bjorno43 banned @NACH74
  • Oct 05 2018 23:02
    @mstellaluna banned @JomoPipi
  • Sep 16 2018 12:21
    @bjorno43 banned @yash-kedia
  • Sep 16 2018 12:16
    @bjorno43 banned @vnikifirov
  • Sep 05 2018 08:12
    User @bjorno43 unbanned @androuino
  • Sep 05 2018 07:38
    @bjorno43 banned @androuino
  • Aug 23 2018 16:57
    User @bjorno43 unbanned @rahuldkjain
  • Aug 23 2018 16:23
    @bjorno43 banned @rahuldkjain
  • Jul 29 2018 14:13
    User @bjorno43 unbanned @jkyereh
  • Jul 29 2018 01:00
    @bjorno43 banned @jkyereh
  • Jul 10 2018 22:09
    @bjorno43 banned @manafn
  • Jul 06 2018 15:20
    @texas2010 banned @imlegend19
  • Jul 03 2018 12:28
    @bjorno43 banned @vbvmatta
  • Jun 29 2018 13:54
    @bjorno43 banned @OGTechnoBoy
Randy
@rdavidson3
yeah, I changed the view and it went beyond the photo itself
and I tried to add a <p> but it posted within the <th> of the table
Tom
@moT01
i dont really see a problem there
are you meaning when it wraps around the photo? or on a small window it goes a little wider than the photo
Randy
@rdavidson3
maybe it is my chrome. even typing here my messages kinda show up randomly. It wraps around the photo depending on the view
Tom
@moT01
im not quite sure what bootstrap class is doing that
Randy
@rdavidson3
in other words some of the text is at the bottom of the photo instead of stopping at the edge. Unless that's a normal thing that happens
Tom
@moT01
well, like i said - i dont see it as a problem, but there's a way to get it how you want it
Randy
@rdavidson3
ah, that's ok I am just gald it's mostly working as intended lol.
oh? how would I do that?
Tom
@moT01
umm, i would add some css to do it - but that's because im not great with bootstrap
Randy
@rdavidson3
ah, I see. Thank you very much. Playing with the window for a while I see you were right. It's just me not being use to the re-sizing thing.
I just learned bootstrap like tow days ago so I'm not use to seeing it too much in real time
two*
Tom
@moT01
one thing you should do is properly indent your code
makes it more readable
by that i mean - every deeper element should be another tab or space over
i see you kinda started off good - then...
Tom
@moT01
feel free to take a look at any of my projects code for some examples and to see the structure
my quote machine might be a decent example of something easy to check out
Randy
@rdavidson3
Thanks @moT01 :) yes, I get a little confused my own code. the indenting is a good idea lol
Tom
@moT01
you wont be the only one checking out your code - thats universal
Randy
@rdavidson3
wow this quote machine is pretty cool. I'm still new to JS though, I can read it a little
Tom
@moT01
@rdavidson3 keep going on the projects - that one isn't too far in front of you
i skipped the portfolio till close to the end of the front end section
Rada
@Radascript
hey guys do you guys know why this isn't centering?
Rada
@Radascript
RESOLVED
TJ Hardin
@AndroidNinjaX

Hey can someone take a look at this. Trying to figure out why memory is updating. When I call function 'plus' memory should update. But then when I don't call function 'plus', it still updates. Been stumped on it for a while now. BTW this is a work in progress.

https://codepen.io/AndroidNinjaX/pen/aWGLaK?editors=0010

Deepak Manjunath
@Deepak2322
‘producer(s)’ i get this as string from json, i have set this to uppercase in css which gives me ‘PRODUCER(S)’, but i want the last letter to be a lowercase (s), how can i achieve this.
abraham anak agung
@padunk
@AndroidNinjaX what you mean? i click other button other than plus and number, it didn't update
@Deepak2322 you could use .replace() with regex. but i am not good with regex
TJ Hardin
@AndroidNinjaX
@padunk Hey thanks, sorry I wasnt paying attention. We got it on the other one. Thank Though
abraham anak agung
@padunk
@AndroidNinjaX np.
Ashwin
@ashwins93
@Deepak2322 you may wanna do something like this
var str = "producer(s)";
str.replace(/(\w+)\((.*)\)/, function(match, p1, p2){
  return p1.toUpperCase() + "(" + p2 + ")";
});
"PRODUCER(s)"
Deepak Manjunath
@Deepak2322
@ashwins93 i would like to capitalize these words, like i would want it as "japan Producer(s)" or "United Kingdom Producer(s)"
is there any method for capitalize
?
Ashwin
@ashwins93
meaning the first letters of each word alone?
Deepak Manjunath
@Deepak2322
yes
Ashwin
@ashwins93
okay hold on a sec
var str = "japan producer(s)";

str.replace(/(?<=^|\s)(\w)(\w+)/g, function(match, p1, p2){
  return p1.toUpperCase() + p2;
});
"Japan Producer(s)"
Ashwin
@ashwins93
or simply
var str = "japan producer(s)";
str.split(" ").map(val => val.charAt(0).toUpperCase() + val.slice(1)).join(" ");
"Japan Producer(s)"
Deepak Manjunath
@Deepak2322
thanks a lot man @ashwins93 :-)
linkin-park
@linkin-park
hello world!
i have not been serious about my career its time to take some work ... back onto game.
Sorin Ruse
@sorinr
welcome back :)
SL0TR
@SL0TR
@khaduch Thank you for all the feed back. Can you check it again and see if the time difference bug still persists? https://codepen.io/SL0TR/pen/aLjyJz