metadata

How to validate metadata.xml against .dtd in gentoo?

喜你入骨 提交于 2019-12-11 01:33:21
问题 I am trying to validate metadata.xml against www.gentoo.org/dtd/metadata.dtd with xmllint from =dev-libs/libxml2-2.9.3 ebuild. I tried the commands (some from here): $ xmllint --noout --valid metadata.xml error : Unknown IO error metadata.xml:2: warning: failed to load external entity "http://www.gentoo.org/dtd/metadata.dtd" the same for xmllint metadata.xml --dtdvalid metadata.dtd and xmllint --loaddtd http://www.gentoo.org/dtd/metadata.dtd $ xmllint --valid metadata.xml --schema metadata

F# Powerpack's Metadata doesn't recognize FSharp.Core as an F# library

旧街凉风 提交于 2019-12-11 00:09:12
问题 Here's my test code to isolate the problem: open Microsoft.FSharp.Metadata [<EntryPoint>] let main args = let core = FSharpAssembly.FromFile @"C:\Program Files\FSharp-2.0.0.0\\bin\FSharp.Core.dll" let core2 = FSharpAssembly.FSharpLibrary let core3 = System.AppDomain.CurrentDomain.GetAssemblies() |> Seq.find (fun a -> a.FullName.Contains "Core") |> FSharpAssembly.FromAssembly core.Entities |> Seq.iter (printfn "%A") 0 All three let s should give me the same FSharpAssembly. Instead, all 3 throw

sp_MSForEachDB Invalid Use of Side-Effecting Operator Within Function

落花浮王杯 提交于 2019-12-10 23:36:42
问题 Is there anyway to put the below code into a Table-Valued (inline or multi-statement) or even a View. I'm able to use it in a stored procedure but do to the inability to do joins to the results of stored procedures I'd rather put it in a Table-Valued function or View. Below is the SQL that gives me the results I'm looking for DECLARE @ColumnInformation TABLE ( DatabaseName NVARCHAR(255), TableSchema NVARCHAR(255), TableName NVARCHAR(255), ColumnName NVARCHAR(255), TableType NVARCHAR(255),

How to retrieve metadata from image file in Android

独自空忆成欢 提交于 2019-12-10 22:26:40
问题 How can I retrieve metadata information such as format (jpeg, bmp, png, ..), width, height etc. from image files in Android environment? 回答1: You can extract the width, height, and MIME type of an image like this: BitmapFactory.Options opts=new BitmapFactory.Options(); opts.inJustDecodeBounds=true; BitmapFactory.decodeFile("/sdcard/path/to/imagefile.blah", opts); Log.i(TAG, "Mimetype:" + opts.outMimeType); Log.i(TAG, "Width:" + opts.outWidth); Log.i(TAG, "Height:" + opts.outHeight); 回答2: Yes,

Extracting metadata from PNG image

此生再无相见时 提交于 2019-12-10 22:12:38
问题 I'm trying to extract metadata from a PNG image format. I'm using this library? http://code.google.com/p/metadata-extractor/ Even though it claims that PNG format is supported I get an error File format is not supported when I try it with a PNG image. From the source (in method readMetadata also it looks like that it doesn't support PNG format: http://code.google.com/p/metadata-extractor/source/browse/Source/com/drew/imaging/ImageMetadataReader.java?r=1aae00f3fe64388cd14401b2593b580677980884

Using custom FaultContract object containing System.Exception causes 'Add Service Reference' to fail

◇◆丶佛笑我妖孽 提交于 2019-12-10 20:00:32
问题 I just noticed something particular. I have an internal stock service which is published through basicHttpBinding, and a customBinding (http+binary) for which metadata is enabled. I also included a mex endpoint for http. We use Visual Studio 2008 & VB.NET Just recently we noticed that we were unable to succesfully add a service reference to this service in our other projects. All that it would generate was the first custom exception we included through a FaultContract (actually, there was

The metadata could not be determined because every code path results in an error; see previous errors for some of these

别来无恙 提交于 2019-12-10 19:46:39
问题 I am migrating from SQL Server 2005 to SQL Server 2014 and one of the queries stopped working in SQL Server 2014: select * from openrowset ('SQLOLEDB','Server=(local);TRUSTED_CONNECTION=YES;',' exec [MyDatabase].[dbo].[MyTable]') I get the following error message: Msg 11529, Level 16, State 1, Procedure sp_describe_first_result_set, Line 1 The metadata could not be determined because every code path results in an error; see previous errors for some of these. Msg 4902, Level 16, State 1,

How do I get the name of the Font Family given the font file?

谁都会走 提交于 2019-12-10 19:27:30
问题 I have a set of font files with unpredictable filenames, so I can't deduce the real "Font Family" name from the file name. I need to therefore read the font metadata to extract the real "Font Family" name, in order to render this font file. I'm in C#.NET 4.0 WinForms. I've seen the function GetFontInformation but I can't seem to find the P/Invoke headers for the same. All I have is the C++ version which is honestly hard to figure out. Any ideas? The reason I cannot use the

Source File Connection (Flat File) - Not reading column metadata

大憨熊 提交于 2019-12-10 18:15:44
问题 When I create the SSIS package it requires a file to be referenced to pick up the files metadata. For example the column headers will be ColumnA, ColumnB. I have always assumed that these column names need to be present in the file for it to be loaded. Recently business, for whatever reason, changed one of the column names in the file to something else so the file contains ColumnA, NotColumnB. When the SSIS package runs it ignores this and loads the file. I assumed that it would fail. Is my

How Can I Add Metadata in opus files?

不羁岁月 提交于 2019-12-10 18:08:16
问题 I'm interested in writing metadata for .opus files, but all of the posts that I've seen so far are for more mainstream formats such as .ogg, or .mp3. I'm uncertain as to whether ID3 tags work with .opus files, and I can't find any resources that say whether they do or not. I've seen something similar in (How to add metadata to WAV file?). How can I write metadata such as title, author, and the like to .opus files? I'm thinking that a libopus enabled ffmpeg would be able to do it, but from the