metadata

How to find stored procedures by name?

巧了我就是萌 提交于 2019-12-23 10:07:21
问题 I just need to search through all the stored procedures on my database looking for one that contains "item" in its name. Any ideas? I've been tinkering around with this, but it's not quite there yet: SELECT DISTINCT OBJECT_NAME(ID) FROM SysComments WHERE Text LIKE '%Item%' 回答1: To find those that contain the string "Item" in the name . select schema_name(schema_id) as [schema], name from sys.procedures where name like '%Item%' 回答2: This can also help you on this issue. It also works when

Receive ice cast meta data with python

自作多情 提交于 2019-12-23 04:13:07
问题 I tried to get the ice cast meta data of a mp3 stream with this script: import requests url = 'http://stream.jam.fm/jamfm-nmr/mp3-128/konsole/' try: response = requests.get(url, headers={'Icy-MetaData': 1}, stream=True) response.raise_for_status() except requests.RequestException, e: print 'Error:', e else: headers, stream = response.headers, response.raw meta_int = headers.get('icy-metaint') if meta_int is not None: audio_length = int(meta_int) while True: try: audio_data = stream.read(audio

What's the difference between using RDFS/OWL and XML?

笑着哭i 提交于 2019-12-23 03:02:08
问题 Mainly, I was wondering what advantages the ontology languages of RDFS/OWL has over using a markup system (such as http://www.schema.org/) for managing and creating metadata? I'm still very confused about how different concepts of the "Semantic Web" are supposed to fit together in the overall picture... The relation between RDF/RDFS/RDFa? OWL? URIs? and finally, XML and SQL/SPARQL? All the descriptions I've read about so far about them make sense individually, but I'm not sure if I could be

How to retrieve metadata for return values of an sql server stored procedure

风格不统一 提交于 2019-12-23 02:42:40
问题 I want to analyze an SQL Server stored procedure from .NET code to retrieve metadata for the data/columns it returns (not OUTPUT parameters). Like when you drag/drop a sp on a DataSet i VisualStudio and it automatically generates columns. It could be useful for me for some code generation I'm testing out. The procedures contains simple select statements like SELECT a,b FROM c and I'd like to get metadata about a and b. 回答1: You can use SET FMTONLY ON (and execute it) - but this is a bit hit-n

Add chapter information to existing video with AVFoundation

女生的网名这么多〃 提交于 2019-12-23 01:54:31
问题 I am trying to add chapter markers (text + images) to an existing video in iOS. Reading them is trivially easy with builtin functions: NSLocale * locale = [chapterLocalications lastObject]; NSLog(@"Locale: %@", [locale localeIdentifier]); NSArray *keys = @[AVMetadataCommonKeyTitle, AVMetadataCommonKeyArtwork]; NSArray *chapters = [asset chapterMetadataGroupsWithTitleLocale:locale containingItemsWithCommonKeys:keys]; for (AVTimedMetadataGroup * metadataGroup in chapters) { NSArray * items =

How does one add custom metadata tags to an image on the iPhone?

送分小仙女□ 提交于 2019-12-23 01:16:52
问题 I tried adding custom entries in the exif dictionaries I received from an image. This didn't work. I'm assuming this is due to the fact exif is a standard that is already defined. Basically I am trying to create a metadata tag that can be placed in jpegs that will have no character limit. I read that XMP metadata tags do not have character limits. Is this true? If so how would I create these on the iPhone? Thank you. 回答1: I'm not sure what you've all tried code wise, but Caffeinated Cocoa has

Adding meta data when plotting to PDF

你说的曾经没有我的故事 提交于 2019-12-22 16:33:59
问题 when I plot via pdf() in R, I would like to set the meta data for the PDF: title, author, keywords, subject. The default for the title seems to be "R Graphics Output". How can I specify the meta data? 回答1: You may set the document's title by passing an appropriate title arg to the pdf() function. For other metadata, refer to this SO Q&A in which the usage of external tools (like pdftk or exiftool ) is recommended, see this Q&A at AskUbuntu. 来源: https://stackoverflow.com/questions/24231827

SQLAlchemy MetaData.reflect not finding tables in Oracle db

走远了吗. 提交于 2019-12-22 14:15:59
问题 I'm attempting to reverse engineer an existing Oracle schema into some declarative SQLAlchemy models. My problem is that when I use MetaData.reflect, it doesn't find the tables in my schema, just a Global Temp Table. However, I can still query against the other tables. I'm using SQLAlchemy 0.7.8, CentOS 6.2 x86_64, python 2.6, cx_Oracle 5.1.2 and Oracle 11.2.0.2 Express Edition. Here's a quick sample of what I'm talking about: >>> import sqlalchemy >>> engine = sqlalchemy.create_engine(

Which one is the right way to add geolocation meta info to a site?

此生再无相见时 提交于 2019-12-22 12:29:10
问题 I'm looking how to add meta info to a page. One way is the meta tag <metatag name="country" content="Canada" /> another I saw is <metatag name="geo.country" content="CA" /> using the ISO 3166. I like the second one because is standard with ISO and easy to understand by crawlers. Which one of these options is standard? Or most of the crawlers accept them ? I know that Google does not use any of them, but Bing does. One site is for desktop web browsers and another one is for WAP (mobile)

Which one is the right way to add geolocation meta info to a site?

大城市里の小女人 提交于 2019-12-22 12:28:29
问题 I'm looking how to add meta info to a page. One way is the meta tag <metatag name="country" content="Canada" /> another I saw is <metatag name="geo.country" content="CA" /> using the ISO 3166. I like the second one because is standard with ISO and easy to understand by crawlers. Which one of these options is standard? Or most of the crawlers accept them ? I know that Google does not use any of them, but Bing does. One site is for desktop web browsers and another one is for WAP (mobile)