Monday, February 29, 2016

How to renew Caltech Library books online

visit this:
https://caltech.tind.io/yourloans/display?action=renew&barcode=350470000951072

you may need to log in

and then click "renew" next to your item on loan

Sunday, February 28, 2016

Try 'rm ./-.tmp.0001.bam' to remove the file ‘-.tmp.0001.bam’. Try 'rm --help' for more information

This is because the file I want to remove starts with an '-' in its name.

To remove a file whose name starts with a '-', for example '-foo',
use one of these commands:
  rm -- -foo

  rm ./-foo

Friday, February 26, 2016

Plot Bubble plot using excel 2013

This is a way to address data of three dimensions, like heatmap or surface plot
But the sizes of bubbles instead of color/Z axis indicate the value you want to show over a 2D grid.



Insert -> In the charts area, click the scatter, choose bubble

Then select data. And then type in X value, Y value and Bubble size

In the example above, I set each datapoint to be an individual data series. So their colors look different

Thursday, February 25, 2016

HTseq warning message: too many reads with missing mate encountered

Because Tophat and HTseq are not happy together.

https://www.biostars.org/p/100249/

Monday, February 22, 2016

How to plot a forest plot/ treemap using R

data <- read.csv("http://datasets.flowingdata.com/post-data.txt")
install.packages("portfolio")
library(grid)
library(lattice)
library(nlme)
library(portfolio)
map.market(id=data$id, area=data$views, group=data$category, color=data$comments, main="FlowingData Map")


#Attention:the data file shouldn't contain tabs; the first row has to have the column names; the color code value range is between around -50 to 50; the local file path shouldn't have \ but / ; have fun



reference:https://flowingdata.com/2010/02/11/an-easy-way-to-make-a-treemap/

How to reorder the pie of pie chart in 2013 Excel

Short answer:
click onto the colored pie -> right click -> format data series -> split series by ------>

I used the value (threshold to split) but there are more possibilities.


Here is a detailed explanation:
http://www.bluepecantraining.com/portfolio/create-a-pie-of-pie-chart-in-excel-2013/

Friday, February 19, 2016

[iphone] how to avoid international calls/ call roaming

The answer is:
YOU CANT


unless you contact your provider
Avoiding international text messages is possible, though

Monday, February 15, 2016

How to combine columns into a table [Linux]

paste file1 file2 | column -s $'\t' -t


reference: http://unix.stackexchange.com/questions/16443/combine-text-files-column-wise

How to print out papers at Caltech SFL(Sherman Fairchild Library) library

1. select a computer that connects to printers(trial and error)
2. print your document to either the gray or color printer
3. make sure your balance amount is enough by checking the paper cut or here https://printers.library.caltech.edu:9192/user
4. go to any of the printers and swipe your card/type your username and password
5. Select the loaded jobs that you can to print.

Sunday, February 14, 2016

Git: fastforward --- Define your finished branch to be master branch


Hotfix branch based on `master`.
Figure 3-13. Hotfix branch based on master

You can run your tests, make sure the hotfix is what you want, and merge it back into your masterbranch to deploy to production. You do this with the git merge command:
$ git checkout master
$ git merge hotfix
Updating f42c576..3a0874c
Fast-forward
 index.html | 2 ++
 1 file changed, 2 insertions(+)
You’ll notice the phrase “fast-forward” in that merge. Because the commit pointed to by the branch you merged in was directly upstream of the commit you’re on, Git simply moves the pointer forward. To phrase that another way, when you try to merge one commit with a commit that can be reached by following the first commit’s history, Git simplifies things by moving the pointer forward because there is no divergent work to merge together – this is called a “fast-forward.”
Your change is now in the snapshot of the commit pointed to by the master branch, and you can deploy the fix.

`master` is fast-forwarded to `hotfix`.
Figure 3-14. master is fast-forwarded to hotfix


reference: https://git-scm.com/book/en/v2/Git-Branching-Basic-Branching-and-Merging

[Audio Memos Free]How to download your recorded audio memo

1. connect your iphone and computer to the same Wifi
2. use your computer to visit http://imesart.com/connect.php    (this address is on shown on your app when you press 'info ball')
3. Follow the instructions

Friday, February 12, 2016

arithmetic calculation by Linux ; change the number of digits of linux bc -l output

echo 'scale=2; (2.777 - 1.4744)/1' | bc 
1.30


reference: http://stackoverflow.com/questions/13963265/bc-is-ignoring-scale-option

Tuesday, February 9, 2016

Add a how-to-pronounce-your-name feature on facebook

profile -> about -> details about you(left column) -> name pronunciation (right column) --> choose whichever you like

reference:https://www.facebook.com/help/1532835720321216

Monday, February 8, 2016

linux terminal: how to unzip a zip file

unzip file.zip


reference: http://askubuntu.com/questions/86849/how-to-unzip-a-zip-file-from-the-terminal

Sunday, February 7, 2016

How to do arithmetic calculations using linux terminal

Pipe the expression to bc

echo "$a / ( $b - 34 )" | bc -l

Reference: http://stackoverflow.com/questions/15015809/floating-point-results-in-bash-integer-division

Monday, February 1, 2016

How to follow the updates of a certain page

use watchthatpage.com

Tell them what keyword you are looking for,
then specify the page you want to check (remove the https://)
Some preference settings then done.

how to split linux command into multiple lines:

ls -l \
   --reverse \
   --human-readable \
   --full-time
       
Using the backslash in this way allows us to embed newlines in our command. Note that for this trick to work, the newline must be typed immediately after the backslash. If you put a space after the backslash, the space will be ignored, not the newline. 


(copied from http://linuxcommand.org/wss0060.php)

Troubleshoot:
avoid whitespaces disturbing the backslash, as mentioned here:
http://stackoverflow.com/questions/18599711/how-can-i-split-a-bash-command-over-multiple-lines-when-using-an-if-statement

How to add soundcloud tab to your facebook fan page

1. visit this: https://apps.facebook.com/soundcloudtabi/
2. click "click here"
3. select the page you want to add tab to

That's it