ข้ามไปที่เนื้อหาหลัก

บทความ

กำลังแสดงโพสต์ที่มีป้ายกำกับ Opensource

Standalone MySQL setup

Currently I am learning Spring Boot. I follow some tutorials but there is a part requires to use DBMS. So I decide to use MySQL as a database. But I don't want to install it as as service neither install with Windows installer. I decide to download an archive version to run it as standalone application. I expect it will be ready to use as the installer version but it is not as easy as I think. The first thing you have to do after extract the archive file is to copy my-default.ini to my.ini Open my.ini with notepad or text editor that you like, edit these lines as show below basedir = X:/<pat to your mysql folderh>/mysql-5.7.9-winx64 datadir = X:/<pat to your mysql folderh>/mysql-5.7.9-winx64/data Important!  Don't forget to create the folder data to the path they you refer in datadir  Second you have to mysql bin directory and then input the following command in command prompt mysqld --initialize --console --console is optional to see the verbose in...

Set up uncache proxy server - Privoxy

In this article I will show you how to configure privoxy on Windows. I note this method on my blog because I have some problems with my VPN service provider. They don't allow me to share my proxy on another devices in my LAN if I need to share I have to pay more extra money. Thus it would be better I can set up my PC to be a proxy server and by pass to this VPN route. First: You need to do is download an program Privoxy . The version I download is privoxy_setup_3.0.21.exe.(510.4 kB) which is not a small application but it is very useful. Second: You need to install it on your PC. Just only click next next and next.. Third: You need to do is configure your Privoxy server to by pass to VPN proxy server. Edit Main Configuration  Append 2 lines in section 5.1 to enable forward proxy to VPN proxy. forward    /    127.0.0.1: forward :443 127.0.0.1:  Modify 1 line in section 4.1 listen-address  127.0.0.1:8118 -> listen-addr...

Enable Skype icon on Unity notification panel on Ubuntu 13.04

Due to I switch back from Windows to Ubuntu. The most important program for me is " Skype ". After I download installation from Skype official website it seems there is no problem at all I am able to installed in by Ubuntu Software Center. The problem  was occurring after I launch Skype and close the main window opens I expect it will be closed and shown the icon on notification panel area. But there is no icon on notification area then I launch Skype application again the windows instance comes up thus I try to log in again, suddenly I get an error message about another instance was already running. After I search on google a bit I found that Ubuntu 13.04 was removed system tray whitelist feature from its unity. so I found this website to re-enable the whitelist by below instruction. sudo add-apt-repository ppa:timekiller/unity-systrayfix sudo apt-get update sudo apt-get upgrade After finished installation I do the following steps to add Skype to notification whitelis...

Shell In a Box - Shell on Web Interface

shellinabox เป็นโปรแกรมที่ทำให้เราสามารถใช้ shell หรือ terminal ผ่านเว็บได้ ซึ่งจะคล้ายๆ กับ WebShell (WebShell นั้นพัฒนาต่อยอดมาจาก Ajaxterm ) แต่ shellinabox เป็นตัวที่อยู่ใน wiki ของ Ubuntu วันนี้เลยขอสอนการติดตั้งตัวนี้ครับ และเขียนไว้เป็นบันทึกกันลืมไปในตัว ขั้นแรกให้ดาวน์โหลดตัว shellinabox ของ platform ที่เราใช้อยู่ ในหน้า Download นำไปไว้ใน home folder หรือตำแหน่งที่ต้องการ หลังจากนั้นให้พิมพ์ sudo dpkg -i shellinabox_2.10-1_i386.deb เนื่องจากผมใช้ Ubuntu หารใครใช้ Redhat base ก็ทำตาม RPM เอานะครับ หลังจากนั้นให้เรา start server shellinabox ขึ้นมา ด้วยคำสั่ง sudo /etc/init.d/shellinabox start หรือ sudo invoke-rc.d shellinabox start ซึ่งเมื่อรันแล้ว shell in a box นี่จะรันอยู่บน port 4200 ด้วย protocol HTTPS ครับ ให้เราเปิด Browser ขึ้นมาแล้วเข้าไปที่ https://<ip เครื่องที่เราติดตั้ง>:4200 ก็จะขึ้นหน้าตาดังรูปครับ หน้า login ที่เข้าจาก Shell In a Box

Alfresco Share กับ Error Too many open files

