Questions tagged [sync]

Sync is a synonym for Synchronization, which refers to using controls to maintain a coherent representation, either a group of processes running the same program (process synchronization), or representations of data (data synchronization).

In computer science, sync, or synchronization, refers to one of two distinct but related concepts: synchronization of processes, and synchronization of data.

Links

1834 questions
296
votes
8 answers

How to Sync iPhone Core Data with web server, and then push to other devices?

I have been working on a method to sync core data stored in an iPhone application between multiple devices, such as an iPad or a Mac. There are not many (if any at all) sync frameworks for use with Core Data on iOS. However, I have been thinking…
Jason
  • 14,035
  • 24
  • 87
  • 151
188
votes
13 answers

node.js execute system command synchronously

I need in node.js function result = execSync('node -v'); that will synchronously execute the given command line and return all stdout'ed by that command text. ps. Sync is wrong. I know. Just for personal use. UPDATE Now we have mgutz's solution…
disfated
  • 9,597
  • 12
  • 32
  • 47
163
votes
10 answers

Android Studio how to run gradle sync manually?

I'm debugging Gradle issues in Android Studio and see references to "Run gradle sync", but I'm not sure how to run this command. How do I run "Gradle sync" from Android studio or Mac terminal?
Alex Stone
  • 41,555
  • 51
  • 213
  • 379
100
votes
6 answers

Symbolic links and synced folders in Vagrant

I want to use Vagrant to provide a common development environment to my team. The hosts are completely different: Some use OS X, some Linux, and some Windows. Some use VMware, some use VirtualBox. Inside of the VM we want to run Linux. So far,…
Golo Roden
  • 112,924
  • 78
  • 260
  • 376
99
votes
11 answers

Two way sync with rsync

I have a folder a/ and a remote folder A/. I now run something like this on a Makefile: get-music: rsync -avzru server:/media/10001/music/ /media/Incoming/music/ put-music: rsync -avzru /media/Incoming/music/…
mwm
  • 1,820
  • 1
  • 15
  • 20
88
votes
7 answers

Laravel, sync() - how to sync an array and also pass additional pivot fields?

Official Laravel documentation has this on sync() function: $user->roles()->sync( array( 1, 2, 3 ) ); You may also associate other pivot table values with the given IDs: $user->roles()->sync( array( 1 => array( 'expires' => true ) ) ); In the…
Томица Кораћ
  • 2,121
  • 4
  • 32
  • 50
61
votes
6 answers

How to duplicate a MySQL database on the same server

I have a large MySQL database, lets call it live_db, which I want to replicate on the same machine to provide a test system to play around with (test_db), including table structure and data. In regular intervals I want to update the test_db with the…
50
votes
3 answers

How Do I Sync My Sublime Text 3 Settings Using Dropbox?

I would like to sync Sublime Text 3's Settings across multiple machines using Dropbox. How should I set this up?
Undistraction
  • 38,727
  • 46
  • 165
  • 296
43
votes
1 answer

Which std::sync::atomic::Ordering to use?

All the methods of std::sync::atomic::AtomicBool take a memory ordering (Relaxed, Release, Acquire, AcqRel, and SeqCst), which I have not used before. Under what circumstances should these values be used? The documentation uses confusing “load” and…
yonran
  • 15,964
  • 7
  • 60
  • 81
42
votes
3 answers

Sync Adapter without Account

I need to fetch some data over the cloud from my app. I've watched the google IO video on RESTful android apps @ http://www.youtube.com/watch?v=xHXn3Kg2IQE&t=43m58s It recommends in the final slides to use a SyncAdapter to integrate with the Android…
siamii
  • 20,540
  • 26
  • 86
  • 136
41
votes
4 answers

getJSON Synchronous

GOAL: What I'm after is to get data from database and refresh main.php (more evident through draw_polygon) every time something is added in database (after $.ajax to submit_to_db.php). So basically I have a main.php that will ajax call another php…
Fred
  • 545
  • 2
  • 5
  • 12
39
votes
13 answers

Android Studio update 0.5.3 - platform 'android-19' not found

Yesterday I opened Android Studio and it asked me to be updated. I now have v0.5.3, SDK 19 fully installed and gradle 0.9.+. I think this information is correct but I'm not fully aware how the gradle strategy works. The problem is that my gradle…
Supercelo
  • 399
  • 1
  • 3
  • 9
38
votes
1 answer

Keeping two YouTube videos in sync with each other

I've got two identical YouTube videos embedded on the same page. I'd like them to both be in sync, here are my requirements / notes: Both videos must start at the same time When a video is played / paused by the user the other video does the…
Ben Everard
  • 13,254
  • 12
  • 63
  • 95
36
votes
4 answers

BrowserSync extremely slow

I would love to use BrowserSync for development. However, page loading (not only reloading after changes) is extremely slow. I use the proxy mode. Browsing the page without BrowserSync is fast as it should be. One reason may be the following error…
Rico Leuthold
  • 1,865
  • 4
  • 32
  • 47
32
votes
9 answers

Eclipse sync workspaces/perspectives/preferences across computers

I have a project I need to be working on from two different computers, at work and at home. I need to be able to work on the code from both computers, so the issue is two fold; Sharing the code Sharing the workspace. 1 is simple enough with svn;…
Naren
  • 1,860
  • 1
  • 17
  • 21
1
2 3
99 100