Hot answers tagged

28 votes
Accepted

Implementing Local HTTP Server

The following guide shows how to conduct communication between nanohttpd, an http server for Java, and Mathematica. The result is a server that, if you go to its address in a web browser, displays the ...
C. E.'s user avatar
  • 70k
24 votes

Mathematica on Windows 98

It appears that the last version of Mathematica to have official support for Windows 98 was Mathematica 5.2. We can see this by comparing archived versions of the system requirements pages for ...
Carl Lange's user avatar
21 votes
Accepted

Path Names Longer Than 256 on Windows

With a few rare exceptions, Mathematica is generally unable to work with long path names on Windows. This response presents two strategies to work around this difficulty: extended-length path syntax ...
WReach's user avatar
  • 68.4k
14 votes

Implementing Local HTTP Server

The following is a sample implementation of a simple HTTP server in Wolfram Language code only: https://github.com/arnoudbuzing/wolfram-server You send it a POST request where the body data of the ...
Arnoud Buzing's user avatar
13 votes

Incorrect Timing of Total

There are a couple of issues at play. One is that the implementation of Total has changed, and it is now using several threads in parallel. Furthermore, there ...
ilian's user avatar
  • 25.5k
12 votes
Accepted

Creating Saveable->False notebooks

To whom it may concern, a workaround: ...
Kuba's user avatar
  • 136k
12 votes
Accepted

Export Mathematica code to Word, preserving all formatting

The user Szabolcs gave the answer. Here are the steps: Open your Mathematica Notebook Ctrl+A, if you want to selct all your cells or simply select your desired cells Go to: Edit -> Copy as -> ...
henry's user avatar
  • 2,450
12 votes

Wrong function of NotebookDirectory[] in the 12.1 version

This is a certainly a bug. The fix for it is going to be available in the next release (version 12.1.1). In the meantime, perhaps the following workaround code may help ...
ilian's user avatar
  • 25.5k
10 votes
Accepted

Obtain short path on Windows

Windows Command Line Here is a way using the Windows command line: getShortPathName[path_] := Import["!for %p in (\""~~path~~"\") do @echo %~sp", "Text"] So ...
WReach's user avatar
  • 68.4k
9 votes
Accepted

CUDAQ not working in Mathematica 10.2.0.0 on Windows 7 (using CUDA 7.5)

I recently encountered a similar problem (CUDAQ[] returning False, CUDADriverVersion[] ...
Karsten7's user avatar
  • 27.4k
9 votes
Accepted

Run Command Not Executing Node

This is a known problem with nodejs on Windows. The stdout stream is an asynchronous stream and is not always being flushed before the process exits. A work-around is to perform an explicitly ...
WReach's user avatar
  • 68.4k
9 votes

Implementing Local HTTP Server

Starting in Mathematica 12, there is a built-in function SocketListen that can start a web server and respond to HTTP requests. ...
Flux's user avatar
  • 356
8 votes
Accepted

How to use woframscript (Mathematica 11) on Win 10 console command line?

After looking at my personal use license installation of Mathematica 11, I was able to get wolframscript to run by modifying the the configuration file at ...
david's user avatar
  • 1,290
8 votes
Accepted

Error during getting CCompilerDriver

Please use the fix from @ilian's answer instead!! The underlying problem I think the underlying problem is with the RawJSON importer. JSON is required to be UTF8. But a character encoding like ...
Szabolcs's user avatar
  • 233k
7 votes

RunProcess seemingly does not work on my Windows system

Your RunProcess works properly in all examples and System settings are fine. As @Oleksandr R. has admitted, date is a shell ...
garej's user avatar
  • 4,815
7 votes

Incorrect Timing of Total

This is just a comment with code. Here is a very simple multithreaded compiled function (not a sum calculation) to prove that the issue has nothing to do with Total ...
7 votes

Web Browser Screen Shot

There is now a built-in way to do this: WebImage["http://stackoverflow.com"] ...
user5601's user avatar
  • 3,581
7 votes

Switch actions of Shift+Enter and Enter in notebook interface?

This piece of code should do the trick. It takes effect immediately. ...
btwiuse's user avatar
  • 567
7 votes

All Graphics3D commands crash

I had the same issue and it drove me crazy for a long time. Do you have any joysticks plugged in? Specifically, if you have a Logitech 'Extreme 3D Pro' joystick plugged in, it will cause Mathematica ...
Dugan Hammock's user avatar
7 votes
Accepted

RunProcess doesn't list files on Windows

It will work if you send a newline at the end of dir: RunProcess[$SystemShell, All, "dir\n"] (* note the \n *) What I do not ...
Szabolcs's user avatar
  • 233k
7 votes
Accepted

How to deal with compound command lines with RunProcess?

RunProcess does not run shell commands (things you might type into your terminal). It runs processes, as the name suggests. If you want to run shell commands, then ...
Szabolcs's user avatar
  • 233k
7 votes
Accepted

Using Open with a filename that contains ":"

This is not possible. A colon is not a valid character in a file name on Windows. Reference: https://docs.microsoft.com/en-us/windows/win32/msi/filename
Szabolcs's user avatar
  • 233k
7 votes
Accepted

ExternalEvaluate[pySys, pyCmd] evaluates to Failure[...]

Reading this, turns out the patch is a one-line fix to enable Python 3.8 support. I haven't tested it extensively, but I've included it in my GitHub gist that also lets you use Python runtimes ...
Michael Himbeault's user avatar
7 votes

Has anyone encountered Mathematica errors in the new Windows 11?

I took the plunge myself. I upgraded to Windows 11 Pro and ran my Mathematica code. There were no errors. Everything seems to be working just as in Windows 10 Pro. Since my code base is quite large, ...
Shredderroy's user avatar
  • 5,117
6 votes
Accepted

Switch actions of Shift+Enter and Enter in notebook interface?

First move KeyEventTranslations.tr file to your $UserBaseDirectory in order to not damage installation files. (Rebinding keys to ...
Kuba's user avatar
  • 136k
6 votes
Accepted

Unmodified Clipboard content

The following works for Windows borrowed mostly from here. ...
William's user avatar
  • 7,565
6 votes
Accepted

Mathematica 10.4 freezing after typing in new notebook

I had help from Wolfram on this. For Windows you have to find C:\Users\"name"\AppData\Roaming\Mathematica\SystemFiles\FrontEnd\SystemResources\FunctionalFrequency Where "name" is your name. I had ...
Hugh's user avatar
  • 16.1k
6 votes
Accepted

Letter g rendered with different descender styles

It took me a while to figure out what was happening. Mathematica 11 uses different fonts on Windows, OS X and Linux. They are Consolas, Source Code Pro and Bitstream Vera Sans Mono, respectively. ...
Szabolcs's user avatar
  • 233k
6 votes

Export Mathematica code to Word, preserving all formatting

You can copy-as-MathML from Mathematica directly into Word. Have fun! Edit To address your comment. This is a fragment of my Mathematica notebook: These are the corresponding formulas inserted into ...
Alexei Boulbitch's user avatar
6 votes
Accepted

Histogram not plotting RandomVariate of EmpiricalDistribution

It seems to be related to the way the binning is determined by Histogram if no explicit bspec is given. Once bspecs are given it seems to work without any problem: ...
gwr's user avatar
  • 13k

Only top scored, non community-wiki answers of a minimum length are eligible