utils (285)


linux How do you force a CIFS connection to unmount

linux How do you force a CIFS connection to unmount

I have a CIFS share mounted on a Linux machine. The CIFS server is down, or the internet connection is down, and anything that touches the CIFS mount now takes several minutes to timeout, and is unk…


Creating a ZIP file on Windows(XP/2003) in C/C++

I am looking for a way to create a ZIP file from a folder in Windows C/C++ APIs. I can find the way to do this in VBScript using the Shell32.Application CopyHere method, and I found a tutorial explai…


How to perform string Diffs in Java?

I need to perform Diffs between Java strings. I would like to be able to rebuild a string using the original string and diff versions. Has anyone done this in Java? What library do you use? String a1;…


javascript AJAX on the iPhone?

I have a site that I've developed that makes decent use of Javascript, and minimal use of AJAX for a few things. The site worked fine on the iPhone until I added the function to create an HttpRequest…


"Unknown column 'user_id' error in django view

I'm having an error where I am not sure what caused it. Here is the error: Exception Type: OperationalError Exception Value:(1054, "Unknown column 'user_id' in 'field list'") Does anyone kno…


Generate formatted diff output in Java

Are there any libraries out there for Java that will accept two strings, and return a string with formatted output as per the*nix diff command? e.g. feed in test 1,2,3,4 test 5,6,7,8 test 9,10,11,1…



How to localize Content of a Django application

Hey, i am currently working on a django app for my studies, and came to the point of l18n. Localizing the site itself was very easy, but now i have to allow users, to translate the dynamic content of…


Java library for free-text diff

I need to match up two almost-the-same long freetext strings; i.e., to find index-to-index correspondences wherever possible. Because this is freetext, the comparison should not be line-based as in…


How To Pass Soap Header When WSDL Doesn't Define It?

I have a web service that I am calling and their published WSDL doesn't actually define much of the service, 3/4 of it you have to manually build afterwards. The problem I have is that they need a So…


Why does Thread.Sleep(0) fix my problems, and how to avoid it?

I'm working on a client server application. At certain times, on certain machines, when there's more than 5 clients requesting data, it seems to reach a deadlock. If I step in to debug the problem,…




django not python example error operationalerror import tutorial java for