上個月的電信費帳單,有2元是簡訊費。
就想說如何判斷發送了啥收費簡訊?
首先查ChatGPT, 說IOS 18無法只列出發送的訊息。
所以查看所有訊息,自己送出的訊息是藍色泡泡,
最上面有秀iMessage的,是走網路不另外收費。
最上面秀SMS的,似乎就要收費,
原來邀請家族的人,是要送出SMS簡訊的,
這就是那2元簡訊費。
上個月的電信費帳單,有2元是簡訊費。
就想說如何判斷發送了啥收費簡訊?
首先查ChatGPT, 說IOS 18無法只列出發送的訊息。
所以查看所有訊息,自己送出的訊息是藍色泡泡,
最上面有秀iMessage的,是走網路不另外收費。
最上面秀SMS的,似乎就要收費,
原來邀請家族的人,是要送出SMS簡訊的,
這就是那2元簡訊費。
sudo GNUTLS_CPUID_OVERRIDE=0x1 apt-get update
this works for me
according to this https://groups.google.com/g/linux.debian.bugs.dist/c/ItKoVDieSow
and you need to add ~/.bashrc with this
export GNUTLS_CPUID_OVERRIDE=0x1
for long-term use
OAK-D USB
* Luxonics github
https://github.com/luxonis/depthai
https://github.com/luxonis/depthai-ros
https://github.com/luxonis/depthai-hardware
* Luxonics Docs
SW
DepthAI Tutorials
- {https://docs.luxonis.com/software/depthai/getting-started/}[Getting Started]
sudo wget -qO- https://docs.luxonis.com/install_depthai.sh | bash
- {https://docs.luxonis.com/software/depthai/manual-install/}[Manual DepthAI installation]
- {https://docs.luxonis.com/software/depthai/hello-world/}[Hello World]
HW
-- {https://docs.luxonis.com/hardware/platform/deploy/usb-deployment-guide/}[USB deployment guide]
- {https://docs.luxonis.com/hardware/platform/deploy/to-rpi/}[Deploy with Raspberry Pi]
* turtlebot4 manual
sensor/OAK-D
https://turtlebot.github.io/turtlebot4-user-manual/software/sensors.html#oak-d
install/run
# install
sudo apt install ros-humble-depthai-ros
# run
ros2 launch depthai_examples mobile_publisher.launch.py
# AI examples are available on the DepthAI github.
# To view the images from these examples you will need to ssh into the robot with a -X flag:
ssh -X ubuntu@10.42.0.1
Ref: https://stackoverflow.com/questions/1186789/how-to-call-a-script-from-another-script
print "test1.py"
import subprocess
subprocess.call("test1.py", shell=True)
The advantage to this method is that you don't have to edit an existing Python script to put all its code into a subroutine.
Documentation: Python 2, Python 3
(當呼叫的py script是跟使用者有輸入輸出的互動時,
subprocess.call可以使得跟直接執行另一個py一樣)
Ref: https://stackoverflow.com/questions/51928521/eoferror-when-starting-with-subproccess
You are using subprocess.Popen
which is a by default non blocking, piece of code, hence You program cursor moves rather than waiting for the input from the user. But what you need is a code which is blocking your program cursor. subprocess.call
exactly does it. It would be waiting for the other command to execute completely.
You need to use subprocess.call
to solve your problem. Just change your script2 file with this
import subprocess
p = subprocess.call(["python", "abca.py"])
You can read more about the difference between subprocess.Popen
and subprocess.call
in this answer. Which describes when to use which command and the difference between them