« first day (678 days earlier)      last day (4286 days later) » 

4:02 PM
Object.defineProperty(window, "div", {
    get: function() {
        return document.createElement("div");
    }
});
isn't that awesome
you just do var a = div;
 
Neat
 
@Esailija ummm
 
maybe make it all caps so it doesn't collide with the popular local variable "div"
 
Our definitions of awesome may be different
 
@Zirak LOL
 
4:04 PM
Zirak Starred
 
@Esailija then it will collide with DIV
 
who would use all caps variable name ever
 
var I_DO_ALL_THE_TIME = TRUE;
 
yeah but like
DIV
window.DIV = "div"
ok that's legit
 
@rlemon AS_DO_I = 42;
 
4:06 PM
how about
elements.div
var a = elements.div
 
yea,
var DIV = document.createElement('div'),
      Div = document.createElement('div'),
      dIV =  document.createElement('div'),
     _div =  document.createElement('div'),
      div = document.createElement('div'),
     DiV =  document.createElement('div'),
     dIv =  document.createElement('div'),
     diV =  document.createElement('div');
 
@Esailija might as well do var a = document.createElement('div');....
@rlemon HA!
 
no you might as well not do that
in case you didn't notice, var a = div is shorter to write and doesn't use strings
 
@rlemon GUNSHOT
+S
 
4:13 PM
http://jsfiddle.net/Y7dcX/3/

Im trying to alert that one "timebox" can have a 0 value in both 2seats and 4seats selects.

This works fine almost, there's one little issue if you select a value in the 2seats in the second "timebox" (the one under the black border) and then select a value in the first "timebox"s 4seats, then press submit -> then it will still give error alert??
 
@rlemon so you're using spaces when you're trolling...
 
@rlemon Y U NO div_ ?
and DIv
You missed a lot.
Not happy.
UNHAPPY
 
If i also fill a value in the first timebox's 2seats it will work
 
hello everyone! is there any good Jquery script what would have row of images, lets say example 5 images. then there is first of the images in big size after that row. and every picture goes to that big place when it's their turn? does anyone know
and the change would happen automatically,for example between 5 sec
 
4:23 PM
@Olli google "jquery image slider"
you'll get plenty of results.
 
@FlorianMargaine you nearly scared me to death
i thought u are already done and i am still messing with my AI bots starting to make love with each other :-|
 
hahaha
I just built the basic architecture :p
I don't want to start coding till next week :)
 
@Florian is there any simple available ?
 
@FlorianMargaine i am messing with 2 things , the three.css's lightning [ yeah stole the name ] and AI
my AI ( coded in C atm ) is just crazy :-/
they are like will see each other walk till they get close collide go back walk close go back walk close go back walk close
 
4:27 PM
// and shoot while walking :-(
 
Who watch the Norvegian packet opening ?
 
Norwegian?
 
@dievardump what you mean
 
Maybe with a w
 
As in "west of Sweden?"
 
4:30 PM
do you mean some news related Norway today?
 
YEs
 
@dievardump hmm simple CSS transforms
but brilliant effect
 
You know, there is a packet, in a museum with an instruction saying " Can be opened in 2012 ", almost 100 years after it was scelled.
 
My parents are Norwegian and I don't know what you mean by "packet opening"
 
aa, do you mean that
 
4:31 PM
Oh... A time-capsule.
 
They are opening it right now
" the Norvegian packet opening ?"
Yes it's what I meant
 
vgtv.no/#!id=55544 <- vgtv direkte NÅ
 
Hopefully more interesting than Al Capone's Vault.
 
they are speaking some crazy :D
 
well right now... after all the effing effects they decided to do
Seriously it's boring
 
4:33 PM
that pic quality is very bad
but need to say, if same thing in finland, the picture quality would be the same-not better..
@dievardump do you know when they are gonna open the package
I could watch it then
 
If you think that's boring you should try Norwegian cooking.
 
finlande troll ?
They said 6pm
So 35minutes ago...
Oh no in 25 minutes
 
Well I suppose lutefisk is exciting, but in a really bad way.
 
ok
 
oh no
 
4:35 PM
that is crazy what they are doing :P
 
it's now
 
SO live reporting :D
 
right now
 
WATCH IT NOW !!1
 
Wouldn't it be awesome if it was the world's first troll face?
 
4:36 PM
Yeah
I hope it's something like that
 
the package?
 
But i'm pretty sure they did a lot of "scanning" before
 
Hi, I'm trying to learn the rudiments of structuring code in a sane way, and I am encountering (I think) the inevitable problems folks run into with Javascript scoping. I'm trying to set up a callback function after an ajax call that resets save state.

my first attempt was to pass in object.object.function, but that didn't work. on a whim I set up my function to return a function (object.object.function()) that did what i want, and that fixed it.

my question is why did this work? i put the working and the broken code snippet here: http://pastebin.com/WCELJmFf
 
they should speak English också
 
To be sure nothing will explode
 
4:37 PM
now hearing english :D
 
I don't have sound :(
 
you should...
 
@canisrufus That looks like a jquery problem unless there's a callback property I didn't know about.
 
double package.
 
a book ?
a head ?
 
4:38 PM
Try success for callback
Also json should be 'json'
 
" you should open this one in 2112 " mouhahahaha
 
some cloth?
letter!
 
you mean, success:function rather than callback:function?
 
Oh sorry, NM.
^ on the JSON.
 
okay.
 
4:39 PM
Yeah, try success. I don't think there is a general callback property.
 
MLS
any idea to show data in tabular form with left most column and header row fixed, just like spreadsheet? jsfiddle.net/abaf/mu4Wn/6
 
JQ ajax has success, error, complete (fires after success or error)
 
he doesn't read the letter ?
 
just some boring clothes :D
 
Boring. No decaying parts? No doomdsday-device blueprints?
 
4:40 PM
Y U NO READ ?
 
welllll, the first example works
 
Yo all
Google is damn epic thing ... man
 
Haha. Norske Al Capone's Vault.
 
this is just incredible!
 
just some boring letters :P
 
4:40 PM
@dievardump u said something regarding maps via google maps
 
At least I didn't miss Halloween over it.
 
are u gonna make it 3d ?
i mean the 3dish ?
 
will forget that stream now, and read more from news later
 
@ErikReppen Well, right you are. Success works.
thank you.
 
I was expecting at least 1 dead racoon. You Norwegians have no pride.
 
4:45 PM
@Zirak On the matter of pride: google.com/…
Cripes but they/we-ish-I-guess like their flag
 
@Abhishek coded in C?
 
