Posted by: sompol | May 25, 2012

Howto install FPGA Software in Linux Ubuntu

They are installed in Ubuntu 10.04LTS

Xilinx – ISE Design Suite 14.1

  1. Navigate to the folder that has the file Xilinx_ISE_DS_Lin_14.1_P.15xf.0.1.tar inside
  2. > tar xvf Xilinx_ISE_DS_Lin_14.1_P.15xf.0.1.tar
  3. > cd Xilinx_ISE_DS_Lin_14.1_P.15xf.0.1
    > ./xsetup
  4. Follow the instruction in GUI windows
How to start Quartus
  1. Go to "/opt/Xilinx/14.1/ISE_DS/ISE/bin/lin/"
    >./ise


Altera – Quartus II Software V11.1
  1. Navigate to the folder that has the file 11.1sp2_259_quartus_free_linux.sh inside
  2. > ./11.1sp2_259_quartus_free_linux.sh
  3. Follow the step in GUI window.
How to start Quartus
  1. go to "/<Quartus II system directory>/bin"
    for example: cd /home/user1/altera/11.1sp2/quartus/bin
  2. > ./quartus

Lattice Semiconductor - Lattice Diamond
  1. Install alien
    > sudo apt-get install alien
    > sudo apt-get update
  2. Navigate to the folder that has the file diamond_1_4-base-87-i386-linux.rpm inside
  3. > sudo alien diamond_1_4-base-87-i386-linux.rpm
  4. Install 32 bit libraries (if on 64 bit Ubuntu)
    > sudo apt-get install ia-32libs
    > sudo getlibs -p libmotif3
  5. Run alien on the diamond RPM.
    > alien -d 
    diamond_1_4-base-87-i386-linux.rpm
    Wait for a very long time. You will find that it created a folder called "diamond_1_4-base-1.4" on your current directory.
  6. Copy subfolder name "diamond" to /usr/local
  7. Copy the license to "/usr/local/diamond/1.0/license/"
How to start Lattice Diamond
  1. Go to "/usr/local/diamond/1.4/bin/lin/"
    > ./diamond

Microsemi(Actel) - Libero SoC v10.0

From this page, it says » Linux version (Will be available shortly).

Posted by: sompol | January 11, 2012

Howto share file in Linux and WIndows via smb protocol.

Using smb protocal can connect file sharing between Windows and Linux operating systems. (default protocol for Windows)
Unlike ftp sharing, this protocol accesses to the file in real time like sharing file in Windows, while ftp has to download the whole file before editing (then save) and upload it back after editing.

Instruction for Ubuntu
  1. right click at the folder you want to share
  2. choose "sharing option"
  3. Tick the boxes "Share this folder" and below 2 options as you prefer
    • Allow others to create and delete files in this folder
    • Guest access (for people without a user account)
  4. Click "Create Share" button
  5. Proceed to install a required package
  6. Restart Nautilus (type in terminal $nautilus -q)
Instruction for Windows
  1. right click at the folder you want to share
  2. choose "Properties"
  3. choose tab "Sharing"
  4. Click "Share…" button
  5. Input the name of the person you want to share. You can input "Everyone" to share the file for everyone. Then, click "Add"  button
  6. Click "Done" button
  7. Back to "Properties" windows, click "Advanced Sharing…" button
  8. Tick "Share this folder" box, then click "OK" button

Try accessing the shared folder
  1. browse file from other computers
  • Linux address = smb://computer_name or smb://IP_Address (e.g. smb://192.168.1.100)
    When the system asks for the password, click "Cancel" button. It will bring you into that folder anyway.
  • Windows address = \\computer_name or \\IP_Address (e.g. \\192.168.1.100)
Posted by: sompol | October 18, 2011

[Howto] Solve the No Sound problem in Ubuntu 10.04 LTS.

Solve the No Sound problem in Ubuntu 10.04 LTS.
Follow the link below. It works on Vaio VPCEB13FG.

http://ubuntuforums.org/showthread.php?t=1489283&page=2


http://monespaceperso.org/blog-en/2010/05/02/upgrade-alsa-1-0-23-on-ubuntu-lucid-lynx-10-04/

Try the command set below:
sudo add-apt-repository ppa:ubuntu-audio-dev/ppa
sudo apt-get update
sudo apt-get install linux-alsa-driver-modules-$(uname -r)

and/or

sudo aptitude update
sudo aptitude install linux-backports-modules-alsa-lucid-generic
Posted by: sompol | February 16, 2011

What stays in my mind …

It starts for awhile but I write it today.

I let it begin. I don’t even know its mathematical model. It is very hard to do the identification. But I will keep it no overshoot go on as smooth as possible and it must be robust. The interaction is usually performed remotely but never lose connection.

