rss search

next page next page close

How to increase memory limit for WordPress

Last night I got the following error: Fatal error: Allowed memory size of xxxxx bytes exhausted when customized a theme in WordPress. I uploaded a php file with the following content:

<?php
phpinfo();
?>

When I ran it, I saw memory_limit is 32M. I decided to increase it to 64M.  I tried the following:

1. Add the following line to wp-config.php file:
define(‘WP_MEMORY_LIMIT’, ’64M’);
2. Update PHP.ini to add the following line:
memory_limit = 64M ;
3. Add the following  to an .htaccess file:
php_value memory_limit 64M

When I re-run the php file, memory limit still shows 32M. I searched lunarpages hosting that hosts my web sites and found the following link: increase php.ini upload limit

I did the similar thing for memory limit and it worked.

In .htaccess file, add the following lines

suPHP_ConfigPath  /home/username/public_html

<Files php.ini>
order allow,deny
deny from all
</Files>

In php.ini file, add the following:

memory_limit = 64M

 

 

 


next page next page close

How to send an Interac e-Transfer

I needed to transfer some money from my Royal bank account to my TD account. Normally I just went to TD bank and deposited a cheque from my Royal bank account. I realized I didn’t order new cheques after my address has changed. I log in to Royal bank online banking and found out it costs close to $60 (include shipping, handling and HST) for quantity of 100. Each cheque cost me 60 cents and I need to go to bank or ATM machine to deposit it. There must be other way to do this.
I tried out Interac e-Transfer from Online Banking. Here are the instructions:

1. Register to use Interac e-Transfer service in TD online banking.
(1) Login to EasyWeb
(2) Click on “Payments & Transfers” at the top of the page
(3) Click on “Interac e-Transfer” on the left-handed side of the page.
(4) Read the information displayed on the next page
(5) Click the ‘Register Now!’ link at the bottom of the page.

2. Send Interac e-Transfer in Royal Bank online banking
(1) Login to Royal bank online banking
(2) Select “Pay Bills and Transfer Funds”;
(3) Enter the amount, the account you would like to pay from, and in the “To:” drop-down list, select “Interac e-Transfer”;
(4) You will be asked to:
a. Provide the name and email address or mobile number of the recipient;
b. Provide a security question-and-answer that only the recipient will be able to answer (You will want to agree on a question with the recipient in advance);
c. You can choose to save this recipient in your Payee list to send another e-Transfer at a later time
(5) Upon confirmation, an email or text message notification will be automatically sent to the recipient with instructions to retrieve the funds.
The maximum amount you can send through an Interac e-Transfer is based on your client card daily access limit.
There could be a service charge depending on your account.

Account Type Free Interac e-Transfers Per Month
RBC VIP Banking Unlimited Free e-Transfers
RBC Signature No Limit Banking 15
RBC No Limit Banking 10
RBC No Limit Banking for Students 10
RBC Student Banking 5

All other e-Transfers from Personal Deposit Accounts cost $1.

3. Receive Interac e-Transfer in TD Bank
(1) After half an hour, an email is received with a deposit URL.
(2) Click on the deposit URL
(3) Click on TD bank icon
(4) Login to EasyWeb
(5) Interac e-Transfer Receive money page is launched.
(6) Answer the security question and select bank account
(7) Money is deposited into the account. In a few minutes, “transfer completed” email is received in Royal bank account email.


next page next page close

Nexus 7 upgrade

Recently I bought my wife an Asus Memo Pad (ME572C-A1-BK) to replace her Nexus 7 2012. It has the same screen size and could run lollipop 5.1.1 more smoothly.

I spent lots time and tried to figure out how to transfer App data and saved games from Nexus 7 to Memo Pad 7. Here are things I tried.

1. Backup to google account is checked on Nexus 7 under settings > Backup & restore. It automatically syncs those from google account to Memo Pad when she log in to google account on Memo Pad.

2. Tried Wondershare MobileTrans. It could transfer contacts, messages, calendar, photo, music, videos and Apps. Installed applications on Nexus 7 are transferred to Memo Pad 7. However, it didn’t transfer App data and saved games.

3. My wife’s Nexus 7 isn’t rooted and only software I could find to support transfer App data and saved games in non-root is Helium. With Helium, I could back up App data and saved games but I can’t restore to Memo Pad 7. It always hang when I was doing restore on Memo Pad 7. According to Helium Wiki, Memo Pad 7 is a unsupported and problematic device so I am out of luck.

