Monday, December 31, 2018

Illustrator layers: how to move objects to layers

Click on an object, the layers and artboards are shown on the bottom right of the window of Illustrator.

The color bars represent layers
The circles on the right represent being targeted (highlighted) or not. Once you click and select one object, its corresponding circle would become a double circle. You could also click the single circles to select an object or a group of objects.

So, to move an object to another layer, select that object, then click the corresponding layer's name in the layer panel, then choose Object -> arrange -> move to current layer

To move everything to one layer, move objects from each other layer to that layer using the method described above.

https://helpx.adobe.com/uk/illustrator/using/layers.html

Sunday, December 30, 2018

How to add an arrow symbol on Illustrator

Illustrator actually doesn't provide a good arrow by default. You can draw a rectangle and a triangle (using polygon tool: click on it, click at blank, choose number of sides) and group them (click on one object, shift+click on the other, right click to group)

illustrator change line color and

Use pen tool to draw a line. and the click on that line object, colors can be set at the Stroke panel on the right.

On the left there are two overlapped buttons controlling line color and filled color

can't log on Douban app / 豆瓣手机APP应用无法登陆 用户名密码错误

解决方法: 更新应用

illustrator: don't break words / abolish hyphenation

click on the text box -> paragraph (from top panel) -> uncheck "Hyphenate"

Saturday, December 29, 2018

Illustrator add superscript/subscript

1. type the superscript/subscript you want to add
2. highlight it, click "character" from top panel, there should be a window popping up
3. click the top right button on that pop-up window, select superscript/subscript

How to vectorize images and maintain high resolution for texts (recognize texts) on Illustrator

copy paste / drag image onto Illustrator,
then select that image object using selection tool

Object(top bar) -> Flatten Transparency -> check convert All text to outlines -> OK
Then do image trace (you either find the tools on top or Object -> Image trace), select low fidelity to let the software guess more or use high fidelity to respect the original image more.
You may do Object -> Image trace -> expand to get individual patterns

It might be needed to Rasterize the image before downstream processing
https://graphicdesign.stackexchange.com/questions/21978/why-cant-i-imagetrace-an-image-in-my-pattern

How to resize an Illustrator artboard

Document setup button on top right -> Edit Artboards

To exit, click a different tool in on the left (Tool panel)



https://smallbusiness.chron.com/resize-images-illustrator-55155.html

Monday, November 26, 2018

How to rotate only one page of a pdf file

Bring up the "Pages" pane on the left side, then select page 2, right-click and select to rotate the page.

reference:
https://answers.acrobatusers.com/How-do-I-rotate-one-page-only-of-a-20-page-document-q106715.aspx

Friday, November 16, 2018

Time machine backup stops before completion with no error message or backup records

A potential solution is to backup using the safe mode.

Here is the source (a discussion): https://discussions.apple.com/thread/8251224

Monday, November 5, 2018

How to add temperature/weather forecast stickers on Snapchat

First you have to make sure you are allowing geo-filters:

1.go back to snapchat camera, click on your profile picture on top left
2. Tap on the Gear icon on top right to enter settings
3. Under "additional services", click Manage
4. Make sure Filters are on

Then you can add stickers.
1. Take a photo (it has to be taken by Snapchat camera)
2. Tap on sticker icon on the right panel
3. tap on the star on top
4. tap the temperature logo, it will be added to your photo
5. tap on the temperature again to turn it into weather forecast chart
6. Tap again to select F or C

Tuesday, October 23, 2018

Macbook: how to initiate a backup now using Time Machine

System Preferences - > Time Machine
Then select Disk to backup
Then right click on the icon of that disk with a clock logo --> Back Up Now

Erase process has failed : cannot erase a disk using disk utility on Mac

One potential solution:
try unmounting the disk. There might be problems affecting this disk / programs currently using this disk.

Sunday, October 21, 2018

Sunday, September 16, 2018

How to make a transparent background white for an image using Powerpoint

You need to use the fill function
Double click the image, Format Picture panel -> Fill -> choose white color

Wednesday, September 5, 2018

how to sync/link/share contacts between different Google/Gmail accounts?

You can export and import contacts.

1. Go to google contacts: https://contacts.google.com/
2.Use the export to save your contacts
3. log on to your other account
4. use the import to load your saved contacts

Wednesday, August 29, 2018

how to adjust iphone text sizes

settings -> general -> accessibility ->  larger text -> move the bar at the bottom part

Tuesday, August 28, 2018

