metadata

Writing Spotlight metadata to files on OS X (specifically kMDItemDisplayName)

心已入冬 提交于 2020-01-01 17:08:11
问题 I see that this has been answered previously by Ken T., but I have a case where the code appears to work, and the call to setxattr() returns 0, but the item I want to modify does not change. Specifically, I'm trying to change the metadata attribute kMDItemDisplayName, and my call looks like this (modeled after the sample posted by Ken T): [Note: the "name" param below is an NSString *] rc = setxattr([pathString cStringUsingEncoding:NSUTF8StringEncoding], "kMDItemDisplayName", [name

How to strip image metadata in the browser before upload (javascript)

两盒软妹~` 提交于 2020-01-01 11:56:09
问题 I am uploading images to a node js server, and sending them to AWS S3 for use on my site. Images that were taken on iOS devices sometimes show up sideways in the browser and I've already figured out that it's due to some of the metadata that iOS attaches to every image which includes the orientation of the phone at the time of capturing the image. It seems like all images which were taken in portrait orientation are flipped sideways in certain browsers (including Chrome on OSX). I am able to

Extract ID3 tags of a MP3 URL with partial download using python

天涯浪子 提交于 2020-01-01 09:36:09
问题 I need to extract ID3 tags and meta-data of remote mp3 files. I wrote few lines that could get ID3 tags of local file: from mutagen.mp3 import MP3 import urllib2 audio = MP3("Whistle.mp3") songtitle = audio["TIT2"] artist = audio["TPE1"] print "Title: " + str(songtitle) print "Artist: "+str(artist) I need to achieve this for url links for mp3 files. I tried to get partial download of files using urllib2. import urllib2 from mutagen.mp3 import MP3 req = urllib2.Request('http://www.1songday.com

where are extended attributes stored?

两盒软妹~` 提交于 2020-01-01 09:31:51
问题 This is a simple question but I've done some research and can't find any answers... So does anyone know if when we define extended attributes through xattr, those attributes are stored within - as a part of - the file'contents(in the biggining, in the end?), or if the inode has a special region to store these? And by the way, i've read that in ext4 "each extended attribute is limited to a filesystem block (e.g. 4 KiB)". I can't tell if this is enough if I wanted to store 7 extended attributes

HLS Metadata ID3 tag not working

江枫思渺然 提交于 2020-01-01 08:50:10
问题 I have a list of audio URLs in a TableView, so every time I tapped on each cell on didSelectRowAt this method will be called func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { // Prepare Audio URL let audioUrl = URL(string: (channelSelected.audioUrl?.addingPercentEncoding(withAllowedCharacters: .urlFragmentAllowed))!) let playerItem = AVPlayerItem(url: audioUrl!) playerItem.addObserver(self, forKeyPath: "timedMetadata", options: .new, context: nil) player =

WCF How to enable metadata?

假如想象 提交于 2020-01-01 08:40:20
问题 I am trying to get my svc file working under IIS. In my project, when I press F5 I got the svc working. So I know everything is okay, right? Except for IIS. I am working on a Windows XP Pro machine and in IIS I've added a virtual directory. Here's my code: IcarePlanActions (project: A) namespace WcfServiceLibrary { [ServiceContract] public interface ICarePlanActions { [OperationContract] List<string> GetAllClients(); } } Client: (project: A) namespace WcfServiceLibrary { public class Client :

Does ffmpeg supported KLV metadata?

只愿长相守 提交于 2020-01-01 04:55:09
问题 Is ffmpeg metadata, which is also described in: http://wiki.multimedia.cx/index.php?title=FFmpeg_Metadata also supported MISB standard UAV metadata 601.5 ? Is it same as KLV ? Thanks, Ran 回答1: FFMPEG does not natively support MISB KLV metadata or have demuxers or decoders for KLV metadata of these types at this time. However, FFMPEG can be used to extract data elementary streams from containers like MPEG Transport Stream (TS) per ISO 13818-1. Such capability works for UDP streams and local

jquery.validate, jquery.metadata and html5 data

寵の児 提交于 2020-01-01 03:26:07
问题 I'm looking into using the html5 data- attributes to pass the validation rules to jquery.validate as a stop gap until the plugin is updated with HTML5 support. I'm using jquery 1.4.2, jquery.validate 1.7 and jquery.validate 2.1. In my HTML I'm using code such as this: <input name="foo" type="text" data-validate="{required:true,digits:true}" /> In my jQuery I'm doing the following: <script type="text/javascript"> $.metadata.setType ("html5"); $(function () { $('#myForm').validate ({debug:true}

Java library to check a video's metadata (if it's 1080p, 720p, etc) [closed]

☆樱花仙子☆ 提交于 2020-01-01 02:49:09
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I'm currently looking for a library that looks at a videos metadata and see if the video is 1080p, 720p or a least be able get the basic metadata(resolution, bitrate, etc) so I could do the calculations to check myself. I'm hoping the library is light in size, cross platform and it can support a number of the

How do I determine if a column is an identity column in MSSQL 2000?

偶尔善良 提交于 2020-01-01 01:13:47
问题 I want to do this in code, not with ALT+F1. 回答1: You can also do it this way: select columnproperty(object_id('mytable'),'mycolumn','IsIdentity') Returns 1 if it's an identity, 0 if not. 回答2: sp_help tablename In the output look for something like this: Identity Seed Increment Not For Replication ----------- ------- ------------ ---------------------- userid 15500 1 0 回答3: Adjust the WHERE clause to suit: select a.name as TableName, b.name as IdentityColumn from sysobjects a inner join