หากใครใช้ Alfresco Share บางที่จะพบว่า หากกดลิงค์ต่างๆ เร็วๆ ไปสักพักจะเจอหน้า Error ซึ่งจาก Error ที่หน้าเว็บฟ้องจะไม่บ่งบอกว่าเกิดอะไรขึ้น เพราะตัวเว็บนั้นจะเรียก Web Script จาก Alfresco RESTful WebService อีกทีนึง สาเหตุที่แท้จริงของ Error นี้คือ ตัว lucene ซึ่งเป็น Engine ที่ทำการ Index file แม้ว่าตัว lucene 2.0 จะแก้ให้เกิดปัญหานี้น้อยลงแล้วก็ตาม แต่เราก็ยังพบปัญหาอยู่ วิธีแก้ไข ให้เราไปเพิ่ม limit ของการเปิดไฟล์ให้มากขึ้น ตัวอย่างเช่นใน ubuntu ใช้คำสั่ง ulimit -n ด้วย user ที่รัน alfresco พบว่าค่าเริ่มต้นที่ระบบตั้งให้คือ 1024 ซึ่งไม่เพียงพอ ให้เราไปเพิ่มในไฟล์ /etc/security/limits.conf ดังนี้ <username> soft nofile 4096 <username> hard nofile 65536 สมมติว่าผมใช้ user เป็น seven ในการ login เข้า shell จึงเพิ่มเป็น seven soft nofile 4096 seven hard nofile 65536 ให้ทำการ logout และ login อีกรอบแล้วพิมพ์คำสั่ง ulimit -n อีกครัง จะพบว่าค่าที่ตอบกลับมาคือ 4096 ตามที่เราตั้งไว้ เป็นอันว่าเรียบร้อยแล้วสำหรับการแก้ปัญหาที่ error ไม่ทราบสาเหตุจาก alfresco s...

HipHop JIT จาก Facebook (ไม่ใช่แนวเพลงนะ)

จากก่อนหน้านี้ที่ facebook ประกาศจะ opensource HipHop JIT ตอนนี้ก็ได้ปล่อยมาให้โหลดกันแล้วนะ HipHop ไม่ใช่ตัวแปลภาษานะครับ(Compiler) มันเป็นเพียงตัวแปลง source code เท่านั้นให้ code PHP กลายเป็น C/C++ นั่นเอง แล้วก็ใช้ C Compiler ทำให้มันเป็น native อีกทีครับ(น่าจะเป็น GCC นะครับ เพราะ facebook นั้นขึ้นชื่อว่าองค์กร Opensource จ้าา) โหลด HipHop JIT (แต่ต้องใช้ GIT นะคร้าบบบ) ที่มา Facebook announced the HipHop for PHP runtime environment

Hibernate 3.5.1 Released - Supporting JSR 317

JBoss ได้ปล่อย Hibernate 3.5.1 มาแล้วเมื่อปลายเดือนที่แล้ว สิ่งที่น่าสนใจคือมัน s upport JSR 317 หรือที่รู้จักกันในนามของ The JPA 2 Specification (ทำไม opensource มัน Spec เยอะจัง ท่าทางจะเลือกมากนะ =P ) สิ่งที่เปลี่ยนแปลงไปมีดังต่อไปนี้ JSR 317 (JPA2) Support รวม hibernate-annotations, hibernate-entitymanager และ hibernate-envers เป็น core project แล้ว ปรับปรุงประสิทธิภาพการ Cache Immutable support อ่านอย่างเดียว รองรับ JDBC 4 ถ้าใช้ใน JVM 1.6 รองรับการทำงานในระดับ column ตอนนี้ทำได้แต่ในไฟล์ hbm เท่านั้นครับ โหลก Hibernate 3.5.1 แปลจาก TheServerSide

Blender 2.5 Alpha 2 ออกแล้ว

ขอข้าม Alpha 1 ไปเลยนะครับ เพราัะมันออกมานานแล้ว แล้วผมก็ไม่ได้เขียน สรุปโดยรวมแล้วมันเปลี่ยนหน้าตา UI (User Interface) เกือบหมดเลย เท่าที่ใช้รู้สึกว่ามันหนักๆ เครื่องขึ้น แต่อาจเป็นเพราะคอมผมมันอืดก็ได้ แต่รู้สึกว่าการใช้งานจะค่อนข้างง่ายขึ้น ไม่งงๆ เหมือน version ก่อนหน้า ส่วน alpha 1 นั้นมี bug ร้ายแรงอยู่คือ ไม่สามารถ save รูป texture ได้ Download Blender 2.5 Alpha 2 ได้ที่นี่เลยครับ

JoomlaDay Bangkok 2009!!

วันนี้ชม JoomlaDay Bangkok 2009 ดูแล้ว Joomla 1.6 มีอะไรน่าเล่นเยอะเลยทีเดียว วิทยากรที่มาบรรยายดีมากครับ ราคาค่าร่วมสัมนากับทีมงานก็ค่อนข้างลงตัวครับ ได้เสื้อไปใส่กันด้วย ส่วนผมก็ได้แต่ติดตามดูอยู่ที่ live.fukduk.tv ครับ ที่สำคัญคือทีมงานทำงานด้วยใจจริงๆ ครับ จัดงานด้วยงบเพียงแค่นี้ ต้องขอขอบคุณทีมงาน Marvelic กันทุกคนและขอบคุณทีมงานทั้งหมดรวมถึงมหาวิทยาลัยศรีปทุมด้วยครับ ที่ทำให้ได้อะไรจากงานนี้เยอะแยะเลย ผมก็แอบสนใจเขียน extension นะเนี่ย (ฮา) เห็นมีว่าจะ upload slide ในเว็บ ก็ไว้ไปโหลดกันได้นะครับ ที่ http://www.joomladay.in.th/ รวมถึง community ในไทย joomla.or.th

