« first day (1552 days earlier)      last day (3389 days later) » 

12:06 AM
Is there somewhere you can subscribe to get notification when W3C releases a new draft/spec?
 
12:55 AM
hey guys is anybody of you familiar with angularjs :/?
 
@IbrahimApachi is this the same problem you had before?
 
i found some issues with this debugging tool of chrome
but i am sorry, i am really not a good programmer
i couldnt get it working properly
i really really want that to work !! i spent so much time on this project and that just for a c or d grade??????? that makes me already sad :C
 
Your grades are immaterial to me.
 
yeh i know nobody really cares
but can you still help me?
 
Not with what you've currently said
You need to explain your problem, what you've tried, what you get and what you want.
 
1:03 AM
okay:
I have the task to create a CRUD app based on the mean stack. My idea was it, to create a blog app. I got the CR and D working of blog articles. Now I only need to update them. I created a form, which i leaned to the form which I used for the create function.
The only difference is, that I also deliver the actual article to get the current article id. After submitting the form I get into an angular function. Right there I realized that my scope variables didnt work properly. With console.log($scope.variable_which_content_I_wanted_to_know), I received a undefined with the javascript console of google chrome
so the first issue is probably submitting the form properly. Then I wanted to test my mongoose query:
 
Are you following the dot rule properly?
 
instead of using the content of my not working scope variables, I just inserted some static values which should have worked if my mongoose query in my routed.py would work. So I guess whats working is: The http request and the call of my angular function and what not works is the proper form submitting and my mongoose query
let me google dot rule
do you mean proper setting of dots like $scope.title ?
 
In that your models should have a dot in them $scope.article.title instead of $scope.title
 
when I try your suggestion I receive following error ` TypeError: Cannot read property 'title' of undefined
at k.$scope.updateArticle`
 
Please tell me you didn't literally just add article to your scope.
Your time would be best spent on some introductory tutorials.
 
1:18 AM
i didnt put article in my scope
 
i created an array of articles in a factory so every of my controller could access it
 
Can you paste your controller code?
 
content= $scope.title is a typo, its not used to be like this :) it didnt work with $scope.content either
 
1:43 AM
Consider the following: You have a single colour png, 200x24 pixels in dimension. Which is faster, a drawImage call, or a fillRect call to create a rectangle of the same colour/dimensions? I'm trying to figure out if caching something so simple would actually be faster or not
 
test and compare
 
damn you for making me work for my goals
 
@NickDugger Use imageData
 
that's like the slowest... ever...
 
For a single write, yes
For multiple, no
And if you don't do multiple, it doesn't matter anyway
 
1:45 AM
I'm doing it in a game loop, so yeah
I thought it was super slow
 
Who wants to help me find the node leak?
 
When I started canvas, I tried with imageData in a loop, and it made everything super slow
 
And this is why microbenchmarks aren't terribly useful.
 
@SomeKittens did you find anything?
 
nope
Ask @copy
 
1:49 AM
@NickDugger Caching and drawing using drawImage might be worth it though
Depends on how complex it is
 
@copy kennst du dich mit dem mean stack aus?
 
For right now, it's just a rectanlg,e but it's one out of however many UI elements will be on screen
 
ich muss morgen mein schulprojekt abgeben bei dem ich schon seit mitte dezember dran sitze
 
No
 
schade :/
 
1:51 AM
schesse
a
67
You have a school project due in the morning?
My high school german skills strike again!
 
yep i do and i didnt get any sleep
but its not how it seems like, i didnt work on that project for 1 or 2 days, im doing that since mid decemver
 
Is it done at least?
 
no thats the thing
i needed to develop a crud app
i did cr and d successfully
but I failed at programming U
 
oh, you're the guy from before that everyone was trolling lol
 
i just dont know how to do it
yes >_>
that really made me sad
 
1:53 AM
what's the "U" stand for?
 
update
 
update what?
what does the rest stand for? lol
 
update / edit my existing data
create, retrieve, update, delete
CRUD
 
How is that hard? Update is just modifying existing data. If you're using a database, it probably has an update command, or something
 
