metadata

Error saying I need to use f:metadata even though I do

心已入冬 提交于 2019-12-07 12:58:07
问题 After update from JSF 2.1 to 2.2, I start getting the following error message: The metadata component needs to be nested within a f:metadata tag. Suggestion: enclose the necessary components within <f:metadata> It's a bit weird as the code looks like this: .... <ui:composition template="./resources/templates/template_base.xhtml"> <ui:define name="contentBody"> <h:outputStylesheet library="css/table" name="tableContent.css" /> <h:outputScript library="javascript" name="pagination.js" target=

xCode Sqlite Database Creation Without Z_METADATA

时光毁灭记忆、已成空白 提交于 2019-12-07 12:18:14
问题 When my sqlite database is created using a core data model, at this line: if (![persistentStoreCoordinator_ addPersistentStoreWithType:NSSQLiteStoreType configuration:nil URL:storeURL options:options error:&error]) I get an error: NSUnderlyingException=I/O SQLite error code:1, 'no such table: Z_METADATA' Any idea how to fix this? I've been trying for days. The database is created and copied into the documents directory on my device. Note: If I DELETE the application, rebuild, and install on

MySQL - querying average row length

你。 提交于 2019-12-07 10:33:05
问题 I have a table named rabbits. I am trying to find the average row length in my table. I tried this query: SELECT AVG_ROW_LENGTH(rabbits) but it doesn't work. 回答1: My Googling has indicated that AVG_ROW_LENGTH is actually a column in information_schema.tables. You'll want to try something like this, I think: SELECT AVG_ROW_LENGTH FROM information_schema.tables WHERE TABLE_NAME = 'rabbits'; You may also need to specify the database name by adding "AND TABLE_SCHEMA = 'databasename';" if you have

How to get color space of a jpeg/tiff in java?

时光毁灭记忆、已成空白 提交于 2019-12-07 10:27:50
问题 the title sums it up really. Using the standalone exiftool program to dump all image metadata to a console I can see a line Color Space Data : RGB It looks like this is taken from the ICC-header I want to get the same data programatically in java. I've tried the drew noakes library and the Sanselan library, but neither give me a value of RGB for any field. 回答1: You have a BufferedImage , right? If so, you probably want either getType() or getColorModel()(then .getColorSpace() or . toString()

Add chapter information to existing video with AVFoundation

左心房为你撑大大i 提交于 2019-12-07 09:15:35
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 = metadataGroup.items; CMTimeRange timeRange = metadataGroup.timeRange; NSLog(@"time: %@",

How to get author of image in cocoa

懵懂的女人 提交于 2019-12-07 08:47:29
问题 I can not understand why metaDic is always null. There is a code. CFDataRef dataRef = CGDataProviderCopyData(CGImageGetDataProvider(img.CGImage)); //(UIImage *img) CGImageSourceRef mySourceRef = CGImageSourceCreateWithData(dataRef, NULL); NSDictionary *metaDic = (NSDictionary *) CGImageSourceCopyPropertiesAtIndex(mySourceRef,0,NULL); NSDictionary *tiffDic = (NSDictionary *)[metaDic objectForKey:(NSString *)kCGImagePropertyTIFFDictionary]; NSString *AuthorName = [tiffDic objectForKey:(NSString

EventStore basics - what's the difference between Event Meta Data/MetaData and Event Data?

我是研究僧i 提交于 2019-12-07 08:17:36
问题 I'm very much at the beginning of using / understanding EventStore or get-event-store as it may be known here. I've consumed the documentation regarding clients, projections and subscriptions and feel ready to start using on some internal projects. One thing I can't quite get past - is there a guide / set of recommendations to describe the difference between event metadata and data ? I'm aware of the notional differences; Event data is 'Core' to the domain, Meta data for describing, but it is

Hosting a WCF Service in an MVC application outside of Areas

社会主义新天地 提交于 2019-12-07 08:04:05
问题 I have an MVC project to which I have added a folder in the root directory called WCF. Within this folder I have created a WCF service entitled CustomFunctions . When I attempt to start the service I receive the following error: Error: Cannot obtain Metadata from http://localhost/Viper/WCF/CustomFunctions.svc ... Metadata contains a reference that cannot be resolved: With an additional description: The type 'Viper.WCF.CustomFunctions', provided as the Service attribute value in the

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

為{幸葍}努か 提交于 2019-12-07 07:01:26
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 able to use them as tools if someone were to tell me to implement and query an ontology, for instance.

How to add custom EXIF tags to a image

白昼怎懂夜的黑 提交于 2019-12-07 05:06:38
问题 I'd like to add a new tag ("LV95_original") to an image ( JPG, PNG or something else..) How can I add a custom EXIF tag to a image? This is what I've tried so far: using (var file = Image.FromFile(path)) { PropertyItem propItem = file.PropertyItems[0]; propItem.Type = 2; propItem.Value = System.Text.Encoding.UTF8.GetBytes(item.ToString() + "\0"); propItem.Len = propItem.Value.Length; file.SetPropertyItem(propItem); } This is what I've researched: Add custom attributes: This uses something