metadata

What’s the best way to discover all variables a Perl application has currently defined?

一个人想着一个人 提交于 2019-12-30 02:12:14
问题 I am looking for best, easiest way to do something like: $var1="value"; bunch of code..... **print allVariablesAndTheirValuesCurrentlyDefined;** 回答1: Package variables? Lexical variables? Package variables can be looked up via the symbol table. Try Devel::Symdump: #!/path/to/perl use Devel::Symdump; package example; $var = "value"; @var = ("value1", "value2"); %var = ("key1" => "value1", "key2" => "value2"); my $obj = Devel::Symdump->new('example'); print $obj->as_string(); Lexical variables

ID3 tags with Swift

醉酒当歌 提交于 2019-12-30 01:01:06
问题 I'm looking for a way to modify ID3 tags with Swift. More specifically, I want to write the Album Art image to an mp3/m4a file. A Swift library would be the best, but I'll take anything that can be done natively in Swift. I don't want to rely on another language's library. I had a quick look at AVFoundation, but it looks like it's only for audio/video playback and conversion. This is about the closest I found from ID3 tags: https://developer.apple.com/library/mac/documentation/AVFoundation

How to Check all stored procedure is ok in sql server?

余生长醉 提交于 2019-12-29 10:29:08
问题 How to check all stored procedure is ok in sql server if I drop a table or fields? 回答1: I found Cade's answer useful in formulating my own script for checking objects in a database, so I thought I'd share my script as well: DECLARE @Name nvarchar(1000); DECLARE @Sql nvarchar(1000); DECLARE @Result int; DECLARE ObjectCursor CURSOR FAST_FORWARD FOR SELECT QUOTENAME(SCHEMA_NAME(o.schema_id)) + '.' + QUOTENAME(OBJECT_NAME(o.object_id)) FROM sys.objects o WHERE type_desc IN ( 'SQL_STORED_PROCEDURE

Can one add custom properties to NTFS folders?

早过忘川 提交于 2019-12-29 08:44:28
问题 I would like to be able to add my own custom data/properties to existing folders on NTFS, so that if a folder is moved, the properties move with it. One solution would be to store a file within the folder to contain whatever I need or want. What I am particularly interested in, is whether or not there is a way to add custom properties to the directory file system object itself. 回答1: If you are feeling brave ( or foolish ) perhaps an Alternative Data Stream would be an alternative. I am not

What is the maximum size of JPEG metadata?

谁都会走 提交于 2019-12-29 06:18:36
问题 Is there a theoretical maximum to the amount of metadata (EXIF, etc) that can be incorporated in a JPEG file? I'd like to allocate a buffer that is assured to be sufficient to hold the metadata for any JPEG image without having to parse it myself. 回答1: There is no theoretical maximum, since certain APP markers can be used multiple times (e.g. APP1 is used for both the EXIF header and also the XMP block). Also, there is nothing to prevent multiple comment blocks. In practice the one that is

What is the maximum size of JPEG metadata?

萝らか妹 提交于 2019-12-29 06:17:08
问题 Is there a theoretical maximum to the amount of metadata (EXIF, etc) that can be incorporated in a JPEG file? I'd like to allocate a buffer that is assured to be sufficient to hold the metadata for any JPEG image without having to parse it myself. 回答1: There is no theoretical maximum, since certain APP markers can be used multiple times (e.g. APP1 is used for both the EXIF header and also the XMP block). Also, there is nothing to prevent multiple comment blocks. In practice the one that is

Swift how to modify exif info in images taken from mobile camera

梦想的初衷 提交于 2019-12-28 12:47:07
问题 I use UIImagePickerController to pick images in my iOS App and I know exif info can be got by info[UIImagePickerControllerMediaMetadata] . But when I upload my image to my server by UIImage , most of exif info has been striped. I wonder whether I can add exif info to my image in Http request(image uploaded as jpg after that). If not, how should I solve this problem? I wanna change Make, Model attributes(in other words, what device was used to take this picture) Below are my code snippets:

Automatic documentation of datasets

时光毁灭记忆、已成空白 提交于 2019-12-28 08:08:12
问题 I'm working on a project right now where I have been slowly accumulating a bunch of different variables from a bunch of different sources. Being a somewhat clever person, I created a different sub-directory for each under a main "original_data" directory, and included a .txt file with the URL and other descriptors of where I got the data from. Being an insufficiently clever person, these .txt files have no structure. Now I am faced with the task of compiling a methods section which documents

Overwrite Existing Jpeg File/Replace Existing Jpeg File with edited jpeg file

时光总嘲笑我的痴心妄想 提交于 2019-12-28 06:49:07
问题 I have build a program which allows me to insert comment and the title of an Image through System.Image.Drawing so right now, I have trouble trying to overwrite the existing Jpeg file with the one that has comment and title added into it, but I am encountering error while deleting the file, so I'm not sure what to do as I have tried disposing the file but I cant saved it in that case, due to the fact that I disposed it too early, but I cant saved it because the existing file name is not

EF Mapping and metadata information could not be found for EntityType Error

大憨熊 提交于 2019-12-28 05:35:20
问题 I have encountered an exception when I use Entity Framework 4.0 RC. My Entity Framework model is encapsulated in a private assembly who's name is Procurement.EFDataProvider and my POCO classes are inside of another assembly Procurement.Core The relation between Core(Business Logic)and EFDataProvider(Data Access) is with a factory named DataProvider so when I try to create an objectset objectSet = ObjectContext.CreateObjectSet<TEntity>(); I get an error: Mapping and metadata information could