synchronization

Synchronising scripts / db / files from dev system to web server

I work as a freelance web dev, and up until now have been ftping my scripts / databases / static files to my web server manually, but I'm finding that is too error prone. So I'm looking for an app to automate uploading new and updated scripts / files / databases / etc. I know a lot of independent devs use WinSCP or Unison, but I don't th...

Git pull from several repos in one command

I'd like to keep Git repositories on four machines synchronized, and all of them are private repos. Is it possible to set up a single Git repository to pull from the other three machines at the same time, with all the changes attempting to merge with a single branch locally? ...

How are mutex and lock structures implemented?

I understand the concept of locks, mutex and other synchronization structures, but how are they implemented? Are they provided by the OS, or are these structures dependent on special CPU instructions for the CPUs MMU? ...

Synchronizing Git repos across machines without push

I've got three computers which should have the same settings for all their applications. Since all of them have processes running using those settings, I never want to push, instead I'd like for each of them to track the other two, and pull only when I'm logged in. After working a couple of days on this, all the articles I've found seem...

is it possible to let the lock{} or similar structure lock on writes only?

well i mean i have several sections of code that use some variable i want to protect. but the idea is that several threads only read that variable. and only one threads is writing to it and it does that not that frequetly. i want to be able to let multiple threads do reading at the same time and only lock this varialbe when the the writi...

GCC: Force a function call after every instruction (for multithreaded testing)?

Hi, I'm trying to test a rather threading-sensitive area in my program and was wondering if there's a way to force gcc to insert a call after every instruction it emits so that I can manually yield to a different thread? Thanks, Robert ...

Is there any alternative to synchronize class or method without using 'synchronized' keyword in java ?

Is there any alternative to synchronize class or method without using 'synchronized' keyword in java ? Thanks, Mallikarjun Kokatanur ...

Syncing Rails development environments on my two computers

So far I have been building my Rail app on a Mac OS X box using TextMate. It's just me, so I haven't used Git. I have just opened and closed the code in the file system, used an AppleScript to take annotated snapshots at key moments, and let Time Machine take care of the rest. I've just ordered a Windows laptop which I'll use for the s...

Delphi MREW implementation that favors readers?

Is there a Delphi implementation of an MREW (multiple read, exclusive write) lock, that favors reading over writing? ...

Dealing with large data sets in WCF?

We've got a smart client that talks to a SQL Server database via WCF, displaying the entities in the database, and allowing the user to edit those entities. Some of the WCF calls return a large data set. Since this data set doesn't change very often, I'm considering some sort of write-through cache on the client, and only getting the de...

Best way to synchronize local HTML5 DB (Storage) with a server

I am developping a mobile web application (for iPhone) with a local database (using html5 webstorage) so my app is still usable when the user is offline. This is working perfectly, but I want to save the local data on a server. So I need to synchronize the local DB with a DB on a server. The synchronisation can only be one way, but in t...

Synchronizing intranet and web data

I am just getting started breaking a .NET application and its SQL Server database into two systems - an intranet and a public website. The various database tables will need to be synchronised between the two databases in different ways, for example: Moving from web to intranet, with the intranet data becoming read-only Moving from int...

Will creating a nonclustered index break change tracking on my database (SQL Server 2008)?

I have been investigating some performance issues with my database (SQL Server 2008). SQL Management studio suggested that I use this code to add a nonclustered index which will decrease processing time by over 90%. USE [DatabaseName] GO CREATE NONCLUSTERED INDEX [<Name of Missing Index, sysname,>] ON [dbo].[tblAnswers] ([QuestionID]) ...

What is a practical way to sync data in a directory to a database?

My situation involves a directory containing MP3 files, and a database that should contain all the MP3 metadata (i.e. genres, artist names, album names, and track names) from the MP3 files in that directory. The database should always reflect what is in the directory, that is... the algorithm I'm searching for should never delete items f...

Sybase sql anywhere sync a Database view(pull from consolidated to remote)?

I am trying to set up a synchronization model to sync my consolidated Oracle database with a remote SQL Anywhere database. I have a couple Views on the consolidated Oracle database that I want to pull into the Sql Anywhere database as tables. I want to pull them over as they touch 4-5 tables (gotta love good normalization) and only ha...

iPhone - start two processes simultaneously

Hi I have to start more than one processes simultaneously - an AVAudioPlayer's play, a timer and a file write operation. If I just write them in a method, they are executed one after the other and the start of all the operations has a slight lag. Any ideas? Appreciate any help. Thanks. ...

Local and remote data synchronisation.

Hello there, We have a local server with an access database which feeds data to clients in the same domain. Now we also have a website which is hosted externally, and working on a bridge system to provided upload/downloaded functionality of products, categories and orders etc. Products, categories and customers etc. can only be added l...

Get list of podcast subscriptions and downloaded AppStore applications from iTunes.

So, I'm trying to implement a solution to a problem that I posted on superuser. What I'm trying to do I want to write a (Windows) application to synchronize podcast subscriptions in iTunes (and possibly iPhone/iPod touch apps, though I'll ignore them for now) between multiple computers that are using the same iTunes account. How I'm p...

Outlook sent item internet header missing

Hi, I have written a C++ app that sync's Outlook emails with our central server DB. Incoming messages contain MessageID info in the internet header - I use this for key generation when placing the messages in the central DB. However, Sent Items in Outlook do not seem to have Internet Headers, so I am stuck for a static id I can use to ...

Atomic Instruction

What do you mean by Atomic instructions? How does the following become Atomic? TestAndSet int TestAndSet(int *x){ register int temp = *x; *x = 1; return temp; } From a software perspective, if one does not want to use non-blocking synchronization primitives, how can one ensure Atomicity of instruction? is it possible only a...