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

บทความ

กำลังแสดงโพสต์จาก 2010

วิธีจัดการกับ App หลอกลวง ( scam ) บน facebook

อันนี้จะยกตัวอย่าง App นึงที่ออกมาเร็วๆนี้นะครับ อ่านกันเพลินๆ นะ วิธีแก้ไข อยู่ข้างล่าง ถ้ารีบใช้ ก็ข้ามลงไปอ่านข้างล่างได้เลย อันนี้ ใช้จัดการกับ App อื่นๆได้ด้วย เริ่มเลยนะครับ ช่วงนี้ มีข่าวออกมาเนืองๆ ว่า facebook จะปล่อย Email @facebook.com เลยมีมือดี ปล่อย Scam App ( แอพ หลอกลวง ) ออกมา ให้ ระวัง ให้ดี App ที่ชื่อ First Come First Serve Email ( หน้า App : http://www.facebook.com/apps/application.php?id=128160943912788 ) ตอนนี้โดนเก็บไปแล้วนะฮะ แอพนั้น ให้ระวังคำชวน จากเพื่อน ที่โพสไว้ในหน้านั้นว่า "Just got my own email @facebook.com! Quickly get one before someone takes your name http://tiny.cc/zygxb" หรือ ว่า คำชวนที่โพสโดย App ดูรูปข้างล่าง ซึ่งคำเชิญชวน มาจากเพื่อนเรา ( ที่เพิ่งโดนหลอกไป ) เอง และนี่คือรูปหน้า แอพ ของเขา ถ้าสังเกต URL ดีๆ จะเป็น http://apps.facebook.com/firsrcomeserveemail/ ไม่ได้มาจาก ตัว facebook เอง แต่ทำหน้าตาเหมือนกับว่า จะทำ Email @facebook.com ให้นะครับ สังเกต เขา Request Information นะฮะ Access my data anytime !! คือ มึงจะเข้าถึงข้อมูลกรู

how to scubber a song from vlc to last.fm

Tools > Preferences

แปลง ตารางใน OpenOffice ให้เป็น latex ด้วย calc2latex

ทุกที ตารางเล็กๆ ก็ทำมือเอา แต่พอเจอตารางใหญ่เชี่ยๆ แถมบางแถวก็กินคอลัมน์เยอะกว่าชาวบ้านอีก เห็นทีจะไม่ไหว ถ้าทำมือแล้ว ผิดปุ๊ป แก้ที มีหวังตายก่อน มันมี 3 ตารางด้วย ไม่ใช่ตารางเดียว ลองคุ้ยดู เจอคนเขียนปลั้กอินไว้แล้ว ดาวน์โหลดได้จาก ที่นี่ ( Calc2LaTeX.oxt ) วิธีลง extension Tools > Extension Manager.. > add จริงๆ ในเวปของ OpenOffice บอกว่า ทำได้ตั้ง 3 วิธี วิธีอื่นๆ ไปอ่านเองละกันนะ เสร็จแล้วก็ทำปุ่มให้มันกด สวยงาม โดย ทำตาม คอมเมนท์นี้ ลอกมาเลย ตามนี้ To add a toolbar button (or Menu item): Tools -> Customize -> Toolbars (or Menu to add a menu item) Select the toolbar you want to add the button to, then click "Add..." Scroll down to expand "OpenOffice.org Macros" in the left pane. My Macros -> Calc2LaTeX -> Calc2LaTeX Then select "Main" in the right hand, and click Add Back in the Toolbars (or Menus) tab, select Modify, and Rename to Calc2LaTeX I changed the Icon to something that looks like a table. หลังจากนั้น เอาเมาส์ ลากเ

บันทึกโชคดีของ dsin : 27 พฤษจิกายน 2010

เห็นจาก facebook ของพี่ตู้เขียนไว้ 3 ข้อ ผมเห็นว่าดี เลยเอามาเขียนบ้างดีกว่า ช่วงนี้บล็อกยิ่งดองๆอยู่ด้วย เริ่มเลยละกันนะ วันนี้บังเอิญน้องเช่า "สิ่งเล็กๆที่เรียกว่ารัก" มาดู จาก ร้านเช่าซีดี แถวบ้าน จริงๆ ร้านนี้หนังเยอะดีเหมือนกัน ราคาเช่าก็ไม่แพง ส่วนใหญ่หนัง บรรยายไทย จะหายากสักหน่อย แต่เรื่องนี้เป็นพากษ์ไทยเลยไม่เป็นไร น้องเล่าให้ฟังว่า เรื่องนี้เข้าพร้อมกับ กวน มึน โฮ แล้วน้องก็ดูกวน มึน โฮ ไป ไม่ได้ดูเรื่องนี้ เขาบอกว่า นางเอกไม่สวย แล้วพระเอกก็เล่นแข็ง แต่เพื่อนบอกว่า เรื่องนี้สนุกกว่า อ้าว !? ก็เลยนั่งดูไปซักหน่อย แปลกใจเหมือนกันที่เขาให้มาแผ่นเดียว เพราะปกติ ซีดีหนัง มันจะสองแผ่น แอบงง ตอนที่มันบอกว่า continue on disc 2 อึ้งอยู่พักนึงเหมือนกัน แต่สักพักหนังก็เล่นต่อ ไม่มีอะไร ดีเหมือนกันนะ เดี๋ยวนี้เขาประหยัดซีดี ดี หนังเรื่องนี้หลายคนคงดูกันไปแล้ว ไม่สปอยละกันนะ ผมจะมีโอกาสไปดูหนังในโรงหนังเป็นช่วงๆ ช่วงไหน ได้ไป ก็จะดูเยอะมาก แต่ถ้าช่วงไหนไม่ได้ไป ก็จะไม่ได้ไปดูเลย นี่ก็คิดว่า ไม่ได้ไปดูใน โรงหนัง มานานแล้วเหมือนกัน หนังสนุกดี ทำให้นึกถึง เหตุการณ์สมัยเด็กๆ กระ

[ AIT CSIM Students ] How to host your own git respository on bazooka

I found that there is 'git' installed on bazooka, so we can host our git on bazooka. no more SVN !! yeah ! Setting it up, $ ssh a108025@bazooka.cs.ait.ac.th banyan<a108025>: mkdir dsin.git banyan<a108025>: cd dsin.git banyan<a108025>: git --bare init Initialized empty Git repository in /home/corse/a108025/dsin.git/ banyan<a108025>: exit From the client side, $ git push a108025@bazooka.cs.ait.ac.th:/home/corse/a108025/dsin.git master -f Counting objects: 3, done. Writing objects: 100% (3/3), 198 bytes, done. Total 3 (delta 0), reused 0 (delta 0) To a108025@bazooka.cs.ait.ac.th:/home/corse/a108025/dsin.git * [new branch] master -> master I also found that, there is SVN installed on that server as well. ON is so kind that he provides a lot of software for us to use :) I tested above code following instruction from here .

