Computer/linux
-
awk and the data manipulationComputer/linux 2008. 8. 22. 00:47
histogram.dat has the following structure: -100 -99 7 -99 -98 8 -98 -97 11 -97 -96 10 -96 -95 4 -95 -94 6 -94 -93 11 -93 -92 13 -92 -91 11 I want to change "histogram.dat" to the below structure: -100 7 -99 7 -99 8 -98 8 -98 11 -97 11 -97 10 -96 10 -96 4 -95 4 -95 6 -94 6 -94 11 -93 11 -93 13 -92 13 -92 11 awk '{print $1, $3 ; print $2, $3}' histogram.dat > histogram2.dat
-
Make a secure PC with sshd and ufwComputer/linux 2008. 8. 20. 04:47
sshd configuration open /etc/ssh/sshd_config file, change and add the following lines LoginGraceTime 60 PermitRootLogin no MaxAuthTries 3 AllowUsers user_name MaxStartups 3:50:10 LoginGraceTime The server disconnects after this time if the user has not suc- cessfully logged in. If the value is 0, there is no time limit. The default is 120 seconds. MaxAuthTries Specifies the maximum number of aut..
-
declaration of ‘array’ as multidimensional array must have bounds for all dimensions except the firstComputer/linux 2008. 8. 19. 21:06
C compiler issues the error : declaration of ‘array’ as multidimensional array must have bounds for all dimensions except the first sum_function (TH1D* inHisto[][]);Solution: sum_function(TH1D* inHisto[][10]); Reference : http://oreilly.com/catalog/cplus2/errata/cplus2.confirmed
-
"Search" example in CComputer/linux 2008. 8. 18. 19:34
header file : #include reference : http://www.gnu.org/software/libc/manual/html_node/Searching-and-Sorting.html#Searching-and-Sortinghttp://www.codecogs.com/reference/c/search.h/ Defining how to compare two int objects: int compare_ints (const void *a, const void *b) { const int *da = (const int *) a; const int *db = (const int *) b; return (*da > *db) - (*da < *db); } return : negative if a “le..
-
warning: incompatible implicit declaration of built-in function ‘strstr’Computer/linux 2008. 8. 15. 06:31
Problem : When I try to compile c program, I met the following error message: warning: incompatible implicit declaration of built-in function ‘strstr’ Analysis : This means that no header file contains the strstr function that I use in the program. Solution : Add the header file according to my function (strstr) #include
-
Keyboard doesnot work in the virtualbox.Computer/linux 2008. 7. 12. 04:55
After installing the VirtualBox OSE on the Ubuntu 8.04, I installed Windows xp. There is a keyboard issue. It can be solved by adding the follwoing lines in the /usr/bin/VBoxManage. GTK_IM_MODULE=none QT_IM_MODULE=none XMODIFIERS=none