Why Use Parallel Computing?
*Other reasons might include:
**Overcoming memory constraints - single computers have very finite memory resources. For large problems, using the memories of multiple computers may overcome this obstacle.
用 MPI 實做應該可行,不用特地買一台 20,000 NT 的 quad cores 機器。
2007-09-16
MVC - Model-view-controller
Model-view-controller
Model-view-controller (MVC) is an architectural pattern used in software engineering. In complex computer applications that present a large amount of data to the user, a developer often wishes to separate data (model) and user interface (view) concerns, so that changes to the user interface will not affect data handling, and that the data can be reorganized without changing the user interface. The model-view-controller solves this problem by decoupling data access and business logic from data presentation and user interaction, by introducing an intermediate component: the controller.
Perl::Catalyst
Perl::Jifty
PHP::CakePHP
PHP::Zend Framework
The brief is a good brief of wikipedia, I love its style forever.
Model-view-controller (MVC) is an architectural pattern used in software engineering. In complex computer applications that present a large amount of data to the user, a developer often wishes to separate data (model) and user interface (view) concerns, so that changes to the user interface will not affect data handling, and that the data can be reorganized without changing the user interface. The model-view-controller solves this problem by decoupling data access and business logic from data presentation and user interaction, by introducing an intermediate component: the controller.
Perl::Catalyst
Perl::Jifty
PHP::CakePHP
PHP::Zend Framework
The brief is a good brief of wikipedia, I love its style forever.
cd2iso
The magic of creating CD ISO files under Windows
/* This program has been compiled with VC6 and tested under Windows XP SP2 */
#include
#include
int main ( int argc, char ** argv )
{
FILE * f, * out;
char buf[512];
unsigned len;
if (argc != 2)
{
fprintf( stderr, "Syntax: rdiso filename\n" );
return 1;
}
if ( (f = _fsopen( "\\\\?\\CdRom0", "rb", _SH_DENYNO )) == NULL)
{
fprintf( stderr, "Can't open CdRom0\n" );
return 1;
}
if ( (out = fopen( argv[1], "wb" )) == NULL)
{
fprintf( stderr, "Can't open %s\n", argv[1] );
return 1;
}
do
{
len = fread( buf, 1, sizeof(buf), f );
if (len)
fwrite( buf, 1, len, out );
}
while (len == sizeof(buf));
fclose( f );
fclose( out );
return 0;
}
2007-09-14
In the book, "The Complete FreeBSD", wrote,
“Those Linux books hve over1000 pages! This looks like nothing. What can you do? We need something yesterday!”
Haha~~
2007-09-07
2007-09-06
ssh-copy-id
ssh-copy-id - install your identity.pub in a remote machine’s authorized_keys
ssh-copy-id [-i [identity_file]] [user@]machine
2007-09-05
Never have it again!!!
int** ptr = malloc( sizeof(int) * SIZE );
char** ptr = malloc( sizeof(char) * SIZE );
WRONG
int** ptr = malloc( sizeof(int**) * SIZE );
char** ptr = malloc( sizeof(char**) * SIZE );
RIGHT
訂閱:
文章 (Atom)