Monday, May 16, 2016

total reset N times today full reset

morning start with PC freeze from power up
freeze or auto reboot few times
readyboot being set to 512MB
as error show max at 265....
run reset option to restart from DVD
after put repair DVD
go for reset
and
dun keep file
and
clean reset
said to take hours
reset at 10:45
using teclast Android mode to write this
via bluetooth keyboard
and bluetooth mouse
reset 50% at 1054
100% at 1111
key infor at 1122
all same except send error to microsoft
reboot
i own it

After at 1145
everything is setup
with chrome
disk clean up but left 11Gb lot of hidden space used up
readyreboot 512 Mb
VIA audio (win 10)

So I going to try stage 2 stop windows 10 update
http://www.howtogeek.com/223864/how-to-uninstall-and-block-updates-and-drivers-on-windows-10/

http://cdn4.howtogeek.com/wp-content/uploads/2015/07/Disable-Automatic-Updates-on-Windows-10.zip

managed to remove one udpate
and left one


run show update
https://support.microsoft.com/en-us/kb/3073930?utm_source=twitter
http://download.microsoft.com/download/F/2/2/F22D5FDB-59CD-4275-8C95-1BE17BF70B21/wushowhide.diagcab




reboot to update setting
then do system backup


Re: PC reboot again Change the power option, uncheck Fast Startup.


On 4 March 2016 at 10:04, Tin KOH <tinkohsn@gmail.com> wrote:
action done
Change the power option, uncheck Fast Startup.

background
first there is a sudden reboot
as I write this email
screen dazzle and freeze

remove USB CDROM and fan

force restarted

can only do
sfc /scannow


C:\WINDOWS\system32>sfc /scannow

Beginning system scan.  This process will take some time.

Beginning verification phase of system scan.
Verification 100% complete.

Windows Resource Protection did not find any integrity violations.





one of devices drivers caused the problem



--
Tin KOH S. N.
+65       9663 9353
+86 136 0001 9353 

PC reboot again Change the power option, uncheck Fast Startup.

action done
Change the power option, uncheck Fast Startup.

background
first there is a sudden reboot
as I write this email
screen dazzle and freeze

remove USB CDROM and fan

force restarted

can only do
sfc /scannow


C:\WINDOWS\system32>sfc /scannow

Beginning system scan.  This process will take some time.

Beginning verification phase of system scan.
Verification 100% complete.

Windows Resource Protection did not find any integrity violations.





one of devices drivers caused the problem

backup windows 10 via windows 7 system backup

even this is not updated yet


but now I can only find backup windows 10 via windows 7 system backup

and only way is to backup to external USB drive
and the transfer to DVD



fdisk whole disk and really fresh install win 10

fdisk whole disk to only one partition

remove the OEM partition (win restore)

Then fdisk to two primary partitions

the first system partition will again appear automatically

now put first partition to be 59 Gb
fresh install win 7 pro 64 bit

continue install second partition x86 win 7

reason to use win 7 EFI boot menu

go back first partition
just install NIC drivers CD\LAN (Realtek auto detected)
also need to msconfig to boot from 64bit partition

Install Chrome
Install IE 11
(reboot and auto reboot again)

This time NO auto WINupdate


Yes this installation is faster and cleaner


so although there is a auto reboot once
(maybe next time dun need to update to IE 11)
or dun need to install Chrome

as dun the last page prompt
to close all windows program
to keep or not keep personal data
(I choose keep nothing)

This clean installation look ok

The intel driver also upgraded
and screen change to 1024

BTW after reboot
VIA need manually upgrade to VIA (win10) audio driver
but i decide to roll back and monitor

nothing I can do for the Realtek Gb NIC

So conclusion
free install from window 7 pro
only run network driver NIC from ECS motherboard CD
(next time download and put together with win7 iso DVD)

so bypass Windows 7 
display, VIA audio driver
(since last year write to VIA - their driver being updated
hope this will solve the problem 
although I am not using new windows 10 driver
but maybe I will do that next week)

and go for windows 10 drivers

or Simply there is a hidden time bomb
within the previous win 7 win 10 installation
that caused all the auto reboot sudden dealth

Anyway, have to monitor the situation again




Finally installation Genuine Windows 7 license key

After purchased Windows 7 license key from Dexnology on Qoo10

First is received a gmail and then a whatsapp from support
but was driving so ignore

When came back home at noon
download their OS image file
(2.5 G ISO and only within 5 min - very fast services)
I download both 64 and x86

I burn into a DVD setup disk

Initially want to just run winsetup but clean boot DVD
and format the HDD and  install their image

using their first email and key in the installation key

run the ECS motherboard CD to get NIC installed

panic once as windows 7 has prompt 3 days to get activated 
and network was just connected

whatsapp and email them
there is a delay but lucky there is reply after i nap a while

run the activation with second email from them