install the nightly build version of mozilla firefox on ubuntu

System > Administration > Software Sources You will see that google chrome is from 'http://dl.google.com/linux/chrome/deb/' stable version ppa:mozillateam/firefox-stable which is point to 'http://ppa.launchpad.net/mozillateam/firefox-stable/ubuntu' This will have all the version. Even if we use older version of ubuntu, we still can see. However, if we always update ubuntu, no need to do this. This is a bit more update than firefox that is shipping with ubuntu. For example, now firefox 4 has just launched. It has not in Official ubuntu yet, but we can install it through this ppa. manually install download getting firefox in multiple language or if you prefer daily build you can use this one ppa:ubuntu-mozilla-daily/ppa which is point to 'http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu' manually install download beta At first I thought that the bottleneck is from the way canonical approving the package. But after see firefox, IE, chrome release cyc

QR decomposition from RQ decomposition

just reverse process here For example, Given, M = [1.177 -0.0372159 -0.00193271 ; -0.000159094 1.25581 0.0460427 ; 0.115352 0.0235739 0.993045 ; ] If we do qr decomposition directly, we will have >> [R,K] = qr(M) R = -0.9952 0.0020 -0.0975 0.0001 -0.9998 -0.0216 -0.0975 -0.0215 0.9950 K = -1.1826 0.0349 -0.0949 0 -1.2561 -0.0674 0 0 0.9873 Anyway, we can use RQ, we reverse the cols, then transpose M another_M = [-0.00193271 0.0460427 0.993045 ; -0.0372159 1.25581 0.0235739 ; 1.177 -0.000159094 0.115352 ; ] then [another_K another_R] = rq(another_M) another_R = [-0.097518 -0.021568 0.995 ; -0.00196984 0.999767 0.0214782 ; -0.995232 0.000134525 -0.0975378 ; ] another_K = [0.987275 0.0673646 -0.0949297 ; 0 1.2561 0.034908 ; 0 0 -1.18264 ; ] We transpose another_R, then reverse the cols. We will have R. R = -0.9952 -0.0020 -0.0975 0.0001 0.9998 -0.0216 -0.0975 0.0215 0.9950 We transpose another_K

cvFindFundamentalMat in OpenCV 2 and OpenCV 2.1

just note that In cvFindFundamentalMat, if you pass CV_8S status in OpenCV 2.1 it will have an error like this OpenCV Error: Assertion failed (src.depth() == dst.depth() && src.size() == dst.size()) in cvCopy, file /mnt/disk/AIT/OpenCV/OpenCV-2.1.0/src/cxcore/cxcopy.cpp, line 466 terminate called after throwing an instance of 'cv::Exception' what(): /mnt/disk/AIT/OpenCV/OpenCV-2.1.0/src/cxcore/cxcopy.cpp:466: error: (-215) src.depth() == dst.depth() && src.size() == dst.size() in function cvCopy Aborted The type should be CV_8UC1 which is worked with both version

โปรแกรม วิธี ศึกษา วิชา คณิตศาสตร์ แบบสนุกๆ

