Monday, November 12, 2018

iTunes backup for iPhone is stupid


1. Cannot specify the backup folder
~/Library/Application Support/MobileSync/Backup/
2. Even my iMac has available space 200G and my iPhone storage is 47.5GB of 256GB Used, it still prompts no enough space to backup
3. Cannot specify the backup category/level like which apps/data will be backed up.

Tuesday, November 6, 2018

Transfer local music to Apple music on iPhone

Transfer local music to Apple music on iPhone

1. Download free XLD and transform ape/flac files to apple lossless files (m4a)
https://tmkk.undo.jp/xld/index_e.html
2. From iTunes on Mac, click File->Add to Library, select the files to add to iTunes
3. From iTunes click the iPhone icon, select "Music" under "Settings", select the files to sync or sync entire music library.
4. From iPhone, enjoy the music from Apple music
     may "Play my songs" via Siri

Friday, October 26, 2018

炒面 菜谱

1. 锅中加入冷水,面条撇断后放入锅中,煮熟后放入菠菜或者白菜烫一下,关火。盖上盖子,水开后调小火。
2. 炒锅加油,加入葱蒜,牛肉末,炒至牛肉变色后加少许生抽,加入酱(Simply Natural Organic Tomato & Basil Pasta Sauce)翻炒几下。
3. 将煮熟的面条和菜加入炒锅,翻炒后出锅。

Thursday, October 4, 2018

Friends Season 8 03

Chandler: Hey! Babe! Aren’t you excited we’re going on our honeymoon?
Monica: That’s right. Get it out of your system while we’re alone.
get something out of your system:
informal to do something that helps you get rid of unpleasant strong feelings
I was furious, so I went for a run to get it out of my system.
Monica: Yeah, but I’m the only one related by blood.
Rachel: Ross, there is no pressure on you. Okay? I mean you can as involved as you want. (Ross nods.)
Mr. Treeger: Namaste. (Bows.)
namaste:(印度)合十礼
used for greeting someone with respect, especially when you put your hands together in a movement which is called a namaskar
Ross: Nothing. But the complaint department at the condom company got an earful. And then when I turned around she was gone.
earful:
a lot of talk from someone, especially someone who is angry or complaining
Phoebe: Hey! So how was the doctor?
Rachel: Oh, everything went great.


Friends Season 8 02

Chandler: Not the disposable cameras from the tables.
How about I take the real pictures and get them developed right now.
Monica: You kissed another woman!
Chandler: Call it even?!
Ross: Hey! How you doing?
Tag: Good! Good, long time no see.

Ross: Yeah.

Friends Season 8 01

Friends Season 8
01.
1. Joey: Ah. (To Chandler) Slow swimmers? (Chandler looks at him.)
Joey means Chandler's sperm is slow so Monica is not pregnant.
2. Phoebe: Yes, I…I am with child. (Flash) And I didn’t want to say anything because it’s your day; I didn’t want to steal your thunder.
to do what someone else was going to do before they do it, especially if this takes success or praise away from them
Sandy stole my thunder when she announced that she was pregnant two days before I'd planned to tell people about my pregnancy.
3. Rachel: Oh, thank you for doing that. I just can’t deal with this just quite yet.
completely [usually in negatives] completely:
I don’t quite understand the problem.
The drawing’s not quite right.
They’re doing a great job, but they haven’t quite finished.
“Are you ready??“Not quite.?
4. Rachel: You said that she was, I just didn’t disagree with you.
    Phoebe: Sneaky.