@FlorianMargaine old code (x
that i dont even feel like readin anymore , well i already started re-writing the AI
with waypoints and calculating dynamic "Danger" , "stealth" , "lag" at em
if danger === 100 ... fuck i aint going there!
 
:-)
dont give that to me (x
we had fun with it yesterday
 
You took it?
I didn't see you take it
 
4:50 PM
@ErikReppen Because it's their constitution-signing day. Every country celebrates those things with a giant display of flags.
 
@Abhishek What was your actual score?
 
this
i can go faster with senseful words :-(
 
Actual score? :p
 
its actual :3
 
Nice
 
4:53 PM
Alright there is a reason why u dont feeel its actual and i know that because u havent seen me type fast but thats not true look at this sentence i am typing its completely random and has no sense whatso ever but i can type it faster because there is a logic b/w those words
 
@Abhishek not even 100?
 
the test is actually wrong
@FlorianMargaine i am slow , with meds inside!
 
yeah, sure.
 
No, I thought you'd type slower because you don't actually type properly all the time
 
dear god sketchup is taking forever to download
 
4:54 PM
I am slow, with marijuana inside!
 
[ i hope u guys wont mind me using it :? ]
 
who cares
 
kinda unfares
for sprites
 
my "players" and "enemies" will just be dots though
did you mean unfair?
 
oh gawd
thats gonna be FUN!
Mine are pseudo realistic stuff
rendered as sprites and presented with (yes u guessed it right CSS!)
 
@canisrufus Mario teaches typing?
 
kamehamehaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
@Abhishek lol
 
phun intended
@FlorianMargaine okay as u are keeping ur dots , me will also use simple css only soldiers
 
@amaan yeah it's a typing game my parents made me do when i was younger. instead of getting to play mario, mario jumps and gets the coins whenever you type the right words
not nearly as fun as playing mario was
 
5:00 PM
Oh, an educational game
 
ya, exactly
 
I'm actually making a game for an educational suite
I got one of the bonus games :D
Just there for fun
 
sweet
what kinda game?
 
OK
 
type when u hear that
it will boost ur typing speed by 29%
 
5:03 PM
@canisrufus Tower Defense
 
heya
 
@canisrufus something like this? phoboslab.org/ztype
 
@Abhishek I start pausing to make my keyboard click in tune :p
 
@canisrufus start in expert mode or you'll be bored.
 
@FlorianMargaine similar, but that game looks awesome
mario teaches typing, not so much
 
5:07 PM
^^
 
it was totally linear, it just beeped at you when you hit a wrong button
 
@ErikReppen ?
 
@Amaan oh xD
 
Anyone here played Typing of the Dead?
 
5:09 PM
most fun way to improve typing I've ever used
 
my gun!
 
ok so i need an algorithm to produce arrays like this for a 'terrain map'
[1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1],
[1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1],
[1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1],
[1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1],
[1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1],
[1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1],
where there are 1's along the outside (1 === wall) and some floating 1's clumped in the middle.
I don't need a copy-paste solution, just help with the concept.
 
I think you should create a string
Math.random() * maxWallsOnLeft;
Math.random() * maxWallsOnRight;
Fill in the 0's in the middle while throwing in a 1 if Math.random() < 0.2 or something
 
@rlemon I have an idea.
!!/nudge 60m "Give up"
@Zirak Nudge registered.
 
Then split the string later
 
5:14 PM
@Amaan the idea being that I could just generate a new row based off the last row presented
 
Does every row have to be similar to the previous one?
 
have the algorithm look at neighbors
 
@Amaan yes. look how the arrays look above.
 
i.e. if i-1 === i && i === i+1 than j = i
(i being the index of the previous row, and j being the same index of the current row)
throw in a little randomization
 
Something like that? That'd just be for the left side
 
5:22 PM
This is what I have now.
half assed
 
It looks great.
 
Well, at least the beginning was.
 
The beginning is hard-coded, right?
 
@rlemon Looks good, a bit jumpy now and then tho.
 
5:24 PM
beginning is hard coded then the mutation begins
 
Well some places the black takes 100% of a row.
 
2 mins ago, by rlemon
it doesn't work
 
!!/todo add "Try rlemon's map thing" "Machine Learning course" "A* search algorithm" "Add health bar to game"
 
@Amaan Item(s) added.
 
jsfiddle.net/rlemon/M77Du/17 everything looks better with colour
 
5:27 PM
MY EYES !! IT BURNS !!
 
it looks like an atari game
 
/* RULES:
- the walls must exist
- there must always be a path to continue
- the path must always be 2x the width of the player (this will be faked for now)

Now I need to write a function to take the previous row, and based off of it make a new row following these rules
 
@Abhishek Sorry I was blocked for a simple f**k...
I'm not sure I will participate. But GMap API is easy to custom
I would like to try, maybe.
 
@dievardump lol
 
Buit I'm really not intto shoot games.
 
5:31 PM
it'd be cool to see (clap)
@IvoWetzel , would u take part ?
 
@rlemon I can't think right now, and since you just wanted a concept: Partition each row into blocks (about 4-5 items, where the first and last ones overlap with the previous and next blocks, respectively.) But, treat the first and last block as walls (they're instantly 1s.) For any other block, each cell in it has a (n1 - n0)*p chance to be a 1, where n1 is the number of 1s in the block, n0 is the number of 0s in the block, and p is a probability, based on the partition size.
 
seems complex
 
Treating each item individually your way has the side-effect of everything becoming a wall given a finite execution time, since 0s can become 1s but not the other way around.
Actually, without finer tweaking of the probability, then my method will fall victim to the same thing
I still have some time til the hour is passed...
Actually, what was I afraid of? Since walls are already defined, there should be a counter-algorithm for generating 0s.
It's a game of probabilities
 
5:55 PM
@FlorianMargaine Is this where you saw that typing game?
Okay, probably not
I just saw the game in the picture and thought it might have been
 

« first day (678 days earlier)      last day (4286 days later) »