Alfresco กับ XForm

XForm นั้นเป็น Specification ที่น่าจะกลายเป็นมาตรฐานในอนาคตเนื่องจากเว็บต่างจำเป็นต้องใช้ Form ในการติดต่อกับผู้ใช้เป็นส่วนใหญ่ ส่วนตัว implement นั้นมีหลายตัวด้วยกันไว้ผมจะเอามาบอกในบทความต่อๆ ไป แต่คราวนี้เรามาดูใน Alfresco กันครับ ใน Version 3.2 นั้น Alfresco ได้เลือก Chiba ในเป็น Engine ในการจัดการกับ XForm ครับ แต่ก็นั่นแหละครับทำให้เราจำเป็นต้องลง virtual tomcat สำหรับรัน WCM (virtual tomcat คือ tomcat อีกตัวไว้สำหรับทำหน้าที่ติดต่อกับ user โดยทั่วไป หรือเรียกว่าเอาไว้เป็นหน้าด่านว่าเอกสารอะไรที่เราต้องการเผยแพร่เราก็สามารถ publish ไปยัง WCM ได้) ตอนนี้ orbeon (เป็น XForm engine อีกตัว) สามารถทำการเชื่อมต่อกับ Alfresco ได้แล้วต่อไปถ้าเราจะสร้าง XForm คงง่ายขึ้นเป็นกองเพราะ orbeon เป็น XForm server ที่ไว้สร้าง Form แบบ virtual เลย(ลากแปะๆ แนะนำให้ลองเข้าไปเล่น demo ของ orbeon ดูครับ น่าเล่นมาก) แต่ตัวนี้ผมยังไม่ได้ลองทำดูนะครับ พอดีค้นหาเจอเลยนำมาลง blog ไว้ก่อน ไว้ถ้าทดสอบแล้วได้ความว่าอย่างไรจะมารายงานอีกรอบ

Alfresco กับการ Search ภาษาไทย

เนื่องด้วยการ Search ถือเป็นหัวใจสำคัญของงาน ECM เลยก็ว่าได้ แต่ Alfresco ณ ปัจจุบันยังไม่รองรับการ Search ด้วยภาษาไทย แต่อย่างว่า Opensource เมื่อเรารู้ว่ามันใช้ Lucene เป็น engine ในการค้นหาเอกสาร เราก็เลยแงะไปยังตัว lucene เองพบว่ามีคนส่ง Patch ในการตัดคำไทย ไปให้กับ lucene เรียบร้อยแล้ว โดยคุณสัมพันธ์นั่นเอง วิธีการ Config ให้ Alfresco ตัดคำไทยได้ผมสรุปออกมาเป็นขั้นตอนได้ดังนี้ครับ ไปเพิ่ม Locale ให้ Alfresco รู้จัก ใน tomcat/shared/classes/alfresco/extension/web-client-config-custom.xml ตรง tag <languages> เพิ่ม <language locale="th_TH">Thai</language> เข้าไป directory: tomcat/webapps/alfresco/WEB-INF/classes/alfresco/model แล้วทำการ copy file dataTypeAnalyzers_fr.properties หรือไฟล์อื่นก็ได้ เปลี่ยนชื่อเป็น dataTypeAnalyzers_th.properties แล้วเปิดไฟล์ขึ้นมาแก้ไขให้เป็น d_dictionary.datatype.d_text.analyzer=org.apache.lucene.analysis.th.ThaiAnalyzer d_dictionary.datatype.d_content.analyzer=org.apache.lucene.analysis.th.ThaiAnalyzer หลังจากนั้นเมื่อทำการ...

หนังสือ Opensource แจกฟรี Gimp และ Blender

แจกหนังสือ Ebook เล่มใหม่ฟรี สนับสนุนโดย Sipa จัดทำโดยบริษัท Success Media ครับ Gimp เป็นโปรแกรมไว้ตกแต่งรูปสามารถใช้ทดแทน Photoshop ได้ Blender 3D เป็นโปรแกรมที่ไว้สำหรับสร้าง Model 3D เทียบได้กับ 3DS Max ครับ โหลดหนังสือทั้งสองเล่มได้จากลิงค์ข้างล่างเลยครับ สร้างงานกราฟิกละตกแต่งภาพอย่างไร้ขีดจำกัดด้วย GIMP คู่มือการใช้งาน Blender 3D