« first day (901 days earlier)      last day (4049 days later) » 

user2157210
9:00 PM
amazing for soul songs
 
@rlemon nope, that's just raping copy's
:P
 
@BenjaminGruenbaum dude, everything is better on a prototype.
 
@Nexxpresso not really into speakers :P
 
I thought you were a ninja rockstar!?
 
Don't use strings that consist of "1" and "0", that makes me sad :(
 
user2157210
9:00 PM
@BenjaminGruenbaum meh
 
user2157210
meh
 
@rlemon dude, everything is vetter in a function
 
I do not know of this 'vetter'
eddie?
 
Better. Damn phone not autocorrecting me.
 
@copy You don't get bits either way. I think that a 0/1 character might actually be 1 byte where a number is a double :P
 
9:01 PM
@FlorianMargaine lol
 
it is in a function, the function is just placed in the Number prototype ;)
pedantics ftw
 
But I don't like strings for numbers either :P
 
function deStringifyNumber(strN) {
    return +strN;
};
so win
 
the best
 
No, it's a method
Pedantics ftw :P
 
9:02 PM
asf
 
all methods are functions, but not all functions are methods.
 
String.prototype.toNumber = function(){
    return +this;
}
 
Pedantics FTW!
 
@FlorianMargaine it can be a method and a function
 
@BenjaminGruenbaum 2 bytes and probably length
 
9:03 PM
Really? toNumber?
 
lol
 
toFloat and toInteger man
 
Are we in java room?
 
what about types?!
 
9:04 PM
String.prototype.toFloat = function() { return parseFloat(this); }
String.prototype.toInt = function() { return parseInt(this, 10); }
 
@FlorianMargaine (int) NumberConvertorFactory.getNumberConverter("Integer").convert("123")
 
@rlemon Too verbose.
 
you sir, can really never ever be too verbose while describing programming things to another person in the language of their choosing via a chat message.
 
Word.
 
@rlemon I'm not following, could you elaborate?
 
9:06 PM
var temp = String;
String = Number;
Number = temp;
 
thats better
 
@BenjaminGruenbaum [Number, String] = [String, Number]
 
window.document = window; // suckers.
 
@copy The future has much in store :P
 
Chromium, Y U NO HURRY UP
 
9:07 PM
@copy You can turn on most of the v8 experimental stuff with flags in node.js , that's pretty fun
 
v8 vs spidermonkey?
!!/google v8 vs spidermonkey
 
user2157210
depends on the v8
 
user2157210
i mean on a straight road id say the v8
 
user2157210
but in the jungle
 
9:10 PM
I like v8 because it has readable source code. Then again SpiderMonkey is also very interesting
 
how do i denote binary? i.e hex is 0x000
 
The lion sleeps tonight
@eazimmerman There's no special syntax for binary in js.
 
oh, okay
 
aaaieeeeeeeeeeEeeeEeeee
 
Only decimal, octal and hexadecimal.
 
9:11 PM
@eazimmerman You convert to hex in your head and then write it as hex
 
Also, octal is horrible
Just use Hex, it's easier
Every 4 binary digits will be an hex digit
 
coffeescript supports binary literals
 
That's... pointless
 
Why don't you just marry cfs!?
GO ON, SEE IF I CARE
 
MAYBE I WILL
 
9:12 PM
@Zirak Very solid retort.
 
FINE. After 17 years of poking your fat ass off the couch every single night, you just want to walk off with that slut of yours and leave me alone!
2
 
!!> parseInt(1111111,2)
 
@BenjaminGruenbaum 127
 
interesting.
 
Does expecting the unexpected make the unexpected expected?
 
9:21 PM
not one bit
 
Yes. Therefore, there is no longer any reason to expect the unexpected. Nothing is left unexpected.
 
where can i ask questions that are informal with no code or anything?
i dont want to get bad rep lol
 
a confessional
 
Does anyone know if it's possible to take an array of, for example, numbers and use it during the instantiation of a class?
 
Does anybody want to play a game? Try this: copy.sh/iw (criticism and hate are welcome)
 
9:25 PM
how do you make an animation of something on a webpage?
 
oh wtf sound
 
The collision system is bad
 
