utilities

How to fix “No newline at end of file” compiler warning for lots of files

I have a huge number of source files that are all lacking a newline at the end. How do I automatically add a newline to the end of each of them? Some may already have a newline, so it should only be added if necessary. I'm probably not looking for code, per se, but just something I can run in Terminal to add the necessary newlines (or ...

Stable Sorting, ie, Minimally-Disruptive Sorting.

Suppose I have a list of things (numbers, to keep things simple here) and I have a function I want to use to sort them by, using SortBy. For example, the following sorts a list of numbers by last digit: SortBy[{301, 201}, Mod[#,10]&] And notice how two of (ie, all of) those numbers have the same last digit. So it doesn't matter which ...

Detecting and monitoring RAM usage on a Windows system

I would like to check how much RAM a program I am working on is using, and I was wondering what methods/programs are available that can do this? Is there an easy way to "predict" this? (ie, DLLs are loaded directly into RAM, right? Thus, the file sizes of the DLLs would indicate how much RAM they take up? Am I correct?) Thanks! ...

Is it good to have "Utils" class in your software project?

Usually, during software development, there are all sorts of utility functions I need. Like zipped file, extract zip file, launching Web Browser, get scaled image... What I did is, I place all this utility functions as static function within a single class named "Utils" http://jstock.cvs.sourceforge.net/viewvc/jstock/jstock/src/org/ycc...

Adding Meta Tags to Files and Folders in Windows XP

Is there any softwares available in Windows XP for adding meta tags to files and folders. i am looking for a tools similar to Tags/Punakea in Mac OS. Thanks ...

What's the most useful utility app that you would recommend?

Possible Duplicate: Which freeware apps / utilities do you use to boost your productivity? This could be something like a Snippet Compiler, or the .NET Reflector or even an application that tells you what time you have to leave to catch the bus? ...

UNIX untar content into multiple folders

I have a tar.gz file about 13GB in size. It contains about 1.2 million documents. When I untar this all these files sit in one single directory & any reads from this directory takes ages. Is there any way I can split the files from the tar into multiple new folders? e.g.: I would like to create new folders named [1,2,...] each having 10...

Piping output from ssh back to the local shell

Is there a way, from ssh, to get output back to the shell ssh was invoked from, kind of like :! in vim? For example, say I'm grepping a file for 'bananas' on a remote server, and I want to copy the output to an IM window - is there a way to invoke pbcopy on my local machine, or am I stuck selecting/copying from the terminal window? In ...

Tool for Scanning for Attached USB Devices in Windows

Can anyone recommend a (preferably free) tool for scanning for attached USB devices in a Windows environment? This is for development purposes only. I have a USB peripheral that I know works when it is attached to my system, but I'm having trouble finding it in the Device Manager. I would like to be able to scan for it specifically be...

linux tool to list all functions in a source file?

I am looking for a command line utility on *nix, that can dump the names of all the functions, classes etc. defined in a file(C/C++/Java) ...

vcore manipulation

I was trying to use software that can edit vcore but I find them too slow and uncomfortable, so I thought "Why not to create one by myself?" but I was not able to find out how to that via any programming language. There is someone that knows how to do that or what function or instructions have I to use? ...