Home Teaching Research Resources Personal

PDFill PDF Tools (Merge, Split, and Manipulate PDF Files)

กก

creating PDF files CutePDF Writer


(*remainder_pos)++; <=====> *remainder_pos = *remainder_pos+1;

-------------------------------------------------------------------------------------------

related to images in LaTex

http://amath.colorado.edu/documentation/LaTeX/reference/figures.html

----------------------------------------------------------------------------------------------

Remove the ^M characters from a Document

vi the file and white in command mode type in:

:%s/[ctrl+v][ctrl+m]//g

hitting the ctrl+v makes the carrot and ctrl+m specifies the letter "m"

basically searches and replaces all ^M with nothing

--------------------------------------------------------------------------------------------------------------------------------------------------

there are three compiler flags:
-ansi This flag tells the compiler to enforce ANSI C standards
-pedantic More pedantic ansi, warnings for stuff you probably didn't mean.
-Wall Show all reasonable warnings (there are more).

So, you should make sure that it is running as a standard C compiler and not a GNU C compiler.
* gcc -ansi -pedantic makes it run as a standard C compiler
* gcc -ansi -pedantic -Wall makes it run as a standard C compiler and check for several types of errors
------------------------------------------------------------------------------------------------------------


Last updated: Wednesday, 22-Oct-2008 13:53:57 CDT

Kill the undesired UNIX processes in one go

http://www.tech-recipes.com/unix_tips742.html

The following is the general syntax of this recipe :

ps -u <username> | grep <processname_pattern> | awk '{print $1}' |    xargs kill  -9


ps -u will find all the processes of the user username.
This output is then greped for processname_pattern which is then piped to awk.
awk '{print $1}' will print only the first column of the output (the process-id, in this case).
This is then xargd to the kill with sure kill -9 signal.

As a result,all the undesired processes will be killed.

Note : One should give the processname_pattern carefully as an incorrect
regular expression may lead to even desired processes being killed.

กก