ได้ลองเล่น โปรแกรม ทาง การศึกษา ฟรีๆ บน iPhone 2 ตัว มาได้สักพัก เห็นว่า น่าสนใจดี เลยเอามา แนะนำ ต่อ ตามนี้ 1. Formulas Free เป็นการรวมสูตร เลข ไว้บน มือถือ ( คล้ายๆ หนังสือสรุปสูตร สอบเอ็นทรานซ์ ENT' เล่มเล็กๆ ที่ขายกัน ) มีตั้งแต่ Algebra ง่ายๆ อย่างเช่น พวก สูตรพื้นที่วงกลม, ค่าสัมบูรณ์, logarithm, Matrix, จนไปถึง สูตร diff, integrate, การแก้สมการ diff equation order 1, order 2 หรือแม้กระทั่ง Laplace transform 2. Quick Graph โปรแกรม plot กราฟ สุดเจ๋ง ใส่สมการลงไปก็ plot ได้เลย มี interface สวยงาม plot 3 มิติ เป็น surface ได้ด้วยนะ เจ๋งจริงๆ QuickGraph ถ้าอยู่บน PC ก็ใช้เป็น gnuplot plot ได้เยอะแยะมากมายเหมือนกัน ส่วนเจ้าตัว Formula Free ที่เห็นรวมๆ อยู่บนเวปไม่เห็นจะมี wiki ก็น้ำเยอะ แต่ก็เป็นทางออกที่ดีระดับนึง วันนี้คุ้ยๆ มา เลยไปเจอ mathworld.wolfram เห็นท่าจะดีสุดในตอนที่เขียนนี้ แต่มัน search ตรงๆ ไม่ได้ มีทริกนิดหน่อย เช่น จะหาสมบัติการคูณ Matrix หาคำว่า Matrix จะไม่เจอ ต้อง search ว่า ' Matrix Multiplication ' ( ซึ่งวิธี search แบบนี้เอาไปใช้ กับ wiki ได้ด้วย

ลอง point -I -l -L ด้วย pkg-config

จากการตามไปดู build_all.sh พบว่า มันใช้ pkg-config ด้วยความสงสัยว่า มันเป็นอะไรยังไง เลยลองรันดู $ pkg-config opencv --cflags -I/home/dsin/opencv/include/opencv $ pkg-config opencv --libs -L/home/dsin/opencv/lib -lcxcore -lcv -lhighgui -lcvaux -lml $ pkg-config opencv --cflags --libs -I/home/dsin/opencv/include/opencv -L/home/dsin/opencv/lib -lcxcore -lcv -lhighgui -lcvaux -lml ว้าว เจ๋งแหะ ถ้าเป็นอย่างนี้ เราสามารถ ลง library ไว้ในที่ต่างกัน ในคนละเครื่องได้ ย้าย library ไปยังที่อื่นๆ ได้ โดยไม่ต้องเปลี่ยนตัวแปร เยอะแยะ ใน Makefile แค่เปลี่ยน PKG_CONFIG_PATH ซึ่งเป็นตัวแปรที่เป็นอิสระจาก svn ได้ วิธีทำ คือ 1. export PKG_CONFIG_PATH=${HOME}/opencv/lib/pkgconfig 2. ซึ่งในโฟลเดอร์ ${HOME}/opencv/lib/pkgconfig มีไฟล์ opencv.pc อยู่ ซึ่งวิธีเขียน เป็นตามนี้ # Package Information for pkg-config prefix=/home/dsin/opencv exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include/opencv Name: OpenCV Description: Intel(R) Open Source Computer Vision Library Version: 1.1.0 Lib

howto Rotate Rotation matrix from relative frame back to reference frame [ subsequent rotation ]

As we know that the angle from 'pitch, roll, yaw' is measured from first reference frame . Even though, we have subsequent frame. For example, if we rotate 90 degree around x axis, then rotate 90 degree around y axis. we noticed from the last couple that it is rotate 90 around y axis of the first frame ( not -90 degree around z axis in the secound frame ) We can use rotation formula, like R = RyRx However, in some case, if we want to use the the rotated frame as a reference frame, ( for example, -90 degree around z axis in the second frame, in this case ), we can do that and the formula to convert from rotated frame to the first reference frame is BRB -1 or BRB T ( because the rotation matrix is orthonormal ) for example, from the example above we rotate 90 degree around x axis and then 90 degree around y axis, so R = RyRx octave:1> [0 0 1;0 1 0;-1 0 0]*[1 0 0;0 0 -1;0 1 0] ans = 0 1 0 0 0 -1 -1 0 0 if we want to rotate 90 around x axis and then -90 degree arou

[ OpenCV ] read yaml file

File to read %YAML:1.0 calibration_time: "Wed 08 Sep 2010 01:49:24 PM ICT" image_count: 10 image_width: 640 image_height: 480 board_width: 8 board_height: 6 square_size: 3. flags: 0 camera_matrix: !!opencv-matrix rows: 3 cols: 3 dt: d data: [ 7.0670231633826893e+02, 0., 2.9776351172468094e+02, 0., 7.0623929245059901e+02, 2.6088449526885739e+02, 0., 0., 1. ] distortion_coefficients: !!opencv-matrix rows: 1 cols: 4 dt: d data: [ -5.8713493296008348e-02, 3.5972311978605072e-02, 1.0258503131952429e-02, -2.5861511364179125e-04 ] avg_reprojection_error: 2.8090511932969092e-01 per_view_reprojection_errors: !!opencv-matrix rows: 1 cols: 10 dt: d data: [ 3.5422265529632568e-01, 3.9157994588216144e-01, 1.9369331995646158e-01, 2.4840275446573892e-01, 1.7604033586879572e-01, 2.6437775293986004e-01, 2.4450556437174478e-01, 2.3067680994669595e-01, 4.2982764355838299e-01, 2.7572441101074219e-01 ] Example char *out_filename = "/home/dsin/Pursuit/Project/pursuit/c

[ ROS ] PR2 axis coordinate

จาก coordinate ทั่วไปมักจะเอา y จิ้มไปข้างหน้า อย่างนี้ รูปรถต้นแบบ ที่เอามาใส่แกน เอามาจาก มหาวิทยาลัย ไหนซักที่ ลืมไปแล้ว ขอโทษนะคร้าบบ _/|\_ แต่ PR2 เอา x จิ้มไปข้างหน้า เพ่งๆ เอาละกันนะ base_link อยู่ข้างล่าง ที่ไอ้ลูกศรเหลืองๆ มัน transform ไปหาเยอะๆ นั่นแหละ จริงๆ มันมาจาก gazebo นะเธอว์ Most models are designed such that the are upright (with respect to the z axis) and pointing along the positive x axis. ตามไปอ่านของจริงได้ ที่หัวข้อ coordinate systems and units จาก ที่นี่ น้ะจ้ะ

[ ROS ] ขาของ PR2

จะเห็นว่า มันเป็นล้อเลื่อนเหมือน เก้าอี้หมุน joint ถูกแสดงไว้ในรูป

[ ROS ] variable type

Primitive Type Serialization C++ Python bool (1) unsigned 8-bit int uint8_t (2) bool int8 signed 8-bit int int8_t int uint8 unsigned 8-bit int uint8_t int (3) int16 signed 16-bit int int16_t int uint16 unsigned 16-bit int uint16_t int int32 signed 32-bit int int32_t int uint32 unsigned 32-bit int uint32_t int int64 signed 64-bit int int64_t long uint64 unsigned 64-bit int uint64_t long float32 32-bit IEEE float float float float64 64-bit IEEE float double float string ascii string (4) std::string string time secs/nsecs signed 32-bit ints ros::Time rospy.Time duration secs/nsecs signed 32-bit ints ros::Duration rospy.Duration ref: ros

[ ROS ] NodeHandle params

แทนที่จะเขียน if(n_.hasParam("cam_topic")){ n_.getParam("cam_topic", cam_topic_); } else { cam_topic_ = "gigaset_cam/image_raw"; } เขียนเป็น n_.param<std::string>("cam_topic", cam_topic_, "gigaset_cam/image_raw"); สั้นกว่ากันเยอะเลย

svn add only folder

USAGE svn add --non-recursive otherdir Example $ svn add communication_packet_protocol/communication_packet_protocol.tex svn: 'communication_packet_protocol' is not a working copy $ svn add --non-recursive communication_packet_protocol A communication_packet_protocol $ svn add communication_packet_protocol/communication_packet_protocol.tex A communication_packet_protocol/communication_packet_protocol.tex ref : svn book

gtest-1.4.0 uninstall log

dsin@dsin-laptop:/mnt/disk/AIT/Thesis/cpp_library/gtest-1.4.0 $ sudo make uninstall [sudo] password for dsin: rm -f '/usr/local/bin/gtest-config' /bin/bash ./libtool --mode=uninstall rm -f '/usr/local/lib/libgtest.la' rm -f /usr/local/lib/libgtest.la /usr/local/lib/libgtest.so.0.0.0 /usr/local/lib/libgtest.so.0 /usr/local/lib/libgtest.so /usr/local/lib/libgtest.a /bin/bash ./libtool --mode=uninstall rm -f '/usr/local/lib/libgtest_main.la' rm -f /usr/local/lib/libgtest_main.la /usr/local/lib/libgtest_main.so.0.0.0 /usr/local/lib/libgtest_main.so.0 /usr/local/lib/libgtest_main.so /usr/local/lib/libgtest_main.a rm -f '/usr/local/share/aclocal/gtest.m4' rm -f '/usr/local/include/gtest/gtest.h' rm -f '/usr/local/include/gtest/gtest-death-test.h' rm -f '/usr/local/include/gtest/gtest-message.h' rm -f '/usr/local/include/gtest/gtest-param-test.h' rm -f '/usr/local/include/gtest/gtest_pred_impl.h' rm -f '/usr/local

ลองเล่น google c++ test ( gtest-1.5.0 ) บน ubuntu

Installation เอามาจาก README ของมัน $ g++ -I${GTEST_DIR}/include -I${GTEST_DIR} -c ${GTEST_DIR}/src/gtest-all.cc $ ar -rv libgtest.a gtest-all.o เวลา compile -I ${HOME}/gtest-1.5.0/include -L ${HOME}/gtest-1.5.0/ -lgtest Demo เอามาจากเวปของ ibm #include "gtest/gtest.h" TEST(SquareRootTest, PositiveNos) { EXPECT_EQ (18.0, square-root (324.0)); EXPECT_EQ (25.4, square-root (645.16)); EXPECT_EQ (50.3321, square-root (2533.310224)); } TEST (SquareRootTest, ZeroAndNegativeNos) { ASSERT_EQ (0.0, square-root (0.0)); ASSERT_EQ (-1, square-root (-22.0)); } int main(int argc, char **argv) { ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); } EXPECT v.s. ASSERT = non-fetal v.s. fetal EXPECT : execution continues even if there is a failure ASSERT : test execution abort

finding intrinsic parameter [ K ] and extrinsic parameter [ R, t ] ( camera calibration ) with OpenCV

เด๋วนี้ อะไรๆ ก็ง่าย ไม่ต้องไป mark จุด ใน matlab library ให้เมื่อยตุ้ม โปรแกรมนี้นี้มาจากการรวมพลังกันของ 3 ฟังก์ชั่น นั่นคือ cvFindChessboardCorners, cvFindCornerSubPix, และ cvCalibrateCamera2 ซึ่งอันที่จริงแล้ว cvCalibrateCamera2 กับ cvFindExtrinsicCameraParams2 เหมือนกันนะอิอิ ถ้ารู้ intrinsic parameter มาแล้ว หนีไปใช้ cvFindExtrinsicCameraParams2 เพื่อหา rotation vector กับ translation vector ก็ได้ อยู่ใน demo ของ opencv version 2.0 นั่นแหละ วิธีใช้ จ้า ไม่บอก [input] อะไรแสดงว่า ใช้ค่าจาก webcam $ ./calibration.o -w 8 -h 6 [input] [input] จะใส่เป็นไฟล์วีดีโอ หรือ จะใส่ [input] เป็นไฟล์ calib.txt ก็ได้ calib.txt /mnt/disk/AIT/Thesis/image/sonycam/DSC08606.JPG /mnt/disk/AIT/Thesis/image/sonycam/DSC08607.JPG /mnt/disk/AIT/Thesis/image/sonycam/DSC08608.JPG /mnt/disk/AIT/Thesis/image/sonycam/DSC08609.JPG /mnt/disk/AIT/Thesis/image/sonycam/DSC08610.JPG /mnt/disk/AIT/Thesis/image/sonycam/DSC08611.JPG /mnt/disk/AIT/Thesis/image/sonycam/DSC08612.JPG /mnt/disk/AIT/Thesis/image/sonycam/DSC0

iqscoretest9, is it a dangerous site ?

- Thursday September 02 2010, 11:25 - XXX: hey dsin : ;-) XXX: I just took an IQ quiz here.. pretty cool :-P dsin : Where is here ? XXX: got a 113 lol... thought I was smarter than that dsin : You fool lolz XXX: you should see if you can beat me... if u can ill buy u a drink lol dsin : never. However, where is here ? dsin : here is not there ? dsin : lolz XXX: http://iqscoretest9.com/?test=21hk10524 I bet you cant haha dsin : let's see if it a phishing or scam site XXX: take it now while i take a shower! dsin : it 404 not found XXX: ill be back in a few after im all fresh lol dsin : hey dsin : told the admin for me dsin : that their website is down XXX: BRB .. take that test! dsin : 404 not found ! how can I take that test ? dsin : damn - 11:31 - dsin : you should check your worm that it is ready before you spread it. I bet that it is not a silly bot, it's human. This is another funny conversation http://pastie.org/pastes/1087154

