delete (7,606)


python How can I find the full path to a font from its display name on a Mac?

python How can I find the full path to a font from its display name on a Mac?

I am using the Photoshop's javascript API to find the fonts in a given PSD. Given a font name returned by the API, I want to find the actual physical font file that font name corresponds to on the di…


How do I delete a file which is locked by another process in C#?

I'm looking for a way to delete a file which is locked by another process using C#. I suspect the method must be able to find which process is locking the file(perhaps by tracking the handles, althou…


Why am I getting a double free error with realloc()?

I've tried to write a string replace function in C, which works on a char*, which has been allocated using malloc(). It's a little different in that it will find and replace strings, rather than ch…


sql Drop all tables whose names begin with a certain string

I'd like a script to drop all tables whose name begins with a given string. I'm sure this can be done with some dynamic sql and the INFORMATION_SCHEMA tables. If anyone has a script, or can knock one…


version control How to find untracked files in a Perforce tree?(analogue of svn status)

Anybody have a script or alias to find untracked(really: unadded) files in a Perforce tree? EDIT: I updated the accepted answer on this one since it looks like P4V added support for this in the Janua…


Insert Update stored proc on SQL Server

I've written a stored proc that will do an update if a record exists, otherwise it will do an insert. It looks something like this: update myTable set [email protected], [email protected] where [email protected] if @@rowcount…


c++ Can placement new for arrays be used in a portable way?

Is it possible to actually make use of placement new in portable code when using it for arrays? It appears that the pointer you get back from new[] is not always the same as the address you pass in(5…



c# How do you place a file in recycle bin instead of delete?

Programmatic solution of course...…


sql server How can I remove duplicate rows?

What is the best way to remove duplicate rows from a fairly large SQL Server table(i.e. 300,000+ rows)? The rows, of course, will not be perfect duplicates because of the existence of the RowID ident…


Delete all but the most recent X files in bash

Is there a simple way, in a pretty standard UNIX environment with bash, to run a command to delete all but the most recent X files from a directory? To give a bit more of a concrete example, imagine s…




how from remove file all example and not with update