Friday, April 27, 2012

[Solution] Cannot boot Windows[XP]: TRAP 00000006 EXCEPTION


TRAP 00000006 exception TR=0028 cr0=0000000011, cr2=00000000, cr3=00039000 GDT
limit=03ff base=0003F000 idt limit=07ff base=0003F400
CS:eip=0008:0042284E ss:esp=0010:000600E0 errcode=0000 flags=00010002 nocy nozr Intdis down trapdis
.......
Solution: ใส่แผ่น Windows เข้าไปตอน Boot (มันก็จะ Boot เข้า Windows ให้เลย)





TRAP 00000006 exception TR=0028 cr0=0000000011, cr2=00000000, cr3=000000000 GDT limit=03ff base=00017000 idt limit=07ff base=00017400 CS:eip=0008:08000000 ss:esp=0010:00061fec errcode=0000 flags=000100012 nocy nozr intdis down trapdis eax=0000110c ebx0003001d5 ecx=00001660 cdx=534d0030 ds-0010 es=0010 edi=00350000 exi=00051db6 ebp=00061ff0 cr0=00000011 fs=0030 gs=0000
.......
Solution: 
  1. Restart your computer by using either the Windows 2000 CD-ROM or Windows Setup floppy disks.
  2. At the Welcome to Setup screen, press R to repair the Windows 2000 installation.
  3. Press C to repair the Windows 2000 installation by using the Recovery Console.
  4. Type the number of the Windows installation that you want to repair, and then press ENTER.
  5. Type the administrator password, and then press ENTER.

    NOTE: The Recovery Console uses the administrator password that you provided when you installed Windows 2000. Changes that you made to the administrator password after you installed Windows do not apply to the Recovery Console.
  6. Type chkdsk /r, and then press ENTER.
  7. Type cd .., and then press ENTER.
  8. Type ren ntldr ntldr.old, and then press ENTER.
  9. Type copy CD-ROMDrive:\i386\ntldr HardDisk:\ntldr, and then press ENTER, where CD-ROMDrive is the CD-ROM drive letter, and HardDisk is the drive letter of your hard disk.
  10. Type exit, and then press ENTER to restart your computer.

DONE!

[Sovled] Cannot open Task Manager


Go to Start --> Run
type : cmd

copy :
REG add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System /v DisableTaskMgr /t REG_DWORD /d 0 /f

Enter

WORKS !!

[Solved] Cannot run Regedit

Start -> Run -> gpedit.msc -> User Configuration ->Administrative Templates -> System -> Prevent access to registry editing tools -> Right ClickProperties -> Disabled

Saturday, March 24, 2012

Activate Windows Server 2003 Enterprise

It works for me (just now!).

Short & Easy step
- Download bat file from > win2k3es.bat and Extract file
- Restart and press F8 to go to "Save Mode"
- Go to Extract folder and read READ.txt first (it's about these step)
- Double click on "win2k3es.bat". It will automatic prompt command windows with says
"you can not activate windows 2003 enterprise server in [SAFE MODE]" (But it works!)
- Click OK to finish and restart to enjoy your FULL VERSION OF Windows Server 2003 R2 Enterprise
---------------------------------------------------------

เพิ่งแก้มาได้หมาดๆ
วิธีอย่างง่ายเลย
- ดาวน์โหลดไฟล์ > win2k3es.bat and Extract file มาแตกไฟล์ไว้ก่อน
- เข้า Save Mode โดยรีสตาร์ท แล้ว กด F8 เพื่อเลือกช่องทางเข้า Windows เป็น Save Mode
- ไปในโฟลเดอร์ที่เราแตกไฟล์ไว้ ให้อ่านไฟล์ READ.txt ก่อนก็ดี (เกี่ยวกับขั้นตอนการติดตั้งนี่ละค่ะ)
- ดับเบิ้ลคลิกที่ไฟล์ "win2k3es.bat" แล้วมันจะรันหน้าต่าง command prompt มาและข้อความว่า
"you can not activate windows 2003 enterprise server in [SAFE MODE]" (มันจะมีผลหลังจากออกจาก save mode)
- กดปุ่ม OK แล้ว restart เข้าสู่ Windows ปกติ เราก็จะได้ Windows Server 2003 ที่ผ่านการ Activate มาเรียบร้อย สามารถ update windows และลงโปรแกรมฟรีของ Microsoft ได้เลย!

:)

Sunday, February 19, 2012

วิธีแก้ [Solved] Warning: Cannot modify header information – headers already sent by



Warning: Cannot modify header information – headers already sent by

ปัญหานี้เกิดจาก เรียกใช้คำสั่ง header() หลังจากมี output ส่งไปยัง client แล้ว
ดูตัวอย่างที่มีปัญหานะ

1.

<?php
echo "Some text" ;
header("Location:index.php") ;
?>

2.

<html>
<?php
header("Location:index.php") ;
?>

3.

<?php
$variable = 10 ;
?>

<?php
header("Location:index.php") ;
?>


มีคำว่า Some text ถูกส่งออกไปแล้ว
มีคำว่า <html> ถูกส่งออกไปแล้ว
มี white space ถูกส่งออกไปแล้ว ระหว่างบล็อก php ทั้งสอง ( white space ได้แก่ ขึ้นบรรทัดใหม่,เคาะสเปชบาร์,แท็บ โดยรวมคือช่องว่างที่มองไม่เห็น)
มีวิธีแก้ 3 วิธี

1.หาให้เจอว่ามีเอ้าพุตอะไรออกไปในบรรทัดที่ php ฟ้อง
2.ใส่คำสั่ง ob_start() ใว้บนบรรทัดแรกสุดๆ ของไฟล์ (ไม่แนะนำ)
3.เอาคำสั่งจาวาสคริปเข้าช่วยในการ redirect

หลังจากที่คุณกระทำการอะไรบางอย่างเสร็จและต้องการใช้คำสั่ง header() redirect ไปเพจอื่น ให้เปลี่ยนจากคำสั่ง header() เป็นเซตค่าตัวแปรสักตัว

$complete = "true" ;

แล้วทีนี้ตรงระหว่างแท็ก <head></head> ใส่คำสั่งนี้เข้าไป

<?php if ($complete=="true"){ ?>
<script type="text/javascript">
window.location="gbook.php";
</script>
<?php } ?>



Credit : http://www.select2web.com

Tuesday, November 8, 2011

Ubuntu/Debian: Installing using an RPM file

Try this
--------------------------------------------------


$sudo apt-get update

$sudo apt-get install alien

$cd ~/Desktop
$sudo alien -k name-of-rpm-file.rpm
( This will convert the .rpm to a .deb on Desktop )

$sudo dpkg -i name-of-deb-file.deb
This will install the .deb package )



--------------------------------------------------
Done!!

Thanks : embraceubuntu.com

Enable the (Hidden) Administrator Account on Windows 7 or Vista

[Solved] How to turn on Administrator Account on Windows 7 or Vista




---------------------------------------------------------------------------------
- Right-click Command Prompt, then click Run as Administrator.
- Type --> net user administrator /active:yes
---------------------------------------------------------------------------------


Works!!  ;)

Reference : howtogeek.com