sukoom2001's blog

test from my phone

test

python active windows checking

I try to write script to check active windows and name of this active windows. But have some problem to be fix in the future.

  • error for some qt windows such as Mathematica
  • error when destroy windows immediately

ลองเขียน joy2key ด้วย python

สืบ​เนื่องจาก​​ได้​ไปทำ​การซื้อ joypad ของ dragon มา​ใช้ พบว่าสำ​หรับบาง​เกมที่มี​ใน ubuntu มัน​ใช้ joypad บังคับ​ไม่​ได้ หลาย​คนบอกว่า​ให้ลอง qjoypad ดูดิ ​แต่ qjoypad ​เลื่อน​เมาส์​​แบบกระ​ตุก ​และ​ ตั้ง axis ​เป็น wheel ​ไม่​ได้ จึงลอง​เขียน​ดู​เองด้วย​ python ต้องการ pygame ​และ​ python-xlib

Feature

  1. smooth mouse
  2. mouse force
  3. hold button

Next release

  1. GUI
  2. Profile
  3. Application detect
  4. Multikey command

test input from android phone

this is a test header

  • first bullet
  • second bullet
  • italic
  • bold
  • bold italic
  • i = x 2 3 x 5 inline

ddd x 2 4

test post from my new phone

test post heading

  • Test normal text
  • style text

flash

You are missing some Flash content that should appear here! Perhaps your browser cannot display it, or maybe it did not initialize correctly.

Youtube

You are missing some Flash content that should appear here! Perhaps your browser cannot display it, or maybe it did not initialize correctly.

You are missing some Flash content that should appear here! Perhaps your browser cannot display it, or maybe it did not initialize correctly.

กำลังเขียนโปรแกรม phpASCIISVG

ความจริง​อยาก​​ให้มีการ port asciisvg มาลง​ใน php ​เพื่อ​เป็น filter ของ drupal นาน​​แล้ว​แต่​ไม่​เห็นมีคนทำ​ซักที จะ​มีก็​​แต่ asciimathml มา​เป็น asciimathphp ​แต่อัน​เก่าก​็​​เน่า​ไปนาน​ปีกว่า​แล้วจึงลองทำ​​เองดู

ตัว​​อย่างการสร้างวงกลม.,

Are two line segments crossing?

Are two line segments crossing?

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

Actually, to check whether two line segments are crossing is more difficult than you think. In fact, it ought to be easier if the line segments become lines.

Solve game 24

มี​โจทย์​ ​อยู่ว่า ​เลข 4 ตัวต่อ​ไปนี้ ทำ​​เป็น 24 ​ได้ป่าว​ ​และ​ทำ​​ได้ยัง​ไง ขึ้​เกียจคิดจึง​เขียน​​โปร​แกรมหา พบว่า​ใช้งาน​​ได้ดีที​เดียว นะ​จ๊ะ​

GMAIL Convert

​ไว้สำ​หรับ convert ​เมลจาก​ hotmail ที่ส่งมาถึง gmail สมัยที่ยังมีปัญหา​เรื่อง unicode

How to install tor and privoxy on ubuntu

  1. sudo apt-get install tor privoxy
  2. ​แก้​ไข​ไฟล์​ config ​ใน /etc/privoxy
    1. ​เพิ่มบรรทัดนี้​ไปต้น​ไฟล์​ forward-socks4a / localhost:9050 . (มีจุดด้วย​นะ​)
    2. ​เพิ่ม # หน้าสองบรรทัด logfile logfile ​และ​ jarfile jarfile
  3. start privoxy $sudo /etc/init.d/privoxy start
  4. ติดตั้ง Tor plugin ของ Firefox
  5. Restart firefox ​แล้วกด ตรง Tor plugin มุมล่างขวา​ให้​เป็นสี​เขียวก็​​เรียบร้อย

ที่มา tor.erights.net ผ่าน​ ubuntuclub

Syndicate content