doing or saying things secretly, often in a dishonest or unfair way. This word shows that you dislike people and behavior like this:
That was pretty sneaky of you!
5. Oh guess what, Molly Gilbert you’ve just been bumped up to table one.
AMERICAN to move someone to a better position or job:
We were bumped up to first class when two seats became available.
6. Monica: …in this day and age how dumb do you have to be to get pregnant?
INFORMAL stupid:
She’s so dumb she can’t even figure out her answering machine.
7. Monica: Well, there’s a lot to think about. I mean, how is she, how is she going to handle this financially? How is she going to juggle work?
[T] informal to succeed in arranging your life so that you have time to involve yourself in two or more different activities or groups of people
Many parents find it hard to juggle children and a career.
8. about poor, knocked-up Phoebe.
Pregnant, SLANG: You don't want to get knocked up by some guy you hardly know.
9. I wasn't farting!
to release gas from the bowels through the bottom
10. See, for the first time I didn’t want you to be embarrassed to be seen on the dance floor with some clumsy idiot.
describes someone who often has accidents because they do not behave in a careful, controlled way
That's the third glass you've smashed this week - you're so clumsy!
11. Joey: Tell me about it, I feel like I’m holding down the fort all by myself.
hold down the fort:
to be responsible for something while the person usually responsible for it is not there
She's holding the fort while the manager's on holiday.
12. Chandler: Bravo Dennis thanks for pleasing my mother so.
used to express your pleasure when someone, especially a performer, has done something well
13. Phoebe: I’m-I’m just saying, don’t freak out until you’re a hundred percent sure.
to become or cause someone to become extremely emotional
14. Chandler: But you’re not just a soap actor. You are a soap actor with freakishly tiny feet.
very unusual or unexpected, especially in an unpleasant or strange way
Freakish weather conditions have caused massive traffic hold-ups in the area.

15. Vocabulary
bathrobe botanist hottie

16. The sentences
What size shoes do you wear?|- Eleven.
My shoes are giving me a problem.|Can I borrow your boots?
She's gonna raise it on her own.





English Tips

English Tips:
1. But the German chancellor Angela Merkel said Berlin needed to be certain that Greece was serious about spending cuts.
2. The precondition however is that Greece will accept an ambitious austerity program so that the trust of the financial  markets can be restored.
3. The British prime minister Golden Brown has said sorry to a woman he had been called on microphone describing as “bigoted” during Campaigning for General election.
4. They highlight a vast gulf between the Prime minister’s behavior and attitude in public and in private. Warm, attentive and concerned on camera, angry dismissive and disdainful when off it.
5. Coroner  concluded that Mrs. McQueen hanged himself after taking a mixture of cocaine tranquilizers and sleeping pills. 
6. The first offshore wind farm in the United States has won government approval after years of opposition from environmentalists and indigenous tribes.


the government ususally covers everyting up, including mental health problems within China.
Yes. You can blame in on corruption, the government or whatever else you would like to.
Most often than not, the widespread corruption goes unnoticed and unpunished.

Triggers for the attacks have included pent-up grivevances over lost jobs, business failures, broken relationships, and a new home that officals had ordered torn down.

China devotes hundred thousand officials to control internet's content. The real question behind this is: why China try to control the internet content so much? what do they want people 
not to know? Is it about China or the foreigner countries?

This was the sixth attack on schoolchildren in China since March -- a succession of attacks that had already prompted calls for more security at schools and worries about social malaise 
that some see underneath China's rapid economic growth.


My thoughts about the school attack
The succession of bloody assaults on schools shocks me heavily. It is belived that triggers for the attacks have included pent-up grivevances over lost jobs, business failures, broken relationships,
and a new home that officals had ordered torn down. The attacks prompted worries about social malaise that some see underneath China's rapid economic growth.









新概念英语好句

新概念英语好句:

But contrary to a popular assumption, it is far from being the only one, or even the greatest…More likely …

Science and technology have come to pervade every aspect of our lives and, as a result, society is changing at a speed which is quite unprecedented. There is a great technological explosion around us, generated by science.

As a matter of fact …

In most parts of the world, the relation between population and resource is already unfavourable and will probably become even more unfavourable in the future.

Many people in industry and services, who have practical experience of noise, regard any investigation of this question as a waste of time; they are not prepared even to admit the possibility that noise affects people. On the other hand, those who dislike noise will sometimes use most inadequate evidence to support their pleas for a quieter society. This is a pity, because noise abatement really is a good cause, and it is likely to be discredited if it gets to be associated with bad science.
One allegation often made is that noise produces mental illness.


Walking for walking’s sake may be as highly laudable and exemplary a thing as it is held to be by those who practise it.

Harvard Happiness (Positive Psychology at Harvard)

