modification

How can I determine when a file was most recently renamed?

I have a program that compares files in two folders. I want to detect if a file has been renamed, determine the newest file (most recently renamed), and update the name on the old file to match. To accomplish this, I would check to see if the newest file is bit by bit identical to the old one, and if it is, simply rename the old file t...

iPhone keyboard tweak

Hi there, I would reduce the time to get special characters when keeping a touch on the keyboard. Anyone has a clue? Thanks. ...

Modify XML node but keep the XML file format intact

How may I modify a XML file without any change like attributes ordering, tag expansion and encoding? (My preference is DOM API) ...

Is the ASP.NET session data changed?

List<Foo> fooList = Session["foo"] as List<Foo>; fooList.Add(bar); Does the call to Add() change the data that's in the session? Put another way: when I next pull "foo" from the Session, will the list contain bar? ...

Application that modifies its underlying db schema

Under what circumstances (if any) would you allow an application to change its underlying database schema? I.e. to add new column. EDIT: A little bit of elaboration on what prompted me to ash this question. My system receives raport files from other systems and saves fetched data in "reports" table. Report includes several "parameters" ...

PHP Dynamic Breadcrumb

Hello, I got this code from someone and it works very well, I just want to remove the link from the last element of the array: //get rid of empty parts $crumbs = array_filter($crumbs); $result = array(); $path = ''; foreach($crumbs as $crumb){ $path .= '/' . $crumb; $name = ucfirst(str_replace(array(".php","_"),array(""," "), ...

Paypal Subscription Modification

Hi, I was hoping someone could help regarding modifying a subscription price. I have a social networking site In which you originally could subscribe to a standard or premium account which varied in what applications where active in your account. My client now whats to scrap the 2 subscriptions and be able to give a choice of what appl...

Adding web service bindings into SharePoint web.config using SPWebConfigModification

This is a solution rather than a question actually. The problem was: I had a SharePoint web part which used a WCF service. To consume the web service in my web part, I needed to modify the SharePoint web.config to include bindings and end points. To be able to do this, I put my web service configuration into a text file as a template. T...

phpBB3 - using $_GET

I want to do a modification to my phpBB3 and it requires using $_GET method by grabbing a variable in the URL. But just using $_GET increases the vulnerability to my phpBB3 wouldn't it? Is there a function in phpBB3 that would make it safer or anything? Thanks. ...

Using the Eclipse AST

I have recently come into the need of modifying some Java code (adding methods, changing the signatures of some fields and removing methods) and I think that all of this can be accomplished though the use of the Eclipse SDK's AST. I know from some research how to parse in a source file but I don't know how to do the things mentioned abo...

modifying xml attributes using Installshield

Hi, I'm using installshield 2010. I'm trying to modify xml attributes related to connection string in installshield. i have imported xml file and selected the elements which I need to modify. i'm using function onSQLLogin after creating an sql connection to get username and password given by user. The peculiar behaviour is that if I deb...

ideas to modify attributes of different XML files c#

Hello, here is my scenario, I copy XML Files from the Original Directory to the Target Directory I modify the file's attributes in the Original Directory I compare the modified file's attribute(from the Original Directory) with the copied file's attribute (in the Target Directory) They shouldn't be the same of course My problem is t...

How do nosql document stores handle concurrent modification of arrays?

Given a simple json document such as: { _id: 1234, messages: [...], otherfields: ... } If two people open the document, and push a message onto the array, the first update will be clobbered by the second. For types other than arrays, I'm ok with this. In an rdbms this isn't an issue since the two messages are simply inserted into ...

Idea: SVN monitor for pending commits?

Hi, I want to ask if somebody heard about a SVN monitoring tool for this case: in the past we used MS SourceSafe with checkout & lock mechanism to avoid merges. One benefit of this was the "release manager" can see in the repo whitch files are still not checked in. SVN is a great tool, but sometimes I miss this information, even to avoi...

CKeditor: Add a custom tab to a dialog with a "Browse server" button

Hello, I am using CKeditor and I have written a custom filebrowser, which works quite well. At the moment I am trying to modify the image dialog. I want to add a tab, which allows the user to enable prettyPhoto for the image. Therefore I need a button, which calls the filebrowser. I added the filebrowser option to my element, but when I...

ConcurrentModification exception using addAll over Set in Java

I have been completely puzzled by an issue I just came over in my Java application. When I attempt to run the code given below, Java raises a ConcurrentModificationException on the line that says "if ( this.vertexStore.get ( v ).addAll ( output ) )". I find this very strange considering this a completely single-threaded application, a...