2016年5月18日 星期三

Android studio Failed to create JVM : error code -4

  • Only put one source in JAVA_HOME . example.C:\Program Files\Java\jdk1.7.0.79\jre
  • even that didnt worked try changing this file called
studio.exe.vmoptions(32bit) and studio64.exe.vmoptions(64bit) which is situated in the installation directory of android studio\bin .
change the line called -Xmx750m to -Xmx512m, it worked for me

2015年8月27日 星期四

WinXP 遠端桌面連線錯誤

遠端電腦需要網路層級驗證,但您的電腦並不支援。如需協助,請連絡您的系統管理員或技術支援人員。

開啟 Windows XP SP3 網路層級驗證的操作步驟:

開始 > 執行 > 開啟「regedit」> 啟用「登錄編輯程式」,裡面有兩個項目要加入設定值。
找到「HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa」的「Security Packages」加入「tspkg」。

以及將「HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders」的「SecurityProviders」數值資料最後再加入「,credssp.dll」

重新開機 就可以用了!~

2014年5月5日 星期一

javasript的close視窗,在手機不會作用

Please  try it ::

<script language="JavaScript1.2">
function popuponclick()
{
my_window = window.open("",
  "mywindow","status=1,width=350,height=150");
my_window.document.write('<h1>
The Popup Window</H1>'); 
my_window.document.write('<a href="javascript: window.close();">Close the Popup Window</A>'); 
}

function closepopup()
{
    if(false == my_window.closed)
    {
    my_window.close();
    }
    else
   
    {
    alert('Window already closed!');
    }
}
</script>
<body>

<a href="javascript:%20popuponclick()">Open Popup Window</a>

<a href="javascript:%20closepopup()">Close the Popup Window</a>

</body>

XP電腦要如何更新微軟這次IE的漏洞呢?

先安裝KB2936068再安裝KB2964358否則只安裝最新的會有IE打不開的問題!!

http://download.microsoft.com/download/4/E/A/4EA4707A-7C39-486B-A761-EE17100C24DB/IE8-WindowsXP-KB2936068-x86-CHT.exe

http://download.microsoft.com/download/6/0/9/609115EA-02F5-4223-9C24-63A831E7092F/IE8-WindowsXP-KB2964358-x86-custom-CHT.exe

修復 *.lnk 檔案關聯

將下面的文字複製後 貼到記事本 (Notepad) 並存檔 檔案名稱命名為「lnk_recovery.reg」 最後滑鼠雙擊開啟「lnk_recovery.reg」試著點擊捷徑 應該已經恢復正常了

=====================================================================
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.lnk]
@="lnkfile"

[HKEY_CLASSES_ROOT\.lnk\ShellEx]

[HKEY_CLASSES_ROOT\.lnk\ShellEx\{000214EE-0000-0000-C000-000000000046}]
@="{00021401-0000-0000-C000-000000000046}"

[HKEY_CLASSES_ROOT\.lnk\ShellEx\{000214F9-0000-0000-C000-000000000046}]
@="{00021401-0000-0000-C000-000000000046}"

[HKEY_CLASSES_ROOT\.lnk\ShellEx\{00021500-0000-0000-C000-000000000046}]
@="{00021401-0000-0000-C000-000000000046}"

[HKEY_CLASSES_ROOT\.lnk\ShellEx\{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1}]
@="{00021401-0000-0000-C000-000000000046}"

[HKEY_CLASSES_ROOT\.lnk\ShellNew]
"Handler"="{ceefea1b-3e29-4ef1-b34c-fec79c4f70af}"
"IconPath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,\
00,68,00,65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,\
31,00,36,00,37,00,36,00,39,00,00,00
"ItemName"="@shell32.dll,-30397"
"MenuText"="@shell32.dll,-30318"
"NullFile"=""
"Command"=-

[HKEY_CLASSES_ROOT\.lnk\ShellNew\Config]
"DontRename"=""

[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.lnk\UserChoice]

=====================================================================

2014年3月13日 星期四

How to change Windows Server 2012 product key

To change the Product Key in Windows Server 2012 do the following.

1. Press the windows key + R to bring up the run box.
2. Type "slui.exe 0x3" in the run box and click ok
3. Type in the new product key in the Windows Activation window and click "Activate".