I've been trying to add metadata on an .mp4 video that is stored on an Azure Blob. I want to add opengraph tags and when I try and enter them in, I get a message that says, "The name: 'og:type' should be a valid C# identifier." I'm not a C# developer and haven't been able to find documentation that shows valid C# identifiers for meta tags. Any help would be appreciated, thanks!
Edit: I must've misunderstood the purpose of the Metadata section as I thought it would add HTML meta tags to the document on the video's page. Do you know if this is possible? For example I want to share the link to this video on a social media site and would like to try and get this video to be able to play inline or have at least an image preview when sharing the link to the video
Adding metadata to existing Azure blobs will only work if you give valid input.
Please note that:
Beginning with version 2009-09-19, metadata names must adhere to the naming rules for C# identifiers
As mentioned by #Stefan Wuebbe , you can find C# naming rules and conventions by following this document:
C# identifier names | Microsoft Docs
I tried in my environment and got the same error if I use colon (:) in the middle of metadata name.
To resolve the error, make use of underscore (_) instead of colon (:) like below:
To know more in detail, please refer below link:
Setting and retrieving properties and metadata for Blob service resources (REST API) - Azure Storage | Microsoft Docs
Related
The BFxForward functionality is available in Excel for calculating forwards, forward outrights, etc. Is it also available via the SDK for .NET? Appreciate the functionality could be replicated by simply downloading spot plus points then normalizing (etc.) but no point reinventing the wheel.
I could put this to the helpdesk but their official stance is they don't support the server API and the documentation isn't great.
Yes it is. You need to use this format to get the data: Base ISO/Term ISO [Market Type] [Pricing Source] [Forward Date]X[Pricing Date] Curncy
For more information type DAPI on Bloomberg, download the PDF documentation and go to page 207.
I want to get captions from youtube videos and I have seen that it's easy to do with video that have been subbed by humans with an HTTP request as following:
https://www.youtube.com/api/timedtext?v=[LINK]&lang=en
The problem emerges when I try to do it with auto generated subtitle because it gives me a blank page.
I tried going to the network tab of chrome to find out what kind of HTTP request the browser does, and I found out that it uses the same link but with more specific parameters that change in every youtube video:
Signature: Two Hexadecimal numbers separated by a dot with length 40 each
Expire : A decimal number with length 10
The other parameters are equals, so I need to figure out how to get them. I can't find any API that helps me with this specific problem.
Well why do you want to inspect network calls and figure it out from there. I think Google transits data with protobuf, so good luck trying to decrypt the params.
Why not use their official api and do it the correct and legal way ?
What you want is captions.
Here's the documentation on its api:
https://developers.google.com/youtube/v3/docs/captions
You, probably, will want to first call the 'list' method to get a list of all the available caption tracks for the video. Then the 'download' method to fetch the captions.
The aforementioned link to the docs also includes code examples you will need.
Another Way to do it would be:
1) Call http://www.youtube.com/get_video_info?&video_id=videoID
2) Parse the response as a query string (URL Encoded String)
3) Convert the string to an array/object
4) The Url to fetch caption tracks (Including the auto-generated ones) will be present in "player_response" property.
Hello I am using googleapi to retrieve place details.
https://developers.google.com/places/webservice/details
i.e.
https://maps.googleapis.com/maps/api/place/details/xml?placeid=ZZZZ&key=YYYYY
I get successfully address, place name, reviews... etc
But how would I retrieve contact information detail?/ place detail? Is there a different api i need to call? Thanks for reading. (circled in red is the information i am looking for).. using serverside C# code
example
Check the API reference documentation for :
google.maps.places.PlacesService(map);
and this function will be your friend!
::getDetails();
I suppose you're looking for premium service of google. That's the reason why you can't find your field in return value of google. Check this out: https://developers.google.com/places/webservice/details#PremiumData
review_summary includes a rich and concise review curated by Google's
editorial staff. This field will be absent unless you pass the
extensions=review_summary parameter in your details request. Note that
this field may not be available in the requested language.
I have a web application (ASP.NET C#) where I would like the users to be able to upload word templates (essentially word document with predefined set of tags serving as placeholders). Part of the complication is I want to allow for using loops as well. Finally I want to be able to parse the XML and replace the placeholders with content fetched from the database.
For example a conceptual template may be:
Name: <firstName> <lastName>
Phone Numbers:
<for-each:phoneNumber>
Region Code: <regionCode>
Number: <number>
</end:for-each>
Are there any existing solutions that address this issue? Has anyone tried to achieve this or similar?
I've documented the approach to this that I have devised at opendope.org
It is based on CustomXML databinding (not to be confused with the stuff at issue in the i4i patent farce), extendedto allow loops.
For a proof of concept demo, see www.fabdocx.com
There isn't an OpenXML SDK C# implementation yet so far as I am aware, but you could convert the equivalent Java code.
I am trying to fetch some information/data from (IBM) Websphere MQ using C#.
I did manage to get a message, but i can't figure out how to get details about the queue (e.g. are there any items, how many items are contained, etc).
Not Sure if it matter, but i use MQ 6.1 - the online API for c# provided by IBM is quite empty.
Any suggestions welcome.
The information you want is available as queue object properties. Some properties are settable, all are gettable. The app needs to have inquire and/or set rights on the queue in order for these to work.
The link you provided in the comment to Stephen's response is to a different section of the WMQ .Net manual. I suspect you are viewing it with curl or otherwise have script disabled or else you would have easily found the section I linked to above in the navigation panel. Any page loaded in a suitable browser will reload itself inside the navigation frame and display a table of contents on the left. The table of contents will be positioned on the page opened. The section you referenced was to compiling the .Net app but there is a complete API reference elsewhere.
I would recommend viewing the Infocenter in a Javascript-enabled browser with cookies, or else installing the local version of the Infocenter as an Eclipse workbench. The local version has the ability to pull down updates when the online manuals are updated. In either case, a navigation panel is provided which includes the complete set of WMQ manuals and is searchable across all of them, by individual book or by section within a book.
The landing page for WMQ documentation is here. This page contains links to the online Infocenters for v6 and v7, the downloadable Infocenters for v6 & v7 and the PDF versions of the older documentation.
EDIT - The drill-down path to definitions of the constants
From the MQC page readers are directed to the Application Programming Reference manual rather than directly to the MQC docs. However, the page displayed does not represent the whole APRM content! Click the plus sign in the navigation frame to open the TOC for the book.
The page Constants has no content other than to direct the reader to the Constants manual. Unfortunately, it's not linked but the manual is listed in the navigation frame simply as "Constants". Click the plus sign to expand the TOC.
This level contains the major sections of the book, one of which is the detail of all the constants under the heading of "Constants". Clicking that link opens an index page with all of the constants listed and links to a dedicated page for each.
In the past I have used XMS: The IBM Message Service Client for .NET. The current version can be found at: IBM Message Service Client. You can also find a quick tutorial at C# Corner
In general you want to follow the pattern:
MQCONN
MQOPEN the queue
loop
MQGET from the queue
Process the message
end loop
Make sure you specify MQGMO_WAIT on the MQGET call. You don't want to just poll the queue.
I'll try to find some source code when I get to the office.