News for hackers. Stuff that matters.
Re:Huge no. of files for Angular 2 by paradite on Tuesday August 02, 2016 @08:10AM (#12209300)
Interesting fact that I recently came across:

bower and many other npm packages, has some dependencies that eventually depends on a package called "wordwrap".

And this "wordwrap" package somehow has its test folder exposed in npm.

The result:

Every single person using bower would have one or more copies of In Praise of Idleness by Bertrand Russell on your local machine, depending on how many of your projects has a npm dependency of this package:

https://github.com/substack/node-wordwrap/blob/master/test/i...

Don't believe me? Try searching for "In Praise of Idleness" in Spotlight.

Edit: Someone had already sent a PR about this on GitHub: https://github.com/substack/node-wordwrap/pull/14

Re:Huge no. of files for Angular 2 by pjc50 on Tuesday August 02, 2016 @08:29AM (#12209406)
It's a good job they didn't pick the Anarchists' Cookbook.
Re:Huge no. of files for Angular 2 by aaronharnly on Tuesday August 02, 2016 @09:44AM (#12209861)
Very nice! The file can also be found by searching for "Saran finds some mischief", which fees like an apt phrase.
Re:Huge no. of files for Angular 2 by tim333 on Tuesday August 02, 2016 @01:37PM (#12211596)
Satan, I think you'll find.
Re:Huge no. of files for Angular 2 by zuck9 on Tuesday August 02, 2016 @09:26AM (#12209739)
I used to `touch node_modules/.metadata_never_index` to prevent Spotlight from wasting disk cycles by indexing that stupid folder. After searching "In Praise of Idleness", it doesn't seem to prevent it. :/

Anyone knows how to prevent all node_modules folders from getting indexed by Spotlight?

Re:Huge no. of files for Angular 2 by neurostimulant on Tuesday August 02, 2016 @10:11AM (#12210046)
I ended up excluding the whole projects folder to prevent spotlight from indexing any source code. I never use spotlight to search any of my code anyway.
Re:Huge no. of files for Angular 2 by sotojuan on Tuesday August 02, 2016 @10:49AM (#12210341)
Just ignore your whole dev/code folder from Spotlight. It's not a good way to get to it anyway.
Re:Huge no. of files for Angular 2 by douche on Tuesday August 02, 2016 @10:59AM (#12210421)
Is there an indexer in any operating system that's worth the aggravation? Windows Explorer's is hot garbage, and I've never been real impressed with any of the ones in my various Linux distributions.

Old-school grepping or using Notepad++'s find in files feature is far away the best method I've come across, which is... kinda sad.

Re:Huge no. of files for Angular 2 by austinsharp on Tuesday August 02, 2016 @03:49PM (#12212791)
The indexing itself is great - I use Everything [1] heavily.

The client on the other hand? It's baaad.

[1] http://www.voidtools.com/

Re:Huge no. of files for Angular 2 by emodendroket on Wednesday August 03, 2016 @01:19PM (#12219668)
I like Agent Ransack on Windows; much faster than the regular search. I've never looked into how it works.
Re:Huge no. of files for Angular 2 by heydenberk on Tuesday August 02, 2016 @08:15AM (#12209322)
I have 16 copies on my work computer.
Re:Huge no. of files for Angular 2 by pandler on Tuesday August 02, 2016 @08:29AM (#12209405)
I have 94 copies.
Re:Huge no. of files for Angular 2 by Arnt on Tuesday August 02, 2016 @09:38AM (#12209818)
Think of it as 94 NPM upvotes.
Re:Huge no. of files for Angular 2 by marc_omorain on Tuesday August 02, 2016 @10:02AM (#12209973)
I have 8 copies.
Re:Huge no. of files for Angular 2 by sotojuan on Tuesday August 02, 2016 @10:47AM (#12210319)
I wouldn't be hopeful about that PR. Substack is awesome but he's really bad at replying to notifications because of the tons of modules he has.
Re:Huge no. of files for Angular 2 by percept on Tuesday August 02, 2016 @08:25AM (#12209385)
Wasteful yet subversive
Re:Huge no. of files for Angular 2 by jabberlope on Tuesday August 02, 2016 @01:55PM (#12211741)
I don't know about you but I think the world can spare an extra 29kb.
Re:Huge no. of files for Angular 2 by manimalcruelty on Tuesday August 02, 2016 @08:56AM (#12209560)
0 copies. too lazy to work.