« first day (1279 days earlier)      last day (3655 days later) » 

12:00 AM
JsonConvert.DeserializeObject<Goal>(json);
 
I could start going that route, but it would bypass a lot of convention.
 
sending json data or binary data would be best. but if you need IE8 support json probably would be easier
 
Ideally the form these need to be in are similar to the naming conventions used inside of the form inputs so I am going to have to adhere to that
So that the model binder can map them without explicitly deserializing
I think I have it all setup though from overriding the toString call, I just need to get the header logic in place :)
I might try to switch to xhr if I can't get this to send though, thanks for the walk through on the json string idea
 
12:15 AM
Hm.. so it appears that my attempts to reduce Garbage Collection have been futile...
My code actually performs worse when I try to keep all the objects in reference than just removing the object from the array and letting GC do its thing.
Object Pool:
http://codepen.io/anon/pen/vBgqG/?editors=001
No Object Pool: ( removed objects references are dropped )
http://codepen.io/anon/pen/xIrdy/?editors=001
Any Idea why that is? Perhaps because I am using indexOf and push ?
 
push is crazy fast
indeoxof is not
 
Can someone quickly give me some advice guess on this question, I'm installing Linux Mint Debian, I'm trying to encrypt it also, I've found a nice tutorial but there's 1 problem, he creates 2 partions 1 is a small 200mb and the other is the rest of the hard drive, he says his are called /dev/sda1 and /dev/sda2 but I need to know what one is the small one because mine I think are back to front, post is here
 
@Loktar doing a for loop instead then?
 
what do you think?
 
@Schoening yeah or a while
I made the mistake of assuming indexOf would be fast replaced while loops in my game engine
it slowed it down... I was sad
because indexOf is so much nicer
 
12:18 AM
The one thing that I got going for me is that the page I am not using an Object Pool in crashes a lot. So there is that
 
what are you trying to do?
 
@Loktar how long did GH take
 
oh damn this uses a bunch of code eh
@Mosho well its still a work in progress :P
 
thus far
 
like 4 months or so
but if I were just releasing it as a tiny game I would have been done a while ago
I'm trying to do it proper this time around by getting an artist, ect
 
12:20 AM
Just a performance test @Loktar. To see if I should keep references. They both create 5000 three.js objects and one of them always keeps it in reference. The one that doesnt seems to crash occasionally. So I guess that the GC is not comming along often enough and the Tab ran out of memory ?
 
I made that in like a week or so
for the github gameoff
 
damn, that's cool
 
thanks
 
Hi, peoples.
 
you get points by matching
and then build dudes
 
12:21 AM
Nice game :)
 
to stop the enemy guys from destroying your castle
and damn.. just realized its 2 years old already lol
but yeah my plan is to make that a proper game after grapple hero
 
Isnt that a bit like that popular japanese one? Puzzle dragon I think its called. Mixing a classic game with a puzzle
 
I wanna make a few simple ones, to get an internship at a game shop
 
oh idk I got the idea from Starcraft 2 (starjeweled mod)
@Mosho that would be sweet
 
Has anyone come across a problem with scrolling issues on android seemingly caused by the loading of jQuery?
 
12:23 AM
I've always wanted to workin game dev.. but idk
my math skills are too weak
 
@Loktar quite a few are hiring interns from my program
my art/style skills are non-existent
 
Images seem to stick if I touch scroll, then they jump back into place when I let go. Commenting out, masonry for example, fixes the problem. On other pages that don't use Masonry the problem still persists.
 
haha same here @Mosho
 
fine, none ya'll getting any more of my blue stilton
 
almost nothing depresses me more than browsing deviantart
 
12:28 AM
anyone used codeeval?
 
wow no @SomeKittensUx2666
that scares me to even try :P
oh wait its a puzzle/challenge site sweet
you probably just killed the rest of my productivity for the day
 
haha
It bothers me how they don't have Node
 
@watsonmw 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.
 
hmm still waiting on the verification email
ahhh crap
put in a mispelled vs of my email
how annoying
 
12:36 AM
heh
just opened the account
lotkar00@gmail.com
at least I own it now in case I do it again
 
@Loktar Hey switching from indexOf to a loop actually gave me a couple of frames :) Still worse than without keeping references.. bah
 
damn
 
BUT!
The browser doesn't freeze up in my code. It freezes up occasionally without keeping references.
 
