metadata

VS 2017 Metadata file '.dll could not be found

不打扰是莪最后的温柔 提交于 2021-02-05 13:27:33
问题 I know there is another question with exact the same problem, but I went trough all those answers, and none helped me. :( (This was the question.) I just created a new ASP.NET MVC project and joined a few '.dll's in the solution. Now when I try to build the project I get the error message shown below on 3 of the 5 libraries. Error CS0006 Metadata file 'C:\Users\...\source\Database\bin\Debug\DataAccessLayer.dll' could not be found Logic C:\Users\...\source\Logic\CSC 1 Active Error CS0006

JpegBitmapEncoder.Save() throws exception when writing image with metadata

帅比萌擦擦* 提交于 2021-02-05 07:31:38
问题 I'm building a WPF desktop app to help me organize photos to post to Facebook. Here's my code for creating a copy of a photo at a new location with a caption (EXIF + IPTC + XMP) added: private void SaveImageAs(string currPath, string newPath, bool setCaption = false, string captionToSet = "") { System.IO.FileStream stream = new System.IO.FileStream(currPath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite); JpegBitmapDecoder decoder = new JpegBitmapDecoder(stream, BitmapCreateOptions.None

zip files without any metadata

烂漫一生 提交于 2021-01-29 14:04:15
问题 I'd like to find an easy way to zip a bunch of files without any file metadata (e.g., timestamps). The zip command seems to always perserve the metadata. I don't see a way to disable metadata. I'd like the solution be a command or at most a python script. Thanks. 回答1: As some of the posts have already pointed out most of the metadata fields in a zip header have to be present. If the file contents you are zipping are identical each time, then the only field that will be different is the

(in R) Add metadata from a vector to a set of columns of a dataframe?

做~自己de王妃 提交于 2021-01-29 12:32:59
问题 I would like to use values from a character vector that I created as label attributes for a set of variables in a dataframe. I thought this simple solution should work, yet it does not: x <- rep("text", time=19) %>% paste(1:19, sep = " ") #character vector with names of label attributes I want attr(mydataframe[var_names], "label") <- x #var_names and x have the same length Thanks for your help! 回答1: Hmisc supports column labels. Using the built in data frame anscombe having 8 columns: library

How to store meta information of properties in a class

末鹿安然 提交于 2021-01-29 11:17:21
问题 I want to associate metadata to properties in classes, specifically abbreviations of property names. With annotations: @shortName(abbreviated) you can tag each property: function shortName(shortName: string){ return function (target: Object, realName: string){ // Where to store the relation realName <-> shortName ?? } } class Record{ @shortName("ts") typeOfStorage: string; } class Client extends Record{ @shortName("df") descriptiveField: string; } function mapNames(obj: any){ // Return object

SqlServer: How to get meta-data about tables and their relationships?

谁都会走 提交于 2021-01-28 08:40:57
问题 I was wondering if there was a way (relatively simple I hope) to get information about the table and its attributes and realtionships? Clarification: I want to grab all tables in the database and get the meta-model for the whole database, tables, column data, indicies, unique constraints, relationships between tables etc. 回答1: The system has a data dictionary in sys.tables, sys.columns, sys.indexes and various other tables. You can query these tables to get metadata about the database

Read /Edit / Write jpg IPTC metadata in Java

喜你入骨 提交于 2021-01-27 22:44:16
问题 I am using Apache Commons but it is not enough for me because it is so old technology. So ,i found iCafe and it seems better but I am having the error below. Any idea what i am doing wrong? private static List<IPTCDataSet> createIPTCDataSet() { List<IPTCDataSet> iptcs = new ArrayList<IPTCDataSet>(); iptcs.add(new IPTCDataSet(IPTCApplicationTag.COPYRIGHT_NOTICE, "Copyright 2014-2016, yuwen_66@yahoo.com")); iptcs.add(new IPTCDataSet(IPTCApplicationTag.CATEGORY, "ICAFE")); iptcs.add(new

Trying to self-host, I get error - wcf service host cannot find any service metadata .. please check if metadata is enabled

回眸只為那壹抹淺笑 提交于 2021-01-27 19:21:51
问题 I am new to WCF and I've read answers to questions with titles similar to my error but I still cannot see what is wrong. Following some other tutorials I decided to put my contract and my service in separate projects. Ultimately, I would like to host this in IIS but for now I just wanted to get the WCF Service Host to start (and WCF Test Client). Here is the app.config in my service project (would this need to be in my contract project too I wonder??...): <?xml version="1.0" encoding="utf-8"

Is it possible to use the TestCafe .meta object to skip tests running from the cli

ぃ、小莉子 提交于 2021-01-27 12:11:55
问题 I'm using TestCafe to run my integration tests. I know it has the test.skip function, which is great for when I'm testing locally and want to skip a set of tests I don't need/want to run... but I was wondering if there was a way to run ALL TESTS except --test-meta environmentSpecific=true etc? We have a number of different environments, and I'm looking for a simple way to skip tests via the CLI, depending on the environment we're targeting for the build. 回答1: Yes, you can do it using the

How to find SQLAlchemy generic datatype from vendor-specific datatype

亡梦爱人 提交于 2021-01-04 07:01:05
问题 Given a vendor-specific SQLAlchemy datatype, such as sqlalchemy.dialects.postgresql.INTEGER , what is the best way to find the generic SQLAlchemy datatype that best corresponds to this vendor-specific type? For instance, if I have the vendor-specific type sqlalchemy.dialects.postgresql.INTEGER , I would want to map back to sqlalchemy.sql.sqltypes.Integer . I do understand that there might be situations where this isn't possible, for instance if the database supports an esoteric type that