« first day (1783 days earlier)      last day (3161 days later) » 

10:01 PM
@Zirak mnemonic way to remember: it's like cp
 
Give up, it's hopeles
s
SSSSSS
sssSSsssSS
 
As in command originalfile newfile
Anyway. I can't stop thinking about this USB auth project. Using libpam and writing/reading to/from raw block device sounds so exciting.
 
I could give you English homework to take your mind off it, if you want
 
We will begin operations to move sites back to our New York data center in about 2.5 hours.
 
@Zirak oooOO0ooo000O00ooo0ooo
 
10:11 PM
!!s/ / b/
 
@SomeKittens @Zirak boooOO0ooo000O00ooo0ooo (source)
 
@Zirak relax. enjoy
 
When writing a node app, what kinds of packages should I install globally and what should I install locally?
Stuff like babel is apparently supposed to be global
 
I install everything local unless otherwise needed
like express you can install globally, and people do.
I just don't see the point, I'm not using the scaffolding or other cli features
 
I like the scaffolding because I always forget something
 
10:19 PM
What about plugins for building?
Should I expect other programmers to install them globally?
 
@KendallFrey usually, the only global stuff is CLI tools
a lot of things have both: grunt-cli and grunt
@KendallFrey Locally
 
I'm not making an npm package, so I can't track dependencies. Does that affect anything?
 
even (as I mentioned above) if you use grunt/gulp, you'll need a local version
you can still use package.json to track deps
 
@SomeKittens a local version of grunt/gulp?
 
npm install
 
10:21 PM
@KendallFrey Yeah, so each project can run its own version of grunt/gulp and not need to worry about what's globally installed
 
mmk
do I need to commit node_modules?
 
What then?
 
@KendallFrey just package.json
 
bleh
 
10:22 PM
I usually just .gitignore my node_modules
 
one more thing to learn
JS dev is so fucked up
 
Just package.json? How are you supposed to distribute scripts?
 
@KendallFrey npm install installs all deps listed in package.json
 
Oh, fuck me. Too tired to try to talk here.
 
inversely, npm init will create a package.json based on the installed modules in node_modules
 
10:24 PM
@zirak does your shitty extension do anything vimium doesn't?
 
oh nice
What about the separation between modules for my build system and modules for my app?
 
@Mosho Not that I know of
 
two package.jsons?
 
devDependencies
 
10:26 PM
Still haven't figured out how that works
 
afaik you'll have to move them there manually.
 
no, npm does that for me
 
157
Q: How do you install "development only" NPM modules for Node.js (package.json)?

Lance PollardI have this in my package.json file (shortened version): { "name": "a-module", "version": "0.0.1", "dependencies": { "coffee-script": ">= 1.1.3" }, "devDependencies": { "stylus": ">= 0.17.0" } } I am using NPM version 1.1.1 on Mac 10.6.8. When I run the fo...

 
are they both in the same node_modules folder?
afk sorry
 
@Zirak :X
btw, I checked today and I get 70 wpm with the keyboard
 
10:29 PM
@KendallFrey my default install is npm install package --DE
 
10:41 PM
ok, resuming
 
@KendallFrey yes
 
so my build scripts need one set of modules, and my app output to dist/ needs another set of modules
I think
 
npm install --save my-thing vs npm install --save-dev my-thing
and npm install <- all the things npm install --production <- no dev
 
Do I need to copy the production modules to my output folder?
 
10:45 PM
I mean, I guess I could use ../module in my require or something, but ew
 
what are you making?
 
a web app, is the idea
 
require implicitly searches node_modules
 
right now it seems to me mainly a mess
 
any javascript way to get pdf title from url
 
10:48 PM
@user1740058 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.
 
there is js pdf parsers, but it is probably better done on the server.
 
@SomeKittens I know, but I'm guessing it won't search up a directory
 
its not a pdf located on my server
 
servers can download files
usually faster than clients
 
@KendallFrey er, why put it in a different dir?
 
10:50 PM
@KendallFrey I generally have node_modules for obvious stuff, and modules for my hand crafted ones
 
So my output is isolated in one folder, for organization and easy distribution
 
require('express');
require('modules/foo');
 
user is suggesting useful links to my site. I want to be able to display link and title of pdf if available.
 
I don't want to dump my output in the same folder as my build scripts
 
10:52 PM
I can't help there
I don't run a build system
I'm a pleb
 
and having it in a subfolder also makes .gitignore easier
 
@KendallFrey it does
 
> If it is not found there, then it moves to the parent directory, and so on, until the root of the file system is reached.
 
oh brilliant
 
10:53 PM
@KendallFrey What are you using for build? Browserify?
 
babel right now
probably adding gulp
I have no web content yet
but I will
What happens if I strip out everything from package.json except dependencies?
 
I think it bitches
pretty sure you need at least a name and a version
 
npm install still seems to "work" ok
 
then disregard me
 
Literally the only thing I want package.json for is dependencies
@rlemon I do get annoying warnings
 
thanks rlemon : )
 
Someone tell me there's a nicer way of handling dependencies
Hmm, I just realized, if I leave my app dependencies outside the output folder, they won't be included if I zip up that folder
that sucks
 
I helped?
 
Best sources for learning about data viz?
 
So I'm trying to use some vendor's proprietary remote desktop js. As near as I can tell, they implemented their own wacky virtual machine in javascript so they could port over their native code.
and when I try to call a function to generate keys it fails with a pointer exception
 
11:13 PM
that's.... unfortunate
 
OMG OMG OMG
:sequels:
 
whaaat!
amazing
 

« first day (1783 days earlier)      last day (3161 days later) »