integrate formula cheat sheet

Be careful, this should be 'u du'. If it is not u, please convert it into u. OK ? ref : eformulae

[ ubuntu ] remove old version kernel

ที่ไม่พอแล้ว ! ลบ linux-image เก่าๆ จาก snaptic linux-image-2.6.24-19-generic ( 61.8 MB ) linux-image-2.6.27-11-generic ( 94.4 MB ) linux-image-2.6.31-22-generic ( 90.3 MB ) linux-image-2.6.32-22-generic ( 96.9 MB ) ผมก็จะมี พื้นที่เพิ่มขึ้นอีก 343.4 MB ! ส่วน linux-image-2.6.32-23-generic กับ linux-image-2.6.32-24-generic ที่เป็นสองอันล่าสุด เก็บไว้ เผื่อฉุกเฉิน ข้างล่างนี้เป็น list program ที่ผมเคยลงไว้แต่ไม่ค่อยได้ใช้ เคยจดไว้ใน facebook แล้ว แต่ต้องไปงม หาอีก จดไว้นี่ดีกว่า epidermis btnx mendeleydesktop boincmanager boinc-client posterazor qtpfsgui ufraw wakoopa postgresql-8.4 lyx lyx-common calibre calibre-bin [ google-earth $ sh uninstall ] $ rm -fr ~/.config/chromium/ $ rm -fr ~/.cache/chromium/ ref : jaypeeonline

