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...
Hi there,
I would reduce the time to get special characters when keeping a touch on the keyboard. Anyone has a clue?
Thanks.
...
How may I modify a XML file without any change like attributes ordering, tag expansion and encoding? (My preference is DOM API)
...
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?
...
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" ...
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(""," "), ...
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...
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...
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.
...
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...
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...
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...
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 ...
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...
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...
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...