haha
 
12:44 AM
@SomeKittensUx2666 lmao I was just on that
> wtf? how many are there???!
+dat horse unicorn
@Loktar mind if I borrowed some of your work on Deathmatch?
 
its MIT I believe
feel free
any art I think I put in the license where it was from
I created the guys and the match tiles
 
alrighty
wanna use the footman
 
yeah go ahead
 
what IDE do you use to make JS games
or setup in general
 
just Sublime and photoshop
I also have grunt running as well with a watcher to minify/concat my stuff
 
12:51 AM
roger
 
morning
 
is it
 
liar
 
!!youtube megadeth liar
 
12:55 AM
 
@zach 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.
 
WTH
!!stopcallingmewoman
 
@ZachSaucier That didn't make much sense. Use the !!/help command to learn more.
 
1:08 AM
why is 100MB of node_modules 11,000 files
 
Holy shit, why do you have 100MB of node modules?
 
Adam Rainer (1899 – 4 March 1950) is the only person in recorded history to have been both a dwarf and a giant. Rainer was born in Graz, Austria-Hungary. In 1917, at age 18, he was measured at . A typical defining characteristic of dwarfism is an adult height below . Then, likely as a result of a pituitary tumor, he had a dramatic growth spurt so that by 1931 he had reached a height of . As a result of his gigantism he became bedridden for the rest of his life. His feet measured 33.3 cm (13.1 inches), and his hands 23.9 cm (9.4 inches). He weighed only 109 kg (241 pounds). ...
 
That's ~100 lines a file.
 
@SomeGuy ^^
 
Well, less, that's assuming 80 char lines.
Uh, I mean more.
 
1:14 AM
better visual on his height change over time
 
@RyanKinal hmm, browserify for some reason is 45mb
the rest are reasonable
 
HOLY FUCK
 
I don't even use it anymore tbh
ah
so I have browserify and grunt-browserify
90mb together
 
lol
 
holy shit
is using canvas with sprites a good approach
 
1:43 AM
@geoff 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.
 
qqq
hi
/help
 
@Mosho why not
 
maybe there's a better/newer way
 
like? jsfiddle.net/rlemon/X2Cv6 this looks good to me
better than loading individual images.
 
those look familiar :P
just wondering
 
1:56 AM
@kathir 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.
 
0
Q: Using Kris Kowal's Q. How should I catch if any errors have been thrown throughout the life of a chained promise?

JohnI'm new to promises, and I just started using Kris Kowal's Q today (I've read about it before and used it a little with Angular.js), and I was doing an Ajax call with jQuery and turning it into a Q promise. I was trying to find a good way to have some sort of catch at the end that would tell me w...

 
2:19 AM
 
 
i always wondering <script>tag location .
 
@Shreyans 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.
 
if i put javascript code in <body>. dom object is not created?
 
yo
 
anybody here?
 
2:43 AM
we lurk in the shadows
 
shadow man
 
@happenask Why do you say that the dom object is not created when the script is in the body?
 
@happenask not if you trigger the script before the document is ready
 
hello, how to send parameters to jQuery UI dialog? anybody know that?
 
i am performing $('select').flipswitch('refresh'); and getting
Uncaught Error: cannot call methods on flipswitch prior to initialization; attempted to call method 'refresh'
 
2:47 AM
@jesse could you be more specific please?
 
some googling is telling me to bind it on pageinit
or put it in doc.ready
none is working
 
@Bubbas I've never heard of flipswitch personally
are you using jQuery mobile still?
 
@Bubbas my guess is at the time of calling your thing., the thing you want to interact with is not yet ready
 
yes
well - from my original <select> jquery creates a new div to put it in
so im thinking my function is getting lost when it does that
the thing is................ it is actually working and doing what i need
 
@Bubbas a select in a div or a div in a select?
 
2:48 AM
but, common sense tells me not to ignore the error
select in a div... the div is created by jquery with class ui-flipswitch
among some other classes of course
it also puts in a couple spans
i think for the options of yes/no
but should i really just ignore the error since i get the correct results? surely not..
 
@happy there are several tabs in my page, and they have a button to trigger a dialog, this dialog need some parameter from the tabs. how can I do that? I know setting some DOM attributes can get it, but I do not want to do that, I want to give a n Object to jQuery Dialog
 
@Bubbas did you notice a consistent error among different browser?
 
lemmie check that
 
np
 
@Bubbas It looks like it's trying to call a function of flipswitch, why not try to call that function instead or in addition?
 
2:52 AM
yea its common among all browsers
@ZachSaucier not totally sure what you mean, sorry
 
could you pastebin about 25 line up/down the line the error it refer to?
 
@happy sorry my brain Short circuited, I can raise a global Object, once opening dialog I will reset the object, so the dialog can get the parameters
 
Eh, I was wrong
 
@happy it says the error is form jquery's source code
that okay?
all good @ZachSaucier
:)
 
