« first day (961 days earlier)      last day (3988 days later) » 

5:03 PM
@Loktar creating gradients and putting the image data are the two performance killers in my last fiddle year?
I figure I can create the gradient once per ball and reuse it.. That should up the perf
 
yeah the gradients are a perf killer
hey how far you get in don't starve?
 
Ha. 15 days
 
user1596138
@Zirak When?
 
I hit 27 last night and then died
was soo pissed man
 
0
Q: Mixing Javascript with C++ for mobile development?

Eat at JoesI have a few games for the iPhone, Android, and Windows 8 that I built using native C++. This works great but is really limiting when I try to create menus and start screens. I have read about rapid development using jQuery Mobile and Phonegap but have never used any of these frameworks. However...

 
5:13 PM
my sanity dropped to 0, and the shadow monsters killed me
 
user1596138
@Zirak the creep calculator? Or the ability to call other commands/eval from within a /learn'ed command?
 
i got it
 
i have a question, if you have a 160 by 160 canvas, and a input fireld, is it possible to make a thing that will plae 10 by ten rectangles on the canvas, (like a 16 by 16 bitmap)
 
What's the input's role in this story ?
 
change color(in hex)
 
5:19 PM
What's your question ? If it's possible to draw rectangles on the canvas ? If so, yes.
 
you know in paint, you canplace pixels using the pencil tool? something like that but hex color code based and in canvas
 
You can do hex in paint
 
yh, but i want this to be web based as im going to expand on it (Online Minecraft Texture pack maker)
 
!!/stat deep
 
@Shmiddty deep has 23 reputation, earned 0 rep today, asked 1 questions, gave 1 answers.
 
5:22 PM
Urg. I spent over 17 hours this weekend on Minecraft.
 
i spent more.
im 14 i have nothing else to do.
 
@SomeKittens Do you play online?
 
@deep I guess that makes you better than me, eh?
@KendallFrey Yep.
 
Got any good servers?
 
much more fun with friends
 
5:24 PM
@SomeKittens i thought that was obvious :P
 
user1596138
Snagged a Web Dev job in town today...
 
Several, all run by various friends. Only one's up righ tnow.
 
user1596138
Well, a single site job.
 
Slap a template on WP, charge $3k
 
@deep your question is bad and you should feel bad
 
user1596138
5:25 PM
@SomeKittens Hahaha
 
user1596138
I'll do it by hand mostly. Then I'll actually have something to show for my work other than this shitty site I got now. I'm part way through re-writing it now though.
 
@Shmiddty Why?
 
Some people don't get it
@Shmiddty you're mean these last couple of days, I hate to say, but I like it.
 
@deep Because you've obviously done no research. Quit being lazy.
 
i was just wondering, im reasearching whilst talking on SO. Quit Assuming. :P
 
5:32 PM
@BenjaminGruenbaum People saying dumb things about topics they don't fully understand? You don't say?!?
 
user1596138
@Shmiddty ^^ hahaha
 
@Shmiddty Dude, he's 14. Throw him a bone.
 
@SomeKittens ooh, I know how to answer that one! @minitech is 15
 
user1596138
Bananas!
 
!!/mustache minitech
 
5:35 PM
@deep User -1 was not found.
 
-1?
 
minitech == Community? OMG!
 
deepschool.jaberwokkee.kodingen.com/~/draw.htm try it, put in a color and hit draw, you can fit 16 across and 16 top to bottom, w ant the canvas to create these rectangles by at a certsin location by getting the X and Y of the mouse when it is clicked
 
@Zirak her earlobes are bent a bit at the top. kinda strange.. I try not to look at it.
 
Is this a good idea ?
var timeOutId = setTimeout(function(){ stuff(); }, 5000);
clearTimeout(timeOutId);
timeOutId = null;
and i mean, nullifying the timeOutId
 
5:40 PM
@VijeenroshP.W Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
@BenjaminGruenbaum I just lost quite a bit of respect for you.
 
