« first day (1654 days earlier)      last day (3288 days later) » 

12:00 AM
Does using named functions like that even work with Angular? I'm guessing it does?
 
Hello everyone! Do you know Kruskal's algorithm?
 
@taco yeah it does
 
ok
 
@vamsiampolu use a controller, get rid of $scope
 
12:06 AM
so in the 'watch expressions' bar in the Chrome developers console proto never the name of the prototype object it inherits from in the prototype chain? only evaluates to object?
@rlemon
 
ask on main
 
kk
 
My question is this:
0
Q: The ouput of Kruskal's algorithm is a minimum spanning tree

user159870I want to show that the output of Kruskal's algorithm is a spanning tree. We suppose that S is the output of Krskal's algorithm. To show that S is a spanning tree we have to show that S is connected and acyclic. How can we justify that S is connected? S is acyclic because each time the algo...

I hope someone can help me!
 
Hey JS folks. I have a question; I'm horribly confused about how to implement something correctly in JavaScript.

I've written a tiny library to control a UI component some other scripts on the site use. (And they interact with it through that library.) Specifically, it's one of those semitransparent black UI blockers that show up behind modal windows. The blocker needs to be on for as long as anything says it needs to be on, and then closed otherwise. I *think* the only sensible way to implement this is for each component to obtain a mini-controller object from the blocker controller, and
In short: (a) Does this sound sane? (b) How do I implement that mini-controller? If a component calls uiBlocker.getController();, where uiBlocker has some hidden functions due to being created via a self-executing anonymous function, how can I pass through an object that will still have access to those hidden functions so it can send signals to uiBlocker?
At the moment I'm likely to just add a uiBlocker._update(); function which anything can touch, but which hopefully only the mini-controllers will touch. Ideally, only those mini-controllers would be able to access it.
(Ugh I hope the above is clear. My head is spinning around this stuff.)
 
In auth applications, what other security standards are there except for hashing the password?
 
12:17 AM
Maybe a little bit of code will be a clearer explanation.
 
@StevensHaen pick a standard and follow it?
That's too broad of a question, really...
 
So, you hash the password. Is that secure enough to go to production?
How does a cloud app differ from a purely desktop one?
 
12:35 AM
GTAV IS 60GB?!
10 messages moved to JS trash
 
!!stat StevensHaen
 
