file-format

C#/.NET - Custom Binary File Formats - Where to Start?

久未见 提交于 2019-12-03 10:04:13
问题 I need to be able to store some data in a custom binary file format. I've never designed my own file format before. It needs to be a friendly format for traveling between the C#, Java and Ruby/Perl/Python worlds. To start with the file will consist of records. A GUID field and a JSON/YAML/XML packet field. I'm not sure what to use as delimiters. A comma, tab or newline kind of thing seems too fragile. What does Excel do? or the pre-XML OpenOffice formats? Should you use ASCII chars 0 or 1.

C# import of Adobe Illustrator (.AI) files render to Bitmap?

六月ゝ 毕业季﹏ 提交于 2019-12-03 09:44:55
Anyone knows how to load a .AI file (Adobe Illustrator) and then rasterize/render the vectors into a Bitmap so I could generate eg. a JPG or PNG from it? I would like to produce thumbnails + render the big version with transparent background in PNG if possible. Ofcause its "possible" if you know the specs of the .AI, but has anyone any knowledge or code to share for a start? or perhaps just a link to some components? C# .NET please :o) Code is most interesting as I know nothing about reading vector points and drawing splines. Well, if Gregory is right that ai files are pdf-compatible, and you

Test suite for GIF containing images using rarely used features

半世苍凉 提交于 2019-12-03 09:18:58
问题 The specifications (plural, since there are versions 87a and 89a) of the GIF graphics format are easy to find in the internet (for those who don't want to google: http://www.w3.org/Graphics/GIF/spec-gif87.txt http://www.w3.org/Graphics/GIF/spec-gif89a.txt) As you can see in the specification GIF has support for some features that I have never seen used; I only want to give two examples (for simplicity from GIF 89a): - Plaintext extension: on http://www.vias.org/pngguide/chapter11_15.html

Is there an unofficial Flash .FLA spec?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 08:29:36
Is there an unofficial spec anywhere that explains how to reverse engineer a Flash .FLA file? I'm specifically interested in creating an application that can "auto-scene plan" a Flash document programmatically, pulling in content from other files, arranging that content into layers, without needing the Flash IDE open. Animators would then be able to take these pre-assembled FLA's and begin animating them. I've already built a JSFL script that does this, but it runs very slowly, is difficult to debug or re-purpose. scope_creep I've spent days looking around the internet, to see if there is

CHM format alternatives?

随声附和 提交于 2019-12-03 03:16:11
Microsoft CHM format is great as provide such facilities: Table of contends with tree view. Index. Indexed search. Based on HTML source. But this format is outdated and have many drawbacks: Have security issues (allow execute JavaScript code). Don't know about new HTML formats. Not documented. Can not properly handle different character codings (like UTF-8). Are there any alternatives for CHM which have reader and compiler for all desctop OSes? PS . I hear that QT come this something like, KDE, NetBeans also use own help format. How about non-vendor specific? PPS . Some related: http://live

a.out replaced by ELF file format?

最后都变了- 提交于 2019-12-03 02:29:16
I have a few questions: Why was a.out replaced by ELF ? What were the major flaws in the a.out format that led to the raise of ELF file format? Earlier core dumps were based on a.out, but now they are based on ELF. What are the various advantages provided by ELF? The a.out format forced shared libraries to occupy a fixed place in memory. If you wanted to distribute an a.out shared library, you had to register its address space. This was good for performance but it didn't scale at all. See for yourself how tricky it was (linuxjournal). By contrast, in ELF, shared libraries can be loaded

How does one find the start of the “Central Directory” in zip files?

孤人 提交于 2019-12-03 02:20:08
Wikipedia has an excellent description of the ZIP file format , but the "central directory" structure is confusing to me. Specifically this: This ordering allows a ZIP file to be created in one pass, but it is usually decompressed by first reading the central directory at the end. The problem is that even the trailing header for the central directory is variable length. How then, can someone get the start of the central directory to parse? (Oh, and I did spend some time looking at APPNOTE.TXT in vain before coming here and asking :P) My condolences, reading the wikipedia description gives me

Reading YUV images in C

拈花ヽ惹草 提交于 2019-12-02 09:27:02
问题 How to read any yuv image? How can the dimensions of an YUV image be passed for reading to a buffer? 回答1: Usually, when people talk about YUV they talk about YUV 4:2:0. Your reference to any YUV image is misleading, because there are a number of different formats, and each is handled differently. For example, raw YUV 4:2:0 (by convention, files with an extension .yuv ) doesn't contain any dimension data; whereas y4m files typically do. So you really need to know what sort of image you're

Unable to transfer large .csv row count to Excel 2007

家住魔仙堡 提交于 2019-12-02 09:19:28
问题 I've been using the below VBScript code snippet to move an hourly .csv drop to an Excel file. It works like clockwork except recently the .csv crossed the 65536 row limitation. The machine is flooded with popups from Compatibility Checker and then I realized it was using Excel 2003 even through Excel 2007 is installed. Not sure why this happens even when Excel.Application.12 object is explicitly invoked: Dim oExcel Set oExcel = CreateObject("Excel.Application.12") With oExcel

filter file content to sorted tables

依然范特西╮ 提交于 2019-12-02 07:58:15
I have a file that contains the following lines of code. here the file displays a schedules which are sorted one by one . at 12:00 the schedule of james version1 is : first_task:eating:nothing second_task:rest:onehour third_task:watching:nothing at 12:00 the schedule of james version2 is : first_task:eating:fruits second_task:rest:twohour third_task:watching:manga at 12:00 the schedule of alex version1 is : first_task:eating:fruit second_task:rest:halfhour third_task:watching:horrorfilm at 12:00 the schedule of alex version2 is : first_task:eating:meal second_task:rest:nothing third_task