@Jhawinsss The former. I'll add it in in a few mins.
 
user1596138
@Zirak Ah, cool.
 
why nullify it at all @WillemD'haeseleer?
 
because my colleague thinks it's better, it might help with debugging he claims.
 
5:43 PM
Did your colleague give a reason?
 
That was his reason
 
Ask him "help how" or "can you draw up a scenario".
timeOutId is just a variable holding a number. nulling it out does nothing more than assigning a null to a variable.
Well, you have lost all ability to clear that timeout
 
well i guess i could post that on reviewboard
but it's as vague as his own comment
 
If your not busy, do you mind seeing why this doesnt work? deepschool.jaberwokkee.kodingen.com/~/draw.htm
 
My retort? Seems grounded.
 
5:46 PM
aaaalright
I like it when deliveries go nicely.
 
@deep Uncaught TypeError: Cannot read property 'clientX' of undefined
 
finally the effort to build up tools has paid off
 
Congrats
 
@WillemD'haeseleer i knew that, i need to be clearer, Why does it do that?
 
@deep that's why you have a stack trace
 
5:48 PM
whats that?
 
@deep is textarea the only input you know how to use?
 
its the one im most comfortable with.
 
@deep well it's WRONG.
 
Cool what does this do
!!/mustache minitech
 
5:50 PM
It's meant for inputting multi-line text.
 
That lived up to my expectations
 
lol
 
!!/mustache ShotgunNinja
 
Aww, you changed the algorithm a bit; now it's not placing it like it used to.
 
5:56 PM
...
 
Either that or the different resolution of an image is causing it to change places.
 
!!/mustache CapricaSix
 
who is "you"?
 
I can't possibly think how to increase performance anymore :/
 
5:56 PM
Here's the previous one:
at least it can figure out there's a properly-formed facial structure in that jumble of lines.
@Shmiddty "you" is @rlemon, iirc
 
I didn't make it
 
user1596138
@rlemon A black square....?
 
mustachify.me
 
I thought that was someone's pet project from in here....
 
nope
we just use it
jsfiddle.net/rlemon/LwBGS/7 ok it seems to run a bit better if they are all the same colour
@Loktar does that make sense?
 
6:02 PM
@Jhawinsss ... what browser are you using? Because I see pretty lava-lamp-like colors.
 
user1596138
@RyanKinal Safari.
 
user1596138
5.1.9
 
user1596138
Doesn't do anything here in FF either...
 
Well, it works in Chrome for me.
 
requestAnimationFrame is unprefixed in it.
 
6:03 PM
yea
 
So you need Chrome > 23. Or Firefox 23.
 
@rlemon setting fillstyle has a perf hit
so it makes sense that all the same color works a bit better
well creating a gradient I should say can incure one
 
@Loktar I thought if I set and stored the gradient at the beginning it would work but then I realized (after doing it) that it was relative to the current canvas position.
 
draw(balls) :P
 
yeah
 
user1596138
6:04 PM
Ah.
 
user1596138
I will look at it in Chrome now then..
 
I went through all of this about a year ago when I did it trying to make it run better. I have one idea I might try now really quick
 
whats more expensive, creating a gradient / changing fillstyle or putImageData?
 
user1596138
Dude!!!
 
gradient for sure
putimagedata is pretty fast if you aren't keeping anything
remember the 40k particle test?
that was just using getimagedata, putimagedata and was crazy fast
 
user1596138
6:05 PM
Should be orange or red though... That would look cooler.
 
because if I make each ball its own canvas and store that and merge up the image data - I only need make the gradient once per ball and then just copy all of the balls + position to the final canvas before metabolizing.
 
yeah thats what I was just going to try :P
 
Ah, I love a good code comment:
/**
 * The purpose of this script is to
 *
 * @param (string) <varname><desc>
 * @return <desc>
 * @type int
 * @author Regina R. dela Cruz
 * @version 1.0
 */
 