@copy bad ><
do not like sound
 
@copy: spikes on the elevated platforms?!
 
Press m to mute
 
9:26 PM
@ElliotB. yes you can do that
 
@ThiefMaster :-P
 
i want to make a glass tipping toward the person
 
and the music is annoying - i'd like to be able to mute only the music but keep soundfx though
 
@AmaanCheval huh?
 
user2157210
@copy make me fucking replay on space
 
9:26 PM
@copy I can't even land on the platform
 
Just fall through
 
^ that's as far as i can get, as you can see I don't know where to put instParams
 
Oh, spikes showed up after I died
 
I'm guessing it's going to involve a .apply or something
but can't find any examples
 
9:27 PM
@ThiefMaster Okay, this isn't the final music anyways
 
@copy I just made it to the second level in my first try, too easy.
 
Might be my computer, but it lags a bit
 
@david does it make sense what I'm trying to do from that fiddle?
 
And I don't know if this is supposed to happen. All the platforms spawn spikes if I land on them
 
@copy some 8bit stuff would probably fit
 
9:28 PM
@AmaanCheval Does it take a lot of cpu, or just lag when you jump?
 
When I jump
 
something like that maybe :P
 
What does the "Show invisible elements" checkbox do?
 
@ElliotB. that fiddle made me cry a little
 
@AmaanCheval Nothing
 
9:29 PM
If you're going to use namespaces use objects not arrays >_>
 
user2157210
@AmaanCheval just double jump
 
@copy Haha
 
var namespace = [];
namespace.MyClass = function(a,b,c) {
 
@ThiefMaster Bookmarked
 
@Nexxpresso Ah, didn't even try that
 
9:30 PM
@david why?
 
@AmaanCheval I have level editor functionality, but disabled it for you to try the game
 
ok a typo
var namespace = {};
there ya go
 
Why are there spikes on the first lower platforms, but they aren't shown?
 
@AmaanCheval To make it harder. They're traps.
 
9:31 PM
If you want to make an object from an array you can do this:
 
user2157210
@AmaanCheval because thats the game ..
 
var MyClass = function(arr) {
    this.a = arr[0];
    this.b = arr[1];
    this.c = arr[2];
};
 
The lag makes it so much harder :/
 
lol
 
@david horrible
 
9:31 PM
of course I could do that, but you must understand the very simplified fiddle i've provided
is not in the context of my actual code problem
I'm writing a component controller
 
@AmaanCheval Reload (without cache) and try again
 
I don't want each component to turn all their arguments into a single array
err, rather all their parameters into a single array parameter
 
@copy everything in the global namespace gets game injected :P
 
@copy Okay, done. Still lags. Must be the number of tabs I have open
 
no one codes like that, it'd be confusing for anyone to invoke the components or debug errors
 
9:33 PM
@copy can override it and get the game instance
 
@ElliotB. then do new MyClass(arr[0], arr[1], arr[2]);?
 
@copy Seems pretty cool, though. How are you storing level maps?
 
@AmaanCheval Look at copy.sh/iw/level1.js (especially the bottom part)
@BenjaminGruenbaum huh?
 
@BenjaminGruenbaum you're horrible
 
user2157210
lol
 
user2157210
9:34 PM
my gf just called me
 
@david why not do new MyClass(arr) and have the function iterate the array?
 
@david it's a component controller so the number of parameters can be variable
 
user2157210
she wants to break up because my ex has more likes from me on her pictures than my current gf ..
 
@copy Trying to figure out ways to cheat, of course...
 
@copy The comments are awesome
 
9:35 PM
the class names and default arguments are passed in to the controller via a config
so it's all completely dynamic
this should make a bit more sense: jsfiddle.net/K9fSk/2
 
@BenjaminGruenbaum That shouldn't be too hard
 
i had another typo in the method
 
So what you're saying is the fiddle you linked doesn't demonstrate the problem, and the question you asked isn't the one you want answered? o_O
 
incorrect--it demonstrates the problem, but not the context
so when you suggested a viable workaround
that indeed fixed the problem
i said it wouldn't work because your solution assumed a different context
 
@copy Not saying it is, just having fun :) The game looks nice, pretty authentic
 
