gdata

Dates from Excel to R, platform dependency

痴心易碎 提交于 2019-11-29 22:39:06
I'm importing xls files using gdata . I am converting date columns using as.Date to convert the date As per the manual for as.Date , the date origin is platform dependent, and so I am determining which origin to use accordingly .origin <- ifelse(Sys.info()[['sysname']] == "Windows", "1899-12-30", "1904-01-01") as.Date(myData$Date, origin=.origin) However, I'm wondering if I should be considering the platform where the file is being read or the platform where it was written ? For what it's worth, I am currently testing the code on a linux box with no excel, and the correct Dates are produced by

Any tutorials for using GData API to upload to video to youtube form iOS app?

99封情书 提交于 2019-11-29 15:51:10
问题 Anyone one tell me where can I find tutorials to teach me how to use GData to upload a video to youtube from my iOS app? 回答1: You can find a well written example from creators' page of GData for Objective C. You just need to download the latest source from his project svn (Just type this code on your terminal application) svn checkout http://gdata-objectivec-client.googlecode.com/svn/trunk/ ~/Desktop/gdata-objectivec and search inside ~/Desktop/gdata-objectivex/Examples/YoutubeSample. In this

contentDetails or duration not coming using Youtube v3 api

ε祈祈猫儿з 提交于 2019-11-29 15:01:19
问题 Look at this link , there is an example given https://www.googleapis.com/youtube/v3/videos?id=7lCDEYXw3mM&key=YOUR_API_KEY &part=snippet,contentDetails,statistics,status Part of the response is "contentDetails": { "duration": "PT15M51S", "aspectRatio": "RATIO_16_9" }, Now I want to retrieve contentDetails or mainly duration. So I called using https://www.googleapis.com/youtube/v3/search?part=snippet,contentDetails&key=[API_KEY]&q=something&maxResults=15&&fields=items,nextPageToken

MPMoviePlayerController is playing YouTube video?

本小妞迷上赌 提交于 2019-11-29 12:13:57
I found a method to play YouTube video on MPMoviePlayerController. For this simply need a right url. That url may be obtained after playing YouTube video in iframe. My UIWebView uses this html: <html> <head> </head> <body style="margin:0"> <iframe class="youtube-player" type="text/html" width="280" height="200" src="http://www.youtube.com/embed/VJRKaQ52ImE" frameborder="0"> </iframe> </body> So after click on play in video rect, we can see msg in console like this: YT_Player[1520:207] setting movie path: http://v12.lscache4.c.youtube.com/videoplayback?sparams=id%2Cexpire%2Cip%2Cipbits%2Citag

iPhone libxml2 undefined symbols (with gdata, kissxml, touchxml, etc.)

匆匆过客 提交于 2019-11-29 09:11:17
I'm trying to use any one of the libxml based 3rd party XML parsers, but I can't because I think I have a libxml2 problem of some sort I set my other linker flags to -lxml2 and header search paths to /usr/include/libxml2 but I still get a ton of undefined symbols when I try to compile. The errors below are the result of trying to compile TouchXML. Undefined symbols: "_xmlDocDumpFormatMemory", referenced from: -[CXMLDocument description] in CXMLDocument.o "_xmlXPathNewContext", referenced from: -[CXMLNode nodesForXPath:error:] in CXMLNode.o -[CXMLNode(CXMLNode_NamespaceExtensions) nodesForXPath

Authentification Zend Gdata (403 forbidden)

感情迁移 提交于 2019-11-29 08:39:26
Is there already ANY solution how to insert/edit/delete events in google Calendar using Zend Gdata Framework. Since November 17 it doesn't work. Thanks First you have to follow this step: http://cornempire.net/2012/01/08/part-2-oauth2-and-configuring-your-application-with-google/ When it's done you can use my class : !! Curl has to be enable on your server. class gcalendar{ private $cal_id; //To get credentials follow this steps ==> http://cornempire.net/2012/01/08/part-2-oauth2-and-configuring-your-application-with-google/ private $client_secret='to_change';//TO CHANGE private $refresh_token=

When authenticating with oAuth and youtube, always get error : invalid_grant on 2nd auth attempt, why?

送分小仙女□ 提交于 2019-11-29 03:59:53
As of yesterday, my application is able to authenticate with google (youtube) via oAuth 2.0 the first time no problem but the 2nd time (re-authentication, same app + same user), when I exchange the requestToken for an accessToken I get an error: error : invalid_grant I'm using: grant_type = authorization_code like they suggest. What used to happen, before 2 days ago, was on re-authentication the web page would say 'you've already authenticated with this application before, would you like to grant it access again?'. What has changed or what could I be doing wrong? I found a way to fix this (at

Using OAuth2 with service account on gdata in python

梦想与她 提交于 2019-11-28 21:40:41
问题 I want to use data.photos.service.PhotosService to push and pull photos from Picasa. I got a service key file XXXXXXXX-privatekey.p12 from Google console and am now trying to authenticate using said key with google. The documentation for OAUTH2 using appengine has led me to believe that using the following would be of use: f = file(settings.SITE_ROOT + '/aurora/' + settings.PRIVATE_KEY, 'rb') key = f.read() f.close() credentials = SignedJwtAssertionCredentials(settings.SERVICE_ACCOUNT_NAME,

Dates from Excel to R, platform dependency

人走茶凉 提交于 2019-11-28 19:19:11
问题 I'm importing xls files using gdata . I am converting date columns using as.Date to convert the date As per the manual for as.Date , the date origin is platform dependent, and so I am determining which origin to use accordingly .origin <- ifelse(Sys.info()[['sysname']] == "Windows", "1899-12-30", "1904-01-01") as.Date(myData$Date, origin=.origin) However, I'm wondering if I should be considering the platform where the file is being read or the platform where it was written ? For what it's

Where is the full size image in GData.Photos query?

好久不见. 提交于 2019-11-28 13:00:10
问题 I am querying a Picasa gallery and when I dig into the entries that are returned, I can't find the full size image. I can only see a much smaller, re-sized image ( data[0].Content.AbsoluteUri ). I know Google retains the full size image because I can see it when I view my Picasa gallery online. Where is the full size image? var picasaService = new PicasaService("Gallery"); var photoQuery = new PhotoQuery(PicasaQuery.CreatePicasaUri("GOOGLEUSERNAME", "GALLERYID")); var photoFeed =