How to deal with Mac OS X Helper/Main app architecture regarding core data, shared preferences and notifications?

There isn’t one right answer to this problem, but here’s how I’d approach it: Both the daemon and viewer application uses the same core data store to save and retrieve data. Because sharing a Core Data store between processes isn’t supported (as far as I know), I’d have the daemon expose an XPC Service. Instead … Read more

How to require commit messages in VisualSVN server?

I’m glad you asked this question. This is our pre-commit hook script written in common Windows Batch. It denies commit if the log message is less than 6 characters. Just put the pre-commit.bat to your hooks directory. pre-commit.bat setlocal enabledelayedexpansion set REPOS=%1 set TXN=%2 set SVNLOOK=”%VISUALSVN_SERVER%\bin\svnlook.exe” SET M= REM Concatenate all the lines in the … Read more

HTML5 Notification not working in Mobile Chrome

Try the following: navigator.serviceWorker.register(‘sw.js’); Notification.requestPermission(function(result) { if (result === ‘granted’) { navigator.serviceWorker.ready.then(function(registration) { registration.showNotification(‘Notification with ServiceWorker’); }); } }); That is, use ServiceWorkerRegistration»showNotification() not new Notification(). That should work on Android both in Chrome and in Firefox — and on iOS in Safari, too. (The sw.js file can just be a zero-byte file.) One caveat … Read more

Is Silent Remote Notifications possible if user has disabled push for the app?

Short answer, yes The exciting new opportunity for app developers in iOS 8 is that Apple will now deliver “silent” pushes even if the user has opted out of notifications. Also, “silent push” is no longer just for Newsstand apps. Every app can take advantage of this ability to refresh content in the background, creating … Read more

How to get TFS Build Status notifications?

You can run Build Notifications, which is similar to CC Tray in that it will continually give you the status of all builds that you’re interested in following. To launch the tool, go to… All Programs–>Microsoft Visual Studio 2010–>Team Foundation Server Tools–>Build Notifications Click on the Options button to subscribe to whichever builds are on … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)