terminal

from: cant read /varmail/ctypes when called

心已入冬 提交于 2021-02-11 15:44:28
问题 I am trying to implement some object detection in a project of mine using darknet.py. from my terminal I am able to run python3 darknet.py and get my results all fine. But when I have tried to include it in my own program I am getting several errors; from: cant read /var/mail/ctypes import im6.q16: not authorized math @error/constitute.c/writeimage/1037 I am not sure how to proceed. I have made sure darknet.py starts with #!/usr/bin/ env python3 as does my program, i am trying to run it with

My Virtual Environment is using my System Python rather than my Venv's Python

。_饼干妹妹 提交于 2021-02-11 15:21:38
问题 I am following a tutorial on virtual environments (for Python) from the Coding Train (Here: https://www.youtube.com/watch?v=nnhjvHYRsmM). As I follow the tutorial, I see that, when which python is typed (in Terminal), the output should be the venv's Python in which it had installed. However, my system, for whatever reason this may be, decided to use it's own installed version of Python, instead. This means that all the dependencies (/modules) are screwed up and that I can't simply type out

Is there an ADB command to check a media is playing or not

时光怂恿深爱的人放手 提交于 2021-02-11 15:18:16
问题 I want to check whether the Audio/Video is playing in my external device which is rooted in terminal using ADB command.I am not able to find any ADB commands if available mention that I have tried adb shell dumpsys media.player i want a command to specify if video is running or not 回答1: I think there is no direct command to do that. But you can query all the running service using adb shell service list | grep 'media.player' 回答2: To print out the MediaPlayer states: adb shell dumpsys audio But

Running a cmd file without GUI popping up

断了今生、忘了曾经 提交于 2021-02-11 12:38:24
问题 I'm running a list of commands in a file: matlab -nodesktop -nodisplay -nojvm -nosplash ............. xwin32 --session .................... I would like to have them run without the GUI popping up in Windows and more of all I would like the command prompt GUI not to pop up, anyone have any idea how to do it? tnx 回答1: Best you can do on Windows is: batchScript.cmd start /B /MIN matlab.exe -nodesktop -noFigureWindows -nosplash ^ -r "surf(peaks); saveas(gcf, 'output.eps'); quit;" You can add the

Terminal searching JDK in wrong PATH/Build failed, debugger for java

旧巷老猫 提交于 2021-02-11 12:32:29
问题 Error: could not open `D:\IntelliJ IDEA Community Edition 2018.2.5\JDK\lib\amd64\jvm.cfg' I get this error every time I try to run a java program. Before it was working fine when i had JDK 8 but i upgraded to 14. I use VScode and I had deleted Intellij but the file path hasn't gone and the terminal is trying to find the intelliJ JDK for some reason. I am a beginner to terminal too. I have tried setting up the environment variable for the correct path but that isn't working.The path variable

Why would one run cat|bash before copying/pasting into a terminal?

。_饼干妹妹 提交于 2021-02-11 12:22:28
问题 I've seen someone running cat|bash before pasting commands from the clipboard into a terminal. bash executes commands in bash I do not know why do we need cat here and |(pipe) . What useful effects does this practice have? 回答1: It was my colleague who executed a bunch of command in the terminal, [...] he did cat|bash before pasting those set of commands He likely this to stop Bash from interpreting anything in the commands as editing input, to override any special keybindings and aliases he's

Make “python” run python3 at the prompt [duplicate]

。_饼干妹妹 提交于 2021-02-11 12:18:24
问题 This question already has answers here : How can I make the “python” command in terminal, run python3 instead of python2? (6 answers) Closed 1 year ago . I have two python installations.. python --> /Users/fraz/anaconda/bin/python (python2.7) python3.7 --> /usr/local/bin/python3.7 Now.. I want reassign the commands. Such that python points to python3.7 --> /usr/local/bin/python3.7 and python2 points to python2.7 /Users/fraz/anaconda/bin/python How do i do this reassignment? 回答1: follow this

How can you hide Java compiler path VSCode?

人盡茶涼 提交于 2021-02-11 08:50:01
问题 When I run a java program in vscode's integrated terminal, the full java path displays as a large box of text. Is there any way to get ride of this? /Library/Java/JavaVirtualMachines/jdk-13.0.1.jdk/Contents/Home/bin/java --enable-preview -Dfile.encoding=UTF-8 -cp "/Users/myusername/Library/Application Support/Code/User/workspaceStorage/alotofnumbers/redhat.java/jdt_ws/foldername/bin" 回答1: you could let it output in debug console instead of terminal channel as a workaround, add "console":

How to add shortcut letters or words in Android Studio's Terminal for frequent commands?

无人久伴 提交于 2021-02-11 05:01:34
问题 In Android Studio's Terminal window, I use some commands too frequently and it's a lot frustrating. The commands I use a thousand times a day are: adb kill-server adb connect 192.168.43.1 While Android Studio is not restarted yet, when you type these once, you can use up and down arrow keys to select them. But the problem is that I restart AS or switch between projects so many times a day. And writing these commands over and over again is such a pain. So I thought why don't we create one

How to add shortcut letters or words in Android Studio's Terminal for frequent commands?

荒凉一梦 提交于 2021-02-11 04:59:39
问题 In Android Studio's Terminal window, I use some commands too frequently and it's a lot frustrating. The commands I use a thousand times a day are: adb kill-server adb connect 192.168.43.1 While Android Studio is not restarted yet, when you type these once, you can use up and down arrow keys to select them. But the problem is that I restart AS or switch between projects so many times a day. And writing these commands over and over again is such a pain. So I thought why don't we create one