บทความ

กำลังแสดงโพสต์จาก กรกฎาคม, 2018

การทำให้ CTPN ทำงาน

1 ติดตั้ง cygwin เลือก g++ cgg make gdb wget cmake 2. โหลด boost มา make แล้วมาติดตั้งที่ cygwin /usr/include https://sourceforge.net/projects/boost/?source=typ_redirect 3. โหลด google/glog มา make แล้วยัดไว้ใน cygwin/usr/include https://github.com/google/glog ทั้ง 2 และ 3  ต้อง make แบบนี้ (ที่มา http://olivernina.blogspot.com/2014/09/includecaffecommonhpp527-fatal-error.html) wget https://github.com/schuhschuh/gflags/archive/master.zip unzip master.zip cd gflags-master mkdir build && cd build export CXXFLAGS="-fPIC" && cmake .. && make VERBOSE=1 make sudo make install 4. โหลด  google protocal buffer 3.4 หน้าใช้ version อื่น เพราะมี bug กับ windows เอาเฉพาะโฟลเดอร์ google/protobuf  มาไว้ใน cygwin /usr/include 5.  pip install h5py 6. apt-cyg  install python - pip 7  http://www.netlib.org/blas/cblas.h เอามาไว้ใน cygwin/usr/include ติดตั้งตามนี้แล้ว ก็ยังไม่ทำงานอยู่ดี เพราะ บาง function ใน code ถูก du...

php ปัญหา string เกิดจากการต่อ string ที่ใช้ . มากเกินไป

รูปภาพ
เกิดอัขระผีจากต่างดาว โค้ดที่นำมาซึ่งปัญหา แก้ด้วยการใช้ EOD (อย่าใช้ \" ใน EOD ให้ใช้ ' แทน)

ไอเดีย นาฬิกาจับเวลา : angular JS

eduza online timer https://www.timeanddate.com/timer/

ZF3 : zend form action attribute path ถูก escape

คำตอบคือ มันทำเพื่อเพิ่มความปลอดภัย https://github.com/zendframework/zend-form/issues/142 "Ugly" is not the problem when security-sensitive contexts https://github.com/zendframework/zend-escaper/issues/21