How to run 2 copies of Windows 10 on your computer? (2018 September update)

This article needs more work!

It seems the latest version of Windows 10 and its update does not like multiple copies of Windows 10 running on the same computer.

When restoring a Windows 10 NEW image to C:\ and fixing boot to have only 1 Boot entry in Macrium Reflect only, saving to our Plextor M.2 disk. Computer works fine.

Attempt 3:20pm, to create Windows 10 2nd installation on D:

  1. On Windows 10, C:\ , I clone the same image to D:\ using drag and drop in Macrium Reflect 7.1. (12 mins)
  2. Using EasyBCD 2.3, I add D:\ into the boot menu.
  3. Restart my computer and heading into C:\ works fine.
  4. Restart my computer and heading into D:\ also works fine!

Conclusion: Seems like cloning the 2nd Windows needs to happen from the first copy of Windows, and the EasyBCD work should also be done right after, on that Windows, to work.

Therefore, the first DISK C:\ can be done from Macrium Reflect Rescue Disk, then fix the windows boot from Rescue Disk as well. After that, boot into the first C:\ Windows, and create the 2nd Windows installation using Steps 1-4 above.

Tip: Create a folder on C:\ with a unique name like, “I_AM_C”. So that when booting into the cloned 2nd Windows, you can differentiate the folders from File Explorer.

 

Other historical info…

Attempt 3:44pm, to restore OLD Music Windows on D:

  1. Deleting the partition from Windows > Computer Management > Disk Management > Delete Volume.
  2. Restoring cloned D:\ old image to D:\.
  3. Restarting the computer and booting into C:\ works
  4. Now running EasyBCD, we see 2nd entry is missing, so we added 2nd entry and restarted the computer.
  5. Booting into C:\ works!
  6. Now restarting and booting into D:\. The old image fails to start, so we try to boot into Windows Bootable USB.
  7. Now from Troubleshoot > Command Prompt , we check the correct drive and folders, and run, “robocopy e:\windows f:\windows /MIR” where e: is the working Windows and f: is the old unbootable Windows. (started at 3:55pm ended 4:04pm)
  8. Once done, we use F12 > Windows Boot Manager to boot into C:\ windows which works!
  9. Now running EasyBCD, we remove the 2nd Windows entry and add it again. Then double check by running msconfig > boot.
  10. Restarting the computer and loading C:\ again works!
  11. Now restarting and loading D:\ fails and gets stuck in loop during windows loading.. black screen and working lights.
  12. Force shutdown and attempt to start C:\ Windows again – works!
  13. Boot C:\ windows and repeat steps 9-10. C:\ works!
  14. Now restart computer and trying windows D:\ – and still in infinite loop, this time showing the cursor. Hitting the shutdown button on desktop hardware, starts the shutdown.
  15. Boot C:\ windows and repeat steps 9-10. C:\ works!
  16. Now restart computer and trying windows D:\ – and still in infinite loop, this time showing the cursor. Hitting the shutdown button on desktop hardware, starts the shutdown.
  17. Giving up.. Gonna use new Windows Image and re-install from there 4:20pm

 

So attempt, to clone C:\ Windows image to D:\ at 4:21pm:

  1. Head to Computer Management > Disk Management > D:\ > Delete Volume
  2. Using Macrium Reflect, I load the backup image of C:\ (create one if you haven’t), and select Restore this partition.
  3. Drag and dropped the partition into Target D:\ area on the UI.

 

 

How to use Macrium Reflect to backup and restore your partitions (and Windows installations) easily?

You can drag a partition into another partition to clone a Windows installation. Only DRAGGING works, at least in Macrium Reflect 6.3 and 7.1, that’s the case.

You can download Macrium Reflect free here.

It’s a great tool, always create a Rescue disk using an empty USB drive (4GB).

How to solve Ethernet, wifi, internet not working and DNS_PROBE_FINISHED_BAD_CONFIG, DNS_PROBE_FINISHED_NXDOMAIN showing up in Chrome?

Problem

So you’re experiencing strange internet behavior, some websites stop working or connecting.

You’ve tried restarting your Wifi, router, computer. And then it works for about 30 seconds! Before websites stop working.. You are connected to your network, but there is just no stable internet.

You’ve even tried replacing LAN cables and different ports.

Chrome shows DNS_PROBE_FINISHED_BAD_CONFIG, DNS_PROBE_FINISHED_NXDOMAIN, when visiting websites.

Solution

If so.. give this a try:

  1. Head to Properties window for your Network Adapter. (or Wifi)
  2. Open TCP/IP properties. (Internet Protocol Version 4 TCP/IPv4)
  3. Select “Use the following DNS server addresses” and fill in, 8.8.8.8 and 8.8.4.4 respectively. These are Public DNS servers from Google.