@Bubbas which version are you using and which line is it referring to?
 
2:55 AM
dammit i got the min version right now
line 4 ;)
hang on, lemmie see if can get you the spot in the code
 
could you change for the non min version cause everything is on line 4 ;)
 
haha i know
yes i will
one sec, and i am using version 1.10.1
 
are you using the compatibility stuff?
 
and jqm 1.4.0
what is that?
 
jquery-migrate-1.2.1.min.js
 
2:58 AM
does not look familiar to me, no
what does it do?
 
it sometime help me with plugin not fully compliant with 1.1x
 
huh
 
it's like a compatibility mode
maybe the suggestion is an overlook. Did you try with the non min version?
 
ok version 1.10.1 line 516
if you like, theres the 'chunk' its from
 
need to go eat, coming back later
 
3:06 AM
k
 
I'm unclear on how meta that's tied works (now that mso->so and mse is live). If you get downvoted on meta...do you lose rep on both sites?
 
@DaveChen: no rep is lost or gained on meta so
Your reputation is the same as your main SO account
 
@DaveChen Are you a chinese?
 
3:41 AM
@happy you there?
 
@jesse my last name... :P chen, duhh
 
m59
3:59 AM
Out of curiosity, I googled "so many noobs". All results on the first page refer to League of Legends. http://google.com/#q=so+many+noobs #noobs #LoL
@RyanKinal ^
 
4:26 AM
YOUR FACE IS A TWEET
 
4:50 AM
@Dart 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.
 
can some one please help me with this..
http://stackoverflow.com/questions/23124762/how-to-set-value-of-child-pop-op-elements-from-parent-window-using-javascript
 
I have an audio file. but it is not playing, bcz its 0 bytes. then how to I play this?
anyone help me pls
 
Is window.onload not supported by IE8?
 
@Arbaaz: it should work, what are you doing?
 
5:05 AM
@OneKitten please take a look at my question. stackoverflow.com/questions/23124762/…
 
@Arbaaz: have you tried jfriend00's suggestion? People will answer your question, just be a little bit patient and make sure to provide details.
 
good early morning
 
bad late afternoon
 
@OneKitten yes I have , and I have updated my question. May be I am doing something wrong. It did notwork.
 
you know you're tired when you ear your breath and sound like when you're gonna sleep...
T_T
 
5:11 AM
0
Q: How to organize a set of operations with Promises?

jurgenI'm new to Promises. The examples I've seen in the doc seems to be clear. But I have a more complicated thing. I have a service with incoming data - as files and some fields data. What do I need is to read those files data (they are in /tmp) save them somewhere, create a database record for the ...

Cv please
Sorry, mobile :/
Mornin btw
 
mornin
 
hullo
!!somekittens meaw
 
@OneKitten Input not matching /meaw/. Help: User-taught command: meeee Meaw
@OneKitten Meaw
 
1
Q: How do I "think in Koa.js" if I have Express.js background?

Ruslan  IsmagilovHow do I "think in Koa.js" if I have Express.js background? I have used Express.js in several projects, including full-stack application and just API service. It is awesome tool. But Koa.js looks really interesting, and I'd like to try it out. So, can anyone describe me a main paradigm of it?...

Now how do I deal with these
if I VTC, they'll wonder why the jQuery one wasn't closed
 
5:25 AM
@Xsi 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.
 
mornin
 
@OneKitten I cv'd
 
Q: if your question is downvoted, if you suppress it, it gives your rep back?
 
JQuery to Angular one is really library to framework, not similar at all. A shame it's too Angular specific
Lol, generator based philosophy, you just made my day. — Benjamin Gruenbaum 1 min ago
 
Xsi
@CapricaSix Thx for rules, but I'm afraid to ask and question will be too long to explain my fear why it's so..
 
