metadata

Taking a photo with android and displaying metadata

纵然是瞬间 提交于 2019-12-20 04:32:39
问题 I am writing an app that takes a photo and then displays the image with its metadata, this is what I have so far: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <Button android:id="@+id/button1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/openCamera" /> <ImageView android:src="

localized version of GetFileTitle?

会有一股神秘感。 提交于 2019-12-20 04:30:50
问题 I am desperately attempting to guess how the localized filename for photos can be retrieved given the path to that file. For instance, given the path c:\images\jellyfish.png - Win 7 explorer and the built in image viewer program both display the word "Méduses" for a french win 7. Does this hold true for other versions of windows ? GetFileTitle only removes the extension and folder path giving me 'jellyfish' which is not what I am after, and after having read through MSDN and google it seems

Is it possible to extract metadata from fetched url instead of canonical url?

故事扮演 提交于 2019-12-20 04:23:33
问题 I have a Facebook like that links to a page on witch I don't have complete control: I can modify the <body> but not the <head> of the page... So I tried to set the link of the like button on a new page on which I have complete control, set the opengraph metatags on this page, and set an og:url that links to the original page. But in the end Facebook tries to extract metadata from the og:url and overrides the metatags of the previous page... Is it possible to tell that I want to scrape

How to get metadata from video-movie file using Objective-c?

笑着哭i 提交于 2019-12-20 03:17:31
问题 Any help? Now can get NSSize, duration and its all. 回答1: You can do this almost entirely using Spotlight's metadata. For example, I do the following in one of my apps MDItemRef fileMetadata=MDItemCreate(NULL,(CFStringRef)eachPath); NSDictionary *metadataDictionary = (NSDictionary*)MDItemCopyAttributes (fileMetadata, (CFArrayRef)[NSArray arrayWithObjects:(id)kMDItemPixelHeight,(id)kMDItemPixelWidth,nil]); This code essentially asks for the pixel width and height for a movie file (to determine

Does the DataAnnotations.DisplayAttribute.Order property not work with ASP.NET MVC 2?

给你一囗甜甜゛ 提交于 2019-12-20 03:15:18
问题 I set values for the Order property of the Display attribute in my model metadata. [MetadataType(typeof(OccasionMetadata))] public partial class Occasion { private class OccasionMetadata { [ScaffoldColumn(false)] public object Id { get; set; } [Required] [Display(Name = "Title", Order = 0)] public object Designation { get; set; } [Required] [DataType(DataType.MultilineText)] [Display(Order = 3)] public object Summary { get; set; } [Required] [DataType(DataType.DateTime)] [Display(Order = 1)]

Detect new column in source not mapped to destination and fail in SSIS

风格不统一 提交于 2019-12-20 01:40:41
问题 How can I cause an SSIS 2017 package to fail if a column in the source table does not have a corresponding column in the destination table, or at least a deliberate decision to not include it? I made a table in both called test with one column, testcol. SSIS transfers the data. Now I added a testcol2 to the source, but not to the destination. The job still runs fine the way it's handled today, but I want that to fail and report an unmapped column error. 回答1: Update 1 After doing more research

InPlaceBitmapMetadataWriter.TrySave() returns true but does nothing

蓝咒 提交于 2019-12-19 17:48:50
问题 On some .JPG files (EPS previews, generated by Adobe Illustrator) in Windows 7 InPlaceBitmapMetadataWriter.TrySave() returns true after some SetQuery() calls, but does nothing. Code sample: BitmapDecoder decoder; BitmapFrame frame; BitmapMetadata metadata; InPlaceBitmapMetadataWriter writer; decoder = BitmapDecoder.Create(s, BitmapCreateOptions.PreservePixelFormat | BitmapCreateOptions.IgnoreColorProfile, BitmapCacheOption.Default); frame = decoder.Frames[0]; metadata = frame.Metadata as

Custom metadata in AS3/Flex?

旧时模样 提交于 2019-12-19 13:47:22
问题 How to create and to work with custom metadata in ActionScript3/Flex? 回答1: There is two general directions to deal with metadata in ActionScript in Flex: Dealing in runtime using reflection (or introspection in terms of Adobe). You can find documentation here. There are several third-party libraries which provides more convenient reflection API such as as3-commons-reflect or reflection API in Parsley. Using Flex Compiler Extensions which was introduced since Flex 4 SDK revision 8165 (see

How to add chapters into mp4/mkv file using ffmpeg?

自古美人都是妖i 提交于 2019-12-19 09:56:00
问题 Currently i'm using MKVToolNix for my needs which is fine but i would prefer some CLI also. As far as i know ffmpeg supports chapters management. 回答1: The ffmetadata format allows you to add chapters to a file. Have a look at https://ffmpeg.org/ffmpeg-formats.html#Metadata-1 for an example. 回答2: Sorry maybe I'm not clear, and editing the answer I have messed up worst. I'm not English. Like Alex Zubkov I want add chapters to video with ffmpeg via cmd. The instruction in the page linked by

Fetching metadata from url

瘦欲@ 提交于 2019-12-19 09:37:21
问题 I have used Jsoup library to fetch the metadata from url. Document doc = Jsoup.connect("http://www.google.com").get(); String keywords = doc.select("meta[name=keywords]").first().attr("content"); System.out.println("Meta keyword : " + keywords); String description = doc.select("meta[name=description]").get(0).attr("content"); Elements images = doc.select("img[src~=(?i)\\.(png|jpe?g|gif)]"); String src = images.get(0).attr("src"); System.out.println("Meta description : " + description); System