metadata

How to recognize an image file format using its contents?

ぃ、小莉子 提交于 2019-12-06 05:30:56
If a Image file is of format .png then it will contain ‰PNG , at the beginning of the file. (when read in Text mode) If a Image file is of format .bmp then it will contain BM , at the beginning of the file. (when read in Text mode) I know that Image formats contain text (data) of certain size (bytes) in the beginning of the file, which is used as metadata of the Image file? My Questions are:- Is this behavior same in all image file formats (or formats in general)? Could a image file ( of no extension ) be recognized just using this data? Is there information available on how this metadata is

SQLAlchemy MetaData.reflect not finding tables in Oracle db

ぐ巨炮叔叔 提交于 2019-12-06 04:40:16
I'm attempting to reverse engineer an existing Oracle schema into some declarative SQLAlchemy models. My problem is that when I use MetaData.reflect , it doesn't find the tables in my schema, just a Global Temp Table. However, I can still query against the other tables. I'm using SQLAlchemy 0.7.8, CentOS 6.2 x86_64, python 2.6, cx_Oracle 5.1.2 and Oracle 11.2.0.2 Express Edition. Here's a quick sample of what I'm talking about: >>> import sqlalchemy >>> engine = sqlalchemy.create_engine('oracle+cx_oracle://user:pass@localhost/xe') >>> md = sqlalchemy.MetaData(bind=engine) >>> md.reflect() >>>

Java metadata read and write

非 Y 不嫁゛ 提交于 2019-12-06 04:23:20
Is it possible in a generic way (for all image types) to be able to read and write metadata in Java, i've found a few examples but they are always specific, for JPEG or PNG for example. I need something generic enough to not if else statement everywhere. I don't want to rewrite the source but here is an great example http://johnbokma.com/java/obtaining-image-metadata.html Look at the readandDisplayMetaData function and it will give you an idea. Every file format has a different way of storing metadata. Asking for a generic way to read and write metadata is like asking for a generic way to read

In java how can I extract camera related information from an image?

一个人想着一个人 提交于 2019-12-06 03:59:29
问题 I am looking to extract the camera related information from a jpg using Java. I have looked around but have not been able to find a solution to my problem. I am exporting my photos from Aperture on my mac (OS X 10.7) and want to use the data from Aperture that is available in the file info. Any ideas? I am looking to have Dimensions and Key Words extracted from photos like this one: 80.167.88.49/masters/test.html. Currently i get an exception when trying to use the Metadata Extractor. I don't

How to use git metadata strategies compared to ClearCase ones?

让人想犯罪 __ 提交于 2019-12-06 03:49:28
In my previous developer life, clearcase was the tool, during 10+ years, for version control. Now the organisation I work for have moved over to git since 4 years. In clearcase there are easy accessible metadata constructions such as attributes on all levels of items such as repositories OR branches OR labels. git notes exists, but after some web surfing I have not come across any clear good way of doing this efficiently and why. For example UCM ClearCase baseline promotion level is a good concept that I wish would be as simple in git. The development community stats I represent for this

JDBC Metada retrieve Constraint information

社会主义新天地 提交于 2019-12-06 03:32:27
问题 I need information about table and column name from the name of the constraint. exists someone similar to connection.getMetadata().getX to retrieve the constraint information? my test case is in Oracle Database, but my best solution I just want to solve with jdbc 回答1: If you are talking about foreign key and primary key constraints. The DatabaseMetaData does provide methods for retrieving this information: you can use getImportedKeys(..) and getCrossReference(..) for foreign keys, and

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

家住魔仙堡 提交于 2019-12-06 03:28:26
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. 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. cippu_lux 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 MRousse don help me at all, but help me to solve 1st problem: Problem file was not in UTF-8. Problem was

Python: Extract Metadata from PNG

风格不统一 提交于 2019-12-06 03:21:04
问题 I am able to extract the necessary information using R, but for consistency within the overall project, I would like to be able to do it with Python (preferably Python3). I need the contents of a single tag called "Settings". This tag contains XML which will then need to be parsed. Getting the metadata in R is incredibly easy: library(exifr) library(XML) path = file.path('path', 'to', 'file') x = read_exif(file.path(path,'image.png')) x$Settings It doesn't look like Python can do it, which

Error: Cannot obtain Metadata; using WCF Test client, C#, and trying to implement webhttpbinding and json

£可爱£侵袭症+ 提交于 2019-12-06 02:56:07
I'm getting the fabled Error: Cannot obtain Metadata from... message, particularly http://localhost:1640/Service1.svc I've scoured stackoverflow and Google and, so far, none of it has helped. I created a new product to dumb it down and it's still not working. So I am here asking for help. I'm trying to setup a WCF Service that uses JSON, which means I need to use webhttpbinding, in C#. When I use the WCF Test Client, I get the aforementioned metadata error. I'm using Visual Studio Express 2010 and the target framework. I've been at this for two days and cannot understand why or what is the

Is it possible to store hidden metadata information that is tied to a specific Table or Cell within a Word document?

安稳与你 提交于 2019-12-06 02:29:53
问题 I am trying to store metadata (basically a unique id) along with each cell of a table in a Word document. Currently, for the add-in I'm developing, I am querying the database, and building a table inside the Word document using the data that is retrieved. I want to be able to save any of the user's edits to the document, and persist it back to the database. My initial thought was to store a unique id along with each cell in the table so that I would be able to tell which records to update. I