Posts

Launcher disappears for a moment when mouse over

Run these command sudo add-apt-repository ppa:paulo-miguel-dias/pkppa  sudo apt-get update  sudo apt-get upgrade  sudo reboot

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

mongodb connection timeout perl

Image

shared memory segment size increase and remove ubuntu

Image

how to call javascript function automatically after some time

<!DOCTYPE html> <html> <body> <button onclick="myFunction()">Try it</button> <script> function myFunction() { var file = ["a","b","c","d"]; var myTimer; var j = 0; myTimer = setInterval(function() { alert('hi'); j++; for(var i = 0; i < 5; i++) { alert('i= '+i); } alert(j+'and'+file[j]); if(file[j] == 'c'){ clearInterval( myTimer ); } }, 1000); } </script> </body> </html>

how to use system cmd in javascript

Image
hii firstly open terminal and install shelljs  $ npm install shelljs $ touch file.js $ nano file.js and type code in file.js var shell = require('shelljs'); shell.echo('hello world'); and save and run the file on terminal $ node file.js

how to use system cmd in javascript

Image
hii firstly open terminal and install shelljs  $ npm install shelljs $ touch file.js $ nano file.js and type code in file.js var shell = require('shelljs'); shell.echo('hello world'); and save and run the file on terminal $ node file.js

how to change string to integer in perl

my $stri = "100"; #convert $stri = int($stri); print "$string\n"; or my $str = "100";  # convert $stri = sprintf("%d", $stri); print "$stri\n";

Get a list of packages installed locally do this in your terminal

To get a list of packages installed locally do this in your terminal: dpkg --get-selections | grep -v deinstall To save that list to a text file called packages on your desktop do this in your terminal:   dpkg --get-selections | grep -v deinstall > ~/Desktop/packages

$ is not defined in jquery

Change the order you're including your scripts (jQuery first)

background process in perl cgi

like my command is $cmd = perl ExomeSeqAMLpipeline.pl --input $tmpfilenameOne $tmpfilenameTwo --output $file_path 1)     my $proc2 = Proc::Background->new("$cmd 1>&2");     $proc1->alive;     $proc1->die;     $proc1->wait;     my $time1 = $proc1->start_time;     my $time2 = $proc1->end_time; or 2) my $pid = fork(); if (defined($pid) && $pid==0) {     exec( "$cmd" );     exit; } or 3) system("$cmd &"); or 4) exec("$cmd &"); or 5) exec("$cmd --output $file_path > /dev/null 2>&1 &");

exit from subroutine perl

last, next, exit all do not work for exit from subroutine but return works for exit from subroutine example input 12 sub fun {   my $number = shift;   if($number == 12){ print "\n ok bye i am going to outside from subroutine \n"; return;   }   print "\n anop singh ranawat \n"; }  my $number = <>;  &fun($number);   print "\n have a nice day \n"; result  ok bye i am going to outside from subroutine have a nice day

perl6 module install

panda install "module name" https://modules.perl6.org/

calculate insert size paired end reads

install samtools samtools sort sample.bam > sort_sample.bam samtools stats sort_sample.bam | grep "insert size average" > output.txt more output.txt

cosmic database download

1) install ANNOVAR 2) mkdir humandb 3) annotate_variation.pl --buildver hg19 --downdb -webfrom annovar cosmic70 /humandb