2022年11月9日星期三

windows 11 - How to disable Chrome's Print Preview screen

Configure Group Policy to disable Print Preview screen

Download the Group Policy template for Chrome

Unzip the contents on the domain controller

Open the "Configuration" folder

Open the "admx" folder

Copy the Chrome.admx file and the appropriate language folder (En-US) into the folder where you keep your policy settings (Usually c:\Windows\PolicyDefinitions)

Open Group Policy Management (if your machine does not have it. Follow the section " Install Group Policy Management" to install it)

Open Group Policy Management using PowerShell




Enter gpedit.msc to run Group Policy Management. 

  1. Go to: Computer Configuration > Administrative Templates > Google Chrome > Printing























Double-click on "Disable Print Preview"


Set the policy to "Enabled"


Click "OK"


 Install Group Policy Management 

Create a new .bat file and copy code below into it. After that, double click to run the .bat file.


@echo off


>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"

REM --> If error flag set, we do not have admin.

if '%errorlevel%' NEQ '0' (

echo Requesting administrative privileges...

goto UACPrompt

) else ( goto gotAdmin )

:UACPrompt

echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"

echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"

"%temp%\getadmin.vbs"

exit /B

:gotAdmin

if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )

pushd "%CD%"

CD /D "%~dp0"


pushd "%~dp0"


dir /b %SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >List.txt

dir /b %SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~3*.mum >>List.txt


for /f %%i in ('findstr /i . List.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"

pause



Referrence: https://kb.printerlogic.com/s/article/How-to-disable-Chrome--Print-Preview-screen

2015年1月3日星期六

Twoo: Remove the account

Twoo, a social networking service. It's keep going sending unwanted email to you.

Recently I was suffer on it. So, for those person wanna to delete the account. Please click the link below and follow the instruction to remove the account.

http://www.twoo.com/settings/delete/

Ohhh.... Sure. You need the password.

2014年7月5日星期六

你知道如何网上更新大马卡?

条件:
- 晶片或卡损坏- 更新普通大马卡 (如32k或64k的大马卡,升级成80k)
- 遗失大马卡(不超过4次)

步骤:
1. 点击 https://mykadganti.jpn.gov.my/login.php(第一次使用的新手,需要注册一个帐号)
2. 填写资料,包括选择哪间JPN分行领取新的大马卡
3. 付款方式:只接受信用卡过帐
4. 可以上网查询申请状况。(通常24小时就能完成)
5. 必须带同网上付款的收据,前往所选择的JPN分行,领取大马卡。

网上服务的时间:
星期一至五 8am-10pm
星期六 8am-2pm
星期日 8am-8pm

*网上更新大马卡服务只限于更新现有大马卡;持卡者若要更新相片和地址,属于是要修正资料,必须前往柜台办理。
*遗失大马卡者在透过网上申请时,必须缴付当局所规定的罚款数额,没有任何的折扣。如果申请者是因为大马卡被偷或遭遇天灾,而要求折扣的话,就必须亲自到柜台上诉。

2014年4月22日星期二

jqWidgets - jqxGrid :: Cannot read property 'displayfield' of null

This error occur while you have used the syntax as below:- $("#jqxGrid").jqxGrid('setcellvalue', row, col, value); You just need to display the setcellvalue column while you have initial the jqxGrid. Does't matter the column is hidden or not.

Windows XP hangs on startup

If you face Windows hangs on startup after April 8 2014. Please read this. The problem is with Microsoft Security Essentials - you need to uninstall it. If you can't uninstall Microsoft Security Essentials, you will need to start the PC in the safe mode. When in the Safe mode, run MSCONFIG.EXE and uncheck mssecess, located in the "Startup" tab. Also, uncheck Microsoft Antimalware Service in the "Services" tab. After you save the settings and restart your PC, you should uninstall Microsoft Security Essentials. Keep in mind your PC will be unprotected, so you should install a new Antivirus program.

2011年7月27日星期三

用保丽龙建的保桥

马来西亚的马六甲耗资760万令吉所建的保桥既然在两年以内就有裂痕!



看看图片, 他们竟然在桥里加了保丽龙。 真的是malaysia boleh lor..