This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| iconutil -c icns "/Users/username/icon.iconset" | |
| icon.iconset是一个文件夹,文件夹里面放以下文件,命名如下,@2x.png是双倍大小的 | |
| icon_16x16.png | |
| [email protected] | |
| icon_32x32.png | |
| [email protected] | |
| icon_128x128.png | |
| [email protected] | |
| icon_256x256.png |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 只讨论qt5, 这里以qt5.2.0 + sqlite3来举例 | |
| 1. 静态编译时记得把plugin编译进去, 下面的编译选项,可以在configure时查看 | |
| ` -qt-sql-sqlite -plugin-sql-sqlite ` | |
| 2. 编译之后察看一下是否编译成功,值得注意的是qt把sqlite3的源码已经带进去了,所以不需要去下sqlite3的源码。 | |
| 在源码+qtbase/plugins/sqldrivers/ 目录下应该存在.a之类的lib类,我这里是libqsqlite.a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python2 | |
| # coding: utf-8 | |
| import os,socket,threading,time | |
| #import traceback | |
| allow_delete = False | |
| local_ip = socket.gethostbyname(socket.gethostname()) | |
| local_port = 8888 | |
| currdir=os.path.abspath('.') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| QT_QPA_PLATFORM_PLUGIN_PATH | |
| D:\Qt\Qt520vs2010glx86\5.2.0\msvc2010_opengl\plugins |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ./configure -prefix $PWD/qtbase -opensource -nomake tests -nomake examples -debug-and-release -static -skip qtwebkit -skip qtquick1 -skip qtquickcontrols -skip qtsvg -skip qtwebkit-examples -skip qtdoc -qt-sql-sqlite -plugin-sql-sqlite -no-glib -no-sql-mysql -confirm-license |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <assert.h> | |
| typedef enum{ | |
| OBJ_INT, | |
| OBJ_PAIR | |
| } ObjectType; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gem pristine --all |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mongoexport -d database -c collection -o outputfile | |
| mongoimport -d database -c collection --file importfile --upsert | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RUBY_CONFIGURE_OPTS=--with-readline-dir=`brew --prefix readline` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Demo.cpp : Defines the entry point for the console application. | |
| // | |
| #include "stdafx.h" | |
| #include "stdafx.h" | |
| int _tmain(int argc, _TCHAR* argv[]) | |
| { | |
| HMODULE hModule = GetModuleHandle(NULL); |