原创 getpeername

  This function is used to obtain the peer's socket address information on a connected socket. The function is define

原创 inet_addr

  A useful support function named inet_addr converts a dotted IP address to a 32-bit unsigned long integer quantity. T

原创 Shell_NotifyIcon

    Shell_NotifyIcon   This function sends a message to the system to add, modify, or delete an icon from the task

原创 Using Tooltip Controls

pos">http://msdn.microsoft.com/zh-cn/library/bb760252(en-us,VS.85).aspx#tooltips_sample_inplace_pos   The following e

原创 GetLocalTime

  GetLocalTime     This function retrieves the current local date and time. re class="syntax">void GetLocalTime( LP

原创 layui的模板語言和django的模板語言{{}}衝突問題

需要在{{}}前後加上{% verbatim %}  和   {% endverbatim %}標籤即可 <script type="text/html" id="switchTpl"> <input type="checkbox"

原创 使用CTime的一些注意點

CTime   1、時間的範圍:The upper date limit is 12/31/3000. The lower limit is 1/1/1970 12:00:00 AM GMT.   2、構造函數CTime( int nY

原创 MakeSureDirectoryPathExists

  MakeSureDirectoryPathExists Function   Creates all the directories in the specified path, beginning with the root.

原创 【Django】模型delete返回值判斷

例子: result = DmsSysUser.objects.filter(id=request.POST.get('id')).delete() print(type(result)) print(result) 刪除成功,結果如下:

原创 python AES 加密

#!/usr/bin/python3 # -*- coding:utf-8 -*- from Cryptodome.Cipher import AES from binascii import b2a_hex, a2b_hex # A

原创 【django】TypeError: Object of type datetime is not JSON serializable

views.py中編寫如下代碼(需要import的東西自己補充): def utc_to_local(utc_dt): local_tz = pytz.timezone(settings.TIME_ZONE) loca

原创 Ogre學習----讀取particle文件

#include "Ogre/Ogre.h" #include "Ogre/OgreScriptLexer.h" #include "Ogre/OgreScriptParser.h" #include <iostream> void

原创 快速啓動、停止SQL2008服務

1、啓動SQL Server 2008服務.bat @echo off @ ECHO 啓動SQL Server 2008 服務 pause net start "SQL Server (MSSQLSERVER)" net sta

原创 SQL2008:如何解決“阻止保存要求重新創建表的更改”

http://apps.hi.baidu.com/share/detail/7269195   當用戶在在SQL Server 2008企業管理器中更改表結構時,必須要先刪除原來的表,然後重新創建新表,才能完成表的更改,如果強行更改會出現

原创 Berkeley DB

  1、http://baike.baidu.com/view/1281930.htm Berkeley DB的核心數據結構  數據庫環境句柄DB_ENV: 每個DB_ENV相當於一個數據庫,它包含了數據庫全局信息,比如緩衝區大小、以