4. Since non-root isn’t working for transfer App data and saved games, I went ahead to root Nexus 7. I installed Wug’s Nexus Root Toolkit v2.0.5.
(1) Initial Setup – Full Driver Installation Guide – Automatic + Manual
(2) Backup – Backup All App’s
(3) Unlock Bootloader
(4) Root – I unchecked “Custom Recovery”.
(5) Restore the backup I did on step (2) but for some reason, I don’t see all installed applications were restored.

5. Nexus 7 is rooted. I used My Bakup PRO to backup data. You could use any other backup and restore program that requires root. i.e. Titanium Backup PRO. I like the migrate feature that My Backup Pro has. It allows you to move any and all support content directly from one Device to another over WiFi. I am able to transfer backup from Nexus 7 to Memo Pad 7. However, it actually didn’t restore because Memo Pad 7 isn’t root.

Since I already rooted Nexus 7, I install custom ROM Chroma to make Nexus 7 still usable.
1. Launch Wug’s Nexus Root Toolkit v2.0.5
2. Launch Advanced Utilities > Fastboot Flash > Recovery
4. Flash recovery to twrp-2.8.6.0-grouper.img TWRP grouper (Nexus 7 2012 WiFi) recovery
5. Download Chroma ROM, Banks Gapps, SuperSU, Franco Kernal r82 that supports F2FS and put them on the Nexus 7’s internal storage.
6. Boot to TWRP recovery, Wipe > Advanced Wipe > Repair or Change File System for /cache to F2FS.
7. In TWRP recovery, Wipe > factory reset to make it clean.
8. Flash ROM, GApps, SuperSU and Kernal
9. Reboot and enjoy.
10. Install Trimmer (fstrim) from google play store and schedule trim twice per day. TRIM is include for Android 4.3+. I installed the app and want it to run more frequently to improve performance.


next page next page close

Nexus 7 first generation running slow after installing Lollipop

My wife has first generation of Nexus 7 and is upgraded to Lollipop a month ago. It is running very slow and especially when she travelled to overseas. I searched the web and performed the following:
1. clear cache partition
(1) Turn off your device.
(2) Press and hold Power and volume down buttons simultaneously until you see a large arrow at the top of your screen.
(3) Press the Volume Down button twice to highlight Recovery mode.
(4) Press the Power button to start Recovery mode. You’ll see an image of an Android robot with a red exclamation mark and the words “No command.”
(5) While holding down the Power button, press the Volume Up button.
(6) Press the volume down button to scroll to “wipe cache partition” then press the Power button to select it.
(7) When the cache is cleared, press the Power button on “reboot system now.”
2. Turn off animation and set background process limit
(1) Settings > About tablet > tap on the “Build number” entry seven times, which will unlock “Developer Options”.
(2) Settings > Developer options > Set WINDOW ANIMATION SCALE, TRANSITION ANIMATION SCALE and ANIMATOR DURATION SCALE all to ANIMATION OFF
(3) Settings > Developer Options > Background process limit > at most 3 processes

After I rebooted Nexus 7, I still felt slow but after a while the responsiveness is acceptable so I assumed it took a while to rebuilt its cache. Therefore, I didn’t go back to Android 4.4 Kit Kat by Settings>Backup and Reset>Factory Data Reset.


next page next page close

How to copy photos from WeChat to PC

You could use “File Transfer” in WeChat to transfer images to PC. However, Nexus 7 don’t have back camera and can not scan QR code so I can’t find a way to enable and use Web WeChat in a computer to take advantage of “File Transfer” in WeChat.

Here are steps to copy photos received in WeChat from Nexus 7 to my computer.
1. Connect Nexus 7 to my computer using a USB cable
2. I could see all photos received in WeChat in the following directory: Computer\Nexus 7\Internal storage\tencent\MicroMsg\14c8af29a70804aa5463b58e499b9a95\image2
3. I drag and drop image2 directory to Pictures: C:\Users\Howard\Pictures\image2
4. It is really annoying to have images in all sub folders under images2 directory. Here is the command to run in Command Prompt to copy all photos into one directory.
for /r “C:\users\howard\pictures\image2” %i in (*.jpg) do copy “%~fi” “C:\users\howard\pictures\LA\%~nxi”


next page next page close

How to Increase the Maximum File Upload Size in WordPress

