coolest blog
ggsonic · 共 281 篇文章
virtual box ubuntu no eth0
each time you give a new MAC address (in VBox guest settings) Debian and Ubuntu guests udev assigns a new eth number edit /etc/udev/rules.d/70-persistent-net.rules or delete the file: it will be recreated @ next boot
2013-06-09T12:11:12Z · 开源软件 · 评论(0)
ps select area export
Make your selection Edit -> Copy Merged(ctrl+shift+c) File -> New (Photoshop should automatically suggest a new canvas size to match the selection size)(ctrl+n) Edit -> Paste(ctrl+v) File -> Save As (PNG)(ctrl+s) Rinse and repeat... (keyboard shortcuts are handy here)
2013-06-03T18:29:55Z · 移动开发 · 评论(0)
nginx php-fpm 504 gateway timeout
make following changes to /etc/nginx/nginx.conf in http { section proxy_connect_timeout 600s; proxy_send_timeout 600s; proxy_read_timeout 600s; fastcgi_send_timeout 600s; fastcgi_read_timeout 600s;
2013-05-20T16:37:51Z · Web前端 · 评论(0)
mac tar ._foo files
mac tar files 解压后存在大量._foo 文件 set export COPY_EXTENDED_ATTRIBUTES_DISABLE=true on Tiger, or export COPYFILE_DISABLE=true on Leopard and newer OS X. then tar cvfz ...
2013-04-12T11:37:13Z · 操作系统 · 评论(0)
lua important
>if 0 then print("true") else print("false") end >true
2013-03-15T22:47:22Z · 开源软件 · 评论(0)
lua find plain mode
lua sring.find() default reg patern match;set string.find("asdf?te",'f?t',1,true) use plain find
2013-03-08T16:45:23Z · 编程语言 · 评论(0)
OPENSSL_1.0.1 not found
OPENSSL_1.0.1 not found sudo apt-get install openssl
2013-03-07T22:51:31Z · 开源软件 · 评论(0)
mysql change data dir
MySQL is a widely used and fast SQL database server. It is a client/server implementation that consists of a server daemon (mysqld) and many different client programs/libraries. If you want to install Mysql database server in Ubuntu check this tutorial. What is Mysql Data Directory? Mysql data dire…
2013-03-07T15:09:34Z · Web前端 · 评论(0)
Windows 7 fails to install; Status: 0xc0000225
changed chipset from PIIX3 to ICH9 enabled IO APIC enabled absolute pointing device (although this is probably not important)
2013-03-07T13:14:58Z · 移动开发 · 评论(0)
android gdb ndk so lib
1. adb root 手机需要rooted,并且开发者选项中设置adb可以获得root权限; root access is disabled by system setting - enable in settings -> development options 2. ndk-build 设置 ndk-build NDK_DEBUG=1 V=1 Android.mk : LOCAL_CFLAGS := -g (there should be gdb.setup gdbserver files under the libs/armeabi after ndk-build).. 3. adb…
2013-02-26T15:57:34Z · 移动开发 · 评论(0)
wxpython mac osx
cd wxPython/ sudo python build-wxpython.py --install --osx_cocoa
2013-02-21T00:49:37Z · 开源软件 · 评论(0)
mac gcc hello world
xcrun -sdk macosx10.7 -run gcc -isysroot $(xcodebuild -version -sdk macosx10.7 Path) test.m -o test test.m #include <stdio.h> int main(){ printf("hello world"); return 0; }
2013-01-24T12:15:33Z · 移动开发 · 评论(0)
iOS auto build
http://www.weste.net/2011/12-3/78382.html xcodebuild和xcrun实现自动打包iOS应用程序 2011-12-03 20:30:07来源:百度搜索研发部作者: 随着苹果手持设备用户的不断增加,ios应用也增长迅速,同时随着iphone被越狱越来越多的app 的渠道也不断增多,为各个渠道打包成了一件费时费力的工作,本文提供一种比较智能的打包方式来减少其带来的各种不便。 随着苹果手持设备用户的不断增加,ios应用也增长迅速,同时随着iphone被越狱越来越多的app 的渠道也不断增多,为各个渠道打包成了一件费时费力的工作,本文提供一种比较智能的打…
2013-01-24T11:37:25Z · 移动开发 · 评论(0)
ubuntu server android sdk platforms
tools/android list sdk --extended tools/android update sdk -u
2013-01-17T14:27:13Z · 移动开发 · 评论(0)