使用nohup命令运行一个Python程序时,只生成了nohup.out文件,但是print的内容却都没有保存到nohup.out中,使用的命令如下:
1 |
nohup python3.4 tcpserver.py |
经过在网上查询,需要在python命令后加一个-u参数才可以,正确的命令如下:
1 |
nohup python3.4 -u tcpserver.py |
使用nohup命令运行一个Python程序时,只生成了nohup.out文件,但是print的内容却都没有保存到nohup.out中,使用的命令如下:
1 |
nohup python3.4 tcpserver.py |
经过在网上查询,需要在python命令后加一个-u参数才可以,正确的命令如下:
1 |
nohup python3.4 -u tcpserver.py |
在PAYPAL帐户中添加自己的香港招行“香港一卡通”,需要填写以下信息:
(1)Name on account(帐户名称):收款人名字,英文、中文?
(2) Bank Name(银行名称):填写“CHINA MERCHANTS BANK HONG KONG BRANCH”;
(3) Account Type(帐户类型):选择“Checking(支票收款)”;
(4) Bank Code(银行代码):238,又叫CHATS CODE;
(5) Branch Location(分行地址):21F,12 HARCOURT ROAD CENTRAL
(6) Branch Code(分行代码):填写“860”这三位固定代码(即卡号中间的那三位);
(7) Account Number(帐户号码):填写你自己卡号的最后7位数字(即860之后的7位);
(7) Re-Enter Account Number(重复帐户号码):再次输入上面输入的7位收款帐号。
附截图:
其他信息:
1、招商銀行香港分行SWIFT CODE: CMBCHKHH
2、招商银行卡BIN号
信用卡:431988、356889、439225、439226、439227、518710、518718、622575、622576、622578、479229、479228、552534、552587、622581、622582、622577、521302、628362、356890、370285、370287、370289
借记卡:8位卡、955550、622580、622588、622609、621286、468203、512425、410062、524011、621483、621485、621486、621299
当我们在卸载程序或者更新安装程序时,我们需要先将运行的进程杀掉再进行安装或者卸载程序。NSIS本身并没有提供杀掉进程的脚本,但是有一个插件可以实现此功能,插件的名字叫KillProcDLL,插件下载地址为http://nsis.sourceforge.net/KillProcDLL_plug-in。插件的用法请参考插件页面所提供的内容。下面给出在安装包中的代码:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
;This callback will be called when the installer is nearly finished initializing. If the '.onInit' function calls Abort, the installer will quit instantly Function .onInit KillProcDLL::KillProc "myprogram.exe" FunctionEnd ;This callback is called when the user hits the 'cancel' button after the install has failed (if it could not extract a file, or the install script used the Abort command). Function .onInstFailed ExecShell "open" "$INSTDIRmyprogram.exe" FunctionEnd ;This callback will be called when the uninstaller is nearly finished initializing. If the 'un.onInit' function calls Abort, the uninstaller will quit instantly. Note that this function can verify and/or modify $INSTDIR if necessary. Function un.onInit MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Are you sure you want to uninstall $(^Name) and its componments?" IDYES NoAbort IDYES +2 Abort NoAbort: KillProcDLL::KillProc "myprogram.exe" FunctionEnd |
本文中的方法仅供参考,在使用过程中请自行修改此脚本。
1. 写子风格的时候,子风格和父风格之间无空格,如:#contactonline.co_row_comments{height: 120px;}这样是错误的,应该在#contactonline后加一空格
1. 今天check out项目的时候,svn突然报了一个如下错误:
1 2 3 4 |
Checkout from http://127.0.0.1/financing, revision HEAD, Fully recursive, Externals included Unable to connect to a repository at URL 'http://127.0.0.1/financing' The OPTIONS request returned invalid XML in the response: XML parse error at line 1: no element found (http://127.0.0.1/financing) |
在网上查了一上解决办法为:
在地址和项目名称之间加上svn,本例中为如下:http://127.0.0.1/svn/financing,再进行check out就没问题了
SVN客户端:TortoiseSVN 1.7.11, Build 23600 – 64 Bit, Subversion 1.7.8
SVN服务端:VisualSVN Server Manager Version: 2.5.9
$PROGRAMFILES, $PROGRAMFILES32, $PROGRAMFILES64
The program files directory (usually C:Program Files but detected at runtime). On Windows x64, $PROGRAMFILES and $PROGRAMFILES32 point to C:Program Files (x86) while $PROGRAMFILES64 points to C:Program Files. Use $PROGRAMFILES64 when installing x64 applications.
$COMMONFILES, $COMMONFILES32, $COMMONFILES64
The common files directory. This is a directory for components that are shared across applications (usually C:Program FilesCommon Files but detected at runtime). On Windows x64, $COMMONFILES and $COMMONFILES32 point to C:Program Files (x86)Common Files while $COMMONFILES64 points to C:Program FilesCommon Files. Use $COMMONFILES64 when installing x64 applications.
$DESKTOP
The Windows desktop directory (usually C:WindowsDesktop but detected at runtime). The context of this constant (All Users or Current user) depends on the SetShellVarContext setting. The default is the current user.
$EXEDIR
The directory containing the installer executable (technically you can modify this variable, but it is probably not a good idea).
$EXEFILE
The base name of the installer executable.
$EXEPATH
The full path of the installer executable.
${NSISDIR}
A symbol that contains the path where NSIS is installed. Useful if you want to call resources that are in NSIS directory e.g. Icons, UIs etc.
When compiled with support for keeping makensis and the data in the same place (the default on Windows), it is in the same place as makensis, on other platforms it is set at compile time (See the INSTALL file for info). In both instances you can modify it at runtime by setting the NSISDIR environment variable. See section 3.1.3 for more info.
$WINDIR
The Windows directory (usually C:Windows or C:WinNT but detected at runtime).
$SYSDIR
The Windows system directory (usually C:WindowsSystem or C:WinNTSystem32 but detected at runtime).
$TEMP
The system temporary directory (usually C:WindowsTemp but detected at runtime).
$STARTMENU
The start menu folder (useful in adding start menu items using CreateShortCut). The context of this constant (All Users or Current user) depends on the SetShellVarContext setting. The default is the current user.
$SMPROGRAMS
The start menu programs folder (use this whenever you want $STARTMENUPrograms). The context of this constant (All Users or Current user) depends on the SetShellVarContext setting. The default is the current user.
$SMSTARTUP
The start menu programs / startup folder. The context of this constant (All Users or Current user) depends on the SetShellVarContext setting. The default is the current user.
$QUICKLAUNCH
The quick launch folder for IE4 active desktop and above. If quick launch is not available, simply returns the same as $TEMP.
$DOCUMENTS
The documents directory. A typical path for the current user is C:Documents and SettingsFooMy Documents. The context of this constant (All Users or Current user) depends on the SetShellVarContext setting. The default is the current user.
This constant is not available on Windows 95 with Internet Explorer 4 not installed.
$SENDTO
The directory that contains Send To menu shortcut items.
$RECENT
The directory that contains shortcuts to the user’s recently used documents.
$FAVORITES
The directory that contains shortcuts to the user’s favorite websites, documents, etc. The context of this constant (All Users or Current user) depends on the SetShellVarContext setting. The default is the current user.
This constant is not available on Windows 95 with Internet Explorer 4 not installed.
$MUSIC
The user’s music files directory. The context of this constant (All Users or Current user) depends on the SetShellVarContext setting. The default is the current user.
This constant is available on Windows XP, ME and above.
$PICTURES
The user’s picture files directory. The context of this constant (All Users or Current user) depends on the SetShellVarContext setting. The default is the current user.
This constant is available on Windows 2000, XP, ME and above.
$VIDEOS
The user’s video files directory. The context of this constant (All Users or Current user) depends on the SetShellVarContext setting. The default is the current user.
This constant is available on Windows XP, ME and above.
$NETHOOD
The directory that contains link objects that may exist in the My Network Places/Network Neighborhood folder.
This constant is not available on Windows 95 with Internet Explorer 4 and Active Desktop not installed.
$FONTS
The system’s fonts directory.
$TEMPLATES
The document templates directory. The context of this constant (All Users or Current user) depends on the SetShellVarContext setting. The default is the current user.
$APPDATA
The application data directory. Detection of the current user path requires Internet Explorer 4 and above. Detection of the all users path requires Internet Explorer 5 and above. The context of this constant (All Users or Current user) depends on the SetShellVarContext setting. The default is the current user.
This constant is not available on Windows 95 with Internet Explorer 4 and Active Desktop not installed.
$LOCALAPPDATA
The local (nonroaming) application data directory.
This constant is available on Windows 2000 and above.
$PRINTHOOD
The directory that contains link objects that may exist in the Printers folder.
This constant is not available on Windows 95 and Windows 98.
$INTERNET_CACHE
Internet Explorer’s temporary internet files directory.
This constant is not available on Windows 95 and Windows NT with Internet Explorer 4 and Active Desktop not installed.
$COOKIES
Internet Explorer’s cookies directory.
This constant is not available on Windows 95 and Windows NT with Internet Explorer 4 and Active Desktop not installed.
$HISTORY
Internet Explorer’s history directory.
This constant is not available on Windows 95 and Windows NT with Internet Explorer 4 and Active Desktop not installed.
$PROFILE
The user’s profile directory. A typical path is C:Documents and SettingsFoo.
This constant is available on Windows 2000 and above.
$ADMINTOOLS
A directory where administrative tools are kept. The context of this constant (All Users or Current user) depends on the SetShellVarContext setting. The default is the current user.
This constant is available on Windows 2000, ME and above.
$RESOURCES
The resources directory that stores themes and other Windows resources (usually C:WindowsResources but detected at runtime).
This constant is available on Windows XP and above.
$RESOURCES_LOCALIZED
The localized resources directory that stores themes and other Windows resources (usually C:WindowsResources1033 but detected at runtime).
This constant is available on Windows XP and above.
$CDBURN_AREA
A directory where files awaiting to be burned to CD are stored.
This constant is available on Windows XP and above.
$HWNDPARENT
The decimal HWND of the parent window.
$PLUGINSDIR
The path to a temporary folder created upon the first usage of a plug-in or a call to InitPluginsDir. This folder is automatically deleted when the installer exits. This makes this folder the ideal folder to hold INI files for InstallOptions, bitmaps for the splash plug-in, or any other file that a plug-in needs to work.
Values work on Windows XP system user tester,在Windows Xp中登录用户为tester时的一些常量值
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
$PROGRAMFILES=C:Program Files $PROGRAMFILES32=C:Program Files $PROGRAMFILES64=C:Program Files $COMMONFILES=C:Program FilesCommon Files $COMMONFILES32=C:Program FilesCommon Files $COMMONFILES64=C:Program FilesCommon Files $DESKTOP=C:Documents and Settingstester桌面 $EXEDIR=C:Documents and Settingstester桌面 $EXEFILE=pathviewer.exe ${NSISDIR}=d:Program Files (x86)NSIS $WINDIR=C:WINDOWS $SYSDIR=C:WINDOWSsystem32 $TEMP=C:DOCUME~1testerLOCALS~1Temp $STARTMENU=C:Documents and Settingstester「开始」菜单 $SMPROGRAMS=C:Documents and Settingstester「开始」菜单程序 $SMSTARTUP=C:Documents and Settingstester「开始」菜单程序启动 $QUICKLAUNCH=C:Documents and SettingstesterApplication DataMicrosoftInternet ExplorerQuick Launch $DOCUMENTS=C:Documents and SettingstesterMy Documents $SENDTO=C:Documents and SettingstesterSendTo $RECENT=C:Documents and SettingstesterRecent $FAVORITES=C:Documents and SettingstesterFavorites $MUSIC=C:Documents and SettingstesterMy DocumentsMy Music $PICTURES=C:Documents and SettingstesterMy DocumentsMy Pictures $VIDEOS=C:Documents and SettingstesterMy DocumentsMy Videos $NETHOOD=C:Documents and SettingstesterNetHood $FONTS=C:WINDOWSFonts $TEMPLATES=C:Documents and SettingstesterTemplates $APPDATA=C:Documents and SettingstesterApplication Data $LOCALAPPDATA=C:Documents and SettingstesterLocal SettingsApplication Data $PRINTHOOD=C:Documents and SettingstesterPrintHood $INTERNET_CACHE=C:Documents and SettingstesterLocal SettingsTemporary Internet Files $COOKIES=C:Documents and SettingstesterCookies $HISTORY=C:Documents and SettingstesterLocal SettingsHistory $PROFILE=C:Documents and Settingstester $ADMINTOOLS=C:Documents and Settingstester「开始」菜单程序管理工具 $RESOURCES=C:WINDOWSresources $RESOURCES_LOCALIZED=C:WINDOWSresources |