Posts

How to Install R and RStudio on Ubuntu 16.04

# Install R + RStudio on Ubuntu 16.04 sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys E084DAB9 # Ubuntu 12.04: precise # Ubuntu 14.04: trusty # Ubuntu 16.04: xenial # Basic format of next line deb https://<my.favorite.cran.mirror>/bin/linux/ubuntu <enter your ubuntu version>/ sudo add-apt-repository ' deb https://ftp.ussg.iu.edu/CRAN/bin/linux/ubuntu xenial/ ' sudo apt-get update sudo apt-get install r-base sudo apt-get install r-base-dev # Download and Install RStudio sudo apt-get install gdebi-core wget https://download1.rstudio.org/rstudio-1.0.44-amd64.deb sudo gdebi rstudio-1.0.44-amd64.deb rm rstudio-1.0

How to make JQuery-AJAX request synchronous

you code should be look like .................. $ . ajaxSetup ({ async : false }); $ajax ({ ajax call ....}); $ . ajaxSetup ({ async : true });  like : $.ajaxSetup({async: false}); jQuery.ajax({ type: 'POST', url: '/cgi-bin/VUShare/variant_checker.cgi', data: { 'anop': value}, success: function(res){ VaildOrNot(res,value); }, error: function() { alert('sorry'); } });  $.ajaxSetup({async: true});

Exomiser error " Exception in thread "main" java.lang.OutOfMemoryError: Java heap space "

Exomiser error " Exception in thread "main" java.lang.OutOfMemoryError: Java heap space " full line is " 2017-07-04 02:34:52.617 [main] INFO  de.charite.compbio.exomiser.core.factories.VariantFactory - Processed 325375 variant records into 326224 single allele variants, 989 are missing annotations, most likely due to non-numeric chromosome designations " solution is, u have to increase java heap size like this  before change, it was  -Xms2g -Xmx4g      and now after change   -Xms4g -Xmx10g

How to enable production mode in Angular 2

error in console : 3000/node_modules/@angular/core/bundles/core.umd.js:3032 Angular is running in the development mode. Call enableProdMode() to enable the production mode. solution : open main.ts file in src folder and paste these line import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { AppModule } from './app/app.module'; import {enableProdMode} from '@angular/core'; enableProdMode(); platformBrowserDynamic().bootstrapModule(AppModule);  

How to recover corrupted gzip files in Linux

$gzip -d compressed_file.gz #it give give error : gzip: compressed_file.gz: unexpected end of file $gzrecover compressed_file.gz #it will give "compressed_file.recovered" $cpio -F compressed_file.recovered -i -v #it will give output compressed_file #have a nice day ..................................................................................

MongoDB

Image