where is eventstore projection documentation? - eventstoredb

Does anyone know of a comprehensive documentation on the projection API?
Also whats the difference between queries and projections within the eventstore ui?

As far as I understand a query in the UI is just an ad-hoc way to get an answer from your data, a projection on the other hand can be saved, read and will update itself when new events are received.
I think the documentation will be released when projections themselves are released (still in beta at the moment) - looks like they're coming in version 4 - https://groups.google.com/forum/m/#!topic/event-store/3Na4t3J_b2g

You are in luck. The version 4 is coming soon and since this is the first version where projections will be out of beta, the documentation is available. You can read it now at http://docs.geteventstore.com/projections/4.0.0/getting-started/

Related

How to initialize a CKSubscription in iOS 10.3

I am building an app that needs to subscribe to record changes in the public database of iCloud. Now, after watching the apple video's and reading their documentation, I decided to get to work. However, I immediately got stuck here:
All initialization methods on a CKSubScription are deprecated. This can be seen here, but meanwhile apple still seems to use the very same methods in their documentation here.
This left me surprised. Looking around on the web and SO, there doesn't seem too be much information or any tutorials available (at least, none with up to date info on initializing subscriptions), probably because this technology is relatively new and these changes are recent. I have very superficial experience with CloudKit, so I'd rather ask for a decent way to do this than to improvise something myself. My question is:
How to initialize a CKSubscription?
Obviously, if the entire idea of subscriptions is outdated I am open to any answer that will result in my app receiving pushes when records of specific types appear in my public database.
Seems like CKSubscription is really more or less deprecated.
According to http://iosdevetips.blogspot.de/2016/06/deprecated-apis-in-ios-10.html you should use CKRecordZoneSubscription and CKQuerySubscription now.
Update:
Like Trevis pointed out, the docs are not really helpful here, but at least Xcode shows a somewhat helpful Warning:
If you are looking for a new class to substitute Apple's own documentation, use CKQuerySubscription in place of CKSubscription. They have almost identical initializers.

Disable/hide magnifier loupe

I am using an older version of PSPDFKit, 3.7.0, and I need to disable the loupe that shows up at long tap on a document but keep the other menu items. Is this possible?
Charlie,
PSPDFKit Founder here. You really should update our PDF SDK - we've improved A LOT since 3.7, it's also quite dangerous to modify the framework without having any tests.
So we usually only support people with ongoing subscriptions, but this one here is a freebie, though no guarantees that things work similar in 3.7, I'm looking at the codebase for 6.6pre here.
Look for PSPDFLoupeView, that's the class that is the loupe. PSPDFTextSelectionView (might just be called a bit different in v3) controls the logic to present the loupe. Check if there's something like - (void)showLoupe:(PSPDFLoupeView *)loupe animated:(BOOL)animated there and override it.
This definitely works in v6, can't say if this works in v3 but maybe it helps. And if you're interested in getting a new license, ping us at https://pspdfkit.com/sales/.

What do top iOS apps use for live notifications server-side?

This seems like a simple question to me, but it's one I simply can't find a good answer for: what do the top iOS apps (I'm talking Twitter, Facebook) use for live pushed data? Instead of polling an API for changes - real-time data updates, which I assume they have to have a method for.
My understanding is that the main solution is APNs (Apple Push Notifications) but I can't find any notable mention of apps using it... and have found only sparse support for NodeJS.
I'm deciding between that, and MQTT messages that trigger an API call. But I'm posting this question mainly because, in the back of my head, I think there's something I'm missing completely.
Thanks much for any information at all, or even pointing me in the right direction!
Check this out:
Firebase its really got but only for iOS and Android
AirNotifier supports iOS, Android and Windows
And this is a useful stackoverflow post for you.
happy coding!

First Person Map View in iOS

I am currently developing an iOS app using Objective-C and I came across with a requirement from my client that I am unsure and unaware if it can be made.
The app that I am working with is Map based using the geolocalization of the user at all times. To do so, as I am sure you all know, I am using the MapKit.framework that Apple gives us pre-built.
My doubt came when my client asked me if it’s possible to use the First Person Maps View instead of the traditional 2D Map. To make my question clear to you, what I was exactly asked if there is any chance to use the same view of the GPS navigation in the app (See picture below). Is there any way to do so? If so, could you give me some guides to achive that?
Any help would be appreciate it!
After some hours of research I've found a way to do so. The key property is initialized trough:
MKMapCamera *mapCamera = [MKMapCamera cameraLookingAtCenterCoordinate:ground fromEyeCoordinate:eye eyeAltitude:50];
Take a look at this tutorial if you are need of an explanation step by step:
http://nscookbook.com/2013/10/ios-programming-recipe-30-using-3d-mapping/

Change map colors in iOS MapView?

Is it possible to change map element colors in a MapView in the same way that you can with a Google Map? If so, how would I go about doing this.
I'm looking to change map element colors pretty substantially, so I don't think that adding an Annotation as described here is the right solution.
As an example, http://geo.rkn.la has a map that is skinned to be grayscale, and Google has documentation of how to do this for web maps here.
I gave CloudMade a try, and it wound up working reasonably well, but I decided against using them for two reasons:
1) Their support sucks. I shot an email to their support address about a week or two ago and have still not received any kind of response. Their most recent SVN commit is also close to a year old.
2) This issue raised on the Route Me repo, combined with their shoddy support, scared me away.
I did manage to find an SDK called MapBox that is also built on Route Me that was suitable for the task. Their git repo is in active development and they are available on freenode during normal business hours. I'd recommend them over CloudMade to anyone who has the same question I had initially.
It's not possible using UIMapKit.
I have used CloudMade before, which enable you to customise map colours quite extensively. As far as I know their maps use OpenStreetMap data.
No, it is not possible with the current MapKit.
Any substantial update like the one you describe would have to be performed when requesting tiles from Google, and at the moment only Apple does this, deep in the framework.

Resources