If it works, buy me a coffee:

 

Buy me a coffeeBuy me a coffee

or drop me a comment 🙂

 

How to add On Duplicate Key Insert into Query Builder in CodeIgniter 3?

This hack in CodeIgniter 3 does the following:
If a primary or unique key in the database is the same as one of the insert values then it updates if not then it inserts.

 

Add this function into mysqli_driver.php in CI\system\database\drivers\mysqli.


/**
* ON DUPLICATE UPDATE statement
*
* Generates a platform-specific on duplicate key update string from the supplied data
*
* @author Jeric T <[email protected]> based off (Chris Miller <[email protected]>)
* @since 3.0.0
* @access public
* @param string the table name
* @param array the update/insert data
* @return string
*/
function _duplicate_insert($table, $values)
{
 $updatestr = array();
 $keystr = array();
 $valstr = array();
 
 foreach($values as $key => $val)
 {
 $updatestr[] = $key." = ".$val;
 $keystr[] = $key;
 $valstr[] = $val;
 }
 
 $sql = "INSERT INTO ".$this->_escape_str($table)." (".implode(', ',$keystr).") ";
 $sql .= "VALUES (".implode(', ',$valstr).") ";
 $sql .= "ON DUPLICATE KEY UPDATE ".implode(', ',$updatestr);
 
 return $sql;
} 

 // --------------------------------------------------------------------

 

Then add this function into CI\system\database\DB_query_builder.php


/**
* On Duplicate Key Update
*
* Compiles an on duplicate key update string and runs the query
* 
* @author Jeric T <[email protected]> based off (Chris Miller <[email protected]>)
* @since 3.0.0
* @access public
* @param string the table to retrieve the results from
* @param array an associative array of update value
* @return object
*/

function on_duplicate($table = '', $set = NULL )
{
 if ( ! is_null($set))
 {
 $this->set($set);
 }

 if (count($this->qb_set) == 0)
 {
 if ($this->db_debug)
 {
 return $this->display_error('db_must_use_set');
 }
 return FALSE;
 }

 if ($table == '')
 {
 if ( ! isset($this->qb_from[0]))
 {
 if ($this->db_debug)
 {
 return $this->display_error('db_must_set_table');
 }
 return FALSE;
 }
 
 $table = $this->qb_from[0];
 }
 
 
 $sql = $this->_duplicate_insert($this->protect_identifiers($table), $this->qb_set );
 
 $this->_reset_write();
 return $this->query($sql);
}

// --------------------------------------------------------------------

 

 

Example usage:


$data = array(
     'id'    => 10,
     'title' => $title,
     'name'  => $name,
     'date'  => $date
     );

$this->db->on_duplicate('mytable', $data);

// INSERT INTO mytable (id, title, name, date)
// VALUES ({$id}, {$title}, {$name}, {$date})
// ON DUPLICATE KEY UPDATE id={$id}, title={$title}, name={$name}, date={$date};

 

How to change League of Legends language to English?

If you’re English speaking and play League of Legends in Taiwan or China, you may want to change League of Legends language to English in your Chinese game.

Change League of Legends language to English

Download the ‘A Chinese-to-English League of Legends patch’ (ACELOL).

change league of legends language to english
A Chinese-to-English League of Legends (ACELOL) patch interface

The usual problem – Language

This language-changing feature is not present in the game itself. Why? I really have no idea. But the process and procedure has been deciphered and tested by many individuals like myself. It’s a tedious process, prone to mistakes, and worst of all, you need to do it EVERY time there is a new patch – And the changes can vary.

That’s where the ACELOL patch comes in. It patches your Chinese League of Legends game into an English interface – so you can play with your Chinese friends while keeping the English interface, at a single click on a button.

How to use

To use, simply:

  1. Download the ACELOL patch.
  2. Quit the League of Legends game.
  3. Run ACELOL patch.
  4. Click ‘Patch’.

That’s it! If something goes wrong, simply click on ‘Restore’.

NOTE: When there is a new game update, DO NOT UPDATE. Read on.

Before updating your game when new game updates are released…

First, before updating your game:

  1. Run ACELOL.
  2. Click ‘Restore’.
  3. Update your League of Legends game.
  4. Repeat the steps in “How to use

 

Patch author is Taiwanese Celebrity Jeric 陳傑瑞

Just a fun fact, the creator of this patch is a celebrity from Taiwan. You can listen to his music at his youtube channel or facebook page.

 

how to change league of legends language to english

was:

How to show English language on Chinese League of Legends in Taiwan servers?