How to force asdoc run in English - apache-flex

My operation system is Window XP in Chinese.
I'm running flex sdk > asdoc in command line. Asdoc picks up the system default language.
How can I force it to be run in English language environment?

What you needed is the Microsoft AppLocale Utility. It allows you to run an application in the locale you specified. You may change your system locale to English too, but then some of your Chinese applications may not run correctly.
Here is a step-by-step tutorial (with pictures) by Chris Lee. His tutorial describes how to run Japanese applications on Chinese Windows, but it's similar, just replace Japanese by English and it's all done :-).
Asuka Kenji
(from Hong Kong)

Related

How to install the dns-sd command line test tool on Windows or Linux?

The book Zero Configuration Networking - The Definite Guide by Stuart Cheshire and Daniel H. Steinberg from 2005 describes a dns-sd command line test tool which should be available for macOS, Windows and Linux. At the beginning of chapter 6 (p. 92) he describes the tool, but it's not an explicit guide on how to download and install it, just that is available from the Darwin open source repository.
The tool offers commands like dns-sd -B which browses for service instances.
I'm a Windows and Linux user, but have problems to find the tool. Bonjour is already installed on my Windows system, but it's not clear to me if this is enough or if I need to download the tool explicitly. When I type dns-sd on the windows command line, it says this command is unknown. How to make it available?
Okay, I just found the out how it works on Windows and now I can answer my question by myself. Not sure how it work on Linux yet.
On Windows, you can install the Bonjour SDK which is downloadable at developer.apple.com/opensource/, click on Command Line Tools and search for dns-sd or bonjour sdk.
After the installation wizard successfully finished its job, you can go directly to your command line, type in dns-sd and you'll get a list of all possible commands. No further comfinguration needed. Tested on Windows 10.

Windows 7 Enterprise and Ultimate Editions: Unix Support

I've read that Windows 7 Enterprise and Ultimate
support the running of Unix commands. How does
the system cater towards this functionality?
Does it have a shell? What file formats does
it recognize? ELF, a.out, etc? Does it have
any Unix libraries installed? Any BSD (or GPL?) code?
Here it is: http://www.cygwin.com/
"Cygwin is a collection of tools which provide a Linux look and feel environment for Windows."
"It is a DLL (cygwin1.dll) which acts as a Linux API layer providing substantial Linux API functionality."
There are several tools already and you can try to compile what you need if it's missing.
Read FAQ: http://cygwin.com/faq-nochunks.html#faq.what

Darwin OS is discountinued, but can the original source code still be found?

I have searched all around google for the originial source for the last release of Darwin OS that apple release. What I found was different OSes such as GNU Darwin and pureDarwin that were based on the Darwin Source code. Is there any place I can fork the original Darwin Source Code, or does it simply extinct?
Check Apple's open source site. The latest (10.7.4) kernel is xnu-1699.26.8, other source packages for 10.7.4 are available too. Remember that not all parts of Mac OS X are open source. You will not be able to build the complete system by source.
Apple provides information about how to build and debug a kernel in their developer library. Besides the devolper library you may find the book Mac OS X Internals. A Systems Approach. by Amit Singh useful.
Source code does exist, and if you know how you can assemble a open-source Darwin-based OS that can (partially) run OS X programs. However, since Apple did not provide all required sources for a working OS, you may need to seek for open-sourced replacements, including:
X Window System replacing WindowManager, as the resulting system will be just another plain UNIX system, using GUI would require that.
GNUstep as a replacing Cocoa and CoreFoundation implementation. GNUstep follows the development of Cocoa before there was Cocoa - it started in Mr. Jobs's NeXT times.
WindowMaker as a replacing Dock, and GWorkspace as a replacing Finder. This will make the resulting system's look and feel like that of Mr. Job's NeXT before it became OS X.
ProjectCenter and Gorm as replacing Xcode and Interface Builder. These are development tools which is going to be heavily used on that platform.
And some OS X apps are known to be able to be ported after a recompile or simple copied over (essentially any app that does not depend on Core* technologies or CoreFoundation, which are missing/not complete in GNUstep):
TextEdit (from OS X 10.6 or older) GNUstep used to ship a version of TextEdit ported from NeXT. With recent library developments, the version from 10.6 can be used instead.

Is there a library for Visual C++ that renders math formulas?

I've been looking all over, but I can't find anything free that will let me simply display math formulas on a window. I found one for Visual C++.net, but no APIs. Are there any out there?
What format are the Math formulas in?
My first impulse would be to try and find a LaTeX library for C++ which will let you render out LaTeX to an image. That way you could display most basic formulas, but the formulas would have to be in the LaTeX format.
Try ReforMath (http://reformath.webnode.com). Runs under both Windows and Linux. It is unfinished though, but can render a number of elements.
What a great question! Yes, there is now: latexpp.
You'll have to install VS 2017 Community first with the minimal amount of C++ features checked (so it doesn't take all day).
Then you install Boost using the binary (try the latest).
But you still have to build boost. By using the VS > Tools > Visual Studio Command Prompt. CD to your boost directory and run .\bootstrap.bat, then .\bjam.exe. This will take all day.
Good news is it seems to be working so far on Windows 7, 64-bit with VS 2017 community and the latest boost 1.6.x.
The Latex library has other requirements, and I still haven't tried it but will post my notes here if any hickups.
Make sure all your directories are short, such as C:\VisualStudio2017. However, boost will then fail if you use your regular windows command prompt unless you do the vcvarsall.bat trick. The VS Command Prompt does that for you, so that boost can find your MSVC stuff. Boost would still probably fail if you used the default directory and didn't use the VS command prompt.
So, again, my boost is in C:\boost_{blah version} which you should shorten to C:\boost assuming you'll only use one version of boost.
One reason is that if you have to add the respective /bin directories to your system Path, then you won't fail by maxing out the length of Path value (yes, it has a max length). Also stuff is easy to find and especially from the command line so you can cd quickly there. If you don't want everything in C:\ then make a C:\__TOOLS or something short.
I will post my notes here when I've gotten LaTeX rendered.
Notes
When building boost with bjam, if it seemingly hangs for more than 10 mins on one item, then hit ctrl-C at the command line once. This seems to unhang it without canceling the install.
TODO

Mathtran from asp.net website

I would like to build a website in ASP.NET, which would display many equations. I would like to generate them automaticly, so I need to use some library, that would allow me to generate images from TeX or LaTex dynamicly. For performance resaons, I would like to have it running on my local server.
I tried to used MimeTex with the Eq2Img project from CodeProject, but I was not satisfied with the quality of the images, and couldn't find any options to customize it.
Now I'm trying to use Mathtran, but as the official FAQ says: "You'll need a Unix or Linux server with TeX, Python and dvipng installed.".
My question is: is someone sucessfull in using Mathtran running locally with ASP.NET application, or can give some other solution to the problem?
Thanks for any answer!
You can roll your own solution pretty easily. Feed your source to LaTeX to create a DVI file. Then use dvipng to create a PNG file, and then show that in your web page.
Edit: more detail and other options available from WikiBooks.
The FAQ also says: "The software that provides this service is open source, and can be downloaded and installed on your own web-server or desktop machine (Unix/Linux only at present)." Since you can definitely get TeX, Python, and dvipng for Windows, you just need to replace whatever Unix infrastructure Mathtran is using with similar Windows parts. Most likely the developers of Mathtran just haven't had the need to use a Windows server themselves, and the wording "at present" suggests that they would likely accept a patch to make it work on Windows too.
Can you use the MathTran web service per http://www.mathtran.org/wiki/index.php/TeX_image?

Resources