gnuplot regression log

gnuplot> f(x) = m*x + b gnuplot> fit f(x) 'out.csv' using 1:2 via m,b Iteration 0 WSSR : 1.58427 delta(WSSR)/WSSR : 0 delta(WSSR) : 0 limit for stopping : 1e-05 lambda : 0.733154 initial set of free parameter values m = 1 b = 1 / Iteration 1 WSSR : 0.0239845 delta(WSSR)/WSSR : -65.0538 delta(WSSR) : -1.56029 limit for stopping : 1e-05 lambda : 0.0733154 resultant parameter values m = 1.05812 b = 1.42664 / Iteration 2 WSSR : 0.0105842 delta(WSSR)/WSSR : -1.26608 delta(WSSR) : -0.0134004 limit for stopping : 1e-05 lambda : 0.00733154 resultant parameter values m = 0.833844 b = 1.51427 / Iteration 3 WSSR : 0.0105676 delta(WSSR)/WSSR : -0.00157136 delta(WSSR) : -1.66054e-05 limit for stopping : 1e-05 lambda : 0.000733154 resultant parameter values m = 0.821303 b

แจก คัมภีร์ ไบเบิล ภาษาไทย รวมเล่ม ( download thai bible pdf version )

แปลกใจว่า ทำไม ไม่มี ebook พระคัมภีร์ ที่สามารถ print อ่านได้เลย เลยเอา พระคัมภีร์ภาษาไทย ฉบับ KJV ( Thai Bible King James Version ) มาเย็บรวมเล่ม สร้างไว้เฉพาะ พันธสัญญาเดิม ( Old Testament ) ดาวน์โหลดได้จาก Thai Bible ย้ายแล้วจ้า ย้ายมา อันนี้ จะยัดลง iPhone หรือ iPod Touch ก็ได้ เพราะว่า มันอ่าน pdf ได้อยู่แล้ว จาก iBook ง่าย และ ฟรี ไม่ต้อง crack โปรแกรมให้ผิดศีล ถ้าไม่ชอบรูปแบบยังไง checkout มาแล้ว compile latex เองได้เลย จัดรูปแบบสวยงามแล้ว commit กลับมา จักเป็นพระคุณยิ่ง NOTE: ถ้าท่านต้องการสนับสนุนเรา ท่านสามารถดาวน์โหลด App ของเราได้ทางมือถือ Android ที่ App Words of God เนื้อหาจะเป็นเนื้อหาเดียวกันกับที่แจกฟรีนี้  ซึ่งใน App ท่านสามารถศึกษาพระคัมภีร์ได้แบบ Offline ซึ่งสามารถใช้งานได้โดยไม่ต้องต่ออินเตอร์เน็ต ท่านสามารถพกไปที่ไหนก็ได้ นอกจากนี้ ใน App ท่านสามารถ Search เพื่อค้นหาพระคัมภีร์ได้ และ ใน App เราไม่ได้เก็บข้อมูลใดๆ ของท่าน (เช่น การติดตามว่าท่านอ่านหน้าไหน, การติดตามว่าท่านค้นหาอะไร)  เดิมทีเราเองทำไว้ให้ทุกท่านสามารถเข้าถึงได้ฟรีทางเว็ปไซท์  ที่นี

arm-linux-gcc installation embeded system

Note that all software download is from their download page install arm-linux-gcc 1. download "ARM-Linux GCC 4.3.2" 2. export PATH=/usr/local/arm/4.3.2/bin:$PATH run HelloWorld 1. download "Linux examples" 2. cd /examples/hello 3. make their Makefile is peatty simple, you can adapt for your own CROSS=arm-linux- all: hello hello: $(CROSS)gcc -o hello hello.c clean: @rm -vf hello *.o *~ ref : Micro2440 Chinese Manual 2010-02-04

ubuntu upgrade fail !

ตั้งใจ จะ upgrade ubuntu แล้วมันดัน sleep ตอน upgrade แล้วไปๆมาๆ เครื่องก็ค้างไปเลย ปรากฏว่ามันเน่า ตอน upgrade ยังไม่เสร็จ ยังดีที่พอเข้า terminal (recovery mode) ของ kernal เก่าๆ ได้ แต่พอจะเข้าไป $ apt-get update $ apt-get dist-upgrade ดันเจอปัญหา Read-only file system ยังดีเจอวิธีแก้ จาก กระทู้นี้ ต้องปรับให้เข้ากับเครื่องของเราเองด้วยนะ $ mount -t ext3 -o rw,remount /dev/hda2 / งง ว่าอะไรยังไง ไปตามดูได้จาก ubuntu grub network ก็เสือกเน่า ifstate: No such file or directory วิธีแก้( ref ) ทำโดย สร้าง folder /var/run/network upgrade ไปปุ๊ป เจอปัญหา เน็ต ครับ เน็ตล่ม เลยเน่าไปกันใหญ่ เปิดมาจะ dist-upgrade อีกรอบเจอปัญหา 516 packages is not fully installed or removed วิธีแก้( ref ) คือ $ apt-get autoremove เย้ เข้าได้แล่ะ เอวัง TIPS : ถ้าจะแก้ fstab ดู uuid โดยสั่งตามนี้ $ ls -l /dev/disk/by-uuid

[ ubuntu ] remote control mouse and keyboard with QuickSynergy + ubuntu RemoteDesktop + windows remote desktop in the nutshell