After I upgraded to WordPress 3.9.2, I noticed I have trouble to upload images or videos bigger than 2MB. Looks like “Increase Upload Max Filesize” and “PBP Increase upload limit” plugins don’t work anymore. Here is how to fix the issue.

1. Go to wp-admin directory on your WordPress
2. If you have php.ini or php5.ini file in wp-admin directory, please add two lines like the following. In this case, I want to increase maximum file upload size to 250MB.
upload_max_filesize = 250M
post_max_size = 250M
3. If you don’t see those two files in wp-admin directory, please create them and add those two lines. If you knew your host uses php5, you could just only create php5.ini.


next page next page close

Install dd-wrt firmware on Linksys E2500 V3

I bricked my old router: WRT320N after upgraded to wrong tomato firmware. I bought E2500 V3 as the replacement. Here are instructions on how to install dd-wrt firmware on it.

1. Flash the Fractal’s Trailed Initial Flash Build (mini-e2500V3.bin)
(1) Log into your computer.
(2) Disconnect all cables and wireless clients.
(3) Do a 30/30/30 reset on router using the small reset button on the bottom, not back, of the unit.
(4) Connect 1 Lan cable to pc doing the flash.
(5) Log into Linkysys Web Interface Firmware Upgrade page at 192.168.1.1 and flash the firmware E2500 V3 Trailed Initial Flash Build: ftp://ftp.basmaf.com/Fractal_Builds/E2500-V3/dd-wrt.v24-23569_NEWD-2_K2.6_mini-e2500V3.bin
(6) Wait 5 minutes to assure flash integrity.
(7) Power cycle by unplugging E2500 for 30 seconds.
(8) Plug E2500 back in and wait about 3 minutes until it finishes booting.
(9) Do a 30/30/30 reset using the small button on the bottom, not back, of the unit on the router.
(10) Wait 3 minutes and log into web interface.
(11) Check for the password page and re-login to change the password.

Note: Hard Reset (aka 30/30/30 reset):
The following procedure will clear out the NVRAM and set dd-wrt back to default values:
(1) With the unit powered on, press and hold the reset button on back of unit for 30 seconds
(2) Without releasing the reset button, unplug the unit and hold reset for another 30 seconds
(3) Plug the unit back in STILL holding the reset button a final 30 seconds (please note that this step can put Asus devices into recovery mode…see note below!)
This procedure should be done BEFORE and AFTER every firmware upgrade/downgrade.
Do not use configuration restore if you change firmware builds (different svn build numbers).

2. After the initial flash – should you want to flash to a build with more features you can use K3.x mega build
(1) Disable all firewalls and security. Disable wireless on your computer and only have the router connected to the flashing computer by the ethernet cable between the two.
(2) Hard reset (30/30/30) prior to flashing. Wait. Check for password page on re-login and change password.
(3)Log into Linkysys Web Interface Firmware Upgrade page at 192.168.1.1 and flash the firmware E2500 K3.x mega build: http://download1.dd-wrt.com/dd-wrtv2/downloads/others/eko/BrainSlayer-V24-preSP2/2014/05-23-2014-r24118/broadcom_K3X/dd-wrt.v24-24118_NEWD-2_K3.x_mega-e2500.bin
(6) Wait 5 minutes to assure flash integrity.
(7) Power cycle by unplugging E2500 for 30 seconds.
(8) Plug E2500 back in and wait about 3 minutes until it finishes booting.
(9) Do a 30/30/30 reset using the small button on the bottom, not back, of the unit on the router.
(10) Wait 3 minutes and log into web interface.
(11) Check for the password page and re-login to change the password.

Everything looks good so far. However, dd-wrt only supports 2.4GHZ for E2500 V3. If you want to be able to use the 5GHz radio, I heard you can flash Fractal’s trailed build followed by Shibby’s build of Tomato (K26RT-N).


next page next page close

How to solve not connected to internet problem for Netflix device

I uses my Philips blue-ray player to watch Netflix. Recently I encountered “Not connected to internet” message when I click on “NETFLIX” app. I connected my blue-ray player wireless with my router. Here is how I fix the issue.

1. Check Wireless connection is good by using other devices. i.e. tablet and computer.
2. Go to setting of my blue-ray player to see if there is software/firmware update. In my case, there is no new software update available for my Philips blue-ray player.
3. Go to setting of my blue-ray player and deactivate NETFLIX.
4. Turn off the blue-ray player then turn on it again.
5. Click on “NETFLIX” app, it will ask you to activate device again.
6. Login to my computer and follow up on-screen instructions on blue-ray player and activate my blue-ray player again.
7. After it is activated, NETFLIX issue is fixed.


