synchronization

SVN to Clearcase Export

I have a client who is rather insistent about using Clearcase. Are there any tools/scripts that would allow my team to work against an SVN repository (or really anything other than Clearcase), but periodically automatically sync back changesets to the Clearcase VOB? My thinking is that if such a tool exists, and it's automatic, reliable...

Is there such a thing as IMAP for podcasts?

Is there such a thing as IMAP for podcasts? I own a desktop, laptop, iPod, smartphone and a web-client all downloading StackOverflow Podcasts. (among others) They all tell me which episodes are available and which are already played. Everything is a horrible mess, ofcourse. My iPod is somewhat in sync with my desktop, but everything el...

Filtering MS Sync Framework

hello been said filtering works with latest Microsoft Sync Framework version. so I used filter passing from client to server on server(sqlServer08 with change tracking enabled) I have SqlParameter filterParameter = new SqlParameter("@Institution_ID", SqlDbType.UniqueIdentifier); string customerFilterClause = "Institution_ID=@Inst...

Where to look for synchronized contention evidence in java?

Our Tomcat web application feels slow when it is used by a couple hundred users. The servers are in a hosting company and their reports doesn't show any problem with bandwith or cpu workload, so I suspect that the reason of the slowdowns can be because of contention on some legacy code that we encapsulated under synchronized calls becaus...

Why do libraries implement their own basic locks on windows?

Windows provides a number of objects useful for synchronising threads, such as event (with SetEvent and WaitForSingleObject), mutexes and critical sections. Personally I have always used them, especially critical sections since I'm pretty certain they incur very little overhead unless already locked. However, looking at a number of libr...

.NET Multithreading - Do I need to synchronise access to a variable of primitive type?

The scenario I have a class with a bool Enabled property, that is used by a loop on another thread to see whether it should stop or not. The idea is that a different thread can set that property to false and stop the other thread running cleanly. The question Should I bother to serialise access to that Enabled property using somethin...

Webservice Orchestration for database sync

I have two webservices, each service has its own database, one is master (A) and other is slave (B). If a call is made to service B, it also calls A to sync A's database. If for some reason A is not available, B needs to bring A up to date with its data at a later time. Any suggestion on what mechanism can be used for out of process d...

Best Practice for synchronizing common distributed data

I have a internet application that supports offline mode where users might create data that will be synchronized with the server when the user comes back online. So because of this I'm using UUID's for identity in my database so the disconnected clients can generate new objects without fear of using an ID used by another client, etc. H...

what synchronized statement used for?

what is the usage of synchronized statements? ...

Problem in using WaitForSingleObject on 64bit OS

Hi! I am using WaitForSingleObject from (kernel32.dll) in my program. It is working fine on 32bit Windows XP, but when I use it on 64bit WindowsXP, it is not working. The problem is that it doesn't wait for the process and control moves forward. Does anyone have any idea on why? Is there any replacement for that method in WinXP 6...

Synchronize SQL Server over 'my own' comm. protocol

I am looking for a way to with little effort sync a master database (SQL Server) to several clients. A requirement in the project is to use a 'home made' communication protocol that already is in place for other software's. Basically the protocol can send/receive byte arrays to/from clients. I have been reading about Sync Services for ...

Sync without scanning individual files?

Consider two directories: /home/user/music/flac /media/MUSIC/flac I would like the second directory (destination; a USB drive) to contain the same files and structure as the first directory (master). There are 3600+ files (59G in total). Every file is scanned using unison, which is painfully slow. I would rather it compare based on f...

SQL Server Schema Syncronization

I am working on a pre-existing MS SQL Server database that was not designed very well. Indexes and primary keys were missing in most cases. There were NO foreign key constraints. I made a local copy of the DB (so as not to work on the live version), and fixed most of the problems. I now want to syncronize my changes to the productio...

Synchronize access to static variables in sql server SQLCLR

I have written an assembly which is integrated in sql server, providing some stored procedures written in C#. The assembly has a readonly static variable holding some configuration data. This data is manipulated via stored procedures, which are also provided by the assembly. Obviously I have to synchronize access to this static variable....

Synchronizing DataGridView (DataTable) with the DB

Hi! I have the following situation: there is a table in the DB that is queried when the form loads and the retrieved data is filled into a DataGridView via the DataTable underneath. After the data is loaded the user is free to modify the data (add / delete rows, modify entries). The form has 2 buttons: Apply and Refresh. The first one ...

Invalidating an object reference while another thread is executing a method on it (.NET)

(I'm interested in the .NET CLR) What exactly happens when one thread changes the object a variable references while another thread is executing a method on the original object? For example, say the type Foo has a variable 'Bar' of the type Bar, and Bar has no class-level state (for now at least, I'd like to keep this scenario simple)...

Mysql table sync or trigger ?

What is the best way to do this with mysql : I have two tables in the same database (a table : Gene, and a table Gcur). In table Gene, I have a column last_updated. In table Gcur, I have a column last_modified. I'd like to synchronize column last_modified with column last_updated. For example, I made an update of column last_modified...

how do I launch an ajax request after the prior on has finished ?

Hi, I need to launch serveral ajax requests. For some reasons, I want do this synchroneous. That is to say that before launching an ajax request I have to know if the prior request has been finished. The 'asynchronous : false" property of prototype's Updater object seems not work. // A loop to launch one after each other the reques...

How to delete photo in Facebook

I'm writing a small windows application what is used to sync the photo between Facebook and user computer, I would like to delete the photo too when I delete it in my computer side, but Facebook don't provide the delete function in his API. How can I achieve it? I saw Apple iPhoto can do it, is Apple using private interface? ...

Overhead due to use of Events

I have a custom thread pool class, that creates some threads that each wait on their own event (signal). When a new job is added to the thread pool, it wakes the first free thread so that it executes the job. The problem is the following : I have around 1000 loops of each around 10'000 iterations do to. These loops must be executed sequ...