synchronization

Synchronize model in MySQL Workbench

After reading the documentation for MySQL Workbench I got the impression that it's possible to alter a database in the server (e.g. add a new column) and later incorporate the DDL changes into your EER diagram. At least, it has a Synchronize Model option in the Database menu. I found it a nice feature because I could use a graphic modell...

How expensive is synchronization?

I am writing a networking application using the java.nio api. My plan is to perform I/O on one thread, and handle events on another. To do this though, I need to synchronize reading/writing so that a race condition is never met. Bearing in mind that I need to handle thousands of connections concurrently, is synchronization worth it, or ...

Microsoft Sync Framework between sql CE and sql 2008 with change tracking

Currently i am using Sync Framework 1.0 with sql2008 and sql CE with changetracking option enable and ntier approach with WCF trasport layer. For detail link bellow. http://www.codeproject.com/KB/smart/sync_services.aspx?msg=3288274 I am getting issue while multiple clients are being connected for synchronisation. 1-Message: Value...

Does access/write to Boolean object needs synchronization

This may seem a very silly question. Consider this: I have a simple Boolean object with a getter and a setter. Now both of the methods are called from a lot of threads very frequently. Do I need to have a synchronization for this boolean? Also are Boolean assignments atomic operations? [UPDATE]: I know about Atomic Boolean already...

Hooking a synchronous event handler on a form submit button in JS

Hi, I'm working on a security project in javascript (something I honestly have not used), and I'm having some trouble with EventListeners. My code looks something like this: function prevclick(evt) { evt.preventDefault(); document.loginform.submitbtn.removeEventListener('click',prevclick,false); var req = new XMLHttpRequest(); req.open...

Data sync solution?

For some security issues I'm in an envorinment where third party apps can't access my DB. For this reason I should have some service/tool/script (dunno what yet... i'm open to the best option, still reading to see what I'm gonna do...) which enables me to generate on a regular basis(daily, weekly, monthly) some csv file with all new/modi...

Microsoft Access to SQL Server - synchronization

I have a client that uses a point-of-sale solution involving an Access database for its back-end storage. I am trying to provide this client with a service that involves, for SLA reasons, the need to copy parts of this Access database into tables in my own database server which runs SQL Server 2008. I need to do this on a periodic basis,...

Real-time SQLite and PostgreSQL bi-directional synchronization using python

Is there any python library that can keep a client-side SQLite database in sync with a server-side PostgreSQL database? There are solutions for Java, such as Daffodil or SymmetricDS. Is there something similar for python? ...

Are LinkedBlockingQueue's insert and remove methods thread safe?

I'm using LinkedBlockingQueue between two different threads. One thread adds data via add, while the other thread receives data via take. My question is, do I need to synchronize access to add and take. Is LinkedBlockingQueue's insert and remove methods thread safe? ...

WordPress - Synchronizing local folder and SQL table with server ftp folder / table

I'm about to design / develop a WordPress website for client that wants me to build the site on his server. I prefer to develop locally, and without lag time, but I'd like to find a middle ground that works for both of us. I have transmit for FTP and know there is a way to synchronize a local folder with the server. Although, My concern...

using git on android

Hi all, I have a desktop application using git for synchronization. I have also an android application which do the same as the desktop, but I don't know how to do the synchronization part on it. I haven't found any implementation of git on android. I found a jgit, but its unwell documented and I was not able to do even a commit with th...

Emacs: Often switching between Emacs and my IDE's editor, how to automatically 'synch' the files?

I very often need to do some Emacs magic on some files and I need to go back and forth between my IDE (IntelliJ IDEA) and Emacs. When a change is made under Emacs (and after I've saved the file) and I go back to IntelliJ the change appears immediately (if I recall correctly I configured IntelliJ to "always reload file when a modificatio...

Open source framework à la Microsoft Sync Framework suggestions?

We are implementing a warehouse management system atop an open source stack (Java, web services & friends). In this system, we want to integrate many mobile devices which should also be capable of adequate online/offline functionality, e.g. preparing database inserts while a mobile device is temporarily unconnected, and performing them o...

How would you implement this "WorkerChain" functionality in .NET?

EDIT: It kind of occurred to me too late (?) that all the code I posted in my first update to this question was way too much for most readers. I've actually gone ahead and written a blog post about this topic for anyone who cares to read it. In the meantime, I've left the original question in place, to give a brief glimpse at the proble...

List with non-null elements ends up containing null. A synchronization issue?

Hi. First of all, sorry about the title -- I couldn't figure out one that was short and clear enough. Here's the issue: I have a list List<MyClass> list to which I always add newly-created instances of MyClass, like this: list.Add(new MyClass()). I don't add elements any other way. However, then I iterate over the list with foreach and...

Synchronizing Access to a member of the ASP.NET session

I'm building a Javascript application and eash user has an individual UserSession. The application makes a bunch of Ajax calls. Each Ajax call needs access to a single UserSession object for the user. Each Ajax call needs a UserSession object. Data in the UserSession object is unique to each user. Originally, during each Ajax call I ...

Concurrent threads adding to ArrayList at same time - what happens?

We have multiple threads calling add(obj) on an ArrayList. My theory is that when add is called concurrently by two threads, that only one of the two objects being added is really added to the ArrayList. Is this plausable? If so, how do you get around this? Use a synchronized collection like Vector? ...

How to synchronize access to many objects

I have a thread pool with some threads (e.g. as many as number of cores) that work on many objects, say thousands of objects. Normally I would give each object a mutex to protect access to its internals, lock it when I'm doing work, then release it. When two threads would try to access the same object, one of the threads has to wait. No...

Making an asynchronous interface appear synchronous to mod_python users

I have a Python-driven web interface powered by Apache 2.2 with mod_python and Python 2.4. I need to make an asynchronous process appear synchronous to users of this web interface. When users access one module on this website: An external SOAP interface will be contacted with a unique identifier and will respond with a number N The e...

WaitForSingleObject and WaitForMultipleObjects equivalent in linux

Hi, I am migrating an applciation from windows to linux. I am facing problem w.r.t WaitForSingleObject and WaitForMultipleObjects interfaces In my application I spawn multiple threads where all threads wait for events from parent process or periodically run for every t seconds. How can I implement this in Unix. I have checked pthread...