and that is so simple as even I can copy and paste key over

-------------

I boot from external WDC HDD with pre-installed windows 7
( this image is using HP OEM windows 7 


DVD)
this installation license has been expired during CNY

I take very long time to activate windows
(need double reboot and long wait as it is ext HDD and 
Microsoft take longer verification as why there is 
a license update from same PC (different HDD)
but luckily I managed to activate another HDD onto same PC)

Although also prove that I dun need their image
and so this license key I can use for any other windows 7 image
as long it is the same PC

Too bad I have no other PC to test if I can reuse this license

PS: both license is done via activation option
and not changing product key option
under my computer>properties>windows activation

summary

For 48 SGD it is ok to get a copy of OEM Microsoft windows 7 pro
license key

This business model is workable

Let review this after 180 days or one year later

I will install this license onto
1) Thumb drive
2) another PC
3) into another partition and upgrade to Windows 10
4) upgrade to 8.1 (maybe dun need)
5) run with Remix OS
6) another ext HDD with 64 bit version (maybe dun need)

PS:
0) I will need to Acronics this installation into a image
so that I can do disk recovery and faster installation

Sunday, December 06, 2015

Simplest way to view Windows 10 product-license-key-ID

Option Explicit

Dim objshell,path,DigitalID, Result
Set objshell = CreateObject("WScript.Shell")
'Set registry key path
Path = "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\"
'Registry key value
DigitalID = objshell.RegRead(Path & "DigitalProductId")
Dim ProductName,ProductID,ProductKey,ProductData
'Get ProductName, ProductID, ProductKey
ProductName = "Product Name: " & objshell.RegRead(Path & "ProductName")
ProductID = "Product ID: " & objshell.RegRead(Path & "ProductID")
ProductKey = "Installed Key: " & ConvertToKey(DigitalID)
ProductData = ProductName & vbNewLine & ProductID & vbNewLine & ProductKey
'Show messbox if save to a file
If vbYes = MsgBox(ProductData & vblf & vblf & "Save to a file?", vbYesNo + vbQuestion, "BackUp Windows Key Information") then
Save ProductData
End If

'Convert binary to chars
Function ConvertToKey(Key)
Const KeyOffset = 52
Dim isWin8, Maps, i, j, Current, KeyOutput, Last, keypart1, insert
'Check if OS is Windows 8
isWin8 = (Key(66) \ 6) And 1
Key(66) = (Key(66) And &HF7) Or ((isWin8 And 2) * 4)
i = 24
Maps = "BCDFGHJKMPQRTVWXY2346789"
Do
Current= 0
j = 14
Do
Current = Current* 256
Current = Key(j + KeyOffset) + Current
Key(j + KeyOffset) = (Current \ 24)
Current=Current Mod 24
j = j -1
Loop While j >= 0
i = i -1
KeyOutput = Mid(Maps,Current+ 1, 1) & KeyOutput
Last = Current
Loop While i >= 0
keypart1 = Mid(KeyOutput, 2, Last)
insert = "N"
KeyOutput = Replace(KeyOutput, keypart1, keypart1 & insert, 2, 1, 0)
If Last = 0 Then KeyOutput = insert & KeyOutput
ConvertToKey = Mid(KeyOutput, 1, 5) & "-" & Mid(KeyOutput, 6, 5) & "-" & Mid(KeyOutput, 11, 5) & "-" & Mid(KeyOutput, 16, 5) & "-" & Mid(KeyOutput, 21, 5)


End Function
'Save data to a file
Function Save(Data)
Dim fso, fName, txt,objshell,UserName
Set objshell = CreateObject("wscript.shell")
'Get current user name
UserName = objshell.ExpandEnvironmentStrings("%UserName%")
'Create a text file on desktop
fName = "C:\Users\" & UserName & "\Desktop\WindowsKeyInfo.txt"
Set fso = CreateObject("Scripting.FileSystemObject")
Set txt = fso.CreateTextFile(fName)
txt.Writeline Data
txt.Close
End Function
I like this simple vbs program and also on bonus tips
to save the text file as vbs

but too bad can not attach vbs 


How to view your product key in Windows 10, Windows 8 and Windows 7

If you lost or forgot where you had stored your Windows product key, I have a solution for you. Today we will see how a simple VBS script can be used to show us the product key of an installed copy of Windows 10, Windows 8 or Windows 7. It is a simple solution to extract your product key from the OS installed on your PC without using any third party software. Here we go.

