LMC filling memory
-------------------
lda x
f1 add one
sta 3
x dat 305
bra f1
one dat 1
--------------------
f1 lda x
add one
sta f1
bra f1
one dat 1
x dat 305
--------------------
Hello, welcome to my blog containing some computer tips and experiments.
Wasit Limprasert
วสิศ ลิ้มประเสริฐ
YouTube
| GitHub
| Publications
Thursday, 29 October 2015
Monday, 14 September 2015
regular expression
https://support.google.com/docs/answer/3378864?hl=en
http://www.w3schools.com/jsref/jsref_obj_regexp.asp
http://www.w3schools.com/jsref/jsref_obj_regexp.asp
Wednesday, 2 September 2015
raspistill color problem
https://www.raspberrypi.org/forums/viewtopic.php?f=43&t=84416&start=25
Tuesday, 25 August 2015
Enabling OMP on PC
In cs426, we use OpenMP both on PC and in SciCloud. If you want to try OpenMP on you laptop or PC, you may have to install some software as following.
- get CodeBlock IDE and MinGW
- include C:\MinGW\bin to system path
- install mingw32-pthreads-w32 using C:\MinGW\bin\mingw-get.exe
- In codeBlock, Settings>>compiler>>linker setting>>link library=C:\MinGW\bin\libgomp-1.dll
- In codeBlock, Settings>>compiler>>compiler settings>>other options= -fopenmp
You may need to restart your computer to apply the new configuration.
Wednesday, 19 August 2015
creating a new network in SciCloud
To create a new network:
- networks>create network>subnet=192.168.0.0/24
- create routers>select external network to attach the routers>create an interface to the new network
- Now a new instance can be attached to the new network. However, it could not resolve the URL, a DNS servers in /etc/resolv.conf need to be change. Add "nameserver 8.8.8.8" to the /etc/resolv.conf
Tuesday, 7 July 2015
Analog reader
An one day project to create an analog reader for some scientific instruments. Objective of the project is to make an interface between any analog sensors to a computer. Her we choose the following ingredients;
-Arduino Uno to read analog signals and send messages to a computer through a serial port
-pyserial to get the serial input to python environment
-matplotlib
-Bokeh to visualise the analog signal in real-time
What we have done!
1. Make sure the Arduino IDE and driver are already installed
2. Python2.7 and pyserial must be installed. Here we use Anaconda and pyserial need to be installed by "$conda install pyserial" on Windows and "pip install pyserial" on Unix.
3. Install Bokeh
4. Then we made a simple implementation for communication between Uno and PC by using the codes here.
-Arduino Uno to read analog signals and send messages to a computer through a serial port
-pyserial to get the serial input to python environment
-
-Bokeh to visualise the analog signal in real-time
What we have done!
1. Make sure the Arduino IDE and driver are already installed
2. Python2.7 and pyserial must be installed. Here we use Anaconda and pyserial need to be installed by "$conda install pyserial" on Windows and "pip install pyserial" on Unix.
3. Install Bokeh
4. Then we made a simple implementation for communication between Uno and PC by using the codes here.
Subscribe to:
Posts (Atom)