metadata

Getting SHOUTcast metadata on the Mac

I'm creating an application in Objective-C and I need to get the metadata from a SHOUTcast stream. I tried this: NSURL *URL = [NSURL URLWithString:@"http://202.4.100.2:8000/"]; NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:URL]; [request addValue:@"1" forHTTPHeaderField:@"icy-metadata"]; [request addValu...

Problem serializing primitive data using WCF

Scenario: WCF client app, calling a web-service (JAVA) operation, wich requires a complex object as parameter. Already got the metadata. Problem: The operation has some required fields. One of them is a enum. In the SOAP sent, isnt the field above (generated metadata) - Im using WCF diagnostics and Windows Service Trace Viewer: [System...

Get the unique constraint columns list (in TSQL)?

I can get a list of unique constraints fairly easily with the following query: select * from INFORMATION_SCHEMA.TABLE_CONSTRAINTS where CONSTRAINT_TYPE='UNIQUE' But how do I get a list of the columns that each unique constraint applies to? ...

Can I add metadata to git commits? Or can I hide some tags in gitk

I want to associate custom metadata with a git commit. Specifically to record a review ID from a code review but it could be anything. Tags seem a natural way to do that but I expect to have a review for every commit and I don't want to clutter gitk with tons of tags. Is there some other mechanism to add custom metadata? Can I make c...

Custom SSRS Parameter Metadata

Is there any way to add custom metadata to SSRS 2008 report paramaters? I am using SSRS as my reporting backend, ASP.NET MVC to render parameter inputs and the report viewer to render the report output. I need to set display order/layout metadata for each parameter to use when rendering the parameters. At this point, I'm only using th...

JpegBitmapEncoder.Save() throws exception when writing image with metadata to MemoryStream

I am trying to set up metadata on JPG image what does not have it. You can't use in-place writer (InPlaceBitmapMetadataWriter) in this case, cuz there is no place for metadata in image. If I use FileStream as output - everything works fine. But if I try to use MemoryStream as output - JpegBitmapEncoder.Save() throws an exception (Except...

Proper way to validate model in ASP.NET MVC 2 and ViewModel apporach

I am writing an ASP.NET MVC 2 application using NHibernate and repository pattern. I have an assembly that contains my model (business entities), moreover in my web project I want to use flattened objects (possibly with additional properties/logic) as ViewModels. These VMs contain UI-specific metadata (eg. DisplayAttribute used by Html.L...

Updating a local sqlite db that is used for local metadata & caching from a service?

I've searched through the site and haven't found a question/answer that quite answer my question, the closest one I found was: Syncing objects between two disparate systems best approach. Anyway to begun, because there is no RSS feeds available, I'm screen scrapping a webpage, hence it does a fetch then it goes through the webpage to sc...

Dynamic page titles in Symfony 1.4

Hi, I'm wondering if anyone's got any good advice/experience regarding setting dynamic meta titles in Symfony? Currently, the solution I'm aware of would be to use the following code to set a title individidually in each action: $this->getResponse()->setTitle('This is a title'); Because I also need translated titles, I could call th...

Uploading file with metadata

Hi Could you help me for how to adding a file to the sharepoint document library? I found some articles in net. but i didn't get the complete concept of the same. Now i uploaded a file without metadata by using this code. if (fuDocument.PostedFile != null) { if (fuDocument.PostedFile.ContentLength > ...

How to get Wordpress MU / BuddyPress wp_signup meta data

I am trying to get a value from the meta data that is stored in the wp_signups table for a Wordpress MU / BuddyPress installation. I see it's stored in the meta field as s:3:"age";s:2:"25"; ...which is age = 25 I put the information there using $usermeta['age'] = $_POST['signup_age']; in a plugin subscribing the the bp_signup_usermeta...

Can I use JSFL to set the "Flex SDK Path" in a FLA's library path?

I have a big set of fla's that use an ActionScript 3.0 class that uses the Embed Flex SDK feature. (Like this; [Embed(source="pngasset.png")] ) My Flash CS3 IDE knows where my Flex SDK path is. And my global actionscript library path contains; $(FlexSDK)/frameworks/libs/flex.swc; However when I recompile an older Fla. I get a dialog ...

InPlaceBitmapMetadataWriter.TrySave() returns true but does nothing

On some .JPG files (EPS previews, generated by Adobe Illustrator) in Windows 7 InPlaceBitmapMetadataWriter.TrySave() returns true after some SetQuery() calls, but does nothing. Code sample: BitmapDecoder decoder; BitmapFrame frame; BitmapMetadata metadata; InPlaceBitmapMetadataWriter writer; decoder = BitmapDecoder.Create(s, BitmapCrea...

Read/Modify PDF Metadata using iTextSharp

Hello, 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. ...

How do I use IPTC/EXIF metadata to categorise photos?

Many photo viewing and editing applications allow you to examine and change EXIF and IPTC data in JPEG and other image files. For example, I can see things like shutter speed, aperture and orientation in the picture files that come off my Canon A430. There are many, many name/value pairs in all this metadata. But... What do I do if I...

WPF TextBox TextProperty metadata override

How to override the TextProperty Metadata to set the UpdateSourceTrigger.PropertyChanged by default while using the functionality from the base TextBox Class TextBox.OnTextPropertyChanged TextBox.CoerceText methods, when both mentioned are private ? public class MyTextBox : System.Windows.Controls.TextBox { static MyTextB...

Parse metadata from http live stream

Hi, I'd like to extract the info string from an internet radio streamed over HTTP. By info string I mean the short note about the currently played song, band name etc. Preferably I'd like to do it in python. So far I've tried opening a socket but from there I got a bunch of binary data that I could not parse... thanks for any hints ...

Extrating image information about a PNG in .NET

I'm trying to get information about a PNG file but I've yet to discover a comprehensive site to help me. These are some of the semi useful code snippets I have: Bitmap bmp = new Bitmap(pngFileName); BitmapData bd = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly,PixelFormat.Format48bppRgb); and Stream...

Is it possible to add IPTC data to a JPG using python when no such data already exists?

With the IPTCInfo module under Python (http://snippets.dzone.com/posts/show/768 for more info) it's possible to read, modify and write IPTC info to pictures. However, if a JPG doesn't already have IPTC information, the module simply raises an exception. It doesn't seem to be able to create and add this metadata information itself. Wh...

How is FileInfo Serialized?

I want to save file metadata (mostly path/name) along with the contents of the file. I noticed that FileInfo is serializable. Does anyone know data is serialized when you save a FileInfo object? I would assume that only metadata is saved, not the contents of the file? ...