AWATY
ปัญหา คำถาม ความสงสัยที่เกิดขึ้น ความอยากรู้อยากเห็น อยากเป็น อยากที่จะเข้าใจ
Wednesday, September 14, 2011
Monday, May 9, 2011
open folder and selected file
Dim fileName As String
fileName = "c:\program files\someFile.txt"
Shell "explorer /select," & fileName, vbNormalFocus
End Sub
Thursday, March 31, 2011
อากาศเปลี่ยนแปลง จะทำให้ใจคนเปลี่ยนด้วยไหม
Tuesday, March 29, 2011
เริ่ม update กันอีกรอบ
Thursday, October 14, 2010
WiiMote Velocity and Position
Data is gathered about every hundredth of a second and averaged across 3 points. So the plot resolution is about 0.03 seconds. Velocity is calculated using simple numerical integration:
- vi = vi-1 + ai(ti - ti-1)
(where a is acceleration, v is velocity, t is time, i is the current data point, i-1 is the previous data point)
To improve the accuracy of the velocity integration, the program ignores changes in acceleration below a specified threshhold. So if acceleration changes less than "x", the velocity equals the previous data points velocity.
Position is calculated similar to velocity. It is the integration of velocity.
- pi = pi-1 + vi(ti - ti-1)
(where p is position, v is velocity, t is time, i is the current data point, i-1 is the previous data point)
To test the data analysis I came up with a simple experiment. The Wiimote starts out at rest on my desk. I then proceed to lift it up about 2 feet and then bring it back down to the desk, and again let it sit at rest. I tried not to rotate the Wiimote or alter the x or y positions. Here are the results:

Notice that the position does not get back to 0 even though I set the Wiimote back on my desk. This has to do with the summation of errors from integration. You can also see that even though the Wiimote is at rest at the end, the position is moving up slightly. This is due to a velocity slightly over 0. The acceleration data is good but the position and velocity data are not good enough for a real experiment, but can provide a ballpark answer. Searching online about this topic, someone mentioned that the Wii designers added the sensor bar to account for this inaccuracy.
The Wiimote also has an infrared (IR) camera and the Wii sensor bar is actually just 2 infrared LEDs. Using the Python Cwiid library, you can get the IR (infrared sensor) data from the sensor bar or another IR device (like a IR LED). This provides a better measurement of position. The Wiimote provides position and intensity values for up to 4 IR sources and the Cwiid Python module can provide this data for us also.
For this experiment I did not actually have a Wii Sensorbar, so I just used a IR LED that I purchased at RadioShack. It is a high intensity IR LED with a forward current of 100 mA and a forward voltage of 1.2V. Hooking it up to a 5 volt source, I used a 47 ohm resistor in series.
Velocity is calculated using numerical differentiation:
- yi+1 - yi
------------
ti+1 - ti
Acceleration is calculated as the second derivative of position with numerical methods:
- yi+2 - 2yi+1 + yi
-----------------------------
(ti+2 - ti+1)(ti+1 - ti)
The following plot shows the raw output of the y position of the IR LED and also the calculated velocity and acceleration using differentiation.
Thursday, September 30, 2010
Installation VS2003 on Window7
- หลังจากที่ใส่แผ่นเข้าไปแล้วให้ คลิกขวา ที่ autorun ครับ
- เลือก Run as administrator
- จากนั้นจะเช็ค system requirement ว่าครบไหม และหลังจากที่ครบแล้ว
- คลิกที่ Visual studio 2008 เลยนะครับ (ตรงนี้ลืมเก็บภาพมาให้ดู)
- เลือก I agree พร้อมกับใส่ product key กับ user แล้วคลิก continue
ก็จะไปหน้าถัดไป เพื่อเช็คว่า disk พอกับการ install หรือไม่ 
- จากนั้นก็เลือก Install Now! เลยครับ
- รอ ครับ รอ รอเป็นนักโบราณคดี
- แล้วก็รอ ต่อไป ผ่านไปแล้ว 10 นาที
- มาแล้ว และมันก็บอกให้ใส่แผ่านที่สองเข้าไป

- พร้อมใส่แผ่นที่สองเลยครับ เสร็จแล้วก็คลิก OK และรอ หว่าง install

- และแล้วก็เสร็จซะที


