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
cjlynch12
@cjlynch12
@MuhammedKarim what are you trying to get it to do?
and are you getting any errors when running it?
Ghost
@ghost~5a4a80acd73408ce4f859755
when i put it in the drawFish function like above it comes out blank canvas
cjlynch12
@cjlynch12
I'm seeing a fish when I go to that link and putting the code into the editor
do you have ad blockers on?
Ian Gracia
@iangracia
Anyone keen to help me implement an OCR on codepen?
Stephen James
@sjames1958gm
@MuhammedKarim When do you call drawFish? Looking at this code the centerX, centerY will be set once to some random mouse X.Y
Ghost
@ghost~5a4a80acd73408ce4f859755
@cjlynch12 ad blockers are off
@sjames1958gm yeah silly me, it works now lol i forgot to call the function!
Alan Price
@alanpaulprice

hey guys, would anyone here mind running this in the latest chrome and tell me if the audio loops like it should or breaks after playing once (like it does for me)
https://jsbin.com/wixomuy/edit?js,console

thanks!

Sweet Coding :)
@SweetCodingInc
@alanpaulprice Chrome v64 has that issue
Alan Price
@alanpaulprice
ah right, is there any work around or do you think i should just wait until they sort it out?
Sweet Coding :)
@SweetCodingInc
As of now I have v63 and it's working for me
but I ran into similar issue on work machine that has v64
Alan Price
@alanpaulprice
ah okay, thanks for clearing that up
thanks @SweetCodingInc
CamperBot
@camperbot
alanpaulprice sends brownie points to @sweetcodinginc :sparkles: :thumbsup: :sparkles:
:cookie: 288 | @sweetcodinginc |http://www.freecodecamp.org/sweetcodinginc
Sweet Coding :)
@SweetCodingInc
@alanpaulprice Yes.. There is a shitty workaround
console.clear();

let audioClip;// = new Audio("https://raw.githubusercontent.com/alanpaulprice/simon-game/master/Audio/simonSound1.mp3");

setInterval(function() {
  audioClip = new Audio("https://raw.githubusercontent.com/alanpaulprice/simon-game/master/Audio/simonSound1.mp3");
  audioClip.play();
  console.log('sound triggered');
}, 1000)
Alan Price
@alanpaulprice
i see, sounds like the audio is still cutting out mid way though
i think i'll just wait until they get their shit together and iron it out
Sweet Coding :)
@SweetCodingInc
@alanpaulprice Try adjusingt he delay then
Alan Price
@alanpaulprice
@SweetCodingInc it works nicely in safari with the 1sec, as does the old snippet, but the premature cut off seems to be part of the chrome issue
Sweet Coding :)
@SweetCodingInc
yeah...
even if you don't put that in interval, it seems to get cut off
Alan Price
@alanpaulprice
@SweetCodingInc no worries, i'll just work on that project in a different browser for now. Thanks for the help :smile:
CamperBot
@camperbot
alanpaulprice sends brownie points to @sweetcodinginc :sparkles: :thumbsup: :sparkles:
api offline
Sweet Coding :)
@SweetCodingInc
@alanpaulprice :+1:
Roman Struna
@RomchyFCC
@alanpaulprice i checked, i have the lastest version of chrome and it works fine, running windows 7 64x
Alan Price
@alanpaulprice
@RomchyFCC oh right. i'm using a mac, so maybe it's just the mac version that's playing up. thanks for the info! :+1:
CamperBot
@camperbot
alanpaulprice sends brownie points to @romchyfcc :sparkles: :thumbsup: :sparkles:
:cookie: 297 | @romchyfcc |http://www.freecodecamp.org/romchyfcc
Ghost
@ghost~5a4a80acd73408ce4f859755
Can anyone advise a good website to learn PHP from?
Roman Struna
@RomchyFCC
i had a similar issue with an input box, few days back, it would randomly disappear if someone using a mac would use that site, there are definitely some differences
and of course np, thx for the cookie nom nom
Ghost
@ghost~5a4a80acd73408ce4f859755
I was going to learn from w3schools but I've been told its not good
Roman Struna
@RomchyFCC
uhm @MuhammedKarim cs50 harvard edX used to have php lessons, maybe try looking those up(they switched to python in the last 2 years)
Alex Iveson
@AlexIveson_twitter
hey friends can someoone please review something for me
super simple,
Roman Struna
@RomchyFCC
i don't know how helpful these will be BUT, cs50 puts in a lot of effort to serve some of the best tutorials on the planet IMO, so here you go: first 5 videos https://www.youtube.com/user/cs50tv/search?query=php
Alex Iveson
@AlexIveson_twitter
but I’m stuck early on this
Roman Struna
@RomchyFCC
shoot alex
Alex Iveson
@AlexIveson_twitter
@RomchyFCC thanks mate
CamperBot
@camperbot
alexiveson_twitter sends brownie points to @romchyfcc :sparkles: :thumbsup: :sparkles:
:cookie: 298 | @romchyfcc |http://www.freecodecamp.org/romchyfcc
Alex Iveson
@AlexIveson_twitter
I’m on "Inherit Styles from the Body Element” 47
and I beleive my code is correct

<style>
body {
background-color: green;
font-family: Monospace;
}

</style>

<h1>Hello World</h1>