วันศุกร์ที่ 14 ธันวาคม พ.ศ. 2561

Ubuntu Hosts file

จะกำหนด hosts ให้กับ ubuntu ต้องทำยังไง ก็ไปที่นี่เลยครับ

sudo nano /etc/hosts

แล้วก็เพิ่ม/แก้ไขได้ตามสะบายครับ เพิ่ม/แก้ไขแล้วก็ลองเรียกใช้งานดูครับ

โชคดี

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

Outlook 2007 / 2010 เปิดไม่ได้ มี Error | outlook.exe /resetnavpane

Outlook 2007 / 2010 เปิดไม่ได้ มี Error แต่ผมจำไม่ได้ว่า Error ขึ้นว่าอ่ะไรนะครับ เพราะบางครั้งไม่ได้แก้ที่การ scan .pst แล้วหาย แต่การ reset อีกแบบที่ผมกำลังแนะนำ ผมทำแล้วอาการเปิดไม่ได้หายทันที  ลองทำแบบนี้ดูครับ

กดปุ่ม Windows+Run

พิมพ์

outlook.exe /resetnavpane

แล้วก็ Enter หรือกดปุ่ม OK


โชคดีครับ

Excel Error: There was a problem sending the command to the program


ใน Microsoft Excel ข้อความแสดงข้อผิดพลาดว่า "There was a problem sending the command to the program"

Mircosoft Excel 2010 และ 2013

คลิกแท็บ File แล้วคลิก Options 

คลิก Advanced เลื่อนลงไปที่ General และเอา Ignore other applications that use Dynamic Data Exchange (DDE) ออก ลองเปิด Excel ใหม่อีกรอบครับ


โชคดี

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

Arduino Dot Matrix DS3231 แก้ปัญหาเวลาไม่โชว์ printStringWithShift

Module  DS3231 ส่งค่าไปที่ dotMatrix แล้วไม่ออก หรือเป็นตัวอักษรที่อ่านไม่ได้ ไปเจอวิธีนี้มา เก็บไว้ก่อนเดี๋ยวลืม

    DateTime now = RTC.now(); 

    int dtxt = now.day();
    char dstr[0];
    itoa(dtxt, dstr,10);
    printStringWithShift("    ",15);     
    printStringWithShift(dstr,15); 
 
    int mtxt = now.month();
    char mstr[0];
    itoa(mtxt, mstr,10);
    printStringWithShift("/",15);
    printStringWithShift(mstr,15);
 
    int ytxt = now.year();
    char ystr[0];
    itoa(ytxt, ystr,10);
    printStringWithShift("/",15);
    printStringWithShift(ystr,15); 

    float tmtxt = RTC.getTemperature();
    char tmstr[0];
    itoa(tmtxt, tmstr,10);
    printStringWithShift("  Temperature : ",15);
    printStringWithShift(tmstr,15); 
     
    printStringWithShift("'C        ",15);

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

เปิดไฟล์ Excel 2007 / 2010 โดยตรงไม่ได้ เปิดแล้วเป็นหน้าขาว ต้องใช้ Open ถึงเปิดได้

กรณี เปิดไฟล์ Excel 2007 / 2010 โดยตรงไม่ได้ เปิดแล้วเป็นหน้าขาว ต้องใช้ Open ถึงเปิดได้ บางคนอาจแก้ โดยการเข้าไป ติ๊กเอาค่านึง ใน Excel Option ตามตัวอย่างในเน็ตออกแล้วหายก็โชดดีไปครับ แต่ของผมลองแล้วไม่หายค้นหาข้อมูลฝรั่งทำไว้พบว่าทำแบบนี้แล้วหาย มาดูวิธีการกันครับ

1. กดปุ่ม Windows+R (เผื่อมีคนไม่เข้าใจ หมายถึงกดปุ่ม รูป Windows ที่คีย์บอร์ดค้างไว้แล้วกดตัว R)

2. พิมพ์ Excel.exe /regserver ลงในช่องเสร็จแล้วกดปุ่ม OK

3. หลังจากขั้นตอนที่ 2. ถ้ามี Error หรืออะไรขึ้นมาก็ตอบ OK หรือ Yes ไปก่อน ผมจำหน้าจอไม่ได้ 55

4. พอโปรแกรม Excel เปิดมาเป็นหน้าขาวปกติแล้วก็ปิด Excel ไป แล้วลองเปิดไฟล์ Excel นั้นๆ อีกที

