delete

symfony form - delete embedded form object

I have a two Symfony forms: ShoppingListForm ShoppingListItemForm I'm embedding the ShoppingListItemForm inside the ShoppingListForm many times. ie A shopping list contains many items. So the ShoppingListItemForm consists of two widgets: item_id (checkbox) shopping_list_id (hidden - foreign key) What I would like to do is delete th...

Msbuild: Delete files older 6 months

I want delete files in a folder, which are more than six months old -older than 6 months-using Msbuild. I want use %ModifiedTime (Well-known Item Metadata) of MsBuild I prefer not use customs Tasks, only msbuild default and Microsoft.Sdc.Tasks. I use VS 2008, .net .35. any suggestions ? <Target Name="SomeTarget"> <ItemGroup> <...

How can I do a svn delete --keep-local from subclipse?

I'm using the subclipse plugin with Eclipse, and I'm more experienced with using svn from the command line. Surely there is a way to delete something from the repository and keep it locally, but I can't figure it out. Any ideas? ...

How do I do an FTP delete with Java URLConnection?

I have a simple put and get working, but can't seem to find how to do a delete? For reference, the put code is: BufferedInputStream inStream = null; FileOutputStream outStream = null; try { final String ftpConnectInfo = "ftp://"+user+":"+pass+"@"+destHost+"/"+destFilename+";type=i"; LOGGER.info("Connection String: {}", ftpCon...

MySQL trigger problem

Hello, I have 2 tables: User (id, user, pass, ...) Post (user_id, post, ...) I would like to create a trigger wich delete post of a user, before deleting user... Can you help me? ...

Trouble with DELETE JOIN

DELETE FROM Books INNER JOIN (Classes, Class_Books) ON (Books.ISBN = Class_Books.ISBN AND Class_Books.Class_ID = Classes.Class_ID AND Classes.Term_ID = 63) WHERE Year = '""' Gives Error: #1064 - You have an error in your SQL syntax; Replacing DELETE with SELECT it works fine though ...

Problem deleting objects from Core Data - crashing app

Hello, My app is crashing when testing on the device, but not on the simulator. It happens when I go to log out. I'm deleting all records from core data when the user logs out, code as follows: -(IBAction)logOut { UIAlertView *getConfirmation = [[UIAlertView alloc] initWithTitle:@"Confirm" message:@"Are you sure you want to logout...

WCF REST service hosted in IIS does not support PUT and DELETE

I created a WCF REST (aka WebHttp) service in .NET 4, using Microsoft's WCF REST Service Template 40. I am hosting the service in IIS 6. The Service Template uses the RouteTable in the Global.asax as a way to create "clean" URL's that don't include ".svc" in them. For example: http:// localhost / flights / 878 GET and POST work fine a...

How to recover deleted rows from SQL server table ?

I accidentaly ran a DELETE command against a table with a wrong WHERE clause. I am using SQL Server 2005. Is there a way, or any utility software that could help me recover the lost data? ...

Need help with a sql delete query

There are 2 tables: report (which has a primary key of reportId and a bit field called migrated) and report_detail (which has a foreign key of reportId). I want to delete all the rows from report_detail that have a reportId which, in the report table, has migrated = 1. This is the select query that selects all the rows I want: select * ...

Delete file event for .NET

I want to get an event Before a file is being deleted? How can I do it? ...

graph.facebook.com and FacebookConnect on iPhone: How can I remove a "like"

I'm developing an iPhone application using the Facebook Connect APIs I arrived to set the "Like" on a post using the following code, NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"https://graph.facebook.com/%@/likes", discussion.postId]]; ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:url]; [request set...

Django db Table delete

With what command can i delete tables from a django db of a specific app/ only one table? I did find all sorts of things, but not how to get rid of a table. Also while I am at this. I create the models and hit syncdb and then I have the tables. If I want to update/add to those tables, do I run into problems? Thanks! ...

c++ Inheritance: Destructor does not get called...

I got my code like the following: class TimeManager { public: virtual ~TimeManager(); }; class UserManager : virtual public TimeManager { public: virtual ~UserManager(); }; class Server : virutal public UserManager { virtual ~Server(); }; CServer *pServer; DWORD WINAPI ServerHelper(void*); int main() { //Create server CreateT...

bash: how to delete elements from an array based on a pattern

Say I have a bash array (e.g. the array of all parameters) and want to delete all parameters matching a certain pattern or alternatively copy all remaining elements to a new array. Alternatively, the other way round, keep elements matching a pattern. An example for illustration: x=(preffoo bar foo prefbaz baz prefbar) and I want to d...

How to remove a file from version control without deleting it?

If I run svn rm file, the file is removed from the local working copy. What I do now is: $ cp file file2 $ svn rm file $ svn ci $ mv file2 file How avoid svn to also delete the local file and let it just remove the file from the repository? ...

Is it possible to delete an object's property in PHP?

Hi there, If i have an stdObject say, $a. Sure there's no problem to assign a new property, $a, $a->new_property = $xyz; But then I want to remove it, so unset is of no help here. So, $a->new_property = null; Is kind of it. But is there a more 'elegant' way? Thanks in advance. ...

removeitematpath question...

Hello, I got this app that needs to be updated with a new database. I want to remove the old one and replace it with the new. This is the code I'm using: - (NSPersistentStoreCoordinator *)persistentStoreCoordinator { if (persistentStoreCoordinator != nil) { return persistentStoreCoordinator; } NSString...

Can a file be recovered after svn delete?

I am trying to figure out if we need to reduce the number of developers having svn admin rights. 1 - If a subversion user accidentally deletes and commits the delete of a file or folder, how can the file be recovered? 2 - If the subversion user has svn admin rights, does svn delete executed on the client behave differently (more perma...

How to use JDO(DataNucleus) to Update & Delete data?

Hey! I've set up a small project using apache.JDO /w DataNucleus. I can save data w/o any problems, but I got stuck when trying to update or delete them. The scenario is the following: I create an object & persist it, it gets and id @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private...