Zend Gdata calendar retrieve events in a date range - zend-framework

I am attempting to retrieve events from my calendar, the below function works to a degree but only pulls the events over the first week or so (specifically until the 24th of the first month). I was hoping to find someone to help me figure out why.
Here is my code
$query = $service->newEventQuery();
$query->setUser('default');
$query->setVisibility('private');
$query->setProjection('full');
$query->setOrderby('starttime');
$query->setsingleevents('true');
$query->setStartMin('2013-07-14T00:00:00.000-10:00');
$query->setStartMax('2013-09-15T00:00:00.000-10:00');
$query->setSortOrder("ascending");
$eventFeed = $service->getCalendarEventFeed($query)

In the end I had to set max-results as in $query->setMaxResults('1000'); the reason is because apparently Google limits results to 25.
Here is the documentation:
Note: The max-results query parameter for Calendar is set to 25 by
default, so that you won't receive an entire calendar feed by
accident. If you want to receive the entire feed, you can specify a
very large number for max-results.
Found Here -> http://code.google.com/apis/calendar/data/1.0/reference.html#Parameters
P.S.
After figuring out the problem I further searched this forum with the known answer and found another similar question with the same answer, I'm listing this because honestly finding help for the Zend Framework and Google Calendar Api is not the easiest thing to do. It would be benificial to us all if there were a more stardardize way of refferencing these two libraries-> Google calendar query returns at most 25 entries

Related

Is it possible to collect the responses from a Google form into different worksheets based on the specific response to one of the queries?

I am trying to create a Google form that collects the details of all old students in my department. But I want them stored separately according to their various year groups. Eg. All those who were admitted in 2016 should be in one worksheet, those admitted in 2017 in another worksheet and so on.
I have tried using Google Appscript but I don't know the right code to use since I'm new to Google Appscript. I'd be glad to have a block of code that helps me do this easily. Thank you.
Sure that works, but if you want people to do work for you, then fiver is the way to go. Show what you have done and we'll help you grow your capacity to solve these challenges.
Here are some pieces of the solution.
You need a trigger to run, when a form is submitted and its response saved to a spreadsheet. See here for how to create a Trigger, use the manual version.
Make sure you read and understand this article on when a Form response is submitted, Sheets Event -
FormSubmit
I suggest you save all the responses to one Sheet by default. Then, you copy the students to other Sheets within the same Spreadsheet. So your Spreadsheet contains the Sheets [2016], [2017], etc…
Now you should be ready to approach a solution which could look like this.
function copyResponseToRelevantYearSheet(e){
// Assuming there is question in the form title 'Year of Admission' which captures the year
const admissionYear = e.namedValues["Year of Admission"][0]
const nameOfStudent = e.namedValues["Student Name"][0]
// Assuming there is a Sheet called 2017
const admissionYearSheet = SpreadsheetApp.getActive().getSheetByName(admissionYear)
admissionYearSheet.appendRow( [nameOfStudent] )
}
There are also some helpful guides which are somewhat relevant here: GAS - Samples

Facebook Marketing API - Keywordstats empty

I am working with ADs api and using keywordstats.
It worked well, now I am getting some weird responses, or maybe it should be like that.
I created AD 7 days ago, 24 days after using keywordstats and fields like, cpc, actions, impressions, unique_actions returned me good results, matched at what I was seeing on ADS manager. AD was live one day.
Now 6 days after after, actions and unique actions has only one element "attention_event"? Impressions by each interest are also weird, for each I am getting from 1 to 5? In total I have more then 5K impressions, how is this possible? I have tried with specific dates, for one day it returns this weird data, for other days just returns empty response.
Actions fields, 6 days ago contained and events from FB Pixel, now none is returned in response.
Is this supposed to work like this, or I am missing something?
I've also dealt with some bugginess with the keywordstats endpoint.
If you look at the API documentation, you'll see a particular line: "To query from a particular day in the last week:". It seems like Facebook doesn't allow you to query for keywordstats that aren't from the past week. The discrepancy between metrics might arise because of this.
For some more context, I've found that even the last seven days isn't a reliable indicator of retrievable dates. I had to query each date individually (using <API_VERSION>/<AD_ID>/keywordstats?date=YYYY-MM-DD) and see which ones don't return an empty object. The dates that do return a metric are the ones that you should use in your calculations.

Yahoo Weather API current conditions

I am trying to get the current weather conditions for a certain location, but for some reason I always get the conditions for a semi-random day/time (more or less past week). I am using this query: https://query.yahooapis.com/v1/public/yql?q=select%20item.condition%20from%20weather.forecast%20where%20woeid%20%3D%20639660%20AND%20u%3D%22c%22&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys&callback=
Even trying out the example query on their website doesn't work for me. When I click on "Current conditions for San Diego, CA" I get the same, random results. Is there any way to get the current conditions?
I am seeing the same thing. It has to be on Yahoo's side. Unfortunately it looks like their support page is down too. Returned a 404
I've also notice the random ( 1 day up to 2 wks) of old data being transmitted
http://xml.weather.yahoo.com/forecastrss/55364_f.xml It seems to change about every 30 seconds

Find issues as of certain date in JIRA

I am not sure if this is possible - I would like to know which issues were in which state on certain date. I tried but did not find anything. Any help would be appreciated.
EDIT: To make it clear, I would like to see status of the project e.g. a week ago, such as:
PROJECT=A AND issueType=Bug ON 2015/04/04 //something like that
Yes you can !!
Jira has advanced search feature,where you can provide different query and you can also get all bugs for one or more projects at particular data.
For more details go through
To get bugs created,resolved or updated on particular date there are custom fields created at , resolved at and updated at and then you need pass date in yyyy-mm-dd format
[Reference] http://blogs.atlassian.com/2013/01/jql-the-most-flexible-way-to-search-jira-14/

Where is the iPhone's Date & Time getting its time zone list

I can get a list of time zones with [NSTimeZone knownTimeZoneNames], but that only gives the time zone IDs which include one or two cities in each time zone.
The Date & Time settings has a great list of cities and I have seen a few other apps that have the same if not similar lookup lists.
Where do these lists come from?
I do need to relate a picked city to its time zone like Date & Time does.
Only 2? On 3.1 the [NSTimeZone knownTimeZoneNames] returns an array of 401 elements, and there are much less than 200 timezones on the Earth.
I'm pretty sure "other apps" use +knownTimeZoneNames as well, since this is the only public method returning such list. Please make sure your code is correct, though.
Settings.app uses the private CPCity API from the private AppSupport.framework. It does have San Francisco, but it's private.
You need to create your own database (the data can be copied from /System/Library/PrivateFrameworks/AppSupport.framework/all_cities_adj.plist).
What you are asking for is commonly referred to as the Olson database. See for instance this Wikipedia page. The public domain Zone.tab file contains all of the timezones. You can find a zones.tab file in the zoneinfo directory of the libical distribution.
I know it might be a late answer, but just in case someone else stumbles on it like I did the other day. I just open sourced a library that does exactly this. It is available as a CocoaPod and you can find it here:
https://github.com/gligorkot/TimeZonePicker
Also, thanks for all the replies above, they helped me in finding the correct cities database that is used for the Settings app.