ในประวัติศาสตร์แขนงวิชาระบบควบคุม (Control System) เมื่อก่อนเรียกรวมๆ กันว่า Decision and Control คือการติดสินใจและควบคุม ชื่อสาขาวิชาในการประชุมวิชาการต่างๆ ก็เรียกชื่อนี้มาตลอด มีชุมชน (Community) หลักๆ ที่ศึกษาวิชาเหล่านี้รวมตัวกัน ส่งบทความตีพิมพ์ในนิตยสารชื่อ Automatica และยังมีอีกที่นึงที่ดังๆ ก็คือเจ้าพ่อไฟฟ้าเลย ได้แก่ IEEE มีนิตยสารชื่อว่า IEEE Control System ตีพิมพ์

วิชา Control ที่เราเรียนในระดับปริญญาตรีตัวแรกเป็นวิชาพื้นฐาน เป็นการนำเสนอปัญหา แก้ปัญหา และออกแบบตัวควบคุมใน frequency domain ทั้งหลายทั้งมวล แนวคิด PID Controller ที่เราเรียนกันมาเป็น Control ที่เรียกว่า Classical Control

เมื่อก่อนช่วงที่ Optimal Control กำลังบูม Wiener เป็นตัวตั้งตัวตรีในการเสนอวิธีนี้ โดยทำ Optimal Control ใน Frequency domain หรือทำแบบใช้ Transfer function ในการออกแบบ (ช่วงนั้น state space ยังไม่เกิด) แต่วิธีการนั้นค่อนข้างยากและซับซ้อนมาก จนมาถึงยุคของ Kalman ประมาณปี 197x ซึ่ง นายคนนี้เอา transfer function มาเขียนใหม่ในรูปแบบที่เรียกว่า state-space หรือเขาเรียกว่าเขียน Realization ของระบบ ทำ่ให้เรื่อง Optimal Control ดูง่ายขึ้น แค่เพียงเปลี่ยนวิธีการนำเสนอแค่นี้เอง Kalman ได้นำแนวคิดนี้เขียนบทความไปยัง Journal ทางไฟฟ้าอย่าง IEEE แต่ก็ถูก reject ไปเพราะถูกมองว่า งานนี้ไม่ได้แสดงอะไรใหม่ๆ ขึ้นมาเว้นแต่เพียงว่าเอางานของคนอื่นมาเขียนใหม่ Kalman เลยส่งบทความไปยัง ASME นิตยสารทางเครื่องกลแทน และได้รับการตอบรับเป็นอย่างดี ทำให้ Kalman เกิดโด่งดังขึ้นมาทันที และเขาก็มีผลงานออกมาเรื่อยๆ หลังจากนั้น ตั้งแต่ใช้ state-space เป็นต้นมาก็เรียกได้ว่า เข้าสู่ยุคของ Modern Control

หลังจากยุคที่ Optimal Control เฟื่องฟูมาก ใช้ในการทหารการสงครามอย่างมากมายเป็นที่แพร่หลาย ประมาณปี 198x นาย Zames ก็ออกมาบอกว่า Optimal Control นี่ไม่ไหว ไม่ได้ดีเสมอไป ข้อเสียมันก็มี เพราะมันไม่ได้คิดถึงเรื่องของ Gain Margin และ Phase Margin เลยอย่างใน Classical Control ดังนั้น แนวคิดของ Robust Control ถึงได้ถือกำเนิดขึ้น และก็บูมได้อยู่ระยะนึงเลยทีเดียว

มาถึงเรื่อง LMIs (Linear Matrix Inequalities) อันนี้ถือเป็นเครื่องมือที่สำคัญในทางคณิตศาสตร์เพื่อแก้ปัญหาต่างๆ ถ้าจะใช้มือคำนวณก็ค่อนข้างเสียเวลาและก็ยาก+เยอะ แต่หลังจากเข้าสู่ยุคคอมพิวเตอร์ประสิทธิภาพสูง ขนาดเล็ก ราคาถูก การคำนวณสมการเมทริกส์ยากๆเยอะๆ จึงไม่เป็นปัญหาอีกต่อไป ขอให้เขียนปัญหา (problem formulation) ให้อยู่ในรูปมาตรฐาน เช่น Linear Programming, Quadratic Programming, Semidefinite Programming และปัญหานั้นเป็นปัญหา Convex แล้วละก็ ยังไงก็แก้ออกชัวร์ๆ ยิ่ง state space เขียนอยู่ในรูปเมทริกส์ด้วยก็ยิ่งเข้าทาง ทั้ง objective function ทั้ง constraints ทั้งหลายทั้งมวลมีคนหาวิธีเขียนไว้ได้เกือบหมด

