file-format

how to force that any file of a certain type will open with my program?

拟墨画扇 提交于 2019-12-30 13:57:08
问题 i have build program that can open *.sdf files and show all the table & the data. how to force that any *.sdf file in my computer will open with my program ? thank's in advance 回答1: If you have a Deployment project for your program it is easy to do with the File Types Editor: Select your deployment project Click on the File Types Editor button Right click on the "File Types on Target Machine" Add File Type Use the Extensions property on your new File Type to specify one or more file

How do I distinguish between 'binary' and 'text' files?

孤人 提交于 2019-12-28 04:52:26
问题 Informally, most of us understand that there are 'binary' files (object files, images, movies, executables, proprietary document formats, etc) and 'text' files (source code, XML files, HTML files, email, etc). In general, you need to know the contents of a file to be able to do anything useful with it, and form that point of view if the encoding is 'binary' or 'text', it doesn't really matter. And of course files just store bytes of data so they are all 'binary' and 'text' doesn't mean

Is it possible to know the duration of an MP3 before the entire file is downloaded?

血红的双手。 提交于 2019-12-23 20:43:26
问题 This is a question about the file format of MP3s. I've been hunting for a way to get an MP3 duration. Since I'm using JLayer SPI to decode the MP3 I've discovered that this is possible where the audio source is a file. AudioFileFormat fileFormat = AudioSystem.getAudioFileFormat(source); Long microseconds = (Long) fileFormat.properties().get("duration"); System.out.println(microseconds); However when I take the similar code and the very same MP3 and change the source to a URL, JLayer does not

Reserved characters in PHP $_SESSION variable keys

你离开我真会死。 提交于 2019-12-23 20:06:21
问题 I was looking at the internal representation of PHP session file and I noticed that the session keys are separated by the pipe character | . Before getting into the problem I encountered, let me give a quick tutorial on how the session file is formatted. At least, this is how it was formatted on my Mac (10.9.4, PHP 5.4.24). Session File Format Say I have the following code: $_SESSION["age"] = 26; $_SESSION["car"] = "Mazda"; $_SESSION["nerdy"] = true; $_SESSION["likes"] = array(42, "being meta

Import names in ELF binary

大憨熊 提交于 2019-12-23 10:07:11
问题 Where does the ELF format stores the names of imported functions? Is it always possible to enumerate all import names, like for PE executables? For example, if a binary is using printf is it possible to tell it does, just by static analysis of the binary itself? 回答1: In ELF they're called undefined symbols. You can view the list of undefined symbols by: nm -D <file>|grep -w U objdump -T <file>|grep "\*UND\*" ELF files don't specify which symbols come from which libraries; it just adds a list

Is there a JSON stringify and parse capability for VB.NET?

与世无争的帅哥 提交于 2019-12-22 10:37:07
问题 I looked on the JSON.org website but I couldn't find any JSON library for Visual Basic .NET, does one exist? Did anyone have any success using Json.NET with VB.NET? 回答1: Have you seen the JavaScriptSerializer class? 回答2: You can use the DataContractSerializer to serialize/deserialize JSON. 回答3: I use csjson and it works pretty well. Though we're not sure if its fully functional since the samples say its "pre-release". 来源: https://stackoverflow.com/questions/1259817/is-there-a-json-stringify

How can I generate an ELF file with GCC?

会有一股神秘感。 提交于 2019-12-22 06:56:47
问题 I am writing C and C++ code on Linux OS and I am using GCC. After finishing my code, I would like to generate an ELF file. I just can generate "a.out" file and I don't need it. How can I get ELF file ? ELF file occurs as a result of what ? or Is it possible to generate this file with this program ? 回答1: The compiler (i.e. gcc or g++ ) will invoke the linker ( ld ) which produces an ELF executable. In practice, you will use a builder program (like make ) to drive gcc commands. See this answer.

Paradox database file

我与影子孤独终老i 提交于 2019-12-22 05:36:40
问题 I found paradox database files with different extension. There are db file, mb file, dat file, px file, XG0 file, XG1 file, XG2 file, XG3 file, XG4 file, YG0 file, YG1 file, YG2 file, YG3 file and YG4 file. I already found way to open db file and px file using gnumeric spreadsheet. I found some of needed data from db file. But, rest of data not in db file. So, i have to open rest of files. I cant find software that can read those files. 回答1: Unfortunately, Borland has never documented the

Is It Possible To Include DWG Trueview In The Android SDK As A Tool To Open And View a DWG File?

烂漫一生 提交于 2019-12-22 01:26:47
问题 We are developing an application which is able to open and modify a DWG file without converting it to other formats (e.g. PDF, JPG). In this application we need to allow the user to open and view DWG files. Can someone please help us with this? Or suggest some other ways by which we can open and view DWG files without converting it to any other image file format ? 回答1: We are developing an application...to open and modify a DWG file What in particular do you need help with? You're going to be

PDF File header sequence: Why '25 e2 e3 cf d3' bits stream used in many document?

守給你的承諾、 提交于 2019-12-22 00:15:54
问题 I know that inform to a reader whether the pdf contains binary or not. But why "25 e2 e3 cf d3" not random binary? Because so many document has that. Is it Just because, so many use same pdf library ? Refs: PDF format. function of %-started sequence comp.text.pdf>pdf format 回答1: Looking through the PDFs I have here it looks like a number of PDF processors use these very letters "%âãÏÓ", among them Adobe products. Not all of those processors use the same basic PDF library, so the use of the