Sunday, January 31, 2016

how to create a facebook like button for your website

The prerequisite: you have to have a facebook fan page for your website.

Then follow the instruction of this:
https://developers.facebook.com/docs/plugins/like-button#configurator

how to add a network drive/folder to your local PC(windows)

1. Click on My Computer
2. On the top Panel, click Computer Tab, then click Map network drive
3. copy paste the link you have \\server....\........
4. type in username and password

海外收听华语歌曲平台

目前墙外还可以听的平台有:
1.百度音乐
2.QQ音乐
3.虾米音乐(VIP)

电台有
1.豆瓣电台
2.酷狗

Friday, January 29, 2016

How to selectively save standard err messages / skip progress bars

One way is look for the flags of the program you use, there should have a quiet version.
If it doesn't work, you could do this:

$ find . -name "my.txt" 2>&1 | grep -v "Permission denied"
The above command will suppress only "Permission denied" warning message, and show any other warning or error messages unfiltered.

reference: 
http://xmodulo.com/how-to-suppress-warning-or-error-messages-in-find-command.html

[solved]Cufflinks prematurely stops when estimating abundance

The solution:
If you are using a GTF file for input, check the longest transcript, it is probably long than the default max-bundle-length which is 3500000, which is apparently not long enough for some ENSEMBL annotations whose record reaches 4400000+. Therefore you could specify max-bundle-length as 4500000 or more and it works.

Tuesday, January 26, 2016

Sun Screen: What is SPF

 In 1974, Greiter adapted earlier calculations from Friedrich Ellinger and Rudolf Schulze and introduced the "sun protection factor" (SPF), which has become a worldwide standard for measuring the effectiveness of sunscreen.[24][28]

The SPF rating is a measure of the fraction of sunburn-producing UV rays that reach the skin. For example, "SPF 15" means that 1/15th of the burning radiation will reach the skin, assuming sunscreen is applied evenly at a thick dosage of 2 milligrams per square centimeter (mg/cm2). 

Wednesday, January 20, 2016

Charter Bill Reprogramming: Bring down from 59.99 to 39.99 again!

Updated on Dec 19th


Every lazy auto-pay guy should learn this lesson: always check your bill before you lose too much due to 39.99-to-59.99 transition!

Here's how to stop their evil extra charge by reprogramming the price after 3to5 transition:
0. Prepare one of your Charter bill
1. Call 1 (888) 438-2427  , type your account number without a trailing #
2. When the robot asks you what to do, just say "something else"
3. When the AI cannot properly categorize your request, it will connect you to a human
4. Confirm your name, address and security code(the four digit code on your bill)
5. Tell them that your price is going up and you want to extend the promotion



Reference:
1.This is useful:
http://slickdeals.net/f/5958612-charter-internet-for-39-99-current-subscribers-who-s-1-year-29-99-deal-ran-out-ymmv
2. This is funny:
https://www.reddit.com/r/StLouis/comments/28ah73/how_to_keep_my_charter_bill_from_going_up_after/

Monday, January 18, 2016

How to add a facebook tab on youtube channel

1. go to your youtube channel
2. click on the "about"
3. click add at the links panel
4. paste your facebook page address there and save

How to link youtube to facebook / add a youtube tab on facebook fan page

1. log in your personal facebook account
2. in the search box type "youtube tab" and click in
3. Click install
4. in the box choose the page you want to add tab to
5. type in your youtube account information. Your ID can be found this way:

http://troubleshoo.blogspot.com/2016/01/how-to-find-your-youtube-user-id.html

6. save the settings. That's done

how to find your youtube user ID

1. click on your profile icon on top right
2. click on the gear button to enter settings
3. click the "advanced" blue link next to your profile picture
4. Then you detailed account info is shown. The user ID should be a long string of random characters

Sunday, January 17, 2016

[Tophat] AttributeError: 'NoneType' object has no attribute 'group'

I fixed this bug by using tophat 2.0.13 instead of 2.0.8

But this bug is still a mistery

Saturday, January 16, 2016

New facebook spam: Lion v.s. snake real fight

When you see this, it is probably a trap
After you click on it, you will automatically be hijacked and "recommend" that link without asking for permission.




The toxic link:
http://dixxy.co.pl/lion13/1.php?fb_action_ids=10156358708035461&fb_action_types=og.recommends

Friday, January 15, 2016

[Solved]unable to locate suitable java runtime

Someone had an online answer which didn't work for me. i. e. download something here http://www.java.com/en/download/index.jsp

What has worked is actually:
1. Go to this page http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html
2. accept the terms for downloading 8u65. For the difference between 8u65 and 8u66, you can check here http://stackoverflow.com/questions/33260616/whats-the-difference-between-java-8u65-and-8u66

3. Download and install the 8u65 for windows x64 if it matches
4. install your software (I was installing cytoscape)

Thursday, January 14, 2016

How to share Publication / Prize / other special features on facebook instead of updating a common status

If you see someone sharing a personal status with either prizes won / scientific article published etc, you may want to know where that button is, coz you only see an "update status" button next to the blank box.

Facebook, however, provides a lot of choices for your action.

The trick: Click on your small profile picture on top right to go to your profile page
Then you will see three options: update a status, upload photo/video, or add a life event.
Let's choose the life event. And then the hidden options will show up!

Give it a try!

[Solved]Github not showing contributions / commits

I updated my default branch and then it worked.

Below is how
https://help.github.com/articles/setting-the-default-branch/

How to use two different computers to edit same GitHub repository

I solved this problem using Dropbox, although which might potentially bring version confusions if used in a wrong way, according to our lab tech.

Anyway.
For Mac computer, download and use GitX
For windows, Github has its own interface if you want to try.
      just click the plus sign and choose add repository and browse and select the folder you want to add. The Git files should be synced by Dropbox so its history should show up.


Tuesday, January 12, 2016

How to pump/fill gas to your car (this is written for Huwenbo Shi)

Step 0: Check your tank's position and park in the gas station so that your tank is facing the pumping machine

Step 1: There should be a switch around Driver's seat to open the door of the gas tank. You should park well, shut off your engine and open the tank door.

Step 2 : Make a payment. If you use credit card/debit card/Vons card, go to Step2a. If you pay by cash, go to Step 2b
Step 2a: Insert your credit card/debit card, enter your zip code
Step 2b: Go to the Staff at the station and make cash purchase of whatever amount/price you want to fill

Step 3: Remove the nozzle
Step 4: Select Grade/type of gasoline you want

Step 5: Insert the nozzle into your tank opening and press down the handle to start fueling
Step 6: Watch the price/amount increasing until you think it's enough; Or you can make use of the threshold controller on the handle to let it automatically stop when full.

Step 7: Close your tank door.
Step 8: Put back the nozzle and select receipt or no receipt
Step 9: You are good to go.

For pictures, check this:
http://www.wikihow.com/Pump-Gas

Thursday, January 7, 2016

How is Paired-end sequencing done?



more info: http://www.slideshare.net/AnneliesHaegeman/annelies-haegeman-ngs-basic-principles-and-sequencing-platforms

Notepad++ adjust font sizes and text wrap

Notepad++ is a simple code editor but its default display setting is not very user-friendly.
Here are some tips to make it better:
1. Adjust its font sizes
click on this to adjust the sizes:


2. Make the texts wrap up (i.e, don't let all the codes in the same line showing up in the same line, so that you don't need the scrolling bar)
click on this:

[Word]How to remove tracked changed/comments and generate a clean final version

0. Make sure all the changes you've made are correct and that you really want to remove all the marks
1. ctrl + A to select all
2. under review tab, click "Accept" button