ปัจจุบันไม่ได้มี Control ชนิดไหนโดดเด่นเป็นพิเศษ มีหลายๆ แบบ (สังเกตจากบทความที่ตีพิมพ์ในนิตยสาร control หลักๆ) บางทีก็ออกมาแบบลูกผสม เอาหลายๆ อย่างมาผสมกัน หรือไปทำวิธีการแบบ Nonlinear Control กันมากขึ้น

*หมายเหตุ: ข้อมูลฟังมาลวกๆ ไม่ได้เช็คความถูกต้อง ไม่เหมาะที่จะำนำไปอ้างอิงแต่อย่างใด

Posted by: sompol | September 9, 2010

นั่งฝัน

ขณะที่ thesis ก็ยังมีอะไรให้ทำอีกเยอะแต่ก็ยังแอบอู้อยุ่ เวลาจะบิ๊วอารมณ์ตัวเองให้อยากทำงาน จดจ่อกับงานทำไมมันยากเหลือเกิน ไม่ใช่ว่างานนั้นเราไม่ชอบทำ เพราะรู้สึกว่าตอนที่ได้ทำ และ"ทำได้" มันมีความสุขดี เลยมานั่งหาแรงบันดาลใจ หรือคิดเรื่องอื่นๆ ที่ทำให้รู้สึกมีแรง อยากทำนู่นอยากทำนี่ อยากทำทุกๆ อย่าง อยากไปเที่ยวรอบโลก ถ้าจบปโทแล้วจะช่วยทำ MK Robot ให้เทพๆ เลย ทำแบบให้ดูเป็นมืออาชีพดีๆ ระหว่างนั้น คงหางานไปด้วย ไปทำงานที่ญี่ปุ่น หรือบางทีทำงานที่เมืองไทย แต่เป็นที่ที่ให้โอกาสไปมีประสบการณ์ในต่างประเทศด้วย สรุปแล้วก็ัยังอยากไปท่องโลกกว้าง อยากไปให้ครบทุกทวีปภายใน 5 ปี ในช่วงที่ทำงาน แล้วจากนั้นถึงเวลาต้องคิดอีกทีว่าจะทำงานต่อหรือจะเรียนปริญญาโทอีกใบหรือปริญญาเอกดี

วางแผนไปเที่ยว เริ่้มจากเมืองไทยก่อน จากที่ได้ไมล์บินฟรีของการบินไทยมา ต้องหาเวลาใช้ซักครั้ง ไปกระบี่หรือภูเก็ตนี่แหละ แล้วจากนั้นเริ่มจ้องแพคเกตตั๋วราคาถูกไปฮ่องกง จากนั้นเลยไปญี่ปุ่น (ญี่ปุ่นต้องรีบไปเพราะมีที่ัพักฟรีก่อนเพื่อนๆ ที่ไปเรียนญี่ปุ่นจะเรียนจบเสียก่อน)  ไปเซี่ยงไฮ้ ไปเวียดนาม เพราะมีเพื่อนเวียดนามที่แล็บหลายคน คงจะมีไกด์อย่างดีรอรับอยู่ จากนั้น ต่อๆๆๆ ไปอียิปต์ ไปดูพิระมิด (เริ่มใกล้ยุโรปละ) แล้วค่้อยไปลุยยุโรป อยู่เที่ยวเต็มๆ ซัก 1 เดือน ไปสวิสอีกครั้ง คิดถึง แล้วที่สุดท้ายก็ไปอเมริกาดีกว่า มีเพื่อนๆ กับญาติอยู่กัน ไปแล้วไม่น่าอดตาย ส่วนที่เหลือ บราซิล ออสเตรเลีย เกาหลี อินเดีย รอต่อท้าย

อยากหาคนไปด้วย ไปกันทุกที่เลย
ไปๆๆๆ ไปทำี thesis ต่อดีกว่า ตื่นๆๆ

Posted by: sompol | August 22, 2010

Job Interview Tips

Job Interview Tips
This is my lecture note about job interview shared by Khun Sarocha Pornudomsak in March 2009 at Chula.
I have attended the special English program for the final year bachelor student. One session is an experience sharing by the people who are currently working in the field that use English daily, a journalist. Her name is Sarocha and she is now on the TV in MuangThai Raisubda (Thailand Weekly). She is one who is the interviewing committee. There are many topics but me lecture is only about the job interviewing questions. I think the fresh graduate would be benefit to read this in order to prepare and understand what employers expected them to be. In addition, we can imply the working viewpoint/attitude/value of the prior generation from these question.

1. Tell us about yourself
    - Ans about family; mom, dad, brother, free-time family, part-time working
2. What would your friend tell about you?
3. What kind of person you are?
4. Why do you want to work for this organization?
5. What kind of salary expected?
    - Ans what the range of salary of this position
6. Are you a team player?
7. How long would you expect to work for us?
    - I'd like to be a very long time.
