Upload text to the Wolfram Cloud with syntax highlighting?

over

text = "Some string..";
CloudExport(text, "Text", Permissions -> "Public")

We can upload raw strings to the Wolfram Cloud. However, it is not very extensive when it comes to formatting.

Is it possible to upload text in Wolfram Cloud that has been analyzed (with syntax highlighting, bold, italics, quotation marks, etc.), in formats such as:

  • copy
  • Org mode
  • Shell / bash code

?

Testing and Verification – Continuous Integration (CI, Software Development) with Wolfram Language?

Continuous integration (in software engineering terms) is a common way to ensure that the code in your repository works properly after each commit. For example, you can run a number of predefined unit tests. If any of these tests fail, you will be notified immediately that the corresponding commit is in error and needs to be improved.

With many code hosting services such as GitHub, Bitbucket or GitLab, you can easily integrate CI services into your project. Also, if your project is open source, you can often use these CI services for free. Personally, I observe that nowadays even scientific projects tend to use CI, eg. here (to name one example from quantum field theory), since this kind of code development obviously has many advantages.

Unfortunately, none of the popular CI services seems to support Wolfram Language. This may be related to the relative size of the Mathematica community or potentially complicated WRI licensing terms.

Setting up a private CI server would be a possible solution, but maintenance can be significant, and not every Mathematica programmer may have enough experience and free time to set up such an infrastructure for some hobby projects. That's certainly a lot more work than
to connect your GitHub repository to a popular CI service for which you will find countless tutorials on the Internet.

Nevertheless, I wonder if anyone has already thought in that direction and perhaps has some interesting ideas or has found some good solutions.

Wolfram Cloud actually sounds like a perfect way to implement something in this direction, but I have no idea if WRI has plans to provide such service to Mathematica developers.
Mathematica developer.

format – formatting numbers in Wolfram script command line output

I'm trying to run the following code with Wolframscript on Windows:

a = 123.4567891011213;
Print("a = ",a);
Print("a = ",AccountingForm(a,3));

The output is:

a = 123.4567891011213
a = AccountingForm(123.4567891011213, 3)

It looks like none of the formatting commands work (for example, I tried StringForm and it also remains unweighted). I just want to format the numbers a bit shorter. Is it possible?

Parallelization – The Wolfram script command line output from ParallelDo kernels contains a lot of gibberish

I execute this code:

ParallelDo(
  Print("Hi");,
  {i,Range(2)}
  )

And I understand:

Launching kernels...
StringForm(From `1`:, Parallel`Kernels`kernel(Parallel`Kernels`Private`bk(SubKernels`LocalKernels`localKernel(SubKernels`LocalKernels`Private`lk(LinkObject("C:Program FilesWolfram ResearchMathematica12.0WolframKernel" -noicon -subkernel -noinit -nopaclet -wstp, 93, 4), {"C:Program FilesWolfram ResearchMathematica12.0WolframKernel" -noicon -subkernel -noinit -nopaclet -wstp, SubKernels`LocalKernels`LowerPriority -> False}, SubKernels`LocalKernels`Private`speed$1005, SubKernels`LocalKernels`Private`preemptive$1005)), Parallel`Kernels`Private`id$1021, Parallel`Kernels`Private`name$1021), Parallel`Kernels`Private`ek(Parallel`Kernels`Private`nev$1022, Parallel`Kernels`Private`pb$1022, Parallel`Kernels`Private`rd$1022), Parallel`Kernels`Private`sk(Parallel`Kernels`Private`q$1023, Parallel`Kernels`Private`n0$1023, Parallel`Kernels`Private`n1$1023)))
Hi

StringForm(From `1`:, Parallel`Kernels`kernel(Parallel`Kernels`Private`bk(SubKernels`LocalKernels`localKernel(SubKernels`LocalKernels`Private`lk(LinkObject("C:Program FilesWolfram ResearchMathematica12.0WolframKernel" -noicon -subkernel -noinit -nopaclet -wstp, 92, 3), {"C:Program FilesWolfram ResearchMathematica12.0WolframKernel" -noicon -subkernel -noinit -nopaclet -wstp, SubKernels`LocalKernels`LowerPriority -> False}, SubKernels`LocalKernels`Private`speed$1004, SubKernels`LocalKernels`Private`preemptive$1004)), Parallel`Kernels`Private`id$1017, Parallel`Kernels`Private`name$1017), Parallel`Kernels`Private`ek(Parallel`Kernels`Private`nev$1018, Parallel`Kernels`Private`pb$1018, Parallel`Kernels`Private`rd$1018), Parallel`Kernels`Private`sk(Parallel`Kernels`Private`q$1019, Parallel`Kernels`Private`n0$1019, Parallel`Kernels`Private`n1$1019)))
Hi

