filetypes

.VTX File Format?

I've recently taken the plunge into DirectX and have been messing around a little with Anim8or, and have discovered several file types that models can be exported to that are text based. I've particularly taken to VTX files. I've learned how to parse some basics out of it, but I'm obviously missing a few things. It starts with a .Facese...

Associationg vim syntax with file extension

Hi, how do I tell vim to use a certain syntax definition with a new file extension ? Let's say I have files that are some kind of xml, but have a different extension, how do I let vim know that it should use syntax=xml by default for that new type ? Any help appreciated. ...

File structure explorer (sth like Wireshark, but for files)

Hi I am looking for a software which is able to decompose and analyze files. Do you know any? What I mean is something that, given a file, would tell me for example: here is the magic number telling that it is a PNG, and here starts a colors definition, here goes the compression flag, and then there are the picture data, and so on......

Add programming language to gedit external tools?

The gedit external tools plugin allows tools to apply to only one or more of a predefined list of file types. How do I define my own file types? ...

How to use the xdg-mime command

Can someone provide example on how to use (with GNOME Ubuntu) the XDG-MIME command? I'm struggling to get anything working even with the docs. For example if I want to register the extension .mfe with an application called MyApp what would the steps be? This is my attempt so far, I would appreciate any pointers on getting this right... ...

How to run my programm to process email attachment of specified type on iPhone OS

I need to run my iPhone application when user gets email with attachment of specified type and process it. For example "some.jpg". How? ...

Trying to use/include/compile 3rd party library, libmagic. C/C++ filetype detection

After looking for a way to detect the filetype of a file stream, I found that the Unix file command uses libmagic and I'm trying to make use of the library myself, but I can't get it to work. I've rarely integrated 3rd party code in my own, so that's probably a big part of my problem as well. Why: I'm doing this because I have a portab...

Testing if an application can open a specific type?

On Mac OS X, how can I tell if a given application opens a specific type? I have two UTIs that I'm interested in: public.text and public.image and I have a list of applications. I want to filter the list by those two types so I have a list of text viewers and a list of image viewers. I've seen a related question on SO where it's possib...

How to tell eclipse preferred content type for a file

I'm working on a plugin that will handle files of a given type, say, .xyz when in eclipse I try to open an xyz file. I'm trying to use org.eclipse.core.runtime.content.IContentType type = org.eclipse.core.runtime.Platform.getContentTypeManager().findContentTypeFor( fileURI.getPath()); I've got code to look up the needed fact...

Suppose a server is hosting a video file. Why is it that sometimes, it requires a full download before playing. Sometimes, I can stream it?

Someone told me that some servers configure it that allow streaming of a file. OR Is it a file-encoding problem, not a server configuration problem? Given a link of the video file, how do I check if that person allows streaming (or play only once downloaded) ? Headers? ...

Can the iPhone render vector graphics files directly? What formats are supported?

Is it possible to render a vector image file on the iPhone in the same way that one can render a bitmap (png, jpeg) file? I have tried eps and pdf files, neither of which seems to work – they are displayed correctly in Interface Builder but do not display when run. The console outputs a message along the lines of 'Could not load the "i...

IIS - wont serve an .ini file

Hi, I have a .ini file in the virtual directory of IIS. When i try to open the same in IE i get file not found HTTP 404 error. http://www.virtualdirectoryname/sample.ini Any inputs. Please suggest some solution. Thanks, Karthick ...

Enforce file filters in JFileChooser

How can I enforce the JFileChooser filetype (when saving). I have implemented a file filter (CSV filetype) but it does not in any way enforce the file extension on the user. I need the file chooser to append the file extension to the filename if the user has not done so. I am guessing that it would be possible to check fileChooser.getS...

jquery file type selector

Hi, What is the correct jQuery syntax to only select certain file types? e.g. $("#fragment-1 a[SELECT ONLY ANCHOR TAGS WITH FILE TYPE OF MP3]").hide(); Thanks. ...

How can I only allow certain filetypes on upload in php?

I'm making a page where the user upload a file. I want an if statement to create an $error variable if the file type is anything other jpg, gif, and pdf. Here's my code: $file_type = $_FILES['foreign_character_upload']['type']; //returns the mimetype if(/*$file_type is anything other than jpg, gif, or pdf*/) { $error_message = 'Only...

Uploadify refuses to upload WMV, FLV and MP4 files - SOLVED

The uploadify plugin for JQuery seems very good and works for most file types. However, it allows me to upload all file types apart from the ones I need. Uploads of any other type work. I have already tried changing the fileExt parameter and also tried removing it altogether. I have testing in Google Chrome, IE7 and Firefox and none ...

Icefaces graphicImage supported filetypes

Which image filetypes are supported when you pass through a byte[]? ...

How can I get the Name of the Program associated with a file extension using Delphi?

I need to get the name of the program currently associated with a file extension for the current user. If you right-click on a file and select properties, then what I need is the program name that is to the right of the "Opens with" line. e.g. For ".xls", I want to be able to get the answer "Microsoft Office Excel", or whatever program...

Multiple file types in vim

When I am working on a PHP file for example the default filetype is php. This makes sense, however when that PHP file has HTML as well the filetype is still only php. For some plugins that means that I get the PHP functionality for that plugin, but miss out on the HTML functionality. A more specific situation where this happens is with m...

Inexpensive ways to add seek to a filetype object

PdfFileReader reads the content from a pdf file to create an object. I am querying the pdf from a cdn via urllib.urlopen(), this provides me a file like object, which has no seek. PdfFileReader, however uses seek. What is the simple way to create a PdfFileReader object from a pdf downloaded via url. Now, what can I do to avoid writing...