ต้องการใช้ asp บน windows 7 จะต้องกำหนดค่า ใน iis เลือกใช้ asp asp.net อื่นๆที่ต้องการก่อน
ใน windows on or off
วันอังคารที่ 30 สิงหาคม พ.ศ. 2554
วันศุกร์ที่ 26 สิงหาคม พ.ศ. 2554
clone ghost unmont
clone ghost unmont
case study 26/8/54
เมื่อทำการ clone hd แล้ว พบว่า มองไม่เห็น partition of slave hd เพราะไม่ได้ mount
จะใช้ patition magic ดูก็ไม่เห็น partition ที่ clone มา ใช้ tools ใน hiren ชื่อ find partition and mount ก็ได้แค่เห็นว่า มี partition ที่ clone มาแต่ไม่สามารถทำให้ visible ได้
แต่พบ tools ชื่อ disk genius 3.2 ก็สามารถ เรียกใช้ partition ที่ไม่ได้ unmount ได้ โดยทำ rebuild or restore formated partition
เมื่อทำการ clone hd แล้ว พบว่า มองไม่เห็น partition of slave hd เพราะไม่ได้ mount
จะใช้ patition magic ดูก็ไม่เห็น partition ที่ clone มา ใช้ tools ใน hiren ชื่อ find partition and mount ก็ได้แค่เห็นว่า มี partition ที่ clone มาแต่ไม่สามารถทำให้ visible ได้
แต่พบ tools ชื่อ disk genius 3.2 ก็สามารถ เรียกใช้ partition ที่ไม่ได้ unmount ได้ โดยทำ rebuild or restore formated partition
วันพุธที่ 24 สิงหาคม พ.ศ. 2554
กล้อง cctv h.264 model 9808
การ์ด cctv h.264 model 9808 ติดตั้งบน window xp sp3 ทำหน้าที่เป็น CCTV Server อยู่หลัง firewall ใช้ ubuntu 8.10 เป็น proxy และ gateway
โดยทำการ forward port TCP/IP9000 9001 9002 20009 ตามค่าปรกติ ในเอกสารคู่มืือที่ให้มา
ตอนที่ซื้อมาราคาการ์ด 3000-4000 จำมะได้น่าประมาณนี้ ซื้อมาให้ที่
office ประมาณเดือน 2/2554 และผมมาเขียนบทความให้ทีหลัง
ตอนที่ซื้อมาราคาการ์ด 3000-4000 จำมะได้น่าประมาณนี้ ซื้อมาให้ที่
office ประมาณเดือน 2/2554 และผมมาเขียนบทความให้ทีหลัง
ภาพหน้าต่าง login เมื่อ remote เข้ามาโดย ใช้ internet explorer (บังคับให้ใช้ได้เฉพาะ ie เท่านั้น)
ภาพในเครื่อง cctv server(ด้านล่าง)
ผมได้เขียน สคริปเพิ่มเติมเพื่อให้สามารถรู้ได้ว่าใครรีโมตเข้ามาในขณะนี้
โดยทำเป็นไฟล์ bat ทำงานบน cctv server ตั้งชื่อ ว่า useron.bat
@echo off
set b=0
:x
cls
set /a b=b+1
echo round = %b% , peroid in second = 5
netstat -n | findstr /i /r "9001"
PING 1.1.1.1 -n 5 -w 1000 > null
if %b% EQU 10 set b=0
goto x
set b=0
:x
cls
set /a b=b+1
echo round = %b% , peroid in second = 5
netstat -n | findstr /i /r "9001"
PING 1.1.1.1 -n 5 -w 1000 > null
if %b% EQU 10 set b=0
goto x
หรือดาวน์โหลดไฟล์ UserOn.bat ได้ที่ลิงค์ http://www.upload-thai.com/download.php?id=22e1d46e301fed04526e47871f50e954
ภาพข้างล่างเมื่อมีเครื่องใดรีโมตเข้ามาดูกล้อง ในวงแลนเดียวกัน
ภาพข้างล่างเมื่อ remote จาก เครื่องข้างนอกเข้ามา
วันอาทิตย์ที่ 21 สิงหาคม พ.ศ. 2554
รวบรวม script น่าสนใจ 1
1. dhtml HTML event (js ในบรรทัดเดียว) สังเกตไม่ต้องมี ; ต่อท้ายก็ได้
<html>
<body>
<h1 onclick="this.innerHTML='Ooops!'">Click on this text</h1>
</body>
</html>
2. ดู this และการอ้าง id
<html>
<head>
<script type="text/javascript">
function changetext(id)
{
id.innerHTML="Ooops!";
}
</script>
</head>
<body>
<h1 onclick="changetext(this)">Click on this text</h1>
</body>
</html>
หรือ 1 ตัวอย่าง
<html>
<head>
<script type="text/javascript">
function lighton(id)
{
id.src="bulbon.gif";
}
function lightoff(id)
{
id.src="bulboff.gif";
}
</script>
</head>
<body>
<img id="myimage" onmousedown="lighton(this)" onmouseup="lightoff(this)" src="bulboff.gif" width="100" height="180" />
<p>Click and hold to turn on the light!</p>
</body>
</html>
3. การเปลี่ยน style ด้วย html dom
current HTML element this.style.property=new style
<h1 onclick="this.style.color='red'">Click Me!</h1>
specific HTML element document.getElementById(id).style.property=new style
<h1 id="h1" onclick="document.getElementById('h1').style.color='red'">Click Me!</h1>
4.อีก case กรณี current html element ไม่ต้องใส่ this ก็ได้
<html>
<body>
<h1 onmouseover="style.color='red'"
onmouseout="style.color='black'">
Mouse over this text</h1>
</body>
</html>
<html>
<body>
<h1 onclick="this.innerHTML='Ooops!'">Click on this text</h1>
</body>
</html>
2. ดู this และการอ้าง id
<html>
<head>
<script type="text/javascript">
function changetext(id)
{
id.innerHTML="Ooops!";
}
</script>
</head>
<body>
<h1 onclick="changetext(this)">Click on this text</h1>
</body>
</html>
หรือ 1 ตัวอย่าง
<html>
<head>
<script type="text/javascript">
function lighton(id)
{
id.src="bulbon.gif";
}
function lightoff(id)
{
id.src="bulboff.gif";
}
</script>
</head>
<body>
<img id="myimage" onmousedown="lighton(this)" onmouseup="lightoff(this)" src="bulboff.gif" width="100" height="180" />
<p>Click and hold to turn on the light!</p>
</body>
</html>
3. การเปลี่ยน style ด้วย html dom
current HTML element this.style.property=new style
<h1 onclick="this.style.color='red'">Click Me!</h1>
specific HTML element document.getElementById(id).style.property=new style
<h1 id="h1" onclick="document.getElementById('h1').style.color='red'">Click Me!</h1>
4.อีก case กรณี current html element ไม่ต้องใส่ this ก็ได้
<html>
<body>
<h1 onmouseover="style.color='red'"
onmouseout="style.color='black'">
Mouse over this text</h1>
</body>
</html>
วันเสาร์ที่ 20 สิงหาคม พ.ศ. 2554
javascript html dom checkbox
กรณีโค้ดด้านล่าง คือ checkbox ที่สร้างโดย msoffice excel เมือต้องการ เซตค่า กาในช่อง checkbox
<OBJECT class=shape id=sv_ot height=25 width=146
classid=CLSID:8BD21D40-EC42-11CE-9E0D-00AA006002F3 v:shapes =
"_x0000_s1027"><PARAM NAME="VariousPropertyBits" VALUE="1015023635"><PARAM NAME="BackColor" VALUE="14737632"><PARAM NAME="ForeColor" VALUE="2147483656"><PARAM NAME="MaxLength" VALUE="0"><PARAM NAME="BorderStyle" VALUE="0"><PARAM NAME="ScrollBars" VALUE="0"><PARAM NAME="DisplayStyle" VALUE="4"><PARAM NAME="MousePointer" VALUE="0"><PARAM NAME="Size" VALUE="3863;661"><PARAM NAME="PasswordChar" VALUE="0"><PARAM NAME="ListWidth" VALUE="0"><PARAM NAME="BoundColumn" VALUE="1"><PARAM NAME="TextColumn" VALUE="65535"><PARAM NAME="ColumnCount" VALUE="1"><PARAM NAME="ListRows" VALUE="8"><PARAM NAME="cColumnInfo" VALUE="0"><PARAM NAME="MatchEntry" VALUE="2"><PARAM NAME="ListStyle" VALUE="0"><PARAM NAME="ShowDropButtonWhen" VALUE="0"><PARAM NAME="ShowListWhen" VALUE="1"><PARAM NAME="DropButtonStyle" VALUE="1"><PARAM NAME="MultiSelect" VALUE="0"><PARAM NAME="Value" VALUE="0"><PARAM NAME="Caption" VALUE="ทำงานล่วงเวลา"><PARAM NAME="PicturePosition" VALUE="458753"><PARAM NAME="BorderColor" VALUE="2147483654"><PARAM NAME="SpecialEffect" VALUE="2"><PARAM NAME="Accelerator" VALUE="0"><PARAM NAME="GroupName" VALUE="Sheet1"><PARAM NAME="FontName" VALUE="Arial"><PARAM NAME="FontEffects" VALUE="1073741824"><PARAM NAME="FontHeight" VALUE="180"><PARAM NAME="FontOffset" VALUE="0"><PARAM NAME="FontCharSet" VALUE="0"><PARAM NAME="FontPitchAndFamily" VALUE="2"><PARAM NAME="ParagraphAlign" VALUE="1"><PARAM NAME="FontWeight" VALUE="400"></OBJECT>
ให้ใช้ javascript
if ("<%=rs2.fields("sv_ot")%>" =="1")
{
document.getElementById("sv_ot").value=true;
}
else
{
document.getElementById("sv_ot").value=false;
}
<OBJECT class=shape id=sv_ot height=25 width=146
classid=CLSID:8BD21D40-EC42-11CE-9E0D-00AA006002F3 v:shapes =
"_x0000_s1027"><PARAM NAME="VariousPropertyBits" VALUE="1015023635"><PARAM NAME="BackColor" VALUE="14737632"><PARAM NAME="ForeColor" VALUE="2147483656"><PARAM NAME="MaxLength" VALUE="0"><PARAM NAME="BorderStyle" VALUE="0"><PARAM NAME="ScrollBars" VALUE="0"><PARAM NAME="DisplayStyle" VALUE="4"><PARAM NAME="MousePointer" VALUE="0"><PARAM NAME="Size" VALUE="3863;661"><PARAM NAME="PasswordChar" VALUE="0"><PARAM NAME="ListWidth" VALUE="0"><PARAM NAME="BoundColumn" VALUE="1"><PARAM NAME="TextColumn" VALUE="65535"><PARAM NAME="ColumnCount" VALUE="1"><PARAM NAME="ListRows" VALUE="8"><PARAM NAME="cColumnInfo" VALUE="0"><PARAM NAME="MatchEntry" VALUE="2"><PARAM NAME="ListStyle" VALUE="0"><PARAM NAME="ShowDropButtonWhen" VALUE="0"><PARAM NAME="ShowListWhen" VALUE="1"><PARAM NAME="DropButtonStyle" VALUE="1"><PARAM NAME="MultiSelect" VALUE="0"><PARAM NAME="Value" VALUE="0"><PARAM NAME="Caption" VALUE="ทำงานล่วงเวลา"><PARAM NAME="PicturePosition" VALUE="458753"><PARAM NAME="BorderColor" VALUE="2147483654"><PARAM NAME="SpecialEffect" VALUE="2"><PARAM NAME="Accelerator" VALUE="0"><PARAM NAME="GroupName" VALUE="Sheet1"><PARAM NAME="FontName" VALUE="Arial"><PARAM NAME="FontEffects" VALUE="1073741824"><PARAM NAME="FontHeight" VALUE="180"><PARAM NAME="FontOffset" VALUE="0"><PARAM NAME="FontCharSet" VALUE="0"><PARAM NAME="FontPitchAndFamily" VALUE="2"><PARAM NAME="ParagraphAlign" VALUE="1"><PARAM NAME="FontWeight" VALUE="400"></OBJECT>
ให้ใช้ javascript
if ("<%=rs2.fields("sv_ot")%>" =="1")
{
document.getElementById("sv_ot").value=true;
}
else
{
document.getElementById("sv_ot").value=false;
}
สมัครสมาชิก:
บทความ (Atom)