Frontend – Readable formula output on the command line

I tried to solve some differential equations. Mathematica is a bit expensive for me, so I chose the free Wolfram Engine for developers. It is said that the engine offers the full power of the tungsten language, but without the fantastic graphics frontend.

The problem is that I can not get a readable result. The output contains some weird symbols like #1. &, and Inactive, I've read the document, but I still have no idea what it means, probably because it's mainly for GUI users.

In(1):= DSolve(- m'(t) == f(t) * (Rho)(m(t) / m0 * P0), m, t)

Out(1)= {{m -> Function({t}, InverseFunction(Inactive(Integrate)(-----------,
                                                                     P0 K(1)

>           {K(1), 1, #1}) & )(C(1) +

>         Inactive(Integrate)(-f(K(2)), {K(2), 1, t})))}}

I then tried to export the result $ LaTeX $The generated LaTeX source, however, provides a big mistake: Argument unicode must be a number. I looked around and found this question that suggests TeXForm need to be fixed.

In(2):= DSolve(- m'(t) == f(t) * (Rho)(m(t) / m0 * P0), m, t) // TeXForm

   left{left{mto left({t}unicode{f4a1}text{InverseFunction}left(int
    _1^{text{$#$1}}frac{1}{rho left(frac{text{P0}

How can I convert the Wolfram language output to mathematical formulas that I can understand without access to a graphical frontend? For example, the resulting formula can be exported as PDF, PNG, or MS Word, whatever I can read.

Linux – Error with the command pintos – execute alarm-multiple

I have a problem installing pintos and qemu. Everything looked fine, but if I command "pintos – run alarm-multiple", it looks like this on the QEME's surface – stopped when loading …… Also on the Ubuntu terminal it drags the kernel command line: run alarm-multiple
Pintos are booting
I also check with pintos – start alarm-single and on the ubuntu terminal it looks exactly like the multiple
I am using the Ubuntu 18.04 and have tried a lot to carefully reinstall and not work
Can anyone fix this problement image description here

Enter image description here

Execute a shell command when adding a file under Linux Ubuntu to FTP

Recently, I set up a continuous integration pipeline to deploy a .NET Core application to my Linux computer in the cloud.

My CI pipeline publishes my application (especially a .NET web application), compresses it, and uploads it via FTP.

Now I've developed the following shell script that I'll run as a service.

  • This script will detect as soon as a file has been uploaded
    My FTP folder (/ home / MyName / ftp / files) from shadow the vbftp log.

  • The script then stops the service that runs the actual Web
    Application to temporarily take the site offline.

  • The existing site is then backed up.

  • Then we unpack the newly uploaded file to the location on the web
    App lives. (/ var / www / MyProject).

  • The newly uploaded file is deleted and the service is restarted.

Below is the full content of the shell script


tail -F /var/log/vsftpd.log | while read line; do
  if echo "$line" | grep -q 'OK UPLOAD:'; then
    filename=$(echo "$line" | cut -d, -f2)
    if ( "$ filename" == "MyProject" ); then
     # Stop site service 
     service MyProject stop 
     # Make backup of existing files 
     sudo zip -r /var/backups/site/$(date +%F)_MyProject /var/www/MyProject 
     # unzip the newly received files 
     # (-o to overwrite only the files which have changed) 
     sudo unzip -o /home/MyName/ftp/files/ -d /var/www/MyProject
     # Remove uploaded zip  
     sudo rm /home/MyName/ftp/files/ 
     #Restart service 
     service MyProject start 

I'm new to Linux and Shell and would like to get feedback on the script I've created so far.

macos – How do I identify the selected audio input device from the command line?

I ran this command to display the I / O registration kit and searched for information that pointed to the active microphone input device. However, the 2nd microphone shows "active" (when the command is executed), but the built-in microphone has been selected in the zoom app.

ioreg -p IOUSB -w0
+-o Root  
  +-o AppleUSBXHCI Root Hub Simulation@14000000  
    +-o Apple Optical USB Mouse@14600000  
    +-o FaceTime HD Camera (Built-in)@14400000  
    +-o ASM107x@14300000  
    | +-o PCP-USB@14310000  
    | +-o ASM107x@14320000  
    | | +-o IOUSBHostDevice@14321000  
    | | | +-o USB Keyboard@14321300  
    | | +-o Apple USB Ethernet Adapter@14324000  
    | +-o  CP 1500D@14340000  
    +-o Bluetooth USB Host Controller@14500000  
    +-o USB Optical Mouse@14200000  

Has anyone written a script to make a system call for the active camera?

Command line – bash script to determine the CPU temperature and CPU usage and store these values ​​every second in a file

I need to write a script or command-line code in Ubuntu that takes the CPU temperature and percentage of CPU usage from lm_sensors or something similar. I would like to save this information with the date and time of each measurement in a .txt file. I tried to write a .sh file. But it does not work the way I want it to.
Can someone help me?

while true;
echo $( date '+%H:%M:%S' ): $( sensors | grep 'CPU Temperature' | sed -r 's/^.*:        +(.*)  +(().*$/1/' ) >> temperature.txt;
echo $( date '+%H:%M:%S' ): $( top -b -n 1 | grep 'CPU:') >> cpu.txt;
sleep 1; 

magento2.3 – Magento Setup Cron "error while saving crontab: sh: line 6: crontab: command not found"

I do not have much Magento knowledge, but I spend a lot of time setting up Crontab. I tried to follow the steps available on the Magento website, but when I tried to run the "bin / magento cron: install –force" command early, I already encountered an error I can not solve. I use Professional Cloud Server from Hostinger. Can someone help me?

As you can see.

Linux – Does the script command have a significant impact on performance?

I need to disable stdout buffering for an app. I tried stdbuf -oL and unbuffer, Both did not work. Then I found out that "script" does the job.

The script script on Linux is used to create or record all terminal activity as a type script. After the execution of the script command, the recording of all elements printed on the screen, including the inputs and outputs, will be started until terminated.

It is normally used for a terminal but has a flag to work with the command output.

script -c someapp -f someapp.log

My question is: Does the "script" command have a significant impact on performance? I plan to use it to capture server logs.

Linux – How do I send a direct print command to the port in Java?

I have a sales system that generates a sales coupon when I buy a certain value of goods JasperReports To generate this coupon, but the company did not install the printer driver, all applications there send the command directly to the door, which is the case in this case Linuxthat is at this address: / dev / ttyUSB0 or / dev / ttyUSB1,

How do I do that with Jasper in Java?