metadata

Get meta information, title and all images of any webpage using php

旧街凉风 提交于 2019-12-13 19:23:09
问题 I want to get all the meta information like description, title, keyword etc of any web page using php. I am using get_meta_tags php function but its displaying warning. I have paste the error below. Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: No such host is known. in filename...... And how could i get all images on the web page? Thanks in advance. 回答1: "getaddrinfo failed" suggests that your webserver's dns client isn't configured

Filter out unwanted order item meta data from Woocommerce email notifications

泪湿孤枕 提交于 2019-12-13 18:03:14
问题 In the order email templates (for example email-order-items.php ), WooCommerce uses the function wc_display_item_meta to display product details in the order table. The function code is present in the wc-template-functions.php file (line number 3011). I am copying the function code below for reference function wc_display_item_meta( $item, $args = array() ) { $strings = array(); $html = ''; $args = wp_parse_args( $args, array( 'before' => '<ul class="wc-item-meta"><li>', 'after' => '</li></ul>

Create an image annotation tool with AppleScript and Automator

拥有回忆 提交于 2019-12-13 16:44:35
问题 On Mac, is it possible to use AppleScript/Automator to show a preview of an image in the background, while the Automator app is running? I have hundreds of images to which I want to add meta data so that they can be displayed on a web site. My plan is to create a *.meta file with the same name as the original image, so that a PHP script can read in the meta data at the same time that it generates the URL for the image. I have created an AppleScript file (see below), which I have embedded in

How to get the file's meta data in kernel space - linux 3.5

…衆ロ難τιáo~ 提交于 2019-12-13 10:12:53
问题 Given a file path, how can I get its meta data. Here is my problem: I have to truly hide a file (even with ls -a it should not show up anywhere) and I donot need to gaurentee that it will have the same state when it comes back. Now I though if can just copy the meta data and store it somewhere, only to write it back when I need to, It would solve my problem I have to create a copy of that meta data and store it in another place. I have to be able to copy back that meta data when ever I want

How can i get user defined properties of an Open Office document

喜夏-厌秋 提交于 2019-12-13 09:18:45
问题 I am trying to get the UserdefinedProperties of an Open Office Writer Document. My questions are first how can i adress the currently open file in the writer? And how can i access the metadata after I told the programmm from which file it should get the data? hopefully someone of you can help me. Thank you very much. 回答1: Check this interface XDocumentProperties Reference< XDocumentInfoSupplier > xDocumentInfoSupplier(xComponent, UNO_QUERY); Reference< XDocumentInfo > xDocumentInfo =

PNG metadata read and write

谁说胖子不能爱 提交于 2019-12-13 09:02:22
问题 I am using a piece of code posted on stackover flow to write custom metadata to PNG image and read it. The write function seems to work fine but when i try to read data that i had written it throws NullPointerException. Can someone tell me what is wrong? Here is code for writing metadata try{ image=ImageIO.read(new FileInputStream("input.png")); writeCustomData(image, "software", "FRDDC"); ImageIO.write(image, "png", new File("output.png")); } catch(Exception e){ e.printStackTrace(); } Method

How to get photo creation date in objective c

蹲街弑〆低调 提交于 2019-12-13 08:59:33
问题 I am trying to get picture taken date while choosing picture from Photo Library in iPhone. I am using below code to do the same. NSDictionary* fileAttribs = [[NSFileManager defaultManager] attributesOfItemAtPath:path error:nil]; NSDate *result = [fileAttribs fileCreationDate]; //or fileModificationDate But it is showing current date and time. Is there any way to get picture taken date while choosing picture from Photo library. 回答1: You can do it checking the metadata of the picture with

Is it possible to get video-related meta info for an MPMediaItem?

ε祈祈猫儿з 提交于 2019-12-13 08:27:59
问题 I'm doing some work with MPMediaItems, and specifically I'm trying to get a list of the videos on a user's device. Now, videos from iTunes will be locked so they can't be played from a third-party app, but user-added videos like home movies are playable, and even those from iTunes can have their meta information queried and displayed. But here's where I'm getting tripped up: I can't seem to find any video-specific meta info for these files? The MPMediaItem class reference has a long list of

SQL: Complicated Select Statement and returned radius

坚强是说给别人听的谎言 提交于 2019-12-13 07:30:58
问题 This query is driving me insane and I honestly just don't know how to accomplish it. I need to grab all USERS and SHOPS longitude and latitude that are within a certain radius, and return back some other information attached to those resulting IDs... the radius part, I have figured out: ( 3959 * acos( cos( radians('48.453541') ) * cos( radians( lat ) ) * cos( radians( lng ) - radians('-123.491765') ) + sin( radians('48.453541') ) * sin( radians( lat ) ) ) ) AS distance ^This radians in the

Error on getting AVI file duration

丶灬走出姿态 提交于 2019-12-13 07:14:07
问题 I am using VFW unit from JEDI wrapper on WinAPI. The code I am writing is intended to search user drives and detect warez. We do MP3, WMA and some graphic file search. Now we want to detect illegal movies. I want to open AVI file, read some details from it and close it. I have the following code: uses WFV; //from JEDI api wrappers procedure TForm1.Button1Click(Sender: TObject); var lInfo : TAVIFILEINFO lFile : IAVIFILE; lFileType : string; lLenMinutes : integer; lFPS : integer; begin {init