And then I had a mini epiphany half way through my sophomore year.
I was playing fast squash at that time.
And I would ask, as nonchalantly as I could of course as if,
the teacher is very outgoing, extremely charismatic,
Very often, over-promising and under-delivering.
We have a lot of rigor, a lot of substance.
So, you know, I say half in jest, but it is actually really sad.
The explicit mandate of positive psychology as well as of this class is to create a bridge between the ivory tower and the mainstreet.
This is just for your edification.
And Lila is an anthropological study of native Americans.
Whereas he points out that in our culture, we feel very uncomfortable with the absense of words, with the absense of sound or noise. We have to fill up all the gaps.
we are much more than just a billiard board being knocked around.
There are biological instincts, neurosis,
it wasn't as rigorous about its epistemology,
his own, neologism,Salutogenesis
to the conventional with the model of pathologies.
and as his mandate during his presidency,he had two aims.
they would not just study,depression, anxiety, schizophrenia or neurosis,
this class is not just about information.It is also explicitly about transformation.
You see, most of the education today is about information,
Transformation is about taking this form and changing it.
Happiness is much more contingent on out state of mind than on out status or the state of out bank account.
Now obviously, you know, easier said than done.
it's about chipping away the access stone
Lao Tzu, "In pursuit of knowledge every day something is acquired.In pursuit of wisdom, every day something is dropped."
为学日益,为道日损。 学->Information 道->Transformation
What I hope will happen is for you to come and say,rather than "Thank you for teaching me something new."You would say,"Thank you for reminding me of something that I've already known."
the ghost, the hobo...
Two and two things alone mattered in terms of determining who will be the extraordinarily successful and the rest.The first thing was the extraordinarily successful groups really believed in themselves. And the second thing that he found, was this group,they were always asking questions, They were life-long learners.
how do I determine whether or not I'm happy?
Happiness resides on a continuum. Happiness is a life-long pursuit.
Not narcissism of course.
In that way, it is eclectic.
display less egregious behavior,
And turn to the syllabus, it's going to be online.
the class is for anyone who's interested in positive psychology and anyone who wants to be happier.
Not everything will resonate with you.
What I'm arguing, what I'm gonna argue for is the shift of the pendulum.
positive psychologists started to ask what makes some individuals succeed despite unfavorable circumstances.
not optimistic in the detached pollyannish sense.
when we help other, we are helping ourselves.When we help ourselves, we help others.
What's with the geisha hand?
at the dermatologist's, and it looks kinda funky,
So how long have you had the herpes?

HH3:
most men lead lives of quiet desperation.
people are comfortably numb.
focus more on the strength
how do we live our lives? Running away from painful experience or actively seeking pleasure? running away from unhappiness
what do you want to pursue
more excitement,more enjoyment, more passion

the strength to admit weakness.
questions create reality.
the questions we ask very often determine the quest that we will pursue, the path that we will take, the life that we will lead,
Marva Collins

Monday, October 1, 2018

A new earth chapter 10

vocabulary:

1. postulate
2. multiplicity
   Some scientists also posulate that this movement from unity to multiplicity will eventually become reversed.
3. microcosm/macrocosm
4. usurp
5. voracious
   has a voracious appetite for more.
6. decrepit
7. revere
8. connotation
9. sentient
10. modality
11. focal
12. degenerative


Sunday, September 30, 2018

A new earth chapter 9

vocabulary:

1. frantic
2. stagnation
    Some are lost in frantic doing; others are lost in stagnation
3. cunning
4. condense
5. negation
6. mediocrity
7. cessation
8. karmic
9.

Saturday, September 29, 2018

A new earth chapter 8

vocabulary:

1. Sufi
2. despondency
3. ornate
  an ornate box carved in jade.
4. laconic
5. impermanence
6. vantage
7. eon
8. caricature
9. folly
10. sporadically
11. mesmerize
12. behold
13. ananda
14. unobtrusive
15. satori
16. defiant
17. vigilant
18. falsify
19. impediment
20. enthralled
21. substratum
22. prospectus
23. smorgasbord
24. celestial
    celestial body
25. Andromeda Galaxy

Wednesday, September 26, 2018

A new earth chapter 7

Vocabulary:

1. avail
   it would ultimately prove to be of no avail, would not save them from further unphaainess and selfcreated suffering
2. dislodge
3. florist
4. succulent
5. scarcity
6. insatiable
7. dossier
8. tapestry
9. cosmos
   The cosmos is not chaotic.
10. scolding
11. remorsefully
    A year later, the mother remorsefully confessed to her parents that ...
12. shrivel
    her face shriveled like an old apple.
13. circumstantial
14. benign
15. emaciated
    His body was emaciated.