@taco Stevens Haen (http://stackoverflow.com/users/4608977/stevens-haen) has 37 reputation, earned 0 rep today, asked 10 questions, gave 0 answers, for a q:a ratio of TO͇̹̺ͅƝ̴ȳ̳ TH̘Ë͖́̉ ͠P̯͍̭O̚​N̐Y̡.
avg. rep/post: 3.7. Badges: 0g 0s 8b
 
@StevensHaen cloud is just a buzzword
 
So that would be like a server app then
?
 
yeah
Denise: I'm sorry, Rod. What were you going to ask me?
Rod Kimble: Um, I was gonna ask you who you think would win in a fight between... a grilled cheese sandwich and a taco.
Denise: Is that what you were really going to ask me?
Rod Kimble: Of course.
Denise: Well, I think the grilled cheese sandwich - in a fair fight. But if it was prison rules, I'd put my money on the taco.
 
12:57 AM
I don't even know what to think
this game is going to take 3 hours to dl @ 5 meg A SECOND
 
@rlemon which game?
 
in my day my entire HDD could be downloaded in less time
 
GTA V
 
@SomeKittens GTAV
 
HAH
 
12:58 AM
60gb
 
I can't math
 
@rlemon It's worth the wait, and good training for Heist load times
 
biggest game I have aside from this is Batman
 
Is anyone out here using AngularJS? What is it good for?
 
real time dashboards
 
1:00 AM
@StevensHaen google.com/…
 
todo applications, apparently
 
@StevensHaen SPA's, Dashboards, etc. Anytime you want to do something on the client more than display text.
 
He's probably just gonna say, "what's an SPA"?
 
where you go to get your nails did
 
@taco Exactly
 
1:01 AM
lmao
I got a good belly laugh out of that one
 
!!tell StevensHaen google spa
 
If I want to display more than text I use CSS, no?
 
did that clear it up?
 
It's where Slipping Jimmy set up shop
 
1:02 AM
googling "spa" is not a successful strategy
 
!!tell StevensHaen google angular SPA
 
@SomeKittens omg did he really ask? LMFAO. I blocked him, so I didn't know
 
SPA === Single Person Applesauce
 
@StevensHaen websites with state.
 
1:03 AM
it is a depressing applesauce that only appeals to the very forever alone people
 
I guess I'll unblock him to pick on him some more
@StevensHaen you're not gonna make it far in IT if you can't google
 
!!urban google-fu
 
@rlemon [google-fu](http://google-fu.urbanup.com/52407) google-fu

Function: noun
Etymology: google.com (search website) gOngfu skill, art
Date: 2003

: the ability to quickly answer any given question using internet resources, such as a search engine
 
!!stat Luggage
 
1:15 AM
@Luggage You (http://stackoverflow.com/users/956900/luggage) have 330 reputation, earned 0 rep today, asked 3 questions, gave 8 answers, for a q:a ratio of 3:8.
avg. rep/post: 30. Badges: 0g 3s 11b
 
1:29 AM
@taco I love NFEs a lot,this is my goto JS book leanpub.com/javascript-allonge/read and the author seems to like them
@phenomnomnominal I inherit the scope,can I still create a controller within the directive ?
I think it should be : It's actually a reasonable approach to learning. Try, crash,burn and repeat
I never understand why angular used scope: false and scope:true to mean what they mean,it drives me nuts always having to look it up
 
Someone tell me the secret to large project management
I get the gist, but I want to learn from other people's experiences
I'm tired of trial and error >.< :(
 
@Shea experience
 
1:45 AM
Yeah that's what I'm saying, I want yours. Gimme your experience points please
I wish it were that easy
 
@Shea There are two types of problems: Those that can be broken down, and those that are easy.
 
also KISS
 
project management is all about tackling the first category
 
@Shmiddty Keep It Stupid, Stupid
4
 
that's the ticket!
 
1:47 AM
My only real experience with it, was with @Zirak's build script for the SO chat bot
 
@Shmiddty Kill It Silently, Secretly.
 
Which, actually, has had a major influence
 
@Shea Are we still talking about large scale?
 
@Shmiddty Needs more MongoDB
 
Now that's webscale!
 
1:49 AM
Not really so much a large scale, but anything's better than the way I've been doing it
 
Wait, are we talking about project management (the profession) or tools to manage projects (i.e. grunt/gulp)?
 
Say build.js glues a directory of files, and produces product.js...
I've been skipping the build.js, and just doing everything in product.js
 
So you're not actually talking about project management. You're talking about managing project resources?
 
In that case, ignore everything I've said
 
And I've been warned the entire time I've been coding, but just never had an interest in taking the advice
 
1:52 AM
You can spend an afternoon restructuring it if you need to
 
Until it got to a point when it actually started to cause me to lose interest in coding
 
it's not that big of a deal
 
Wait, you were working in the built files?
I hope I'm misunderstanding what you're saying
 
Unless it's actually a large-scale production project, then you'll need to plan the changes
 
@Shmiddty Yeah, more so some advice in knowing what to expect
 
1:53 AM
Try to keep files organized?
Naming conventions are good
Set up task runners to perform repetitive processes
 
If I dove right in with what I had now, everything would end up in product.js, but realistically, I know there's going to need to be more than one js file for an entire site
 
Have you done requirements gathering yet?
 
!!choose cryptopals chrome_extension
 
@SomeKittens That didn't make much sense. Maybe you meant: whoosh
 
@CapricaSix oh shush
 
1:56 AM
@Shmiddty nope, but with that said, you're starting to paint a picture on the type of things I need
 
1. Know what you're going to work on
 
I'm just having a hard time putting into words tools/steps I'm missing
 
2. Break the work into chunks
3. Do the work
4. Make sure the work works as it should work work
 
That's actually brilliant, I've never been one to brainstorm
 
5. Get money
 
1:58 AM
Keep in mind, I've got about 8-9 years of experience in learning by Google, with not team experience whatsoever
 
sounds like an excuse
 
I went so long not realizing I was missing something vital, there was a point that what I felt "what's next to learn?" I focused it towards becoming a perfectionist
 
That's great
 
No no no.... I'm to blame, it just took me too long to realize it
 
@Shea Hey, props for finally getting there
No more Expert Beginner for you!
 
2:01 AM
Well the problem is, that now I'm such a perfectionist, that tend to turn scripts that are meant to be simple like @Zirak's build.js, into entirely new projects of their own
 
It's a phase - you'll learn from it
 
And I tag him there, because I think he can back me up on that with some of my ridiculous pull requests on just the build.js alone
 
I don't understand the purpose of this conversation
 
Well, @Shmiddty you've actually already helped me a lot with just what you've said
Now I'm trailing off into a "how could I have been so blind??" rant
Don't mind me, I just had an epiphany is all
and just like that, I g2g. good night
 
@Shea I am in a similar situation,I might be expert beginnering myself,I would like to know what mistakes do you think you made and how someone else can avoid them?
 
2:06 AM
@Shmiddty what's wrong with your project? Project management is more necessary in a group environment. Maybe you just need a framework
 
@vamsiampolu One mistake I've made is not asking specific questions and instead relying on gaining knowledge only from incredibly-broad questions.
 
@taco I never said anything was wrong with my project
 
@Shmiddty why are you asking this then "Someone tell me the secret to large project management"?
 
@taco Are you daft?
 
@Shea What problem are you trying to solve
 
2:09 AM
or just high?
 
@Shmiddty Hey, taco isn't trying to insult you
 
Fuck off. So I typed the wrong username, lol
Sorry, I was scrolling up. I should've clicked the arrow next to what Shea typed. Instead I went off memory
 
for example,in my project I started off without a module loader or pub/sub just using the global namespace (there are a lot of leaflet dependencies that need shimming,a lot of my modules and a few plugins I created too),I am actually using minified files when developing and a grunt config which lists the files in order. facepalm
 
Good Morning.
 
i want automtic registration of modules because other people will not do shim config and loading of unbundled dependencies while bundling in production...thats why im trying jspm for this project
 
2:17 AM
@rlemon I take it you got GTA V for PC?
 
yup
 
and Eclipse hates npm as far as I know,it crashes when you have grunt tasks and stuff,I dont know if eclipse can handle that,I have added nodeclipse but would like to build a composite system which allows both grunt/gulp on nodejs console and apache
 
It's a fun game. I keep going back to it. Been playing it a bit since the Heists release
 
Another day writing codes ...
 
@vamsiampolu if you're not splitting your logic out into controllers you're just asking for headaches
 
2:20 AM
i have revealing module patterns for each file which manages access to a value and modifies it
 
I wouldn't play Heists with strangers much unless you really have to. Some people grief, some just leave, and the Heist ends.
 
@taco I would like to have a controller that does not force me to SPA,the stack is jQuery,Q,lodash,Handlebars and Leaflet stuff,I might have to add pouchdb and d3 to it
 
that sounds like a horrible stack
 
@phenomnomnominal what would you recommend(i cant use a SPA framework here)
 
why not?
If you can't use an SPA, do everything on the server
 
2:27 AM
@vamsiampolu what do you mean? I have a multi-page app written in Angular
 
@phenomnomnominal the reasons for not using SPA is that there are two apps,one of which is driven by SAP and the other driven in a browser,code must be reshared between them
@taco is it on github?how does one do that?any resources to start out with?
 
Maybe we're not talking about the same thing? I use Angular's routeProvider. It's a closed source app I wrote for my employer
 
and what do you guys think of SAP-UI5,i saw someone write an XML view it got compiled with the ids changed
 
The same way you specific a .controller, you append a routeProvider in .config docs.angularjs.org/tutorial/step_07
 
@taco routeProvider vs ng-route ??? i dont get it
 
2:34 AM
@vamsiampolu yeah just append .config(['$routeProvider', routeProvider]) to your module setup and use a routeProvider function as shown in the tutorial
 
ui-router is pretty much the standard
 
function routeProvider($routeProvider) {
    $routeProvider
        .when('/foo', {
                  templateUrl: './templates/foo/myView.html',
                  controller: 'FooController',
                  controllerAs: 'foo'
              });
}
 
i saw a video on ui-router,seems interesting but maybe a little daunting for me...
i think it's called a SPA if changing the URL triggers no page reload?
i have done the routeProvider thingy in Angularjs 50 examples video tutorial
@phenomnomnominal the Q is because I have to chain ajax calls one after the other(max 5,min 1),I took the max and distributed the work across several points to avoid blocking event loop ,this is because the UI must be built based on mysql table data
@taco can we use a router that loads a controller that reacts to certain state changes without changing the url just like ui-router but using jQuery or an independant library
 
@vamsiampolu I've never looked into state management
sounds like maybe you'd need to use $stateProvider
 
@taco im not using angular,i dont think management will let me(they mostly dont care about code quality,just about reusability and deadlines)
 
2:47 AM
I'm not the person to ask about that. Haven't used ui-router
I don't think routeProvider does that
 
@taco i am pretty sure it does not(or did not),the guy clearly said so in the aforementioned video about ui-router and I found nothing about it when I read the docs
 
lol @rlemon
you got GTAV eh?
let me know how you like it
 
yup
will do once it is dl'd
1 hour to go
 
was loling about the messages in the trash btw
yeah its a HUGE game...
 
10gb bigger than batman
better be worth it
 
2:50 AM
@rlemon Get the Karuma car. It's bullet proof! It'll unlock in one of the heists
People can't drive up and pop you off while driving around as easily
It also looks pretty good
 
@phenomnomnominal my first opinion on DI in javascript(I know very little about DI except what this blog post said krasimirtsonev.com/blog/article/Dependency-injection-in-JavaScript) pastebin.com/x2sShdXK
@taco $stateProvider == ui-router github.com/angular-ui/ui-router/wiki
 
3:25 AM
Hey guys
 
@RawadMerhi 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: Why isn't JQuery One Page Navigation ChangeHash value not working?

Rawad MerhiI seem to be having an issue with my one page navigation website. When I push my keys down or even scroll down the links don't change. What am I doing wrong?There is a video that I posted about the issue I'm having. https://www.youtube.com/watch?v=yK_tjT536bA

 
 
1 hour later…
4:28 AM
@SomeKittens npmjs.com/package/rekwire 79 people downloaded this apparently
that's sort of very hilarious
 
That's a cute little module :)
 
4:50 AM
uuuuh I may just have understood how a category of cool things are done :D
http://codepen.io/MateiGCopot/pen/jPEmNe
 
@towc nice one bruv
 
@royhowie congrats!
 
@royhowie that's a cool idea, but does it have a major hit on performance?
 
5:11 AM
@taco it's really just a wrapper
it's 6 lines long
I'm pretty sure it's just one operation for each require
so I don't think it'd have any effect on performance
return require(path.join(root, String(localPath)));
 
 
2 hours later…
6:45 AM
Ngggh... I hate going around adding adForm tracking to a solution :/
 
@taco they're not running
@taco that said, it'd be like having 300 processes -- not very weird
 
7:04 AM
Someone is about to have a really bad day ^
 
that must be fake...
 
of course it is fake
probably an ad
spot on
 
7:37 AM
@rlemon Interesting. I wonder why the toads lead a "largely solitary life"
 
@SomeGuy because they're toads, duh
 
Morning
Car is in the garage, perfect time for the buses to go on strike. ._.
 
@BenFortune Sounds like it's work from home day.
 
@MadaraUchiha Sure is :)
 
@MadaraUchiha every day is work from home day
 
7:48 AM
yeah
 
Not everyone is that lucky
 
in fact, no : I'm in France, so not every day is work from home day, many days are holidays too
3
-1
Q: why I can't get score in javascript?

endah tri utamihow to get a score when all the questions have been filled? I've tried this way but the scores were obtained only 20 when the data in the input is the same as the answer. for(i=0;i<tnya;i++){ //loop answer of question $("[name=question-" + i + "]").each(function(){ ...

Should we close it ?
 
@dystroy <3
 
"Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example."
 
7:55 AM
OK. I don't delete my answer, it might help OP
 
now that we're on the deletion ship, can stackoverflow.com/questions/29361502/… be nuked already?
it's so bad it's literally making me go insane
 
Why even bother to edit it?
 
It's literally making you go insane ? You should stop dangerous activities like SO for a while then.
2
 
@ivarni oh, because "Thanks"; I figured I'd fix it, in the case it doesn't disappear
@dystroy I know, I know
 
This one needs another CV : stackoverflow.com/questions/29890044/…
 
7:58 AM
can someone point me to an interesting github javascript project
please
 
@lovetolearn what are you looking to do? anything?
 
@lovetolearn what kind of project ? What are you looking for ?
 
anything - not really in to games
 
7:59 AM
 
"build|failing"
damn
 
@dystroy hehe
 
@dystroy it's actually really annoying
I tried to update npm today and it failed
and it removed npm from my bin as a part of the installation
because you can't write to some AUTHORS.md file
 
npm seems to be in trouble, isn't it ?
 
8:01 AM
so then when you try it again, it's not there
(the easiest fix is brew uninstall npm; brew install npm; sudo brew postinstall npm)
 
morning
 
morning~
Sometimes I wonder whether I'm the only one using Windows here...
 
Nope :/
 
I use Windows for all my development
 
same
 
8:10 AM
Printer steganography is a type of steganography – "hiding data within data" – produced by laser printers, including Brother, Canon, Dell, Epson, HP, IBM, Konica Minolta, Kyocera, Lanier, Lexmark, Ricoh, Toshiba and Xerox brand color laser printers, where tiny yellow dots are added to each page. The dots are barely visible and contain encoded printer serial numbers and timestamps. Unlike many forms of steganography, the hidden information is not intended to be available from a computer file, but to allow serial number and time of printing to be determined by close examination of a printout. Color...
Interesting, never knew this.
 
Windows at work, a mix between Windows, OSX and Ubuntu at home (I have a tripple-booting iMac)
 
I never got on with Apple
 
My next computer is NOT going to be an iMac
 
<- can only deal with unix systems
 
Jesus christ, my boss has committed images into the repo...
 
8:17 AM
what does @ refer to in this code @function reverse($list, $recursive: false) {
   $result: ();

   @for $i from length($list)*-1 through -1 {
      @if type-of(nth($list, abs($i))) == list and $recursive {
        $result: append($result, reverse(nth($list, abs($i)), $recursive));
      }
 
@lovetolearn What kind of language is that?
 
no idea
 
 
8:18 AM
it's sort of very important
oh
that's compiled to CSS
 
Sass by the looks of it
 
Looks like SASS to me.
 
got it, its jsut css compiled to scss
 
8:19 AM
@lovetolearn the other way around
 
@BenFortune And now they're in there forever :)
 
@JanDvorak looks like a template
like Razor
 
I only know that my brain throws HorriableInhumanSyntax error as soon as I try to read it.
I had thought SQL is bad.
 
My brain has permission problems
 
8:35 AM
@ivarni Just commit the HEAD into a fresh repo and push -f ;)
Saves tons of space
 
@OliverSalzburg ...
154
Q: How to remove/delete a large file from commit history in Git repository?

culebrónOccasionally I dropped a DVD-rip into a website project, then carelessly git commit -a -m ..., and, zap, the repo was bloated by 2.2 gigs. Next time I made some edits, deleted the video file, and commited everything, but the compressed file is still there in the repository, in history. I know I ...

 
I just asked a question:
0
Q: Concatenate files on linux with Gradle

dystroyHere's my current Gradle task : task concat << { println "cat $localWebapp/sc*.js > $buildDir/js/sc.concat.js" exec { commandLine "bash","-c",'cat',"$localWebapp/sc*.js", ">", "$buildDir/js/sc.concat.js" } } Even while the command I print using println is correct (it's work...

I would have preferred to use make rather than gradle but my windows colleagues weren't enthusiastic for make...
 
I don't have huge files, just lots of unnecessary ones. :)
 
@dystroy If you use bash -c shouldn't the following arguments be enclosed in quotes?
 
@OliverSalzburg You mean like "bash","-c","'cat'"?
 
8:43 AM
Like, what about commandLine "bash","-c","'cat $localWebapp/sc*.js > $buildDir/js/sc.concat.js'"
I'm not sure about the quotes in this context
 
Doesn't seem to work
 
I just noticed that there is a difference between bash -c cat .vimrc > test and bash -c "cat .vimrc > test" when I manually run them
The former creates an empty file, the latter copies my .vimrc
 
@FlorianMargaine Found the answer
1
A: Concatenate files on linux with Gradle

Florian MargaineInstead of commandLine, it seems executable works: task concat << { println "cat $localWebapp/sc*.js > $buildDir/js/sc.concat.js" exec { executable "sh" args "-c", "cat $localWebapp/sc*.js > $buildDir/js/sc.concat.js" } }

 
8:58 AM
!!summon 139
!!unsummon 197
 
1
A: remove selected 'a' tags and change tag name in php with DOM or simple php parse

Mujahed AKASyou can also do it using ajax. put your tag in in a div with id. <div id="chage_h2"><h2>header</h2></div> following is your script <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> <script> $.ajax({ cache: false, asyc: false, ...

 
@MujahedAKAS 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.
 

« first day (1654 days earlier)      last day (3288 days later) »