A top level domain is added to WordPress Network / Multi-sites via the Domain Mapping plugin. However since the domain is not in the cPanel as an addon domain, AutoSSL will not issue SSL certificate for it.

The solution is, after adding the top level domain in the Domain Mapping plugin, add it in cPanel as an alias domain for the WordPress Multi-site main domain (independent cPanel account).

Therefore AutoSSL will issue and install an SSL certificate for the alias domain. Go to “Manage AutoSSL” in WHM and “Run AutoSSL For All Users” to manually request SSL certificate for the alias domain.

It may take some minutes for the new certificate to be installed.

Problematic step: Previously I did below but it seemed to mess backend dashboard and kept auto-switching between http:// vs. https://, logging out again and again. So DON’T DO THIS? However, it might be a Chrome redirect cache issue though. I’m doing this now and will keep an eye on any potential issue.

Go to WordPress Multi-site: “My Sites” => “Network Admin” => “Sites” => Click “Edit” of the sub-site, and change the Site Address (URL) to the top level domain URL like this:

https://www.example.com/

Click “Save Changes“.

Now install the Really Simple SSL plugin, network activate it, and choose per site mode.

Go to the sub-site dashboard: “Settings” => “SSL” => Activate SSL

Done!

If you haven’t done the above problematic step, below is optional and NOT required at all, otherwise below is required.

You can force HTTPS on the top level domain in .htaccess of your WordPress network installation:

RewriteEngine On
RewriteBase /

RewriteCond %{HTTP_HOST} yourtopleveldomain\.com
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# BEGIN WordPress
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . index.php [L]

{ 0 comments }

My Personal Review: CheapSSLShop.com

by Yang Yang on February 9, 2019

This is my personal review of site CheapSSLShop.com which I personally use.

It’s one of the most affordable SSL vendors I can find on the Internet. I’ve been personally using it since 2012.

The price is good and the delivery is fast and easy.

You need some expertise to get the SSL certificates installed but with support from my host, there’s nothing to worry about for me.

Cheap SSL Shop was also able to process full refunds to me when I messaged them about my mis-order of SSL certificates I didn’t need. This is something you don’t see everyday but they do it nonetheless.

A trustworthy supplier overall, it’s highly recommended.

{ 0 comments }

Code folders may be distributed across different locations and paths but you want to manage them in one Eclipse project. It’s easy to achieve this by linking code source in your Eclipse project.

  1. Right click on project
  2. Click “Properties”
  3. Select “PHP” > “Build Path”
  4. Click “Link Source…”
  5. Click “Browse”
  6. Select the code folder to link and click “OK”

Change array initializer indentation size

https://stackoverflow.com/q/13108241/49318

Twig syntax highlighting

http://twig.dubture.com/installation/

{ 0 comments }

Don’t control

by Yang Yang on June 13, 2018

Most of us are loss-averse. We worry too much about failing and losing. We spend too much valuable resources in identifying the wrong things to do so as to make sure we don’t do them.

We vigorously look for the right thing to do.

We want control.

We believe business success is achieved by maintaining order of everything so that everything is under control. Otherwise we’d lose control and crash.

Is that really so?

After 10 years of entrepreneurship, the one thing I’m certain now is that this mindset is wrong.

To get great things done, one must be glad to lose control.

Let things run wild.

Let your business get out of control.

If everything’s under control, you are just not moving fast enough.

The most successful businesses are good at NOT controlling. Instead of making sure everything goes as planed and nothing bad happens, they focus resources on setting off the fire that grows exponentially. Yes, fires are dangerous. Fires can get out of control fairly quick. But that’s the beauty of it.

Let it finish the job. Then you just call 911. Investors will be happy to clear it up for you.

If there’s one advice for creating something big, it’s this one:

Don’t control it.

{ Comments on this entry are closed }

Misdress is one of our wedding fashion brands. We have seen an increase of general conversion rate from 0.9% to 1.3% after we have implemented these for the site:

  1. Adding a phone number in the site footer
  2. Adding a reviews module on the product pages
  3. Adding important information links on the product pages, e.g. Returns, Size Charts, Shipping Time, etc.
  4. Adding bulk discount table immediately below the add to cart button.

The key is to make you as a business a real one and make visitors believe it. Show your visitors you are serious about your offer and you are committed to delivering it.

Some more tests we will do in the next conversion rate optimization & measurement include adding customer testimonials / reviews on the homepage, and adding team photos (with faces) to our about page.

