« first day (676 days earlier)      last day (4288 days later) » 

10:00 AM
Well that was fun. Fable crapped out, freezing my computer. Had to do a hard restart, when grub crapped out, claiming some HDD didn't exist. Had to mess around with the HDD wiring for a while. I'm getting too old for this
@FlorianMargaine The usual, lazy tactic is a complete redraw. But the smarter one is only delete where you want, which can be difficult to pinpoint.
 
@Zirak can you explain this code
function loadImages(sources, callback){
var images = {};
var loadedImages = 0;
var numImages = 0;
for (var src in sources) {
numImages++;
}
for (var src in sources) {
images[src] = new Image();
images[src].onload = function(){
if (++loadedImages >= numImages) {
callback(images);
}
};
images[src].src = sources[src];
}
}
 
No
 
!!/todo "Apply online" "Get Paperwork signed by Counselor" "Register for classes"
 
@Purmou Unidentified /todo action Apply online
 
!!/todo add "Apply online" "Get Paperwork signed by Counselor" "Register for classes"
lol
 
10:04 AM
@Purmou Item(s) added.
I refuse to look at any unformatted code for more than 3 seconds
 
!!/todo
 
@Purmou (1)Apply online, (2)Get Paperwork signed by Counselor, (3)Register for classes
 
@Dennis can you explain this code
@Zirak can you explain this code
function loadImages(sources, callback){
var images = {};
var loadedImages = 0;
var numImages = 0;
for (var src in sources) {
numImages++;
}
for (var src in sources) {
images[src] = new Image();
images[src].onload = function(){
if (++loadedImages >= numImages) {
callback(images);
}
};
images[src].src = sources[src];
}
}
 
@Ritesh indent it properly first
 
@Ritesh NO. I refuse to look at any unformatted code just thrown at me.
 
10:05 AM
i can barely read it
shit
the deadline to apply online for this college is the 24th
but the online application says applications are closed
 
Link?
Maybe they had a limit on the number of applicants?
 
they never stop allowing applicants
 
o/
 
classes can be full
but applying isn't restricted
=/
hmm...i'll have to call them later
 
What are you applying for?
@GNi33 \o
 
10:10 AM
@Amaan just to take some college courses while in HS
 
You're 15, right?
 
yep
 
Aren't you supposed to be in high school, then?
 
56 secs ago, by Purmou
@Amaan just to take some college courses while in HS
"while in HS" :P
 
hello
 
10:12 AM
You can do that?
Sup, @Abhishek?
 
@Amaan laying on the bed
 
2011
 
ouch
the website looks indian
 
August 24, 2011-2012
Hahaha, come on
 
10:14 AM
...
>.<
morons haven't updated the website...
 
Yeah. Similar thing almost happened to me here
 
What courses you taking?
 
just some GEs
 
@Ritesh You aren't going to get much help spamming the same block of code into the chat room over and over
 
10:15 AM
@Zirak hopefully English 1a or something
 
What are GEs?
 
general education
 
@Amaan see something intresting on that page ?
 
Check their "Visual Tour" out
 
posted on August 22, 2012

On 14th of September PhoneGap Day EU will take place in Amsterdam. This day is wholly dedicated to PhoneGap (duh...) and features quite a few good speakers from the PhoneGap team and other companies deep inside the PhoneGap world. Tickets are still to be had and are a mere €150. That includes lunch and beers. Yes, you read that right: lunch and beers. Bargain price. So if you’re

 
10:15 AM
It's a flash file
 
@Purmou Neat. I've been considering taking some courses in OU as well
 
@Amaan check the spelling of August on that CBSE website
 
in the US, you have the option to take General Education courses for two years at a community college, and then transfer to a four-year institution
 
@Purmou can we do like the following functions
when we click on the image for first time one image should appear,when we click for the second time second image should appear along with first image in javascript
 
xD , its been wrong since 3rd August and they dont wanna fix it :-)
 
10:16 AM
Hahaha
 
0h and btw
 