5:29 AM
It was Plato's 'on generation of mind' that started the Philosophy of generators movement right?
 
@Xsi bot don't care about you politeness haha
 
Xsi
Caprica Six?
 
@Xsi I'm a bot, duh.
@user3172663 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.
 
@SteamFire: what do you mean by "suppress"?
in PHP, 3 mins ago, by tereško
also, why the fuck your "controllers" have hardcoded jquery in them, @AbdUlAziz ?
lol
 
5:45 AM
did I say something wrong ?
 
@DaveChen My last name is Chen too
 
@tereško: nothing, it's just amusing how stupid some people can be :)
 
s/suppress/remove
alternatively: delete
 
@SteamFire yeah, all rep gains or losses are returned
 
oh okay
thx
 
5:56 AM
14
A: `TypeError: $.Tween is undefined` in FireFox

user3075942The problem is that you have jQuery included twice, <script type="text/javascript" src="../lib/jquery/jquery-1.8.3.min_ts_1382746426.js"></script> ... <script type="text/javascript" src="../lib/jquery/jquery-1.3.2.min_ts_1235084541.js"></script> and the second, older version, overwrites the fi...

14 upvotes for basic debugging is kind of fail.
 
did you miss the 500 point bounty ?
 
kind of jealousy
500pt!! fkn big amount
 
@SteamFire: a grand total of 655 reputation :P
 
well ... we can always delete the question
 
Hahahahaha
so bad for the one who respond
better! delete the response
and then I c/p it
 
6:00 AM
No, I don't think you can
 
@tereško lol as what?
when he awards then you can cv as typo
 
but it seems that the question is not appropriated
 
@SteamFire: the thing is, you can't close a question with a bounty active
had the 500 rep bounty not been there, I would expect closed question and somewhere around -4
 
yep
and he didn't give any piece of code
there is no trace of the error
but the response
 
6:07 AM
0
Q: AngularJS Chaining Promises won't bind to template

HairyjewbearI can't seem to figure to figure out why after using promises it still isn't waiting and so $scope.return_message is returning null. function getRandomCommit() { var d = $q.defer(); $scope.repos = Repos.query({username: 'octocat'}).$promise.then(function ( value ) {...

 
why @Feeds give questions like that?
Oh! I just can give bounty now!
hahahaha
but if i give a bounty, i lost all my privileges
 
@SteamFire ...that's how feeds works
 
!!rename feeds/spam
i'm soooooo happy that today I finish earlier and then, 4 days weekend
i fkn need to sleep
 
Oh right, it's easter this weekend
 
6:25 AM
@Jakub 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.
 
6:42 AM
For some reason all the promise questions show up on the feed
 
Annoying.
 
Hey guys quick question. I only need the JQ Color plugin under one condition in my website. Should I load into the DOM anyway, as it is only around 4kb or load it dynamically by inserting it into the DOM via JavaScript if I need it?
 
How do I get separate digits from a integer value...

for example,
var intValue = 123466789
I need to get output like 1,2,3,4,5,6,7,8,9

Anyone pls help me.
 
@Illaya toString(intValue) and then for loop + parseInt each character into an array
sorry, intValue.toString();
Something like this maybe @Illaya (haven't tested it):
var intValue = 123456789;
var numArray = new Array();
var i;

intValue+='';
for (i = 0; i < intValue.length; i++) {
    numArray[i] = parseInt(intValue[i]);
}
 
doesn't work
syntax error i think
 
6:54 AM
thanks for your reply @samrap I'll check and come back
 
I think the error was in the numArray creation...forgot to use new Array as the initializer?
 
@samrap Something's wrong with this code :P
 
I got! thanks @samrap
this is the correct code..
var intValue = 123456789;
	var i;
	var numArray = new Array();

	intValue+='';
	for (i = 0; i < intValue.toString().length; i++) {
		numArray[i] = parseInt(intValue[i]);
	}
 
@Illaya var intValue always contains only numbers?
ciphers, to be precise
 
@samrap don't feed the vamps
 
6:58 AM
@Illaya there it is :P
var intValue = 123456789;
String(intValue).split('').join(',');
!!> var intValue = 123456789; String(intValue).split('').join(',');
 
@Miszy "1,2,3,4,5,6,7,8,9"
 
@Miszy yes. its just for a minigame
 
it's shorter
 

« first day (1279 days earlier)      last day (3655 days later) »