This blog is about how to integrate Angular2 Frontend with Wordpress Backend. I also list all the references I followed during my setup. For example, how to link WordPress API with your WordPress website.
This blog is about how to install Common UNIX Printing System (CUPS) on AWS remote server Ubuntu 14.04. At the end of this blog, I will point out some solutions about how to solve ERR_CONNECTION_TIMED_OUT & "bad request" error.
sudo apt update sudo apt install cups
My ubuntu server's timestamp is around 15 mins later than my local time. Here is the solution to correct the wrong system time.
I got lots of @types/lodash error after "npm install". Example: "/node_modules/@types/lodash/index.d.ts (16807,33): Cannot find name 'Many'." This problem can be solved by "npm install --save @email@example.com"
Recently, we tried to build a form on a pop-up layer. But when we tested on the real phone, we found that the cursor cannot be focused inside of the input field on iPhone 6 (that's the only iPhone version we have currently). We were using some CSS code to fix this bug.
iPhone safari is not very stable once you use "position: fixed" and "input" at the same time.
Get "Unable to send e-mail. Contact the site administrator if the problem persists." error message after config the Drupal in the new Ubuntu Server
This blog is about how to render block in custom page tpl.php (Drupal 7)
Recently, I am struggling how to calculate a shipping fee based on the subtotal instead of the total (total might include tax, default shipping fee and so on). I found a sandbox module called Commerce Order Sub-total. The rule condition part works perfectly for me. However, this module only provides one rule action which returns "NUMBER" instead of "DECIMAL". In order to implement "calculate a shipping fee based on the subtotal", I need to use the result from "Commerce Order Sub-total" rule action in "Calculate a Value" action.
I was working on the address form these days. Here are the US states in JSON format which includes the full state name and the Abbreviation.
Recently, I am working on Angular 2. When I tried to send the description by POST request, I found that the '+'(plus) sign cannot be passed to my backend. Then, I read the official document here, and found the reason.
These are the characters that are not encoded:
! $ \' ( ) * + , ; A 9 - . _ ~ ? /
But they also provide a solution if you have to use these characters. I will give an example in this blog.