Skip to main content

Posts

Map with R

How it really works in R ggplot2  http://eriqande.github.io/rep-res-web/lectures/making-maps-with-R.html You need to create data in following format: long lat group order region subregion #> 1 -101.4078 29.74224 1 1 main #> 2 -101.3906 29.74224 1 2 main #> 3 -101.3620 29.65056 1 3 main #> 4 -101.3505 29.63911 1 4 main #> 5 -101.3219 29.63338 1 5 main #> 6 -101.3047 29.64484 1 6 main Some useful packages ggmap googleVis

Teradata Tutorial

Import CSV file as a table in Teradata 1. First create the table you want with the structure of the file. Create table dp_cad_analtyics.A ( Testcol1 varchar(20) , Testcol2 varchar(20) ); 2. Then modify the below query accordingly so that the number of question marks are equal to the number of columns Insert into dp_cad_analytics.A Values (?,?); 3. Select the option of "import data" from the "File" menu and execute query. It will ask for the file.

SAS tutorial

SAS Tutorial SAS E-Guide 1. Library Creation Create a program and write following command: libname tanvir '/sasdata2/SAS-USERS/taaalam/'; 2. Import File into Library File > Import Data >  Select Local File >  Output SAS data set (  use SAS server and Library name that you created in step 1 ) SAS E-Miner 1. Map Libraries in SAS Miner (Let E-miner knows the library you created in E-Guide) File > New > Library 2. Bring Files under "Data Source" Right click "Data Source" > "Create Data Soruce"

OpenMP Tutorial

Some tutorial: http://people.math.umass.edu/~johnston/PHI_WG_2014/OpenMPSlides_tamu_sc.pdf http://www3.nd.edu/~zxu2/acms60212-40212-S12/Lec-11-03.pdf Scheduling Tutorial For beginners: https://people.sc.fsu.edu/~jburkardt/c_src/schedule_openmp/schedule_openmp.html https://www.buffalo.edu/content/www/ccr/support/training-resources/tutorials/advanced-topics--e-g--mpi--gpgpu--openmp--etc--/2011-09---practical-issues-in-openmp--hpc-1-/_jcr_content/par/download/file.res/omp-II-handout-2x2.pdf Fibonacci Number generation https://gist.github.com/CarlEkerot/2601195

SVN tutorial

SVN cheat sheet: http://www.cheatography.com/davechild/cheat-sheets/subversion/ For more useful svn commands, check the following tutorial: http://openoffice.apache.org/ svn -basics.html Server : Create a  SVN repository svn co https://svn.apache.org/repos/asf/openoffice/trunk  mySVNrepository Local machine: Make a repository and connect with server Just on your local machine, run the following command: svn checkout svn +ssh:// login.cbrc.kaust. edu.sa/data/snapdragon/ soufanom/DREAM-DRUG-Challenge/ ChallengeScripts Then, all current testing scripts will be added to your local machine.  Add and commit your changes to server: In order to share with us your work, inside your own folder (e.g. ChallengeScripts/Wail ), create any folder, file or scripts and do: 1- svn add folder1 2- svn commit folder1 -m "Comments of your changes"

Linux Tips and Tricks

Collected from CBRC wiki: Original source: http://dragon.cbrc.kaust.edu.sa/wiki/index.php/Linux_Tips_and_Tricks Linux Tips and Tricks Jump to: navigation , search Contents 1 Useful commands 1.1 General commands 1.2 Directories processing 1.3 Files processing 1.4 Find/Replace 1.5 Processes 2 File System /Disk Management 2.1 Disk space report 2.2 Resizing Shared Memory (/dev/shm) 2.3 Resizing partitions CentOS 2.4 Disk crash recovery 2.5 Mounting WebDAV Share 2.5.1 Installing and configuring WebDAV for non-sudo on Ubuntu Useful commands General commands find Linux version $ cat / etc / issue Directories processing $ # recursively delete backup files $ find . / -name '*~' | xargs rm   $ # Process all files in a directory $ ls dir_path /* .xml | xargs -n 1 MyProcessingProgram   $ # gzip/guznip directory: $ tar czvf myfile.tar.gz mydir /* $ tar xzvf filename.tar.gz ( or: tar x...

GIT tutorial

Tutorial:  http://gitready.com/ http://blog.osteele.com/posts/2008/05/my-git-workflow/ Basic structure Image from: From : http://blog.osteele.com/posts/2008/05/my-git-workflow/ Following tips are collected from CBRC git (Thanks to John and Craig) Original LInk: http://dragon.cbrc.kaust.edu.sa/wiki/index.php/Cbrcgit Cbrcgit Jump to: navigation , search Contents 1 What is git 2 CBRC git server 3 Quick start 4 Using git 5 Creating a new remote repository 6 Creating a new local git repository 7 Project repository 8 See also What is git http://en.wikipedia.org/wiki/Git_%28software%29 Git is a free distributed revision control, or software source code management, project with an emphasis on being fast. Git was initially designed and developed by Linus Torvalds for Linux kernel development. Every Git working directory is a full-fledged repository with complete history and full revision tracking capabilities, n...