« first day (1463 days earlier)      last day (3480 days later) » 

3:00 PM
@AwalGarg therefore get on average 1 upgrade par wave?
That was the point of adding an upgrade at the end of the wave
 
yes
so we now get 2 upgrades every level \o/ ;p
 
@AwalGarg too easy
upgrades should be quite rare
 
ahaha
 
xD
 
i think you did a good job on the game
how long did it take you>
 
3:02 PM
btw, I just did game.invaders = null and all the invaders disappeared lol
 
@OverMind 3 days
started 3 days ago, adding stuff every day as it passes through my mind
@AwalGarg it's great for debugging waves
(intentional)
 
!!>3*24*60*60 + 'seconds'
 
@AwalGarg "259200seconds"
 
I don't really care if anyone cheats anyway
 
haha I know
 
3:04 PM
that's pretty cool
 
God bless the person who can help me solve this!
3
Q: How to animate with CSS sprites either way (A or B)?

Alex StaneseI'm writing a phonegap application (using html, css and javascript) and I'm stuck at the animations part, although I'm using simple basic spritesheet animations. A) I tried to animate the BASIC way but I have 2 problems: 1) If I dont have a full grid spritesheet wich I may not have, it displays...

 
@AwalGarg take out 6 hrs of sleep, 7 hours of school and 30 mins of homework :P
@AlexStanese keeping on posting the same question will just get you banned
 
@towc just 6hrs sleep??? dude.... that's not fair.
 
@towc the last post is for long gone.. I just wanted to refresh XD
 
@towc this is prolly the 5th time he has posted this.
 
3:09 PM
@AwalGarg I go to sleep at about midnight and wake up at about 6
 
for some reason, it is itching me.
 
@AlexStanese yeah... don't
 
@towc try having a sleep of 8 hours a day and see the difference.
 
@AwalGarg it's not that I have to sleep 6 hours, but I don't like knowing that I did nothing in 2 hours in which I could have done something
 
@towc man.. beleave me.. I stayed for 3 days trying to solve this and this is my 3're post regarding this issue and no answer.. I'm kinda getting desperate -_-
 
3:10 PM
Sleeping is doing something
 
^
 
It's a pretty important something
 
@Zirak I don't really enjoy it. I need it and sometimes I desperately ask for it when I have tons of homework, but I'd prefer not to sleep more than I need to
 
@towc in which case, you would rather not sleep at all
 
@AwalGarg in the first 6 hours of sleep teens actually do stuff, after that it's just more laziness and other things kicking in if I understood correctly
 
3:13 PM
when i was overseas the general in charge of operations in Afghanistan slept max 4 hours a night lol
just didn't make sense
 
@towc As long as you listen to your body and understand when you need more.
 
@Zirak of course, when the alarm rings and I still feel like I'd die for some more sleep I return to it
which lately does happen quite often
 
@towc I understand...
Sometimes, I get sudden energy boosts when I am about to sleep and I postpone sleeping for another hour and get back to code.
I also get energy boosts while bathing ;p
 
lol
 
But I still avoid lowering my sleeping time as much as I can
 
3:17 PM
when I'm about to sleep under my rigid sleeping rules (midnight at most or some little cat may die, which is something I don't want to happen), I sometimes get a very annoying boner
that's the worst
 
this just took a weird turn
 
all of the kittens died because of my boner!
 
@towc at least you know you won't fall off the bed
 
@JanDvorak :P
but that's the only thing that can stop my sleeping starting process
 
If I get to bed, there is hardly anything that can stop me from sleeping.
I am an extremely lazy person lol
 
3:20 PM
^
 
something tells me that I have to add explosions to my game
(a dack told me that, if you ask)
what kind of explosions should they be?
maybe on invader death?
 
BOOM!
 
big/small sprite?
affecting gameplay or not?
so many questions, so few answers
 
lol
 
explosions should be big!
very very very big!
 
3:27 PM
explosions like in galaga
 
so big that the entire screen gets blind
 
@AwalGarg I could tilt the screen slightly
 
JUST MAKE SUPER BIG EXPLOSIONS
wrap the explosions in H1, BIG, font-size 50000000px or whatever
 
!!urban IOW
 
@InkhSuTesou IOW In other words
 
3:31 PM
 
3:44 PM
ok, explosions added, let me put it online
I'll have to add an explosion sound now
 
oh that's nice
 
first lemme show it to ma parents, coz I'm a good kid and they need to know XD
 
i like the screen shake
 
thanks
should I amplify it?
 
