Monday, December 29, 2014

Netgear router default user name and password

Username: admin
Password: password

how to turn your PC into wifi router

Easiest way for windows 7 users:

Use this software http://download.cnet.com/My-WIFI-Router/3000-18508_4-76086273.html

Make sure to click "direct download link" to avoid downloading the downloader itself.

Sunday, December 28, 2014

creating wine shortcuts on ubuntu

http://askubuntu.com/questions/437555/creating-wine-shortcuts


  1. Open your favourite text editor (gedit, nano, etc.), create a new file with the following content and save it to your Desktop with a name having extension .desktop
    In this example, I've chosen to the name inetexplorer.desktop and saved it to my desktop.
    [Desktop Entry]
    Name=Internet Explorer
    Exec=wine "C:\Program Files\Internet Explorer\iexplore.exe"
    Icon=/path/to/iconfile
    Type=Application
    Categories=Wine;
    
    Here, replace the value for Name field with that of the target application's name. (In the example, it's Internet Exolorer.) The value of Exec would be in the format:
    wine "C:\path to the\executable file"
    
    (for GUI applications)
    wineconsole "C:\path to the\executable file"
    
    (for CLI application) like say
    wine "C:\Program Files\Internet Explorer\iexplore.exe"
    
    (enclosing the path within double quotes ".. .." is important if the path contain blank spaces.)
    Replace /path/to/iconfile (the value for Icon field) with the path of an icon file (like Icon=/home/username/Pictures/internet-explorer.png) or you can omit this line of entry.
    On the left is a shortcut with icon specified, for the one on right, not. iconField
  2. Turn on the file's execute bit on.
    Graphically you can do it by right clicking the .desktop file, and from the context menu select Properties. In the properties window, select Permission tab, look for a label Execute: and check-mark the check-box next to it so that the shortcut becomes executable.
    selecting property from right-click context menu rightClickTheFile
    setting execute permission executableProperty
    From terminal, you can do this with:
    chmod +x $USER/Desktop/inetexplorer.desktop
    
    where $USER/Desktop/inetexplorer.desktop should be the absolute path of the desktop shortcut that was created.

Wednesday, December 24, 2014

How to copy paste format from excel --- generating heat map with customer-defined scale using just excel 2013

This might sound silly but it is beneficial for those who doesn't know programming.

Example task: generate a heat map of a matrix based on the values of log2(value + 1)

1. You create a new sheet and use formula to generate the matrix of log transformed value   value' = log2(value + 1)

2. highlight/select all the elements inside this new matrix, click conditional formatting button on excel
3. copy (ctrl + c)
4. paste it onto a ppt file with the formatting preserved
5. copy and past it back to the ORIGINAL(non log transformed) data matrix by choosing to paste format only

And thus the heatmap is done, with numbers on it.

Monday, December 22, 2014

SyntaxError: Non-ASCII character '\x8d' in file /woldlab/castor/proj/programs/samtools-0.1.16/bin/samtools on line 2, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

