getting past event for Google Analytics - c#

I followed this guide below:
http://googleanalyticssdk.codeplex.com/wikipage?title=Getting%20Started&referringTitle=Overview
It teaches me on google analytics basics. Over at the STANDARD REPORTS I am able to see my real time screens and events that happened. But it is only real time, how can I see past real time results ? On the real time view, there is only last 30mins recorded. Is the link teaching me the right way to store on google analytics ? Where can I retrieve the past events?
Check out this image:
http://i62.tinypic.com/dngl05.png

The real time reports are just that whats happening on your site right now in real time. But you may have noticed that there isn't a lot of data there. This is because it takes time for Google to process and analyse the data that is sent from your site. That's why it can take up to 24 hours before Google is done processing the data for display in the standard reports.
Google Analytics generally updates your reports every 24 hours, so it can take at least
that long for data to appear in your account after you first install the tracking code.
That comes directly from Googles help. Data delay after adding the tracking code
Personal experience has shown that you can sometimes see it as soon as 4 - 8 hours but that depends a lot I think on the amount of data the site/app sends. Its probably not something that I would depend on. Its best to just assume that you can first see today's data tomorrow.

Related

How to use listen/notify with asp.net and Postgresql / pgAgent

I am a month “old” in Postgresql. I try to combine the listen/notify events with asp.net. But I can't find any good examples. This one was the closest I could find, http://www.codeguru.com/columns/dotnet/postgres-tricks-in-.net.html. But I still could not change it to asp.net (maybe it is my level that is too low).
What I want is to be able to:
schedule an event from my webpage. Example each Sunday at 10 o'clock.
When the time comes, the scheduler calls web service with 2 parameters.
If you can direct me in the right direction, it would be much appreciated.
INSTALLATION OF PG AGENT
For anyone who is searching the web about pgAgent, like I did last week, and haven't installed it before, I have a little guide here. The pgAgent is a time scheduler in Postgres, and it is pretty smart. The problem is, that the installation guides not are the best. Especially not if you are working with pgAdmin 4, like I do, and where the pgAgent is not included.
But in the end I found, that you don’t need to install the classes manually. In Windows 10 search the stackbuilder and add the pgAgent. Then you are good. The jobs will be shown in the bottom of the pgAdmin after that. I have added pics below.

Is possible to add planned posts to Facebook page via API?

I want to create simple app, console or ASP .NET to create bunch of planned posts to my Facebook Page. I know there are ways to post posts to Facebook Page via apps, but I am not sure if it is possible to create planned posts.
This is just idea, so I just want to learn if there is some automagic to do this, or it is super complicated. I don't want to neither invent wheel again from the scratch or make harakiri workaround if there is no such function in Facebook API (as I never saw that there).
Thanks in regards for hints.
If by "planned posts" you mean scheduled posts where the post is only made public on a given date, then you are probably looking for this. Create a normal post but set scheduled_publish_time to a future date when you want other users to see it.
scheduled_publish_time: Time when this post should go live, this can be
any date between ten minutes and six months from the time of the API
call.
Once you create scheduled posts, you can retrieve them using /{page-id}/promotable_posts. They do not show up under /{page-id}/feed before they are published.

How to Grab Amtrak Scheduled/Estimated Data for a Given Train/Station?

Due to the nature of my commuter Amtrak train back home being late 10-20 minutes late the past few days, I want to develop a Windows 8 Metro/Desktop app that will notify someone given a train number and station what the status of the train is at a specified time so they know if they can clock in a few more minutes at work or not. Even though I've never done Windows 8 app dev (although I have done some dev in C#), toast notifications are well documented (http://code.msdn.microsoft.com/windowsapps/toast-notifications-sample-52eeba29). However, I can't find anything concerning Amtrak data.
I know there has to be some sort of general methodology to fetch the scheduled and estimated arrival/departure data as their Android app has this feature. How do I pull this data using C# so I can put it into the app's variables?

Advice on image storing

I am currently developing an app that will browse(and more things, but this is not relevant) youtube lists. Now whenever I get a video, I display it's corresponding image and show it in a listview (or gridview, again not relevant). Now here is the dilemma: is it better to store the images locally after they are downloaded, or do we download them every time we want them showed, i.e:
this._image = new BitmapImage(new Uri("http://domain.com/content/someImage.jpg"));
You're probably going to want to see what YouTube has to say on the matter; I'm sure it's got something regarding this in its developer API documentation to note their preferred approach to it.
That said, take this as general advice; when you're constantly querying another system, you generally want to limit how annoying you are. Now, YouTube's not going to notice the load of one app, of course, but it's still a good habit to keep. Generally speaking, I'd prefer to split the difference: cache the image based on video ID and hold it for X hours, so if the user pulls up the same video in a search 20 times you didn't request a thumbnail 20 times as well.
That way you keep the result relevant by updating the image every day or two (assuming they searched for the video again).
Edit: Right, app. Mobile. Bandwidth. Godawful data caps. My advice is more important then and you probably want to make it cache for a couple of days to be safe, but have a hard cap of how many video thumbnails you keep at a time so you're not the app taking up 100MB of space on some guy's 8GB phone.
If you want to be super user friendly, throw something in the settings somewhere to let people change the approach to query every time, or cache for a specific time.
It really depends on your usage model. The correct term would be 'cache' image locally 'or' fetch from servers each time you want to show image. If user experience is of higher priority than showing the latest image snapshot of youtube videos (which very likely isn't going to change for same video) - then cache the images locally, with an expiry time. This would be helpful in having a faster user experience and also save some network bandwidth. Caching with expiry would ensure you are not filling up memory on device with too many unnecessary images and also as images get old, they will be less relevant and removed and you can fetch new ones.
Caching policy (the way you determine when an image is not of high importance and how long it should remain) will be an interesting problem and can have significant impact on the user experience

WPF questionnaire/survey Application

looking to create a kiosk application that should have a start screen with start button.
Once started it will have a few pages of questions. There needs to be an option to go back or start over and a finish button at the end. After finish it goes back to the start screen.
All the information needs to be saved into a SQL Server database.
I'm new to WPF, what's the best approach to navigate between pages etc.
Thanks in advance
Have you looked at Surveymonkey.com? It is a web survey application which can be easily used to display the questions and the data can be exported in various formats. Also, you can display the results online.
I am mentioning this because I am working in market research / data analysis and designing a good questionaire is not a trivial task.
Even if you cannot use Surveymonkey, use it's design as a template - or your customers will not respond to the survey as you would like. Also, run your questions by a couple of people who have an Idea of designing questionaires - the quality of the answers will be drastically improved.

Categories