hm..
amplify it and i'll test it
 
3:49 PM
@towc it is slowly reminding me of Apache Overkill
 
@OverMind done
@AwalGarg never even heard of it :P
 
Hm, it's not too bad
may be a little much
 
please god tone down the sound effects
 
just yesterday this was a fine, clean and slow game
@rwollr press k to mute
 
Bye bye Amsterdam
 
3:50 PM
!!tell towc google overkill apache
 
@BenjaminGruenbaum bye bye Ben
 
Hello Prague
 
the actual sound levels
are way off
 
@BenjaminGruenbaum hello ben
 
3:51 PM
you should add a power up that allows ricochet bullets lol
 
@OverMind ?
 
!!slidepoop
 
causing speakers to clip
 
Mar 13 '13 at 1:40, by rlemon
(Random Fact, when rlemon was 13 he pooped on a slide. he isn't proud of it, but he felt it was time to confess. I'm sorry slide.)
 
the ones that bounce?
 
3:51 PM
is that already one?
yeah, bounce off the side
 
@OverMind this is outer space, not inner space XD
but I could try
 
goddamnit
hahaha
 
not that the rest of the game is realistic
 
yes lol
towc how many levels? 5?
 
@BenjaminGruenbaum that was fast
 
4:00 PM
@OverMind yes
 
i got lucky with the power ups
 
I find this user's name amusing:
 
> Nowhere
 
lol
his questions lol
 
You're right
> I made a program to convert Celsius and Calvin
 
4:03 PM
@BenjaminGruenbaum Get some hotdogs
 
hahaha
 
@KendallFrey in what?
 
@KendallFrey it's Calvin? I thought it was Kelvin
 
I thought he wrote "Calv in"
So I was wondering how he would convert a Calv into something
 
4:13 PM
just sad lol
 
The more I use JavaScript, the more amazed I am at how badly you can design a language.
 
@AwalGarg how did that get 438 upvotes?
 
@towc 438 people clicked the up arrow
 
@KendallFrey maybe more, some might have clicked the down one too ...?
 
4:21 PM
@KendallFrey woooow
 
@towc read the answers, ain't that clever?
 
@AwalGarg in fact, no one did
 
@KendallFrey vote count check? kk then, u know more
 
privs, brah
 
I wonder why use only !
we can use + too, I guess?
 
4:22 PM
Why not?
 
@KendallFrey meh, it's not really a language feature, it falls under the very definition of a hack
 