sweet.
 
I bet it would be a lot faster
 
6:06 PM
at least we both had the same idea (makes me feel smart)
 
@ShotgunNinja Is that where I threw Ms. dela Cruz out the window?
 
@Jhawinsss was multicolour but that had an impact on performance. trying something new now. gonna see if I can a) finish before Loktar, and b) if it helps
 
@rlemon I'm spending too much time watching your canvas.
 
my multi colored ones run great though :?
 
@Loktar yours cycles one colour per time. Mine had each ball a new colour
thats why I was asking. maybe rendering the overlapping colours has a impact on performance.
 
user1596138
@rlemon What's the purpose anyway?
 
<canvas id="example" width="400" height="400" style="border:1px solid #eecd86;" onmousedown="draw(event)">
This text is displayed if your browser does not support HTML5 Canvas.
</canvas>
<textarea id="col">
enter color here
</textarea>
<script>
function draw(event){
  var x = event.clientX;
  var y = event.clientY;
  var color = col.value;
  var ctx = document.getElementById('example').getContext('2d');
  ctx.fillStyle=x;
  ctx.fillRect(x,y,25,25);
}
</script>
Its going to be simple, but whats wrong?
 
@Jhawinsss what isn't the purpose
you clearly do not dabble in canvas
 
It even has a clip from famous Stanford stuffed-shirt Philip Zimbardo.
 
user1596138
6:11 PM
Haha
 
user1596138
I was just asking if there was a real application for it. Nothing wrong with playing.
 
@rlemon Please, explain
 
@Jhawinsss There are only real applications for canvas. Fake applications don't matter, not to mention often don't work anyway.
 
user1596138
 
@ShotgunNinja Ah, I see.
 
user1596138
6:12 PM
Oops.
 
user1596138
@ShotgunNinja Explain....
 
@Jhawinsss Should be more yellow, far less green.
 
user1596138
I can't tell if this is sarcasm or not.
 
@Jhawinsss Didn't someone re-create Doom using the canvas? Or something?
 
@Michael Quake
 
user1596138
6:13 PM
@ShotgunNinja I've seen some messed up baby shit... There's 10 kids in my fam.
 
But probably also Doom
 
yay Demolition Man on TV. :)
 
@Jhawinsss It totally is. It's a Monday, and I'm being disregarded by the guy who's supposed to be reviewing my code.
 
@RyanKinal Wow thats even cooler
 
user1596138
6:13 PM
@Michael I have no idea. But apparently someone did with quake.
 
what is that fiddle?
 
metballs with cached balls
 
It's a shame that not all browsers support the "datetime" HTML5 input type...that's really handy.
 
@ChamikaSandamal A HTML/CSS/JS rapid prototyping website.
 
way faster man
 
yea man
I was only half done mine :/
 
er no
I mean the perf is way faster
 
I kno
I was just saying :P
 
oh lol I thought you thought I was being a dick
> IM WAAYY FASTER LOL HEADSHOT MLG NO SCOPE!
 
6:16 PM
@RyanKinal I'd watch, except my netbook can barely run embedded youtube videos :(
 
although idk why the bounds checking isnt working..
 
@Loktar hah :D
 
@Michael Ah, I see
 
ok.. well they cycle but I have some weird bounds shite going on :P
 
@RyanKinal It's especially bad when there are 20 flash ads on the page lol
 
6:18 PM
ohh.. because I guess it cant draw it partway over the screen maybe? hmm
 
That sounds like a website never to be visited again
 
bam done.
and I wasnt logged into jsfiddle.. awesome
 
user1596138
@ShotgunNinja Ah.
 
@Loktar You can login and still claim it.
 
@rlemon thanks man, for making me think that
its so much faster man
why the hell didnt I think of that before wtf?
Im a huge proponent of caching and temp canvases even lol
 
6:20 PM
I was in a meeting for ~2 hours thinking about how I could possibly make it faster
that was one of my ideas
 
