« first day (1282 days earlier)      last day (3649 days later) » 

12:00 AM
the new setup up close
lol that tv..
for ref here was the one yesterday
 
lol
dude this tv is ridiculous
Im worried its goign to fall on my body
 
12:24 AM
meh I'm having some trouble with a simple thing. If you wanted to have a bar at the top of the page that would slide down, and then slide up, how would that be done?
 
@Loktar Can you move the desk back a bit? Probably more comfortable viewing anyway.
 
12:43 AM
0
Q: Recover an plug-in JS

user3279494I want to take the pictures grid plug-in code from this site : http://www.systran.fr/ I get the JS code but I don't how keep the CSS code from this div Help Thanks

what
 
@HostileFork eh its too large to move now
Im just moving the chair back a bit when I play
 
@mindoftea 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.
 
@Loktar looks cool :D especially the transition between the left and right sides of the rooms :P
 
thanks
 
imagine how it'll look like in 30 years
 
12:55 AM
happy I can play everything in one place
 
now I feel I need a new tv
 
haha yea
@rlemon yeah bestbuy had a ton of sales
I just grabbed this cheapo one, was $350
since all Im displaying is old games anyway
 
who cares about sales. :P no kids === bling bling baby!!!
 
lol I like to cut costs in some areas so I can splurge a ton in other areas
the kids don't cost much $$ :P
 
12:57 AM
circles seem to work properly now
but it's ugly :(
 
@Mosho got an error, it froze
 
:O
 
also change your origin point for the enemies
 
does it say "game over, noob" top right?
 
oh hah yea
 
12:58 AM
yeah, I should probably add some rules :P you can't circle your base
 
you should draw them like x-width/2, y-height/2
 
There's friendly fire, and are we Soviet Russia?
 
and do the colision calcs based off of those coords as well
it looks like its tracking the corners maybe instead? (on the enemies)
anyway nj :P
 
nah, it's the middle, but I think explosions are added in the corner
 
are you doing radius collisions?
 
1:01 AM
honestly most of the time I spent on it was getting the damn circles to work. You can only have 3 groups at a time, and if you have more than 1 next to each other they merge
 
because it seems a bit off on the enemies
 
and you can click circles or clumps for a boost in that group
@Loktar hmm
 
Why is there friendly fire?
 
because otherwise you can have a circle on your base and no enemies can reach it :P
 
I suppose real circles of doom don't know the difference between friend and foe.
 
1:03 AM
^
@Loktar brb checking how I do collisions
it's the center of the enemy, for simplicity
I can change it to the box
 
why the hell does all the fun stuff go on while I'm gone
 
Because you're the one who kills the fun.
 
:(
 
but other than technical problems, what do you guys think about the concept? seems a bit wonky to me :P
 
Xsi
1:19 AM
as non native i think about rickety..."wonky"... good night
What's the topic
 
Xsi
protoss carnage)
 
I'm thinking a trackpad is not so great for this game...
 
I actually had touch in mind when I made it :P
 
h
 
1:25 AM
@Astronavigator 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.
 
@Mosho Ha. now that you mention it it's so much easier with touch. A lot easier.
 
is there a way to animate an element to a certain times its original size?
 
In template i am showing some information (fetching model ). now i want to save value in div like id=" here i want my feched value ". i am using backbone,underscore
 
@John but is it fun? :P or rather, is it potentially fun with the right tweaking
 
for example <div class="likenams"><%=listItem.liked_names%> </div>
how to save in this in id=
<%=listItem.liked_names%>
 
1:30 AM
@Mosho yeah, I like it is it an original idea? I've never seen it before.
 
yeah
 
reminds me of missile command
minus the trails
 
yeah, I saw the resemblance as well
although the main idea is the clumping of the circles rather than just having a single blast area
 
yeah, MD has chain reactions too
 
does it :o oh well :P
 
1:35 AM
I like the clumping circles idea, any thought of adding powerups like a nuke?
 
oh wait @Mosho
you mean you want to add chain reactions?
thats what you mean by circle clumping?
 
no
I mean
 
or just like 5 circles appear when you click
 
right now, if you have 2 circles next to each other, they (should) clump to a new shape/group
when you click circles/groups they expand
that's what I have
@John I have a ton of ideas, from different kinds of circles to different kinds of enemies :P for example a thumper that shoots several times, or enemies that need more than 1 hit or need to be hit by group consisting of a specific number of circles
a screen-clear is also an option
 