16. neuron
17. grandiose
18. retaliate
    instead of immediately retaliating or defending yourself - do nothing.
19. diametrically
20. parable
21. Andromeda Galaxy
22. reverence
23. fluctuating

A new earth chapter 6

vocabulary:

1. transmute
2. emanate
   Every human being emantes an energy field ...
3. subliminal
4. maniac
5. murky
6. twitch
7. obscenity
    shouting obscenities
8. pandemonium
9. sullen
    The child becomes sullen ...
10. tantrum
11. thwarted
   Thwarted wanting can easily trigger the pain-body ...
12. ambivalent
13. relinquish

Sunday, September 23, 2018

Bell internet disadvantages compared to Fido

Bell issues:
1. Need specialist for the installation
    For Fido, just plug in
2. The network is not stable, disconnects sometimes
    Fido has no such issue, it won't disconnect during the game
3. The network signal is not strong enough, weak signal in the basement
    Fido has a better signal, no problem in the basement
4. To cancel, you can only return by purolator, cannot drop off to the store, cannot use Canada Post
    Fido has the option to drop off to the store
5. The internet speed test cannot achieve the aim, it's much better just after the installation and before the cancellation :)

Saturday, September 22, 2018

A new earth chapter 5

vocabulary:

1. volition
2. enact/reenact
3. karma
4. furrowed brow
5. phony
6. predicament
    Their contribution is to show us a reflection of the human predicament so that we can see it more clearly.
7. akin
    appear to be akin to human emotions
8. primordial
9. grudge
    bearing a grudge
10. emanate
     deeper emotions that emanate from your natural statue of connectedness with Being.
11. bleakness
12. hangover
      The pleasure of a wild party turns into bleakness and a hangover the next morning.
13. metaphorically
14. pristine
15. pillage
16. adolescence
17. deplete
18. susceptible
      much more susceptible to illness
19. inflict
     to both inflict and suffer pain
20. seethe
     to sense that seething ball of unhappy emotion in them just underneath the surface ...
21. tabloid
22. heresy
23. demonic
      The sacred feminine was declared demonic ...
24. decimate
25.

Tuesday, September 18, 2018

A new earth chapter 4

vocabulary:

1. blatantly
    Some roles are subtle; others are blatantly obvious...
2. ambivalent
    ... has an ambivalent ego that both wants and fears attention from others.
3. inferiority
    ... the unconscious fear of inferiority.
4. villain
5. elicit
6. perpetrate
    Some egos perpetrate crimes in their search for fame.
7. divest
8. thwart
    ... its thwarted wanting ....
9. caste
10. macho
11. spontaneity
12. conformist
13. hitherto
14. erode
15. unassailable
16. predominant
17. edifice
18. grandiose
   ... Their grandiose and inflated self-image can sometimes fool others, but usually not for long.
19. heretic
20. sabotage
   People unknowing sabotage their own work ...
21. aggrandizement
22. cynical
23. atrocity
24. vortex
25. schizophrenic


Monday, September 17, 2018

A new earth chapter three

vocabulary:

1. allegiance
2. ephemeral
3. indignant
4. aggrieved
5. grievance
6. perpetuate
7. bourgeoisie
8. emanate
9. atman
10. endemic
11. pervasive
12. divinity
13. eradicate
14. staggering
15. homeopathy
16. shrill
17. octave
18. theatrical
19. anata
20. thwart
21. sutra
22. impermanence
23. bane
24. grotesque

Sunday, September 16, 2018

A new earth chapter 2

vocabulary:

1. unfathomable
2. primordial
    "I" embodies the primordial error, ...
3. monstrous
4. precariously
    They are ultimately no more than thoughts held together precariously by the fact that ...
5. annihilated
6. compulsion
7. endow
8. despise
8.1 callous
9. renunciation
    Renunciation of possessions, however, will not automatically free you of the ego.
10. insatiable
11. bulimia
12. grim
13. rapacious
14. anorexia
15. conglomeration

Wednesday, September 12, 2018

Maven project error in the Eclipse

