« first day (1109 days earlier)      last day (4064 days later) » 

21:00
There's a fun factor that somehow gets transitioned to funny
@rlemon Ok :)
@rlemon also, "too broad"
Fuck I can't speak right now
@rlemon I am listening to a radio station based of what you listened to on grooveshark. So far: 30 min orchestral, harry potter dubstep, jazz and halo. GJ.
:)
darn tootin
good coding tunes
21:01
@mikedidthis That sounds awful.
Kids these days.
the HP dubstep is actually really good
@rlemon @loktar... drop the key for a texture?
that looks better
autotools... so many files
21:04
maybe make the texture half opacity
but play with it ??
okies,... ty for the CC... it helps!
Does anyone know of a good choice for storing syntax heavy documents (like medium articles, google docs) friendly with nodejs?
a database
@rlemon any?
21:04
@lawm what?
@FlorianMargaine I see the vi upgrade naming convention seems to just be "keep adding letters"
!!afk smoke
@Shmiddty Apricots are people too!
vi => vim => vimr
@Retsam hehe
@Retsam nothing is done in this "upgrade" though.
yet.
21:05
@Retsam all I can think is "When you're this VI, they call you MR"
It's like they're trying to play Ghost, except without actually spelling out real words.
for now it's mainly /bin/true
@FlorianMargaine like, is it wise to use mongo to store markdown documents?
@lawm why not?
Well, it's a cool idea, at least.
21:07
@FlorianMargaine alright, just wondering if there was a proprietary solution
@mikedidthis Shmiddty is afk: smoke
it just seemed weird in my head to put markdown in my json
21:13
When you upload for example a .php file, is it possible with Javascript to get every code that the file contains and store it into a variable?
Well forget the word 'possible', replace it with 'how'
@JonyKale is the javascript in the php file?
because if so, use the document variable built in
No, let's say you have a paste system, like pastebin.com, and you want a feature that lets you drag multiple files at once into the page & the javascript will get the code from each file, and paste it automatically and give you links
You would need to do something, so the javascript will open the file and read what's inside and then send an AJAX request to paste it and get it's link
The files must be code files (.php, .c, .java and so on)
yeah what @Retsam said
That link should explain how to let them drag&drop files, and how to read their contents as a string. From there it's just string manipulation, if I'm understanding you correctly.
21:20
@mikedidthis That should be "you're welcome"
-_-
@Shmiddty BROOOOOOOOOOOO.
@BenjaminGruenbaum Hey, sometimes curiosity just gets the best of you, and you wanna know the fastest way to calculate something. I think that is just what he was trying to ask.
@Case 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.
@Shea yet half of his suggestions don't even work
@Shea Yeah, it's just a funny question to ask.
It's like "what's the fastest way to add two numbers"
21:23
I agree, it's kind of hard to ask that, without sounding too noobish
There is one way to do it :P
Probably, "how do I benchmark something."
The only other way that makes some sense is a-b === 0
I'm shoving a bunch of angular in my old-fashioned web app, and I have a bunch of directives as well as modules that have routing controllers and whatnot. If I want to include a directive that is included on every page, and not break my various modules that have routing controllers in their own modules, is there a good way to do this?
@BenjaminGruenbaum two. Two or three equals signs
21:24
@Case Why would it break any module?
because, as far as I can tell, I can only have one ng-app per page
Yeah, you (can) only have one ng-app per page. I still don't see the problem here. You want to lazy load the directive code? Is that the issue?
and we're back.
The directive code exists in a different module than my various page specific apps
@SomeKittens Welcome back!
21:26
(In that case use $compileProvider)
(which each have their own own module)
@Case You want to include directive from one module in another without including the rest of the module? Is that the issue?
can you explain a bit more about that?
I can, but I'm not sure I understand your problem very well :)
@Benjamin, I think that is what I want to do? I won't know until I get to a particular page what module I want. For example, I have a library module with routing used on a library page, and a different feature module on some other page. Yet, on all pages, I want to include a user status module providing a directive that allows a user to login, etc.
I've already written the other modules and am adding in the user module now much after the fact, and realized that when I tried to include that on each page it broke my library module, etc because of multiple ng-apps.
21:30
You don't bootstrap multiple modules in one another. You include them as a dependency when you do angular.module and then use code they register
There is no notion of submodules (in Angular 1 at least)
I can easily add the user status module as a dependency to my library module and other modules, but what about pages I'm not using angularjs on? They wouldn't get the module.
(not using it on yet, I mean)
Wait, when you say module - what do you mean?
I thought you meant an Angular module
(As in, one you create with angular.module)
angular.module('library',[stuff])
Did you just mean a JS file?
No, I mean real modules
each purpose specific angular app I wrote in a module titled by that feature, but now I want to use angular on all my pages in addition to the purpose-specific features
21:33
Why would you have a different Angular app for each page?
because this is an old-fashioned php website with pages, and I'm replacing existing components with angular components where it makes sense
so in my library I'd replace a php view with <div ng-app="library"></div> and include that module.
e.g., it is not a SPA, but more like multiple SPAs per feature right now.
Ah, and you want multiple ng-apps for widgets, right?
yes
In that case what you want is one ng-app for the page and multiple ng-controllers where that controller is the basic construction unit and not the app.
A controller is the basic building block for scope.
right, I have controllers already for each feature module
I don't want all my application controller logic in one module because that would be ginormous
21:39
Right, each component is a controller - you can have multiple controllers in your app.
The problem is that each app gets one dependency injector at this stage - so there is really no good way to scope multiple modules and directives in a sensible way (without resorting to string namespacing) - they're working on that and it's on the list of a future version.
Having one ng-app should not be a limiting factor, since the components are (visually) defined by a controller.
right, but I already have controllers defined by the various feature SPAs. I wouldn't want to override their handling.
Why would you need to override their handling?
I thought adding an overarching module with a controller would do that automatically
or maybe I am confusing myself with routing.
Not in Angular 1. Angular is currently built for SPAs, it works well when the whole page is an application. The way right now is to put each "component" logic in a controller and share common UI logic in directives and common business logic in services/factories etc.
Oh, you need a multi-resource router? Is that the issue?
I think I need to give you a fiddle
let me write one, give me a couple minutes?
21:44
I'm not sure I'll be here in a couple of minutes, but you can ping me and I'll have a look tomorrow or one of the other room folk who knows Angular like @AbhishekHingnikar or @m59 or @Shmiddty
(I'm already using the router in my feature SPAs, that's what I'm afraid of breaking with a controller in an overarching module)
(In that case you need the angular-ui router and not the one that comes with Angular - it's much more capable and I almost always end up using it :))
My issue is that I have put my common UI logic into directives, but I can't get my directives to my page since I can only have one ng-app, which is my feature module
You can import modules you used as ng-app as dependencies of other modules.
Can the SPA modules "get along" with each other though, since each module has a $routeProvider with a default route?
I wouldn
err
I don't know how then to tell the page which module to use as the routing engine
or is that what you mean by using angular-ui instead?
21:55
@Case Yes, exactly. ui-router is much more advanced than the regular router.
Okay.
I tried to use ui-router when I first starting using angular in June, but I couldn't get it working at the time. I'll give it another go.
Good luck :)
thanks. I haven't found any resources for dealing with the nested routing in separate modules, is that something you've done or know of resources for?
I know it's something that they have planned for Angular2 - I personally wouldn't use Angular for widgets right now. I think it shines best in actual SPAs that are just one page.
I'd probably go with a much smaller framework. Angular is pretty huge.
hmmmmm
Do you have a recommended framework then for widgets, that plays nicely with angular? I've spent a lot of time getting a build system working and everything...
22:07
If you're commited to Angular I'd keep using it, it just doesn't do step-by-step migration particularly well.
I might go with something like Knockout that's a lot more lightweight, but only if you don't intend to move to a full SPA. If you want the whole thing to be an SPA eventually - definitely angular.
yeah. I'm kind of in love with the templating system. And the fact that it really really wants you to unit test, and makes that super easy.
Anyway - good night
k, thanks!
!!afk sleep
@BenjaminGruenbaum Just go already!
22:54
Spaces vs Tabs, what're the advantages/disadvantages of both? Why does jsLint have a fit when I use tabs?
@monners Whichever you choose, you're wrong
@SomeKittens Is that to say that both are fiercely contested by the other, or that I'm just destined to choose the wrong one?
@monners To enforce consistency. You can tell jslint to ignore whitespace.
@monners Yes.
@SomeKittens How descriptive...
22:57
Also, spaces enforce consistency across a project, while tabs let the individual coder choose how far things are indented.
I prefer tabs. Does that make me a bad person?
What's it called when you have a mega music-crush on amazingly talented twin sisters who are both gay? Because I have it.
Homoerotiphilia
This room gets weirder every day
23:13
@SomeKittens You say that like it's a bad thing!
user1125394
!!convert 1 eur bitcoin
@cↄ btc aint no currency I ever heard of
@cↄ bitcoin aint no currency I ever heard of
!!afk hometime
@Shmiddty Apricots are people too!
23:42
anyone seen this before?
23:54
@monners on spaces vs tabs: It depends on the language, most have a convention that +90% of existing projects use. C/Java/PHP tabs; Ruby/Python/JavaScript spaces. However always continue the convention of the project, even if you disagree with it.
If it is your project, do whatever the hell you want, just be consistent.
@whitehat101 Roger.
@Samson Looks like an encoding error
No mousemove event?
ohh fine!
posted on October 29, 2013 by Victor Rodriguez

Schneier on Security: How the NSA Attacks Tor/Firefox Users With QUANTUM and FOXACID Tor is a well-designed and robust anonymity tool, and successfully attacking it is difficult. The NSA attacks we found individually target Tor users by exploiting vulnerabilities in their Firefox browsers, and not the Tor application directly. NSA monitored calls of 35 world leaders after US o

23:59
^_^
grumble grumble something about no respect grumble grumble
I mean, THAT'S MEGA COOL @rlemon

« first day (1109 days earlier)      last day (4064 days later) »