now I have an idea of a cool demo to make :)
 
2 hours meeting? wtf!?
 
yup
every monday
 
user1596138
Anybody do freelance web dev/design?
 
6:20 PM
Sounds very productive.
 
sure is
 
user1596138
I'm not sure what I should ask for pay on this contract.
 
How many pizzas could you have ordered during your work?
 
@Loktar I screwed something up :P tinker.io/6ca5c/2
 
user1596138
I'd rather charge by the hour... But I'm not sure if that's the best way to go.
 
6:23 PM
lol
 
That's an indicator for the final pay.
 
first paste in outta n++ so :P
 
@rlemon make the temp canvas size the size of the ball *2
also draw them in the center of the temp canvas
width/2, height/2
 
user1596138
@rlemon That looks incredibly cool...
 
@Loktar i did
 
user1596138
6:24 PM
@Zirak Pizza? Ha.
 
@Jhawinsss Do you enjoy eating pizza?
 
canvas.height/width = ball.size * 2
arc(ball.size, ball.size, ball.size
 
If so, I don't see the problem.
 
I think i fucked up the grad.
var grad = context.createRadialGradient(0, 0, 1, ball.size*2, ball.size*2, ball.size);
 
var grad = tempCtx.createRadialGradient(pCan.width/2, pCan.height/2, 1, pCan.width/2, pCan.height/2, size);
 
6:27 PM
fuck yea!
 
user1596138
@Zirak I do.
 
haha nice
 
user1596138
So... I should charge them in pizzas...
 
That'd be ideal
 
user1596138
Pizza == food. Food == life. Life == work. So Pizza is the ideal candidate for payment.
 
6:29 PM
seems to be ok multicolour as well.
 
dude, I have some pizzas in the fridge.
 
No way. I have a mouth.
 
@Jhawinsss Yecch. I don't like the last of that series of equalities.
 
user1596138
@RyanKinal Neither do I. But that's reality...
 
I disbelieve
 
6:31 PM
If your reality ever comes out in blu-ray, I'll eat it.
 
user1596138
Maybe your life is different.
 
I try to do as much non-work as possible.
 
@RyanKinal ditto tha
 
Yeah, it's preferable that work ⊂ life. In your case, try to move away from the nearer work ⊆ life
 
So i just mastered great little war game
the AI is extremely useless :-(
 
user1596138
6:35 PM
@RyanKinal Haha! I only do about 30 hours a week right now. I hate it.
 
wow is jsfiddle dead?
lol wtf
 
user1596138
I used to work 70 hours. I worked no less than 65 hours a week for 8 straight months and if I'm being honest that was the happiest time in my life. There's just something about being exhausted from making money each night that just gives me peace...
 
user1596138
Plus I can buy whatever the fuck I want ha.
 
gee, get a life.
 
user1596138
You call life something different than I do. Nothing wrong with that.
2
 
6:37 PM
@Jhawinsss I like you, guy.
 
user1596138
I still had 2 days off a week usually. I'd hangout with my friends still every week.
 
user1596138
Maybe I shouldn't refer to them as "bitches..."
 
Well, were they bitches?
 
user1596138
@ShotgunNinja I like you too.
 
user1596138
@OctavianDamiean Hmm... Some of them were bitches. One of them was my fiancé...
 
6:39 PM
Then it's legit to call 'em like that.
 
user1596138
Don't get engaged to a 17 year old at age 18. That is my advice for life.
 
Get engaged to a younger girl. No pregnancy scares.
 
Cool, that won't apply to me though, I'm past that age and I wouldn't really get engaged anyway.
 
@Zirak I beg to differ; my 18 year old girlfriend has pregnancy dreams all the time, despite being on Nexplanon.
 
user1596138
@Zirak What does that have to do with pregnancy scares...? I had one.
 
6:41 PM
8 year old girls can't get pregnant
 
user1596138
We dated for almost 2 years and we only did the dirty twice though.
 
Well, most 8 year old girls.
 
user1596138
@Zirak This is why we need the creep calculator...
 
@Jhawinsss Yeah... there are times when I'm perfectly happy writing code for 70 hours a week. But it's far more common that I'm happier travelling, dancing, eating, drinking, making music, and interacting with the world as a whole.
 
@eyyo Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
6:42 PM
I improve my professional life and career as a way of enabling the other aspects of life.
 
@Jhawinsss Nothing dirty about sex.
 
user1596138
@RyanKinal Hahaha hell fucking no! I would never write code that much. I'm 18, I worked at a farm and Walmart on top of my coding job. I wouldn't be able to focus after about 40 hours of coding in a week.
 
Just sayin'.
 
@Jhawinsss lol, fair enough
Though, I would shoot myself before I worked at Walmart
 
user1596138
@OctavianDamiean Well I wasn't calling it dirty... I was just using the term.
 
user1596138
6:43 PM
@RyanKinal Good man.
 
@Jhawinsss Yeah, something about intellectual work just tuckers me out...
 
user1596138
I worked there 2 years and was aking $7.65 lmfao!
 
@OctavianDamiean Then you're doing it wrong
 
I could work 60 hours a week at Burger King, come home, crash, and go back chipper the next day.
 
user1596138
^^
 
user1596138
6:44 PM
Exactly.
 
@Zirak Ehehehehe, partially agreed.
 
@ShotgunNinja ... I worked at Wendy's for a month. Hated every minute.
 
user1596138
I was working noon-5pm at my Web Dev job. Then 5:30 to 1-2am at walmart.
 
@RyanKinal Was it the people, the work, or the managers?
 
@Zirak I would go as far to say that there is no wrong as long as your partner(s) and you are enjoying it.
 
6:44 PM
@ShotgunNinja All of the above.
 
user1596138
Then on the weekends I worked anywhere from 4 to 10 hours at the farm.
 
I worked at Starbucks for a month too. Hated that just as much (except for the free espresso...)
 
@RyanKinal Oh... see, I like making food, and I was on icebox, dishes, friers and sandwich board. My managers and coworkers were great, and I never got to see the customers if I didn't want to.
 
@ShotgunNinja I like making food too. But I prefer to take my time, and make some truly high-quality meals.
 
if it was slow, I restocked, and cut vegetables. Or did dishes. Or cleaned the dining room, on rare occasions.
I was content.
@RyanKinal Oh, I could get creative with what we had there.
buhhhh I just want to go home today.
 
6:48 PM
Crocodile testicles? Please tell me you ordered crocodile testicles.
 
@Zirak Dude, that's like eating a piece of history.
 
@Zirak hooooooooooooooooooooooooooooooooooooooooo boy
 
@Zirak wut
 
I usually say I'll eat anything twice. But I'd be a little hesitant about testicles in general.
2
 
6:50 PM
No thank you.
 
@Zirak No way.
 
There's surprisingly little material on crocodile testicles online.
 
lol soo I killed my pc with the meta balls
apparently generating 10k cached canvases isnt a good idea
 
you're just not doing it right
@Loktar so, did you find the game? :P
 
shit.. dude I totally forgot to look
 
6:53 PM
haha np
 
my son and I played double dragon for the atari 7800 my whole lunch
 
user1596138
Anybody else find this awesome?
 
user1596138
6:56 PM
 
user1596138
Pure css html5 logo.
 
Pretty cool
 
uao........
 
@Loktar I just killed mine trying to simulate attraction of the balls based on size. and having some of their mass transfer with each pass.
 
user1596138
@rlemon That sounds pretty sweet not gonna lie.
 
6:59 PM
long story short: re-drawing the canvases each collision isn't a smart idea either.
 
@Jhawinsss that's cray cray
 
I heard "attraction" and "balls".
Metaballs?
 
yea
 

« first day (961 days earlier)      last day (3988 days later) »