commandline session root>R R version 3.1.2 (2014-10-31) — “Pumpkin Helmet” Copyright (C) 2014 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type ‘license()’ or ‘licence()’ for distribution details. Natural language support but running in an …
Monthly Archives: February 2013
R ls plot
commandline session > library(ggplot2) Loading required package: reshape Loading required package: plyr Attaching package: ‘reshape’ The following object(s) are masked from ‘package:plyr’: rename, round_any Loading required package: grid Loading required package: proto > lscalls usecspercall qplot(lscalls,usecspercall,geom=”line”) > plot(lscalls,usecspercall,geom=”line”) Warning messages: 1: In plot.window(…) : “geom” is not a graphical parameter 2: In plot.xy(xy, type, …) …
Erlang shell .
commandline session $erl Erlang R15B01 (erts-5.9.1) [source] [64-bit] [async-threads:0] [kernel-poll:false] Eshell V5.9.1 (abort with ^G) 1> q(). ok 2> $ $erl Erlang R15B01 (erts-5.9.1) [source] [64-bit] [async-threads:0] [kernel-poll:false] Eshell V5.9.1 (abort with ^G) 1> h(). ok 2> h() 2> . 1: h() -> ok ok 3> pwd(). /home/jeffrin/Downloads ok 4> cd(“..”). /home/jeffrin ok 5> 1+2. …
R plot firefox + line graph
commandline session > call [1] 11 2088 18088 20958 25695 704 1744 139 6 7612 > usecspc [1] 2682 12 1 1 0 6 2 29 667 0 > png(file=”Rlinegraph-firefox.png”) > plot(call,usecspc,type=”l”) > dev.off() null device 1 >
R plot . firefox statistics
commandline session > call usecspc png(file=”Rfirefox.png”) > plot(call,usecspc) > dev.off() null device 1 >
R Graphics scatter plot
commandline session > c(1,2,3,4,5) [1] 1 2 3 4 5 > x [1] 1 > c function (…, recursive = FALSE) .Primitive(“c”) > x x [1] 22 > ‘ x [1] 35 > w w [1] 1 2 3 4 5 > w[3] [1] 3 > w[0] numeric(0) > w[1] [1] 1 > w[6] [1] …
GCC COMMANDLINE OPTIONS PART 9
compiler option Testing $ls unsigned.c $gcc unsigned.c $./a.out The Geek Stuff [-10] $gcc -funsigned-char unsigned.c $./a.out The Geek Stuff [246] $cat unsigned.c #include<stdio.h> int main(void) { char c = -10; // Print the string printf(“n The Geek Stuff [%d]n”, c); return 0; } $
GCC COMMANDLINE OPTIONS PART 8 -ansi
commandline session $cat main.c #include<stdio.h> #include<math.h> int main(void) { int i=0; float y; printf(“n The Geek Stuff [%d]n”, i); y=sinf(2.5); printf(“%fn”,y); return 0; } $gcc -ansi main.c /tmp/ccBNR3rx.o: In function `main’: main.c:(.text+0x3c): undefined reference to `sinf’ collect2: error: ld returned 1 exit status $gcc main.c $
GCC COMMANDLINE OPTIONS PART 7
commandline session $gcc -v main.c Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.7/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v –with-pkgversion=’Debian 4.7.2-4′ –with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs –enable-languages=c,c++,go,fortran,objc,obj-c++ –prefix=/usr –program-suffix=-4.7 –enable-shared –enable-linker-build-id –with-system-zlib –libexecdir=/usr/lib –without-included-gettext –enable-threads=posix –with-gxx-include-dir=/usr/include/c++/4.7 –libdir=/usr/lib –enable-nls –with-sysroot=/ –enable-clocale=gnu –enable-libstdcxx-debug –enable-libstdcxx-time=yes –enable-gnu-unique-object –enable-plugin –enable-objc-gc –with-arch-32=i586 –with-tune=generic –enable-checking=release –build=x86_64-linux-gnu –host=x86_64-linux-gnu –target=x86_64-linux-gnu Thread model: posix gcc version 4.7.2 (Debian 4.7.2-4) COLLECT_GCC_OPTIONS=’-v’ ‘-mtune=generic’ ‘-march=x86-64’ …
GCC COMMANDLINE OPTIONS PART 6
commandline session $ gcc -c -Wall -Werror -fPIC main.c main.c: In function ‘main’: main.c:8:10: error: ‘i’ is used uninitialized in this function [-Werror=uninitialized] cc1: all warnings being treated as errors $vim main.c $cat main.c #include<stdio.h> #include<math.h> int main(void) { float y; printf(“n The Geek Stuff [%d]n”, i); y=sinf(2.5); printf(“%fn”,y); return 0; } $ gcc -c …