QuickSynergy สั้นๆ ละกัน พอดีเห็นมาจาก บล็อกของ okit กับ soloman เราใช้ เมาส์ + คีย์บอร์ด จาก 'เครื่องนี้' ( สมมติ IP 192.168.1.2 ) setting ของ 'เครื่องนี้' ไปควบคุมเครื่องอื่น ( สมมติ ชื่อว่า csim-laptop ) setting ของ csim-laptop ปกติ โปรแกรมจะอยู่ที่ Applications > Accessories > QuickSynergy แต่มันมีแต่ interface เวลา connect กันไม่ติด ก็จะไม่รู้ เพราะมันไม่บอก error อะไรมาเลย ( เช่น ตอนแรก ผมใส่ Screen name ของเครื่อง 192.168.1.2 แทนที่จะใส่เป็น IP มัน connect ไม่ติด ) วิธีที่ให้รู้ คือ เปิดผ่าน commandline $ quicksynergy มันจะขึ้น error ว่า ต่อไม่ติด หรืออะไรก็ว่ากันไป RemoteDesktop Synergy มัน คุม keyboard กับ mouse ได้เท่านั้นนะ แต่ถ้าอยากจะเห็นจอด้วย ต้องลอง Remote Desktop Remote desktop ระหว่าง "ubuntu-ubuntu" อยู่ที่ System > Preferences > Remote Desktop ติ๊กว่าให้เครื่องอื่นเข้ามาได้ แล้วก็อย่าลืมตั้ง password ด้วยล่ะ เวลาเข้าตี $ vncviewer -fullscreen csim-laptop.local Remote desktop ระหว่าง "ubuntu-windows" บน windows เซต ก่

[ ubuntu ] วิธีแก้ Rhythmbox ไม่ แสดง ชื่อเพลง ภาษาไทย แบบ on-the-fly

เปิดกับโปรแกรมอะไร ก็เป็นภาษาต่างดาว มีคนเคยแนะนำวิธีแก้ไปแล้ว โดยโหลดโปรแกรมมาแล้ว ใช้โปรแกรมแปลง แต่ว่า จะลงเพลงที ก็แปลงที ก็คงไม่ไหว เหนื่อยเกิน Rhythmbox เป็นโปรแกรมเล่นเพลง ที่ติดมากับ ubuntu อยู่แล้ว เลยทำ plugin เล็กๆ มาตัวนึง สนใจ ไปลองกัน ได้ที่ Google Code ย้ายแล้วแจ้ ย้ายมา อันนี้ วิธีใช้ ง่ายมาก 1. ลง Plugin และ enable ตามวิธีในหัวข้อ Installation ในลิงก์ที่ให้ไปก่อนหน้านี้แล้ว 2. ลากเพลงลงไปใน Rhythmbox เหมือนตอน add เพลง ลง library ตามปกติ 3. มันจะแปลง metadata ของชื่อเพลง ชื่อนักร้อง ชื่ออัลบั้ม ฯลฯ จากที่เป็นภาษาต่างดาว ให้มันเป็นอ่านออก แล้วเซฟทับลงไปในตัวเพลงให้ซะเลย Version 2 ไม่เซฟทับแล้วน้ะจ้ะ แต่ playlist ยังคงอ่านรู้เรื่องเหมือนเดิม ปล. ลองซักเพลงสองเพลง ก่อนนะครับ เผื่อมันพัง ฮาๆ มี bug แจ้งได้ หรือ ถ้าว่างๆ เข้าไปแก้เองเลย ก็ไม่ว่าอะไรกัน นะครับ แต่ อย่าลืม commit กลับมาด้วยนะครับ อิอิ

[ การทำอาหาร ] วิธีทำไข่ต้มกันนะครับ

ประเดิม บล็อกแรก การทำอาหาร ด้วยการ ทำไข่ต้ม กันนะครับ ฮาๆ เบสิคไปหรือเปล่าครับ มาดูผลลัพธ์ ที่ได้กันก่อนเลย ไม่ใช่ไข่ต้มธรรมดา แต่มันคือ ไข่ต้มยางมะตูม นั่นเองครับ !! วิธีทำ คือ 1. เดินไปที่ครัว 2. เอาหม้อออกมา 3. เปิดน้ำ 4. ล้าง 5. เอาน้ำใส่หม้อ 6. เดินไปที่เตา 7. เปิดเตา 8. เปิดไม่ติดหรอกเพราะว่า ยังไม่ได้เปิดแก๊ส 9. เปิดแก๊สก่อนแล้วค่อยเปิดเตา 10. ข้อ 1-9 เป็นน้ำท่วมทุ่ง ที่ textbook ชอบเขียนกัน 11. ต้มน้ำให้เดือดก่อน 12. ใส่ไข่ลงไป 13. ต้มประมาณ 6-8 นาที 14. เอามาลงน้ำเย็น เพื่อให้แกะง่าย ถ้ามีน้ำราดหน่อยจะแจ่มมาก แต่เอาไว้แค่นี้ก่อนละกันครับ

ubuntu inspired papaya

Or ubuntu is inspired from papaya lolz

major cineplex, paragon cineplex, sf cinema, movie showtime for mobile ( โปรแกรมเช็ครอบหนัง สำหรับ มือถือ ) by dsin

ทำไว้เล่นๆ ตอนว่างๆ ไว้ใช้เอง ตั้งใจ ทำไว้สำหรับ iphone แต่ดันใช้กับ nokia ได้ด้วย ตามไปยลได้ที่ http://dsin.appspot.com/movie ถูกใจ ก็ แอ๊ดไปอยู่หน้า home screen ด้วยนะเธอว์

