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

I’ve been syncing my Sublime settings for a while between multiple locations, all running OS X. I’ve had some minor problems. Finally, I decided to look into it which led me to what I would consider the authoritative description of how to sync Sublime setting between multiple machines using Dropbox: Sublime Package Control > Docs …

Read more

AVPlayer “freezes” the app at the start of buffering an audio stream

Don’t use playerItemWithURL it’s sync. When you receive the response with the url try this: AVURLAsset *asset = [[AVURLAsset alloc] initWithURL:url options:nil]; NSArray *keys = @[@”playable”]; [asset loadValuesAsynchronouslyForKeys:keys completionHandler:^() { [self.player insertItem:[AVPlayerItem playerItemWithAsset:asset] afterItem:nil]; }];

Mercurial (and, I guess Git) with Dropbox: any drawbacks?

I’d advise against it for the reasons stated above, but more strenuously stated. Both mercurial and git have their own protocols for moving changesets between repositories. These protocols are optimized/built for: efficiency consistency (never can you pull from a repo in a half-updated state) hooks/triggers — doing things on push/pull including quality (no tabs allowed, …

Read more

How do I use Spring Boot to serve static content located in Dropbox folder?

You can add your own static resource handler (it overwrites the default), e.g. @Configuration public class StaticResourceConfiguration extends WebMvcConfigurerAdapter { @Override public void addResourceHandlers(ResourceHandlerRegistry registry) { registry.addResourceHandler(“/**”).addResourceLocations(“file:/path/to/my/dropbox/”); } } There is some documentation about this in Spring Boot, but it’s really just a vanilla Spring MVC feature. Also since spring boot 1.2 (I think) you …

Read more