0h?
Y0u 4r3 50 l33t
:p
 
quizopolis.tk @Amaan according to my college this is the most bugfree and neat website any student created
try hovering the dots on the 3d flash thingy (x
 
and see the links...
 
10:19 AM
@Abhishek at first glance it's not bad...then you see that it's right-aligned
 
It doesn't look so bad
Yeah, it being right aligned is strange.
 
view-source:quizopolis.tk
hm...stupid chrome urls
 
And not having a proper title
 
@FlorianMargaine creating theme for ur docgenerator :-)
 
@Amaan wtf?
 
10:19 AM
lol
no doctype
uses framesets
 
@Purmou That's dot.tk
 
> This year's software is realy good.Form filing work is almost finished easily.Credit goes to core committee,officers and MKCL.Well begun is half done.Congratulation.
 
10:20 AM
@GNi33 That's how we're supposed to apply for admissions in Junior Colleges here
It's so freaking stupid
 
dafuq are the talking about?
 
Hahahaha
 
i still have to download that flash visual tour :-/
 
old project though, so it's using require.js
oh hey, I'll try converting to browserify
 
what's bad about it?
 
10:21 AM
Well, the website isn't really usable
 
nothing especially besides the fact that it adds an indentation
browserify doesn't, so I'm going for it
 
no, i meant require.js @Amaan
 
Oh, you were talking to Florian
 
this is the kind of code needed : github.com/Ralt/Snake/blob/gh-pages/js/Game.js
one useless indentation...
 
@Amaan it's been a long time since i've needed to actually download an .swf - file to view it
 
10:23 AM
i'm so lost right now
 
how to view one :-/
on windows i would off double clicked , on linux it no work :-/
 
open it with vlc
 
I browsed to the path in Chrome
 
@FlorianMargaine well, you could get rid of it after all
 
@GNi33 the indentation?
 