ถ้ายังเปิดไม่ได้ให้ ทำขั้นตอน 1-3 ใหม่ แล้วให้ลองเปลี่ยนไปเปิดไฟล์ Excel  อื่นๆ ดูก่อน ไฟล์ที่คิดว่าเคยเปิดได้อยู่แล้วก่อนหน้านี้ เพราะบางทีไฟล์ Excel ที่คุณพยายามเปิดอยู่ อาจจะติดไวรัสอะไรเข้าไปหรือไฟล์เสียหายแล้วทำให้ Excel ทำงานผิดปกตินั่นเองครับ

โชคดี

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

Outlook 2007 / 2010 เปิดไฟล์แนบไม่ได้ Error : right-click the folder you want to create the file in, and then click Properties on the shortcut menu to check your permissions for the folder

Outlook 2007 / 2010 เปิดไฟล์แนบไม่ได้

Error : right-click the folder you want to create the file in, and then click Properties on the shortcut menu to check your permissions for the folder

ให้ลองสร้าง Folder มา Folder นึง ชื่อ C:\TMP ก็ได้

เข้า Registry
ไปที่ Key

Outlook 2007
HKEY_CURRENT_USER\Software\Microsoft\Office\12\Outlook\Security\

Outlook 2010
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Outlook\Security\

ดับเบิ๊ลคลิ๊กที่ OutlookSecureTempFolder.
ที่ช่อง Value Data ให้แก้เป็น  C:\TMP\  เเล้วกด OK
ออกจากหน้า Registry Editor

Kill Explorer Process แล้ว Run Explorer อีกครั้ง
หรือ
Restart เครื่อง computer ก็ได้แล้วแต่ถนัด

ลองเปิดไฟล์ที่มีปัญหาดูอีกครั้ง
โชคดี ครับ

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

แก้ IP Gateway DNS ( Ubuntu )

แก้ IP Gateway DNS ( Ubuntu )
นานๆ ใช้ที ก็เลยลืม Note เอาไว้ก่อน

nano /etc/hostname

Check IP Address
ifconfig -a

Edit Interface
nano /etc/network/interfaces

Edit DNS
nano /etc/resolv.conf

Restart Interface
/etc/init.d/networking restart

จบข่าว...

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

Arduino Happy Birthday Song

//Sound frequency note By Yoshioka

float G_LL = 783.991;
float A_L = 880;
float B_L = 987.767;
float C_L = 1046.50;
float D_L = 1174.66;
float E_L = 1318.51;
float F_L = 1396.91;
float G_L = 1567.98;
float A_M = 1760.00;
float B_M = 1975.53;
float C_M = 2093.00;
float D_M = 2349.32;
float E_M = 2637.02;
float F_M = 2793.83;
float G_M = 3135.96;
float A_H = 3520.00;
float B_H = 3951.07;

void happybirthdaysong()
{
  tone(speakerPin, G_LL, 200);
  delay(200);
  tone(speakerPin, G_LL, 200);
  delay(200);
  tone(speakerPin, A_L, 400);
  delay(400);
  tone(speakerPin, G_LL, 400);
  delay(400);
  tone(speakerPin, C_L, 400);
  delay(400);
  tone(speakerPin, B_L, 800);
  delay(1000); 

  tone(speakerPin, G_LL, 200);
  delay(200);
  tone(speakerPin, G_LL, 200);
  delay(200);
  tone(speakerPin, A_L, 400);
  delay(400);
  tone(speakerPin, G_LL, 400);
  delay(400);
  tone(speakerPin, D_L, 400);
  delay(400);
  tone(speakerPin, C_L, 800);
  delay(1000); 

  tone(speakerPin, G_LL, 200);
  delay(200);
  tone(speakerPin, G_LL, 200);
  delay(200);
  tone(speakerPin, G_L, 400);
  delay(400);
  tone(speakerPin, E_L, 400);
  delay(400);
  tone(speakerPin, C_L, 400);
  delay(400);
  tone(speakerPin, B_L, 400);
  delay(400);
  tone(speakerPin, A_L, 800);
  delay(1000);

  tone(speakerPin, F_L, 200);
  delay(200);   
  tone(speakerPin, F_L, 200);
  delay(200);     
  tone(speakerPin, E_L, 400);
  delay(400);     
  tone(speakerPin, C_L, 400);
  delay(400);       
  tone(speakerPin, D_L, 600);
  delay(400);       
  tone(speakerPin, C_L, 900);
  delay(1000);         
  }