next page

How to increase memory limit for WordPress

Last night I got the following error: Fatal error: Allowed memory size of xxxxx bytes exhausted when customized a theme in WordPress. I uploaded a php file with the following content: <?php phpinfo(); ?> When I ran it, I saw memory_limit is 32M. I decided to increase it to 64M.  I tried the following: 1. Add the following line to wp-config.php file: define(‘WP_MEMORY_LIMIT’, ’64M’); 2. Update PHP.ini to add the following line: memory_limit = 64M ; 3. Add the following  to an .htaccess file: php_value memory_limit 64M When I re-run the php file, memory...
article post

How to send an Interac e-Transfer

I needed to transfer some money from my Royal bank account to my TD account. Normally I just went to TD bank and deposited a cheque from my Royal bank account. I realized I didn’t order new cheques after my address has changed. I log in to Royal bank online banking and found out it costs close to $60 (include shipping, handling and HST) for quantity of 100. Each cheque cost me 60 cents and I need to go to bank or ATM machine to deposit it. There must...
article post

Nexus 7 upgrade

Recently I bought my wife an Asus Memo Pad (ME572C-A1-BK) to replace her Nexus 7 2012. It has the same screen size and could run lollipop 5.1.1 more smoothly. I spent lots time and tried to figure out how to transfer App data and saved games from Nexus 7 to Memo Pad 7. Here are things I tried. 1. Backup to google account is checked on Nexus 7 under settings > Backup & restore. It automatically syncs those from google account to Memo Pad when she log in to...
article post

Nexus 7 first generation running slow after installing Lollipop

My wife has first generation of Nexus 7 and is upgraded to Lollipop a month ago. It is running very slow and especially when she travelled to overseas. I searched the web and performed the following: 1. clear cache partition (1) Turn off your device. (2) Press and hold Power and volume down buttons simultaneously until you see a large arrow at the top of your screen. (3) Press the Volume Down button twice to highlight Recovery mode. (4) Press the Power button to start Recovery mode. You’ll see...
article post

How to copy photos from WeChat to PC

You could use “File Transfer” in WeChat to transfer images to PC. However, Nexus 7 don’t have back camera and can not scan QR code so I can’t find a way to enable and use Web WeChat in a computer to take advantage of “File Transfer” in WeChat. Here are steps to copy photos received in WeChat from Nexus 7 to my computer. 1. Connect Nexus 7 to my computer using a USB cable 2. I could see all photos received in WeChat in the following directory: Computer\Nexus 7\Internal...
article post

How to Increase the Maximum File Upload Size in WordPress

After I upgraded to WordPress 3.9.2, I noticed I have trouble to upload images or videos bigger than 2MB. Looks like “Increase Upload Max Filesize” and “PBP Increase upload limit” plugins don’t work anymore. Here is how to fix the issue. 1. Go to wp-admin directory on your WordPress 2. If you have php.ini or php5.ini file in wp-admin directory, please add two lines like the following. In this case, I want to increase maximum file upload size to 250MB. upload_max_filesize = 250M post_max_size = 250M 3. If you...
article post

Install dd-wrt firmware on Linksys E2500 V3

I bricked my old router: WRT320N after upgraded to wrong tomato firmware. I bought E2500 V3 as the replacement. Here are instructions on how to install dd-wrt firmware on it. 1. Flash the Fractal’s Trailed Initial Flash Build (mini-e2500V3.bin) (1) Log into your computer. (2) Disconnect all cables and wireless clients. (3) Do a 30/30/30 reset on router using the small reset button on the bottom, not back, of the unit. (4) Connect 1 Lan cable to pc doing the flash. (5) Log into Linkysys Web Interface Firmware Upgrade...
article post

How to solve not connected to internet problem for Netflix device

I uses my Philips blue-ray player to watch Netflix. Recently I encountered “Not connected to internet” message when I click on “NETFLIX” app. I connected my blue-ray player wireless with my router. Here is how I fix the issue. 1. Check Wireless connection is good by using other devices. i.e. tablet and computer. 2. Go to setting of my blue-ray player to see if there is software/firmware update. In my case, there is no new software update available for my Philips blue-ray player. 3. Go to setting of my...
article post