metadata

ANTLR3 runtime metadata

How can I know during parsing which rule is currently matched? I'd like to automatically build an XML (or other objectal hierarchy) representing the parsed input, using rule names, without the need of using grammar actions or trees. Is this possible? Many thanks, Yaakov ...

Ways to track custom meta-data about Salesforce Fields?

Salesforce has some built in meta-data fields to describe each Field of each Object. e.g. you can record a Description and Help Text value for each field. Is there any way to record more information? e.g. If I want to record notes about each field that are relevant to developers but not to users? Or if I want to flag a field as 'no lon...

Is there anyway to add metadata to Java Collections?

Let's say I have a collection of objects which can be sorted using a number of different comparators based on the different fields of the object. It would be nice to be able to know later on in the code which comparator was used to sort the Collection with and if it was ascending or descending. Is there anyway to do this elegantly instea...

Does storing JSON objects in the class attribute of a tag Validate (XHTML Strict)?

I'm looking at using the jQuery MetaData Plugin. Looks very interesting but... <li class="someclass {some: 'data'} anotherclass">...</li> <script>alert($('li.someclass').metadata().some);</script> does this code validate? http://docs.jquery.com/Plugins/Metadata/metadata#options ...

Confused about Enum Data Type Definition?

As I know I can define a new Enum DataFormat at the my project Class, Suppose, I don't do that, I can reference the DataFormat from the 3rd-Party DLL. Then I can use the Enum DataFormat from the metadata of 3rd-Party DLL too. What's the difference? And are the any guideline to define A new Enum DataFormat ? Thanks. public enum Dat...

Output PDF metadata as document text -- do pdfs have environmental variables?

I'm creating a PDF by hand starting from a very basic PDF file and using a text editor. I was wondering if there was a way to reference metadata, such as the document title and document author in the body of the actual PDF. Something like %TITLE% perhaps. This would be really hand for making a PDF template where the heading of the docum...

Any way to set or overwrite the __line__ and __file__ metadata?

I'm writing some code that needs to change function signatures. Right now, I'm using Simionato's FunctionMaker class, which uses the (hacky) inspect module, and does a compile. Unfortunately, this still loses the line and file metadata. Does anyone know: If it is possible to overwrite these values in some odd way? If hacking up a c...

jQuery MetaData "data" attribute doesn't validate

Using the jquery metadata plugin, I have an element on my page that looks like this: But, if I run this through the W3C Validator - I get an error saying "there is no attribute "data"" ...have I missed anything (I realise data isn't a valid attribute, but this seems to be a 'bug' in the metadata plugin is it? - not one that's going t...

Custom description page for the WCF endpoint?

I am migrating an ASP.NET Web Service toward WCF. The old Web Service endpoint had a nice extensive description page generated from the comment of the underlying class exposed as a service endpoint. In particular, all available web methods were listed. Is there a way to emulate somehow this behavior with WCF? At least, how can I custom...

Adding metadata attributes to MySQL table

I would like to add custom attributes to a MySQL table which I can read via php. These attributes are not to interfere with the table itself - they are primarily accessed by php code during code generation time and these attributes HAVE to reside in the DB itself. Something similar in concept to .NET reflection. Does MySQL support any...

What pattern to follow to make application behave w.r.t. the meta-data supplied and which orchestration tool to use to generate meta-data?

Hello. I would like my application to pick up meta-data from a store and use it during the runtime to emit desired behavior (as defined in the meta-data). Next, in order to generate this meta-data, I would like to build (or extend) an orchestration tool. So first, it there a generic framework / pattern / guideline available (mine is .Ne...

c++ library for endian-aware reading of raw file stream metadata?

I've got raw data streams from image files, like: vector<char> rawData(fileSize); ifstream inFile("image.jpg"); inFile.read(&rawData[0]); I want to parse the headers of different image formats for height and width. Is there a portable library that can can read ints, longs, shorts, etc. from the buffer/stream, converting for endianess ...

Good conventions for embedding schema of a flat file

We receive lots of data as flat files: delimitted or just fixed length records. It's sometimes hard to find out what the files actually contain. Are there any well established practices for embedding the schema of the file to the beginning or the end of a file to make the file self-explanatory? Just to get an idea, imagine something l...

How to get a list of all Subversion commit author usernames?

I'm looking for an efficient way to get the list of unique commit authors for an SVN repository as a whole, or for a given resource path. I haven't been able to find an SVN command specifically for this (and don't expect one) but I'm hoping there may be a better way that what I've tried so far in Terminal (on OS X): svn log --quiet | gr...

Is there metadata in SQL Server to determine the date/time of the last update?

Does SQL Server 2005 maintain built-in, queryable, row-level last-modified timestamp metadata? I'm doing some analysis on a database that did not include any sort of column to track a revision date/time stamp. I usually create columns for this purpose, but the designer of this database didn't, so I'm stuck with reconstructing history on...

ASP.NET MVC 2 generation of the List/Index view

ASP.NET MVC 2 has powerful features for generating the model-dependent content of the Edit view (using EditorForModel) and Details view (using DisplayForModel) that automatically utilizes metadata and editor (or display) templates: <% using (Html.BeginForm()) {%> <%= Html.ValidationSummary(true) %> <fieldset> <legend><%...

How can I find a Qt metaobject instance from a class name?

Is there a way to find the QMetaObject instance of a class, given the class name? what I like to do is to load objects from disk, but for this to happen, I need a way to retrieve a QMetaObject instance using the name of a class, in order to use the QMetaObject to create an instance. ...

C# Attributes and Metadata implication

Hi, I read tutorials from the web about C# Attributes and Metadata. It's very cool but I'm wondering its implication. Are (custom) attributes loaded when the assembly is loaded? or is it only when you use reflection to retrieve the metadata? It seems the attributes add to the total of code size because it gets compiled in to the execut...

sql 2008 metadata modified date

Is there a way to identify the timestamp when an object(table/view/stored proc...) was modified ? there's a refdate in sysobjects but it's always the same as crdate atleast in my case and i know that alter view/alter table/alter proc commands have been run many times post creation ...

Sharepoint 2010 Managed Metadata - unable to get Term from TermSet

Hi guys, Having a really aggravating problem using Managed Metadata in SP2010 where I can get a Taxonomy Session, Term Store and Term set fine, but when I try to retrieve a term from the term set, I get a TermStoreOperationException which says that it "failed to read from or write to database". Does anyone have any idea as to why I ca...