how to erase iphone content and settings

1. make sure you back up everything.
2. General -> Reset -> erase contents and settings , follow instructions

Sunday, August 26, 2018

how to remove Chinese Theme fonts in Word

go to system preference -> language and region -> remove Chinese language

Restart word.

This is a partial solution. Reference is here:
https://answers.microsoft.com/en-us/office/forum/office_2010-word/fonts-in-word-2010-default-to-asian-typography/b31bb4ac-cd7c-e011-9b4b-68b599b31bf5?db=5

Friday, August 24, 2018

how to print cell arrays without quotes on Matlab

sprintf('%s\n',string(Your_array))

how to sort excel columns by color

There are two ways:
1. Use Sort & Filter -> Custom Sort -> set sort on... font color

2. highlight the header row and Sort & Filter -> Filter -> then specify font color you want to keep

Tuesday, August 14, 2018

Saturday, August 11, 2018

How to fix a mini-fan

I got a mini-fan like this : https://www.amazon.com/dp/B07352KD2Y?aaxitk=AHuL4w0q-7Bw5FRugmht0A&pd_rd_i=B07352KD2Y&pf_rd_m=ATVPDKIKX0DER&pf_rd_p=3930100107420870094&pf_rd_s=desktop-sx-top-slot&pf_rd_t=301&pf_rd_i=mini+fan&hsa_cr_id=2787314300101&sb-ci-n=asinImage&sb-ci-v=https%3A%2F%2Fimages-na.ssl-images-amazon.com%2Fimages%2FI%2F51t34taCUIL.jpg&sb-ci-a=B07352KD2Y

But after accumulating too much dirt, it is sometimes stuck. Here's how I managed to fix it:

1. Use an old toothbrush to insert into its inner space and brush off the dust. When you do this, you'd better do it next to a running air purifier or vaccum to reduce flying dust
2. Then put the fan face-down and hit it onto the ground to make sure dust trapped in the center is coming off. Flip it and do again.

Finally the fan should be able to run again.

Friday, August 10, 2018

How to rotate/flip an image in powerpoint on Mac

1.Click on the image
2. Picture Format panel -> Arrange -> Rotate ---> select how you want to rotate

Thursday, August 9, 2018

Google Calendar only shows "busy" when you import another user / team's calendar

If an event shows "busy" while it actually has content when viewed from the creator, you have to ask the creator to do the following things:

Stop searching for answers if you are not an admin --- i.e. if you don't have a G suite account or a domain to yourself.

