metadata

How to add GPS metadata to TIFF in Java?

故事扮演 提交于 2019-12-05 20:34:28
I am attempting to add GPS data to a TIFF file I am creating in Java. I am using the JAI-ImageIO libraries, although if there is a better library for doing both GPS metadata and custom metadata, I am willing to look into it. I have attempted to add the GPS metadata to the nodes directly, but it seems to strip off the GPS IDF tag. I have attempted to add the GPS IFD to the TIFFIFD object (from the TIFFIMageMetadata object), but that doesn't seem to save the data properly. Basically, I am struggling to get it to save the GPS data properly, and trying to figure out how to get the data in there.

Refresh destination schema metadata in Integration Services

寵の児 提交于 2019-12-05 19:28:12
问题 I have been working on a huge ETL project with 150+ tables and during the design I had to make a major change on destination column names and data types for a couple of tables. My problem is that I can't get SSIS to see the new schema for the tables I changed. So I would like to know how can I get SSIS to refresh this schema? I find it kind of ridiculous that there no way to tell SSIS to update the metadata from database schema, especially for database migration. Recreating the project from

ASP.NET MVC: Why can't I set ShowForEdit model metadata with an attribute?

随声附和 提交于 2019-12-05 18:29:29
Why can't I set ShowForEdit model metadata with an attribute? It seems that the only attribute provided to alter this is [ScaffoldColumn] , which sets both ShowForEdit and ShowForDisplay , which is not what I want to do. I want to be able to annotate the two separately from on my model. John Farrell Because it is not supported out of the box. AFAIK the reason is because the dataannotations attribute that support this functionality are in .net 4.0 and in order to make MVC 3.5 and 4.0 compatible they had to be excluded. The easiest way to fix this is to have to implement your own Edit/Show

How can I extend CachedDataAnnotationsModelMetadataProvider?

♀尐吖头ヾ 提交于 2019-12-05 18:20:53
We are looking to use CachedDataAnnotationsModelMetadataProvider as it improves performance and we use a lot of Meta Data in our MVC4 application. We are currently creating a custom ModelMetadataProvider inheriting from DataAnnotationsModelMetadataProvider and overriding CreateMetadata attribute to do some automatic display name creation e.g. remove Id from names etc. However we also want to cache it so we wanted to base our custom ModelMetadataProvider on CachedDataAnnotationsModelMetadataProvider. If we try to override CreateMetadata we can't as it is sealed. Any reason it is sealed - I

MySQL - querying average row length

。_饼干妹妹 提交于 2019-12-05 18:12:25
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. Redbeard011010 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 more than one database with a rabbits table. Hope this helps! You can't SELECT that, try

How do I edit JPG File Title, Subject, Comments, and Tags/Keywords?

假装没事ソ 提交于 2019-12-05 17:59:38
How do I edit JPG File Title, Subject, Comments, and Tags/Keyowrds?* I have already tried asking this question here : The Exif information provided was helpful, but in the end did not actually solve the real riddle I was working on. So I'll take another angle at describing the desired result: I want my VB.NET app to allow me to edit the following details of a Jfile (see image): Title, Subject, Comments, and Tags/Keyowrds I had a handy image to include but not enough points to post it. Weak. RIGHT CLICK A .JPG IN WINDOWS and select PROPERTIES Win XP: Select the "Summary Tab" and Look at the

How to set copyright metadata of an existing PDF using iTextSharp for C#

人盡茶涼 提交于 2019-12-05 16:26:51
How can the copyright metadata of an existing (i.e. a pdf loaded from file or memory stream) pdf file be set using iTextSharp for C#? Thanks a lot The native XMP structures don't have copyright implemented (or at least they don't in a way that Adobe Reader recognizes.) To do that you can reverse engineer what Adobe kicks out and write it manually: String inputPDF = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "Services.pdf"); String outputPDF = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "Services_Out.pdf"); PdfReader reader = new

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

最后都变了- 提交于 2019-12-05 16:18:45
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 becoming quite philisophical. I wonder if there are hard rules regarding implementation (querying etc)

How do I create named metadata via the llvm-c api?

房东的猫 提交于 2019-12-05 15:54:44
I want to add debug metadata to my generated llvm IR, which is created via the C API. However, I can't figure out how to create named metadata nodes (such as !llvm.dbg.cu), or even how to create metadata nodes with unique numbers (ie. !0, !1, etc.). Adding metadata operands to instructions looks pretty simple, but I cannot figure out how to create standalone metadata nodes. As at LLVM 3.0, there is no function exposed in the C API for creating or modifying named metadata. A new function (LLVMAddNamedMetadataOperand) was recently added to the API , after the 3.0 release. If you're comfortable

Hosting a WCF Service in an MVC application outside of Areas

梦想与她 提交于 2019-12-05 13:02:41
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 ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment