15 พ.ค. 2556

Poor network performance on Windows 2008 Server virtual machine


Symptoms

A virtual machine on a Windows 2008 Server may experience these symptoms:
  • Poor network performance
  • Slow network transfers

Resolution

To resolve this issue, ensure that the virtual machine:

To disable TCP Segmentation Offloading in Windows 2008:
  1. Run the command:
  2. 1. netsh int tcp set global chimney=disabled
    2. netsh int tcp set global rss=disabled
    3. netsh int tcp set global netdma=disabled
  3. Reboot the virtual machine.

Note: Using the provided registry value only changes one of many parameters, while the above command updates all the necessary parameters.

7 ธ.ค. 2555

ใช้ Crystal Report ผ่านทาง ADO




เริ่มจากทำความเข้าใจความหมายของศัพท์แต่ละตัวก่อน (เป็นความเข้าใจส่วนบุคคล โปรดใช้วิจารณญานในการอ่าน)

.NET Framework คือแพลตฟอร์มสำหรับพัฒนาซอฟต์แวร์สร้างขึ้นโดยไมโครซอฟท์ โดยรองรับภาษาดอตเน็ตมากกว่า 40 ภาษา ซึ่งมีไลบรารีเป็นจำนวนมากสำหรับการเขียนโปรแกรม รวมถึงบริหารการดำเนินการของโปรแกรมบนดอตเน็ตเฟรมเวิร์ก 

.Net Data Provider คือ ตัวที่ใช้ติดต่อกับฐานข้อมูล ซึ่งมาแทนที่ ODBC แบบเคยใช้ซึ่งมีข้อจำกัดบางปรการ ในความคิดผม มันคงคล้ายๆถนน ถ้า DataBase เปรียบเสมือน อาคารคลังข้อมูล

หลังจากที่เชื่อมต่อกับฐานข้อมูลแล้ว ก็ต้องมีรถขนข้อมูล ซึ่งมีด้วยกัน 2 แบบ
1.Data Reader คือสามารถขนข้อมูลออกจากฐานข้อมูลได้อย่างเดียว
2.Data Adapter คือสามารถขนข้อมูลได้ทั้งไปและกลับ

DataReader  มีจุดเด่นในเรื่องประสิทธิภาพ และการใช้งานหน่วยความจำที่น้อยกว่าการนำข้อมูลทั้งหมดขึ้นมาในคราวเดียว การทำงานของ DataReader นั้น จำเป็นจะต้องมีการเชื่อมต่อกับแหล่งข้อมูลตลอดเวลา จนกว่าข้อมูลทั้งหมดจะถูกอ่านขึ้นมาได้
 ·
Data Adapter เป็นการจำลองโครงสร้างของตารางที่เป็นผลลัพธ์ไว้ภายในหน่วยความจำ (ลักษณะคล้ายการ Cache) คุณจึงสามารถเรียกดูข้อมูลเรคคอร์ดใด ๆ ก็ได้แม้ว่าการติดต่อกับระบบจัดการฐานข้อมูลจะถูกปิดไปแล้วก็ตาม  แต่ข้อเสียของการใช้ Data Adapter และ DataSet นั้นก็คือ ปริมาณหน่วยความจำที่ใช้ เนื่องจากข้อมูลทั้งหมดจะต้องถูกนำขึ้นมาเก็บไว้ในหน่วยความจำหลัก

DataSet  คือกลุ่มของข้อมูลหลาย ๆ Table ถูกจัดรวมไว้ในก่อนกลุ่มเดียวกัน DataSet เป็นผลลัพธ์ทีได้จาก DataAdapter ซึ่งหลังจากที่ DataAdapter

DataTable คือกลุ่มของข้อมูลที่ถูกจัดเก็บไว้ในชุดเดียวกัน โดยเปรียบเหมือนแผ่นตาราง 1 ตารางที่แบ่งเป็น Cloumn (แนวตั้ง) และ Rows (แนวนอน) ที่ถูกจัดเก็บไว้เพียง 1 Table เท่านั้น


ผมต้องการเอาข้อมูล 2 table มา join กันแล้วมาเก็บไว้ที่ DataTable ก่อน แล้วใช้ Crystal Report ดึงข้อมูลมาแสดงผล

ขั้นตอนทั้งหมดมีดังนี้
1.สร้าง Project ใหม่
2.สร้าง Datasource
3.สร้าง DataSet และ DataTable
3.สร้าง Crystal Report
4.สร้างส่วนการเชื่อมต่อกับฐานข้อมูลและการอ่านข้อมูล
5.สร้าง Crystal Report Viwer

1.สร้าง Project ใหม่


สร้าง Data Source



2.สร้าง DataSet และ DataTable

คลิกขวาที่ชื่อ Project -> Add -> New Item 

คลิกขวาที่ Form ของ DataSet -> Add -> DataTable  



Project->Add New Item-> crystal report


3.สร้าง Crystal Report 



http://www.thaicreate.com/asp.net/asp.net-dataadapter.html
http://www.thaicreate.com/dotnet/crystal-report-vb-net-cs.html
asds
http://www.codeproject.com/Articles/142064/Step-by-Step-Creation-of-Crystal-Report-using-its
https://docs.google.com/open?id=0B-qjfg_zV70cSFhOZi0tYlZ2cUE
http://www.timesheetsmts.com/adotutorial.htm
http://www.thaiadmin.org/board/index.php?topic=51695.0
http://computer-programming-forum.com/67-vb-crystal-report/1b6a26a8ff55f30a.htm
http://forums.devshed.com/database-management-46/server-has-not-yet-been-opened-crystal-reports-error-61527.html
http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp?topic=/com.ibm.db2.udb.doc/ad/samples/vb/s-spCall-bas.htm
http://blog.aggregatedintelligence.com/2008/08/crystal-reports-viewer-physical.html

20 ต.ค. 2555

Configure 3COM Baseline 2250 PLUS and 2226 PLUS

First Download
1. 3Com Discovery Version 6.0  for Baseline 2226 PLUS 
2. 3COM Detect for 2250 PLUS

*** Must plug LAN into  the member port of VLAN 1.
And Read this Manaul

18 ต.ค. 2555

(Solved) Ubuntu 11.10 Waiting up to 60 more seconds for network configuration…

Ubuntu 11.10 was released for 1 year ago but I have just found the new feature of Oneiric Ocelot.My problem is the mainboard of Server  have stopped working for few days ago therefore I need to buy a new mainboard for replace my old one.After i got a new one and installed it. Every time, i will got the  message  " Waiting up to 60 more seconds for network configuration…" after  my ubuntu boot.

To solve the problem, you can just remove the calls to sleep, by commenting the out ( or at least reduce the wait time if your network really does need to wait )

nano /etc/init/failsafe.conf

find word "sleep 40" and "sleep 59" and insert # in front of them and save file

The error message is disappeared but there is one of network card which is not worked.
And this is the last solution.

nano -w /etc/udev/rules.d/70-persistent-net.rules

----------------------------------
Insert all of this at the last row.

# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="8139too", ATTR{address}=="?*", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
----------------------------------------------------------------------------



http://www.codewhirl.com/2011/10/ubuntu-11-10-waiting-up-to-60-more-seconds-for-network-configuration/

30 ก.ค. 2555

Firmware Upgrade Procedure For NEC SL1000 (Out of Manual)

ถ้าอยาก Update Main Firmware เป็น version ที่ใหม่กว่าเดิม ก็ทำตามคู่มือนี้
แต่ถ้าคุณ Update ผิด version  เหมือนผมในตอนนี้ ไม่จำเป็นต้องส่งตู้เข้าศูนย์ฯ เราแก้ไขเองได้ และไม่ต้องไปซื้ออุปกรณ์เสริม(PZ-VM21)อะไรอีก ผมดันไป Download Main Firmware v1.50 จากเวบหนึ่งมาใส่ที่ตู้สาขาผลลัพท์ที่ได้ก็คือ ใช้ PcPro และ Mycalls เชื่อมต่อไม่ได้อีก  แต่ยังสามารถ Config ผ่านทางเวบ(port 80)ได้ตามปกติ

ต่อไปนี้เป็นวิธีการ Update Main Firmware ที่ไม่มีในคู่มือนะครับ

ของจำเป็นที่ต้องมี
Main Firmware v1.00
PcPro v.1.00

Step One: คลาย Zip ไพล์ไปไว้ที่ Drive C: ตั้งชื่อว่า Folder ว่า "Draco-A"


Step Two: เปิดหน้าต่าง Command Promt แล้วพิมพ์ดังนี้ หรือตามรูปด้านล่าง
cd..
cd..
cd Draco-A
ftp your_SL1000_ip
tech   #username
12345678  #Password
put main.bin
put mainex.bin
put vmdsp532.bin
put vocallo.bin
put adspb.bin
put adspeAF00.bin
quit

Login เข้า Nec Sl1000 ผ่านทาง โปรแกรม FTP แล้วเริ่มขั้นตอนโอนไพล์ไปที่ตู้ SL1000

เข้า Command Promt อีกครั้ง
cd ..
cd ..
cd Draco-A
cd Firmware
ftp 192.168.0.12
tech #username
12345678 #
pwd
cd firmware
pwd
put*.drc
quit


ต้อง Restart ตู้สาขา เพื่อ Reload ข้อมูล Firmware แล้วก็ลองใช้ PcPro เชื่อมต่อดู

3 ก.ค. 2555

เอา ASUS RT-N12B1 มาทำ Access Point+ WDS

เพราะไม่อยากเดิยสายแลนก็เลยต้องทำ WDS 

Step 1.  Upgrade Firmware from Original version to DD-WRT
Step 2. Upgrade Firmware from DD-WRT to Tomato
Step 3. Config the both Acces point  like this picture. (Same SSID, Channel, Security,Subnet mask)
WDS does not support WPA2 in G mode.You can only use WPA. 
And you should enter the mac address of another Access Point that link with.