yes, when i figure it out i probably get the doh effect
but i just dont get it
i really dont
 
1:55 AM
Are you using a database?
 
yes mongo db
 
with node, or with what?
 
yes and express
 
are you allowed to use mongoose?
 
i am using the mongoose module
:P
 
yeh I read the docs and treid them, but I seemingly have some understanding problems
 
lol
 
looked right to me but isnt working :D
 
I don't think that's how you're supposed to do it
gimme a few minutes and I'll see if I can figure it out
 
okay thank you very much :))))) !!!!
 
2:01 AM
So we've got a DOM leak
yay!
 
the first function exists so i can preload articles for functions that have :article in their url
 
-4
Q: it is about implementation

Trangga KenHi I have two sections like this: * ButtonHideShowMain.java * HideShowMain.java TriggerA.java public class TriggerA { public interface OnTriggerListener { void onTrigger(); } private static OnTriggerListener proc; public TriggerA(OnTriggerListener vProc) { proc=vProc; } public...

 
@HenrikPetterson That's a Java question
 
@IbrahimApachi I'm like 80% sure this is how you're supposed to do it pastie.org/9832498
 
router.put('/articles/:article/update', function(req, res, next) {
Article.findOneAndUpdate({ _id: req.params.id }, function(err, article) {
if(err) return next(err);
res.json(article);
});
});
is that viable?
 
2:13 AM
I don't see where you're updating it
You still need your conditions, or your query
Article is not your query, it's your model
 
yeah i just realized that too, sorry i am tired :D its 3:15 in the morning in germany
i think i just have to accept that this project was just a waste of time, but still thanks for your help :D
 
It will still be to your benefit to learn how to query databases, though
Mongoose's api is extremely simple
 
yes i will still try my best, there is no benefit in going to sleep for 2 hours ^^ i will try to make it work on luck
 
2:56 AM
in C#, 2 hours ago, by Kendall Frey
If I have a post-build command that calls a third-party tool, how do I handle pushing that to github? Anyone that pulls will be missing said tool.
anyone here have advice?
 
what, like a globally installed one?
 
not necessarily
but possibly
 
Whoo, got the healthbar to work!
make a game engine without ever having made a game is the stupidest idea, but I like stupid ideas
 
Just don't make it too general-purpose
 
Stupid ideas are what make the world tick
 
3:07 AM
@copy It's going to be pretty specific to start off with, so I don't lose focus
 
anyone know of how to use xPath with node js
I am using document.evaluate but it doesn't work
 
3:23 AM
!!google xPath with nodejs
 
I did google but what I tried didn't work I was asking if you guys had any personal experience with it, jeez...
 
Man... I feel bad for asking this but what is processing? Like I need a way to define it for my homework... .-. I know what it is, but I don't know how to put it in words. Lol.
 
@Matt That is very much in need of context
 
Man.. Making me communicate... using words... .-. lol.
 
3:30 AM
My computer has a processor, I eat processed cheese, my applications needs to be processed.
 
Well processor of a computer. Sorry, I thought that was assumed just because of a computer chat. Or well scripting in this case.
 
even in terms of computers, there are many meanings
!!define process
 
@KendallFrey [process](http://en.wiktionary.org/wiki?curid=37462) A series of events to produce a result, especially as contrasted to product.
This product of last month's quality standards committee is quite good, even though the process was flawed.
 
You might have to stick with a generic definition
 
That is fine, I will just tweak and work with it.
So if I use double ! I can request a common?
command*
 
3:34 AM
!!tell Matt help
 
@Matt Information on interacting with me can be found at this page
 
Cool :D
!!tell Matt Hello World
 
@Matt Command hello does not exist. Did you mean: help, tell (note that /tell works on commands, it's not an echo.)
 
darn D:
Use quotation might make it work?
 
nope
> note that /tell works on commands, it's not an echo.
 
3:35 AM
Guess I'll read the help when I get to it. Lol.
 
4:24 AM
!!tell Matt sandbox
 
@Matt Please go and play in the Sandbox
 
Sandbox :3
 
5:05 AM
I give up on JS frameworks :(
 
1
Q: How can i apply a draggable directive to bootstrap modal using angularJS?

SajeetharanI am using bootstrap modal in my Angular Application, it works fine. I need to make it draggable and resizeable, so i have defined a directive. The issue now is it getting applied to the content inside the modal window, hence the modal window becomes transparent. how can i assign the draggable d...

 
 
1 hour later…
6:29 AM
I have a web app that will only ever run locally, and up til now I've just been using AJAX to query the file structure and read files, but now I want to pipe some data back to the client as it it returned from a separate process, so I'm gonna use web sockets. Should I change everything over to use them, or is it okay to have both transports?
 
it's ok to have both
 
Sweeeet
 
@phenomnomnominal just coordinate them somehow, you should be good to go.
 
I was thinking sockets to maintain 'the truth' about the state on the server and ajax to request actual files
 
Define an abstract 'transport' class that decides how things are sent from one computer to another and inject that into your request service, then you can swap out ajax for WS wherever you choose if you choose.
 
6:41 AM
That makes sense
 
+it's what everyone does :P
Cargo cult is the best cult
 
@BenjaminGruenbaum didn't you promise me an example of running sql queries in node other than strings? Time to resolve.
 
Other than strings? What I suggested to do is just putting the sql in files
You'd have something like:
 
Hi everybody.
Can someone help me to convert this mootool script into jquery or javascript?
 
@SomeKittens still writing, this might be overkill for what you're doing :D
 
6:53 AM
HI friends
Im working with highcharts type scatter
and i want to colors the point of same data show with same color
 
@BenjaminGruenbaum Well, I appreciate it
I'm currently trying to find where a color is declared in my app
 
class FileCache{
    constructor(){
         this.cache = Object.create(null);
    }
    get(filename){
         return cache[filename] || this.set(filename);
    }
    set(filename){
        return (cache[filename] = fs.readFileAsync(filename)
    }
}
function connectionFactory(){
     return db.getConnectionAsync(); // or whatever
}
class DbRunner(){
    constructor(loader, connFactory){
        this.loader = loader || new FileCache();
        this.connFactory = connFactory || connectionFactory;
@SomeKittens sort of, but you'll need a version with transactions too, also coding in chat sucks :D
1 message moved to recycle bin
 
HI friends
Im working with highcharts type scatter
and i want to colors the point of same data show with same color
 
7:08 AM
@user2736704 you already said that.
 
any angularJS developers?
 
@BenjaminGruenbaum I stared at that for far too long before I realized it was ES6
I am so far behind
 
Heh :D
I can write it in ES5, I'm just sort of used to ES6 now
 
ah, so nothing more fancy than having a bunch of regular files
 
hi, I want to crack myself, presently I have an url that says blabla.com/calendar?token=someToken&year=2014 now in the controller there is a check like if @company.calendar_access_token == params[:token] I want to pass the token such that it becomes if @company.calendar_access_token == params[:token] || true how do I do it?
 
7:14 AM
@argentum47 That looks like Ruby
 
woo yeah, I am living a ruby on rails job life for past 5 month
I have learnt singular and plural
but the concept is same, I have to add " || true to the token
feck I tried "||true and it made {"token"=>"c3hlgm8nxyhm2jeg10l8hybgq\"||true", "year"=>"2015", "company_id"=>"1-rockstar-games"} there must be some way to beat it
 
hi @all
 
haaiii
 
7:35 AM
anyone work with JQGRID?
 
M-x downcase-region
 
8:09 AM
@phenomnomnominal SO chat uses WS to get messages and POST ajax requests to send messages
 
8:52 AM
hello
 
9:23 AM
i dont know, i get summoned and no one talks
 
ugh
@americans here: we don't have no-go zones
 
Shhhh.... I was launching a business of no-go zone bodyguarding for American tourists wanting to experiment Bagdad in the hearth of Paris
 
@FlorianMargaine at least the comments provides a handy list of people you should avoid
 
lol
@tereško ... you always get to see the positive in situations. You're a very optimist person.
 
I'm like the universal symbol of joy and happiness .. watch me fart rainbows
 
9:28 AM
?
 
hmm ...
 
isnt that the universal symbol of open sexuality?
 
the description kinda fits
@DrogoNevets actually, in 20's "gay" meant "happy"
 
still does in france
although it's "gai", not "gay"
pronunciation is almost the same tho...
 
agreed, but that isnt gay in any terms, thats pride's symbol (ok gay pride originally but it is now just pride and encompasses more than homosexuality)
so i go to birmingham regularly, my sister lives there (who also is not a muslim) those americans.......
 
9:35 AM
it's not even "the americans"
it's only Fox News and its viewers (which happen to be at the average age of 68)
 
thign i love, i dont know much about the french if im honest (im british, we hate them in sport, they hate us - we live happily like this!) but i do know as a whole they are not generally great fans of religon, yet fox expect us to beleive this?!
 
i.stack.imgur.com/oic5u.png ... why do they keep writing this crap ?!?
 
9:49 AM
I just realized.. If I wanted to replace text with a tab or newline, I can't in word
Is that considered "too technical" for a typical user these days?
 
helo guys
I am getting data in json form
on success
but how I can parse the json data
I have apply the con sole.log
Objectshedule: ObjectMODEL_NAME: "Honda"MODEL_NO: "111"freeservice1: "01/30/2015 11:40:00 AM"freeservice2: "02/14/2015 11:40:00 AM"freeservice3: "04/25/2015 11:40:00 AM"freeservice4: "05/15/2015 11:40:00 AM"saledate: "01/15/2015 11:40:00 AM"
getting this in console.log
 
That doesn't look like JSON to me.
 
@vishuminhas Yeah, that isn't json, though it is perhaps similar
It looks like json if you removed the commas and brackets
 
yes @RoelvanUden it is data I am getting from on success
 
Kind of CSON really, assuming there are spaces and new lines
 
9:57 AM
using Json.Stringify and getting this result
{"shedule":{"MODEL_NO":"111","MODEL_NAME":"Honda","saledate":"01/15/2015 11:40:00 AM","freeservice1":"01/30/2015 11:40:00 AM","freeservice2":"02/14/2015 11:40:00 AM","freeservice3":"04/25/2015 11:40:00 AM","freeservice4":"05/15/2015 11:40:00 AM"}}
 
I think it's just the copy paste of the console...
 
Hello all
 
If it is indeed a copy/paste from console, it's already an object.
Why would there be a need to "parse" it? O_o
 
I want to print value one by one
 
10:00 AM
Thanks @RoelvanUden
 
I think this question should not have been closed :
1
Q: How to read following code

AtulI imitated a library and was able to write following code. This code created 'c' object to which 'a' function is assigned. So, to call 'a', I will have to write c.a(). Also, I was able to add more functions to this 'c' object. I want to understand what is happening in this code. It doesn't look l...

(don't upvote, it's not something fabulous)
 
10:30 AM
Guys, I am not getting the meaning of this sentence: "She report to me (dotted line to Senior UI Architect)."
dotted line?? eh?
@dystroy Its on now.
 
@RahulDesai thanks
@RahulDesai looks like a reference to a (virtually or really drawn) hierarchy diagram
 
Let me give you the complete sentence:
"The position is under Kalyani (She leads HTML5 Framework development and enablement team). She report to me (dotted line to Senior UI Architect in Montreal)."
Ideas?
 
10:51 AM
hi all
 
@OleksandrPapchenko 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.
 
1
Q: How can i apply a draggable directive to bootstrap modal using angularJS?

SajeetharanI am using bootstrap modal in my Angular Application, it works fine. I need to make it draggable and resizeable, so i have defined a directive. The issue now is it getting applied to the content inside the modal window, hence the modal window becomes transparent. how can i assign the draggable d...

 
11:42 AM
HI friends
Im working with highcharts type scatter
and i want to colors the point of same data show with same color
 
found this in our app today
user image
4
 
Are you Sharon ? If not you should probably ignore it.
 
12:03 PM
@Mosho script9.js? Are there also 0-8?
 
@OliverSalzburg 0-26
but that wasn't the point :P
@dystroy I am indeed Sharon
 
@Mosho XD that is gold
 
@Mosho that might not be the point but that's baaad
 
One of Benji's contraptions no doubt
 
@dystroy what is
 
12:12 PM
@Mosho Naming your flies script0.js to script26.js
 
@dystroy they're modules and named like that when I build the project
 
you mean it's the build tool which gives those names ? But then why not just one file ?
 
and a little revision string is appended as well
it was a single file, but it's huge and we're doing lazy loading on a per page basis to speed up the app
 
and why not have a meaningful name ?
 
because it's irrelevant, it's minified code
 
12:15 PM
@Mosho ... you didn't really say that now...
 
wat
it's not code that I touch and/or debug
for the most part
 
Please tell me you don't have files like script\d+.js in your source...
 
nope
 
Good, that's what matters.
 
only after it's built
with gulp
 
12:18 PM
@Mosho Wouldn't gulp do all the processing and finish with the single minified file to begin with?
Why do you have this intermediary step?
 
@SecondRikudo it's not intermediary, that's how it is in production
 
@Mosho wat
 
wat
it's lazy loaded
from a CDN
because it got huge and hurt performance
 
Alright, sounds reasonable.
 
it better, I worked hard on it :P
 
12:21 PM
sup
 
0
A: why is the function argument not overwritten on creating variable of same name inside the function?

Naeem Shaikh you are passing the variable a to the function check as a parameter.function checkScope(a) { inside the function you are again trying to declare var a, var a; Both of these are within the same scope, right? i.e both inside the function check(); And according to docs, that var a inside the fu...

 
> Both of these are within the same scope, right?
nobody knows, nobody sane understands JS scoping rules
 
!!s/nobody/I don't/g
 
@SecondRikudo I don't knows, I don't sane understands JS scoping rules (source)
 
Sorta XD
 
12:31 PM
herp derp
 
Scope rules are easy in js. There's only function scoping.
Sorta.
 
@BartekBanachewicz It's more than nobody sane would want to read through the few pages of the spec on declarative bindings and the such to find in what order the bindings are fetched in such a stupid corner case. In less stupid cases, it's rather simple.
 
(I don't mention the 2 corner cases of course, one of which is removed from es6)
 
the point is about what's the behavior when you have such a code :
function f(a,a,a){
var a = "something";
...
}
I guess it's implemented according to the specs, I won't read their detail
 
should be a hard "fuck you" error
 
12:37 PM
Well, you know, I'm the first one saying nobody is stupid, just ignorant or having a differing opinion etc. This case is just being stupid.
 
Well... You'll see it in your next issue of SO news... which is full of useless junk
 
12:49 PM
@FlorianMargaine let
 
1:07 PM
@BartekBanachewicz Server status code 601: Fuck. You.
 
user image
3
 
Funny.. I've heard breadboard used all these years but I never really made the association with bread
 
1:25 PM
I never understood why it's called a breadboard in the first place
 
@MischaRodermond 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.
 
@MischaRodermond I think because it has holes in it
At least that would make sense
By that logic though, they could have called it swiss cheese board
 
Haha exactly
 
they do come in very handy though when tinkering
 
@Retsam If you have some time, this would be a good idea to come to the TWC room and launch a few games, you're the one with the lowest number (apart @darkyen00)
 
1:41 PM
Our final project in electronics class in high school was to use a clock to continually turn off and on a led (since providing full power to an led is wasteful, this provides the same effect as being on)
I was so psyched once it worked
Haven't touched a breadboard since
 
posted on January 15, 2015

Well, that was quite a ride. 50K hits on my Angular article (which is a LOT for me), and still people trickling in. Predictably, trolls came out in the comment threads on Hacker News and Reddit, but also some thoughtful reactions, and even a few who defended my article. It almost seems as if the comment quality is going slightly up. That’s unexpected, and nice. (For the record, I’

 

« first day (1552 days earlier)      last day (3389 days later) »