Thursday, January 27, 2011

How about using Timberjack walking machine on high ground?


I'm not sure wether this project is alive or not.
Glacier Lake Outburst Floods(GLOFs) are disaster that indigenous to glaciers.
Glacier lakes in switzerland are controlled by building hydroelectric power stations. However, glacier lakes on high altitude such as in Napal,

The walking forest machine is Plustech’s best-known innovation.
The goal of product development was to create a machine that has the best possible working stability and minimum impact on the terrain.

http://www.forevergeek.com/2005/05/the_walking_forest_machine/

Friday, January 21, 2011

Wordcount C

Word-count program written in C.

#include

int main(int argc, char *argv[]){
int i=1;
FILE *file;
char *ptr;
char c[1000];
file = fopen(argv[1], "r");
fgets(c, sizeof(c), file );
for(ptr = c; *ptr != ''; ptr++ ){
if(*ptr == ' '){
i = i + 1;
}
}
printf("%s\n", c);
printf("Wordcount: %d\n" ,i );
fclose(file);
return 0;
}