หน้าเว็บ

วันอังคารที่ 29 ธันวาคม พ.ศ. 2552

Howto kill process on window with command line.

Howto kill process on window with command line.

If you know the name of a process to kill, for example notepad.exe, use the following command from a command prompt to end it:

taskkill /IM notepad.exe

This will cause the program to terminate gracefully, asking for confirmation if there are unsaved changes. To forcefully kill the same process, add the /F option to the command line. Be careful with the /F option as it will terminate all matching processes without confirmation.

To kill a single instance of a process, specify its process id (PID). For example, if the desired process has a PID of 827, use the following command to kill it:

taskkill /PID 827

Using filters, a variety of different patterns can be used to specify the processes to kill. For example, the following filter syntax will forcefully kill all processes owned by the user Quinn:

taskkill /F /FI "USERNAME eq Quinn"

eq: equals ne: not equal
gt: greater than lt: less than
gt: greater than or equal le: less than or equal


Thanks : tech-recipes.com

วันอังคารที่ 22 ธันวาคม พ.ศ. 2552

Introduction to Visual Basic (VB)

ความรู้เบื้องต้นเกี่ยวกับ Visual Basic (VB)


โปรแกรม Visual Basic (VB) เป็นโปรแกรมสำหรับพัฒนาโปรแกรมประยุกต์ที่กำลังเป็นที่ นิยมใช้อยู่ในปัจจุบัน โปรแกรม Visual Basic เป็นโปรแกรมที่ได้เปลี่ยนรูปแบบการเขียนโปรแกรมใหม่ โดยมีชุดคำสั่งมาสนับสนุนการทำงาน มีเครื่องมือต่าง ๆ ที่เรียกกันว่า คอนโทรล(Controls) ไว้สำหรับช่วยในการออกแบบโปรแกรม โดยเน้นการออกแบบหน้าจอแบบกราฟฟิก หรือที่เรียกว่า Graphic User Interface (GUI) ทำให้การจัดรูปแบบหน้าจอเป็นไปได้ง่าย และในการเขียนโปรแกรมนั้นจะเขียนแบบ Event - Driven Programming คือ โปรแกรมจะทำงานก็ต่อเมื่อเหตุการณ์ (Event) เกิดขึ้น ตัวอย่างของเหตุการณ์ได้แก่ ผู้ใช้เลื่อนเมาส์ ผู้ใช้กดปุ่มบนคีย์บอร์ด ผู้ใช้กดปุ่มเมาส์ เป็นต้น


เครื่องมือ หรือ คอนโทรล ต่าง ๆ ที่ Visual Basic ได้เตรียมไว้ให้ ไม่ว่าจะเป็น Form TextBox Label ฯลฯ ถือว่าเป็นวัตถุ (Object ในที่นี้ขอใช้คำว่า ออบเจ็กต์) นั่นหมายความว่า ไม่ว่าจะเป็นเครื่องมือใด ๆ ใน Visual Basic จะเป็นออบเจ็กต์ทั้งสิ้น สามารถที่จะควบคุมการทำงาน แก้ไขคุณสมบัติของออบเจ็กต์นั้นได้โดยตรง ในทุกๆ ออบเจ็กต์จะมีคุณสมบัติ (properties) และเมธอด (Methods) ประจำตัว ซึ่งในแต่ละออบเจ็กต์ อาจจะมีคุณสมบัติและเมธอดที่เหมือน หรือต่างกันก็ได้ ขึ้นอยู่กับชนิดของออบเจ็กต

ในการพัฒนาโปรแกรมประยุกต์ด้วย Visual Basic การเขียนโค้ดจะถูกแบ่งออกเป็นส่วนๆ เรียกว่า โพรซีเดอร์ (procedure) แต่ละโพรซีเดอร์จะประกอบไปด้วย ชุดคำสั่งที่พิมพ์เข้าไปแล้ว ทำให้คอนโทรลหรือออบเจ็กต์นั้น ๆ ตอบสนองการกระทำของผู้ใช้ ซึ่งเรียกว่าการเขียนโปรแกรมเชิงวัตถุ (Object Oriented Programming-OOP) แต่ตัวภาษา Visual Basic ยังไม่ถือว่าเป็นการเขียนโปรแกรมแบบ OOP อย่างแท้จริง เนื่องจากข้อจำกัดหลายๆ อย่างที่ Visual Basic ไม่สามารถทำได้

เข้าสู่โปรแกรม Visual Basic

เมื่อเข้าสู่โปรแกรม Visual Basic จะแสดงกรอบโต้ตอบสำหรับเลือกชนิดของโปรแกรมประยุกต์ ที่ต้องการ

เมื่อเลือกชนิดของโปรแกรมประยุกต์เป็นแบบ Standard EXE จะเข้าสู่หน้าต่างของ Visual Basic

ในแต่ละส่วนของ Visual Basic จะมีหน้าที่แตกต่างกันไป ซึ่งในระหว่างการพัฒนาโปรแกรมประยุกต์ จะต้องใช้ส่วนต่าง ๆ เหล่านี้ ในการพัฒนาโปรแกรมประยุกต์

ทูลบาร์ (Toolbars)

เป็นแถบสัญลักษณ์ที่ใช้สำหรับเข้าถึงชุดคำสั่งของ Visual Basic ได้ทันที โดยจะนำคำสั่งที่ถูกใช้งานบ่อย ๆ มาแสดง

ทูลบาร์สามารถแบ่งออกได้เป็น 4 กลุ่มใหญ่ ๆ คือ

1. Standard Toolbars เป็นทูลบาร์มาตรฐานประกอบด้วยคำสั่งที่เกี่ยวกับการจัดการ Project

2. Edit Toolbars เป็นทูลบาร์ที่ประกอบไปด้วยคำสั่งที่ใช้สำหรับช่วยในการเขียนโค้ดใน code editor

3. Debug Toolbars เป็นทูลบาร์ที่ประกอบไปด้วยคำสั่งที่ใช้สำหรับตรวจสอบการทำงานการประมวลผลโปรแกรม

4. Form Editor Toolbars เป็นทูลบาร์ที่ประกอบไปด้วยคำสั่งที่ใช้สำหรับช่วยในการปรับขนาด, ย้าย, เปลี่ยนตำแหน่งคอนโทรลต่าง ๆ ที่อยู่บนฟอร์ม

Toolboxs

คือแถบสัญลักษณ์ Controls ต่าง ๆ ที่ใช้สำหรับพัฒนาโปรแกรมประยุกต์ แบ่ง เป็น 2 กลุ่ม คือ

1. คอนโทรลภายใน (Intrinsic controls) เป็นชุดคอนโทรลมาตรฐานของ Visual Basic ทุก ๆ ครั้งที่มีการเรียกใช้ Form เพื่อสร้างโปรแกรมประยุกต์ คอลโทรลชุดนี้จะถูกเรียกขึ้นมาอัตโนมัติ สามารถเลือกใช้งานคอลโทรลกลุ่มนี้ได้ทันที

