« first day (793 days earlier)      last day (4157 days later) » 

7:01 PM
mixing jquery and prototype everywhere...
 
poopsoup?
 
Hi everyone!
 
We meet again. :D
 
deep defaults to false, right?
:P
 
7:05 PM
I have come to trouble you again (ish)                myWindow=window.open("","","width=200,height=100");
           myWindow.eval(c)
c is an input from a txtarea, how do i make div in the new window?
 
Dammit. Strictly typed languages are my bane.
 
myWindow.document.body.appendChild(document.createElement("div"))
or thereabouts
also, what are you expecting to do with c?
 
child?
run it.
 
@RyanKinal Haskell is well known for the fact that when you got the types right, the code is mostly right too. You can't make mistakes because it won't let you
 
and running it does what
 
7:07 PM
Wait, scratch that... statically typed languages are my bane.
 
here: deepschool.jaberwokkee.kodingen.com/~/dupstryit.htm try entering document.write("trollllll")
 
@copy Still not learning Haskell, unfortunately... working with VB.
 
@copy I hate that
 
@RyanKinal Well, then it's your own fault
 
I like mistakes. I hate it when they involve (Int, Int, Int) is not (Int, Int, Integer)
 
7:09 PM
@canon, can you see both txtareas? well the top runs js, i want the bottom one to display html in a new window
 
@copy Yeah, pretty much
 
Okay C++ wasnt that bad
 
@Abhishek the operating word being That
 
don't go for haskell -- it sucks
 
@Zirak Well, the numbers types are somehow fucked up, but I'd rather have 5 number types that all make sense in one way or another, than one number type that does everything
 
7:10 PM
@deep well re-writing & refactoring ugly C++ code into C++0x11 awesomeness
 
@canon?
 
@FlorianMargaine But... I want to be forced to learn functional programming.
 
pure functional language just isn't good for real-world
 
@FlorianMargaine C++ > Haskell --
 
@RyanKinal ah :)
that's another matter
if you're used to js, you know a lot about it already though
 
7:11 PM
Yeah, that's probably true.
 
@canon ? @canon ? @caaaaaaanon!
 
But I figure my OO-fu is pretty good, might as well try some functional-fu.
 
the deep is a lie!
 
What?
 
heh :)
or you might mix both: common lisp.
 
7:11 PM
I know your tricks deep AKA cake
 
cake?
 
functional + object + meta programming
 
@FlorianMargaine Or I might mix both: JavaScript
 
:? your avatar?
 
no no really
 
7:12 PM
the cake is a lie.. portal reference
 
Oh.
Oh again
 
@RyanKinal js is not classical inheritance as you know it
common lisp has overloaded methods, for example
and you can generate those.
 
I realize that. And I <3 prototypal inheritance. I really really do.
 
@Loktar i c11 what u did there
 
:P
 
7:13 PM
Also, I'm getting an education in overloaded methods through VB
 
this is just funny. :
while (true)
{
window.alert("Trololololololololololololololol")
}
 
yeah it was a bit weak I guess
 
@deep Oh yeah, friggin' hi-larious.
 
@deep Not in modern browsers.
 
Yah :P
 
7:13 PM
^ luckily chrome has nice options to deal with that
 
(Admittedly, I was up to similar tricks in my younger days... like... when I was 13)
 
lol
yeah same here
 
