Search Results

Search found 2 results on 1 pages for 'goathens'.

Page 1/1 | 1 

  • Grounded outlet on external hard drive.

    - by goathens
    Is there any value in getting an external hard drive with a grounded power supply? Would grounding the drive protect it from a static jolt from my hand when I pick it up? I've only really ever used the huge 5.25" external housings (they usually have an integrated power supply and use the standard heavy PSU cable with ground), and I need some more but noticed while shopping that the current trend is towards smaller enclosures with the external brick (and hardly ever grounded).

    Read the article

  • Makefile rule depending on change of number of files instead of change in content of files.

    - by goathens
    I'm using a makefile to automate some document generation. I have several documents in a directory, and one of my makefile rules will generate an index page of those files. The list of files itself is loaded on the fly using list := $(shell ls documents/*.txt) so I don't have to bother manually editing the makefile every time I add a document. Naturally, I want the index-generation rule to trigger when number/title of files in the documents directory changes, but I don't know how to set up the prerequisites to work in this way. I could use .PHONY or something similar to force the index-generation to run all the time, but I'd rather not waste the cycles. I tried piping ls to a file list.txt and using that as a prerequisite for my index-generation rule, but that would require either editing list.txt manually (trying to avoid it), or auto-generating it in the makefile (this changes the creation time, so I can't use list.txt in the prerequisite because it would trigger the rule every time).

    Read the article

1