Install FrontPage Server Extensions on Window 7
Introduction
As most people that have installed IIS 7.0 on Windows Vista and Windows Server© 2008 have realized, there are no options to install the FrontPage Server Extensions, leaving only two ways to edit your Web site if it is hosted on a Windows Vista or Windows Server 2008 computer:
- Edit the Web site locally by using the file system.
- Use FTP to upload your files to a remote Windows Vista or Windows Server 2008 computer.
Microsoft realizes that the FrontPage Server Extensions are essential to many Web hosting companies and developers, and has worked with Ready-to-Run Software to release a version of the FrontPage 2002 Server Extensions (FPSE 2002) for Windows Vista and Windows Server 2008. This version of FPSE 2002 is available for x86 (32-bit) and x64 (64-bit) Windows Vista and Windows Server 2008 as a separate download for IIS 7.0, and you can download this version by clicking the following URL:
In This Walkthrough
- FPSE Prerequisites
- FPSE Installation on Windows Vista or Windows Server 2008
- Extending Web Sites with FPSE
- Removing FPSE from Web Sites
Notes:
- The FrontPage 2002 Server Extensions (FPSE 2002) are not supported for IIS 7.5 on Windows 7 or Windows Server 2008 R2. If you attempt to install FPSE 2002 on Windows 7 or Windows Server 2008 R2, you should receive several installation errors, following which the server extensions will fail to work.
- This release of the FrontPage 2002 Server Extensions (FPSE 2002) is supported Ready-to-Run Software. More information about Ready-to-Run Software is available at the following URL:
-
This version of FPSE 2002 introduces no new functionality; it is essentially the same version of FPSE 2002 that was created for Windows Server 2003, but it has been updated to work on Windows Vista or Windows Server 2008. By way of additional explanation, FPSE 2002 is part of the Office XP system of products. The Office XP system, including FPSE 2002, left mainstream support on July 11th, 2006, according to the Office lifecycle policy. Because Microsoft's support policy is to remove software from the Download Center that is no longer supported, FPSE 2002 was removed from the Microsoft Download Center at that time as a separate product. FPSE 2002 continues to be available and supported on Windows Server 2003 through the Add Windows Components section of the Add/Remove Programs control panel.
FPSE Prerequisites
Supported Platforms
This version of the FrontPage Server Extensions is only supported on the following platforms:
- Windows Server 2008:
- All SKUs
- Windows Vista:
- Business
- Enterprise
- Ultimate
- Home Premium
Note: FPSE 2002 is not supported for IIS 7.5 on Windows 7 or Windows Server 2008 R2
Required Role Services and Features
The following role services and features are required to install the FrontPage 2002 Server Extensions (FPSE 2002) on Windows Vista or Windows Server 2008. If they are not already installed on your computer when you install FPSE 2002, they will be installed for you automatically. If you do not want these role services and features installed on your computer, you cannot install FPSE 2002.
- Web Server (IIS) Role Services:
- Web Server
- Common HTTP Features
- Static Content
- Default Document
- Directory Browsing (See note 1)
- HTTP Errors (See note 1)
- Application Development
- ISAPI Extensions
- ISAPI Filters
- Health and Diagnostics
- HTTP Logging (See note 1)
- Request Monitor (See note 1)
- Security
- Windows Authentication or Basic Authentication (See note 2)
- Request Filtering
- Performance
- Static Content Compression (See note 1)
- Common HTTP Features
- Management Tools
- IIS Management Console (See note 1)
- IIS 6 Management Compatibility
- IIS 6 Metabase Compatibility
- Web Server
- Features:
- Windows Process Activation Service
- Process Model
- Windows Process Activation Service
Notes:
- These role services are required to install the FrontPage Server Extensions, but they are optional once installation has completed. After installation is complete, you can use Server Manager to remove one or more of the optional role services if you do not require the functionality that they provide. However, most of these optional role services are useful for configuring and monitoring your Web server.
- The following authentication method is required by the FrontPage Server Extensions depending on your version of Windows:
- Windows Authentication is required for all versions of Windows Server 2008 and all versions of Windows Vista except Windows Vista Home Premium.
- Basic Authentication is required for Windows Vista Home Premium.
FPSE Installation on Windows Vista or Windows Server 2008
Downloading FPSE
To install the FrontPage 2002 Server Extensions (FPSE 2002) on Windows Vista or Windows Server 2008, begin by downloading the installation package from the following URL:
After you have downloaded the FPSE 2002 installation package, you need to make sure that you install the FrontPage Server Extensions using full administrative permissions. This is best accomplished using one of two methods:
- Log in to your computer using the local "administrator" account, then double-click the installation package to being the installation process.
- If you are logged in using an account with administrative permissions that is not the local "administrator" account, open a command prompt using the "Run as Administrator" option, then use the following command to start the installation process:
msiexec /i\ .msi
Note: The above steps are required because the User Account Control (UAC) security component in the Windows Vista and Windows Server 2008 operating systems will prevent the FPSE 2002 installation package from installing correctly. For more information about UAC, please see the following documentation:
Installing FPSE
The installation process will first present you with an End-User License Agreement, which you may choose to accept or cancel, but acceptance is required to continue installation. If you accept the terms of the license agreement and click Next, if any of the prerequisites are not installed then the installation package will present you with a list of the role services and features that are required to install FPSE 2002. If you do not want these role services and features installed on your computer, click Cancel to cancel the installation. If you click Next, the installation package will present you with a list of optional role services that are used by some additional FrontPage features. These role services are not required by FPSE 2002, and their descriptions will list which FrontPage features use each role service. After choosing any additional role services, you can click Next and then Install to being the actual installation process.
Note: Unlike previous versions of the FrontPage Server Extensions, the installation process will only create the "MSSharePointAppPool" application pool and the FrontPage Server Administration Web site (also called the Microsoft SharePoint Administration Web site). Therefore no Web sites will have the FrontPage Server Extensions installed after you have completed the installation process.
Extending Web Sites with FPSE
After you set up FrontPage 2002 Server Extensions (FPSE 2002) on your server, you must extend a Web site or virtual server with FPSE 2002 before you can open the Web site using an authoring tool.
You can extend the server one of two ways:
- By using HTML Administration pages.
- By using the install operation with the command-line tools.
Note: Extending a Web site does not configure any authentication methods. After installing FPSE 2002 on a Web site, you will need to configure an authentication method, such as Windows or Basic Authentication, before your users will be able to open or publish to the Web site.
Using HTML Administration Pages to Extend a Web Site
To extend a Web site using HTML Administration pages on Windows, use the following steps:
- Click Start, point to Programs, point to Administrative Tools, and then click Microsoft SharePoint Administrator to open the Server Administration page.
- In the list of virtual servers, click Extend next to the virtual server you want to extend.
- In the Administrator box, type the user name for the administrator of the virtual server.
- Click Submit.
Note: Using the HTML Administration pages gives you the most flexibility in choosing which options you want enabled after you extend your server.
Using the Command Line to Extend a Web Site
You can extend a Web site by using the command-line tools, owsadm or owsrmadm. These tools are located in the "%ProgramFiles%\Common Files\Microsoft Shared\Web Server Extensions\50\bin" folder. To extend a Web site, use the install operation, which takes the following parameters.
| Parameter | Short Form | Description |
|---|---|---|
| Port | -p | The port number. If missing, this parameter defaults to port 80. This value can be a site instance number, such as LM/W3SVC/1. To determine the site instance number to use, see the note below. |
| Username | -u | If your server is part of a domain, the domain name and your user name. For example, MyDomain\MyUserName. |
Note: To determine which site instance number to use, open the IIS manager and select the "Sites" node in the tree. The ID column in the site list contains the unique identifier for each site, which you would use in the site instance number. For example, if a site has an ID of 3, the site instance number would be LM/W3SVC/3.
The following example shows the syntax for the install operation on Windows:
owsadm.exe –o install –p-u
Note: For a complete list of the parameters required for the install operation and their descriptions, see Command-line Operations.
Removing FPSE from Web Sites
You can temporarily or permanently remove FrontPage 2002 Server Extensions on a particular server. To temporarily remove the extensions so you can clean or restore your site, use the Uninstall command. In this mode, much of the data about your site is preserved, so you can extend the virtual server again and return to your original configuration.
To permanently remove FrontPage 2002 Server Extensions, use the Full Uninstall option. Doing so also removes any other files and folders that FrontPage 2002 Server Extensions installed. All of the data about your site (excluding actual site content) is deleted when you perform a full uninstall, so be sure that is what you want before you use the Full Uninstall option.
Using HTML Administration Pages to Remove
You can use HTML Administration pages to uninstall FrontPage 2002 Server Extensions. To remove FrontPage 2002 Server Extensions from a web site:
- Open the Server Administration page.
- In the list of virtual servers, next to the virtual server you want to uninstall, click Administration.
- Under Administration, click Uninstall FrontPage 2002 Server Extensions.
- If you want to uninstall FrontPage 2002 Server Extensions completely, including the metadata about your Web site, next to Full Uninstall, click Yes.
- Click Uninstall.
Using the Command Line to Remove
You can remove the FrontPage 2002 Server Extensions from a Web site using the command-line tools, owsadm or owsrmadm. These tools are located in the "%CommonProgramFiles%\Microsoft Shared\Web Server Extensions\50\bin" folder. To remove FPSE 2002 from a Web site, you use the uninstall or fulluninstall operations. The uninstall operation removes FrontPage 2002 Server Extensions from your server. The full uninstall operation also removes the data about your site (excluding actual site content) from your virtual server.
The uninstall and fulluninstall operations take the port parameter. The following example shows the syntax for removing FPSE from a web site:
owsadm.exe –o uninstall –pSource : http://learn.iis.net/page.aspx/134/installing-the-frontpage-server-extensions-on-iis-70/