This python error can have a lot of reasons to trigger, one of which is a silly one:
If you use python to run a non-python script, or you simply mistakenly added "python" in your code when feeding the server.  : (

Sunday, December 21, 2014

How to use linux virtual platform Wine (use windows on linux system)

1. open terminal, and use sudo apt-get install to download wine program
2. Install wine program
3. Everytime you want to run a windows program on linux, use wine + [program name]

To uninstall a program:
 use wine uninstaller


Tuesday, December 16, 2014

[Solved][Excel] Sorting doesn't work

After doing custom sorting on excel, it's always a good idea to double check, because sometimes it doesn't work.

Things to check:
1. Area to sort. The new excel 2013 will be "smart" enough to interpret your Ctrl + A as selecting the whole local area you are paying attention. So it may not include all the elements in the sheet, which will bring extra trouble

2. After sorting. It may not sort out the result you want, at least when you are using calculated values to sort and the formula are somewhat not beautiful to excel.
When sorting doesn't work on calculated values(the results of formula dependent on other columns), tidy up the formula (better use C:C rather than C1 C2 C3...) and it should work, hopefully

Sunday, December 7, 2014

有人听说过1949吗【星際效應interstellar影評】

轉載自http://movie.douban.com/review/7232516/

  其实吧, 
  这讲的就是某个国家自我救赎的故事。 
  黄沙象征着列强的鲸吞蚕食, 
  NASA地下基地就是各路地下党。 
   
  邪恶的Dr. Man就是袁世凯,虽然是个先进人才,但由白转黑,到后来库珀(Cooper)发现信错人了就后悔莫及。 
   
  库珀就是孙文,超级精神领袖,虽然出师未捷身先死,自己掉入黑洞,但他在幕后起的巨大作用是无法被人类精确感知到的。 
   
  虽然库珀死了,但他的队友安妮海瑟薇却继承他的遗志,带领着来自地球的精英在宇宙中漂洋过海来到一个可以开发的宇宙荒岛上,保留地球文明,延续人类血脉。她最大的功劳就是成功完成了大规模移民,而且保证了移民的精英化和多样性。 
   
  地球上的Murph(库珀女儿)本来是个带有神经质的图书馆管理员,但是从小被培养参与地下工作,后来她发现原来其他革命党不靠谱,无法拯救地球,于是搞出来新思路,把地球重力给革命了,改朝换代,建立新的人类帝国。建国之后还请老同志们拍各种纪录片,回忆旧社会的黑暗,歌颂领导人的聪明才智,还建立牌坊。Murph死后被印在钞票上,她的话被编写成了语录。 
   
  接下来问题就来了,因为世界上只能有一个人族,一边是移民狂人安妮海瑟薇建立的政权,一边是革命屌丝Murph建立的新世界,究竟谁才是人类的唯一合法代表?谁代表了先进生产力?宇宙社会是否允许两个人类,一边一国?究竟怎样的统战策略才能完成人类的伟大统一?虫洞两边对话是否能顺利展开? 
   
  请看续集。

Monday, November 24, 2014

Box sync login. Cant't login Caltech box troubleshoot

1. When using the company credentials, make sure to use the correct email address but not the alias.

2. You will be directed to the Caltech login window(or your company login window), this time please make sure to use the Caltech username.

Thursday, November 20, 2014

[Solved]internet explorer change default search engine on Window 7

at the bar where you type in www address, you will see a little triangle , click that
You will see a menu where the frequently visited websites are shown. At the bottom right of that menu, click the "add"
Then you will be directed to the website of ie add-ons and you can choose to install, say, google as your default engine.
Without needing to restart, you will see the modifications applied after you finish installation.

Friday, November 7, 2014

怎样屏蔽/去除搜狗输入法广告弹窗【已解决】

转自百度知道:
你可以打开搜狗拼音输入法的设置属性----词库,把开启新词提示前的对勾去掉。点应用、确定; ----外观选项,把开启皮肤推荐前面的对勾去掉,点击应用确定。

Monday, November 3, 2014

[New]How to remove the floating watermark on your MarathonFoto( Rock n Roll Half Marathon photos)

Update Nov 1:
Since their website changed the code, my previous Method 2 and Method 3 won't work.
Let me update the method now:
Method 3: Open the webpage and your photo using Google chrome, press F12, search keyword "render.mara" by Control+F  , click on the command line you found in the bottom left window, then the link will show up in the bottom right window. Right click, then select "open the link in new tab"






~~~~~~~~~~~~~~~~~~~previous methods~~~~~~~~~~~~~~~~~~~~~~~~~~
First open the page and enlarge the photo you like
Method 1:
Take 10 consecutive screen shots, and open these 10 photos using ImageJ, Take the median value of these 10 photos.

Method 2:
Save the page to your local directory, open the saved page using chrome, press F12, control+F to search for the keyword "watermark", delete that command line.

Method 3:
Save the page to your local directory, press F12, Control+F to search the keyword "render.mara". In this line you will see a link to a new page. Open that page, you will have removed the moving watermark.

Friday, October 31, 2014

About wedding invitation RSVP reply card style

http://weddings.about.com/od/invitations/a/replycardwordin.htm

Wedding RSVP card, close-up - Walter B. McKenzie/The Image Bank/Getty Images
Walter B. McKenzie/The Image Bank/Getty Images
Since a wedding is a formal event, you should include a response card with the invitation. But do you know how a response card should be worded, or RSVP etiquette? And are there other ways for guests to RSVP? 

Once upon a time, people didn’t need response cards. When they received a written invitation, they would RSVP on their own stationery, offering congratulations and whether or not they would be able to attend.

With the invention of the telephone, it became customary to include a response card for formal invitations, and to ask people to RSVP by telephone for casual invitations.
Ensure Guests Respond with Custom Wedding RSVP Cards - Shop Online >
Tons of Designs For All Occasions. Add Photos. Email or Print at Home!
DIY Invitations and Envelopes Wide variety of colors and patterns

RSVP Card Wording

The good news is, there isn’t a “correct” way of response card wording. Instead, there are styles that are more appropriate for a formal wedding, and those best suited to a casual wedding . There are also some styles best for a bride and groom with a very tight guest list , or for the person who needs to have a firm control on who is and isn’t coming to the wedding.

The most common styles of RSVP wording are:

The favor of a reply is requested 
by June 1, 2014. 
M__________________________ 
____Accepts with pleasure 
____Declines with regrets 

or 


M_____________________________ 

Will ______ Attend 

The line is meant for your guest to fill in Ms, Mr. or Mrs., and write their name(s). In the first option, they simply check off whether or not they can come. In the second option, your guest will RSVP in the affirmative by only writing their name and leaving the space in between “will” and “attend” blank. If they must decline, they will write “not.” 

Formal Response Card Wordings

Some still prefer to not include response cards; Miss Manners even calls them horrid. A compromise for a formal wedding is to use a simple small card that says “The favor of a reply is requested by June 1, 2014.” or “We look forward to hearing from you.” Most people will either write a note on their personal stationery, or use the card itself to send back a note. A few will call or email you, and that will be okay in the end. 
Create & Customize A Template from Scratch Choose From Many Designs!
如果你在加国,是单身,想认识朋友 你应该来两颗红豆,这里有50万华人


More Casual and Fun Response Card Wordings

We look forward to 
celebrating with you. 
Please reply by June 1, 2014 
M___________________________ 
____ accepts _____ regrets 

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

We have reserved two seats in your honor. 
M___________________________ 
{ } Accept with pleasure 
{ } Decline with regret 
Please respond by June 1, 2014 

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

___________________________ 

____is/are looking forward to dining, dancing, and celebrating 
____has/have to miss the fun 

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

Please take a moment to fill in the blanks: 

____________! 
(Exclamation) 

_____________ is/are ____________ to attend 
(Your name{s}) (able/unable) 

There are 
___________ people in our posse. 
(total number) 

Kindly mail by June 1, 2014 

More Funny Response Card and RSVP Wording Ideas 

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

Kindly reply before June 1, 2014 

Name(s) 

_________________ 

___Can’t wait! 
___Can’t come! 

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
You should also check out Funny RSVP Card Wording

Other things you may wish to include in the response card

  • You may have guests who will neglect to write in their names, or who write illegibly. Solve this problem by numbering your guest list, then inconspicuously writing the corresponding number on the back of each response card. Trust me, you’ll thank me for it later.
  • Even if you are doing a “fill-in-the-blank” style response card, you still may wish to leave some blank area for guests to write personal notes. The notes you’ll receive will likely be a mix of simple, humorous, and poignant, but above all, unforgettable.
  • In order to get an exact number of attendees, you may wish to include this line “____ number attending”. 
  • Some guests will assume that their guests/dates/friends are of course invited, regardless of to whom you address the card. You can avoid these assumptions by writing “___ of ___ guest(s) will attend”, and then pre-filling in the second blank with the number of people that you are inviting. Some may find this slightly distasteful, but it certainly does get the point across!
  • Include an easy way for guests to reply by pre-addressing and stamping a return envelope. You may also wish to include a phone number, or email address. Just make sure that email isn’t the only way to reply. 
  • Particularly if you are inviting a large number of families with children, you may wish to include separate lines reading: 
    Number Attending Ceremony _______ 
    Number Attending Reception ______ 
  • When I am invited to a wedding without a guest, I hate having to reply on a card grammatically written for a couple. (e.g. M__________ accept with pleasure). If this bothers you as well, be sure to include the single and plural forms, or write the response card so that it is universally appropriate. 

    For example: 
    Name(s) _____________________ 
    ___ will attend with pleasure 
    ___ must decline with regret

Thursday, October 30, 2014

[solved]There is a problem with your sound card. Spotify can't play music. Especially when you use external audio devices

On Spotify's forum the solution is:



Here is how I fixed the problem with my Dell laptop:

Go to Control Panel and navigate your way to Device Manager.

Expand Sound, Video and game controllers.

My problem was with the IDT High Definition Audio CODEC.  (Yours may be another device name.)  Even though the driver was up to date and the card works fine for other things (such as pandora), I had to unistall the device.

Right click your device and click Uninstall.  Click OK when it asks you if you are sure.

Now right click on the Sound, video and game controllers label and click 'scan for hardware changes'.  It should detect your hardware and automatically install the drivers.

If you have trouble re-installing your drivers, go to your computer manufacturers website and download the drivers and install them that way.



But what really SOLVED the problem was:
After tried what's described above, I force quit the spotify using task manager (right click the bottom bar)
And restart it.


Friday, October 17, 2014

How to abolish/disable google voice acceptance request(call screening) "to accept press 1"

1. log into google voice using a computer
2. click the gear button to enter the settings
3. click "calls" tab
4. choose the "off" under "call screening" session

Friday, October 10, 2014

How to enable Change tracking and highlight the changes in red [word 2013]

The new word's default setting will not clearly show how reviewers made changes.
Here's the solution:
1. click review tab, click the big button "track changes"
2. on the upright of that tab, click on the "simple Markup" and choose "All Markup" from the menu

Saturday, September 20, 2014

Mt Baldy hiking trail --- Skihut + Devil's backbone loop

To get to the campground: Take the 210 east and exit on Baseline Road (exit 52). Turn left at the light at the end of the ramp on to Baseline Road. Make the next right on to Padua Avenue. Drive 1.7 miles and turn right onto Mount Baldy Road (there will be a traffic light). Continue up Mount Baldy Road for seven miles to Mount Baldy Village (where there is a visitor center) and drive another four miles up the road to the campground on the right.
Campground address: 689 Mount Baldy Road, Angeles National Forest, Mount Baldy, CA 91759



To hike the loop:
1.    Park along Mount Baldy Road just past Manker Flats Campground at the bottom of Falls Road.
2.    Start hiking up the paved road toward San Antonio Falls (0.6 miles)
3.    A third of a mile past the falls, turn left up a narrow unmarked trail and hike up to the Sierra Club Ski Hut (2.6 miles)
4.    Cross Baldy Bowl and hike north up a ridge to the summit (4.5 miles)
5.    Enjoy the view from the highest summit in the San Gabriel Mountains
6.    Descend eastward down Devil’s Backbone Trail across a daunting ridge to Baldy Notch (7.8 miles)

7.    Descend the dirt road next to the operating ski lift, passing San Antonio Falls to return to the trailhead (11.3 miles)

Tuesday, September 16, 2014

Railway systems in China


Below is a histogram of the total distance (km) of the metro system of each city