nokia N81 howto

How to turn off predictive text ? Tools > Settings > General > Personalisation > Language > Predictive text ref : 02 How to access Ovi Store ? Download ! ref : nokia How to Sync with google ? 1. download 'Mail for Exchange' from Ovi Store 2. follow this instruction Briefly, Connection :: Exchange Server: m.google.com Secure Connection: Yes Use default port: Yes Calendar :: Tasks :: currently not supported by Google Sync Contact :: Email ::

Makefile c++

Makefile example for compiling opencv Adapt from Dr. mdailey version #What needs to be built (TARG) from what source code (SRC) SRC = calibration.cpp TARG = dsin-opencv #Tell make what compiler we use CC = g++ #Tell gcc about non-standard places to find include (.h) files #For a system wide installation use -I /usr/include/opencv INC = -I $(HOME)/opencv2/include/ #Also tell gcc to include debug symbols (-g), give all possible warnings #(-Wall), but don't generate the annoying "unused function" warning CFLAGS = -g -Wall -Wno-unused-function $(INC) #Tell the linker where to look for libraries and what's needed for OpenCV #For a system wide installation -L isn't necessary LIB = -L $(HOME)/opencv2/lib -lcxcore -lcv -lhighgui -lcvaux -lml LDFLAGS = $(LIB) #The object files we want are just the source files with .cpp -> .o OBJS = $(SRC:.cpp=.o) #What make should try to build by default all: $(TARG) #What object files the target executable depends on $(TARG): $(OBJS)

Gimp Script-Fu installation

1. Edit > Preferences เพื่อดูว่า จะไปโยนไฟล์ .scm ไปไว้ที่ไหนได้บ้าง ( Brushes, Plugin, etc ก็ดูโฟลเดอร์ได้จากนี่เหมือนกัน ) 2. โยนไฟล์ .scm เข้าโฟลเดอร์ตามนั้น เช่น arrow.scm 3. Filters > Script-Fu > Refresh Scripts หรือ ปิด gimp ที่เปิดอยู่แล้วแล้วเปิดใหม่ 4. Arrow มันจะมาโผล่ใน Tools นะ ( Tools > Arrow ... ) ref : gimp ปล. อันนี้ลองกับ gimp-2.6 บน ubuntu 10.04

[ ubuntu linux ] OpenCV installtion

วันนี้ลองเขียน cvFindExtrinsicParams2 ปรากฏว่า มันรันแล้วค้างไปเลย ใน OpenCV 1 หรือ ไม่ก็ขึ้น error มาตามนี้ ใน OpenCV 2.0 ** On entry to DLASCL, parameter number 4 had an illegal value ไปหาๆ ดู เจอ ticket นี้ มันบอกว่า เขาแก้บักไปตั้งแต่ revision 3148 จะให้กรูไปแก้ source แล้ว make ใหม่ ก็ขี้เกียจ เพราะว่า ตอนนี้ใช้ 2.0 แต่ มันออก เวอร์ชั่น 2.01 มาแล้ว ไม่ได้ทำนาน ลืมไปแล้ว ว่าลงยังไง ยังดี มีบล๊อกของ zkan กับ sir_ivy มาช่วยให้ระลึกชาติได้ จดไว้หน่อย เด๋วลืม อันนี้ วิธีลง ของ เวอร์ชั่นก่อนหน้า $ ./configure --prefix=${HOME}/opencv --with-ffmpeg --without-quicktime $ make $ make install ส่วน 2.01 ใช้ CMake ชีวิต ก็สะดวกสบาย ขึ้นอีกนิด ( วิธีลง จริงๆ เอามาจาก README ของแม่ง ที่มันลิงก์ไปหา ดอก อีกที ) .../OpenCV-2.1.0$ mkdir release .../OpenCV-2.1.0$ cd release/ .../OpenCV-2.1.0/release$ cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/home/dsin/opencv2_1 -D BUILD_PYTHON_SUPPORT=ON .. $ make $ make install พอลงสำเร็จเรียบร้อย ก็ลอง รันโค้ด ดู อันนี้เวอร์ชั่น lite น้ะจ้ะ

ros boost 10.04

/usr/lib $ sudo ln -s libboost_program_options.so libboost_program_options-mt.so.1.38.0 $ sudo ln -s libboost_regex-mt.so libboost_regex-mt.so.1.38.0 $ sudo ln -s libboost_system-mt.so libboost_system-mt.so.1.38.0 $ sudo ln -s libboost_filesystem-mt.so libboost_filesystem-mt.so.1.38.0 $ sudo ln -s libboost_signals-mt.so libboost_signals-mt.so.1.38.0 $ sudo ln -s libboost_thread-mt.so libboost_thread-mt.so.1.38.0 วิธีแก้ที่ดีกว่า คือ https://code.ros.org/trac/wg-ros-pkg/ticket/4271

[ ubuntu ] set location and time

เครื่องหมาย set เล็กๆ ต้องเอาเมาส์ไปวาง ถึงจะโผล่ แม่งหาตั้งนาน