Saturday, October 22, 2016
Thursday, October 20, 2016
Matlab cell2mat: empty matrix 0-by-152
When I read a matrix using textscan and then tried converting it to a matrix, I got an empty matrix.
No solutions provided by Google when I searched.
My solution:
The input file had an extra empty line. Remove that line/linebreak char, and then repeat the importing process.
Now it works.
No solutions provided by Google when I searched.
My solution:
The input file had an extra empty line. Remove that line/linebreak char, and then repeat the importing process.
Now it works.
Wednesday, October 19, 2016
[solved] linux join : “File 2 not in sorted order”
Solution:
using
Note:
Don't use -k 1d,1 for sorting strings such as gene names.
Always join using ENSEMBL IDs'
Cause:
sort -k 1d,1 and join probably have different default orders especially when dealing with strings containing special charaters, like '-'
using
LANG=en_EN sort -k 1,1 <myfile> ...
then LANG=en_EN join ...
Note:
Don't use -k 1d,1 for sorting strings such as gene names.
Always join using ENSEMBL IDs'
Cause:
sort -k 1d,1 and join probably have different default orders especially when dealing with strings containing special charaters, like '-'
Monday, October 17, 2016
how to freeze the top row and top column in Excel
click to select the Cell B2
view -> freeze panes -> freeze panes
view -> freeze panes -> freeze panes
Friday, October 14, 2016
[solved]Credit card pending activity: Circle K 09453. What is that?
It means the Mobil Gas Station.
Circle K is just the convenience store at the station.
the five digit number is the ID of that location.
Thursday, October 13, 2016
What is Aleppo?
In the beginning of our USC mixed reality tour, the speaker asked everyone what is Aleppo?
The fact is even if you have google, you probably still can't know what is Aleppo because you don't even know how it is spelled.
If Google associated the key word "Aleppo" with "Presidential Debate" and "Middle East", things would be easier to be figured out.
https://www.google.com/search?q=what+is+elipo+president+debate&oq=what+is+elipo+president+debate&aqs=chrome..69i57.4911j0j7&sourceid=chrome&ie=UTF-8#q=aleppo
Other abbreviatiosn:
EPA: US Environmental Protection Agency
The fact is even if you have google, you probably still can't know what is Aleppo because you don't even know how it is spelled.
If Google associated the key word "Aleppo" with "Presidential Debate" and "Middle East", things would be easier to be figured out.
https://www.google.com/search?q=what+is+elipo+president+debate&oq=what+is+elipo+president+debate&aqs=chrome..69i57.4911j0j7&sourceid=chrome&ie=UTF-8#q=aleppo
Other abbreviatiosn:
EPA: US Environmental Protection Agency
Tuesday, October 11, 2016
how to calculate cosine correlation coefficient using Excel
=power(SUMPRODUCT(A1:A3,B1:B3),2)/SUMSQ(A1:A3)/SUMSQ(B1:B3)
reference: http://stackoverflow.com/questions/22715120/excel-scalar-product-of-two-ranges
How to apply for Caltech Low-Emission Vehicle parking permit discount
The discount is 20% off
1. check whether your vehicle is qualified here
2. print out this form
3. complete the form and submit to the parking office on Wilson
Note: If you haven't got a permit yet, you may apply for one
1. check whether your vehicle is qualified here
2. print out this form
3. complete the form and submit to the parking office on Wilson
Note: If you haven't got a permit yet, you may apply for one
Matlab Clustergram Image increase resolution
I read multiple official and non-official solutions but none worked as mine:
1. plug in your computer to a second screen which is much bigger
2. drag to enlarge the plot area
3. if the dendrogram tree partially disappears, the solution is: edit -> axis property, to open the property window, and then close it.
4. save to bmp file. I got a bmp image of 50MB
1. plug in your computer to a second screen which is much bigger
2. drag to enlarge the plot area
3. if the dendrogram tree partially disappears, the solution is: edit -> axis property, to open the property window, and then close it.
4. save to bmp file. I got a bmp image of 50MB
Monday, October 10, 2016
[something not about debugging] Rediscovering Justin Bois
Today I discovered something new from my old memory.
One of the most popular lecturers at Caltech, Justin Bois, is actually not someone new to me, although I thought taking his programming bootcamp this summer was our first meet.
The fact is, I've already seen him 5 years before , in Prof. Quinlan's physical biochem class at UCLA. She asked him to cover one lecture. He impressed me with his extremely clear Baritone voice. He broke down the concepts and equations to something very easy to understand, so easy that I felt it was a little bit boring to listen to him to repeat.
Now fastfoward to the year of 2016, I just realized that Caltech is really a magnetic bar, with different people around the world spinning around it, and finally some of them may meet again here.
So whenever I come across some one familiar or unfamiliar, I should be prepared to know the fact that actually we've met before.
One of the most popular lecturers at Caltech, Justin Bois, is actually not someone new to me, although I thought taking his programming bootcamp this summer was our first meet.
The fact is, I've already seen him 5 years before , in Prof. Quinlan's physical biochem class at UCLA. She asked him to cover one lecture. He impressed me with his extremely clear Baritone voice. He broke down the concepts and equations to something very easy to understand, so easy that I felt it was a little bit boring to listen to him to repeat.
Now fastfoward to the year of 2016, I just realized that Caltech is really a magnetic bar, with different people around the world spinning around it, and finally some of them may meet again here.
So whenever I come across some one familiar or unfamiliar, I should be prepared to know the fact that actually we've met before.
Sunday, October 9, 2016
new phishing email : We could not deliver your parcel, #00693494
from: arnold.jensen@ventagroup.ru
Dear Customer,
Courier was unable to deliver the parcel to you.
Delivery Label is attached to this email.
Thank you for choosing FedEx,
Arnold Jensen,
Sr. Support Manager.
Dear Customer,
Courier was unable to deliver the parcel to you.
Delivery Label is attached to this email.
Thank you for choosing FedEx,
Arnold Jensen,
Sr. Support Manager.
Saturday, October 8, 2016
New Phishing email: Problem with parcel shipping, ID:0000292901
jeffery.peterson@sristamford.com
Dear Customer,
We could not deliver your item.
Delivery Label is attached to this email.
Yours sincerely,
Jeffery Peterson,
Station Manager.
We could not deliver your item.
Delivery Label is attached to this email.
Yours sincerely,
Jeffery Peterson,
Station Manager.
Thursday, October 6, 2016
mm10 v.s. mm9 chromosome sizes
some chromosomes became larger while others smaller.
Note that Y chromosome got significantly larger in mm10 annotation
Note that Y chromosome got significantly larger in mm10 annotation
Tuesday, October 4, 2016
wget: 403 forbidden
try:
1.
use https:// instead of http://
2.
specify username and password if the website needs them
1.
use https:// instead of http://
2.
specify username and password if the website needs them
Subscribe to:
Posts (Atom)