10:24 AM
define( [ 'Snake', 'Fruit' ],
function( Snake, Fruit ) {
    "use strict";
 
that's the same :p
 
@Amaan whose that women voice ?
 
define( [ 'Snake', 'Fruit' ], function( Snake, Fruit ) {
"use strict";
that'd be getting rid of it
but that's ugly then.
 
FFS. well, yeah :D
needs coffee -.-
 
@Abhishek I don't know.
 
10:26 AM
@Amaan sounds decent
 
Maybe they updated it
They made us watch one at school
Dumbest thing I'd heard
 
@Amaan the voice is good not the content
 
but so every wrapping function (for scoping or something) would add this indentation.
I never really cared about that to be honest
 
and LoL at the printout (rofl)
pretty secure :D
 
I would have been screwed if I hadn't saved my application as a PDF
Everyone's forms got wiped out
Had to fill them again
 
10:29 AM
xD
just epic
 
Included 30 colleges' names. Most of which I'd never even heard of
 
I got to see my colleges websites sourcode
the CMS on server side
@Amaan go to any TCS made website ... and view source amusing stuff :-)
 
@GNi33 browserify makes you code in node.js and transform it to client side code with magic
 
@FlorianMargaine how can it handle buffers and node specific awesomenesses ?
 
it doesn't
I meant structuratically
I'll show you soon, wait
 
10:33 AM
okay sounds cool
am going back to sleep for a lil
brb in a while
 
@Abhishek @GNi33 this is what I meant github.com/Ralt/Snake/blob/gh-pages/js/Game.js
 
okay, that's nice. but where do i define dependencies?
ah, nevermind
 
^^
you just require them like in node
 
yep
like i said, i need coffee
 
hahaha
and see? nothing bothering at the beginning or end of file
and no useless indentation
 
10:47 AM
!!/choose pizza misery
@Zirak misery
;_;
 
!!/choose "relieve misery via pizza" "kill all humans"
@Zirak kill all humans
!!/choose "seriously, PIZZA" "NO, FUCK YOU"
@Zirak NO, FUCK YOU
:(
I'm gonna get pizza anyway...
You seem familiar
 
11:03 AM
heh
quick answer :D
rep whore mode <on>
 
Too lazy to search for duplicates
 
done for you :)
just cv
 
huzzah
 
heh, that still gets me some upvotes...
 
woah, wtf
i'm trying to flag the other answer as a duplicate
writing "duplicate answer" inside the "other" textbox
and i'm getting a warning saying "provide link/question id to the duplicate of the question"
0.o
 
11:07 AM
choose "not a fit for this website"
haha, nice
 
ohh, hold on
he edited :P
 
Pizza guy about to get here...need to wear pants. Why doth thou mock me, society?
 
no you don't
:P
 
People don't appreciate my magic-speedos
 
if i had a dollar for every person in america who is answering their door for the pizza man in their underwear at this very moment, i'd be a millionaire in minutes
 
11:11 AM
Americans aren't exactly role models
 
where do you live? :P
 
Currently? In a ditch, about 5km south of the eastern border of Uzbekistan. I breed llamas.
The llamas agree, and snigger on the thought of Americans.
 
the llama has always been a graceful member of the habitat
i wouldn't say the brightest, but certainly a graceful one
 
Ah yes. Until it lays a dump the size of an average sperm whale.
 
This is one of the most difficult browser environments to debug in I've met so far. Right now I have a customer who has their own in-house browser, built around IE6, which doesn't have a URL bar, doesn't allow plugins, and the app isn't rendering. They can't give me access to that browser, and they don't have any logging aside from a single "Ext is undefined" error. I need to advise them via e-mail on how to troubleshoot.
So, i'm going to bake firebug lite into a version of the app, so I can remotely advise them what to type in the firebug lite console after they roll it out.
 
11:25 AM
Why doesn't he just handcuff you and throw you down a well?
A really crappy well
 
I suspect it would be too kind
 
0
Q: Any resource/tutorial for collision detection between a vehicle and some lines?

julesI'm studying 2d Games, like the one below: For a first try, i have only the motocross player and the map (containing lines, no curves) I would like to understand physics behind this (velocity, gravity, ..) The hardest part to understand is the collision with track's lines, can someone point ...

 
12:16 PM
@FlorianMargaine You should probably avoid using absolute values like 300.
If you're clearing the entire canvas, ctx.canvas.width and ctx.canvas.height
 
1
Q: Any resource/tutorial for collision detection between a vehicle and some lines?

julesI'm studying 2d Games, like the one below: For a first try, i have only the motocross player and the map (containing lines, no curves) I would like to understand physics behind this (velocity, gravity, ..) The hardest part to understand is the collision with track's lines, can someone point ...

What do you guys think would be needed?
Know how it'd be without using any libraries?
How would we make something like that?
@Loktar Got some reading material for this?
 
@Amaan can't you look at the source inside that fla to figure out how they're doing it?
 
I'm on a very very slow computer
Don't want to risk opening Adobe Flash
 
12:32 PM
then throw it in a text editor, IIRC the source code in a .fla file is readable in the binary stream
 
Oh, I'll try that then
 
OH THANK GOODNESS
 
@Purmou About the course?
 
there's another community college close by
lol yes :P
but, all seems to be well
if i can get courses at this other college, i'll be good
 
Which courses are you trying for?
 
12:34 PM
in any case, i'm going to call the one that's closer to me later today
@Amaan hopefully an entry-level english, science, or math course
maybe sociology
like i said earlier, anything that falls under the general education requirements
 
We don't get to pick freely here
I'd love to take Psychology
But if I did, I wouldn't be able to take my science subjects
 
@Amaan I copied the code out of the fla for you (I'm on a faster machine): pastebin.com/TMBaBb9Q
 
Thanks, I managed to see it with a text editor
 
@Amaan Psychology would be a nice course too. It's a GE, so I'm good.
my plan is to complete two years worth of college attendance before graduating high school, and then go to a four-year institution right out of high school
so i will only need two years at a four-year institution since my first two years will have been cleared during HS
 
Nice
You'll be able to manage high school with college?
 
12:40 PM
Anyone have any hints to me where I can find a guide on "expandable box" I atm. have it in another jsp file, but they would like it to be under the menu point on a + like thingy...
 
@Amaan I don't think it'll be too difficult, given the nature of my current high school. it's a charter school so the curriculum is very different from public schools in the area.
 
@SimonSarris less nauseating ? codepen.io/dievardump/pen/Jrazo
 
@Amaan yeah one second
^ pretty in depth
 
Loktar That is the one I was looking for yesterday
 
!!/choose "risk playing Fable again" "enjoy post-pizza nap"
@Zirak enjoy post-pizza nap
As you command
 
12:44 PM
@Loktar Thanks!
 
np
@dievardump yeah I just look up n+ collision
and I find it everytime, its from the developers of n+
 
What's n+?
 
@Purmou why do you want to graduate in 2 years instead of 4?
 
graduate college?
 
Thanks
 
12:45 PM
mainly just to see if I can
 
it's really to challenge myself, and i don't do that often enough
 
n+ is really fun
its similiar to super meat boy
the super meatboy devs used it heavily for inspiration
 
Ah
:O Google changed its favicon!
 
@Amaan a while ago, actually
 
12:50 PM
Getting a Bachelors in 2 years sounds really difficult unless you're at a college that's designed to do that
 
@Amaan oh nice, I was going to pass the canvas object, but looks like I don't need, thanks :)
 
@Loktar i hate this game!
 
n+?
its pretty tricky
 
not sure what the name was, but the game in that screenshot
 
RT @stevefaulkner: Updated HTML5 and Canvas 2d context editors drafts from the new editor teams http://lists.w3.org/Archives/Public/public-html/2012Aug/0379.html #HTML5 #W3C
 
12:51 PM
i went absolutely crazy on some levels
 
ah yeah n+ lol
 
@FlorianMargaine Yeah, few people know you can reference back to the canvas with the context object
 
I did the same for super meat boy
 
just like supermeatboy
i'm not built to play games like that i suppose
 
None that understood my last post / none that have any idea?
Basicly, what is that kind of feature called so I can google it?
 
12:53 PM
@Loktar hey, I'm making a snake game with canvas, and I'm about to code the "shift" part. I'm saving the shifts position in an object, do I have to loop through every pixel from current position to last position and check in the object everytime, or is there a better way?
 
I wouldnt mess with pixels at all
just have everything stored in an array
but thats just me I guess
 
what do you mean everything stored in an array?
 
like id have the board as an array
 
and the snake is 1, food is 2, empty is 0
 
12:54 PM
i'd put the whole "map" in an array with key-values and just render that one i think
 
the snake literally represented in an 2 dimensional array
 
ect
 
oh, the whole canvas
 
yeah then you just draw the map from those vals in the array
so everytime you clear the map and redraw
 
what's the fastest way to draw this map?
 
12:55 PM
bunch of fillrects probably
 
oh
yeah, but only fill when it's not empty
 
yeah exactly
/me has never made a snake game actually
 
but thats just how id do it if I ever did :P
 
12:56 PM
i got a flash-one lying around somewhere
 
with lineTo et al
and drawing backwards
 
and i think i did it this way
 
I think it'd be more efficient than redrawing a map array :/
 
well just draw the non empty parts
then its not much overhead at all
 
k
so all the fillRect are one pixel long
 
and it's damn easy to generate maps
 
thats my a* example
but does something similiar
 
@Loktar did i ever tell you, that I truly, truly love you? :D
2
 
@FlorianMargaine fillrects are rectangles so they can be as large as you want so like fillRect(x,y,width,height)
@GNi33 haha
 
12:59 PM
@Loktar yeah, but you get the point: I call fillrect for every "map" in the array
alright, my design isn't good for this kind of stuff
or maybe it is
 
yeah, but you could just fill the whole background one color
and then just use fillrect for the parts that arent the bg
 
having two maps would be nice (one for snake, one for food)
 

« first day (676 days earlier)      last day (4288 days later) »