metadata

Using OPENQUERY (exec stored procedure) to create new temporary table fails with error 11526

拈花ヽ惹草 提交于 2019-12-17 16:46:18
问题 I have SQL Server 2012 full version installed on my development PC. I am trying to follow the examples here, which show how to create a new temporary table using a stored procedure as the source of the data. I am trying to combine the results of several stored procedures into a single temporary table (the column-structure/definition of the various resultsets is identical). To test if the plumbing is working, I issue this query: SELECT * FROM OPENQUERY("FOO\SQL2012", 'exec mySchema

Can I get metadata of generic type in typescript?

狂风中的少年 提交于 2019-12-17 16:31:46
问题 I have a decorated model class: @Api('payments/deposit') export class DepositsModel { public id: number; public created_at: Date; ... In angular component constructor I'm injecting data service pointing to use my model class: ... public constructor( private $api: GridApiService<DepositsModel> ... ) { this.service = new GridService($api); ... } ... So, my cool component has a cool service, witch knows the type of data it work with... Should know.. But how I can to get my model's metadata in my

Read/Modify PDF Metadata using iTextSharp

孤者浪人 提交于 2019-12-17 09:43:29
问题 I am trying to use iTextSharp to read/modify PDF metadata. I figured out how to do it using pdfreader and pdfstamper. I was wondering if I could also read/modify additional metadata information like copyright information and few others within the XMP photoshop namespace. I would greatly appreciate any pointers to the solution. Thank you, Murugesh. 回答1: You can read metadata using `PdfReader'. I've read metadata like this: PdfReader reader = new PdfReader("HelloWorldNoMetadata.pdf"); string s

How to select column names dynamically in mySQL

筅森魡賤 提交于 2019-12-17 07:54:12
问题 I want to select column names but I don't know the table structure ahead of time and it may change so I can't just hard code the select statement with column names. I also do NOT want to select every column. Is there and easy way to do this? My thoughts are it's some kind of combination of these two queries but my SQL is not that good. SHOW COLUMNS FROM table_name; SELECT * FROM table_name; I tried using a sub select but it didn't work. Nothing seems to happen, I don't get an error I just get

How to get image metadata in ios

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-17 06:41:35
问题 I want to display image metadata using ios. Meta data like Aperture, Shutterspeed, Exposure Compensation, ISO, Lens Focal Length, etc. So please help me if anybody has idea. 回答1: CGImageSourceRef source = CGImageSourceCreateWithURL( (CFURLRef) aUrl, NULL); CGImageSourceRef source = CGImageSourceCreateWithData( (CFDataRef) theData, NULL); NSDictionary* metadata = (NSDictionary *)CFBridgingRelease(CGImageSourceCopyPropertiesAtIndex(source,0,NULL)); CFRelease(source); Check the dictionary

Problem reading JPEG Metadata (Orientation)

ⅰ亾dé卋堺 提交于 2019-12-17 02:28:51
问题 I've got a JPEG image which was taken on an iphone. On my desktop PC (Windows Photo Viewer, Google Chrome, etc) the orientation is incorrect. I'm working on an ASP.NET MVC 3 web application where i need to upload photos (currently using plupload). I've got some server-side code to process images, including reading EXIF data. I've tried reading the PropertyTagOrientation field in the EXIF meta data (using GDI - Image.PropertyItems ), but the field isn't present. So it's either some specific

is it possible to load EF metadata at runtime?

杀马特。学长 韩版系。学妹 提交于 2019-12-14 03:58:40
问题 I want to load EF metadata from database at runtime. Is that scenario possible? First get the data from database, then write it to .ssdl, .msl and .csdl files sounds ok. But how to tell EF to use what I've loaded? Do I need to compile it or something like that? 回答1: Yes, you can do that. New up a MetadataWorkspace using the constructor which takes these files. Then you can new up an EntityConnection passing the MetadataWorkspace to the overloaded constructor, and finally new the ObjectContext

How to get TypeDef from TypeSpec

怎甘沉沦 提交于 2019-12-14 03:58:03
问题 I'm trying to implement managed debugger looking at MDBG sample. Currently I'm stuck trying to get base class hierarchy methods using IMetaDataImport. EnumMethods, that I'm using, enumerates MethodDef tokens representing methods of the specified type . But I want to enumerate all the methods in class hierarchy. To do that I'm using GetTypeDefProps, that returns ptkExtends, which is token representing the base class. The problem is that base class could be represented by TypeDef, TypeRef or

How to get an user name from a file metadata permissions Java?

末鹿安然 提交于 2019-12-14 02:22:59
问题 How can I, throughout a given file, using java, retrieve an user name and its permissions to that file? Windows and Linux. 回答1: Java 7, which will be coming out this year, will support this. It is available in a pre-release format now. If that level of release is sufficient for your needs you could use it. Otherwise there are two different approaches you can take. Both involve interfacing with native libraries. The first is to use Java Native Interface (JNI) to write C code that interfaces

How to find header section in Magento platform?

与世无争的帅哥 提交于 2019-12-13 19:29:15
问题 I have a website in Magento and I am relatively new to this platform and I have basic notions of HTML and PHP. I want to make an account on Google Webmasters tools and I need to confirm that the website is mine. I have a metadata that I need to insert it in the header of the website, but I cannot find the header section. Can someone help me with this please? 回答1: I did a quick google search on where the header file in magento is located it came out with this app/design/frontend/base/default