Arduino Days of Week

void daysofweek()
{
int d    = 6;         //Day     1-31
int m    = 9;       //Month   1-12
int y    = 1982;     //Year    1982

int weekdays  = (d += m < 3 ? y-- : y - 2, 23*m/9 + d + 4 + y/4- y/100 + y/400)%7;
Serial.println(weekdays);
}

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

ฮอตสปอต iPhone ไม่ได้

ปัญหาการปล่อยฮอตสปอตของ iPhone จริงๆ แล้วหลายๆ คนคิดว่ามันเป็นเรื่องง่ายๆ บางครั้งเปิดแชร์ไปยังไงก็ได้ แต่บางทีก็แชร์ยากมากๆ ต้องปิดเปิดฮอตสปอตบ่อยๆ ต้องมีการเสียบสายให้แชร์ผ่าน USB ก่อนถึงจะมองเห็นวายฟายฮอตสปอตที่แชร์ อะไรแบบนั้น ซึ่งทำให้หลายคนสงสัยว่าทำไม iPhone จึงแชร์ยากเย็นจัง จริงๆ มีเทคนิคง่ายๆ ที่เรามองข้ามไปผมสรุปไว้ดังนี้

หลายๆ ครั้งที่มีคนถามผมเลยคิดว่าเผื่อจะมีใครติดปัญหาแล้ว Search มาเจอวิธีของผมบ้างอาจจะช่วยท่านได้

1. ตั้งชื่อเครื่อง iPhone ให้แตกต่างจากคนอื่นๆ เขา เช่น iCAT, iDOG, iBIRD, iSAAD เอาว่าที่ไม่ใช่ชื่อตั้งต้นที่เขาตั้งมาให้ก็แล้วกันนะครับ จะได้ไม่ไปเชื่อมเครื่องคนอื่นเขาทำให้สับสนเฉยๆ

2. อันนี้สำคัญ ***ตั้งรหัสผ่านที่ต้องประกอบไปด้วย ตัวอักษรใหญ่ 2 ตัว เล็ก 2 ตัว และก็ตัวเลข รวมกันแล้วให้ครบ 8  ตัว อย่างน้อย หรืออาจจะมีอัขระพิเศษเข้าไปด้วยก็ได้ครับ เช่น HHH$hhh44 หรือ hhh#HHH44 เป็นต้น ทำไมต้องตั้งแบบนี้หรอครับ ผมลองดูแล้ว ถ้าตั้งแบบนี้ จะเห็น ฮอตสปอตของ iPhone เร็วและได้ตลอด แต่ถ้าเปลี่ยนเป็นแบบง่ายๆ เช่น 12345678 แบบนี้ เปิดแล้วไม่ค่อยจะ Search เจอครับ อาจจะเป็นไปได้ว่าเค้าบังคับให้ตั้งรหัสให้คาดเดายากขึ้นถึงจะยอมให้ปล่อย ฮอตสปอตครับ

3. ให้เปิดหน้าแชร์ ฮอตสปอตไว้จนกว่าเครื่องที่เราแชร์จะเชื่อมกับเราได้สำเร็จ

เพียงเท่านี้ผมว่าน่าจะหมดปัญญาที่เป็นข้อสงสัยกับใครหลายคนว่าทำไมแชร์เน็ต iPhone ยากไปได้นะครับ

วันอังคารที่ 18 กันยายน พ.ศ. 2561

ค้นหาข้อมูล MS-Outlook ไม่ได้ (Windows 7 64 bit , Outlook 2016)

ค้นหาข้อมูล MS-Outlook ไม่ได้ (Windows 7 64 bit  , Outlook 2016)

วิธีแรก

1. เปิด Outlook, ไปที่  File > Options > Search > Indexing Options > Modify and เอา Microsoft Outlook ออก
2. ไปที่  File > Account Settings > Account Settings.
3. เลือก  Data Files tab.
4.ไปดูว่า OST file อยู่ที่ไหน เพื่อที่จะไปยัง Folder นั้น
5. ปิด Outlook.
6. ใช้ Explorer ไปเปิด Folder ที่เก็บไฟล์ บางทีอาจจะอยู่ C:\Users\Username\AppData\Local\Microsoft\Outlook.
7. เลือกที่ OST file ใน folder คลิกขวา highlighted file เลือก Properties.
8. คลิกปุ่ม Advanced
9. เลือก Allow this file to have contents indexed ใน file properties option ในกรณีที่ยังไม่ได้เลือกไว้ , แล้วก็กดปุ่ม OK.
10. เปิด Outlook, ไปที่  File > Options > Search > Indexing Options > กลับไป ติ๊กที่ Microsoft Outlook อีกครั้ง แล้วก็ลองค้นหาดูอีกที


