vi /etc/grub.conf
append "vga=791" without the quotes to the kernel line
Thursday, July 17, 2014
Thursday, July 3, 2014
vi/vim settings
/etc/virc for vi
/etc/vimrc for vim
~/.vimrc
syntax on
set autoindent
set sw=4
set tabstop=4
set cindent
/etc/vimrc for vim
~/.vimrc
syntax on
set autoindent
set number
set sw=4
set tabstop=4
set cindent
Sunday, June 22, 2014
Linux mount NAS with NFS type
showmount -e IPAddress
sudo mount -t nfs IPAddress:/ShareFolder /MountPoint
sudo mount -t nfs IPAddress:/ShareFolder /MountPoint
Convert Big5 and UTF-8
convmv: http://www.j3e.de/linux/convmv/
convmv -f big5 -t utf-8 -r --notest folder
-f: from
-t: to
-r: recursive
--notest: do it. If not added, it only tests it
convmv -f big5 -t utf-8 -r --notest folder
-f: from
-t: to
-r: recursive
--notest: do it. If not added, it only tests it
Thursday, April 24, 2014
MOOC (Massive Open Online Course)
UdaCity (Programming)
https://www.udacity.com/
Coursera (Engineering)
https://www.coursera.org/
Code Cademy (Programming)
http://www.codecademy.com/
Academic room
http://www.academicroom.com/
edX
https://www.edx.org/
Khan Academy (Everything)
https://www.khanacademy.org/
Code.org (For Children)
均一教育平台
http://www.junyiacademy.org/
https://www.udacity.com/
Coursera (Engineering)
https://www.coursera.org/
Code Cademy (Programming)
http://www.codecademy.com/
Academic room
http://www.academicroom.com/
edX
https://www.edx.org/
Khan Academy (Everything)
https://www.khanacademy.org/
Code.org (For Children)
均一教育平台
http://www.junyiacademy.org/
Saturday, October 12, 2013
Steps to install OpenCV on Mac OS X for XCode
Reference: http://tilomitra.com/opencv-on-mac-osx/
OpenCV installation steps:
1. Install MacPorts
2. Install CMake by "sudo port install cmake"
3. Get OpenCV source, http://opencv.willowgarage.com/wiki/InstallGuide, and untar it
4. Build OpenCV
Go to the folder where you untar the OpenCV source to.
Make a separate folder for building
. make build
. cd build
. cmake -G "Unix Makefiles" ..
Now make OpenCV
. make -j8
. sudo make install
The OpenCV will be installed to /usr/local
5. Done installing the OpenCV on Mac OS X
Create a sample project on XCode with OpenCV
1. Start a new XCode "Command Line Tool" project with Type C++
2. Add all the libopencv*.dylib (or the ones you need) into the project from /usr/local/lib with "Copy items into destination group's folder (if needed)" checked
3. Add "/usr/local/include" into "Header Search Path" in Build Settings of project
4. Add "/usr/local/lib" into "Library Search Path" in Build Settings of project
5. Either 4.1 or 4.2
4.1 Select "libstdc++ (GNU C++ standard library)" instead of "libc++ (LLVM C++ standard library with C++11 support)" in "Apple LLVM compiler 4.2 - Language" in Build Settings
4.2 Select "LLVM GCC 4.2" instead of "Default compiler (Apple LLVM compiler 4.2)" in "Compiler for C/C++/Objective-C" in Build Settings
6. Write some codes to test OpenCV
OpenCV installation steps:
1. Install MacPorts
2. Install CMake by "sudo port install cmake"
3. Get OpenCV source, http://opencv.willowgarage.com/wiki/InstallGuide, and untar it
4. Build OpenCV
Go to the folder where you untar the OpenCV source to.
Make a separate folder for building
. make build
. cd build
. cmake -G "Unix Makefiles" ..
Now make OpenCV
. make -j8
. sudo make install
The OpenCV will be installed to /usr/local
5. Done installing the OpenCV on Mac OS X
Create a sample project on XCode with OpenCV
1. Start a new XCode "Command Line Tool" project with Type C++
2. Add all the libopencv*.dylib (or the ones you need) into the project from /usr/local/lib with "Copy items into destination group's folder (if needed)" checked
3. Add "/usr/local/include" into "Header Search Path" in Build Settings of project
4. Add "/usr/local/lib" into "Library Search Path" in Build Settings of project
5. Either 4.1 or 4.2
4.1 Select "libstdc++ (GNU C++ standard library)" instead of "libc++ (LLVM C++ standard library with C++11 support)" in "Apple LLVM compiler 4.2 - Language" in Build Settings
4.2 Select "LLVM GCC 4.2" instead of "Default compiler (Apple LLVM compiler 4.2)" in "Compiler for C/C++/Objective-C" in Build Settings
6. Write some codes to test OpenCV
#include
#include
#include "opencv2/core/core.hpp"
using namespace cv ;
int main(int argc, char** argv)
{
#if 0
//get the image from the directed path
IplImage* img = cvLoadImage("/Users/Howard/Desktop/Codes/OpenCV/CV/Lena_512.bmp", 1);
//NSLog(img);
//create a window to display the image
cvNamedWindow("picture", 1);
//show the image in the window
cvShowImage("picture", img);
//wait for the user to hit a key
cvWaitKey(0);
//delete the image and window
cvReleaseImage(&img);
cvDestroyWindow("picture");
#else
Mat img = imread("/Users/Howard/Desktop/Codes/OpenCV/CV/Lena_512.bmp", CV_LOAD_IMAGE_UNCHANGED);
if (img.data == NULL)
{
printf("\n Image cannot be loaded") ;
system("pause");
return -1;
}
namedWindow("OrgImage", CV_WINDOW_AUTOSIZE);
imshow("OrgImage", img);
waitKey(0) ;
#endif
}
7. That's all
Thursday, May 9, 2013
List all the functions/symbols of a library
Static library:
nm -gU nameOfLibrary.a
Shared library
objdump -T xxx.so
nm -gU nameOfLibrary.a
Shared library
objdump -T xxx.so
Subscribe to:
Posts (Atom)
Check clients which connect to Mac OS X Wi-Fi Internet Sharing
arp -i bridge100 -a bridge100 may be different on your Mac OSX
-
1. Create an account on TestFlight ( http://testflightapp.com ) and with "Developer" option checked. 2. Log in to the TestFlight ...
-
[轉載] [Javascript] Encrypt your private blog post from the article of Kaie's Blog 今日在PPT上的Blog版逛到版友weijr所提到的一篇好文章,可以用來針對Blog中某一段文字給予加密,變成...
-
For Mac OS: Use lipo. Ex. lipo -info staticLibrary.a For Linux OS: Use file Ex. file staticLibrary.c