2. คอนโทรล ActiveX (ActiveX controls) เป็นชุดคอนโทรลเพิ่มเติมที่ไมโครซอฟท์จัดเตรียมไว้ เพื่อเพิ่มขีดความสามารถในการพัฒนาโปรแกรมประยุกต์ การเพิ่มคอนโทรลกลุ่มนี้เข้ามาในทูลบ๊อกซ์ทำโดยเลือกเมนู Project/Components (หรือคลิ๊กขวาตรงแถบทูลบ๊อกซ์เลือกคำสั่ง


Form Designer

เป็นส่วนที่ใช้ออกแบบการแสดงผลส่วนที่ใช้ติดต่อกับผู้ใช้ ฟอร์มเป็นออบเจ็กต์แรกที่ถูกเตรียมไว้ให้ใช้งาน คอลโทรลทุกตัวที่ต้องการใช้งานจะต้องนำไปบรรจุไว้ในฟอร์ม นำคอลโทรลมาประกอบกันขึ้นเป็นโปรแกรมประยุกต์ ทุกครั้งที่เปิด Visual Basic ขึ้นมา หรือ สร้าง Project ใหม่จะมีฟอร์มว่าง 1 ฟอร์มถูกสร้างเตรียมไว้เสมอ


Project Explorer

Project Explorer ใช้สำหรับบริหารและจัดการโปรเจ็กซ์ โดยจะแสดงองค์ประกอบของแต่ละโปรเจ็กต์แบบโครงร่างต้นไม้ (tree-view)ตัวโปรเจ็กตจะหมายถึงโปรแกรมประยุกต์ซึ่งจะอยู่ส่วนบนสุด ถัดมา จะแสดงส่วนประกอบต่าง ๆ ของโปรเจ็กต์นั้น ๆ ว่าประกอบด้วยอะไรบ้าง เช่น ฟอร์มโมดูล รายงาน เป็นต้น ถ้ามี 2 โปรเจ็กต์ขึ้นไป ก็จะแสดงแยกออกเป็นส่วนต่างหากอีกโปรเจ็กต์ ถ้าต้องการใช้งานส่วนใด ของโปรเจ็กต์ไหนก็สามารถคลิ๊กเลือกได้ทันที


Project Explorer แบบโปรเจ็กต์เดียว และ แบบหลายโปรเจ็กต์

ส่วนประกอบของโปรเจ็กต์

Project(n) คือโปรแกรมประยุกต์ที่พัฒนาอยู่ มีนามสกุล .vbp
Form(n) .frm เป็นฟอร์มที่มีอยู่ในโปรเจ็กต์นั้น ๆ ใน 1 โปรเจ็กต์อาจมีมากกว่า 1 ฟอร์มก็ได้ มีนามสกุล
Modules เป็นที่เก็บชุดคำสั่งที่คุณเขียนขึ้นมา โดยจะเก็บชุดคำสั่งที่ใช้บ่อย ๆมีนามสกุล .bas
Class Modules เป็นโมดูลชนิดพิเศษที่มีลักษณะเป็นอ๊อบเจ็กต์ ที่สามารถสร้างขึ้นมาได้ จะมีนามสกุล .cls
User controls เป็นส่วนที่เก็บคอนโทรล ActiveX ที่คุณสร้างขึ้นมา มีนามสกุล .ctl
Designers เป็นส่วนของรายงานที่ถูกสร้างขึ้นมีนามสกุลเป็น .dsr

Properties Window

หน้าต่างคุณสมบัติเป็นส่วนที่ใช้กำหนดคุณสมบัติของออบเจ็กต์ที่ถูกเลือก (adtive) หรือได้รับความสนใจ (focus) อยู่ขณะนั้น ซึ่งสามารถที่จะปรับเปลี่ยนค่าต่าง ๆ ของคอลโทรลเพื่อให้เกิดความเหมาะสมและตรงกับความต้องการใช้งานได้ทันที


ในหน้าต่างคุณสมบัติ จะประกอบไปด้วยแท็ป 2 แท็ป คือ

1. แท็ป Alphabetic เป็นแท็ปที่แสดงรายการคุณสมบัติ เรียงตามตัวอักษรในภาษาอังกฤษ

2. แท็ป Categorized เป็นแท็ปที่แสดงรายการคุณสมบัติ โดยการจัดกลุ่มของคุณสมบัติที่มีหน้าที่คล้ายกัน หรือมีความสัมพันธ์กัน

หน้าต่าง Form Layout

เป็นส่วนที่แสดงให้เห็นตำแหน่งของฟอร์ม และสามารถกำหนดตำแหน่งของฟอร์ม ที่ปรากฎบนจอภาพในขณะประมวลผลได้ โดยการเคลื่อนย้ายฟอร์มจำลอง ที่อยู่ในจอภาพจำลองด้วยการ drag เมาส์ ไปยังตำแหน่งทีคุณต้องการ โดยจะมีผลในขณะประมวลผลเท่านั้น


Immediate Window

เป็นหน้าต่างที่ให้ประโยชน์ ในกรณีทีคุณต้องการทราบผล การประมวลผลโดยทันที เช่น การทดสอบโปรแกรมย่อยต่าง ๆ เป็นต้น เมื่อคุณสั่งประมวลผลโปรเจ็กต์ หน้าต่างนี้จะปรากฎขึ้นโดยอัตโนมัติ

หน้าต่าง New Project

หน้าต่าง New Project จะปรากฎขึ้นมาเมื่อเลือกเมนู File/New Project กรอบโต้ตอบนี้ จะแสดงชนิดของโปรแกรมประยุกต์ ที่คุณต้องการพัฒนา ซึ่งจะคล้ายกับตอนที่เปิดโปรแกรม Visual Basic ขึ้นมาครั้งแรก

หน้าต่าง Code Editor

เป็นส่วนที่ใช้ในการเขียนชุดคำสั่งสำหรับการประมวลผล และควบคุมการทำงานของคอลโทรล ต่าง ๆ

วันพฤหัสบดีที่ 17 ธันวาคม พ.ศ. 2552

How to Update field on Excel.

When you found error on excel can't update data on table.

You can update field on Excel with F9 Button.

วันพฤหัสบดีที่ 19 พฤศจิกายน พ.ศ. 2552

Cmd prompt for Window

Specific Control panel

"Control desktop"
"Control color"
"Control date/time"
"Control international"
"Control mouse"
"Control keyboard"
"Control printers"
"Control fonts"


Management

Certificate Manager : " certmgr.msc"
Indexing Service : "ciadv.msc"
Computer Management : "compmgmt.msc"
Device Management : " devmgmt.msc"
Disk Defragmenter : "dfrg.msc"
Disk Management : "diskmgmt.msc"
Event Viewer : "eventvwr.msc"
Shared Folders : "fsmgmt.msc"
Group Policy : "gpedit.msc"
Local Users and Groups : "lusrmgr.msc"
Removable Starage : "ntmsmgr.msc"
Performance Monitor : " perfmon.msc"
Resultant Set of Policy : "rsop.msc"
Security Policy : "secpol.msc"
Services : "services.msc"
Windows Management Infrastrusture : "wmimgmt.msc"


Thanks : Robopony

วันพุธที่ 18 พฤศจิกายน พ.ศ. 2552

Check printer when have problem

Check Printer when have problem


1. Check power of printer.

2. Check usb connector.

3. Check driver.

4. Test print file.

5. Change to other Usb slot.

6. If can't print read error on printer.

7. If can't print uninstall driver and install againas.

8. Check error on printer

9. Check Ink of printer

วันอังคารที่ 3 พฤศจิกายน พ.ศ. 2552

How to install rdesktop on Ubuntu

How to install rdesktop on Ubuntu



Code:
sudo apt-get install rdesktop
should take care of it. You way also want to install tsclient for a graphical frontend for rdesktop.
Code:
sudo apt-get install tsclient
You can also use Synaptic Package Manager to do this. Click on System --> Administration --> and choose Synaptic Package Manager.

Thanks : linuxquestions.org

VMWare Server 2 – RuntimeFault: Database temporarily unavailable or has network problems

If you add a new User (New Permission) to the VMWare Server 2 via the VMware Infrastructure Web Access you may get the message “The server response included one or more errors” with the details “RuntimeFault: Database temporarily unavailable or has network problems”.

vmerr


To fix this you first have to stop the VMWare management service:

/etc/init.d/vmware-mgmt stop


Now open the file “/etc/vmware/hostd/authorization.xml” and change the value of ‘’ to 50 for example.


After that change you can start the VMWare management service again:

/etc/init.d/vmware-mgmt start


Now you can relogin into the VMware Infrastructure Web Access and add the new user. (If you get the error again, change the value of again to a higher value)


Thanks : mogilowski.net

Introduction To VMware VIX API

Introduction to VMware VIX API.


The VIX API allows you to automate virtual machine operations on VMware Server or VMware Workstation.


About the VIX API

The VIX API (or "Vix") is a library for writing scripts and programs to manipulate virtual machines. It is high-level, easy to use, and practical for both script developers and application programmers. The VIX API is designed for three kinds of users:

  • Technically Adventurous Users - For example, dedicated IT personnel in an organization building their own in-house tools.
  • Partners - Software vendors using Vix to integrate VMware products with their own products or to build management products specifically for virtual machines.
  • VMware Engineering - VMware uses Vix in its own products as a general abstraction layer between core virtual machine processes and associated service processes.

The VIX API runs on Microsoft Windows (Windows95 or later) and Linux platforms (kernel 2.4.x or later recommended). It supports programs written in C, Perl, and COM (Visual Basic, VBscript, C#).


Compatibility

This release of the VIX API is compatible with VMware Server 2.0 and VMware Workstation 6.5.

Product Compatibility

VIX API Version

Compatible Platform Products

Library Location

1.0.3

VMware Server 1.0

server-1

1.1

VMware Workstation 6.0

ws-3

1.1.1

VMware Workstation 6.0.1 or earlier

ws-3

1.1.2

VMware Workstation 6.0.2 or earlier

ws-3

1.1.4

VMware Workstation 6.0.4 or earlier

ws-5

1.1.5

VMware Workstation 6.0.5 or earlier

ws-5

1.6.0

VMware Server 2.0 or earlier

VIServer-2.0.0

1.6.1

Workstation 6.5 or earlier

Workstation-6.5.0

The library location is not important if you use the wrapper library as recommended.

Vix Version 1.x supports programs written to version 1.x of the VIX API. Exceptions are noted on function reference pages. For example, VMware Server does not support record and replay, while VMware Workstation does not support virtual machine registration.

Vix libraries are installed with VMware Server and VMware Workstation and provide API compatibility corresponding to the product release. Vix libraries are downward compatible in most cases. If you upgrade VMware Server or VMware Workstation, you should also upgrade any separately installed Vix libraries. For instructions, see Installing the VIX API. You should also upgrade VMware Tools to match the product release.

With VMware Server, you can run Vix programs remotely. With VMware Workstation, Vix programs usually run on the host.


64-Bit Library Support

The VIX API provides 64-bit libraries for Linux only. Windows 32-bit libraries may work in 64-bit emulation mode.


Redistributable Code and Sample Code

As noted in the End User License Agreement, the VIX API allows you to build and distribute your own applications. To facilitate this, the following files are designated as redistributable for the purpose of that agreement:

  • VixAllProducts.lib and VixAllProductsd.lib
  • vix.lib and vix.dll
  • vixCOM.dll
  • libvixAllProducts.so
  • libvix.so

Redistribution of the open source libraries included with the VIX API is governed by their respective open source license agreements.

The VIX API also includes sample code, which you can use as a starting point for your own programs. Code is delivered in the Samples directory installed with VMware VIX. A Makefile is provided for Linux, and an nMakefile for Windows.


Installing the VIX API

On the VMware Server or VMware Workstation host, you do not need to install any additional VIX API components. Vix libraries are installed by default under “VMware VIX” or vmware-vix. To compile programs on these systems


To control VMware Server remotely from another machine, you need header files vix.h and vm_basic_types.h, as well as one or more library files. You can get these files in one of two ways: Use the Vix standalone installer to get the files needed to compile a program


Using the Windows Standalone Installer

To install the VIX API files on Windows:

  1. Download the installer program to your Desktop.
  2. Double-click the installer icon to run the graphical installer.

To uninstall the VIX API, go to Start > Settings > Control Panel and use the Add/Remove Programs control panel.


Using the Linux Standalone Installer

To install the VIX API files on Linux:

  1. Download the tar-gzip package. For example:
    wget http://www.vmware.com/downloads/server/VMware-vix-110068.i386.tar.gz
  2. As superuser, extract the package:
    sudo tar zxpf VMware-vix-110068.i386.tar.gz
  3. Change directory and, as superuser, run the VMware installer:
    cd vmware-vix-distrib
    sudo ./vmware-install.pl
  4. Read the EULA and type "yes" if you agree to its terms. You can accept most defaults by typing Enter when prompted.

To uninstall the VIX API, run the vmware-uninstall-vix.pl script. The uninstaller is at /usr/bin/vmware-uninstall-vix.pl by default.


Upgrading an Earlier Installation

If you are using older Vix libraries, VMware recommends that you upgrade those libraries using the standalone installer. The standalone installer provides a current version of the wrapper library, which allows programs to communicate with any Vix library, regardless of version or target architecture. The wrapper library dynamically loads appropriate library files at connection time.

Otherwise you must link your program to a Vix library that matches the server version. This gets inconvenient if your program communicates with more than one version of the server.

VMware Tools in virtual machines should be kept up-to-date with the VMware version on the host. When upgrading, also update VMware Tools in all guest operating systems. The VIX API relies on a current matching version of VMware Tools to perform many operations.

Upgrading the Vix libraries replaces the older header files, vix.h and vm_basic_types.h with newer header files. The header files are installed at the following locations by default:

  • On a Windows system:
    • C:\Program Files\VMware\VMware VIX\vix.h
    • C:\Program Files\VMware\VMware VIX\vm_basic_types.h
  • On a Linux system:
    • /usr/include/vmware-vix/vix.h
    • /usr/include/vmware-vix/vm_basic_types.h

Whether or not you use the wrapper library, your programs may call only the functions supported by the host. If you communicate with an older host, you cannot use newer features.


Sample Vix Programs

On Windows, the sample programs are installed in C:\Program Files\VMware\VMware VIX\Samples by default. An nMakefile is provided to compile all sample programs using nmake and the Visual Studio C compiler.

On Linux, the sample programs are installed in /usr/share/doc/vmware-vix/VMwareVix/samples/ by default. A Makefile is provided to compile all sample programs using make and the GNU C compiler.

Compiling on Windows With Wrapper Library

To use the wrapper library with VIX 1.6, you need Visual Studio 2005 (Visual C release 8.0) or later. To compile code on Windows using the wrapper library, use the following procedure. Files are in the C:\Program Files\VMware\VMware VIX folder.

  1. Add the header file to an include statement in your source code:
  2. #include "vix.h"
    ... program code here ...
  3. Compile for, and link with, the multithreaded version of the C runtime library. For Workstation 6.0.1 and later, you may use either the debug or the non-debug version of this library. For Workstation 6.0.0 and earlier, you must use the non-debug version.
    • To compile and link with the debug version (libcmtd.lib) use compiler options /MTd /nodefaultlib:libcmtd.lib.
    • To compile and link with the non-debug version (libcmt.lib) use compiler options /MT /nodefaultlib:libcmt.lib.
  4. Compile code to link with these files:
    • VixAllProducts.lib for non-debug, or VixAllProductsd.lib for debug.
    • kernel32.lib
    • user32.lib
    • advapi32.lib
    • ole32.lib
    • oleaut32.lib
    • ws2_32.lib
    • shell32.lib

Compiling on Linux With Wrapper Library

This procedure assumes that you have installed Vix components in the default directories. If you made different choices during the installation, specify your directory choices instead.

  1. Add an include statement in your source code for the header file:
    #include "vix.h"
    ... program code here ...
  2. Compile your application, linking to the wrapper library and dynamic load library:
    $ gcc -I/usr/include/vmware-vix vixapp.c -o vixapp -lvixAllProducts -ldl

Compiling on Windows Without Wrapper Library

If you do not use the wrapper, you need to link the appropriate Vix libraries for the VMware product to which your Vix program connects. Workstation 6.5 is able to link a debug version of the C runtime library.

To compile your code for use with Workstation 6.5:

  1. Make the required DLL files available to your program, either by placing them in the same directory as your executable, or by placing them in the system directory (C:\WINDOWS\system32). The easiest option is to copy DLL files from the directory C:\Program Files\VMware\VMware VIX\Workstation-6.5.0\32bit or 64bit.
    • vix.dll (or vixd.dll if you are using debug C runtime library)
    • iconv.dll (or inconvd.dll if you are using debug C runtime library)
    • libxml2.dll (or libxml2d.dll if you are using debug C runtime library)
    • libeay32.dll
    • ssleay32.dll
    • vmcryptolib.dll
    • zlib1.dll
  2. Add the header file to an include statement in your source code:
    #include "vix.h"
    ... program code here ...
  3. Compile your code to link in vix.lib statically.
  4. Compile for, and link with, the multithreaded version of the C runtime library. You may use either the debug or the non-debug version of this library.
    • To compile and link with the debug version (libcmtd.lib) use compiler option /MTd with Microsoft Visual Studio.
    • To compile and link with the non-debug version (libcmt.lib) use compiler option /MT with Microsoft Visual Studio.

To compile your code for use with Workstation 6.0.x:

  1. Make the required DLL files available to your program, either by placing them in the same directory as your executable, or by placing them in the system directory (C:\WINDOWS\system32). The easiest option is to copy DLL files from the directory C:\Program Files\VMware\VMware VIX\ws-2\32bit or ws-3\32bit.
    • vix.dll
    • iconv.dll
    • libxml2.dll
    • libeay32.dll
    • ssleay32.dll
    • vmcryptolib.dll
    • zlib1.dll
  2. Add the header file to an include statement in your source code:
    #include "vix.h"
    ... program code here ...
  3. Compile your code to link in vix.lib statically.
  4. Compile for, and link with, the multithreaded version of the C runtime library. You must use the non-debug version of this library (libcmt.lib) by using compiler option /MT with Microsoft Visual Studio.

To compile your code for use with VMware Server 1.0:

  1. Make the following DLL files available to your program, either by placing them in the same directory as your executable, or by placing them in your system directory (C:\WINDOWS\system32). The easiest option is to copy DLL files from the directory C:\Program Files\VMware\VMware VIX\server-1\32bit.
    • vix.dll
    • ssleay32.dll
    • libeay32.dll
  2. Add the header file to an include statement in your source code:
    #include "vix.h"
    ... program code here ...
  3. Compile your code to link in vix.lib statically.

Compiling on Linux Without Wrapper Library

To compile your code with VMware Server or VMware Workstation installed:

  1. Add an include statement in your source code for the header file:
    #include "vix.h"
    ... program code here ...
  2. Compile your application, linking statically to libvix.so, as in the following examples.
    • To link the VMware Workstation library on a 32-bit machine:
      gcc -I/usr/include/vmware-vix -o vixapp vixapp.c /usr/lib/vmware-vix/Workstation-6.5.0/32bit/libvix.so
    • To link the VMware Server 2.0 library on a 32-bit machine:
      gcc -I/usr/include/vmware-vix -o vixapp vixapp.c /usr/lib/vmware-vix/lib/VIServer-2.0.0/32bit/libvix.so
    • To link the old VMware Server 1.x library:
      gcc -I/usr/include/vmware-vix -o vixapp vixapp.c /usr/lib/vmware-vix/lib/server-1/32bit/libvix.so
Thanks : VMware.com

วันจันทร์ที่ 2 พฤศจิกายน พ.ศ. 2552

Howto automount all my hdd

*First mount all the drives manually.*


then,open the "* Run Application Window *",for this press " *Alt+F2* " to open it.
then write there " *gksu nautilus* ", a window will be appeared and press
the "*up*" button once.

open the file "*mtab* " from " *etc* " folder
here you can see some text like this ,

/dev/sda8 /media/PHOTO vfat rw,nosuid,nodev,uhelper=hal,shortname=mixed,uid=1000,utf8,umask=077,flush 0 0
/dev/sda5 /media/SONGS vfat rw,nosuid,nodev,uhelper=hal,shortname=mixed,uid=1000,utf8,umask=077,flush 0 0

copy those texts and paste it *at the end *of a file named "*fstab*", you
can find the file into the " *etc* " folder.


How to automount all Harddisk on ubuntu

*First mount all the drives manually.*


then,open the "* Run Application Window *",for this press " *Alt+F2* " to open it.
then write there " *gksu nautilus* ", a window will be appeared and press
the "*up*" button once.

open the file "*mtab* " from " *etc* " folder
here you can see some text like this ,

/dev/sda8 /media/PHOTO vfat rw,nosuid,nodev,uhelper=hal,shortname=mixed,uid=1000,utf8,umask=077,flush 0 0
/dev/sda5 /media/SONGS vfat rw,nosuid,nodev,uhelper=hal,shortname=mixed,uid=1000,utf8,umask=077,flush 0 0

copy those texts and paste it *at the end *of a file named "*fstab*", you
can find the file into the " *etc* " folder.

Thanks : ubuntu.com

How to format a thumb drive on ubuntu

First make sure USB thumb drive is not mounted. Click on Places > Computer > Select USB thumb drive > Right click > Select Unmount Volume.

Let us assume that /dev/sda1 is your partition name for USB thumb drive. To format type the following command


$ sudo mkfs.ext3 /dev/sda1


Now use e2label command to change the filesystem label on the ext3 filesystem located on device /dev/sda1:


$ sudo e2label /dev/sda1 usb-thumbdrive


You can also create an MS-DOS/Windows XP file system under Linux, enter:


$ sudo mkfs.vfat /dev/sda1


Thanks : cyberciti.biz

How to format a new hard disk on ubuntu

How to format a new hard disk on ubuntu

Let's get going!

Removing and creating a partition
Having decided your drive's name (let's call it sda) we must now remove the default partition that the manafacturer put there:
Code:
sudo fdisk /dev/sda
This will start fdisk. We want to remove the partion(s), there should only be one.
Press d (for delete).
It might ask you for the partition number, press 1 and enter. If there are more then delete them too.

Now to make a new partition.
Press n (for new), then p (for primary), then 1 and then simply press enter for the next two questions.
This will make a new partition that uses the entire disk. If you want more complex partitioning then read the fdisk manual (man fdisk) or use parted or some other app.
Here's what we did with n, the values will differ from yours:
Code:
Command (m for help): n                                                    
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (197-621, default 197):
Using default value 197
Last cylinder or +size or +sizeM or +sizeK (197-621, default 621): +128M
Now to write the new partion and exit, press w and enter.
You should be ready to make a filesystem now.

Making a filesystem : "Formatting"
You need to put a system in-place, on the disk, such that it can handle files. This is called (unsurprisingly) a filesystem.
The one we are going to use is called "ext3". On Gnu/Linux we are spoiled for choice and there are loads of filesystems you can use, go do some research if you want to.
So, let's make the filesystem:
Code:
sudo mkfs.ext3 /dev/sda1
* Note the 1 at the end, because we are making the filesystem in that partition (thanks Mike)

Now it will go off and do strange stuff, simply wait for it to finish.

Using the new file system
Well, at this point you should be able to right-click on the icon (on your Desktop) and choose "mount" (I assume that's the verb it will present to you). After that you should be able to open a window and use the drive*
* all this assumes it's an external USB drive.
If you cannot then you will need to mount it yourself, try:
Code:
sudo mkdir /media/sda1
sudo mount /dev/sda1 /media/sda1
Note: We are actually mounting the first partition on the drive, hence the 1 at the end: sda1
And the mounted directory can be anywhere you like, but its common location is /media.


Or Use GUI

Install
Code:
sudo apt-get install gparted
sudo gparted
Note: Open from System => Administration => Partition Editor

And Mount your Partition with
Code:
sudo mkdir /media/sda1
sudo mount /dev/sda1 /media/sda1
Note: /dev/sda1 is your new partition

Thanks : ubuntuforums.org || answers.yahoo.com

วันเสาร์ที่ 31 ตุลาคม พ.ศ. 2552

Introduction To Kerberos

What is Kerberos?

Kerberos is a network authentication protocol. It is designed to provide strong authentication for client/server applications by using secret-key cryptography. A free implementation of this protocol is available from the Massachusetts Institute of Technology. Kerberos is available in many commercial products as well.

The Internet is an insecure place. Many of the protocols used in the Internet do not provide any security. Tools to "sniff" passwords off of the network are in common use by malicious hackers. Thus, applications which send an unencrypted password over the network are extremely vulnerable. Worse yet, other client/server applications rely on the client program to be "honest" about the identity of the user who is using it. Other applications rely on the client to restrict its activities to those which it is allowed to do, with no other enforcement by the server.

Some sites attempt to use firewalls to solve their network security problems. Unfortunately, firewalls assume that "the bad guys" are on the outside, which is often a very bad assumption. Most of the really damaging incidents of computer crime are carried out by insiders. Firewalls also have a significant disadvantage in that they restrict how your users can use the Internet. (After all, firewalls are simply a less extreme example of the dictum that there is nothing more secure then a computer which is not connected to the network --- and powered off!) In many places, these restrictions are simply unrealistic and unacceptable.

Kerberos was created by MIT as a solution to these network security problems. The Kerberos protocol uses strong cryptography so that a client can prove its identity to a server (and vice versa) across an insecure network connection. After a client and server has used Kerberos to prove their identity, they can also encrypt all of their communications to assure privacy and data integrity as they go about their business.

Kerberos is freely available from MIT, under copyright permissions very similar those used for the BSD operating system and the X Window System. MIT provides Kerberos in source form so that anyone who wishes to use it may look over the code for themselves and assure themselves that the code is trustworthy. In addition, for those who prefer to rely on a professionally supported product, Kerberos is available as a product from many different vendors.

In summary, Kerberos is a solution to your network security problems. It provides the tools of authentication and strong cryptography over the network to help you secure your information systems across your entire enterprise. We hope you find Kerberos as useful as it has been to us. At MIT, Kerberos has been invaluable to our Information/Technology architecture.


Thanks: web.mit.edu/Kerberos

วันศุกร์ที่ 30 ตุลาคม พ.ศ. 2552

Introduction to Cybozu Share360

What is Cybozu® Share360®?

As a sixth-generation product from industry-leader Cybozu, Share360 is a groupware suite with applications like Scheduler, WebMail, Cabinet, Announcements, Project, Web Forms and more. Share360 provides the applications your need to effectively communicate and coordinate your office or group.

Cybozu Share360 is Affordable Groupware

Share360 saves you money with up-front pricing which costs you hundreds of dollars less per user. With affordable upgrades, one-time payment and no hidden costs or annual fees, Share360 groupware offers an immediate value. Our 60-day no-obligation free trial (no money down!) allows you to run a fully-functional version of Share360 for your evaluation.

Cybozu Share360 is Accessible Groupware

Share360 applications can be set up to run on your intranet or on the Internet, allowing users to access their accounts quickly and easily. Share360 Sync for Palm OS®, Sync for Pocket PC and Share360 Outlook Sync allow you to take critical data with you while you're on the go.

Cybozu Share360 is Hassle-Free Groupware

environment
*1
[Share360] must be installed only in one server machine.
*2
SMTP Server and POP3 Server are necessary to use WebMail.

Share360 is easy to download and install and even easier to maintain. There are no necessary client installations, so once you have Share360 up and running, it will be available to all of your users. You can run Share360 on Windows, Linux or FreeBSD (you may migrate between operating systems free of charge), or even arrange for pre-installed packaged solutions or hosted solutions by Hitachi Software.


Share360 includes all of the following:

Address Book
Announcements
Cabinet
Memos
Notes
Phone Messages

Project**
Scheduler
ToDo List
Time Sheet
Web Forms**
WebMail


Download your free 60-day trial now!


Thanks : share360.com

วันพุธที่ 28 ตุลาคม พ.ศ. 2552

Why Choose VMware for virtualization

Why Choose VMware


As virtualization is now a critical component to an overall IT strategy, it is important to choose the right vendor. VMware is the leading virtualization provider, offering the most trusted and reliable platform for building internal cloud infrastructures and federating to external clouds.

From working with analysts, customers, and partners, we’ve learned that you likely need a solution that meets ALL of the following requirements:

  1. Is built on a robust, proven foundation
  2. Delivers a platform for shared IT services
  3. Provides a complete solution for virtualization and cloud management
  4. Supports your entire IT infrastructure
  5. Is proven across tens of thousands of customer deployments.

Only VMware delivers on all of these important requirements. And best of all, VMware delivers while providing low total-cost-of-ownership (TCO).
























































Thanks : vmware.com

Introduction To Virtual Infrastructure

Reduce Costs with a Virtual Infrastructure

Lower your capital and operational costs and improve operational efficiency and flexibility. Go beyond server consolidation and deploy a standard virtualization platform to automate your entire IT infrastructure. VMware customers have harnessed the power of virtualization to better manage IT capacity, provide better service levels, and streamline IT processes. We coined a term for virtualizing the IT infrastructure–we call it the virtual infrastructure.

What is a Virtual Infrastructure?

A virtual infrastructure lets you share your physical resources of multiple machines across your entire infrastructure. A virtual machine lets you share the resources of a single physical computer across multiple virtual machines for maximum efficiency. Resources are shared across multiple virtual machines and applications. Your business needs are the driving force behind dynamically mapping the physical resources of your infrastructure to applications—even as those needs evolve and change. Aggregate your x86 servers along with network and storage into a unified pool of IT resources that can be utilized by the applications when and where they’re needed. This resource optimization drives greater flexibility in the organization and results in lower capital and operational costs.

A virtual infrastructure consists of the following components:

  • Bare-metal hypervisors to enable full virtualization of each x86 computer.
  • Virtual infrastructure services such as resource management and consolidated backup to optimize available resources among virtual machines
  • Automation solutions that provide special capabilities to optimize a particular IT process such as provisioning or disaster recovery.

Decouple your software environment from its underlying hardware infrastructure so you can aggregate multiple servers, storage infrastructure and networks into shared pools of resources. Then dynamically deliver those resources, securely and reliably, to applications as needed. This pioneering approach lets our customers use building blocks of inexpensive industry-standard servers to build a self-optimizing datacenter and deliver high levels of utilization, availability, automation and flexibility.

Virtual Infrastructure Benefits

Gain the benefits of virtualization in production-scale IT environments by building your virtual infrastructure with the leading virtualization platform from VMware. VMware Infrastructure 3 unifies discrete hardware resources to create a shared dynamic platform, while delivering built–in availability, security and scalability to applications. It supports a wide range of operating system and application environments, as well as networking and storage infrastructure. We have designed our solutions to function independently of the hardware and operating system so you have a broad platform choice. Our solutions provide a key integration point for hardware and infrastructure management vendors and partners to deliver differentiated value that can be applied uniformly across all application and operating system environments.

Get More from your Existing Hardware

Our customers report dramatic results when they adopt our virtual infrastructure solutions, including:

  • 60-80% utilization rates for x86 servers (up from 5-15% in non-virtualized PCs)
  • Cost savings of more than $3,000 annually for every workload virtualized
  • Ability to provision new applications in minutes instead of days or weeks
  • 85% improvement in recovery time from unplanned downtime

Thanks : vmware.com

Installing PHP5 and Apache on Ubuntu

Installing PHP5 and Apache on Ubuntu

Easy way to get PHP and Apache for running on Ubuntu.


From a command shell, you will run the following commands:

sudo apt-get install apache2

sudo apt-get install php5

sudo apt-get install libapache2-mod-php5

sudo /etc/init.d/apache2 restart


Note that if apache is already installed you can omit the first line. Your web files will now be found in /var/www/

Thanks : howtogeek.com


Introduction to Virtual Machine

What is a Virtual Machine?

A virtual machine is a tightly isolated software container that can run its own operating systems and applications as if it were a physical computer. A virtual machine behaves exactly like a physical computer and contains it own virtual (ie, software-based) CPU, RAM hard disk and network interface card (NIC).

An operating system can’t tell the difference between a virtual machine and a physical machine, nor can applications or other computers on a network. Even the virtual machine thinks it is a “real” computer. Nevertheless, a virtual machine is composed entirely of software and contains no hardware components whatsoever. As a result, virtual machines offer a number of distinct advantages over physical hardware.


Compatibility

Just like a physical computer, a virtual machine hosts its own guest operating system and applications, and has all the components found in a physical computer (motherboard, VGA card, network card controller, etc). As a result, virtual machines are completely compatible with all standard x86 operating systems, applications and device drivers, so you can use a virtual machine to run all the same software that you would run on a physical x86 computer.

Isolation

While virtual machines can share the physical resources of a single computer, they remain completely isolated from each other as if they were separate physical machines. If, for example, there are four virtual machines on a single physical server and one of the virtual machines crashes, the other three virtual machines remain available. Isolation is an important reason why the availability and security of applications running in a virtual environment is far superior to applications running in a traditional, non-virtualized system.

Encapsulation

A virtual machine is essentially a software container that bundles or “encapsulates” a complete set of virtual hardware resources, as well as an operating system and all its applications, inside a software package. Encapsulation makes virtual machines incredibly portable and easy to manage. For example, you can move and copy a virtual machine from one location to another just like any other software file, or save a virtual machine on any standard data storage medium, from a pocket-sized USB flash memory card to an enterprise storage area networks (SANs).

Hardware Independence

Virtual machines are completely independent from their underlying physical hardware. For example, you can configure a virtual machine with virtual components (eg, CPU, network card, SCSI controller) that are completely different from the physical components that are present on the underlying hardware. Virtual machines on the same physical server can even run different kinds of operating systems (Windows, Linux, etc).

When coupled with the properties of encapsulation and compatibility, hardware independence gives you the freedom to move a virtual machine from one type of x86 computer to another without making any changes to the device drivers, operating system, or applications. Hardware independence also means that you can run a heterogeneous mixture of operating systems and applications on a single physical computer.


Thanks : vmware.com

Why Your Company Should Virtualize With Top 5 Reasons to Adopt

Why Your Company Should Virtualize

Virtualizing your IT infrastructure lets you reduce IT costs while increasing the efficiency, utilization, and flexibility of your existing assets. Around the world, companies of every size benefit from VMware virtualization. Thousands of organizations—including all of the Fortune 100—use VMware virtualization solutions. See how virtualizing 100% of your IT infrastructure will benefit your organization.

Top 5 Reasons to Adopt Virtualization Software

  1. Get more out of your existing resources: Pool common infrastructure resources and break the legacy “one application to one server” model with server consolidation.
  2. Reduce datacenter costs by reducing your physical infrastructure and improving your server to admin ratio: Fewer servers and related IT hardware means reduced real estate and reduced power and cooling requirements. Better management tools let you improve your server to admin ratio so personnel requirements are reduced as well.
  3. Increase availability of hardware and applications for improved business continuity: Securely backup and migrate entire virtual environments with no interruption in service. Eliminate planned downtime and recover immediately from unplanned issues.
  4. Gain operational flexibility: Respond to market changes with dynamic resource management, faster server provisioning and improved desktop and application deployment.
  5. Improve desktop manageability and security: Deploy, manage and monitor secure desktop environments that users can access locally or remotely, with or without a network connection, on almost any standard desktop, laptop or tablet PC.
Thanks : vmware.com

Introduction To Virtualization With VMWare

Virtualization Basics


Transform your Business with Virtualization

Virtualization dramatically improves the efficiency and availability of resources and applications in your organization. Internal resources are underutilized under the old “one server, one application” model and IT admins spend too much time managing servers rather than innovating. An automated datacenter, built on a VMware virtualization platform, lets you respond to market dynamics faster and more efficiently than ever before. VMware vSphere delivers resources, applications—even servers—when and where they’re needed. VMware customers typically save 50-70% on overall IT costs by consolidating their resource pools and delivering highly available machines with VMware vSphere.


What is Virtualization?

Virtualization is a proven software technology that is rapidly transforming the IT landscape and fundamentally changing the way that people compute. Today’s powerful x86 computer hardware was designed to run a single operating system and a single application. This leaves most machines vastly underutilized. Virtualization lets you run multiple virtual machines on a single physical machine, sharing the resources of that single computer across multiple environments. Different virtual machines can run different operating systems and multiple applications on the same physical computer. While others are leaping aboard the virtualization bandwagon now, VMware is the market leader in virtualization. Our technology is production-proven, used by more than 150,000 customers, including 100% of the Fortune 100.+


How Does Virtualization Work?

The VMware virtualization platform is built on a business-ready architecture. Use software such as VMware vSphere and VMware ESXi (a free download) to transform or “virtualize” the hardware resources of an x86-based computer—including the CPU, RAM, hard disk and network controller—to create a fully functional virtual machine that can run its own operating system and applications just like a “real” computer. Each virtual machine contains a complete system, eliminating potential conflicts. VMware virtualization works by inserting a thin layer of software directly on the computer hardware or on a host operating system. This contains a virtual machine monitor or “hypervisor” that allocates hardware resources dynamically and transparently. Multiple operating systems run concurrently on a single physical computer and share hardware resources with each other. By encapsulating an entire machine, including CPU, memory, operating system, and network devices, a virtual machine is completely compatible with all standard x86 operating systems, applications, and device drivers. You can safely run several operating systems and applications at the same time on a single computer, with each having access to the resources it needs when it needs them.


Build your Datacenter on a Flexible Architecture

Virtualizing a single physical computer is just the beginning. With VMware vSphere, the industry's first cloud operating system, scales across hundreds of interconnected physical computers and storage devices to form an entire virtual infrastructure. You don’t need to assign servers, storage, or network bandwidth permanently to each application. Instead, your hardware resources are dynamically allocated when and where they’re needed. This “internal cloud” means your highest priority applications will always have the resources they need without wasting money on excess hardware only needed for peak times. The internal cloud can connect to an external cloud as well, giving your business the flexibility, availability and scalability it needs to thrive.


Manage your Resources with the Lowest TCO

It’s not just virtualization that’s important. You need the management tools to run those machines and the ability to run the wide selection of applications and infrastructure services your business depends on. VMware lets you increase service availability while eliminating error-prone manual tasks. IT operations are more efficient and effective with VMware virtualization. Your staff will handle double or triple the number of servers, giving users access to the services they need while retaining centralized control. Deliver built-in availability, security, and performance across the board, from the desktop to the datacenter.

Thanks : vmware.com

วันอังคารที่ 27 ตุลาคม พ.ศ. 2552

How to Install RPM Package on Ubuntu

Install an RPM Package on Ubuntu Linux

Installing software on Ubuntu usually entails using Synaptic or by using an apt-get command from the terminal. Unfortunately, there are still a number of packages out there that are only distributed in RPM format.

There’s a utility called Alien that converts packages from one format to the other. This doesn’t always mean that an rpm will work on your system, though. You will need to install some prerequisite software packages in order to install alien, however. These packages include gcc and make.

"Alien is a program that converts between the rpm, dpkg, stampede slp, and slackware tgz file formats. If you want to use a package from another distribution than the one you have installed on your system, you can use alien to convert it to your preferred package format and install it.

Despite the large version number, alien is still (and will probably always be) rather experimental software. It has been used by many people for many years, but there are still many bugs and limitations.

Alien should not be used to replace important system packages, like sysvinit, shared libraries, or other things that are essential for the functioning of your system. Many of these packages are set up differently by Debian and Red Hat, and packages from the different distributions cannot be used interchangably. In general, if you can’t uninstall the package without breaking your system, don’t try to replace it with an alien version."



Run this command to install alien and other necessary packages:

sudo apt-get install alien dpkg-dev debhelper build-essential

To convert a package from rpm to debian format, use this command syntax. The sudo may not be necessary, but we’ll include it just in case.

sudo alien packagename.rpm

To install the package, you’ll use the dpkg utility, which is the internal package management tool behind debian and Ubuntu.

sudo dpkg -i packagename.deb

The package should now be installed, providing it’s compatible with your system.


Thanks : howtogeek.com || embraceubuntu.com

Introduction To DotProject For Project Management

DotProject

DotProject เป็น Free Software ประเภทบริหารจัดการโครงการ (Project Management software)
ที่มีประสิทธิภาพมาก เช่นเดียวกับ Microsoft Project Management Software ที่เป็นซอฟต์แวร์ลิขสิทธิ์

DotProject ทำงานลักษณะ Web Portal หรือ Web Server เป็นการทำงานแบบหลายผู้ใช้ Multi-Users
ซึ่งใช้ Web browser เป็น User Client
ทำงานได้ดีกับ Mozilla Firefox และ MS-IE7

DotProject ทำงานด้วยภาษา PHP,HTML เป็นหลัก มีการจัดเก็บข้อมูลแบบ Relation Database Management System (RDBMS) สามารถติดตั้งใช้งานร่วมกับ MySql, Oracle, Sybase Database

DotProject มีเครื่องมือที่สามารถถอดประกอบได้เรียกว่า Module เช่น Calendar, Smart search.
เครื่องมือที่มีประสิทธิภาพและนิยมมากได้แก่ ระบบการวางแผนและติดตามโครงการ สามารถทำการแสดงผลแบบ Gantt Chart Online

DotProject เป็นเครื่องมือที่มีประโยชน์อย่างมากสำหรับผู้บริหาร และพนักงานทุกระดับ เพื่อใช้ในการวางแผนงาน ติดตามการทำงาน เนื่องจากการบริหารโครงการนั้น ต้องมีลำดับขั้นตอนที่ได้รับการกำหนดไว้เป็นอย่างดี โดยมีจุดเริ่มต้นและจุดสิ้นสุด มุ่งสู่การบรรลุถึงเป้าหมายที่ชัดเจน และลงมือปฏิบัติโดยบุคคลที่ได้รับการกำหนดที่ชัดเจน รวมถึงช่วยในการบริหารการใช้ทรัพยากรในองค์กรอย่างมีประสิทธิภาพอีกทางหนึ่ง

Dotproject มีผู้นำไปพัฒนาให้สามารถสนับสนุนภาษาใช้งานได้หลายภาษา
สำหรับภาษาไทยริเริ่มพัฒนาอย่างเป็นทางการตั้งแต่ 20 กุมภาพันธ์ 2551 ซึ่งทำการพัฒนาปรับปรุงจาก
DotProject Version 2.1 มีการปรับปรุงดังนี้

  • 1.Menu ภาษาไทย ให้สอดคล้องกับการใช้งาน
  • 2.แสดงผล Gantt chart ภาษาไทย
  • 3.แสดงผลภาษาไทยกับทุก Module
  • 4.Customize Module

โดยความร่วมมือจาก 3 องค์กรหลัก ได้แก่

1.วิทยาลัยบัณฑิตศึกษา ศรีราชา มหาวิทยาลัย เกษตรศาสตร์ วิทยาเขตศรีราชา (ผู้ริเริ่ม)
โครงการพัฒนาระบบสารสนเทศเพื่อการบริหารองค์กร
2.ส่วนระบบควมคุมอัตโนมัติ, ส่วนจัดหาและบริหารพัสดุ บริษัท ปตท. จำกัด (มหาชน)(ที่ปรึกาษาฯ)
โครงการพัฒนาพัฒนาโอเพ็นซอสระบบติดตามการจัดซื้อ
3.โครงการก่อสร้างที่1 สำนักชลประทานที่ 9 กรมชลประทาน (พัฒนาร่วม)
โครงการพัฒนาโอเพ็นซอสเพื่อการบริหารจัดการน้ำ โครงการก่อสร้างที่1 สำนักชลประทานที่ 9

Thanks : s2.grad.src.ku.ac.th

วันจันทร์ที่ 26 ตุลาคม พ.ศ. 2552

Introduction to Wamp Server

Apache, MySQL, PHP on Windows


WampServer is a Windows web development environment. It allows you to create web applications with Apache, PHP and the MySQL database. It also comes with PHPMyAdmin to easily manage your databases.

WampServer installs automatically (installer), and its usage is very intuitive. You will be able to tune your server without even touching the setting files.

WampServer is the only packaged solution that will allow you to reproduce your production server. Once WampServer is installed, you have the possibility to add as many Apache, MySQL and PHP releases as you want.

WampServer also has a trayicon to manage your server and its settings.




Includes :
- Apache 2.2.11
- MySQL 5.1.36
- PHP 5.3.0



Installing


Double click on the downloaded file and just follow the instructions. Everything is automatic. The WampServer package is delivered whith the latest releases of Apache, MySQL and PHP.

Once WampServer is installed, you can add other releases by downloading them on this website. They will then appear in the WampServer menu and you will be able to switch releases with a simple click.
Each release of Apache, MySQL and PHP has its own settings and its own files (datas for MySQL).

Functionalities


WampServer's functionalities are very complete and easy to use so we won't explain here how to use them.

With a left click on WampServer's icon, you will be able to:
- manage your Apache and MySQL services
- switch online/offline (give access to everyone or only localhost)
- install and switch Apache, MySQL and PHP releases
- manage your servers settings
- access your logs
- access your settings files
- create alias

With a right click :
- change WampServer's menu language
- access this page

How to start


When you install WampServer, a "www" directory is created (generally c:\wamp\www). Create a directory inside for your project and put your PHP files in it.
Click on the link "Localhost" in the WampServer menu or open your browser and open the http://localhost address.




Add Apache, MySQL and PHP releases


WampServer allows you to install almost all the existing releases of Apache, PHP and MySQL so you can reproduce exactly the settings of your production server.
To add a new release, donwload it here and install it.

Then click on the WampServer menu and activate the release that you want to use.



Wait until the WampServer icon become white again and start to work.


Downloads


WampServer is an open source project, free to use (GPL licence). If you think our work deserves it and you want to help us, you can make a donation with paypal.



Apache 2.2.11
PHP 5.3.0
MySQL 5.1.36
Phpmyadmin

size: 16Mo

Thanks : wampserver.com

วันพุธที่ 21 ตุลาคม พ.ศ. 2552

Basic virus information with Handy Drive

Virus สายพันธ์ใหม่ มากับ Handy Drive
Virus แบบใหม่มากับ Hady drive หรือ Flash drive ยอดฮิตติดเกือบทุกเครื่องเป็นไวรัชแบบใหม่
อาศัย Autorun เป็นตัวทำงาน ที่มักเขียนด้วย Visual Basic Script มักมีชื่อเมื่อเป็น .vbs และจะติดทาง Handy Drive เป็นส่วนใหญ่ หรือแผ่น CD DVD ที่มีการใช้ AutoRun ถึงเราล้างเครื่องหรือ format ลง Windows ใหม่ ถ้าเอา Handy Drive มาใช้ก็ติดอีกเหมือนล้างออกยาก
การดูว่ามีการติด Virus ชนิดนี้หรือไม
1. ดับเบิ๊ลคลิ๊กไดว์ C ไดว์ D ใน My Computer จะไม่ขึ้นแต่กับมีอะไรออกมาแปลกแทน
2. ถ้าคลิ๊กขาวที่ไดว์ C D จะมีเมนูขึ้นมาก เป็นเมนูแปลก เช่น มี Open หลายอัน หรือมี ให้เรียก
โปรแกรมแปลก
3. มี Floder ที่เหมือนกัน เติมออกมา และมี icon แปลก ๆ และ ลบออก ก็จะมีโผ่ลออกมาอีก
4. ถ้ากด Ctrl + Alt + Delแล้วเลือกTab Processes จะมีชื่อไฟล์ของไวรัชนั้นทำงานอยู่
5. เมื่อเปิด IE เล่นเน็ต ไม่ค่อยวิ่ง ที่ bar ด้านบนมักมีเขียน Hack by หรือ เป็นชื่อของไวรัช
6. เมื่อ Taskbar Manager ไม่ออก หรือ ถ้าเราเข้า Mycomputer เรียกเมนู tool
ออกมาจะมีเมนูหายไป มักเป็น เมนู floder Option..
รายชื่อและอาการ
jomke.dll.vbs
อาการ Internet Explorer หรือ IE มองแถบด้านบนสุดเหนือ เมนู จะมีคำงว่า Hacked by odzilla version 2.0 หรือ เข้า Websit ช้าลงมาก และ Web มักขึ้นhttp://student.srru.ac.th/~48122420102/jomke ไวรัสจ
คัดลอกตังเองลงในทุกๆไดร์ฟบนเครื่อง ชื่อ jomke.dll.vbs และแก้ไขค่าในรีจิสทรีเพื่อสร้างค่าขยะไวรัส พยายามแพร่กระจายตัวผ่านทางแฮนดี้ไดร์ฟและการแชร์ไดร ์ฟในเครือข่าย พยายามจะทำให้เครื่องปิดลงทุกครั้งหลังจากที่เปิดใช้ งานโดยหน่วงเวลาไว้ที่ 50 วินาที
achi.dll.vbs
อาการ จะสร้างไฟล์ achi.htm หน้าแรกของ Internet Explorer จะเข้าแต่ achi.htm ไม่ยอมเข้า web ที่เราจะเข้าและ แสดงข้อความใน Web achi.htm
happy.vbs
อาการ สร้างไฟล์ autorun จะคัดลอกไฟล์ happy.vbs ไปด้วย จะเรียกใช้ Regedit.exe ไม่ได้ Icon My Computer หายไป เข้า Floder ที่แชร์ใช้ใน Lan ไม่ได้ ไตเติลบาร์ของ Internet Explorer เป็น ORIGINAL SILLE.B run On GAME ONLINE ตั้งค่าหน้าแรก IE เป็น http://www.sille.net/gamesonline.htm และแสดงกล่องข้อความ
"VIRUS SILLE RUN ON GAMES ONLINE"
killVBS.vbs
อาการ จะ Copy file killVBS.vbs ตัวนี้ไม่กระจายในระบบ Lan ไวรัสจะแก้ไขไตเติลบาร์ของ Internet Explorer
และหน้าแรก เป็นหน้าเปล่า เข้าเว็ปช้ามาก
HELLO WORLD i am VB
อาการ สร้างไฟล์ ชื่อ RUNDLL64.dll.vbs เอาไว้ ไตเติลบาร์ของ Internet Explorer เป็น HELLOWORLD i amVB
จะซ่อนแทบ All Programs ใน Start Menu รวมไปถึงเรียก Windows Task Manager ไม่ได้ กล่าวคือถ้ากด
Ctrl + Alt + Del ถ้าไม่ขึ้นหน้าต่าง Windows Task Manager แสดงว่าติดแล้ว
^_^Anti AntiVirus^_^ (Win32/Wenna.E worm)
อาการ ตัวนี้ใช้ Borland Delphi เขียน ไวรัสจะทำการแก้ไข Windows Title ให้เป็น ^_^Anti AntiVirus^_^ ตลอดเวลา กล่าวคือ เมื่อเข้า My Computer หรือ เข้าอื่น ด้านบนจะเขียน ^_^Anti AntiVirus^_^ และไวรัสจะแก้ไขค่าในรีจิสทรีที่เกี่ยวกับไฟล์นามสกุ ล exe ให้ ทำให้เรียก ไฟล์ .exe ไม่ได้ นอกจากนี้จะยกเลิกฟังก์ชั่นที่เกี่ยวกับการแก้ไขปรับ แต่งระบบปฏิบัติการ เช่นการปรับแต่ง สี ขนาดหน้าจอไม่ได้ เช่น Click ขาวกลางจอ เลือก Properti
Hacked by 8BITS (VBS/Butsur.C worm)
อาการ สร้างไฟล์ kernel32.dll.vbs ไวรัสจะแก้ไขไตเติลบาร์ของ IE เป็น Hacked by 8BITS และยังสามารถ ปิด WinXP เองได้ หรือ อยู่เข้า Windows XP และปิดเองเลย
Data.exe (Win32.Worm.Tellsky)
อาการ จะแก้ไขค่าในรีจีสทรีของ WinXP เมื่อเรารัน MSN Messenger ทำงานในตอนเปิดเครื่องไวรัสจะทำงานทุกครั้งเครื่องจะ พยายามเข้าเว็ปไซต์ www.Atom-Soft.com ไวรัชจะทำการ สร้างโฟลเดอร์ ที่เหมือนกันออกมา 2 อันที่คล้ายกันเป็นไฟล์นามสกุล exe มีขนาด 213 KB,221KB และ 224 KB ยกเว้นโฟลเดอร์ program files และ desktop ไวรัสจะไม่ติดเชื้อ ไวรัสอาจ overwrite ไฟล์ exe บนเครื่องได้ เมื่อชื่อโฟลเดอร์ที่เก็บไฟล์จะ เป็นชื่อเดียว กับไฟล์ ซึ่งจะทำให้ข้อมูลใน Floder นั้นถูกลบทิ้งไปนอกจากนี้ไวรัสตัวนี้มีฟังก์ชั่นในกา รทำลายข้อมูลบนฮาร์ดดิสด้วย น่ากล้วมาก ถ้ามีข้อมุลคำสัญ
MS32DLL.dll.vbs (VBS/Pica.NAA virus)
อาการ ดับเบิ้ลคิ๊กได้ C D เข้าไม่ได้ มีหน้าต่างๆแสดง ชื่อไฟล์เป็น .MS32DLL.dll.vbs และจะไปปรับแต่งรีจิสทรีและการเปลี่ยนสกุลไฟล์ไวรัส เป็น boot.ini เพื่อหลบซ่อนในระบบ
Toy.exe (Win32/Agent.WJ trojan)
อาการ ตัวนี้เคยระบาดมีชื่อเสียงมานานแล้ว ตัวแก้นี้จะทำการแก้ไขไวรัสแบบสมบูรณ์ ไวรัสตัวนี้ไม่ได้ทำลายข้อมูล แต่ทำให้ใช้งาน WinXP ไม่ได้เมื่อเข้า WindowXP ที่ ส่วนของ Wallpaper จะมีภาษาจีนออกพูดถึงการรสร้างโลกของพระเจ้า
music.exe (Win32/VB.NIV worm)
อาการ ตัวนี้ร้ายมากจะทำการลบไฟล์เพลงออกหมด เช่น *.mp3 *.dat *.wav other และจะสร้าง
Floder ที่มีอยู่แล้วออกมาเพิ่มอีก ลบFloder เหล่านี้ก็ไม่ได้ ที่พบ Floder นั้นจะมีนามสกุลเป็น *.exe เครื่องจะทำงานช้าลงทันตา ถ้ามี Floder เหล่านี้มากจะยิ่งช้า
iexp1ore.exe (Win32/Agent.P worm)
อาการ ถ้าไป ดับเบิ้ลคลิ๊ก Handy drive ที่มีจะทำงาน โดยจะคัดลอกตัวเองไปในโฟลเดอร์โปรแกรม Internet Explorerโดยพยายามทำตัวเองเป็นเสมือนโปรแกรม Internet Explorer ส่วน
ใหญ่ทำให้ใช้ ie ไม่ได้ แต่ถ้าเรากด แก้ไขทางลัดทุกทางที่จะเรียกใช้โปรแกรมให้ชี้ไปที่ไว รัสแทน โปรเซสของไวรัสมีชื่อว่า iexp1ore.exe โดยไวรัสจะไม่สร้างความ ผิดปกติใดๆบนเครื่องที่ติดเชื้อทำให้ผู้ใช้ที่ไม่สัง เกต ไม่สามารถตรวจพบได้ ดาวน์โหลดตัวแก้ คลิก ที่นี่ครับ
sxs.exe (Win32/PSW.QQRob trojan)
อาการ จะดับเบิ๊กคลิ๊กเข้าไดว์ต่างๆไม่ได้ ถ้ากด Ctrl + Alt + Del จะมี
net.exe sc.exe
Monaliza
อาการ มักมากับโปรแกรมยอดอิตของวัยรุ่น MSN กับแฮนดี้ไดร์ฟ
คลิปVDO.exe (Win32/Agent.NAG worm)
อาการ ตัวนี้จะติดที่ Clip VDO และจะสร้างไฟล์ คลิปVDO.exe ลงบนทุกๆไดร์ฟโดยทำไอคอนของมันเป็นแบบ Folder
Hacked By Godzilla (VBS/Butsur.B worm)
อาการ ไตเติลบาร์ของ IE มีคำว่า Hacked By Godzilla ทำให้การใช้ Internet ช้ามี
ปัญหาการใช้งาน ถ้าติดนานจะเข้าเน็คช้ามากขึ้นเรื่อย
AdobeR.exe (Win32/RJump.B worm)
อาการ ทำให้ WinXP ทำงานมีข้อผิดผลาดหรือ Erorr ปล่อย ทำให้รันโปรแกรมผิดผลาดปล่อยๆ
Flashy.exe (Win32/Disabler.I trojan)
อาการ จะเปิดบริการ telnet ทำให้คนที่ไม่หวังดีเข้ามาเครื่องเราได้ ทาง Internet มาควบ
คุมเครื่องเราได้ และทำให้ administrator ให้ว่างเปล่า ทำให้ Handy Drive อ่านได้
บางไม่ได้บาง หรือ หาไม่เจอบางเป็นบางครั้ง
ที่กล่าวทางด้านบนเป็น รายชื่อไวรัชที่ ติดกันมาก แต่หลังวันที่ 23-7-2550
อาจมีใหม่มาอีก

วิธีป้องกัน เป็นการป้องกันในระดับหนึ่ง กล่าวคือ เมื่อเราใช้ Handy Drive ห้ามดับเบิ๊กคลิ๊กที่ไดว์ ให้คลิ๊กขาวแล้วใช้คำสั่ง Open และถ้าใน Handy Drive มี File Autorun ให้พยายามลบออกให้หมด

Thanks : teabmongkon49

Guard of Thumb Drive

หากคุณใช้ Thumb Drive คุณต้องมีโปรแกรมนี้
Remora USB Disk Guard
สวัสดีคร๊าบบบบ เมื่อบทความที่แล้วแนะนำกันเรื่องโปรแกรมยอดฮิตสำหรั บใช้งานกับ Thumb Drive หรือ USB Drive ไปเรียบร้อยแล้ว ซึ่งในช่วงงาน ComMart ที่ผ่านมาหลายคนกวาดซื้อ Thumb Drive กันไปเพียบเพราะลดราคาถูกมาก งั้นขอเม๊าส์ก่อนดีกว่า วันสุดท้ายที่ผมลากเว็บมาสเตอร์ไปเก็บตกสินค้าราคาถู กในงานวันสุดท้ายผมเองก็คว้า Thumb Drive ขนาด 2 GB มาเหมือนกัน ในราคาไม่ถึง 500 บาท เมื่อวานนี้แวะไปพันธ์ทิพย์ เจอเหมือนกับที่ผมซื้อเลยขนาด 512 MB ก็ปาเข้าไปตั้ง 450 บาทแล้ว โฮ โฮ โฮ ( หัวเราะแบบซานตาครอส ) ผมได้ราคามาแบบมิตรภาพจริงๆ แต่ก็นั่นหละขนาดความจุตั้ง 2 GB ผมยัดทั้งงานและข้อมูลสำคัญๆที่ต้องเอาไปใช้ไปมาระหว ่างบ้านกับ Office จริงๆใส่ใน Card ของเครื่อง PDA Phone ก็ได้แต่ว่ามันขี้เกียจต้องมานั่งจั๊มสาย เลยใช้แบบ Thumb Drive นี่หละสะดวกดีใช่ไม๊ครับ
แต่ทว่าเกิดวันหนึ่ง เจ้า Thumb Drive สุดที่รักที่มีขนาดเล็กจิ๋วลงทุกๆวัน เกิดมันหายไปหละครับ ? ก็แน่นอนหละเสียดายมันคงต้องเสียดาย แม้มูลค่ามันจะไม่กี่ร้อยก็ตาม แต่ว่าข้อมูลในนั่นหนะสิครับ บางครั้งมันไม่สามารถประเมินมูลค่าได้ หากข้อมูลสำคัญที่เก็บไว้ในนั้นเกิดไปตกอยู่ในมือผู้ ที่อาจจะไม่ประสงค์ดี เผลอๆเดี๋ยยวมีภาพหลุดไปท่องตามเน็ตหละยุ่งเลย
มันก็เลยเป็นที่มาของบทความในวันนี้กับโปรแกรมที่ผมอ ยากจะบอกว่า " คุณควรต้องมีใน Thumb Drive " โปรแกรมตัวนี้ชื่อว่า Remora USB Disk Guard เป็นโปรแกรมแบบฟรีแวร์ใช้ได้เลย ไม่ต้องจ่ายสตางค์ซื้อ เป็นโปรแกรมที่จะช่วยในการเข้ารหัสข้อมูลไฟล์ที่เก็บ ใน Thumb Drive หากสักวันหนึ่งมันโดนจิ๊กไป หรือทำหล่นหาย ก็แน่ใจเลยว่าข้อมูลใน Thumb Drive ในขนาดเป็น GB รับรองว่าไม่ถูกมือดีสามารถนำไปใช้ได้แน่

มาดูวิธีใช้กันดีกว่า ไม่ยากครับแต่อาจจะมีขั้นตอนยุ่งยากนิดหน่อย
1. ไป Download โปรแกรมนี้ได้ฟรีที่ http://download.richskills.com/remor...uard_green.exe
Click the image to open in full size.
2. ทำการติดตั้งเหมือนโปรแกรมทั่วไป
Click the image to open in full size.
3. เลือก Drive ที่จะติดตั้งให้เลือกที่ Drive ที่เป็น Thumb Drive นะครับอย่างของผมคือ Drive F:/
Click the image to open in full size.
4.เลือกภาษาเป็น English
Click the image to open in full size.
5. Step ที่ 1 ตั้งรหัสผ่านอย่างน้อยหกตัว ทั้งสองช่อง
Click the image to open in full size.
6. Step ที่ 2 ตั้งรหัสผ่านอย่างน้อยหกตัวอีกรอบ สำหรับการเข้ารหัส File แนะนำว่าให้ใช้รหัสเดียวกับใน Step ที่ 1 จะได้จำง่ายไม่มีลืม
Click the image to open in full size.
7. เมื่อติดตั้งเสร็จจะปรากฎ icon บน task bar ของ Windows สีแดงๆในรูป
8.ไปที่ My Computer แล้วเข้าไปใน Thumb Drive สร้าง Folder เตรียมไว้เก็บข้อมูลก่อนหนึ่ง Folder ในกรณีของผมผมสร้างแล้วตั้งชื่อว่า "โฟลเดอร์ข้อมูลลับ"
Click the image to open in full size.
9.การเรียกโปรแกรมให้ Double Click ที่ icon บน Task bar แล้วจะปรากฎหน้าต่างให้ Log on
Click the image to open in full size.

10. เมื่อโปรแกรมเรียกขึ้นมาแล้วจะมีหน้าตาแบบในรูปนี้หล ะครับ ส่วนคำอธิบายก็ตามภาพเลย
Click the image to open in full size.

11. ให้ทำการเอาไฟล์ข้อมูลที่จะเก็บลง Thumb Drive ไปใส่ไว้ใน Folder "โฟลเดอร์ข้อมูลลับ" ที่สร้างเตรียมไว้ล่วงหน้า ในตัวอย่างนี้ผมเอาไฟล์ excel ไปใส่ไว้
Click the image to open in full size.

12.หลังจากนั้น ก็เลือกที่ การเข้ารหัสแบบ Folder ที่ตัวโปรแกรม Remora USB Disk Guard แล้วก็เลือกที่ Folder "โฟลเดอร์ข้อมูลลับ" เพื่อทำการเข้ารหัสไฟล์ที่เก็บใน Folder นั้นทั้งหมด
Click the image to open in full size.
13. เรียบร้อยแล้วครับ !! พอเวลาเรามาเปิดดู Folder ที่ชื่อว่า "โฟลเดอร์ข้อมูลลับ" ที่เราเข้ารหัสไว้ ไฟล์ที่เก็บในนั้นจะเป็นไฟล์คล้ายๆพวกไฟล์ขยะ ไม่สามารถเปิดออกได้ แต่หากต้องการเรียกใช้ไฟล์เหล่านั้น ก็ต้องไปปลดล๊อคก่อนนะครับ
ขอแถมก่อนจบสักหน่อย !!

ในเครื่องพวก PDA Phone เองเราก็สามารถทำให้ Card ที่อยู่ในเครื่องสามารถเป็น Thumb Drive ได้เช่นเดียวกันโดยใช้โปรแกรมที่ชื่อว่า WM5torage สามารถ Download ได้จากที่ http://www.modaco.com/WM5torage-t238545.html
และหากต้องการแบ่ง พาเทชั่น ของ SD Card / Mini SD หรือ Micro SD แนะนำให้ลองอ่านที่บทความนี้ครับ http://www.mrpalm.com/list33.php?cont_id=284


Thanks : thaigaming.com