Header of file compiled by bluespec - verilog

I have a file with the .bo extension.
After some researches it seems be built with bluespec which is use with risc-V architecture.
My objective is to reverse this file.
When i do:
file myfile.bo
myfile.bo: data
So, I don't know if it's a good "format" for the file. Or what must be the return of the file command on a .bo file?
What is the basic header file for a verilog file?
Thanks for your help.

Verilog is definately not the language format of preference for using other software files except C,C++...I'd suggest to convert the bluespec file into C and then maybe you can get lucky.

Related

In Linux system file extensions as capital and small lettters

While using linux system I encounter that that many file extensions are in capital as well as small letters like
myfile.JPG and myfile.jpg
I know Linux file system is case sensitive, but what's the difference in these two files? and why sometimes they get saved saved as capital or sometimes in small.
I have seen the same for other file too like
.ttf vs .TTF
Thanks
There is no difference if you name the file myfile.jpg or myfile.JPG or myfile.jpeg. Linux doesn't care.
The extension might be used by some programs running on linux and by humans to easily identify the filetype but it doen't affects the file in any way. You can even call it myfile.dog or just leave it without extension and would be the same image file and for linux it wouldn't make any difference.
If you have an image file and you want to tell what kind of image file it is you can use the file command or if you have imagemagick installed you can use the identify command.
Try renaming some jpeg file and give it a png extension, the run file image.png, you will see that it still is a jpeg file and that the png extension is there only to confuse you.
You might find this usefull: https://www.quora.com/How-do-Linux-identify-file-types-without-extensions-And-why-cant-Windows-do-so

Is it possible to render .doc file in qt on linux?

All I need is to show .doc files in qt application on Linux. No need edit/save or something else.
Is it possible?
Of course it's possible. But the file reading, parsing, and displaying would really be carried out by the underlying language, not Qt. So, if you think about it, C++ and Python and whatever else is quite capable of parsing and displaying what is essentially a text file (or for .dox an XML file).
The implementation details of how to go about that are quite another matter. You have to contend with a huge portion of the file that is merely there to render the file's styling, etc.

make swf from fla without ever opening it

is it possible to change text and images in a fla file without ever opening it up and then making the swf via command line? I want to make a flash template and save the fla. Then be able to update my text and image name and convert it to swf. I have one template but tons of different text options and background images. It would be nice to be able to copy the master.fla twenty times and just change the source code (will do this from command line) and then convert to swf (via command line).
Any help would be appreciated.
With CS5, you can do half of what you're asking today, by using the XFL file format instead of FLA. Instead of a binary blob, you get an editable XML file and a tree of separate asset files: PNGs, AS3 files, etc. You can then modify the XML or AS3 files programmatically to get your variants.
(A CS5 FLA file is really just a zipped up version of the XFL, but there's no advantage to using that instead of an XFL. In CS4 and previous, FLA was a proprietary binary format.)
The missing piece is an XFL compiler. Adobe currently provides no such thing, and the third party market hasn't yet produced one.
You could use a systems automation tool to drive the Flash Professional environment through the compilation steps. On OS X, for example, either Automator or AppleScript should be able to do what you want. It'll just have more overhead than the command line compiler you were hoping for.
I agree with Jason, there are a lot of alternatives to what you suggest. Keeping content out of the SWF is good practice actually. This is a good way to avoid large files!
Depending on what you 're looking to achieve, there are a lot of solutions available. XML is an option, JSON another.
If you're looking to build a template, any of the above would seem appropriate.
It sounds like you're working from the Flash IDE, as Jason suggests you may want to have a look at another IDE, such as FlashDevelop, FDT or FlashBuilder as they make coding with AS3 a lot easier.

How can I convert an Excel file on a Linux server to a delimited text file?

I am running a Linux server and one of our suppliers only knows how to send me an Excel file which I need to import into our system daily. Does anyone know of a good way to export the Excel file to a delimited file? Preferably with php or perl.
Thanks!
Chris Edwards
Java library POI does this quite well, with very simple API.
http://poi.apache.org/
OpenOffice (or LibreOffice) has a scripting ability, alas, which I have never looked at. However, it seems it would be straightforward to open the Excel file using Calc, and then do a Save As .csv operation.

Best way to extract vim syntax files and ctags from Doxygen?

I wanted to write a vim syntax file for a library that has Doxygen documentation.
Does a tool like that already exist ?
If not, what would be the best way to generate this automatically ?
write a new output generator (complicated) ?
parse lots of xml from doxygen/xml/*.xml (slow) ?
Anything else ?
I was surprised that something like this doesn't already exist. Any idea why ? Am I looking in the wrong place ?
As opposed to parsing all of the generated XML files, you should be able to generate a Doxygen tags file. The tag file can be created with the Doxygen option GENERATE_TAGFILE. The resulting file is still XML, but it captures all of the files, structs, functions and other symbols in a single file which is likely easier to transform into the format that you need.

Resources