Actually, earlier I posted a similar solution which used PowerShell. but many users complained that it fails for them. PowerShell might require additional user skills and extra tweaks to run unsigned cmdlets.
Compared to PowerShell, this VBScript solution is almost perfect. All you need to do is to just click the file. To view your Windows 10 product key
  1. Open Notepad.
  2. Copy and paste the following text into the Notepad window
    Option Explicit     Dim objshell,path,DigitalID, Result   Set objshell = CreateObject("WScript.Shell")  'Set registry key path  Path = "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\"  'Registry key value  DigitalID = objshell.RegRead(Path & "DigitalProductId")  Dim ProductName,ProductID,ProductKey,ProductData  'Get ProductName, ProductID, ProductKey  ProductName = "Product Name: " & objshell.RegRead(Path & "ProductName")  ProductID = "Product ID: " & objshell.RegRead(Path & "ProductID")  ProductKey = "Installed Key: " & ConvertToKey(DigitalID)   ProductData = ProductName  & vbNewLine & ProductID  & vbNewLine & ProductKey  'Show messbox if save to a file   If vbYes = MsgBox(ProductData  & vblf & vblf & "Save to a file?", vbYesNo + vbQuestion, "BackUp Windows Key Information") then     Save ProductData   End If        'Convert binary to chars  Function ConvertToKey(Key)      Const KeyOffset = 52      Dim isWin8, Maps, i, j, Current, KeyOutput, Last, keypart1, insert      'Check if OS is Windows 8      isWin8 = (Key(66) \ 6) And 1      Key(66) = (Key(66) And &HF7) Or ((isWin8 And 2) * 4)      i = 24      Maps = "BCDFGHJKMPQRTVWXY2346789"      Do          Current= 0          j = 14          Do             Current = Current* 256             Current = Key(j + KeyOffset) + Current             Key(j + KeyOffset) = (Current \ 24)             Current=Current Mod 24              j = j -1          Loop While j >= 0          i = i -1          KeyOutput = Mid(Maps,Current+ 1, 1) & KeyOutput          Last = Current      Loop While i >= 0       keypart1 = Mid(KeyOutput, 2, Last)      insert = "N"      KeyOutput = Replace(KeyOutput, keypart1, keypart1 & insert, 2, 1, 0)      If Last = 0 Then KeyOutput = insert & KeyOutput      ConvertToKey = Mid(KeyOutput, 1, 5) & "-" & Mid(KeyOutput, 6, 5) & "-" & Mid(KeyOutput, 11, 5) & "-" & Mid(KeyOutput, 16, 5) & "-" & Mid(KeyOutput, 21, 5)             End Function  'Save data to a file  Function Save(Data)      Dim fso, fName, txt,objshell,UserName      Set objshell = CreateObject("wscript.shell")      'Get current user name       UserName = objshell.ExpandEnvironmentStrings("%UserName%")       'Create a text file on desktop       fName = "C:\Users\" & UserName & "\Desktop\WindowsKeyInfo.txt"      Set fso = CreateObject("Scripting.FileSystemObject")      Set txt = fso.CreateTextFile(fName)      txt.Writeline Data      txt.Close  End Function
  3. Save the text above to a file with the ".vbs" extension on the Desktop.
    Bonus tip: To make sure that you saving the file correctly with the ".vbs" extension, you can type its name enclosed in double quotes, for example, "BackupWindowsKey.vbs".
    backup windows product key Windows 10
  4. Now open your BackupWindowsKey.vbs file
  5. Voila, you product key is displayed on the screen!
    show Windows 10 product key
I tested this trick on Windows 7, Windows 8 and Windows 10. It works flawlessly in all mentioned operating systems.

Saturday, December 05, 2015

SuperSU on Remix

the new SuperSU
is put under the setting menu

there is printing menu too






Android OS - Zygote, Dalvik VM to Android_Runtime

below lot of concept - only heard but never understand well

Android OS - Processes and the first init process Zygote

This is first lesson on Android
But most of time it is running in the background
as 


and I look into

Dalvik is a discontinued[1] process virtual machine (VM) in Google's Android operating system in Android 4.4

 In the next major Android release, Android 5.0 "Lollipop", Dalvik was entirely replaced by ART.[8]

So I am ignorance as I every time still clear the Dalvik Cache





Lollipop did not totally abandon dalvik cache. All it did it is to write pre compiled files to dalvik folder when installing while back in KitKat the system did not compile apps during installation but compile them just before them run (JIT). If you somehow delete/cleared all/some cached dalvik files in lollipop, system will try to re-compile the corresponding app so that you don't have to compile before they run.

Whenever an app updates via google play system compiles it during installation. However, when apps are updated via system update (Odin, ZIP flashing, OTA,you name it) , system will recompile the new apps which is why the first boot of lollipop takes so much time ( It is compiling all upgraded app!!).

Because TiBackup does not compile apps when restoring them, when you try to run the restored app, lollipop will try to find the pre-compiled file under dalvik cache directory but the correct one is not there. Therefore the app will not run properly. This is why after TiBackup restore in lollipop, always clear dalvik cache and cache and reboot. The restored app will be compiled correctly after during rebooting~ The same applies to Zip/Odin flashing too.