I have a .ics file with properly formatted (validated) data, containing 2 events. When I try to import it into the Calendar application on MacOS, it only imports the second event, and ignores the first one. I saw an answer here but it doesn't quite address the question
BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:PUBLISH
PRODID:-//Cal's Bridge Club//Calvin Calhoun//EN
BEGIN:VEVENT
UID:4696563918045184#m.com
ORGANIZER;CN=Calvin Calhoun:MAILTO:cal#m.com
DTSTAMP:20160215T142555Z
DTSTART:20160201T213000Z
DTEND:20160201T235500Z
SUMMARY:Night guys
TRANSP: TRANSPARENT
SEQUENCE:2
END:VEVENT
BEGIN:VEVENT
UID:4696563918045184#m.com
ORGANIZER;CN=Calvin Calhoun:MAILTO:cal#m.com
DTSTAMP:20160215T142555Z
DTSTART:20160229T213000Z
DTEND:20160229T235500Z
SUMMARY:Night guys
TRANSP: TRANSPARENT
SEQUENCE:2
END:VEVENT
END:VCALENDAR
The UID of both events is the same, which may be causing problems. Each event should have a unique UID.
Also, there is a space after the colon character in the TRANSP property, which shouldn't be there. This may cause problems too.
Related
What is the maximum number of characters allowed in an Event Description (including spaces, punctuation, and URL
There is currrntly no documented limit for the length of the description in an event in google calendar.
I suspect that this would be due to the fact that google could change it.
I suggest you just try and save as much as you can in there and then handle any errors as they may come. TBH if memory services they just chop off what doesn't fit and dont respond with an error.
This applies to LUIS (MS Language Understanding)
Want to handle an utterance in the following format
"I met [a-PersonName] at [a-BusinessEvent] in [a-TimeReference]"
Sample utterances might be
I met Jane Allan at the Product Management Meetup in January
I met James at MS BUild in April 2017
I met Lily Tomlin at Learning UX Meeting in June 2018
The challenge is that [a-BusinessEvent] (the bold bits) will grow over time. Sure there are a couple of recurring things such as MSBuild or Apple WWDC but over time I'll want to have the users extend the list of BusinessEvents available. (imagine having a voice interface that would allow 'add new event called seattle chatbot meetup').
Should this be a list? or something else?
Are there any examples I could learn from?
Thank you
If I am understanding your query right, you are looking to have potentially a free form event names and you would want the ability to extract the event name entity out of the utterance consistently.
If my above understanding is right, you might want to take a look at "Pattern.Any" entity. This gives you an ability to extract data from the utterance where the utterances are well-formatted and where the end of the data may be easily confused with the remaining words of the utterance.
Once pattern.any is established, you'll have to add patterns that use the Pattern.any that you have created in order to improve the accuracy.
Visit this documentation for more information: https://learn.microsoft.com/en-us/azure/cognitive-services/luis/luis-tutorial-pattern-any
For eg., in your case,
I met Jane Allan at the "pattern.any" in January
I met James at "pattern.any" in April 2017
I met Lily Tomlin at "pattern.any" in June 2018
And finally, create a few patterns to improve accuracy.
I met {PersonName} at the {EventName} in {DateTime}
I met {PersonName} at {EventName} in {DateTime}
I met {PersonName} at {EventName} in {DateTime}
I have been trying to get an ICS file with a floating timezone setup. Research suggests that floating timezones are not recommended, but my client has specifically asked that a user downloading the ICS file in the UK and one in the US will both see the same time.
The code I have is as follows (minus the message body);
BEGIN:VCALENDAR
PRODID:-//Microsoft Corporation//Outlook 14.0 MIMEDIR//EN
VERSION:2.0
METHOD:PUBLISH
X-MS-OLK-FORCEINSPECTOROPEN:TRUE
BEGIN:VTIMEZONE
TZID:GMT Standard Time
BEGIN:STANDARD
DTSTART:16011028T020000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
TZOFFSETFROM:+0000
TZOFFSETTO:-0000
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:16010325T010000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=3
TZOFFSETFROM:-0000
TZOFFSETTO:+0000
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
CLASS:PUBLIC
CREATED:20150609T083427Z
DESCRIPTION:Testing Tuesday 09/06/2015 – 11.00-11.30\n
DTEND;TZID="GMT Standard Time":20150609T113000
DTSTAMP:20150609T083427Z
DTSTART;TZID="GMT Standard Time":20150609T110000
LAST-MODIFIED:20150609T083427Z
LOCATION:LA
PRIORITY:5
SEQUENCE:0
SUMMARY;LANGUAGE=en-gb:Test Short Event
TRANSP:OPAQUE
X-MICROSOFT-CDO-BUSYSTATUS:BUSY
X-MICROSOFT-CDO-IMPORTANCE:1
X-MICROSOFT-DISALLOW-COUNTER:FALSE
X-MS-OLK-AUTOFILLLOCATION:FALSE
X-MS-OLK-CONFTYPE:0
BEGIN:VALARM
TRIGGER:-PT15M
ACTION:DISPLAY
DESCRIPTION:Reminder
END:VALARM
END:VEVENT
END:VCALENDAR
I have set my computer's timezone to Phoenix (UTC -07:00), and opening this ICS file in Outlook works in that the time it displays is 11:00-11:30 as I would hope. However, Outlook also opens up the timezone drop downs displaying 'Dublin, Edinburgh, Lisbon, London'. If this course was being run in the US then I think this would be confusing for users.
I have tried removing all of the VTIMEZONE section, and the TZID references within DTSTART and DTEND, or just removing one or the other, or changing them the TZID to TZID:America/Phoenix, or adding a Z to the times, but all of these seems to give me erratic timings. However, it does remove the timezone drop down in Outlook!
So my questions are;
1. Is there a way I can tell Outlook to not open the Timezone drop down from within this ICS file?
2. Is there a better way for me to do this, setting the exact time of the course and ability to download it anywhere in the world with the same set time for the course?
Thanks, and I hope that all I have written makes sense. I have done hours of research into this, but I just seem to be going round in circles!
The standard way to represent floating events corresponds to your second description (i.e. remove all references to TZID). In your case something like:
DTSTART:20150609T110000
DTEND:20150609T113000
What was the outcome of such an event on the Outlook side ?
Some more research (yawn) has suggested that this is an Outlook issue, and that they do not follow the ICS guidelines for floating timezones;
MS Outlook incorrectly interprets ICS files in local time: daylight savings time overcorrection
So, now I am thinking that the only way around this is to gather the timezone of the person who is accessing the ics file, and take away the time difference from the ICS file time. So, if the course is being run at 11am, and someone in California (UTC -08:00) picks it up, then I will have to tell the file to input the course as starting at 7pm, so that it will be pulled into that user’s Outlook displaying the correct time of 11am. Or I think that’s how it would work anyway. More tinkering required.
I am trying to send an SMS to Mexico via Twilio. The Mexican country code is 52 and the area code I am sending to is 667.
I have tried the following
+521667xxxxxxx - which I believe to be correct based on http://en.wikipedia.org/wiki/Telephone_numbers_in_Mexico#Dialing_a_cell_phone_in_Mexico_from_abroad
+011521667xxxxxxx
+001521667xxxxxxx
+52667xxxxxxx
I get the following error from twilio - "is not a mobile number"
This question is old, but people might still wonder about this, so here it goes:
+521667xxxxxxx used to be correct up until August 3rd, 2019. The correct format is +52667xxxxxxx since then. Even now you may have varying degrees of success using the former format since telecom companies are still allowing it, but you should use the new one to avoid problems in the future.
You can confirm this information here: https://www.mexperience.com/mexico-simplifies-telephone-dialing-rules/ (one of the few sources in English I could find)
With respect to the specific number you were trying, it really might not be a mobile number.
According to the twilio docs it would be +53667xxxxxxx. You may also have to enable international messaging
Twilio International Numbers
Enabled International Dialing Permissions
Anyone know of all the possible weather conditions Google's API will put out?
I've got to match up my icons to the forecast, and I can't find a list of conditions.
I found this list which looks more complete than any other that I've seen
http://dennisdel.com/content/conditions.xml (NOT AVAILABLE ANYMORE (Jan 2016))
<conditions>
<type>PARTLY SUNNY</type>
<type>SCATTERED THUNDERSTORMS</type>
<type>SHOWERS</type>
<type>SCATTERED SHOWERS</type>
<type>RAIN AND SNOW</type>
<type>OVERCAST</type>
<type>LIGHT SNOW</type>
<type>FREEZING DRIZZLE</type>
<type>CHANCE OF RAIN</type>
<type>SUNNY</type>
<type>CLEAR</type>
<type>MOSTLY SUNNY</type>
<type>PARTLY CLOUDY</type>
<type>MOSTLY CLOUDY</type>
<type>CHANCE OF STORM</type>
<type>RAIN</type>
<type>CHANCE OF SNOW</type>
<type>CLOUDY</type>
<type>MIST</type>
<type>STORM</type>
<type>THUNDERSTORM</type>
<type>CHANCE OF TSTORM</type>
<type>SLEET</type>
<type>SNOW</type>
<type>ICY</type>
<type>DUST</type>
<type>FOG</type>
<type>SMOKE</type>
<type>HAZE</type>
<type>FLURRIES</type>
<type>LIGHT RAIN</type>
<type>SNOW SHOWERS</type>
<type>ICE/SNOW</type>
<type>WINDY</type>
<type>SCATTERED SNOW SHOWERS</type>
</conditions>
EDIT
There is a new one here based on the original list:
https://gist.github.com/806934
It removes these from the list
<type>ICE/SNOW</type>
<type>WINDY</type>
<type>SCATTERED SNOW SHOWERS</type>
and adds:
<type>HAIL</type>
Probably wouldn't hurt to use all of them anyway
That link was broken for me. Here's a list I found on another forum:
"Clear
Cloudy
Fog
Haze
Light Rain
Mostly Cloudy
Overcast
Partly Cloudy
Rain
Rain Showers
Showers
Thunderstorm
Chance of Showers
Chance of Snow
Chance of Storm
Mostly Sunny
Partly Sunny
Scattered Showers
Sunny"
This was mentioned: http://www.blindmotion.com/?p=73 though it may not be complete, as it isn't something released by Google. It probably covers about 99% of cases though, barring random enhancements and releases to the weather api by Google staff.
EDIT:
blindmotion.com appears down, internet archive has the content of the page: http://web.archive.org/web/20111001141159/http://www.blindmotion.com/2009/03/google-weather-api-images/ . (Note, from 2009)
https://gist.github.com/bzerangue/806934 (by Vijay, listed in below answers) is likely a more up to date list
Here's the best list I could find: http://www.blindmotion.com/?p=73
You may want to consider alternate APIs that are formally supported and documented. Yahoo!'s Weather RSS feed is a handy, easy-to-use API. I use the National Weather Service's API for one of my projects because I need to pull the forecast for a specific time frame in the future and it lets me do that in a reasonably straightforward way.
I compiled this one, it has everything, and so far I don't think I missed anything.
Clear
Sunny
Partly Sunny
Mostly Sunny
Scattered Thunderstorms
Showers
Scattered Showers
Rain and Snow
Overcast
Light Snow
Freezing Drizzle
Chance of Rain
Partly Cloudy
Mostly Cloudy
Chance of Storm
Rain
Chance of Snow
Cloudy
Mist
Storm
Thunderstorm
Chance of TStorm
Sleet
Snow
Icy
Dust
Fog
Smoke
Haze
Flurries
Light Rain
Snow Showers
Hail
Source: https://gist.github.com/806934
Some more: Mist, Dust, Icy, Smoke, Sleet