When using Eclipse to import or create a new Maven project, got the below error:
Description Resource Path Location Type
Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:3.1 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-compiler-plugin:pom:3.1 from/to central (https://repo.maven.apache.org/maven2): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target pom.xml /dbutil line 1 Maven Configuration Problem

Since it mentions "Failure to transfer ... maven-compiler-plugin:3.1", the first thing is to check
.m2\repository\org\apache\maven\plugins\maven-compiler-plugin\3.1
And the jar file is not there.

Solution:
From command line, run "mvn install -U", and verify the jar is there.
Then from Eclipse, delete the project (keep the contents), and then import it as Maven project. Now the error is gone
May need run from Eclipse, right click the project, Maven->Update Project

Sunday, September 9, 2018

A new earth chapter 1

vocabulary:

1. evocation
2. herald
    Prior to this momentous event that heralds an evolutionary transformation in the life of plants ...
3. Mahakasyapa
4. molecular
5. divine
6. perpetuate
    ... as well as the recognition of the collectively conditioned mental processes that perpetuate the unawakened state.
7. imposter
8. maya
    They call it maya, the veil of delusion
9. dukkha
10. taint
11. inflicted
      and widespread violence inflicted for religious and ideological reasons.
12. ideological
13. combustion
14. perish
      millions of men perished to gain a few miles of mud
15. maim
16. disfigure
17. genocide
18. holocaust
19. khmer
      Khmer Rouge regime in Cambodia
20. Rouge
21. regime
22. abate
23. pathological
      a pathological propensity to commit murder ...
24. lucid
25. commendable
      Trying to become a good or better human being sounds like a commendable and high-minded thing to do, yet ...
26. mar
27. Gautama Siddhartha
28. ridicule
29. revile
      Some of the teachers were ridiculed, reviled, or killed ...
30. Gnosticism
31. Sufism
32. Hasidism
32. Kabbala
33. Judaism
34. Advaita Vedanta
35. Dzogchen
      Zen and Dzogchen in Buddhism.
36. iconoclastic
      Most of these schools were iconoclastic.
37. esoteric
38. synagogue
39. influx
40. cult
41. ossified
42. impervious
      The most rigid structures, the most impervious to change, will collapse first.
43. insurmountable
44. imperative
45. stark
46. vast
47. derive
48. prophecy
49. synchronistic
50. upheaval

A new earth Preface

vocabulary:

1. subjugation
    The subjugation of one race by another ...
2. patriarchy
3. metamorphosis
4. prevalent
5. present
6. succumb
    If you stay present and do not succumb to fear ...
7. demise

Wednesday, August 29, 2018

HTTPS SSL

HTTPS
SSL is replacing by TLS, the browser trusts some root CA.
For Java, need add CA to trust store.
Could put .cer into .jks file (use key store explorer for conveience), and run Java application by specify -Djavax.net.ssl.trustStore=C:/Users/Redirection/pengp2/Downloads/cert/my_truststore.jks

If the cert is not provided or wrong, could throw the below exception:
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Friday, July 13, 2018

jboss_official_doc_note

https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/6.4/html/administration_and_configuration_guide/sect-start_and_stop_jboss_eap_6
1.  Start JBoss as a Standalone Server
EAP_HOME\bin\standalone.bat
    To list all available parameters for the start-up scripts, use the -h parameter:
EAP-6.4.0\bin>standalone.bat -h
    Run multiple instances of JBoss EAP standalone servers on a single machine:
Create a copy of the EAP_HOME/standalone/ directory directly under EAP_HOME
Start each JBoss EAP standalone instance by specifying node name, IP, port offset...
If you would like to manage two nodes at once or two nodes that have the same configuration,
you are recommended to run them in a managed domain instead of running a standalone server.
Using an Alternate Configuration file for a Standalone Server in Microsoft Windows Server
C:\EAP_HOME\bin> standalone.bat --server-config=standalone-alternate.xml
2.  Stop JBoss
Stop an instance which was started interactively from a command prompt.
Press Ctrl-C in the terminal where JBoss EAP 6 is running.
3.  Configuration files
EAP_HOME/bin/standalone.sh -c standalone-full-ha.xml
Backup:
EAP_HOME/standalone/configuration/
Descriptor-based Property Replacement:
Java EE descriptor replacement is disabled by default. When enabled, descriptors can be replaced
in the following configuration files: ejb-jar.xml and persistence.xml.
<subsystem xmlns="urn:jboss:domain:ee:1.2">
  <spec-descriptor-property-replacement>
true
  </spec-descriptor-property-replacement>
  <jboss-descriptor-property-replacement>
true
  </jboss-descriptor-property-replacement>
</subsystem>