I have some binaries (.adb) that is created in FireDAC Project, but i want to read the data in python, is there any documentation on how to read this format? I know it is a proprietary format, but the only way i consume the data is using Delphi?
Related
Is someone tried to extract XML to "Unipass" Programming Language? I've read a XML file then put it on a blob virtual, From there i want i get the data inside .
<patient>
<name>
<given>Henry</given>
<family>Sovelen</family>
<suffix>The 6th</suffix>
</name>
<administrativeGenderCode code="M" codeSystem="2.16.840.1.113883.5.1"/>
<birthTime value="19320924"/>
</patient>
Can someone teach me how to get the value 'Henry' Using unipaas programming language and btw i also used .xsl for stylesheet for that one
UniPaas (previously know as Magic, or eDeveloper, or xpa) is able to read XML directly. XML is one of data sources available for UniPaas; there are gateways for MSSQL Server, Oracle, DB2, MySQL and finally ODBC (which covers pretty much all other sources).
Luckily for you, no need to install support for XML, it's in UniPaas by default.
Since you are new to UniPaas and data sources, I'd recommend to see this video.
Once you have XML connected, you can use APG (automatic program generator) feature to quickly generate simple export-import program.
I'd strongly advice to install "On-line" samples, in Chapter 14 you can find example for XML data (see image below).
Let me know if you need more detail. UniPaas is really powerful tool, but it's "strange kind of animal" and can be confusing at the start.
I am new on HDF5. I am trying to convert a hyperspectral image raw file to a HDF5 file, but I do not find the proper way. Does anyone know how to convert a raw file in a HDF5 file?
Thanks in advance.
The only way is to learn HDF5 APIs. If you use C++, you can this detailed document http://www.hdfgroup.org/HDF5/doc/H5.intro.html should be very useful.
Moreover, you can use the high-level APIs (http://www.hdfgroup.org/HDF5/doc/HL/). It should be more convenient since all you need is to create a new HDF5 dataset.
Youn can also consult the HDF help desk help#hdfgroup.org. They are always willing to help every user very patiently.
If you want to convert a binary file to a HDF5 file, you need:
to know the specification of your raw binary file (how data are stored)
to know how to store data in your HDF5 file
If I had to do such a conversion, I would use a high level language to do the reading and writing. I would use Python (2 or 3), struct to do the reading, and the library h5py for exporting hdf5 file. It would cause much less trouble than using compiled language like C, C++ and Fortran.
Somewhat lost here....
Using Delphi XE2 cross-platform (Win/OSX), I want to retrieve some XML through a call to a RESTful service, parse it, and then display selected elements in a scrollable grid control. In other words, I need to treat the incoming XML as a data packet and hook it up to a grid.
I am able to retrieve the XML at this point using a TidHTTP component and drop it into a memo control just to inspect it; all looks good. However, I don't understand the best way to wire this to a grid. When running in Firemonkey mode with OSX as a target platform, the grid types do not seem to include a data-aware one. I don't actually need a live connection to a datasource per se, as the grid contents will be read-only, so I am willing to manually populate the grid if I have to. What's the easiest way to ingest the XML and get it into my grid?
Probably dumb questions, but XE2 has so many web-oriented controls and technologies that I am just lost. Thanks!
You should convert the XML to an objectlist, then use LiveBindings to hook it up to a grid. It's a two step process. You'll find plenty of examples for each step.
An "almost" codeless way to do it is using XSLT and a TClientDataSet:
transform the incoming XML to a TClientDataSet-compatible XML data packet using XSL
load the XML data packet in a TClientDataSet
fill the grid by iterating over the rows and columns of the dataset
XSLT is kind of a swiss army knife for XML - it is a (XML-based) language used for the transformation of XML documents to other formats (HTML, plain text, PDF...).
The advantage of this solution is that no intermediary code (objects) have to be coded and instantiated - it is the shortcut to read the HTML response and convert to a dataset.
A quick search on the web found this example.
However I have not checked if XSLT is already available in Delphi for OSX.
I need to create a .xls file from the Array data programmatically in iPhone. How can this be done?
Maybe you're in trouble, maybe not. The "old" xls format is a binary one and I am not aware of any free libraries which are able to read or write to that format. If this one is required, you're propably out of luck.
If however a more recent format will do you're back in business, because you can use xml (objc wrappers for lib2xml are readily available). Wikipedia features a short overwiev of the format which you might want to check out: Excel file formats on Wikipedia
I'm writing a DLL which talks to Excel via its IDispatch interface. From VBA I pass in a Variant containing Application.Caller from which I draw the IDispatch pointer via .pDispVal.
What I'd like to know is how to query the interface via that IDispatch pointer. I want to set up a connection point container, and from there find a connection point to Excel. The ultimate goal is to tie things to Excel's Calculate event and be able to manipulate the Excel data.
I would recommend Binh Ly's timelessly excellent (Delphi) COM tutorials at http://www.techvanguards.com/ which includes chapters entirely dedicated to IConnectionPoint and related mechanisms.
He also offers a free tool for generating EventSink code.
Still, I have a strong feeling that this shouldn't be necessary at all if all you want to do is react to an event triggered by the Excel Application object. Have you tried simply using the wrapper objects that the Delphi Type Library importer generates for you? You can of course also write your own wrappers.
Then again, I haven't actually written any addins for Excel yet - but I do write addins for Outlook and Word for a living and Excel really shouldn't be much different in this regard.
Brian Long explains: http://www.blong.com/Conferences/IConUK2000/DelphiMoreAutomation/More%20Automation%20In%20Delphi.htm#Events
Other resources:
http://dn.codegear.com/article/27126
http://www.gtro.com/delphi/comevents_e.php