Wednesday, June 22, 2011

contain ใน HashSet เร็วกว่า ArrayList

method contain  ใน HashSet เร็วกว่า ArrayList เยอะมาก หลายเท่าตัว
เดาๆ น่าจะเป็นเพราะว่า hash มันเป็นฟังก์ชั่น เวลาที่ใช้ในการเข้าถึงข้อมูลทุกๆ ครั้งใกล้เคียงกัน
แต่ Array เข้าถึงโดยการใช้ index ต้องวนรอบทุกครั้ง ยิ่งถ้ามีขนาดใหญ่ การเช็ค contain ใน List ก็จะช้ามากๆๆๆๆๆ

Thursday, December 23, 2010

Export MS SQL 2000 - 2005 to SQL Statment

ต้องดาวน์โหลดโปรแกรมมาเพิ่มก่อนนะ

Microsoft SQL Server Database Publishing Wizard 1.1


http://www.microsoft.com/downloads/en/details.aspx?FamilyId=56E5B1C5-BF17-42E0-A410-371A838E570A&displaylang=en

Thursday, December 16, 2010

Spring Roo เวอร์ชั่น 1.1.0 Release มีบั๊กนะ

สำหรับการ save ข้อมูลภาษาอื่นๆ ที่ไม่ใช่ภาษาอังกฤษ เวอร์ชั่น 1.1.0 Release ของ spring roo มีบั๊กอันตรายมาก

อาการ: save ข้อมูลลง database ไม่ตรงกับข้อความที่กรอกไป
สาเหตุ: การเ้ข้ารหัสผิด รวมถึงลำดับของ การ config ใน web.xml ก็มีผล (เพิ่งรู้เลย)

วิธีแก้ (https://jira.springframework.org/browse/ROO-1684)


Stefan Schmidt added a comment - 24/Nov/10 6:36 AM
With commit 2f373ffa30c5ceeccd53a9d21e64f6c0006d1d6e the following changes were made:
Filter mappings are now installed in the following sequence:
1. CharacterEncodingFilter
2. HttpMethodFilter
(3. springSecurityFilterChain)
4. OpenEntityManagerInViewFilter
default.jspx contains a pageEncoding page directive:
persistence.xml now contains: if Hibernate is selected.
It would be great if I can get some feedback so we can close this ticket.

Wednesday, June 30, 2010

QR Code for my web site

Color Matching for Naive Web Designer

I've a little creative skill for design own web sites.
It's very hard for select color matching between background color and text, until I found this web site (http://colorbe.com/) which recommend color matching and generate stylesheet or css for web site automatic.
It's easy for me.