Hope this could be something useful to you guys who are still listening to me.

{ Comments on this entry are closed }

Information as Deck of Cards

by Yang Yang on August 5, 2016

Found this site when searching for answer to some git issues. It turns out to be a very nice way to teach stuff, simple and efficient:

https://githowto.com/setup

A guide like this should be as easy to write as it is easy to learn from.

The key here is to associate problem / question / issue with a straightforward solution / answer in a very simple manner. Talk is expensive. We should talk as less as possible.

Deprive of any words that your tutorial or guide can live without but leave only those that are vital to the actual solution / answer.

A full tutorial or guide should be comprised of a list or a network of standalone articles that are simple yet powerful in addressing 1 – 3 problems each. They are more like a deck of cards wired together linearly or hierarchically that the readers can search or navigate back and forth.

Each article / card should be no more than 2 minutes of reading. This helps establish learning milestones for the readers thus keep them motivated to continue because each learning session is easy to finish and apply.

{ Comments on this entry are closed }

Beyond Snowden: How Government Corrupts Business

by Sam Peters on July 9, 2016

It seems we have been living with the Snowden revelations forever. But in truth, he has only been a household name since mid-2013. There was so much news released that it quickly became information overload. There was too much information to fully process any one piece of it. The takeaways from the information dumps can be summed up in the following manner:

  • The government is spying on its own people
  • Everything you do on your cell phone is being monitored in some way
  • Private businesses are colluding with the government to erode your civil liberties

Everyone kind of suspected the government was spying on them. And they knew that cellphone data could be monitored. But they were surprised and offended that the companies with which they were doing business were actively selling them out.

The level to which the government has subverted private industry is still news. The more we learn about what the government is doing in the name of security, the less security we feel like we have. Here are two examples:

The Government Compromises Your Protection

Never mind China and Russia. One of the biggest malware threats U.S. citizens face is from the U.S. government. For years, we’ve known that various governmental agencies attend black hat conferences. We also know that they hire some of the best hackers. Now we know what they are doing with all of that black hat talent. They are making and releasing malware. While we know about some of the malware offensives against other governments, there is no reason to believe that some of that malware isn’t used against U.S. citizens.

For these reasons, the government wants your computer to be as insecure as possible. Spiking the security punch your computer is drinking is one of the ways they can lull you into believing that you are secure when you really are not.

When your system is breached, sometimes the only thing you can do is wipe all the data and make a clean start. Before you can do that, you need to be sure to have a secure backup of your data. That means you will have to have some type of data loss prevention plan for such an eventuality. A plan is necessary due to risk factors such as:

  • Rapidly evolving compliance regulations and mandates
  • Continued growth of workforce mobility
  • Employees using their own mobile devices and consumer apps for work
  • Rising frequency of advanced persistent threats (APTs) and data breach incidents

The Government Causes Businesses to Compromise Core Values

Blackberry is in the news again, and it is not good for Blackberry fans. Blackberry CEO, John Chen, speaks on the great encryption debate and where BlackBerry stands on it all. What he is saying is proving worrisome to many longtime Blackberry fans.

Blackberry still has a lot of government contracts. And Blackberry’s only stronghold is mobile security. The conflict of interest becomes apparent when one hears what every branch of the government in almost every country is saying. Right now, especially in the U.S., there is a war on strong encryption on consumer devices. The government is demanding backdoors, and wants access to consumer communications upon request.

For his part, Apple’s Tim Cook has drawn a hard line when it comes to cooperating with such requests. He has publicly stated that Apple cannot comply with such requests because they have engineered its solutions so that Apple holds no keys, and cannot comply with such requests. They are in the business of privacy.

On the other hand, Blackberry’s John Chen is promising cooperation. He is not promising a backdoor. But he is taking a pro-government stance which seems geared toward protecting existing ties with government entities. Blackberry is not necessarily doing anything wrong. But it is a strange day when a consumer company defies the government in the name of security, while the security company defies security in the name of the government.

We have seen some disturbing examples of how the government is becoming more emboldened when it comes to pressuring businesses to serve as an unofficial branch of the state. As a consumer, your best protection is to use products that have a proven track record of consumer protection and strong encryption, and keep a good set of backups just in case.

{ Comments on this entry are closed }

It’s been quite a while since my last post on Kavoir. Lots of things have changed since then except people’s desire to make even more money from the ever-exploding Internet market. It’s such a vibrant economy that new opportunities and game changers are emerging and shaping themselves everywhere everyday.

