Categories
Microsoft Windows Web Applications & Online Software

Office.com Office 365 Creating Shared Mailboxes by the Same Name under Different Domains

When you have multiple domains under the same Office 365 admin account, e.g. domain1.com, domain2.com, etc., you can’t directly create these emails:

  • support@domain1.com
  • support@domain2.com

Which would give this error when you try to create emails by the same name already used by another domain:

Now you can have a little circumvention to get around this by first creating the email with a unique local name and then creating an email alias to use the name you want.

Do as the following:

Done!

Categories
WordPress How To

Add SSL / HTTPS for WordPress Network sub-site as cPanel Alias Domain

Site Address (URL)

We first change the Site Address (URL) of the sub-site.

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“.

Domain Mapping (plugin)

A top-level domain is added to WordPress Network / Multi-sites via the Domain Mapping plugin. Add these top-level domains:

  • https://example.com
  • https://www.example.com (Primary)
  • https://www.example.com

However since the domain is not in the cPanel as an addon domain, AutoSSL will not issue SSL certificate for it.

cPanel Alias Domain + AutoSSL

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.

Really Simple SSL (plugin)

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!

Optional .htaccess config

If you haven’t done the above 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]

Categories
My Personal Reviews

My Personal Review: CheapSSLShop.com

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.

Categories
PHP Tips & Tutorials

How to link external code source folder in Eclipse PDT projects & Array initializer indentation size?

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/

Categories
Business and Marketing Kavoir & Whatever

Don’t control

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.

Categories
eCommerce & Shopping Online

Conversion rate increased by 44% for one of our fashion sites

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.

Categories
Business and Marketing Engineering Web Design Tips and Insights

Information as Deck of Cards

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.

Categories
Kavoir & Whatever

How does Elon Musk study?

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.

Categories
Kavoir & Whatever

How to train myself to sleep less?

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

Categories
Business and Marketing

The Rise of Web Bots

Just gave a read to this article: http://www.sitepoint.com/rise-web-bots-fall-human-traffic/

Very intriguing.

The Internet is developing just like how the other industries are. Traditional industries try to make products out of the raw materials provided by nature, while Internet is trying to reach targeted information / answers by organizing raw data everywhere. That’s exactly what Google and their bots are doing. People prefer data / information that’s more consumable (quick and easily understood) than raw ones. In this sense, companies who organize and present data / information better than the others would have the consumers’ favor; on the other hand, companies that provide only raw data will be hit more by bots (middle men in the supply chain) and less and less by humans (end consumers).

  • Raw data => structured data => raw information => targeted information
  • Iron ore => refined steel => vehicle framework => Tesla Model S

The more usable, the higher in the supply chain, the more end consumers they get.

This is probably a good starting point for business endeavors. While we can’t beat Google but there are many specific niches that we can probably do better than them. On the Internet, money is about organizing and refining data / information.

Go ahead and organize data so you get something new and easier to understand, and you will make money.