วิธีที่ 2

ลองไปดู ค่าใน Registry

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search

PreventIndexingOutlook  [DWORD (32-bit)]  ดูว่าต้องมีค่าเป็น 1 ครับ

ถ้า Windows Search [Key] ไม่มีให้เพิ่ม Key นี้เข้าไปเลย
พร้อมกับเพิ่ม PreventIndexingOutlook [DWORD (32-bit)] แล้วใส่ค่าเป็น 1

วิธีที่ 3
ลองเข้า Outlook ด้วย Safemode
ปุ่ม Windows+R พิมพ์ Outlook /safe
แล้วลองค้นหาดูว่าได้ไหม ถ้าได้ ให้ไปเอา Add-in ออก

วิธีที่ 4
ลองเปลี่ยนหรือสลับ User Profile ดูว่า อีกโปรไฟล์นึงสามารถค้นหาได้หรือไม่ ถ้าได้ อาจจะต้องไปดู Service พวก Windows Search , Indexing ว่า User Profile ที่ Search ไม่ได้ Service Start อยู่หรือไม่ หรือหากไม่รู้จะแก้ยังไงก็บังคับ User ใช้ Profile ใหม่ไปเลย 55


วันอังคารที่ 28 สิงหาคม พ.ศ. 2561

เพิ่มขนาด Drive Raspberry Pi ด้วย Gparted

เนื่องจากเวลาเราทำการสร้าง Micro CD Boot แล้ว บางครั้ง พื้นที่ใช้งานของ Card ไม่เต็ม เช่น Card 32GB แต่เห็นแค่ 10GB อะไรแบบนี้

ถ้าอยากรู้ว่าเต็ม Card ไม่ให้ลองสั่ง

#sudo su df -h
จะเห็นว่า Size ขนาดเท่าไหร่ เช่น 32GB ก็ควรจะเห็น 29 - 30 เป็นอย่างน้อยครับ


เราจึงต้องมี Tools มาช่วยในการเพิ่มหรือเรียกพื้นที่ที่ยังไม่ถูกใช้งานให้เต็ม Card กันครับนั่นคือ Gparted

#sudo su apt-get install gparted

เรียกใช้ก็สั่ง

#sudo su gparted

จะเป็น GUI ให้ปรับขาดได้นะครับ คล้ายๆ Partition Magic ในวินโดว์ เลยครับ

วันอาทิตย์ที่ 26 สิงหาคม พ.ศ. 2561

Arduino Uno : GSM A6 โทรออก เมื่อ PIR Sensor ทำงาน

ผมได้ลองซื้อ GSM Module A6 มาเล่นพึ่งจะได้ใช้จริงวันนี้

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

ข้อดี ไม่เสียค่าเน็ต, ไม่เสียค่าส่ง SMS, ไม่เสียรายเดือน มีแต่ค่ารักษาเบอร์เดือนละ 10 บาทตาม กสทช.

ข้อเสีย เปิดห้องเดินผ่าน PIR เมื่อไหร่โทรหาเมื่อนั้น ไม่รู้ว่าใครผ่าน ดูภาพไม่ได้

char phone_no1[]="089xxxxxxx";
char phone_no2[]="081xxxxxxx";

//By Yoshioka

void setup() {
  Serial.begin(9600);
  delay(200);

  pinMode(2,INPUT);                     \\PIR Sensor
  digitalWrite(2,LOW);

  pinMode(3,OUTPUT);                 \\GSM A6 POWER ON
  digitalWrite(3,LOW);
  delay(2);
  digitalWrite(3,HIGH);
  delay(3000);
  digitalWrite(3,LOW);
  delay(2);
 
  pinMode(4,OUTPUT);                \\Pre +5V Port
  digitalWrite(4,HIGH);                 \\Set +5V Port  เอาไฟไปเลี้ยงหลอด LED

}