Sweet that sounds pretty cool.
I noticed it's hosted as a heroku app. Do they have a free pricing plan for smaller apps?
I don't know much about heroku or hosting in general.
 
1:43 AM
@John heroku is a developer's best friend :). Free till you need to scale. Great.
 
I'm sure their website has all that info :P but yeah, I think for one active app at a time it's free
 
heroku.com is a good place to look
 
2:01 AM
@CapricaSix Thanks Caprica! I was just poking my nose in to look around. I might add something eventually!
 
2:32 AM
@michaelAdam 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.
 
@Loktar so... what did you mean by chain reaction?
 
like each explosion from an enemy dying has a radius, that kills enemies near it
and it keeps going
 
Like Ender's Game
 
right
no, don't have that, though it would be cool :P
 
Missile Command doesnt have chain reactions hah
I thought it did for some reason
 
2:43 AM
do you see what I do have though?
 
yea
I played it a few times
I was just explaining what I meant by chain reactions :P
its cool, but something is still up with the collisions
like, sometimes my ring is inside the enemy before it blows up
 
@SamarthWahal 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.
 
freshly fixed 20 seconds ago
hmm
well, I don't check the box, just the center
 
yeah it looks like they only die when they are like 3/4's in the circle
you have to hit their back end with it
lol so many enemiiiies
haha so much health for the base too
 
right, forgot to change that back
got tired of being called a noob
now there's a red circle where you need to hit
 
2:50 AM
ah cool ok I see
 
Hello all. What would be the best way to manage/optimize a really huge dynamic object.
I need to iterate over the properties of the object everytime a function is called.
All the properties of the object return an integer value.
 
@SamarthWahal If it's too big to store in memory, put it in a db and make queries to it.
 
It's actually on the client side.
 
@SamarthWahal If it can be stored in memory but iterating over it is too slow (that is, there is a time constraint rather than a space constraint) you may need some kind of indexing to quickly access parts of the data.
@SamarthWahal Either way, if it's too big for memory you'll need to break it up and only pull specific parts into memory at a time.
 
@Raine So like, i create some arrays to contain a specific type of property?
 
3:02 AM
@SamarthWahal It's hard to tell without knowing what your data looks like. If it's too big to store in memory, then you'll need to partition it some way. Can you describe the data more specifically? What does it look like and how big is it?
 
@Raine like say, var x10 = [prop1, prop2, prop3]
var x100 = [prop4, prop5, prop6]
 
@SamarthWahal No because even when they are in separate variables they are still all in memory. I'm not clear yet on whether the issue is a space constraint (i.e. too big to actually store in memory) or time constraint (too big to iterate over continuously) or complexity contraint (too difficult/complex to access- the "easiest" to solve of the three!)
 
@Raine It's a script that runs and saves certain keywords on a page that the user visits inide an object and asigns it value of 1 (the no. of hits). If the keyword is already a property of the object, it increments the value(hits).
@Raine So as the user visits more and more pages, the object becomes bigger and more diificult to navigate
 