You just simply can't do it.
(I've searched through google and stackexchange, no solutions)

Wednesday, August 8, 2018

shortcut to switch between windows in the same app say Word, on a Mac

we all know that cmd + tab lets you switch between different programs / apps.
What if you have multiple files opened in Word?

The answer is:


cmd + ` (the key above tab)

[Word] add automatic numbering to figures using caption

If you want to do numbering for figure, click on the figure, references -> insert caption
select the right type or define a new label, write additional information in the caption box.

more guidance:
https://support.office.com/en-us/article/add-format-or-delete-captions-in-word-82fa82a4-f0f3-438f-a422-34bb5cef9c81

How to print oxps documents on a Mac


You have to convert it to pdf to print:
use this website
http://online.b1.org/online

Tuesday, August 7, 2018

how to show multiple pages tiled in Office Word on Mac

In the Word Window , click View(not the one on the very top of your screen) -> Multiple pages
Make sure you are using Print layout instead of web layout

how to let Gmail show Sent mails in Inbox/ prevent Gmail from hiding Sent mails

"You can set up a filter for messages sent from: [yourself], and check Never send it to spam. This will put all sent emails in your inbox automatically."

This answer is from https://webapps.stackexchange.com/questions/27269/get-sent-emails-copy-in-inbox

Friday, August 3, 2018

How to cancel Google Drive storage plan / membership

The old protocol no long works because Google drive has been migrated to Google One.

Therefore, what you should do is:
  1. On your computer, go to Google One.
  2. At the top, click Settings Settings and then Cancel membership.
  3. In Google Play, next to "Google One," click Manage and then Cancel subscription.
  4. Follow the steps on the screen.

how to manage Gmail storage: delete large emails

In the search box just type:
size:5242880 

It will show you all the emails that have sizes larger than 5M
Then you can selectively delete them 

Tuesday, July 17, 2018

Sorry, an error occurred. Your video edits could not be saved

When you see this message on youtube, you have to wait.

The reason may be: you requested too many editings that Youtube's server can't tolerate it (you exceeded your quota)

Try again later.

Thursday, July 12, 2018

Dominion board game strategies

Minion + 1card1action cards

Poacher + Faithful Hound

Lurker + library

Ball + Feudom

Imp + band of misfit

Governor + legionary

Minion + candlestick maker

Apothecary + treasure trove

Native Village + bridge or bridge troll

Harbinger + Vineyard

Chariot Race + Peddler

Storeroom/Minion/Warehouse/Sherpard + Tunnel

Forge is a good defense for torturer

When Delve , shanty town and Tower show up together, it's not a bad idea to buy off all the silvers

Settlers + stables/Plaza

Rebuild + trashings

Discards + menagerie

Lurker + Forge + +2 action cards

Fool's gold + storyteller

Cultist+ pathfinder

Villa + Minion : you use your money to buy villa before minion discarding

Lucky Coin + Merchant: silvers give you +1 coins

Dismantle + Ferry

Hunting Party + encampment

Lost Arts + Tormentor

Quarry + Exorcist

Lurker + prince + butcher: use lurker to gain princes which can be exchanged for provinces by Butcher

Caravan guard + drawability (+cards + actions with or without discards)

Quarry + Border village

Artificier + Shanty Town

Highway + upgrade/remake/remodel/develop

Inheritance + Herald

Vault + Grand Market

Hamlet + Wharf
Changeling + duration cards

City quarters + death cart



Bandit camp beats Knights

Treasure trove beats Pirate ship

Ambassador beats sherpard

Temple beats curse generators

HauntedWoods beats Nights

Vault beats treasure ship

Rats beats knights
Overlord + library beats knights

Thursday, July 5, 2018

How to enable scam blocking using T mobile

dial
#662#

What is a U.S. resident alien

You are a resident alien of the United States for tax purposes if you meet either the green card test or the substantial presence test for the calendar year (January 1-December 31).

Substantial presence test:
You will be considered a United States resident for tax purposes if you meet the substantial presence test for the calendar year. To meet this test, you must be physically present in the United States (U.S.) on at least:
  1. 31 days during the current year, and
  2. 183 days during the 3-year period that includes the current year and the 2 years immediately before that, counting:
    • All the days you were present in the current year, and
    • 1/3 of the days you were present in the first year before the current year, and
    • 1/6 of the days you were present in the second year before the current year.

Sunday, July 1, 2018

Quickly jump to a remote / historical / far future date/day on Google calendar

Google labs no longer works. The solution is here:
https://webapps.stackexchange.com/questions/18602/quickly-navigating-to-a-date-in-google-calendar/118366#118366

  1. Create an event on that day you want to jump to
  2. Delete that event after you are directed to that day.

Saturday, June 16, 2018

How to move an opened pdf file to a folder without creating a shortcut

When using word or adobe, we usually move the file to a folder window to save it there, by dragging the mini icon in the header of the file window. However, Adobe has changed its understanding of dragging that header icon : whenever you drag that icon to a different header, you actually create a shortcut of your pdf file in that location instead of moving the file there.

So how to move?

When you click and drag, please hold the "alt" key ("option" on Mac). You will be moving the file instead of creating a shortcut.

Wednesday, May 23, 2018

Matlab reshape arrays with internal structures

I have an array like this:

    {1×2 cell}
    {1×2 cell}
    {1×2 cell}
    {1×2 cell}
    {1×2 cell}
    {1×2 cell}
    {1×2 cell}
    {1×2 cell}
    {1×2 cell}
    {1×2 cell}

But I want to turn it into a 10X2 array.

The way to do it is
[cellfun(@(x) x{1},array,'UniformOutput',false) cellfun(@(x) x{2},array,'UniformOutput',false)];

Matlab Cellfun Arrayfun take multiple inputs

This is done by defining a function

arrayfun(@(z) plus(z, k), x)

Tuesday, May 22, 2018

[solved]Mac Finder gets stuck and can't force quit

I used activity monitor to force quit but it would always restart. The solution is to force quit only once and give it time to recover by itself.

Monday, May 21, 2018

ggplot color names list

Check out this page:

http://sape.inf.usi.ch/quick-reference/ggplot2/colour

Saturday, May 19, 2018

set up automatic modification/update time for your website

If you want to make the "last updated" info on your website automatically generated, you may use these codes:

the script tag should look like <script type="text/javascript">

also it is preferable to use the dom to insert content into the page, not document.write.

in the head:
PHP:
<script type="text/javascript">onload = function(){
    
document.getElementById("lastModified").innerHTML "Page last changed " document.lastModified.split(" ")[0];
}
</script>
later on in the body:

HTML:
<span id="lastModified"></span>
good read: http://www.quirksmode.org/js/lastmod.html
These are copied from here: https://forums.techguy.org/threads/how-can-i-get-an-automatic-last-updated-in-my-web-page.693929/

Sunday, May 13, 2018

activate Chase credit card you received

Visit this page and log in

https://www.chase.com/content/chasecom/en/credit-cards/rtbl/verify-credit-card

Saturday, May 12, 2018

[solved] Word can delete any spaces after a paragraph

This occurred to me:
My Word automatically changes page between some graphs and there would be an empty page sometimes. Even if i tried to delete the empty spaces between paragraphs or in the empty page, it didn't disappear.

Solution:
Presss 'Delete' on the right part of your keyboard to delete the trailing spaces.

Tuesday, May 8, 2018

[solved]How to get Metro Bike Pass for Student, $5 , when you already have an account

Your school or Metro may offer a discount with a promotion code. However, you may not be able to get it since you've already got a monthly pass and are not willing to start a new account.

The solution is: You can call them to update the account type. They may refund you the balance.

Wednesday, April 25, 2018

how to copy-paste history commands in R studio

1. go to History tab and find the command you want to copy
2. double-click it, it will show up in Console window
3. highlight and copy, then paste anywhere you want

[solved]Los Angeles Metro Bike Share return cannot be detected by the station --- no three beeping sounds

I returned the bike at the station and it was locked. But the machine couldn't detect it.

The solution:

Call 844-857-2453
and they will verify your information and update the trip record so that you won't be charged with extra money.


Apple macbook finder left toolbar disappeared

The problem has occurred occasionaly, usualy once per year for me. The fix:

1. Go to Finder
2. Click on the "Finder" on the top left of your screen
3. Preferences... -> Side Bar, then check the items you want to show on the left sidebar.


Sunday, April 22, 2018

How to hide/not show the deletion/insertion marks on LibreOffice

1. Highlight the sentences that you want to remove the modification/insertion/deletion marks
2. Edit -> Track Changes -> Accept.

Now you only see the corrected version.

Saturday, April 21, 2018

The specified file could not be written to. It may be in use

When you are trying to save your a pdf to a word file you may run into this error.
The solution is very simple:


Save in another folder!

How to type a newline/ line break when typing in a code box on blogger?

This applies to multiple platforms where an Enter means OK instead of linebreak


The solution:

Shift + Enter

Thursday, April 19, 2018

How to make skeleton leaves magnolia

There are only a few types of leaves that can make good leaf skeletons. Here is a very nice one:

Magnolia Grandiflora Linn



1. Prepare NaOH solution, at lease 10%
2. Put leaves into the solution and use microwave to heat it at maximum, for 5 min (the solution should turn dark green)
3. Stir it for a while, take the leaves out of the solution, and use a toothbrush to remove the brown part of the leaves at the back. (now the leaves should become soft)
4. put the leaves back into the NaOH solution and boil another 5min, then stir
5. take out the leaves, use toothbrush again to remove leaf meats as much as you can, for both sides.
6. wash the leaves in clear water
7. put the leaves in detergent solutions for a couple minutes to let them become more transparent (they should turn yellow)
8. wash off the detergent and use paper towels to remove excess water
9. put the semi-dried leaves into layers of recycle papers or a bad magazine or book you don't like, put heave items on top of the whole pile and let them sit for at least one day to completely remove water and make them flat.
10. take out the leaves. They should be dry and flat now.

https://www.amazon.com/scuster-of-texas-skeleton-magnolia/dp/B00655RR3M

Wednesday, April 18, 2018

[solved]cannot create tasks on Google Calendar

Usually, click on the top region of the Google Calendar grids and you will be asked whether to create an event or task. But sometimes you don't get the option to create tasks.

Solution:

On the left part of Google Calendar, under "my calendars", make sure "tasks" are checked

Monday, April 9, 2018

How to change a single color to another on a picture ( replace red with green ) using lunapic online

1. go to https://www.lunapic.com/
2. upload your picture
3. Adjust -> Change color tint
4. pick the you color you want to use for replacement
5. click on the region that contains your original color you want to replace


But a better way is:
Adjust -> replace color

Sunday, April 8, 2018

This type of file can harm your computer. Do you want to keep file.xml anyway? No save button

When downloading using Google Chrome you may receive this:
This type of file can harm your computer. Do you want to keep file.xml anyway?

You can click the save button to save. However, when there is not a save button, you should:


1. click "show all" button on the far right
2. click "keep"

Wednesday, April 4, 2018

What is N50

This explanation is much better than Wikipedia

http://www.molecularecologist.com/2017/03/whats-n50/

Vitamin C: naturally extracted or industrial synthetic

Synthesized through fermentation

https://www.precisionnutrition.com/all-about-vitamin-supplements

Monday, April 2, 2018

Monday, March 26, 2018

How to set multiple colors to transparency using Microsoft PowerPoint

Powerpoint has a feature to set one color to transparency
http://troubleshoo.blogspot.com/2017/03/powerpoint-2016-machow-to-set.html

To set multiple to transparency, you will need to do it sequentially:
1. set one color to transparency
2. save this image to a file
3. import back the saved image
4. go back to step 1. for another color

Sunday, March 25, 2018

How to create shortcuts/aliases/nicknames for your ssh server address

1.   cd ~/.ssh
2.   nano config
       #this is to create a file named config
3.   type your server nickname, address and username into this file and save. An example from https://scotch.io/tutorials/how-to-create-an-ssh-shortcut 
Host scotch
    HostName scotch.io
    User nick

Host example2
    HostName example.com
    User root
     

Monday, March 12, 2018

How To change user data of LibreOffice on Mac


LibreOffice -> Preferences -> LibreOffice -> User Data

Convert currency between nations with rate change considered: check currency rates in history

http://www.x-rates.com/historical/?from=USD&amount=399&date=2018-03-12

Check old transactions on Chase bank online - find transactions too old to show

Log on, click on the accound you want to view, and click statements. Only the records for statements cover all the history transactions while "transactions" panel does not.

Sunday, February 11, 2018

Youtube server rejected video upload due to too many uploads

I uploaded 100+ videos onto my Youtube Channel in one day. Then it no longer allows me to upload more by saying that the server rejects the video.
They provide the links to troubleshoot. But it's a waste of time.

Their error message is actually a generic and unrelated one due to bad programming.

The solution: wait for one more day and upload

Saturday, February 10, 2018

Priceline.com fllight tickets too expensive to rebook

I purchased tickets from Priceline to fly with Virgin Atlantic and wanted to cancel my outbound flight. However, the prices they offer for rebooking is crazily high ($2000 - $8000 from Virgin Atlantic) and they require rebooking with the same company.

The fix: the prices on their website turns out to be not that high when you book round trip. So if you need a one-way ticket, just buy a round-trip and don't show up for the return flight.

Thursday, February 1, 2018

Microsoft Office Powerpoint Import .png image error

If you drag a png file onto a Powerpoint ppt slides file, you may see an error or a red cross on the image. To solve this problem, use the alternative importing method:

Insert -> Pictures ->  Pictures from file

What to do when stuck in an old game on dominion.games

Dominion Online is a great game with multiple bugs, one of which is getting stuck in a previous game.

If you get stuck, you are never going to be able to start a new game. Even if you restart or log on from a new browser you may still have this issue.

Solution -- try all of these:
1. account -> log out
2. clear the browsing data
3. log onto the Japanese version of Dominion (日本语)

Friday, January 19, 2018

how to download fastq files from sra website

Take
SRR1051536
 as an example


1. go visit https://www.ncbi.nlm.nih.gov/sra/SRX393264
2. click on the SRR1051536 to go to the sra site
3. find the experiment ID SRX393264, copy it
4. move curser over the "Download" on the  upper panel  and click "FASTA/FASTQ"
5. paste the experiment ID, click "show runs"
6. choose "FASTQ" as the format of data you want to download, click the "download" on the bottom right.

Thursday, January 11, 2018

Friday, January 5, 2018

How to extract color identity from an image

Only this website works with .png so far:

https://html-color-codes.info/colors-from-image/

Tuesday, January 2, 2018

Macbook: Bluetooth not available

Solution:
1. Open Finder
2. Hold option and click GO -> Library
3. In the folder Library, Navigate to Preferences
4. Delete the file com.apple.Bluetoothfileexchange.plist

You may or may not have to restart your computer


Adapted from : https://www.howtoturnitoffandonagain.com/2016/03/01/how-to-fix-bluetooth-not-available-mac-os-x-problem/