As a millionaire after 8 years of hard (but not so smart) work, my next goal is to be a billionaire.

To achieve such an ambitious goal, I have to walk out of my comfort zone. I have to transform myself to someone completely different that I’ve never dreamed of myself as.

The first thing I’m going to do is to share ANYTHING and EVERYTHING I do with my websites to my readers. I’ll keep nothing to myself. So you adventure and evolve with me in this unexplored path and witness my rise or fall.

I want to keep journals as frequently as I can recording my journey to this goal. As a starter, my first venture is to promote my dresses store Princessly.com to a monthly sales volume of $100,000 from $9,000 before end of 2017.

About $9,000 per month as of Apr. 2016

Tune in and bear with me.

{ Comments on this entry are closed }

How does Elon Musk study?

by Yang Yang on December 13, 2014

Elon Musk
Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future

Someone asked this question on Quora. I wrote an answer.

How does Elon Musk study?

People tend to overstate their feelings about somebody. They are usually not as good as we say they are nor as bad as we say they are.

Elon is smart but he’s not so much so unless he has a world-class team backing him up. And that takes money, which comes from his risk-taking business endeavors rather than his ability to study effectively, albeit it definitely adds up.

But still. It’s not about how fast / effective you study but about knowing exactly what to study against a very specific problem or well defined goal.

Elon has a definitive goal that he wants to achieve. This is what distinguishes him from others. Most study for the sake of knowledge, while he studies to solve problems.

This is the reason why it seems he’s more effectively in studying because he solves more problems than we do with the same amount of study.

80% of knowledge and techniques are cool but useless. Elon only spends time for the other 20% that are actually helpful in achieving his goals.

He does the right study in the right amount just enough at the right time just when the problem arises. Anything more is a waste.

Another reason I think why Elon studies well is he smartly modularizes his ultimate goal in smaller milestones that are easier to achieve one by one. Through consistent positive feedback, he has been able to stay motivated all the way, which is another boost to his study efficiency.

{ Comments on this entry are closed }

How to train myself to sleep less?

by Yang Yang on November 19, 2014

Someone asked a question:

I have been trying to reduce how long I sleep so that I have more waking hours available. I have read this question, and this one but it does not really give an answer.

My question is whether I can train my body to sleep less. I currently have about 6.5 to 7 hours sleep per night. If I reduce that to 6 hours every night for the next two months, and then down to 5.5 hours then onward, will my body get adjusted to the new sleep pattern?

When I was 22 and just graduated from college I had the same idea as you do now. As a workaholic who’s passionate about his work (software development) and very determined about his goal, I would keep working until late night and get up very early. The average sleep I got was about 5 hours per day, EVERYDAY, for 5 years, even on weekends. There’s always so much that I could do to make my projects better thus making more money.

For the first few years it was all good and rewarding because I was young and I had the power and energy to keep it going, even on very stressful times. But eventually I started noticing changes with regards to my body:

  1. I started going to doctors more often than my peers.
  2. My vision started to deteriorate, albeit slightly.
  3. I started losing hair.
  4. I started to forget stuff which shouldn’t be an issue before.
  5. Last but the most important, when you sleep less for very long time, eventually you’ll actually sleep less because it takes longer for you to fall asleep and you easily wake up.

So for a short answer, yes you can train your body to sleep less, but do make sure it’s not very long as to years so you can easily recover. It may not be obvious but sleeping less than you body needs DOES undermine your health. However the amount of sleep everybody needs may vary because we are designed differently in genes.

For a long answer, no, sleeping less wouldn’t let you get more things done in the long term. Everything has a price. It’s actually against productivity rather than for it. When I look back how I went through these years in retrospect, I could have not pushed myself that hard but still accomplish the same results. Productivity is about getting the most out of time rather than getting the most time. Lots of people have got plenty of time in their life, even more than they need, still they blow it. In fact, when I was in college, some of the top performing students actually sleep more than the average.

So sleep as much as you want. Time enjoyed is NOT wasted. Sleep is beautiful. Don’t waste it for some stupid things that you need done!

The Road goes ever on and on
Out from the door where it began.
Now far ahead the Road has gone,
Let others follow it who can!
Let them a journey new begin,
But I at last with weary feet
Will turn towards the lighted inn,
My evening-rest and sleep to meet.

–The Return of the King, Book VI, Chapter 6

{ Comments on this entry are closed }