@SamarthWahal Starting to get a better sense... Sounds like a complexity issue then, not a space constraint? Well, if you are accessing specific keys that is very fast. Objects are implemented as hash tables. You can access/change the value of a key in constant-time (i.e. no matter how big your object gets, it doesn't make it any slower to access/change a single value).
@SamarthWahal To make it easier on you, the developer, to access, maybe you can split the object into objects different pages? Still, I'm not sure what aspect is "difficult to navigate" as you say. Are you doing something more complex than just incrementing values?
@SamarthWahal And do you have to iterate over it?
 
@Raine Sorry for not being clear. I have to iterate over this object and say, get x number of objects having the highest value.
 
3:15 AM
ok, trying to make my first li'l logo
and just noticed... 5am
 
@SamarthWahal If you want to optimize for retrieving the objects with the highest value, you may want to use a priority queue. Are you running into performance issues or just having trouble accessing them? Make sure not to optimize prematurely.
 
@Rai
@Raine Thanks, I think priority queue's should work. If it doesn't, I'll try to split up the object into parts. Thank you.
 
@SamarthWahal yw
 
3:33 AM
@rlemon in jsfiddle.net/rlemon/7t49V, why do you use drawImage like that?
also, what makes that shimmering effect?
 
@Mosho the alpha transparency from what I can understand
@Mosho and so that he can use a spaceship image later, rather than a triangle
 
3:48 AM
@t1wc where do you see that?
 
@Mosho line 88
or probably I didn't get what shimmering effect means :P
nvm, I did get it right
 
hmm, why would it cause that though
(I see now that it does)
 
the fact is that the trail gets shadowy because it gets overwritten by a rect of a quite low transparency
the newest frames are less shadowy
and also closer to the triangle
 
so he draws more than one triangle for each frame
I mean
that's all it is
hmm, I still don't see it
 
@Mosho he draws only a rectangle par frame
let's say he didn't clear it at all
he'd end up with a triangle for each frame
 
3:53 AM
oh I see now
 
@Crow @Crow hey is this what you were looking for?? jsfiddle.net/LrzkP/2 basically just saved the .outerHeight() and .outerWidth to the element on mouse in with $.data() then pulled from .data() when it moused out.
 
good
:P
wow... can't get quadratic equations but at least I get this
I think I finished my logo
I have the url of the imagedata...
but it's too long to post here
11864 characters long
I guess I can fiddle the logics and make changes based on suggestions
and the colors are totally by chance, not meant to represent italy flag
where red means wrong and green means right
red=everything else
green= me
 
@t1wc Well done!
 
@Raine obviously can be enhanced graphically, but hey: it's something
 
cool idea, but it does remind of a flag
 
4:04 AM
Mornin
 
@Mosho exactly... that's just what I didn't want to happen
@BenjaminGruenbaum 'morning
 
@t1wc and tbh, I still don't get that effect with the opacity :P
I mean, I guess I get the idea, but I don't see why that is the result
 
@Mosho so, if he didn't clear the table he'd end up with as many triangles as the frames, right?
 
right
 
so, let's say they have some light levels
max=1
for each frame it decreases each triangle's lightlevel by 0.11
and when they reach 0 you no longer see them on the table
and some have less light, some have more light
 
4:08 AM
@t1wc so... that's what context.fillStyle = 'rgba(0,0,0,0.111)'; does?
 
the ones closer to your current triangle have a higher lightlevel
@Mosho 4th value is alpha
 
in what manner does it do the multiplying
 
=light level decreased
 
yeah but why does it multiply
 
did you ever work with alpha? XD
 
4:10 AM
truthfully no :P
 
ok, so there's the problem
 
but now I think I get it
hold on
 
I don't think I know how the algorithm for alpha works, but I know the general idea
 
so every time he does
context.fillRect(0, 0, width, height);
it puts another coat of black
which with only an opacity of 0.11 takes a few coats to hide a triangle
 
you have a pixel with rgba(10, 10, 10, 1) and you write on it a pixel with rgba(20, 20, 20, 0.1)
@Mosho that's the idea
 
4:13 AM
pretty neat
thanks for explaining :P
 
the pixel you'll end up with will be, given px=(r, g, b, a), (r1+(r2/a2), g1+(g2/a2), b1+(b2/a2), 1)
so rgba(12, 12, 12, 1)
or smth like that
 
yeah, sure
 
I guess it's simpler than what you've done with circles
changed logo up a bit
 
better
 
now the thing enclosing t1wc is no longer a circle, but a cubic bezier, meaning that it looks graphically more pleasing
 
4:18 AM
and circles were just a bit of math, it's fairly simple
 
also letters are multishade, in gray
@Mosho that's basic math aswell
addition
and division
 
slightly more than that
it was only hard to come up with the simple solution
but the solution itself is simple
 
before I was thinking of making an open box with many red letters at the bottom of it, and my name above it
@Mosho if you say so ;)
 
@t1wc maybe try to have your name surrounded by the letters
so that there is a wide gap between them which is the outline of your name
 
@Mosho meaning I'm like the others?
 
4:20 AM
you are a beacon of light and wisdom
 
or I'm isolated, which is worse
 
isolated as it stands anyway :P (in the current logo I mean)
 
@Mosho good point
 
have you done anything with particles
I want to make my circles fancy
so far I only have this function
function drawFancyCircles(x,y,r,start,end) {
    drawCircle(x,y, r,start,end);
}
 
@Mosho that's fancy enough
perfection and consistency
:P
 
