[ubuntu]Debug a running process by gdb

2016-10-9 写技术

1.Find the pid; ps aux|grep xxxxx 2.Bind; gdb (gdb) attach 111111 3.Show stack (gdb) bt 4.Go next (gdb)next 5. (gdb) detach 6.Exit (gdb)q

阅读全文>>

标签: ubuntu

评论(0) 浏览(1722)

[ubuntu]Install and set subversion server

2016-10-8 写技术

1.Install sudo apt-get install subversion 2.Create root fold of svn mkdir /var/svn 3.Create project svnadmin create /var/svn/project 4.Edit config /var/svn/project/svnserve.conf [general]  anon-access = none auth-access = write password-db = /var/svn/conf/passwd authz-db = /...

阅读全文>>

标签: ubuntu

评论(0) 浏览(1621)

[JS]javascript solution for md5

2016-8-31 写技术

(function($){ var rotateLeft = function(lValue, iShiftBits) { return (lValue << iShiftBits) | (lValue >>> (32 - iShiftBits)); } var addUnsigned = function(lX, lY) { var lX4, lY4, lX8, lY8, lResult; lX8 = (lX & 0x80000000); lY8 = (lY & 0x80000000); lX4 = (l...

阅读全文>>

标签: JS

评论(1) 浏览(1580)

[ubuntu]Set static ip address for ubuntu

2016-8-15 写技术

1.Edit file /etc/network/interfaces auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.1.52 netmask 255.255.255.0 gateway 192.168.1.1 dns-nameservers 222.246.129.80 114.114.114.114 2.Reboot the system.

阅读全文>>

标签: ubuntu

评论(0) 浏览(1433)

[linux]cmake:Could NOT find ZLIB

2016-8-10 写技术

$cmake .. -- CMAKE_TOOLCHAIN_FILE='' fatal: Not a git repository (or any of the parent directories): .git Git commit hash: nicholas@ubuntu- CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91 (MESSAGE):   Could NOT find ZLIB (missing: ZLIB_LIBRARY) (found ver...

阅读全文>>

标签: linux

评论(0) 浏览(6286)

[embedded]An application of qtopia in mini2440

2016-7-28 写技术

main.cpp #include <qapplication.h> #include <qlabel.h> int main(int argc, char *argv[]){ QApplication app(argc, argv); QLabel *label = new QLabel("Hehe", 0); label->show(); return app.exec(); } hello.pro CONFIG += qtopiaapp CONF...

阅读全文>>

标签: embedded

评论(0) 浏览(1418)

[embedded]纯净版qtopia-2.2.0编译PC上运行版

2016-7-20 写技术

1.下载qtopia-free-src-2.2.0.tar.gz 2.解压 3.patch 4. echo yes | ./configure -qte '-embedded -no-xft -qconfig qpe -depths 16,32 -system-jpeg -gif' -qpe '-edition pda -displaysize 240x320 -fontfamilies "helvetica fixed micro smallsmooth smoothtimes"' -qt2 '-no-openg1 -no-xft' -dqt '-no-xft -thread' m...

阅读全文>>

标签: embedded

评论(0) 浏览(1651)

[php] How to create multi websites in XAMPP

2016-7-18 写技术

1.Edit C:\Windows\System32\Drivers\etc\hosts   Expand with: 127.0.0.1 www.test.com 127.0.0.1 www.test2.com 2.Edit xampp\apache\conf\extra\httpd-vhosts.conf   Add contents like: NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot /xampp/htdocs/test Serv...

阅读全文>>

标签: php html

评论(0) 浏览(1503)

[embedded]tslib移植到mini2440上面

2016-7-12 写技术

1.解压 tar zxvf tslib-1.4.tar.gz 2../autoget.sh 3../configure --prefix=/home/nicholas/tslib_install/ --host=arm-linux ac_cv_func_malloc_0_nonnull=yes 4.make 5.make install 这会将四个文件生成到prefix设定的目录下,将四个文件复制到根文件系统的 /usr/local/tslib 下就可以了。 6.修改文件系统中/etc/profile: export TSLIB_ROOT=/usr/lo...

阅读全文>>

标签: embedded

评论(2) 浏览(2324)

[embeded]qtopia:libqtopia.so: undefined reference to `uuid_generate'

2016-6-29 写技术

libqtopia.so: undefined reference to `uuid_generate' 这么一个错误,困扰了我好几天,网上的解决方案如下: #tar -zxvf &nbsp;e2fsprogs-1.39.tar.gz #cd e2fsprogs-1.39 #./configure --enable-elf-shlibs #make #cp -rf lib/libuuid.so* /usr/lib #sudo vim&nbsp;tmake/lib/linux-g++/tmake.conf TMAKE_LIBS_X11 = -lXext -lX11...

阅读全文>>

标签: embedded linux

评论(0) 浏览(1900)

Powered by anycle 湘ICP备15001973号-1