C Shell Programming
http://heather.cs.ucdavis.edu/~matloff/UnixAndC/Unix/CShellII.html
http://www-cs.canisius.edu/ONLINESTUFF/UNIX/shellprogramming.html
Interesting people find this blog boring; only boring people find this blog interesting ...
http://heather.cs.ucdavis.edu/~matloff/UnixAndC/Unix/CShellII.html
http://www-cs.canisius.edu/ONLINESTUFF/UNIX/shellprogramming.html
Posted by
YYC
at
2:54 PM
0
comments
Labels: Linux/Unix
Posted by
YYC
at
4:38 PM
0
comments
Labels: Matlab
Posted by
YYC
at
10:55 AM
0
comments
Labels: Matlab
If the conversion from char** to const char ** is allowed, then user may write a sequence of assignments which modifies a constant. Following is an exsample from Gianni Mariani posted at coding.derkeiler.com
const char * A[2] = { "A", "B" };
char * B[2];
int main() {
char ** b = B; }
const char ** a = b; // illegal
//const char ** a = ( const char ** ) b; // BAD work-around (1)
//const char * const * a = b; // better option (2)
a[0] = A[0]; // illegal if you use (2) ok if you use (1)
b[0][0] = 'X'; // const violation - big probs if you use (1)
Posted by
YYC
at
12:12 PM
0
comments
Labels: CPP
Posted by
YYC
at
10:00 AM
0
comments
Labels: Linux/Unix
Posted by
YYC
at
10:57 AM
0
comments
Labels: Matlab
Forced Assertion: "Corrupted memory block found"
mxArray *temp = mxCreateDoubleMatrix(1,5,mxREAL);
double data[5] = {1,2,3,4,5};
...
memcpy(mxGetPr(temp), data, 5*sizeof(double));
...
mxDestroyArray(temp); // <-- INCORRECT. Do NOT call mxDestroyArray on temp
Posted by
YYC
at
10:35 AM
0
comments
Posted by
YYC
at
4:38 PM
0
comments
Labels: CPP
Check:
$ tr -d '\r' < DOS_file > UNIX_fileThe '<' is to input the DOS_file to command 'tr' and '>' is to output the file without '\r'. The commands including UNIX-to-DOS conversion can be found here
Posted by
YYC
at
3:01 PM
1 comments
Labels: Linux/Unix
Posted by
YYC
at
11:37 AM
0
comments
Labels: Tools
Use \Q中文字\E
Posted by
YYC
at
9:56 PM
0
comments
Labels: Perl
Posted by
YYC
at
10:36 AM
0
comments
Labels: MISC
Posted by
YYC
at
5:59 PM
0
comments
Labels: Matlab
Posted by
YYC
at
5:53 PM
3
comments
Labels: Matlab
Greek, mathematical, symbolic characters, and so on.
http://everything2.com/index.pl?node=HTML%20symbol%20reference
Posted by
YYC
at
8:53 AM
0
comments
Labels: HTML
% 'x > upperbound' evaluates to a logical index
x = array to be clipped;
x( x > upperbound ) = upperbound;
x( x < lowerbound ) = lowerbound;
Posted by
YYC
at
4:10 PM
0
comments
Labels: Matlab
"There is only one thing more beautiful than one guitar - Two guitars" Frederic Chopin
Posted by
YYC
at
4:38 PM
0
comments
Labels: English
DSP related:
http://www.dsprelated.com/
Posted by
YYC
at
3:20 PM
0
comments
Labels: MISC
http://davidmlane.com/hyperstat/index.html
Posted by
YYC
at
1:41 PM
0
comments
Labels: Tools