« first day (956 days earlier)      last day (4217 days later) » 

15:02
Why can room owners set "Explicit read access", what does that even mean?
@FlorianMargaine says object MetaBall does not have the method 'influence'
woah new avatar @BenjaminGruenbaum
didnt recognize you at first
lol nice
batman is so happy
for once Robin is not a dude.
ofc he is happy.
15:05
I bat mustachify won't work on that one :(
just went with the gf to pick her up the new Q10
god I hate it
the UI/UX is so horrible.
Z10 isn't half as bad.
Blackberry is stupid :)
@Loktar wanna give me a hand with some canvas shiznat?
moreso, why can I not see where I fucked up
> Uncaught TypeError: Object #<MetaBall> has no method 'influence'
ohhh fuck me running..... I define it after I init it
/* Metaball */
function MetaBall() {
	this.x = 0;
	this.y = 0;
	this.r = 0;
	this.vx = 0;
	this.vy = 0;
}
MetaBall.prototype = {
	constructor: MetaBall,
	influence: function(x, y) {
		var r = (x - this.x ) * (x - this.x ) + (y - this.y) * (y - this.y );
		return this.r * this.r / r;
	}
};
put this at the top
15:08
hey guys - I have this style:
.content-mid h3.tdyblue:nth-child(n+2) {
    margin-top: 17px!important;
}
@SimonSarris yea.. after I posted it I noticed.
function is hoisted so it works, but the prototype is not set
hence my last comment :P
derp derp
sorry :D
but I don't know why it's applying it to the first instance of h3.tdyblue :(
only when I have an image above it.. yet there is no h3 added :o
15:09
@SimonSarris anything okay out there that I could use?
like I said, there's no animation
it simply paints stuff from a sprite based on array-data
excanvas is fine if there is NO animation
on click, some elements get repainted
and you are not using image data
no animation at all
excanvas has been no longer maintained for like
4 years
15:11
flashCanvas was said to be a little faster, right?
probably
depending on # of elements
Mar 2, 2009 = last commit for exCanvas
project = deeeeead
great, now the chat isn't updating anymore
are there any other projects you'd know of that are still being maintained?
@rlemon
function MetaBall() {
this.x = 0;
this.y = 0;
this.r = 0;
this.vx = 0;
this.vy = 0;
}
MetaBall.prototype = {
constructor: MetaBall,
influence: function(x, y) {
var r = (x - this.x ) * (x - this.x ) + (y - this.y) * (y - this.y );
return this.r * this.r / r;
}
};
console.log(new MetaBall().influence());
NaN
@GNi33 no, essentially all legacy canvas applications have been dead
the consensus is if you want something with little animation that works on IE6+, use SVG/VML instead of canvas fullstop
damn. well, I'll just have to give flashCanvas a try then
I'm really not doing something special on the canvas there
15:15
why not ditch canvas if that is your need?
the application is nearly finished and canvas would work on mobile where svg doesn't
but I'd need to support IE8
@KevinMurphy fiddle this?
@SimonSarris in the process of doing so :)
ah thats unfortunate @GNi33
How to rotate images in web apps?
I wonder.
15:17
flash canvas is balls
sorry @rlemon I had to run to a diff office
Canvas stuff?
@Loktar truer words
@ŠimeVidas CSS or canvas, CSS is easier
I tried it once.. it was so bad
I'm talking right-angle rotations
15:18
@pranavparuchuri 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.
my first attempt.
it's so laggy
so many nested loops
img
{
transform:rotate(7deg);
-ms-transform:rotate(7deg); /* IE 9 */
-webkit-transform:rotate(7deg); /* Safari and Chrome */
}
SO MANY LOOPS!
@SimonSarris CSS? Really?
@rlemon nice, its a bit slow for me though
15:18
facepalm
Haha
yea
looks cool though
performant it is not
just peek see at that render loop
you'll see why it's slow :P
@ŠimeVidas ???
@SimonSarris I totally forgot about CSS transforms haha
15:20
@rlemon pretty meatballs
foreach()
for
  for
    for
      for
        foreach()
