Debian Squeeze, Squid, Kerberos/LDAP Authentication, Active Directory Integration And Cyfin Reporter

No Comments

This document covers setup of a Squid Proxy which will seamlessly integrate with Active Directory for authentication using Kerberos with LDAP as a backup for users not authenticated via Kerberos. Authorisation is managed by Groups in Active Directory. This is especially useful for Windows 7 clients which no longer support NTLMv2 without changing the local computer policy. It is capable of using white lists and black lists for site access and restrictions.

For this guide the following examples are utilised – you should update any sections with the clients domain, hostnames and IP’s where necessary.

  • Domain = example.local
  • Subnet = 192.168.0.0/24
  • Proxy Server: IP = 192.168.0.26, HOSTNAME = squidproxy.example.local
  • Windows Server 1: IP = 192.168.0.1, HOSTNAME = domaincontroller1.example.local
  • Windows Server 2: IP = 192.168.0.10, HOSTNAME = server2.example.local

A base install of Debian Squeeze is assumed as well as basic Debian administration skills. vi is assumed as the text editor.

More

Google Analytics for WordPress

No Comments

Google Analytics for WordPress

Configuring Google Analytics for WordPress

ที่มา: http://wordpress.org/extend/plugins/google-analytics-for-wordpress/

ฟังก์ชั่นแปลง UTF-8 ให้เป็น TIS-620

No Comments

ไปอ่านเจอบทความแล้วน่าสนใจดีครับ เลยเอามาเก็บใว้เป็นความรู้

ปกติแล้วการแปลงอักขระ ระหว่าง UTF-8 เป็น TIS-620 เราสามารถใช้ ฟังก์ชั่น inconv แปลงได้ โดยมีรูปแบบ
โค๊ด:
<?php
$string = iconv( ‘UTF-8′ , ‘TIS-620′ , $string );
?>

แต่ในบางครั้ง อาจพบว่าบาง Server ไม่รองรับฟังก์ชั่นนี้ครับ ทางแก้ที่ดี คือติดต่อ Server เพิ่อให้ทาง Server เปิดการทำงานในส่วนนี้ให้ แต่ถ้าทำไม่ได้ ให้ลองใช้ ฟังก์ชั่นนี้ดูครับ
โค๊ด:
<?php
function utf2tis( $string )
{
 $str = $string;
 $res = “”;
 for ( $i = 0 ; $i < strlen( $str ) ; $i++ )
 {
  if ( ord( $str[$i] ) == 224 )
  {
   $unicode = ord( $str[$i+2] ) & 0x3F;
   $unicode |= ( ord( $str[$i+1] ) & 0x3F) << 6;
   $unicode |= ( ord( $str[$i] ) & 0x0F ) << 12;
   $res .= chr( $unicode – 0x0E00 + 0xA0 );
   $i += 2;
  }
  else
  {
   $res .= $str[$i];
  };
 };
 return $res;
};
?>

ที่มา : http://www.goragod.com/

ทดสอบ i-mobile 3GX กับ HP iPAQ 612 Internet Sharing ผ่าน USB

No Comments

วันนี้ได้ sim i-mobile 3GX มาจากน้องที่ทำงานก็มางมๆ อยู่พักใหญ่กว่าจะใช้ได้ เพราะเครื่อง iPAQ612 ค่อนข้างเก่า จึงไม่มีตัวช่วยในการเซ็ตอัพค่าต่างๆ ของระบบ i-mobile หรือ TOT3G

ขั้นตอนการตั้งค่าHP iPAQ 612 ให้ใช้งาน i-mobile 3GX

  1. ใส่ซิม
  2. รอซักพักจะขึ้นสัญญาณ TOT Mobile แสดงว่ามีสัญญาณ 3G ของ TOT บริเวณนี้
  3. ที่เครื่อง iPAQ คลิก Start > Setting
  4. คลิกแท็บ Connection
  5. คลิกที่ไอคอน Connections
  6. เลือกเมนู Add a new modem connection
  7. กำลังพิมพ์เพลินๆ iPAQ เน็ตตัดไปซะงั้น เลยสลับไปต่อ GPRS กับอีกเครื่องหนึ่งก่อน (แป็บเดียวเสียไปเกือบ 4 บาทแล้ว ดีจังแจ้งจำนวนเงินหลัง Disconnect เลย)

  8. กลับมาต่อเรื่องของเราดีกว่า ตั้งค่าชื่อ Connection เป็น TOT3G
  9. ช่อง modem เลือกเป็น Cellular Line (GPRS,3G) คลิก Next
  10. Access point name (APN) ตั้งค่าเป็น internet แล้วคลิก Next
  11. คลิก Finish
  12. เสร็จขั้นตอนการตั้งค่าให้ใช้งาน 3G

ขั้นตอนการตั้งค่าHP iPAQ 612 ให้ใช้งานแชร์ Internet ไปยังคอมพิวเตอร์ผ่านสาย USB

  1. ต่อสาย USB
  2. รอซักพัก ให้คอมพิวเตอร์เจอเครื่อง iPAQ ของเราก่อน
  3. ที่เครื่อง iPAQ คลิก Start > Programs
  4. คลิกที่ไอคอน Internet Sharing
  5. ช่อง PC Connection เลือกเป็น USB
  6. ช่อง Network Connection เลือกเป็น TOT3G
  7. คลิก Connect
  8. เสร็จขั้นตอนการแชร์ Internet

ขอไม่พิมพ์มาก เอารูปภาพที่ Capture ไว้ไปดูกันเองนะครับ ตามนี้เลย

ทดสอบความเร็ว (ผ่าน USB)

ทดสอบความเร็ว (ผ่าน Bluetooth)

 

แถมผลการทดสอบของ AIS GPRS ผ่าน NOKIA 5310

Hello world!

No Comments

Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!