Not Equal C && !=C && 不等于西
RSS icon Email icon Home icon
  • Enable App Twin for HUAWEI Mate 8 “Unsupported” Apps

    Posted on November 2nd, 2017 Sean 2 comments

    Since HUAWEI launched EMUI 5.0, it came with a feature called App Twin. App Twin allows user to run multiple instances simultaneously for one app, so user can set up multiple accounts for each instance, e.g. log-in multiple accounts for Facebook at same time. There are some applications that do this same function on the Play Store such “App Cloner” and “Parallel Space”, though I prefer using HUAWEI native feature to do the job.
    Unfortunately App Twin only works on very few apps, like Whatsapp/Facebook or QQ/Wechat. But according to xda-developers forum, it can actually work with pretty much any application on your device even you don’t have root access. Here’s how it’s done (for device without root access)


    1. Enable “Developer Options” and “USB Debugging” in “Setting” menu
    2. Download Google latest android platform tool “adb”
    3. Install HUAWEI latest driver “HiSuite”
    4. A usb cable connect the device to PC
    5. Find the “Package Name” for the apps you wish to enable App Twin, and the app has to be installed already (will explain later)

    After installed HiSuite to your PC, connect the device and wait until the USB driver installed properly. Unzip android platform tool to your local folder, open up a command prompt, go to the unzipped folder, run adb shell as follow

    Once you’re in an ADB shell, enter the following command to get current App Twin list:

    I got output “null” because I don’t have any app using App Twin right now, so let’s add some apps to the App Twin list. The syntax for adding app to list will be like below:

    To find the package name for your app, simply go to Google Play Store, search for the app you want, and look at the URL, you will find it like below:

    Now let’s run adb command to put my existing app “Gmail” and “eBay” to the list:

    When you want to add more apps to the list, remember be sure to APPEND the new app package name to the current list, and put the new list again, otherwise the existing apps with App Twin will be deleted from the list. For example, If I wish to add “Paypal” to my current list, I have to run:


  • 1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 1.00 out of 5)
  • Install Old HP Printer Driver on Windows 7

    Posted on July 3rd, 2015 Sean Add comments

    For many old laser printers specially HPs, there is no dedicated driver for Windows 7. From HP website, I only could find the universal driver which I don’t like. Actually there are alternate print drivers we can use from Windows update, here is how:

    1. Go to “Control Panel”, choose “Devices and Printers”, and click “Add Printer”
    2. Choose “Add a local printer”
    3. Under “Use an existing port” drop down list, select the old printer (I am using a networking shared printer HP LaserJet 1200)
    4. In the page “Install the printer driver”, if you couldn’t find the driver for the old printer, click “Windows Update”
    5. Then you may need to wait for Windows to download the drivers
    6. After the update is done, find the driver for the old print
    7. Follow the steps to finish the wizard
  • 1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
  • Warning “/dev/xxxx should be checked for errors” for Ubunutu

    Posted on June 21st, 2015 Sean Add comments

    Recently there is a warning message

    shown on the screen, every time I login to the ubuntu 14.04 via putty.

    It seems to be a similar bug with this

    but after the command was done, the file was recreated when I logged in again.

    then reboot, but still no fix.

    If you really want to get rid of this message, instead of removing the file “fsck-at-reboot” in the first solution, just remove all content inside the file, then the message will be gone.

  • 1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
  • Disable Browser Cache for Specific Page in ASP.NET MVC 3

    Posted on May 21st, 2015 Sean Add comments

    Generally when you click the “Back” or “Forward” button on the browser, the page won’t refresh unless you tell the browser not saving the cache for it. To implement “Disable Browser Cache” for specific page in ASP.NET MVC 3, just simply use the “OutputCacheAttribute” from MVC 3 framework:

  • 1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
  • Fix HP LaserJet 1018/1020 not printing issue in Ubuntu 14.04

    Posted on April 16th, 2015 Sean 4 comments

         After I upgraded Ubuntu to 14.04 LTS, the HP LaserJet 1020 printer stopped working mysteriously, whatever print job sent to the print, it returns “job completed”, but has nothing to print out. I noticed the HPLIP driver has been used for the printer by default, but it didn’t work either even I changed the driver to foo2zjs via CUPS web interface.
         After googled quite a while, I finally figured out that the foo2zjs package included in Ubuntu has some issues, as well as the HPLIP package. I decided to remove both of them out, and use the correct foo2zjs driver. See below for how:

    1. Remove HPLIP package (if you had installed it manually, refer here for uninstall)
    2. Get and install foo2zjs package from official site
    3. Get HP LaserJet 1020 firmware files, and copy the files to system firmware folder. (use “1018” instead of “1020” for LaserJet 1018 printer)
    4. Installing “foomatic-filters” may remove some CUPS packages, you can reinstall the CUPS or do it when you have problem in step 6
    5. Reboot PC and printer
    6. Access the CUPS web interface “http://localhost:631” to add HP printer by using foo2zjs drivers
  • 1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)