I think I missed a foreach in the midst.
@Loktar can I remove any of the loops?
I can modular-ize it a bit, but I would still need four nested loops. :/ is that correct?
heh idk thats not how I did it
I just used gradients
:(
stupid tutorial.
why isn't mine as fast :P
don't know why, but this is kinda cool
before I fix the other issue: is there an easy fix to make floated elements collapse so this doesn't happen? i.imgur.com/a0EpE5G.jpg
I don't want to have to position the image underneath a certain amount of text
mines also a tad slow on older machines. But reducing the points speeds it up
Ill have to review yours
looks a lot better
@rlemon I'd help thee if I was less busy
@Loktar so my MBP is an older machine :(
^ good tutorial
that one runs the best
I forget what I did to improve on it
11
A: Detect if user clicks inside a circle

Benjamin GruenbaumA circle, is the geometric position of all the points whose distance from a central point is equal to some number "R". You want to find the points whose distance is less than or equal to that "R", our radius. The distance equation in 2d euclidean space is d(p1,p2) = root((p1.x-p2.x)^2 + (p1.y-p...

blerg this is not an optimal answer
@Loktar it's so cool
haha yeah I love when they explode
15:25
<-- draws a stick man in around the roaches
OH
im back
@SimonSarris yeah?
Feeds...
oh, you will have your day Feeds
codepen.io/darkyen/pen/CdBqy <- wohoo css animations rock!
haha nice @Darkyen
@Loktar u know a software
to make
equi spaced sprite sheets
15:27
@Darkyen nice
out of non-equal spaced ones :[
Who's the fucktard who flagged Loktar's message?
@Darkyen photoshop + rulers
@BenjaminGruenbaum subjective opinion
@badbetonbreakbutbedbackbone too much time!
works the same with GIMP + GRID
15:27
@skopp Oh yeah, for sure
but BB is stupid
@Loktar remove the "-webkit-filter"
@BenjaminGruenbaum nvm, just noticed okok is here
thats an objective one
mines, that is
the graphics will go back on looking 8bit
15:27
@Darkyen uhm do you use photoshop actions?
Nope :-( dont have PS
auomatisms i mean?
@badbetonbreakbutbedbackbone Stop flagging messages -_-'
oh maybe gimp has too
@BenjaminGruenbaum which message? :/
15:28
@Darkyen spriter maybe?
should we start once more? please stop pinging me without a reason why please
Pssh... photoshop
11 mins ago, by Loktar
flash canvas is balls
@badbetonbreakbutbedbackbone you flagged this
you noobz
I use paint.net
15:28
@Loktar got a link ?
@Darkyen that's an image of some DBZ - guy doing no.... opens in chrome ... oooh, nice
hmm no idk @Darkyen
@rlemon lol yeah
Also, lol :
15:29
I was playing with that with my daughter
doing I Heart you
@Loktar you sir, are a fucking bauce!
@BenjaminGruenbaum he is?
haha thanks
No I do use Paint.net actually.
15:29
@GNi33 @badbetonbreakbutbedbackbone is okok
@GNi33 lol 1 px shadow makes our mind go crazy
@Darkyen I usually use photoshop tbh
and the mind starts interpolating shit
or I gen the sprite sheets with JS
@Loktar i cant :[ dont have it
15:29
GIMP
FTW
can u please do it for me :]
ah, I see
if you have all the images just gen them on canvas
equally spaced
tried xara?
15:30
@rlemon why?
Banana
(i dont disagree
just wanna hear what you say)
there you go! Look at @rlemon link
@Loktar there is what i have :D
15:30
ohh
proudly stolen from sprite data base . net
ah ok hmm
yeah man idk, I would end up grumbling and doing it in photoshop lol
@rlemon DAMMIT I LOVE YOU
now see my problem :D
:O
makes sense now
15:31
well ... u can be a canvas magician and do it for me :{
if you need the css
are you boys all in the same room?
someone needs to stop flagging random messages.
Would you please stop with all these flags
"@Darkyen uhm do you use photoshop actions?" HOW THE HECK IS THAT OFFENSIVE?
15:32
@ThiefMaster can you please identify the random flagger and give them a stern look for us?
dudes you can ask a mod to check if i'm flagging sure i'm not
or @Gordon
@BenjaminGruenbaum what hte heck ?
i didnt flag anything
someone is getting funny
@badbetonbreakbutbedbackbone That's also not offensive -_-
15:33
that was the flagged message @Darkyen
he didn't say that you flagged
@BenjaminGruenbaum thanks :P
i sure didnt do it -_-
ok i have yet another question, if anyone gets pis*ed off with me asking questions let me know and ill stop, anyway im trying to figure out how to place a if statement in a append(), give me a sec and ill show you what i have tried
@Connor questions are fine, but question announcements are awkward
15:33
^_^
okay doing it in gimp
@SimonSarris just saying
well i will kill a lot of time :[ but well worths it
wow got carried away with spritecow there
i wanted to write the actual ENGINE!
15:34
I want less laggy balls.
:( this is going to bother me
lol
I want a third ball
My balls used to lag, three hours later id have to run to the bathroom to clean up
sucked man.
I have a half ball
Now i take ensure.
15:35
not that anyone needs or wants to know that :P
@rlemon played golf with robin williams eh?
no, just a lemon.
1 message moved to Trash can
nvm
$('<div>', {class: 'product'}).append(
	product.isNew ? $('<div>', {class: 'newProduct'})
)

$('<div>', {class: 'product'}).append(
	product.isNew ? $('<div>', {class: 'newProduct'}) : ''
)

$('<div>', {class: 'product'}).append(
	if(product.isNew) $('<div>', {class: 'newProduct'})
)
@Connor pastebin.com
@rlemon ah.. Tony Blair. Ok, I aint go' judge bro
15:36
Horrible indention is horrible and so are hard tabs (no, I don't want to discuss this topic now, fu tab lovers).
@Connor a ternary operator needs 2 options, you only have one
lol
@FlorianMargaine yeah i tried all three
the second one has both right @FlorianMargaine
right
and what doesn't work?
@skopp nono, only the one
lefty is lagging
@FlorianMargaine it doesn't append if true
15:37
$('<div>', {class: 'newProduct'}) what is this?
@Connor are you sure the isNew variable is true?
@OctavianDamiean you sir, ` ` can die.
yes
ill double check now tho
@Connor are you by any chance doing codeschool exercises now?
RDP ur screen!
@rlemon ... happy because I'm not using hard tabs.
15:38
awww, doesn't display my tabs
pardon @skopp
why
			all
	the
		hate
	on
tab				indenting?
4
nvm
u must be the young connor
before judgment day came
$.get(url, function(_, status) {}); // the underscore is acceptable?
@rlemon Told you, no discussions.
15:39
@skopp whats wrong with the code
dont mind me. i have torrents syndrome
got a DMCA takedown email yesterday
@skopp what has torrents got to do with anything?
is there a DMCA arm in Nigeria?
@skopp You mean Tourette unless you're actually uncontrollably downloading crap loads of stuff.
@Connor Sorry man
you need to be with me to catch my sharp wit
it's a "thing"
15:41
@rlemon what flags? I didn't see any?
slaps himself
@OctavianDamiean I used to
I was obsessed with knitting
You know, I've seen a lot of weirdos on the internewbs but you're starting to rank up on my little weirdo list.
>:]
@Gordon someone was flagging random messages
@BenjaminGruenbaum @OctavianDamiean I presume were invalidating them
15:44
@FlorianMargaine The underscore is fine, it's not special in any way (unless you're using underscore.js...)
:( ok. Time to read Loktars code and get confused for the rest of the afternoon
@badbetonbreakbutbedbackbone ?
who uses vim here?
15:45
@davertron no I mean... would it pass in a code review.
@skopp many people.
@OctavianDamiean we have another special one?
@skopp me
@mikedidthis I missed you
concorde :(
where have you been?
15:46
@rlemon I missed you too man :)
and why are you always so surprised to see us?
I tried it a few times, but it seems to have a steep learning curve
vim
@rlemon me too.
@mikedidthis I'm not sure yet. He's changing topics like a leaf moves in the wind.
@FlorianMargaine it depends on who's reviewing your code...I would probably argue for naming the variable something that better represents what's actually going in there, but if your intent is to indicate that you don't care about that variable, I think it works. I'm not sure that's necessarily a well-understood thing in JavaScript-land though
15:47
@FlorianMargaine ahh, yes.
@rlemon me?
@Gordon is there any ways to see the flag history on a message if we know which ones were flagged? idk how many there were but It sounded like 3-4 messages (random) were flagged.
@OctavianDamiean joys!
@rlemon come on, only 2k left, you could reach 10k in 10 days
anyone use chromium?
15:48
@FlorianMargaine I never have the ambition to answer main site Qs
post your old (good) answers on reddit
@Connor I use icedragon
I start looking at the and get discouraged when it's just 99 questions about some plugin
did that yesterday
got rep capped
@FlorianMargaine yea, I might do that :P
15:48
@FlorianMargaine lol, really?
Oh yea. :D
@rlemon All of them (@Gordon)
nice @FlorianMargaine
check out alpha.gisti.es if you haven't
15:50
@OctavianDamiean yeah but you're cheating
@rlemon nope
haha, how so?
you had a young topic :P
hrm, I can Improve this answer quite a bit since I first wrote it.
31
A: what is the best javascript library to display multiple pictures stacked on top of each other

rlemonWhy not just build one? it wouldn't be hard. Here is a small rotate prototype i've worked up (took maybe 5 minutes to write) Element.prototype.rotate = function(d) { var s = "rotate(" + d + "deg)"; if (this.style) { // regular DOM Object this.style.MozTransform = s; this....

could get a badge and really bump up my rep if I do I suppose
@florian
@rlemon I already upvoted :P
oops. premature
was still typing
@FlorianMargaine I'm on my way to my fifth and sixth guru badge. :P
15:52
chappelle... thats my DAWG
not sure if fake, but nice ad.
bravissimo!
tip for anyone who doesn't know about it chrome://flags/
should I make a jQuery plugin that displays images like stacks of photos?
It seems like I should
why does jQuery alias to $? because plugins are money in the bank! ohh yea
@FlorianMargaine any idea how a ... I'm not sure how to work this. You know how github has .git repos? And Bitbucket. Gitoriouas etc. Or even Hg/SVN. whatever... how do they ... do it O.o
15:55
@rlemon You should, and don't forget to ask users to add both, jquery.js and jquery.min.js for it to work.
ohh good point
e.g. to be a TLD registrar you have to follow legal procedures
and shell out wads of $$$
> This plugin requires jQuery 1.3.2, jQuery 1.9.1 and jQuery 1.8.0 (minified) - Optionally you can also include Zepto and Backbone to add performance.
2
@skopp the .git is not at the end of the domain name
15:57
so it's like you asking me how to add a .php at the end of your url
@FlorianMargaine No
are you asking about the .io TLD?
git is also a protocol. They just implement git.
That would be like saying a .jpg is comparable to .php
15:57
@Tomás 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.
@rlemon add a tad of D3.js for good measure.
it is, .jpg and .php are both extensions
!!/tell skopp google setting up a git server
sigh
codepen.io/darkyen/pen/CdBqy THE TRAIL IS PURE CSS!
15:58
well, what is your question then ?
@skopp it is.
If I wanted to start a service like Github,

« first day (956 days earlier)      last day (4217 days later) »