8. Why should we hire you?
    - Talk about strength: problem solving skill, ability to work under pressure, your positive attitude, organizational-managerial-leadership skill
9. What is your dream job?
    - Job that I enjoy working, people,
      Job I can contribute to the company,
      Job I can't wait to work after I wake up
10. Why do you think you will do well for this job?
    - Tell about skill, ability.
11. What's more important than money?
    - Work (the most important)
12. Your motivation
    - Challenge, achieving something
13. Are you willing to work over time?
    - Tell honestly.
14. How do you compensate your lack of experience?
    - Hard worker, quick learner
15. How do you know you will successful for this job?
16. Would you willing to relocate?
    - Tell honestly.
17. Describe your work ethics.
    - Work hard, enjoy working
18. Do you have any questions for us?
    - Question: What strength skill this project need?
                     What is team project?
                     What would you expect me to accomplish at first 6 months on the job?
                     What are the current/future projects of the company?
                     How will I be evaluated/promoted?
                     Could you describe the work environment?
                     Who you are major computer? What kind of computer and program you use?
    - Do not ask about benefit/money.

ทริป Sika สุดอลังการจบไปแล้ว ทาง Sika ก็ขอให้ช่วยเขียน essay โดยมีเนื้อหาตอบคำถามตามที่ทางบริษัทระบุไว้หน่อย ส่วนใหญ่ก็เกี่ยวกับ sustainability หรือการพัฒนาที่ยั่งยืน ว่าเราคิดอย่างไร มองเห็นตรงไหนในการบริหารจัดการ การวิจัยหรือการตลาดที่ส่งเสริมนโยบายนี้บ้าง ความจริงถ้าตั้งใจหาคำตอบตั้งแต่วันแรกก็คงมีข้อมูลมากโข และโฟกัสได้ตรงจุดมากกว่า แต่มาเสียท่าตรงที่ไม่ยอมอ่านอะไรให้ละเอียดถี่ถ้วน เช่นเดียวกับแนวทางการเขียนบล็อกที่ทางบริษัทได้แนะแนวทางไว้ให้แต่ไม่ยอมอ่าน ต่อไปก่อนทำอะไรให้อ่านก่อนนะครับ อ่านๆๆๆ ให้ละเอียดทำความเข้าใจ แล้วเราจะได้ไม่พลาดอะไรง่ายๆ ถ้าเราหวังจะทำให้ทุกสิ่งทุกอย่างนั้นสมบูรณ์แบบ หรืออย่างน้อยมีข้อผิดพลาดน้อยที่สุด (ให้ไม่มีข้อบกพร่องเลยคงยาก)

เวลาจะเริ่มเขียน essay หรือเรียงความ อย่างแรกที่ทำเป็นประจำคือ list idea ทั้งหลายทั้งปวงไว้ก่อน หรือทำ mindmap นั่นเอง เวลาเขียนจะได้จับประเด็นได้ ไม่หลงทาง ต่อมาก็ต้องมานั่งคิดถ้อยคำอันสวยหรูเพื่อถ่ายทอดมันลงไป ตรงนี้เราไปหาอ่านจากที่อื่นได้ แล้วนำมาปรับใช้ ระลึกไว้เสมอว่า "อ่านมาก รู้มาก" ถ้าเราอ่านมามาก เราก็จะมีทางเลือกมากในการเขียน มีตัวเลือกมากในการสร้างสรรค์แนวทางการเขียนการแสดงความคิด ตอนนี้ติดอยู่ตรงนี้จริงๆ แต่ข้อความที่น่าอ่านไม่สำคัญเท่าเนื้อหาสาระ สาระต้องมาก่อนแล้วปรับให้สวยทีหลัง เขียนให้กระชับ อย่าน้ำท่วมทุ่งผักบุ้งโหลงเหลง กำหนด 1 หน้า A4 ก็ต้องหาสาระมาใส่ให้ได้ ไม่ควรพล่ามน้ำเพิ่มให้ครบ A4 อันนี้ด้วยความสัจจริง เพราะได้เคยเขียน essay ประกวดสมัครรายการต่างๆ มามาก ให้หลายคนช่วย comment และคิดดูเอง ขนาดเราอ่านบล๊อกคนอื่นยังเลือกที่จะอ่านบล๊อกยาวๆ ไว้ท้ายๆ เลย ขอให้สั้นกระชับได้ใจความ ขึ้นตรงลงท้ายสวยๆหน่อยเป็นใช้ได้ ระดับ masterpiece ที่แท้จริงนั้นยังทำไม่เป็นจริงๆ แต่จะพยายามต่อไป

Posted via email from Sompol

Posted by: sompol | May 21, 2010

Hello world!

Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!

Categories

Follow

Get every new post delivered to your Inbox.