void loop() {

  if (digitalRead(2)==HIGH) {
  Serial.println("AT");                         \\เริ่มสั่งงาน GSM
  delay(1000);
  Serial.print("ATD");                         \\คำสั่ง สั่งโทร
  Serial.println(phone_no1);               \\เบอร์ที่เตรียมไว้
  // Serial.println(";");                          \\บางครั้งอาจจ้องใส่  " ; "  ต่อท้ายเบอร์
  delay(13000);                                    \\ให้โทรไป 13 วินาที
  Serial.println("ATH");                       \\คำสั่ง หยุดโทร
  delay(5000);

  Serial.println("AT");                        \\เริ่มสั่งงาน GSM
  delay(1000);
  Serial.print("ATD");                         \\คำสั่ง สั่งโทร
  Serial.println(phone_no2);               \\เบอร์ที่เตรียมไว้
  // Serial.println(";");
  delay(13000);                                   \\ให้โทรไป 13 วินาที
  Serial.println("ATH");                       \\คำสั่ง หยุดโทร
  delay(5000);
  }

}

Arduino Uno Ethernet Shield W5100 (unhandle https : 443) Post ค่าด้วยตัวเองไม่ได้

Arduino Uno Ethernet Shield W5100 (handle https : 443) Post ค่าด้วยตัวเองไม่ได้

ผมได้พยายามหาข้อมูลอยู่ระยะนึง... เพื่อที่จะหาคำตอบว่า ทำไม Arduino Uno ที่ใช้ Ethernet Shield W5100 จึงไม่สามารถ Post ค่าไปยัง Server ของ Line เพื่อจะทำเป็น Line Notify ได้ เหมือน Wemos D1 หรือ ESP8266

ตอนที่ผมเขียนบทความอยู่นี้ ผมก็ยังทำไม่ได้นะ ยังส่งค่าไป Line Server ไม่ได้ แต่ถ้าส่งผ่าน http กับเครื่อง Local Host ปกติ ไม่มีปัญหาสามารถ Post ค่าไปได้

ผมไปเจออยู่ที่หนึ่งที่เค้าบอกว่า Ethernet Shield W5100 นี้ ไม่สามารถ Handle https ได้เนื่องจากมีการเข้ารหัสของข้อมูลต้องใช้เวลา Handle อยู่ระยะนึงซึ่ง W5100 ทำไม่ได้ ทำให้ไม่สามารถ Post ค่าไปยัง Server ที่ใช้ protocol https เหล่านั้นได้

ผมก็เลยมาลองทำกับ http ที่เครื่องตัวเองดู เออ มันได้จริงๆ ตามที่ได้กล่าวไว้ตอนต้น

ถ้าใครหลงเข้ามาอ่านแล้วพบว่าสิ่งที่ผมเจอมานั้นไม่ถูกต้อง โปรดบอกผมเป็นวิทยาทานบ้างนะครับ

ขอบคุณครับ

วันพุธที่ 8 สิงหาคม พ.ศ. 2561

Network monitoring on Ubuntu

Network monitoring on Ubuntu

1. Nload
$ sudo apt-get install nload
$ nload

2. iftop
$ sudo apt-get install iftop
$ sudo iftop -n

3. iptraf
$ sudo apt-get install iptraf iptraf-ng
$ sudo iptraf

4. speedometer
$ sudo apt-get install speedometer
$ speedometer -r eth0 -t eth0

วันอาทิตย์ที่ 1 กรกฎาคม พ.ศ. 2561

จัดหน้าจอ ด้วย CSS ให้อยู่ตรงกลางของ Browser ทุกขนาดหน้าจอ

ตามนี้แล...

.CenteredScreen {
  position: fixed;
  left: 50%;
  top: 50%;
  /* bring your own prefixes */
  transform: translate(-50%, -50%);
}

Arduino Add Board : WEMOS D1 R2

หากพบว่าไม่พบ Board Wemos D1 ใน Arduino IDE ให้ลองแก้ไขดังนี้

ใน Arduino IDE Version 1.8.5

เข้าไปที่ Menu -> File -> Preference ->

เอา url : http://arduino.esp8266.com/stable/package_esp8266com_index.json

ไปใส่ช่อง Additional Boards Manager URLs:

แล้วเข้า Board Manager จะพบรายการอยู่ล่างๆ สุด ให้ install ได้เลย

UBUNTU : Arduino Error Permission เวลา uploads sketch

เมื่อ Upload Sketch แล้วพบ Error นี้

