« first day (1429 days earlier)      last day (3517 days later) » 

m59
12:01 AM
@Loktar is gulp's task dependency system just screwed up or am I fail?
It's always fighting me in some way
say I have a task that runs 3 other tasks
1 of those tasks has to make sure the other two run first
If I make those two a dependency of that task, the original task will run them, then that one seems to run them again
big mess
 
m59
12:44 AM
It looks like I was wrong...
I guess it doesn't run the tasks repeatedly - just looks like it.
@FlorianMargaine so, now the funny thing is that my static resources are improperly linked on ghpages
Since the actual root is not the project root
I found an article about it. I'll see what I can come up with
 
m59
1:04 AM
Interesting. These guys have the same problem angular-ui.github.io/bootstrap/getting_started
 
1:49 AM
so looking to pick up a front end framework. react, angular, ember and backbone seem popular. thoughts?
 
Probably Angular
 
m59
2:14 AM
@hunterc backbone doesn't compete. It would only be part of what you need.
I think the same with reactive (but I haven't used it)
There are some things that you can use together as your own sort of framework
Angular 2.0 is going to be killer
Does this ['demo/*', '!.git'] do what I would hope it does?
Nothing in the git folder would be deleted?
or do I need to do something like !.git/**
Oddly, the latter doesn't work and the former does...(or seems to)
!.git (ignore the whole folder)
!.git/** (ignore the stuff in the folder, but not the folder itself, therefore delete the folder)
I guess?
 
m59
@FlorianMargaine I found good use for document.write =D
window.location.hostname !== 'localhost' && document.write('<base href="/my-project-name/">');
prollems solved.
@rlemon what is it?
 
Sorting visualization
It sucks
The sorting algorithm, that is
 
m59
neato
 
3:34 AM
@rlemon How do you track the frame rate of a canvas animation?
Is there an internal method, or do you have to rely on Date comparisons?
 
Ah, thanks
 
Exponential smoothing on the time difference between RAFs
In case you want to do it yourself
 
4:18 AM
@rlemon Robocraft?
 
Request-URI Too Large

The requested URL's length exceeds the capacity limit for this server.
when i sending base64 image to the server
via ajax
how can i fix it ?
 
@JanDvorak thank you so much , let me try other ways spoken about
 
4:33 AM
@towc It doesn't in the game itself, which is what I wanted. Also, thanks
 
@samitha Make post instead of get requests
 
@SomeKittensUx2666 Yep! Got approved js13kgames.com/games/space-burn/index.html
@Zirak I'm sure someone from would be willing to help if you needed it
 
@copy
$http({
            method: 'POST',
            url: 'php/index.php',
            params: obj
        }).
        success(function (data, status, headers, config) {
            console.log(data);
        });
 
@SomeGuy nice!
 
This is the POST request but it doesn't get as POST when i see in console
it's like GET etc.etc
Why ? @copy
 
4:37 AM
@SomeKittensUx2666 I like yours!
Haha, there are 4 games in your category!
 
@SomeGuy 6006
It's not obvious what gives you points
 
@copy Congrats! My best is a bit higher
Just surviving
Bonus points for destroying asteroids
 
@SomeGuy 4th place!
though the other three seem shoehorned in
 
It isn't really complete, though
 
and.... Pong
 
m59
4:41 AM
@SomeGuy 7589
 
@m59 That may be better than I ever managed
 
@copy still same issue .I'm sending POST now
 
m59
;D
 
The best old man @mikedidthis managed was 800
And he's been working on the game!
 
@samitha Try pressing random buttons
 
4:46 AM
what?
i have attached base64 string to the URL.that is the main problem
String will save in the database as BLOB type
 
@samitha Try this: codementor.io/bananu7
 
i don't understand
@copy i create a directive to convert image to base64 string
it took me a day to create it
Now i can't send it to the database
grrrrrrrrrrrrrrr
 
Or make a post on SO
 
@SomeKittensUx2666 Do you know anyone else from this room who participated in the JS13k? (Apart from towc)
 
and my brother?
 
4:56 AM
@SomeKittensUx2666 What did he submit?
 
@SomeKittensUx2666 Oh, right!
Got a link to his SO profile?
I'm making a gist of all the entries, so we can just pin that message
 
@SomeGuy given the trolls, etc, I'd rather not
 
@SomeKittensUx2666 What do you mean? What could trolls do?
 
There's already one pretending to be my brother
 
5:03 AM
Here's a list of all the JS13k entries by people from this room gist.github.com/AmaanC/a8ff58c598287369fa2c
8
 
5:32 AM
Hmm ... Archer beer
 
@AbhishekHingnikar don't use exists, ever, for any reason.
 
@BenjaminGruenbaum ?
 
fs.exists, it's a problematic command.
 
what's the problem with it?
 
It's only there for legacy reasons, you should stat if you must or just try to read. It uses .stat anyway internally. Also - it doesn't work in the NodeJS callback convention - its cb signature is fn(bool) and not fn(err, bool) so it effectively suppresses errors.
 
5:41 AM
Well, that's directly really related
But basically, don't check if a file exists before opening it, because in the meantime it could get deleted
 
@BenjaminGruenbaum ah, I see.
 
Use the error handling of the file opening method
 
Yeah, that.
If you intend to actually read it instead of just checking if it exists - just try to read it
 
m59
noob question inc: what is gulp talking about "supporting steams and supporting buffers" ?
how would one or the other get piped into a gulp plugin?
 
6:14 AM
did someone notics the new gravatar series? dummy figures with random background?
 
ahh
 
414 network error.Requested URI too long
when i sending base64 string
 
@samitha method? post or get?
 
6:19 AM
same issue for the POST ,GET
i'm using angular http post method
 
well, the issue is clear then.
 
what is it ?
 
uri is too long
shorten your urls.
 
ahh ?
 
2 messages moved to Trash
Please make an SO post and link it here
 
6:22 AM
... or a pastebin
... or a jsfiddle
 
@JanDvorak angular with fiddle?
 
(morning)
 
... or a jsbin (since you are using angular)
@JanDvorak have a coffee
 
(good morning to you)
 
(why type like this?)
 
6:24 AM
((It's LISP day))
 
{ahh(!)}
cya laters :)
 
((Omg (really the day of) (Lisp)))
 
0
Q: HTTP 414 “Request URI too long” / base64 string

samithaI'm sending an ajax request to the server via angular $http method. $scope.save = function(){ var obj = { 'section': $scope.getSectionCode.Sec_CODE, 'level': $scope.getlevel, 'mode': $scope.getMode, 'getQuestionBody': $scope.getQue...

 
Now just wait for one reputation slave to post an answer for a lousy +25
 
m59
I'm blank.... what's the array function, kinda like:
var result = [1,2,3].something(function(item) {
  return item === 2;
});
wait, that's not clear.
 
6:32 AM
meh
 
filter?
some? every?
 
m59
Yeah, that could be a few things :)
I'm trying to filter an array of arrays and I've become lost =D
 
suggestions for SE8: none, notAll
 
What's the result meant to be
 
m59
var res = [[1,2,3],[2,'a',6],[9,3,5]].filter( //etc
// res =  [[1,2,3],[9,3,5]]
trying to ditch the array that has the string
I'm getting lost on filtering inside a filter
 
6:37 AM
res.filter(row=>row.every(el=>typeof el === "number"))
brb coffee
 
m59
6:53 AM
ty ;D
 
last day of vacation!
what should I do?
 
Start drinking beer
 
Way ahead of ya
 
can't find a reason to get wasted the day before school. I might have problems at reacting normally the day of school itself
@monners you've already started school?
 
Beer
 
6:59 AM
oh XD
I drink it if someone offers some to me, but not on my own decision
 
Well, it is your own decision to take what they offer you
 
So collision detection's fun...
 
You probably meant you don't drink of your own initiative
@monners No shit
 
yes, but I'm not like: let's go to town to buy some beer!
 
@monners quadtree
 
7:00 AM
@SomeGuy yah
 
@copy Che?
 
No, quadtree
 
@monners I know right? It's so outgoing, and smart
 
!!google quadtree
 
7:05 AM
SHOVE OFF M8
 
heh just finished up my off canvas menu for the hell of it
ola @AbhishekHingnikar
 
looks great
Do you watch conan o brien's game reviews ?
 
sometimes
I watched his PS4 and Rift one
 
Watch the Lara Croft one
 
7:07 AM
Watch the HALO 4 One
he literally licks the controller xD
 
haha damn I need to watch these
@copy is it the recent Tomb Raider game?
 
Yeah
@monners If it's of any help, gist.github.com/copy/bce9cd1b475880337781
 
nice, starred
 
It's quite incomplete (size doesn't increase automatically, misses several optimizations), but thanks
 
Regardless its pretty lightweight compared to a few I've tried to use in the past
 
7:19 AM
I might actually put it on github then, once it's done
 
thats really cool
 
m59
@Loktar I broke it
the "x" got reversed.
 
2 million particles
 
oh on the canvas menu?
 
2rocking 2 780ti
this is awesome
 
m59
7:26 AM
yep
 
yeah the button is actually extra
Its not a part of the plugin
how did you get it to reverse though?
 
m59
Not sure. I can't do it again
may have been some kind of selection weirdness, since I'm using a laptop mouse
 
ah ok
 
@Loktar do you get 60fps with 2million particles ?
 
@AbhishekHingnikar no
 
m59
7:28 AM
@Loktar ah! double clicking
 
@Loktar so my dual ti are rocking good [well my friends]
 
@AbhishekHingnikar well not at 1080 anyway
@AbhishekHingnikar nice, I'm only running one card 7990
 
my friend gave this to me
 
m59
I did it like 3 times now... still not sure how
 
@m59 lol same here, not sure how it happens though
oh well I need to get to bed its 2:30 here
 
m59
7:30 AM
same here
night!
 
night
 
7:58 AM
0
Q: How to debug javascript promises?

YemSalatI am trying to understand how to debug asynchronous code that is based on promises. By Promises I mean ECMAScript 6 based promises and by debugging I mean using the built-in chrome or firefox debugger. What I am having trouble with - is that when an error occurs I can't seem to get the stack tra...

This is a really good question - why was it downvoted?
 
m59
8:24 AM
speaking of promises..
I have an array I want to do something like:
return Promise.all(myArray.map(asyncFn))
 
What promise library are you using?
In Bluebird that's just Promise.map(myArray, asyncFn)
 
m59
ahhh
Yeah, that's it. It's 3:30AM and docs aren't making any sense haha
 
Promise.all(myArray.map(asyncFn)) is still almost right, it'd be a bit different though
Well, if it starts the chain it'd actually just work.
 
8:45 AM
@AbhishekHingnikar Hum, why ?
 
@Loktar You've got a typo in the usage section
> therea re
 
9:18 AM
@dystroy le chat ?
chat = cat :D
my guess though.
 
I thought it was because the name was miaou
Which would be an alternative spelling of meow
 
@AbhishekHingnikar no, it's more like "chat" is a word in english too... to chat with other people
so... it's a cat. A "chat" in french. What does the cat say?
meow in english, miaou in french
 
Ah, chat means cat in French
 
9:38 AM
yeah
 
9:58 AM
@BenjaminGruenbaum Bluebird promises are faster than natives?
That's pretty damn impressive.
 
@SecondRikudo much
 
Passing data from a service to controller, then to a view, and finally to another controller.
Any ideas How to do it ?
in angular
 
10:16 AM
Use the scope system
 
@charger73 why do you need to pass something to controller for it to just then pass it onwards to the view ?
do you know what Law of Demeter is ?
 
-1
Q: Passing data between Service - Controllers - Views in angular

charger73I have a controller A and a controller B. I want both the controllers to share the same data. For that I created a service Q. Now the controller A calls the service Q and shows a list of data. There is "Show More” button for each list item. When clicked, it should load a modal window with co...

 
You should probably consider reading more about separation of concerns.
@charger73 also, your promises are all wrong - you should learn about the deferred anti pattern.
 
@BenjaminGruenbaum Thanks for pointing that out. I am still learning angular.
Any great read you can point me to ?
 
Well, I have a Q&A on it somewhere, let me find it
16
Q: What is the deferred antipattern and how do I avoid it?

Benjamin GruenbaumI was writing code that does something that looks like: function getStuffDone(param) { var d = Q.defer(); // or new Promise, $.Deferred, $q.defer() etc. myPromiseFn(param+1).done(function(val) { d.resolve(val); }).catch(function(err) { d.reject(err); }); retur...

3297
Q: How do I "think in AngularJS" if I have a jQuery background?

Mark RajcokHow do I “think in AngularJS” if I have a jQuery background? Suppose I'm familiar with developing client-side applications in jQuery, but now I'd like to start using AngularJS. Can you describe the paradigm shift that is necessary? Here are a few questions that might help you frame an answer: ...

^ also read that
 
10:34 AM
Thanks. Letme read this and try it again.
But just for logical reason. Can i send data from view to controller while using modalservice ?
Check 3rd last line of my VIEW
there i open a modal window.
This modal window has different controller
So how can I pass the id of the button clicked to the controller of the modal
 
different controllers communicate through scope inheritance or services.
 
.. saddest part is that, if he get this thing working, he will come out with conviction that he "understands MVC"
 
@tereško did I show you what Angular's project manager said about being MVC?
 
nope ... and I am not sure I want to know
but ok, hit me
 
10:42 AM
> I'd rather see developers build kick-ass apps that are well-designed and follow separation of concerns
Yeah, then it would seem that the frameworks are actually focusing on preventing this, emphasizing "devotion" over "understanding"
 
I don't think that's the case
Then again Angular's authors use it very differently from the average user.
They say over and over in lectures to only use Angular and its facilities for the UI layer and to have a separate whole layer that shouldn't really care about Angular. No one but Google actually uses it like that.
 
Maybe in the magical land of javascript it is different, but 99.9% of all the app written using one (or more) or popular frameworks, have only one type of architecture implemented: big ball of mud. And just because they are using a framework X, they proudly pronounce that they are using MVC.
 
People just shove everything in controllers, abuse its DI for fake globals and so on.
@tereško I don't know - we have challenges maintaining Angular code bases and those challenges often relate to Angular itself (the injector in Angular is global and hard to 'hot swap' for example). I don't feel like it'd work really well on a huge project but for a medium sized project similar to their typical use case it really works well.
 
Basically, most of user who use frameworks think that they can replace proper architecture with framework sauce.
... then again, last time I worked on a small project was 2 years ago :'(
I'm probably just biased
 
Most web projects are not interesting, they're very similar to each other in many ways. For most of those projects if they fit Angular's use case it works quite well. For example it's very good for 'dashboards'
I agree that people abuse frameworks so much though.
It mainly happens when they don't actually understand what the framework is trying to solve for them. They just read a tutorial.
 
10:50 AM
emm ... no
they just copy the code from the tutorial
 
... And then glue it together with jQuery
 
@Witiko The thing is - there isn't anything inherently bad architecturally in jQuery.
Angular is debatable but it provides a solid architecture for several common scenarios.
 
well .. it is objectively better then Ember, but that's not saying much
 
jquery?
 
@BenjaminGruenbaum I'm more concerned about the "programmers" jquery let in. The sort of programmers that don't even know there is something like js underneath and produce horrid spaghetti of a code.
 
10:55 AM
these are designers, not programmers
 
Feb 19 '13 at 16:12, by John Resig
bad uses of JavaScript existed long before jQuery ever came out - jQuery being popular doesn't stop bad devs from existing, the only thing that stops bad devs is good education, which is why I've written two books and am working at Khan Academy
 
@BenjaminGruenbaum jQuery allows you to be a bad developer and still make things presentable.
 
which is why it's great
 
It allows you to make "working" sites without having to learn... anything basically.
 
This goes beyond bad uses. Most of these programmers don't even know they can declare a variable in a jQuery callback and try to chain everything in one large invocation using plugins.
 
10:57 AM
@FlorianMargaine It's great... until you have to maintain it.
It applies to anything that involves bad code
But jQuery makes it very easy to write bad code and get away with it.
 
I've had worse issues with php code than with jquery code tbh...
 
Just as with God, I don't have a problem with jQuery itself, it's its fan club I can't stand.
 
@SecondRikudo so it makes a hard task easy?
We should hate on it for that.
 
@FlorianMargaine PHP is also a sinner in the same department. But PHP sucks generally as well D:
@BenjaminGruenbaum I don't hate jQuery.
I dislike the community that formed around it.
 
@Witiko I thought John Resig made it clear in that comment (which is why I like it so much) - bad devs are bad devs. Don't blame jQuery for that.
 
10:58 AM
I believe jQuery was too good at its task at abstracting javascript and DOM away, actually.
I am not.
 
A community where everything is a bloated, 20k plugin.
 
It only abstracts the DOM, not JS.
 
@BenjaminGruenbaum That's exactly what the vast majority of the bad jquery programmers doesn't know, though.
 
jQuery also does a lot of things right as an API, but ignoring that - it's just a library.
 

« first day (1429 days earlier)      last day (3517 days later) »