FAQ Database Discussion Community


zf2 + doctrine2 and No Metadata Classes to process

php,doctrine2,zend-framework2,metadata
I'm using tutorial http://www.nuvolia.com/2013/03/09/zend_framework_doctrine_install/. The module Application fork fine with Doctrine ORM but when i'm tring to connect in another module i'm reciving error: d:\Aptana Studio\Projects\app01>vendor\bin\doctrine-module orm:schema-tool:create Deprecated: "Symfony\Component\Console\Helper\DialogHelper" is deprecated since version 2.5 and will be removed in 3.0. Use "Symfony\Component\Console\Helper\Qu estionHelper" instead. in D:\Aptana Studio\Projects\app01\vendor\symfony\console...

Visual Basic how to get

Extracting PDF metadata in Python 3

python,metadata
What is the best module or easy script to get metadata from PDF files? Everything seems like its for python 2.7 or the module wont work. I need It for python 3.4.2 to work. https://pypi.python.org/pypi/pdfminer/ = Python 2.7 With PyPDF2: With: print(input1.getDocumentInfo()) I keep getting errors: raise utils.PdfReadError("file has not...

Why does ^metadata 'symbol not work?

clojure,metadata,read-eval-print-loop
The documentation on metadata claims that ^{:hi 10} 'x is equivalent to (with-meta 'x {:hi 10}), but I can't see that. Evaluating the following on a repl, (binding [*print-meta* true] (prn ^{:hi 10} 'x) (prn (with-meta 'x {:hi 10}))) prints the following, which shows that the first case doesn't get...

WKWebView/UIWebView get website icon

ios,uiwebview,metadata,wkwebview,apple-touch-icon
How can I get the apple-touch-icon or logo of the website using WKWebView or UIWebView? I've read that getting a favicon is possible, however I plan on using the website's logo as a short cut like in iOS Safari and a favicon is too small for it. Is there a...

Using headObject to get x-amz-meta from S3 File

javascript,amazon-web-services,amazon-s3,metadata,bucket
I have a file on S3 with some metadata for example x-amz-meta-description="some description" This metadata was included when I uploaded the file to S3. If I use Amazon console to check the metadata, the metadata is there. Next, I added the following to the CORS configuration to have access to...

How to read .net assembly's meta data table

metadata,clr
I'm reading Jeffery Richter's book "CLR via C#". He mentioned the CLR metadata table contains TypeRef and MemberRef section. I want to build a call graph by reading these MemberRef and TypeRef information. What is the best way to do so? After a search, I found somebody read the file...

How to Get Wordpress Attachment Taxonomy Data

wordpress,metadata,attachment,taxonomy
I've used the method on the following page to create a Taxonomy named Location. http://code.tutsplus.com/articles/applying-categories-tags-and-custom-taxonomies-to-media-attachments--wp-32319 How can I get the data from the field named Location and return its value. Please help! Thanks...

Search SharePoint Foundation 2013 Picture Library by terms defined in Keywords field

metadata,sharepoint-2013,search-engine,picturegallery
Since Term Store functionality (and probably most of metadata functionality) isn't available in SharePoint Foundation 2013, I couldn't find a way to search through the pictures using some sort of tagging. Thus I decided to employ something what is available already in Foundation version. When you edit the picture, you...

SOLVED: Bash Script that exports Apple Tags (Mavericks Tags) to IPTC “Keywords” metadata (using 'Tag' and 'ExifTool')

bash,tags,metadata,photos,iptc
I frequently use the terminal on OS X for tasks like rysnc, ssh etc, but am still a complete noob at bash scripting. A client has a ton of images that they have been tagged using OS X tags. I need to append these tags into the IPTC metadata. So...

Photo framework: save exif data from picker (aperture, focal length, shutter speed, …)

ios,swift,metadata,uiimagepickercontroller,exif
I'm trying to do the equivalent of writeImageToSavedPhotosAlbum with the new Photo framework. To save the image, I only do this: func imagePickerController(picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [NSObject : AnyObject]) { let image = info[UIImagePickerControllerOriginalImage] as UIImage PHPhotoLibrary.sharedPhotoLibrary().performChanges({ () -> Void in let changeRequest = PHAssetChangeRequest.creationRequestForAssetFromImage(image) }, completionHandler: { (success, error)...

Error while writing Date to Image MetaData in C#-String was not recognized as a valid DateTime

c#,image,date,metadata,gdi
Im trying to write metadata to images using the following code.But when i try to add the date field an error is thrown String was not recognized as a valid DateTime using (Stream bitmapStream = File.Open(fileName, FileMode.Open, Here Date is the value obtained from DatePicker. date.tostring()->29/01/2015 06:35:13 PM date.ToShortDateString()-> 29/01/2015...

Java/Oracle : Find all Dependent Rows and Update Them

java,oracle,metadata
I have an Oracle table (COMBO_VALUES) which has been referenced by many other tables. for example 1 record in COMBO_VALUES may have been referenced by 100 different tables. I want to find all the related records (Their ID and Table Name) pointing at a COMBO_VALUES record so that I can...

How can I exclude source file metadata from output when compiling?

gcc,compilation,metadata,executable,binaryfiles
For example: $ gcc -O3 foobar.c -o foobar $ grep 'foobar\.c' foobar Binary file foobar matches How can I exclude such unnecessary and revealing metadata from the output of gcc and other compilers? It appears regardless of whether the output is an assembly file, object file, or executable....

create-metadata-templ in ssoadm/OpenAM fails

metadata,single-sign-on,openam
I'm trying to create metadata template using ssoadm in OpenAM with the following command: ssoadm create-metadata-templ -u amadmin -f pwd.txt -m sp.xml -x sp-extended.xml -s /sp -a -y https://stage1.abc.xyz.com/OpenAM It gives the following error: Incorrect option(s), ssoadm create-metadata-templ -u amadmin -f pwd.txt -m sp.xml -x sp-extended.xml -s /sp -a -y...

How to set block data value? [closed]

java,metadata,bukkit
Bukkit's setData(data) and getData() are deprecated. But there's no replacement. Bukkit/Spigot JavaDoc says this about setData(): Deprecated. Magic value Why is that?...

Can REST URLs send back UI rendering hints as metadata?

rest,metadata
I could not find a definitive document mentioning if UI rendering hints can be sent back as REST metadata or not. First of all, what all can be classified as REST metadata? Surely, data type of attribute can be metadata but can presentation hints like whether an attribute is...

Using a different image for microdata that isn't displayed in the article?

html,metadata,meta-tags,meta,microdata
I'm working on a website that has a bunch of articles. I'm looking to find a way to add an image that is invisible without putting it inside a hidden div. When users add an article, there is a "main" image of the specific proportions that the users upload (which...

getting content-type=“text/plain” for image?

curl,metadata,content-type,response-headers
I'm gathering the favicon of http://www.qualtrics.com/favicon.ico ,Its basically a image but the content type is text/plain; charset=utf-8? can we set text/plain; charset=utf-8 this content type for image also or image only? but in other favicons from other websites i'm getting image/icon as content type !

Copy Azure Blob and its metadata

c#,azure,metadata,blob
So I would like to copy an Azure blob and its metadata to a new blob. I have the method public void CopyBlob(CloudBlockBlob blob, CloudBlockBlob newBlob) { CopyStatus copy = CopyStatus.Pending; while (copy != CopyStatus.Success) { newBlob.StartCopyFromBlob(blob); copy = CheckIsDoneCopying(newBlob, "MyContainerName"); } } public CopyStatus CheckIsDoneCopying(CloudBlockBlob blob, string containerName) {...

Use MetdataId to find the Attribute Name of a deleted attribute

metadata,dynamics-crm
When I query the metadata using RetrieveMetadataChangesRequest, the RetrieveMetadataChangesResponse returns EntityMetadata and DeletedMetadata. The DeletedMetadata only returns the MetadataId. Is there a way to get the metadata for the attribute without knowing the entity? Even just the attribute name would be fine. RetrieveAttributeRequest I think only works if the attribute...

Get metadata of all files in the media in WordPress

php,wordpress,metadata
I need to retrieve metadata of files that are not images such as word, excel or pdf documents. I was able to retrieve the metadata when it was attached to a page or post but when its not attached, not getting anything. I tried using get_post_meta( $post_id ); and wp_get_attachment_metadata(...

Overwrite Blob But Keep Metadata?

azure,metadata,blob,azure-storage-blobs
I need to store information on the blob (local path of the file) and to be able to overwrite that blob but keep the information. I tried the metadata approach and its exactly what I've look for but once I overwrite the blob the metadata is also overwritten. There is...

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

javascript,ios,image,metadata
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...

Robot Framework accessing a keyword from test suite Metadata

python,metadata,robotframework
I want to set for each test inside the test suite a simple report of the computer name, So I've created the following simple robot __init__.robot file: *** Settings *** Metadata Executed At Get Environment Variable COMPUTERNAME Library OperatingSystem The problem is that the Get Environment Variable is translated as...

Can't get correct Key-Value Pairs with Tika

java,apache,metadata,key-value,tika
I'm trying to get the Metadata Values from an Office Document and all it shows as key-value pair is this one: Content-Type: application/zip I just can't tell the issue in this one. Why does it only show the Content-Type? What i'm interested in are Keys like title. import java.io.FileInputStream; import...

Java extract colorSpace and PCS from ICC_Profile to verify the integrety of an image

java,image,colors,metadata,exif
First (I forgot to say I'm new to java and it's my first post here, so if I make some mistakes, pls correct me ;) ) I got the problem, that I got a lot of images. Between these images are some which are corruped (e.g. a picture with ICC-Profile...

Adding metadata to existing python objects

python,python-3.x,metadata
I am currently reading lines from a .csv file and storing the data in a list of array.array('f') objects. Since I will be passing the individual lines to different processes I would like to store an (line) id with every array.array object. I know I can do this obviously by...

How to add an extra metdata to a field of an object?

c#,attributes,metadata
I have an abstract class Node that everybody should implement in our office: public abstract class Node { public abstract void run(); } The implemented classes should also contain at least one input and one output properties. Please look at the following example: public class LineNode : Node { public...

Handsontable - Metadata definition object

merge,save,metadata,state,handsontable
In Handsontable, it is possible to get data object via getData function. I also need to save metadata of Handsontable instance e.g. actual column sizes, merged cells etc. Is it possible to get one object which describes actual state of table and use it to save and load state along...

Extending CachedDataAnnotationsModelMetadataProvider to not cache some DataAnnotations

asp.net,asp.net-mvc-4,metadata,modelmetadata
I'm trying to extend CachedDataAnnotationsModelMetadataProvider to not cache Custom ValidationAttribute. How can i achieve this? I tried looking in aspnetwebstack, but it is too complicated to get answer; what do i need to override, as protected override protected override CachedDataAnnotationsModelMetadata CreateMetadataFromPrototype( CachedDataAnnotationsModelMetadata prototype, Func<object> modelAccessor) and protected override CachedDataAnnotationsModelMetadata CreateMetadataPrototype(...

How does telegram shows the Icon of some websites?

html,css,metadata,telegram
I am working with telegram on windows and its online version on web.telegram.org, when I share a link with my friend Telegram shows the icon or logo of some websites in that message: Image The first website is vajehyab.com and it has a favicon too (But do not showing that...

How do you use link text as value in schema.org value?

html,metadata,schema.org,microdata
I'm trying to markup some HTML with schema.org microdata, however I'm getting an issue with my markup: Here's my current HTML: <div> <h1> <a href="example.com/1234">The name is here</a> <small>(Some extra info)</small> </h1> Tons more content about the thing </div> What I want to do is describe the existence of the...

How do I export dicom datasets to excel?

python,python-2.7,metadata,export-to-excel,dicom
I am still quite new to coding, and have a couple of questions. I was working on a few MRI Images with the file extension '.dcm'. I imported the 'dicom' module which allows me to extract specific parameters (such as the Patients Name Age, Type of Scan, etc.) from the...

Standardising dataset attributes across projects

sas,metadata
Background: I have multiple old projects that I need to standardise (PRJ01-PRJ10). Each is stored under its own libname and each has around 30 datasets (note: not all studies have the same 30 datasets). The variable names have remained consistent across the projects. However, over the years, the labels and...

Should I resubmit the binary after replying to a metadata rejection?

ios,metadata,itunesconnect,appstore-approval
I have received a metadata rejection for my application requesting some clarification about my application Information Needed Your iTunes Connect settings indicate that your app serves third-party advertisements. However, we were unable to locate ads in your app. Please reply to this message to provide the steps for locating third-party...

Ruby: Discovering constants and variables in objects

ruby,singleton,metadata
I have the following constant and instance variable in this object: MyObj = Object.new class << MyObj MY_CONST = 'FindMe' @my_var = 'OrMe' # ... end Is there any way to automatically discover these items, either inside or outside the object? Unfortunately, I'm currently using Ruby 1.8.6 and 1.9.3, but...

Can ALAssetLibrary load image file in the Document folder?

ios,metadata,alassetslibrary
ALAssetLibrary can get image file info from the camera roll or album very easy. However, when I try to use it to load the image file in the Document folder(sandbox), it always gets nothing. This is my code: //Get full file path in the Document folder.(Yes, IMG001.jpg exists in that...

DataAnnotations with EDMX EF 6.0 does not work

entity-framework,attributes,metadata,data-annotations
I have an .EDMX with my models, from EF 6.0, and I want to add attributes to some of my fields. I've read many examples where they use DataAnnotations with MetadataType... I've tried to implement it, but it does not override... For example if I have [Queryable] public string Name;...

Using Metadata/Inheritance to factor out code across multiple classes

c++,templates,inheritance,metadata,metaprogramming
I have two classes that will represent two very simple databases, and each has a "Save" function which will write what's in the class to a file. Since the code within the "Save" function is very similar, I was wondering if I could factor it out. One of my colleagues...

How to send title & artist name with audio using icecast client in android

android,metadata,icecast
Following code works as expected for up streaming to icecast server. But I want to send extra information like title, artist along with stream. I have tried by adding tags like ice-title,ice-artist,title, artist. But it's not adding title & artist s = new Socket(server,port_num); Log.d("VS", "Socket Created"); out = new...

Downloading youtube mp3 - metadata encoding issue (python, youtube-dl, ffmpeg)

python,encoding,ffmpeg,metadata
I'm trying to download audio from youtube with youtube-dl.exe and ffmpeg.exe (Windows 7), but I am having some troubles with encoding. I have to parse metadata manually, because when I try to use --metadata-from-title "%(artist) - %(title)" --extract-audio --audio-format mp3 https://www.youtube.com/watch?v=DaU94Ld3fuM I get ERROR: Could not interpret title of video...

Can NetStream.seek move the playhead of an MP3?

actionscript-3,mp3,metadata,netstream
I create a custom SWF to play MP3s that use RTMP and <NetStream>. I was able to connect to the server, play and pause the mp3, and adjust the volume using <SoundTransform>. But I still can't retrieve metadata from the <NetStream> to make a seek bar. Can <NetStream.seek> move the...

Writing GPS data in a simple image file WITH NO PREVIOUS GPS data in it

c#,image,gps,metadata,exif
-> C# I want to write (and read afterward) a GPS data in an image with no GPS data already present in it! I know this question is everywhere on internet but they didn't tell you how to write specifically in an image with EMPTY GPS information. If you are...

difference between index and meta in search and lucene's support

search,indexing,solr,lucene,metadata
Are there any differences between metadata and index in terms of search? m My understanding is that metadata for a document can be something such as author, keyword, etc. Index operation can be performed against the content body itself, against the metadata itself, against the metadata body+ metadata. Is this...

R: tm: TextDocument level metadata setting looks to be very inefficient

r,metadata,text-mining,tm,corpus
I'm loading text documents from the database, then I create corpus from them, and finally I set prefixed id of the document (I need to use prefix, since I've got documents of several types). rs <- dbSendQuery(con,"SELECT id::TEXT, content FROM entry") entry.d = data.table(fetch(rs,n=-1)) entry.vs = VectorSource(entry.d$content) entry.vc = VCorpus(entry.vs,...

clang set metadata to allocainst

clang,metadata,llvm,llvm-ir
First I'm real noob with clang/llvm. BUT I'm trying to modify clang for some purpose. I'd like to add metadata whenever an Alloca instruction is emitted in IR code for a variable which has some annotation. I noticed this function in CGDecl.cpp: CodeGenFunction::AutoVarEmission CodeGenFunction::EmitAutoVarAlloca(const VarDecl &D) which contains the nice...

Why *_PROCEDURES view doesn't show the PROCEDURE_NAME

oracle,stored-procedures,plsql,metadata,sql-view
Why can't I see my procedure in user_procedures view? Why is the procedure_name filter on all_procedures view returns no rows. This question is primarily to aid those who are searching for a similar question. I hope that anyone looking for such question would find a answer here. Test case :...

Does hachoir metadata or libextractor extract covers from ID3v2 and all another formats?

python,metadata,id3v2,hachoir-parser
I've tried to use hachoir-metadata to work with multimedia files but I can't find how to parse covers in ID3v2 metadata. I see in source code that it know about a lot of covers tags but dose not return any in parser. And I've even tried to use libextractor and...

Spring Security SAML IdP Metadata Certificate and Signature

spring,certificate,metadata,saml,spring-saml
I have looked at many questions including http://stackoverflow.com/a/25384924/1317559. I have the IdP metadata and certificate, but can't seem to get Spring so see it. Added the certificate to the keystore: keytool -importcert -alias adfssigning -keystore samlKeystore.jks -file certificate.crt In the metadata there are multiple certificates (2 different ones) and a...

Joomla: K2 - How to strip out curly brackets from meta description using preg_replace

php,joomla,metadata,curly-brackets,k2
I need to strip out some curly brackets from the meta description which is created by joomla/K2. I found two php solutions to strip unneeded curly brackets: $description = preg_replace( '/{.+?}/', '', $description); and $metaDescItem = str_replace('/{.+?}/', '', $metaDescItem); There are different curly brackets which control the content of my...

Error while using javaxt

java,android,image,android-studio,metadata
I am having a problem when using javaxt in my android application. Basically what I did is, added the javaxt jar file as a library to my project and configured the build.gradle and the settings.gradle so the the javaxt jar file will be compiled. In my java class I am...

How to extract “Encoded by” from mp3 metadata using Python?

python,metadata,mp3,eyed3
I am trying to write a Python script to extract metadata tags from some mp3 files. Specifically, I am looking to extract "Album" and "Encoded by", which are available if I right-click on the files and look under details: I am using currently using the eyeD3 library to parse metadata....