Arduino: 1.8.5 (Linux), Board: "Arduino/Genuino Uno"

avrdude: ser_open(): can't open device "/dev/ttyUSB0": Permission denied
An error occurred while uploading the sketch

แก้เบื้องต้น

sudo usermod -a -G dialout <username ที่เข้าใช้งาน>

sudo chmod 777 /dev/ttyUSB0


วันพุธที่ 16 พฤษภาคม พ.ศ. 2561

php7.0 ไม่ทำงาน

หากคุณติดตั้ง PHP7.0 แล้วไม่สามารถรันคำสั่ง PHP ได้อาจจะติดเรื่องการติดตั้งบาง Mod ไม่ครบลองติดตั้งเพิ่มดังนี้

sudo apt install php libapache2-mod-php

sudo apt install php7.0-mbstring

และติดต่อ MSSQL SERVER ก็ต้องลง

sudo apt-get install php7.0-sybase

เพียงเท่านี้ก็น่าจะช่วยให้รัน PHP ได้แล้วครับ

วันอังคารที่ 10 เมษายน พ.ศ. 2561

Print ให้พอดี A4 ด้วย JAVA window.print();

CSS
.divprint {

   width:9in;
   height:11in;
   margin:auto; /*ตั้งค่าให้ข้อมูลอยู่กลางจอ*/

}

/*ไม่ให้แสดงเวลาพิมพ์*/
@media noprint {
   
img {
          display:none;
       }

}

HTML
<div class="divprint">

งานที่ต้องการพิมพ์ออกไปที่หน้ากระดาษ A4

<button type="button" onclick="window.print();" media="noprint"></button>

</div>



วันอังคารที่ 13 กุมภาพันธ์ พ.ศ. 2561

ที่มาของค่า 3f, 6 ,5b, 4f, 66, 6d, 7d, 7, 7f, 6f ใน Arduino สำหรับป้อนให้ 74HC595 แสดงผล 7 Segment

ขอขยายความ ที่มาของค่า 0x3f, 0x06 , 0x5b, 0x4f, 0x66, 0x6d, 0x7d, 0x07, 0x7f, 0x6f ใน Code Arduino สำหรับป้อนให้ 74HC595 แสดงผล 7 Segment

เนื่องจากค่าที่ 74HC595 ต้องการนั้น เป็น Binary (ฐาน2) เราจึงต้องส่งค่าไปยัง 7 Segment ไปเป็น Binary เสมอ เมื่อเราดูโค๊ดตัวอย่างในเว็บต่างๆ จะเห็นเป็นค่า

int num[] = { 0x3f, 0x06 , 0x5b, 0x4f, 0x66, 0x6d, 0x7d, 0x07, 0x7f, 0x6f };

ตัวแปล num ได้เก็บค่าเป็น Array โดยเมื่อเอาค่าแต่ละค่ามาแปลงเป็นฐาน 2 จะพบว่าตรงกับการแสดงผลของ 7 Segment พอดี โดยหากเราต่อ 7 Segment ดังตัวอย่างด้านล่าง วิธีการมองเลขฐาน 2 ที่ส่งไปยัง 7 Segment นั้นให้มองจากด้านหลังมาด้านหน้าครับ จะยกตัวอย่างการแปลความมายดังนี้

ส่งค่า แสดงผลเป็นตัวเลข 1 บน 7 Segment

Hex = 6 ;
Binary = 110 ;
ตำแหน่ง a บน 7 Segment  = 0 ;
ตำแหน่ง b บน 7 Segment  = 1 ;
ตำแหน่ง c บน 7 Segment  = 1 ;
เมื่อได้ค่าดังนี้ 7 Segment จะแสดงผลเป็นเลข 1 ให้ครับ


                  a = Q0 (74hc595)
             _________________
            |                                  |
            |                                  |
            |                                  |
 f =Q5 |                                  |  b  =Q1
            |                                  |
            |          g = Q6             |
            _________________
            |                                  |
            |                                  |
e = Q4 |                                  |  c = Q2
            |                                  |
            |                                  |
            |                                  |
            _________________
                     d = Q3


แก้ Active Desktop Recovery

เข้าไปแก้ Value ในไฟล์ DeskHtmlVersion  ให้กลายเป็น 0 ไม่ให้แสดงหน้าต่าง Active Desktop Recovery เข้าไปที่  HKEY_CURRENT_USER/Software/Mi...