utilities

Reusable library to get human readable version of file size?

There are various snippets on the web that would give you a function to return human readable size from bytes size: >>> human_readable(2048) '2 bytes' >>> But is there a Python library that provides this? ...

Access the website settings of an asp.net mvc app stored in a database table using NHibernate

I have an ASP.NET MVC app which depends on a lot of settings (name-value pairs), I am planning to store this information in a database table called SiteSettings. Is there an easy way in which I can get these settings using NHibernate. And what are the best practices when saving settings for a web application. And by settings I mean the s...

How do I tell a Python script (cygwin) to work in current (or relative) directories?

I have lots of directories with text files written using (g)vim, and I have written a handful of utilities that I find useful in Python. I start off the utilities with a pound-bang-/usr/bin/env python line in order to use the Python that is installed under cygwin. I would like to type commands like this: %cd ~/SomeBook %which pythonU...

Are there any unshar utility for windows?

From time to time I need to extract the contents of a shar file. And I need to wait to have access to a *nix box to obtain the files. And I was wondering if there is a unshar utility for windows. I can install the cygwin package but I think that is to much for only extract files from time to time. ...

How to Populate Sharepoint MOSS 2007 Reference Data?

Hi, I need to populate reference data in a number of custom lists across difference versions (DEV, TEST and LIVE) of the same MOSS 2007 installation. Can anyone point me towards a way of doing this? I am initially looking at using a script (PowerShell?) or tool to populate this data. Thanks, MagicAndi. ...

Web Browser Testing Software

I recently played around with Microsoft's new Expression Web SuperPreview. I like the concept of the software a lot, but there are some browser compatibility problems that keep SuperPreview from being a holistic solution. I have developed my own program for this that is working pretty well for me. Check it out: Browser Tester (.net win...

Seek utility that formats html code

I'm inheriting a mess of a website where the structure of is impossible to follow mostly because of lack of indenting. Is there a utility that can massage existing code to proper indents? ...

What utility allows for the printing of diff results where the left and right sides are separate pages?

I need a utility which allows me to do a diff and print each side on a separate sheet of paper. I've so far looked at WinMerge, ExamDiff Pro, Compare It, and SmartSVN's utility, and all of them allow the printing of diff results, but they put both sides on one sheet. Essentially our formatting rules allow 120 character horizontal widths...

What is the Best Diff Utility for Windows Development?

Possible Duplicate: Best Diff Tool? I am mainly a C# ASP.NET Developer and I use KDiff3 as my diff tool. I have been using it, happily, for several years and was wondering what others were using. ...

Best language for a personal code library?

I'd like to begin a personal code library to contain all the small utility functions I use on a daily basis but can't find elsewhere on the 'net (I work in a specialized field). In my work, I switch pretty often between different products, so I want something flexible enough that I won't need to recode it over and over again. My paramet...

How do I reload the mainview when coming back from the flipview using Utilities template?

I'm using the Utilities Xcode template for my iPhone app. I am trying to find out how to reload the mainview after I come back from the flipview. Seems like the searches I've done come back with the older version of the Utilities template that I do not have. Apple seems to have redone it for 3.0. What I tried to do was put a method in ...

Is there a Java library that performs a message digest on a tree of objects?

I am looking for a library that, given a tree of objects, performs a message digest or hashing on the entire structure. I want to see if an object passed to a method gets modified or not (this object contains other objects, who contain objects and so on – none are immutable). Is there a way to check if the state of any object in the ...

What are your favorite programmer's utilities for Windows and Mac?

For example, I like KDiff, Console and of course TextMate for Mac. ...

Equivalent of "defined" in Mathematica.

I need a function that takes the name of a symbol as a string and returns whether that symbol is already defined. The function ValueQ is close but it returns False for function names. Also, it takes symbols rather than strings. Examples: defined["N"] --> True (predefined function N) defined["x"] --> False x = 7; defined["x"] --> True ...

Query tool for Oracle 9

I'm used to the comfort of working with MSSQL and the Enterprise Manager and Query Analyzer. Now working with Oracle 9.2 and having to suffer using SQL Plus for making queries, I'm looking for some better alternatives. Are there any free or low-cost tools for this purpose? ...

What Add-Ons / Utilities are available for TFS?

I'm interested in knowing what high quality and useful add-ons or utilities are available for TFS. They can be commercial or open source. Of particular interest are any tools allowing visualisation of branches and tracking changesets as they are merged across branches (yes I know that the next version of TFS will be better in this area)....

What other alternatives to log4net logging exist?

(subjective) I'm looking for what your using to perform logging in your application. This log4net thing is giving me headaches. Is there a better answer out there or is everone just homebrewing a solution? I know the System.Diagnostics.Trace subsystem is quite capable should I layer on this? ...

Mailer utlity in java

hello guys, I am using java mailer utility to send mails in my application. When ever there is any invalid mail id we are getting deliver failure notice. Is there any way to stop that failure notice? Please help in this. ...

Report Generation Tabbing error

I have a procedure using a util file and cursor where i have to generate a report for the table cl_masd_payments in the format given in the code I have written the procedure but its still giving errors...don know what is the problem Any help will be highly appreciated. Anand The procedure i have written is such: CREATE OR REPLACE P...

Windows utility for consuming CPU

I'm looking for a windows utility to consume CPU at a specified percentage so that I can test my app under conditions of restricted processor resources. I googled around and saw a reference to CPUGRAB.exe, but can't find a download location. ...