Create a document with source code of the project [closed] - text

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I have a project with a lot of source code. For documentation purposes, I must merge all source code into a single file, for instance, PDF, HTML or DOCX. Preferably, each merged file content should have a caption with its relative origin. Nice formatting is desired but not obligatory.
Did anybody ever do this task? Is there any simple code snippet to automate the task? Strangely, I searched around and did not find any hints on this challenge.

If on something UNIXish, a2ps does a really nice job printing large amounts of sources to postscript, which is then trivial to convert to PDF via e.g. ps2pdf. Something like:
a2ps *.c -o foo.ps
ps2pdf foo.ps foo.pdf
This will dump all sources you specify on the command line (and you can go recursive with some combo of find and xargs or similar). If you don't need a total source dump, you're probably best off reading up on your language's native source documenter (like doxygen or javadoc or similar). Most source documenter systems can output to bunches of formats ime.

Related

Language / libraries to do simple console UIs? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I've been over time developing bash scripts here and there to make things easier for me, but they pretty much always just take some input and calculate some output.
I was wondering how to do more fancy stuff like:
Writing and updating the progress of an operation to the same pixel of the screen (instead of being only able to "append" new text or lines to the screen);
Allowing the user to select from a set of options (similar to using a List component in standard UIs);
From what I've gathered these things are not the simplest to be done just with bash. Is there any kind of library I could use that would take care of them for me? Maybe even in other languages (such as Python, perl, go, etc?) I've looked into zenity but that one is popping actually UI dialogs and that's not what I'm looking for.
Thanks
For bash, I'd encourage you to look at dialog. It might be everything you need:
Linux Journal: Dialog: An Introductory Tutorial
LinuxCommand.org: Dialog
Another option is Zenity
In general, ncurses is often an excellent choice. It's native to C, but there are ncurses bindings to most languages, including C, C++, Python and Perl (to name just a few).
whiptail seems to be another option: http://xmodulo.com/create-dialog-boxes-interactive-shell-script.html

How can I programmatically process audio files in a folder system? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I have a few hundred audio files of spoken lectures. I need a piece of software I can call from the command line to process the audio in various ways e.g. changing format, normalising, etc.
So far I have tried to batch process files using Audacity using a chain as detailed in this video. However, this is not satisfactory as I can't call this from command line (and therefore batch process files in a flexible way adapting to size/filetype etc.).
Are you able to point towards any software that can do this kind of audio processing from the command line?
Depending on your requirements, you don't always have the use Audacity.
You can use SOX in order to achieve what you are trying to do in terms of getting the file information of an audio file, as well as carry out compression.
sox long.mp3 short.mp3 trim 10
For comparison etc..
To expand, you can use a bash script, to iterate through each of the files in a directory and then run the command on each of the files.

Where is the definition of the XLSX printerSettings.bin file format? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I want to be able to parse the printer settings binary files that Excel saves inside xl\printerSettings\printerSettingsNN.bin inside the XLSX zip archive. Much searching for documentation avails little.
Is this a common format that I just don't recognize, or is it specific to Excel? Is anyone aware of where to find details on the format?
It looks to be a Windows device-specific structure, DEVMODE.
Tracked it down via http://blogs.msdn.com/b/chrisrae/archive/2010/10/06/where-is-the-documentation-for-office-s-docx-xlsx-pptx-formats-part-2-office-2010.aspx, which links to ECMA-376, Second Edition, Part 1 - Fundamentals And Markup Language reference from www.ecma-international.org.
Except from the relevant §15.2.15 on page 160:
An instance of this part type contains information about the
initialization and environment of a printer or a display device. The
layout of this information is application-defined.
[Note: It is recommended that a Printer Settings Part contain well documented XML content for improved interoperability;
however, there is no requirement on the format of the content
contained in a Printer Settings Part. end note]
[Example: An Office
Open XML producer on Windows might store the DEVMODE structure defined
here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/prntspol_8nle.asp,
while an application on the Mac OS might choose to store the print
record defined
here:http://developer.apple.com/documentation/Printing/index.html. end
example]
(Even 5,568 page standards suffer link rot- see DEVMODE structure.)
That means, in C# for example, you can make use of the PrinterSettings' GetHdevmode and SetHdevmode methods to interop with the structure.

Text based UML Diagram Generators [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
Which generator tools do you know that are able to generate UML (and perhaps other) diagrams out of text (simple ASCII) based input?
I know about http://plantuml-depend.sourceforge.net/screenshot/screenshot.html
I'm looking for something like
http://yuml.me/
https://www.websequencediagrams.com/#
Requirements:
Generator shouldn't have too many dependencies
CLI based - specify input and output file
Output names should be predictable or specifiable
Possible output formats: SVG, PNG, JPEG, PDF
Generator should be free to use, or available for purchase (no subscription)
Ideally diagram layouting can be influenced in case default layout isn't pleasant
Clean visual diagrams - pleasant to view and read
Actively maintained software
Alternatively to a CLI Tool reading ASCII input I'd also be interested in UML Libraries.
Thanks so far
Claude
As far as I know I keep the most extensive list of textual UML tools here: http://modeling-languages.com/uml-tools/#textual
Hope you'll find at least one that you like
StarUml - http://staruml.sourceforge.net/en/ is open source editor that stores result in XML file. Export to pictures is supported

man page editor for text screen [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Do you know any editor for man(1) pages which work on text screen (terminal and console)? Searching the interned did not gave any useful results as the words are very common.
Or should I learn the details of the format and write it by hand?
You can write it e.g. in markdown then convert it via e.g. pandoc to manpage format ((t|g)roff). Here is the fine manual: http://johnmacfarlane.net/pandoc/README.html .
HTH
Sure, go ahead and learn the format and write it by hand in a regular text editor.
On the other hand, the perl project uses a kind of universal markup called pod and then converts into manpages by running pod2man.
Man pages are written in plain text with a simple markup language called troff.
Actually there are several related markup systems all supported by a set of commands ending in roff: nroff, troff, and the all singing, all dancing super-set groff.
My Mac OS 10.5 systems has a nice summary of the history in man 7 roff.
As others have noted there are several tools around which can convert other markup formats to man pages.
The easiest way is to write content as "reStructuredText" (simpler than wiki syntax) and use docutils to generate manpage from it.
See this tutorial.

Resources