9:40 PM
what is a good target framerate?
 
60. But 30 is decent too
 
what about 120? or is that overkill?
 
Overkill. More like pointless
 
9:42 PM
@ElliotB. Well then give me a fiddle that demonstrates both the problem and the context, because I can't see why you wouldn't want to just pass the array in
 
@eazimmerman Human eyes can't see 120 fps
 
Exactly
Above 60, it doesn't make much of a difference, unless you're testing for subliminal messages or something
 
User accepts similar answer that is generally just a quote from a link that I linked to in my answer as well, my answer was first :/
 
You should probably include subliminal messages. All good games do.
 
9:44 PM
I don't think so.
 
No, just let it go
 
@BenjaminGruenbaum You could cry... that might help.
 
@david ahh i finally found a solution: stackoverflow.com/questions/1606797/…
 
haha j/k
 
that explains what im talking about
 
9:45 PM
Challenge: Given a linked list, find the middle node without iterating the entire list more than once. (for even length lists, either "middle" works).
 
@Zirak That's one of the oldest trick in the book, (well, detecting if a list has a circle cycle, it's the same approach though)
 
@RyanKinal you around?
doood
 
@BenjaminGruenbaum It's a fun riddle
 
realized it has your addy .... my bad.
 
Yeah, it is a fun riddle :)
 
9:46 PM
@RyanKinal nice quality stickers too!
 
Most intro to cs exams have one variation of it or another
 
also, your hand writing is as bad as mine :)
 
Hey! I did that when I was trying to learn about algorithms
It was fun
 
@RyanKinal Your "O" is bizarre
 
No, he meant RLeman.
 
9:47 PM
If I hadn't known it was Ontario before reading...
 
// like this?
middle = node

while(node != last)
{
    middle = middle.next;
    node = node.next;

    if(node == last)
        break;

    node = node.next;
}
 
1
Q: DRY code vs. Readable code?

Hiro ProtagonistI run into this often. I have two functions very similar, that if I combine would be more DRY but if I didn't would be easier to read and make more sense. In this case I have two implementations of fade, one using setInterval and one using setTimeout. How do I not get stuck deciding between Dr...

 
!!/mustache Zirak
 
9:49 PM
@copy Yep!
 
there... no private information :) @RyanKinal
 
That is so much better than my handwriting...
 
user2157210
5
 
user2157210
a
 
user2157210
W
 
user2157210
9:50 PM
g
 
user2157210
y
 
@Zirak Did you try my game? copy.sh/iw
 
mine is worse but it's good to know other programmers have bad writing as well
@copy that is the most annoyingly hard game I've played in a while
can you even pass it?
 
@copy Nice!
 
@rlemon Sure
@rlemon Challenge accepted?
 
9:52 PM
@copy Can you pass the second level?
 
@BadgerGirl No, it's still impossible
 
@copy How far can you go?
 
haha that game is raping my mind
 
user2157210
@rlemon that handwriting looks perfect
 
user2157210
compared to mine
 
9:54 PM
I hate these sort of question asking users ... stackoverflow.com/questions/15821835/…
I don't want to debug your code, I don't mind answering your specific question
 
user986408
any sublime lovers here?
 
 
most of us use sublime from time to time
 
The band or the editor.... ha
well yes either way
 
user986408
@copy can't remember that scene or these bubbles .. is this from iwbtg 1 ?
@BenjaminGruenbaum do you know if there is a autocomplete for html attributes, it's only working for tags atm
 
9:59 PM
@skripted No, this is from copy.sh/iw :)
 
@skripted codeintel not working?
 
user986408
checking out right now :)
 
@copy You are crazy. You were even fast enough to make the screenshot.
 
I'm in the MySQL room but unfortunately no-one else is! Can anyone recommend a good network or site to ask advice on Database design?
 
user2157210
ask here
 
10:06 PM
@James dba.stackexchange ?
 
user986408
@BenjaminGruenbaum i'm obviously doing something wrong here .. just tried codeintel but when trying to insert onclick by writing only "on" and doing tab/ctrl+space it doesnt display anything ..
 