4:23 AM
@Mosho pfft.
 
what do you mean by fancy circles?
 
drawFancyCircles = drawCircle
 
!!joke
 
@t1wc well, not just solid circles
 
4:26 AM
@Mosho you mean liquid circles?
:P
 
I originally wanted purple lightning circles
but I don't know how to make that happen
 
@Mosho plasma circles?
@Mosho what's that?
 
5 seconds in
 
@AndrewPearson 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.
 
@Mosho you can use radial gradients
then fill with that a crown
and you're done
 
4:29 AM
sounds hard :P
 
if you want the shimmering effect, you can either use noise.js and complicate your life or may Math.random and alpha be by your side
isn't hard at all
google it
not sure if I like this jsfiddle.net/43MYN/2
lemme use a radial gradient
 
I don't really play games, the last one I really got into was SpaceChem. (highly recommend) But because of XKCD I started looking at Kerbal Space Program. Afraid...to...download. Time...sink.
 
4:44 AM
I'm actually thinking of the 2 words people usually write near the agency name to describe it
logics is surely one of them
 
@andryuu87 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.
 
logics and cheese?
logics and unicorns?
 
don't get it
 
think of a mark you know
most of the times it has at least 2 main adjectives
as of Acer has Persistance Perfection
 
@Vinay 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.
 
4:51 AM
I'll have to go in 10 minutes
my father yesterday was saying that today will be orthodox easter, and the first guy in the family who wakes up, even if it's 7, will have to wake up all of the others
probably he was joking, nobody will get up at 7
but some guy in the family doesn't have to wake up ;D
6:53
oh boy... I think that a whole new web re-design based on the new logo will be made
which is positive
this will likely be the final logo re-design jsfiddle.net/43MYN/4
going to wake my father up
!!afk doing evil things
back
also... just realized I've been listening for 3 hours to the same song
 
5:23 AM
@A_funs 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.
 
is there a way to downloading a canvas as an image directly?
the first letters look like 'doh doge'
 
lol
I approve of new design for your turd site
major update
 
@Mosho thx...
 
any better? :D
 
@Mosho added alpha to circles ?
 
5:33 AM
other than the earth being messed up
 
wait... you're drawing an image at the position of the circles
 
like a boss?
 
when expanding and retrieving just filling the circle with that image, when in between you're filling a crown
@Mosho like a bawss
even tho you're rendering the hearth after the circle's image, causing the shimmering to get caught off..
wait... are you using alpha for the image?
 
no
the earth is a placeholder
fuck the earth
 
how are you making the transparency in the circle's fading and creating effect?
 
5:36 AM
I'm doing it exactly how lemon did it
^
 
@Mosho so yeah, you're using alpha
 
on the background, not on the image
 
I said for the image, not on the image :P
 
whatever
 
yeah
 
5:38 AM
I think it's better
a better earth, some stars
maybe a flying spaghetti monster
 
maybe you should limit circle embigenning
click on the center of the earth
and keep clicking there
 
you lose if you do that
 
you'll destroy all of the ships
oh...
 
note the score top right
forgot to set it to 0 :P
 
@Mosho lol
also, you didn't say that in the rules
and they look pretty strange on my screen
wait, I'll send a screenshot
 
5:41 AM
they?
 
the rules
 
strange how...
 
uploading images via facebook is the easiest
 
imgur is 10 times easier
 
just send them to my second account via chat, get the link, and I'm done
@Mosho one does not simply have imgur open all of the time
 
5:45 AM
wat
it's a website
 
ik
and since I have fb open anyway
 
you to to the address input at the top of your browser
 
I prefer to use that
 
and you put in imgur.com
this makes the browser go to that website
 
@Mosho what's a browser XD?
anyway, look at the image
 
5:46 AM
did
 
(that was a joke btw, I didn't mean to give anyone an heart attack)
 
what was a joke
 
the browser thingie
you can get an heart attack for the fb thing, I don't care
:P
 
no idea what you mean
anyway
how do I make the text wrap
 
@Mosho you just don't have the canvas to have an absolute position
or put the rules belo
below*
 
5:56 AM
@jackieLin 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.
 
@t1wc fixed, I think
thanks
 
@Mosho lemme check
@Mosho now the clicking is offset :P
 
hmm, not for me
 

« first day (1282 days earlier)      last day (3649 days later) »