If your school still runs IE 8 [:( ] troll time and i am thirteen.
 
\o/
 
@RyanKinal when i was 13 i used scratch :-( and C
 
7:14 PM
Hooray!
 
it had nothing like that
 
I made some qbasic screen savers that mimiced our screen savers.
 
@Abhishek Still do.
 
and they wouldnt turn off, librarians thought I "hacked" the pc's
pulled me out of class lol
 
@deep 2.0 has something like mouselock
 
7:14 PM
rofl
 
I was like umm just restart it?
 
atleast andreas was talking about that
@Loktar i have got something for u
 
I remember one time I was using one of the big blue iMacs in the library. Whatever I was doing was apparently too much for the computer, and I had to restart it five times in as many minutes. The librarian told me I couldn't use it any more.
 
haha
 
This is soo good. Its where my avatar comes from. dropbox.com/s/jkkvr6vi28hqjic/cake.jar
LOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOL
 
7:16 PM
Ugh. .jar
 
Oh well.
 
NOT CLICKING THANKS
 
lol... umm
yeah
 
Anyone clicked it?
 
7:17 PM
Look before you leap, that's what I always say.
 
@Abhishek is that all with css?
 
yes
try pressing c and shift + c
 
It does nothing for me for some reason
 
oops
 
same
 
7:18 PM
wrong version
fuck my chrome (xD)
 
Got stuck after a shift+C
 
lol nice
 
@AmaanCheval i gae it up
i cant write the game logic of it
 
yeah mine gets stuck too
 
too rusty now :-/
 
7:19 PM
cool
 
Haha, you can
 
pretty cool though
 
if somebody wants to collaborate
 
But it'd probably take a while
Looks real good now
 
bleh then i can write the whole CSS part of it ;-)
 
7:20 PM
50% there with my code, it just wont write :( anyone mind helping?
<script>
 var executeuserhtml = function()
           {
               var c = txtbx.value
               var frame = document.getElementById("window")
               myWindow=window.open("","","width=200,height=100");
               myWindow.document.body.appendChild(document.createElement("div"))

           }
        </script>
       <textarea id="txtbx" rows="35" cols="75"> Enter code here </textarea><br />
        <button onClick="executeuserhtml()">Execute user code</button>
 
Good boy!
 
What? formatting?
 
Yeah
 
just eval it
 
on it now.
 
7:22 PM
eval(txtbx.value)
 
It's HTML the user is entering
 
well.. thats pretty confusing then
execute html
 
Yay... White screen :/
 
so I made the assumption of JS
 
<script>
 var executeuserhtml = function()
           {
               var c = txtbx.value
               var frame = document.getElementById("window")
               myWindow=window.open("","","width=200,height=100");
               myWindow.document.body.appendChild(document.createElement("div"))
               myWindow.eval(c)
           }
        </script>
       <textarea id="txtbx" rows="35" cols="75"> Enter code here </textarea><br />
        <button onClick="executeuserhtml()">Execute user code</button>
 
7:23 PM
What do you mean "execute HTML"? You want to display whatever they enter?
 
Yh
how do i give the div an id?
 
element.id = "blah";
element.setAttribute('id','blah');
<element id="blah"> </div>
 
@Abhishek How's college and everything going?
 
@AmaanCheval college was awesometoday
 
Ooh, I see you've answered a few questions :p Up to 913 rep now, huh? :p
 
7:26 PM
sat the whole day at canteen
went there after months :P
 
Haha, that's pretty much what I do everyday
 
@AmaanCheval ^^ oh yes i am awesome
 
Attend 1 out of 5 lectures
And leave before the practicals even start
 
tomorrow have an interview in morning
 
It's great now
 
7:27 PM
and a brain scan due >_<
 
Oh, with Wikipedia?
 
nods
 
Brain scan? For what?
slaps
 
That insane illusion
its lasted for 3 days
 
Yaaooza
 
7:27 PM
:P
 
Oh, @Loktar how much would you charge hourly to make an HTML5 game?
I remember you saying $80 once if you freelanced :p
@Abhishek Hope your brain is okay and shit. Just keep the crazy stuff in for the interview :p
 
@AmaanCheval hah i aint that weak
i am still coding :P
 
I know, just kidding
 
@AmaanCheval idk probably
have never made one for profit
or for anyone else for that matter
just at work, but Im salary
 
Ah. This guy offered two options. Either an hourly pay of $10, or a fixed pay per game of $275. I took hourly
But now that I realize it, the fixed per game may make me more money because these games are pretty simple and code is easy to reuse. DAMN ME WRITING CODE I CAN USE AGAIN!
:P
 
7:35 PM
@AmaanCheval you can write code "slowly" .. if u are greedy but yeah the first option was kinda better
 
thats really low man
id charge more than that
 
@Loktar I know, I said $50
 
Has hit a brick wall. still has code which doesnt work, as above, anyone mind getting it working?
 
But right now, I'm taking it anyway
 
Does playing EVE Online count as studying astronomy? Meh, it counts for me.
 
7:36 PM
^ that would surely count
 
@Abhishek Not really. $275 comes up to 5 days of work if I work 5 and a half hours each day. Worked double that for my first game
 
damn
 
Uhm, yeah. :D
 
thats low
@OctavianDamiean is that a screenshot from the game I linked?
lol i didnt know people had crazy mods for it now
 
7:37 PM
:D
 
its a pretty accurate sim
 
Yup, it is.
 
its pretty neat
 
@Loktar Yeah. Previous contract was a lot more
 
So is EVE Online. fires up EVE Online
 
7:38 PM
do you do all the art as well?
 
@Loktar No no
Only programming
 
ah ok
 
He gets all the art and sounds and all
I suck at doing artwork :p
 
where is he distributing the games?
 
I don't know yet. I know one of the places is minijuegos.com
 
7:41 PM
dude.
sometimes they get like 2-3k per game
just throwing that out there
you should find an artist
 
I know! My last contract was for $3K
 
and strike out on your own
nice
thats a fair price
depending on the type of game of course
 
@FlorianMargaine youtube.com/watch?v=bXlHHEQCtuQ was this in manga
 
Sort of simple Tower Defense game
Tile based
Pretty simple, actually
@Loktar Where would I distribute?
 
bleh I need to make more games..
 
7:42 PM
Yeah, had a look there
 
theres also fgl.com not 100% sure if they support html5 yet
 
HELP!!!
SOmeone please!
 
we are helping
 
Hmm. Okay, you're starting to convince me now
@Loktar How much would be a fair rate, according to you?
 
also you can talk to the portals directly
 
7:43 PM
@Loktar they can't possibly be serious, they're using a serif font!
 
@AmaanCheval I mean it definitely depends on the type of game but I would probably never charge lower than $500
which site @SimonSarris
 
@SimonSarris ah yeah.. idk thats the only one I know of so far that supports html5 games
people are actually making a bit of money
 
I only know that Richard Dewey puts his games there :p
(photonstorm on Twitter)
 
/me thinks.. theres another place
play.io?
 
7:45 PM
clay.io?
 
clay.io yeah
 
Yeah
Damn, I forgot!
 
they support in app purchases too
 
Clay.io's community manager's asked me to put Swarm on there thrice
 
yeah he emailed me directly too
 
7:46 PM
I just keep forgetting to add some freaking play buttons to the game
 
he liked my match game
 
Yeah
Robert Leung, right?
 
I should try and make a simple game in 3 days
yeah that was him
 
I still wanna finish love basket :(
 
the puzzle game
 
7:46 PM
yes
 
I still want to finish Swarm and Tiny Wings :/
It's hard to not lose steam after you've got the main parts done
Making the UI and all is boring work -.-
 
I knoweth that feel
 
yeah
I just have a ton of ideas
and ill get the fun part done on one.. and then want to do the fun part on another
 
Yeah!
 
8:02 PM
var c = txtbx.value
               var frame = document.getElementById("window")
               myWindow=window.open("","","width=200,height=100");
               myWindow.document.body.appendChild(document.createElement("div"))
               myWindow.eval(c)
how do i get this to start scripts in the new window
 
8:24 PM
guys , i need a framework-independent lightbox clone
any suggestions ?
i not looking towards writing it myself =/
 
Google it.
 
OH BURN
 
You can bet he did.
 
@tereško I thought there was a frameworkless version of lightbox itself...?
 
I think everyone who writes a plugin that uses a framework should also write a dependent free vs, or at least try to.
 
8:34 PM
@Loktar I think frameworks need to just stop with the "all-inclusive" mindset
 
@tereško yes that haha
 
@tereško dude, it's like 3 lines of js
 
@FlorianMargaine not in the form that i need it =/
 
and some more of css
 
8:36 PM
@tereško well, that would be great if it was used on the same scale as jQuery
 
oh.
what features do you need?
 
not that i think about it , i will actually end up writing it myself
first of all , i need you basic image loading/preloading
 
@tereško actually nevermind, those are all independent
 
oh frameworks nm
 
the images up to 2MB jpeg , which means that i will need some backend support for making 720p thumbs , then there is also the problem that the list of images comes from json response
 
8:37 PM
I thought you said plugins
 
I was kind of meaning if jQuery was just an absolute base. Maybe nothing more than a slightly more convenient query selector
 
Is it ok if I reask a question I still havent got a clear answer on my question post board. I am still new and learning the ropes in this community.
 
yeah I agree
 
all other features being extentions
 
@twiz query selector is already part of JS
 
8:39 PM
@tereško yes, but $() is "slightly more convenient".... haha
 
making a "shortcut" does not require 20KB+ lib
 
@tereško imgs = ['url1', 'url2']; imgs.forEach(function(img) { var i = document.createElement('img'); i.src = img; i.hidden = true; i.onload = function() { /* do something */ }; document.body.appendChild(i); });
 
I love qsa idc what anyone says!
 
@tereško you DEFINITELY didn't read what I said... ha
 
@twiz Sizzle?
 
8:41 PM
@deep take it to the DMV...
 
@FlorianMargaine yea-no
 
Asking a question from this answer stackoverflow.com/questions/13918533/… Um, if the JSON is already stored in a variable, is $.getJSON needed ?the
 
well, quick shit :p
now I'm leaving
cya people
 
see ya
 
@Zirak well if sizzle had a shit-ton of extensions that would make all of jQuerys features separate options
if that makes sense...
I'm really just saying jQuery shouldn't include all of its functionality in one file
 
8:44 PM
0
Q: Better way to return data via AJAX?

AaronLet's say I have three files: a page that is used for searching data called search, a file that handles requests called controller, and a file that has functions which the controller calls based on what POST parameter is passed. From the search page, I post some data and specify my action (search...

0
Q: How to get IE to open javascript as text

PeteI am running IE 9. Up until last week, sometimes, if I would put the URL of a javascript in the address bar, it woudl show the javascript as text in the browser window. Now when I do that, it wants to download the javascript. How can I revert it to the previous handling? This is annoying since...

 
You guys seen this?
(Sorry about the triple ping!)
 
idk wtf is going on in it
but.. idk that does seem really simple
 
Yeah, it's the most basic thing I've ever seen
The other one I made was more complex, though. Not much more
 
lol well idk man
 
And I'm not supposed to talk about it, so shhhh, I didn't show you that link :p
 
8:52 PM
I guess maybe $200 or $250 if I didnt have to do the art
thats crazy simple
 
I know! And it's for a client
 
^ lol that is badass
 
That's what's crazy
 
Holy shit, that's awesome!
 
8:53 PM
@AmaanCheval yeah I guess you didnt charge too little
I mean that could be done in like a day or 2
my problem is art.. always effing art
I spend too much time trying to make my shite art look presentable
 
My plan was to look for an aspiring artist and get him / her to make the art for games, and share a percentage of the profits or something
 
man I should look for some html5 game jobs
 
@AmaanCheval so is it available as an app on android, or is it just a website?
 
@AmaanCheval yeah thats a good idea
 
@twiz Don't know. I only watched the video demo
@Loktar I saw a posting for HTML5 game devs in NYC. Not for you, right?
 
8:56 PM
no :?
I live in the midwest
 
there are apparently apps called "Fastbook" but I don't think its the same one...
@Loktar no offense.... but WHY? haha
 
@twiz haha just where Im from
 
Hahaha
 
I grew up in Michigan, now I live in Nebraska
Air Force brought me out here
I still work for the gov
 
8:58 PM
Oh ok, that kind of makes sense then... I still wouldn't want to live in Nebraska though. haha
 
where are you at?
probably somewhere warm I imagine
 

« first day (793 days earlier)      last day (4157 days later) »