@copy Y U COME AND LEAVE IMMEDIATELY :(((
 
Thanks, looking at that now. Do you have build up rep in every stack exchange?
 
@James if you have enough in StackOverflow, you start with 101 in other SE sites
 
fuck it. died like 200 times.
made it to the middle platform a handful of times only to run off
screw you copy.
i hate you and your damn game!
cries in a corner
 
10:08 PM
@BenjaminGruenbaum I don't do databases often
@rlemon That reminds me to add a death counter. Thanks!
 
@BenjaminGruenbaum That's great, thanks.
 
!!/choose learn play drink
 
@rlemon play
 
!!/choose "learn and drink" "drink and play" "play sober" "learn sober" "get drunk and netflix" "netflix sober" "get drunk and laugh at your cat"
 
@rlemon netflix sober
 
10:10 PM
@Nexxpresso I'm trying to put together a database that I think will end up being fairly massive and complex, and I want to get some advise about how to approach it rather than diving head first!
 
@jAndy , @rlemon Just lost the game
 
user986408
what is this .. some web version of iwbtg?
 
user986408
who made this?
 
10:11 PM
are there any other controls besides <- -> and [space] ??
 
user986408
nice :O
 
user986408
@rlemon in the original you can shoot
 
@rlemon r to restart. I'll add configurable controls soon
 
user2157210
@James well obey the normalization rules
 
user2157210
and you are pretty good to go
 
10:12 PM
yea and q quits
figured that out
 
@copy how long is the whole game?
 
@twiz Only two screens and you can't reach the red orb yet
And the apple on the bottom right doesn't disappear yet
 
@Nexxpresso I think it's actually going to be a little too much for me to do myself, trying to explore how feasible it is as a concept before I get too invested in it.
 
@copy I don't even have a guess how to get back to the right side again on the second screen...
 
user2157210
@James database desing is a bit icky
 
user2157210
10:17 PM
but its fairly easy
 
@twiz You will see when you jump into the yellow orbs
 
user2157210
@James just start with some diagrams to visualise it for you
 
@Nexxpresso Tahnks, I've heard a few people say that. To counter it I've also read how important an optimised database is to ensure that data can be retrieved quickly, especially if its being used to serve a large number and variety of devices. I've been doing some diagrams for a while now, but I've literally thought of 100s of tables I'm going to need and trying to piece it together is a little bit out of a struggle.
 
user image
2
lol....
 
user2157210
@James well i got 8 hours database design a week in school .. in the beginning you struggle but it gets easier
 
10:21 PM
@rlemon Haha, that's brilliant
 
@copy hate you so much
 
I had a database design class.... It was about MS Access....
 
@Shmiddty That's the best part about creating games
 
@Nexxpresso You're definitely right, just not sure I have the time myself to do it - the project is a personal one I'm doing outside of the 9-5.
 
10:26 PM
in CSS, with div::before, 2 :'s is the way to go right?
 
user2157210
@twiz well dbs are dbs
 
user2157210
designing is the same
 
0
Q: Angularjs stream ajax responses?

µBioThe following service repeatedly queries urlToStream with paging parameters and appends the results to an array in a scope (passed in as a parameter). It works but feels dirty (not the least of which is because of the evals) usage StreamService.stream("/api/something/", $scope.someArray, "Tot...

 
@Nexxpresso true. I guess it was just a shitty class. haha
 
user2157210
well they used ms access
 
user2157210
10:32 PM
sure it was a shitty class
 
Simplicity is the ultimate sophistication. [Leonardo da Vinci]
 
10:48 PM
@Nexxpresso Not really. You're going to design a NoSQL db differently than a Relational db.
 
@Nexxpresso I think I've just found out what I'm looking for help with is Data Modelling, not strictly database design - although they're closely related.
 
user2157210
@James yeah
 
Howdy. Anybody here mind taking a quick look at a very simple JSON structure? Feel it's too simple of a problem to post as a question ..
 
user2157210
erd
 
user2157210
or erm
 
user2157210
10:54 PM
dont know what the english one is
 
user2157210
and then all the other shit you nee
 
user2157210
d
 
Entity-relationship model?
 
user2157210
model
 
Haha, sorry was just correcting myself!
 

« first day (901 days earlier)      last day (4049 days later) »