Mpi_parallel_programming_2
data type
there are only these data type in the MPI
- if you want to use struct or multi array, you need to do something else
MPI data type c data type MPI_CHAR signed char| MPI_SHORT signed short int| MPI_INT signed int| MPI_LONG signed long int| MPI_UNSIGNED_CHAR unsigned long int| MPI_UNSIGNED_SHORT unsigned short int| MPI_UNSIGNED unsigned int| MPI_FLOAT float| MPI_DOUBLE double| MPI_LONG_DOUBLE long double| MPI_BYTE | MPI_MPI_PACKED |
Mpi_parallel_programming_1
difference between SIMD and MIMD
- difference kinds of computer architecture is using the Flynn to classify
- SISD
- SIMD
- MISD
- MIMD
- we only talk about the SIMD and MIMD here
- SIMD means that one command deal with many data streams
- most of the single core machine is SIMD machine
- and these kinds of machine is most used in the image processing and multimedia processing.
- SIMD means that one command deal with many data streams
Solution to Access Denied for User ‘Root’@’localhost’ (Using password:YES)
Access denied for user ‘root’@‘localhost’ (using password:YES)
- in mac
- open the my.conf in the directory /usr/local/mysql
- add
skip-grant-tables
- restart the mysql service
sudo /usr/local/mysql/bin/mysqld_safe &
- then use
mysql -uroot -p
- you can login without password
- then update the password after
use mysql;
update user set password=PASSWORD("rootadmin") where user='root';
- after that
- delete the
skip-grant-tables
add in the my.conf file
- delete the
- restart the mysql service
- then you can use the
mysql -u root -q
to login with your new password
Php Tutorial(1)
class 1
- how the web site work when you request for the page
- when you log into the internet, you request for the web server for a file that is the page.
- if the web server is request for a html file, the server just give it back
- else if it is the php file, the server send the php file to the php interpreter and process the php
- and after the process, the interpreter give it back
- (for php is an interpret kind of language and it do not need to be compile)
- and then the server send the php file back to the web browser
- if the php is interacting with the database, then the code of the php will have sql query with the database.
- after the query, send back to the php interpreter and then send back to the server and then send back to the web browser
FMDB and Tableview in IOS
What is FMDB?
- FMDB is a framework that used to simplified the sqlite3 operation
- and we can use this framework to operate the sqlite easily
- and we need to download the fmdb package in github
- then copy the fmdb folder to our project
- include the sqlite3 framework in your project
- then you only need to write
import"FMDB.h"
- you will be able to use the api of fmdb