This is especially annoying because the middle line ("StringForm (…") occupies most of my screen area. Reading the output becomes very difficult.) Is there any way to hide the gibberish?

How to use the free Wolfram Engine for developers running Linux for Windows?

I just downloaded Wolfram script for Windows. I have WolframEngine_12.0.0_LINUX.sh. I tried to do it, but it showed me
Enter image description here,

I'm using it, but it showed me too
Enter image description here

I'm sure the file is in the folder, but I can not find it. How can I? Please help me.

I've read all the websites I can find, but no one has told me why there is no file.

Formatting – Wolfram Cloud and keyboard shortcuts

I just subscribed to Wolfram Cloud a few days ago and am now trying to get used to it.

I use iPad Pro (Gen 2) with the smart keyboard and access the cloud through the Wolfram Cloud app.

But I struggle with entering subscription, performance, break and Greek letters, etc. like in the desktop environment.

For example, I can not use "ctrl (cmd maybe on Mac?) + _" To write an index, and "ctrl + /" to convert an input to fractional form.

Also, the abbreviation for the escape button on the iPad ("Control + (")) does not work in the app, and others also seem to be no alternatives.

May I ask someone to confirm that the problem in the environment (iPad + Cloud App) can be fixed?
Should I wait for the next update?

Thank you for reading.

wolfram cloud – Canonical URLs for deployed notebooks changed?

Use the following feature to update my notebooks in the cloud. Traditionally, it has been deployed to the following location:

https://www.wolframcloud.com/obj/yaroslavvb/whitening/curvature-unit-tests.nb

I have the URL as output from CloudDeploy call, something like that
CloudObject["https://www.wolframcloud.com/obj/yaroslavvb/newton/curvature-unit-tests.nb"]

However, something has changed in the last week CloudDeploy Instead, a different URL is displayed when you run it

CloudObject["https://www.wolframcloud.com/obj/user-eac9ee2d-7714-42da-
8f84-bec1603944d5/newton/curvature-unit-tests.nb"]

Somehow I can get the original shorter url out of CloudDeploy?

deploy:=Module[{notebookFn, parentDir,cloudFn,result},
Print[DateString[]];
notebookFn=FileNameSplit[NotebookFileName[]][[-1]];
parentDir=FileNameSplit[NotebookFileName[]][[-2]];
cloudFn=parentDir~StringJoin~"/"~StringJoin~notebookFn;
result=CloudDeploy[SelectedNotebook[],CloudObject[cloudFn],Permissions->"Public",SourceLink->None];
Print["Uploading to ",cloudFn];
result
]```

html – How to safely run a Wolfram server on a VPS as the backend of a web page?

When you run SocketListen On a Virtual Private Server (VPS) you can set up in principle a website with the tungsten language as the backend.
With a tungsten server and an HTML client, for example, you change the IP addresses of the server and the client to the public IP of the VPS and voila. They have a web page that sends commands to a tungsten engine installed on the VPS.

Let's say you publish this website. At this point I could read the source code of this HTML page and see the IP and port of the socket used by the server, so I could now set the tungsten engine on that VPS to do whatever code I wanted! Basically, I would have full control over my own VPS.

How do I set up a secured tungsten backend?

I want the tungsten engine installed on my VPS to only execute the specific commands requested by the web page, but until I have a SocketListen Anyone running on my VPS can send any command to him.

One solution could be to evaluate ToExpression@#("Data")& As a SocketListen works only if the string #("Data") is consistent with a particular pattern, but I suspect you can write a string that matches any pattern, and eventually insert something malicious.

Many thanks

Export – Export images to the Wolfram Cloud without logging in?

I've exported images to the tungsten cloud so I can upload them to a report that others can see:

Cloud export[pic, "PNG", "example.png"]

This creates a tungsten cloud link that works well for me. The problem is that if I show this link to other people, it will not load. If you click on it, they will only be redirected to a Wolfram Cloud sign-in page, where they will effectively be prevented from viewing my photos.

Is there a way out of tungsten technology?