Is there a way to compare local and remote (FTP) file in NetBeans?
There is an upload (and download) command in NetBeans. What I want to do is to see the changes between local and remote version in built-in compare tool when I am using download and upload and ideally select which changes to apply.
In short, I would like to sync local a...
Our website relies on images from one of our manufacturers. The image directories are massive and getting them via FTP is an all day job. Now that we've downloaded the entire directory, we'd like to be able to periodically download files and directories that are new, or have been changed since the last time we downloaded them. We're t...
I have these two pieces of code that could possibly be run at the same time on two different threads:
users = (from user in users
orderby user.IsLoggedIn descending ,
user.Username
select user).ToList();
and:
users=null;
The second piece of code will run on the main UI thread of the application. H...
I made a very simple spinlock using the Interlocked functions in Windows and tested it on a dual-core CPU (two threads that increment a variable);
The program seems to work OK (it gives the same result every time, which is not the case when no synchronization is used), but Intel Parallel Inspector says that there is a race condition at...
Why does
HANDLE mutexHandle = INVALID_HANDLE_VALUE;
WaitForSingleObject(mutexHandle, INFINITE);
block? It does not return with an error message. Checking the handle for INVALID_HANDLE would be stupid for a mutex as I would need a mutex for accessing the mutex handle...
BTW: It does return with WAIT_FAILED if the handle was closed.
...
I'm facing the following challenge:
I have a bunch of databases in different geographical locations where the network may fail a lot (I'm using cellular network). I need to keep all the databases synchronized but there is no need to be in real time. I'm using Java but I have the freedom to choose any free database.
Any suggestions on h...
I would like to insert some value into a table, which has an auto-incrementing field as a primary key. Then I want to retrieve the ID by using mysql_insert_id() and use this ID as a foreign key in another table. The problem is - although very unlikely - it may happen that between the first insertion and the later retrieving, another inse...
I'm using java code for uploading some files using FTP. When I compile and run the code everything works perfectly, but if I launch it as a windows service using Java Service Launcher, it doesn't connect to the FTP server at all (it just does the rest of the job, that is moving files to archive folder).
Btw, is there any better way for ...
Hi all,
I am looking to write a contact synchronisation application for windows mobile and google contacts. I am developing against the Windows Mobile 6 platform for the time being and using the PocketOutlook managed classes and C#.
An initial problem I have come up with whilst doing some research is the fact that the contacts do not ...
I have a little problem and because my WEB development skills are not the sharpest I hope you can help me.
The problem is that I am working on a digital SCRUM task board and one of the core functionality would be that browsers having the same project taskboard open would have to show the same picture. So that if person A moves a task pe...
Hello everyone. I'm having hard time to make my program work correctly. In brief, my program consists of several initial threads: Main, MessageReceiver, Scheduler (used Quartz package) and two types of threads scheduled by the Scheduler thread: TraceReader and ScheduledEvent. Now, when TraceReader is fired, it reads a special trace file ...
Hi all, I'm sure this problem has been considered or even solved before; I just don't know how and what all my options are. Would greatly appreciate your ideas, any links to useful info... even if you don't have actual code/implementation to share. Many thanks!
Let's say:
I have a bunch of nodes on the Internet. These could be either ...
I find myself using a combination of global vars and nsrunloop to force synchronization throughout my application. Although it works it seems a bit ugly to me. Is there any other way of achieving the same result?
Here's a typically example:
ParkingSpots *parkingSpots = [[[ParkingSpots alloc] initWithMapViewController:self] autorele...
I am migrating from one system to another and in the process, I will be running both systems concurrently. I need to be able to synchronize uni-directionally from one table to another while maintaining each table's primary keys.
In this example, I have two tables (A) and (B). I need to synchronize value1 and value2 (below) from table B ...
I've been asked to research approaches to deal with an app we're supposed to be building. This app, hypothetically a Windows form written in C#, will issue commands directly to the server if it's connected, but if the app is offline, the state must be maintained as if it was connected and then sync up and issue data changes/commands to t...
What kind of solutions are there for this? Any experience on this? Can I use some specially formatted sms messages and a gateway to send contact cards?
...
I see the benefit of asynchronous commands (waiting for server responses...) but in my flex app it creates me more problem than anything. Here's what I want:
EVERY command executes only after the previous one returned (to result or fault function)
And I'd like to do this as easily as possible.. by the way the GUI must become irresponsi...
Hi, I'm trying to create a very simple version of the game Simon with the WiiMote, using WPF. What I'm stuck on is how to make it turned-based, where the program blocks until the GUI is done displaying a sequence.
Here's the code I have so far (mostly based on an answer here: http://stackoverflow.com/questions/1511870/wpf-sequential-an...
Hi, I understand that Java associates a lock with every shared object to ensure mutual exclusion and condition sync. I am told to model a Java recursive lock as a FSP process.. but I'm stuck and below is the question and what I've written so far. HELP IS GREATLY GREATLY APPRECIATED.
QNS: Given the following declarations:
const N = 3
ra...
For a travel booking web application, where there are 100 concurrent users logged in,
should ticket booking and generating an "E-Ticket Number" be implemented by a "synchronized" or a "static synchronized" method?
...