@AwalGarg how.. on... earth? (don't answer, kendall XD)
 
@AwalGarg Any operator whose RHS is an expression
 
@towc ..what ..on ..earth? (why should Kendall not answer?)
 
@Zirak The fact that the hack needs to exist at all is the problem
 
4:24 PM
@AwalGarg he'd say: you see, when two functions meet...
 
@Zirak kk, so why only !?
 
@KendallFrey It doesn't
@AwalGarg It's not
 
Rule 34 - function
 
@towc that is just silly! two functions never meet...
 
@AwalGarg at least not yours! Yer functions are waaaay too ugly! :P
 
4:25 PM
@Zirak Are you saying that (function(){})() isn't a hack?
 
@KendallFrey is that a hack?
 
@KendallFrey No
 
I thought it was intended
 
At least less of a hack
 
less, yes
but still making up for a weakness in the language
 
4:26 PM
Though IIFE as itself is sorta hackish, you dance around an assignment
 
@towc ;p
@Zirak and whadya recommend instead?
 
@KendallFrey But on the other hand, we have function hoisting, which is really cool
@AwalGarg Nothing, some hacks are okay.
 
I don't see the problem with hacks, if they make the code better.
 
uh, give an example?
 
Further, if hacks like them get popular, they get standardized and the "readability" problem also fades away.
 
4:28 PM
they make it a pain in the ass to read
 
Anything that makes the code better is good
 
And I'll give the !!~foo.indexOf(bar)
 
hence hundreds of people agreeing that ! function () {}() is just strange
 
@AwalGarg that's cheating
 
@AwalGarg That's not a hack
That's abusing casting
How is toString a hack?
 
4:29 PM
hold on
I don't remember the real name lol
 
you mean doing 2 + '' instead of using toString?
if you wanted '2'
 
And then * 1 to bring it back
 
pretty much the same thing, just using different, less semantic syntax to do the same operation
 
@Zirak what's that about?
 
i wouldn't really call those things hacks, that's just not using best practices
 
4:31 PM
@towc Doesn't that make code just better?
 
@Zirak what does it even do?
 
hacks are actual solutions to actual problems that are just bizarre in implementation, although usually through necessity
 
better is entirely dependent on the situation
Good golfing code rarely overlaps with good production code
 
like how to know when a webfont has loaded, you have to make an invisible div way off the screen full of random characters of different widths set to that font, then measure the div's width until it changes
 
indexOf returns -1 on "failure". ~-1 is 0, but ~positiveNumber isn't. !! turns into a boolean, so !!~a.indexOf(b) is a hacky way of doing a.indexOf(b) !== -1
 
4:32 PM
that's a hack
 
@Zirak can't say it's clever, but it is
 
What a Schrodinger-like sentence (cc @SomeGuy)
 
I can't remember right now and google is not helping, how about css hacks?
data:text/html, <html contenteditable> <--paste this in the url bar of your browser and hit enter. happy notepad--
 
@AwalGarg I actually have it this:
javascript:document.body.setAttribute('contenteditable','true')
I love scaring my schoolmates with that
just hit it and you can change everything in a page
 
I once had a bookmarklet which prompted me for some light html (with a template as init value) and displays that html on the page. good for simple tests, but now I don't need prototyping in html lol
 
4:44 PM
look at yer message
I used to do this on people I hated's facebook and sending them pictures
then I realized that it was wrong
but was also fun
 
lol
@towc dat . oldschool . scrollbar
 
@AwalGarg this is latest google brah
 
@towc chrome://flags/#overlay-scrollbars
^enable that and relaunch chrome
 
oooooh
 
no need to clap for me
Enjoy the full width of your screen in the browser, no need to look at fat and ugly bars
 
4:48 PM
not sure I like it this way
that bar was conforting >:(
 
@towc you might find it a bit odd at first, but over time, you would love them and never like to go back
further, you mostly scroll with the scroll wheel/arrow keys/spacebar/pageup/down, why have those thick scrollbars?
 
@AwalGarg using facebook with that is really trippy
 
why?
screenshot?
 
there are other bars on the right
facebook bars, which collide with the page's bar
 
take your cursor at the edge
 
4:51 PM
and when you use the mouse it's uncertain which of those you'll get
@AwalGarg that's not how a scrollbar is supposed to be used tho
 
IT IS
chrome://flags/#overlay-scrollbars
you can change that, you know?
But I would recommend to stick with them, you would get used to it easily
 
@AwalGarg 'k pa'
 
@towc ?
 
(ok father)
 
np son
btw, I am paid to make people use google chrome and ubuntu
and the silly features they have
 
4:56 PM
oh, ok
 
so you would use overlay scrollbars now?
 
if they pay me too of course XD
 
how many people actually use vw and vh in css?
 
5:06 PM
@AwalGarg I do
 
I don't see that much in stylesheets, is that considered bad practice or something?
They work quite well for me.
@towc nice
 
@AwalGarg it's just that it's rare that you need it
 
vw and vh?
 
@towc Or maybe devs like using media query breakpoints...?
@FlorianMargaine css units ofcourse
vw->viewport width
 
don't know them
 
5:10 PM
vh->viewport height
(I know he is trying to test me again, not falling for it this time)
 
how are they used?
I don't know them, honest
 
You are clearly dishonest, cus I know that you know how to google
 
Buurn
 
hmm, looks like cus of lesser browser support
> Internet Explorer 9 in print-mode interprets vh as pages. 30vh = 30 pages
hahahaha IE
 
@AwalGarg but I'm too lazy to google right now
 
5:18 PM
#troll
 
@Zirak you know I'm serious, right? Confirm to Anal.
5
 
I...I'd rather not confirm if it'll result in Anal.
 
tss, pussy.
 
tss, florian.
 
@FlorianMargaine But I don't have one :(
Or :)
 
5:28 PM
@FlorianMargaine 1vh = 1/100th of your viewport height
 
@FlorianMargaine LOL
 
holy fuck. that is dedication
I watched like 30 minutes :/
 
@rlemon is that the same person throughout?
 
wow
 
yes
 
5:33 PM
"Some say that if you watch the entire thing you go back to being a virgin" LOL that is priceless
 
@rlemon I wonder how many times did he have to solve it for practice before making the video
 
in the video he says a few times (he doesn't make it sound like many)
 
also, it would have been hilarious if in the last 20 turns the thing broke
 
i get the jokes in the comments about him being a nerd lol
 
> my tecnique is rather focused to solve the problems rather than to use algorithms
da hell dude?
 
5:43 PM
but if that's what he wants to do then f it
 
@towc isn't that how you roll? You do your own thing then check out the algs to implement it :P
 
@Loktar that's what someone who doesn't know the result yet does. That guy seems like an expert
 
how do you even shuffle one of those
oh he does it at the start
by hand, of course
 
then, at 8:03:00
> this is just the algorithm working: I don't know how and why, but it does, so I'm going to use it
decide plz
 
@AwalGarg oh my god
 
5:56 PM
@rwollr excuse me! I am not god, I exist in reality.
 
> it's cool because not a lot of people know how to do this, even tho it's pretty straight forwards, and you have to know things
 
setTimeout(function() { app.use(require(MIDDLEWARE_DIR + '/error')(404)); }, 50);
 
!!>var evaled = new Function('return' + "[1, 2, 3, 4]")(); console.log(evaled);
 
@AwalGarg "undefined" Logged: [1,2,3,4]
 
I'm doing this to make sure the 404 route is added last. This smells a lot, is there a better way?
(This is express btw)
 
6:07 PM
is this any different than the eval function?
 
@AwalGarg don't think so
 
It's just as evil as eval
 
@AwalGarg but serves no purpose
 
6:49 PM
eh reduces requests
but if it were that amazing people would be using it
 
@Loktar and doubles the content in the requests
 
not doubled necessarily
just makes one request the amount of the css + js one
however I've only ran into request issues on extremely poorly optimized sites
 
hi guys!
 
@AgusDG 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.
 
moe
s
 
6:58 PM
@moe 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.
 
I have 2 javascript functions, with ajax requests inside. I need the result of the 1st one to be used in the 2nd one. The thing is, that the second request, the last one, looks like being requested 1st.
I ve reading and maybe queueing the calls will do the job, who thinks that is correct?
 
7:38 PM
hello guys, I'm working on a project that uses HTML5 videos, I have a problem with the buffering, I use video.buffered.end(0) to check the buffer and it works fine until I move the video time after the already buffered part, when I do this the video.buffered.end(0) is frozen and always return the same number
 
@Loktar you run on a treadmill or just outside?
 
both
 
I run treadmill with a high incline to burn more cals.
but my calves are already pretty muscular. I don't want freak legs
how's outdoors this time of year/
does the cold make your lungs burn? (it did for me, but I was always a smoker so my lungs always burned when I ran)
 
initially yeah but I get used to it
Ill run in december with snow on the ground
but when it first starts getting cold like now it burns a bit
 
8:23 PM
lungs burning?
 
old people stuff
 
just hurting or actually feeling hot?
@rlemon uhh.. treadmills: the thing that were once in old movies, right? :P I actually don't think I've ever seen one with my eyes
 
@towc It's sort of a biting feeling, I liken it to feeling the heat around your lungs being crumpled up like paper over and over.
 
@Zirak don't think I've ever experience that
obviously the biting yes, but not the heat
 
Run in the cold for some time.
 
8:28 PM
I will
the weirdest thing that happens to me when I run distances like 300m (at fast speeds) is that my glottis closes as I reach about 100m to the finish, and all of the air goes to my esophagus
and I start farting like hell as I finish
3
ever happened to people here?
like, 10 mins after I finish
it's horrible: by that time people are usually at the podium
either I hope to never get to the podium or to get the prob sorted
 
@towc Are you trying for a bash.org submission?
 
@CaptainGiraffe why?
no
 
@CaptainGiraffe, why are trees so short?
 
@Zirak Your mom sat on them and converted them to linked lists.
 
O Cap'n, @CaptainGiraffe, how do giraffe babies survive the fall from their mother's vagina?
 
8:38 PM
@Zirak Or I might have eaten them all up.
 
@Zirak My mom was in a bed when she had me!
 
Excuse me, @CaptainGiraffe, I drank some giraffe urine the other day, is that how babby made?
 
@Zirak Dude you are clueless. You need to read up on your Rudyard K.
 
Oh oh, pardon, @CaptainGiraffe, if you had larger feet, would you stampede across New York city and declare yourself King of Newer-Oldish England?
 
8:46 PM
If I had larger feet my feet would be the size of Rhode Island. And I would rid the world of Rhode Island size comparisons. You would thank me.
 
I love you, @CaptainGiraffe.
 
@Zirak Are you spotted? If so I love you too!
 
@CaptainGiraffe yeah, the old man is plenty of acne
 
@towc Another unread bastard scratcher, how dull.
 

« first day (1463 days earlier)      last day (3480 days later) »