自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(31)
  • 资源 (7)
  • 收藏
  • 关注

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

例子:result = DmsSysUser.objects.filter(id=request.POST.get('id')).delete()print(type(result))print(result)删除成功,结果如下:<class ‘tuple’>(1,{‘DMS.DmsSysUser’:1})删除失败,结果如下:<class ‘...

2020-01-16 10:48:44 1556

原创 python AES 加密

#!/usr/bin/python3# -*- coding:utf-8 -*-from Cryptodome.Cipher import AESfrom binascii import b2a_hex, a2b_hex# AES加密秘钥AES_CRYPTO_KEY = "AIoT_DMS-LJG"DEFAULT_USER_PWD = "123456"def add_to_...

2020-01-15 19:53:43 276

原创 layui的模板语言和django的模板语言{{}}冲突问题

需要在{{}}前后加上{% verbatim %} 和 {%endverbatim%}标签即可<script type="text/html" id="switchTpl"> <input type="checkbox" disabled name="status" value="{% verbatim %}{{d.status}}{% endverbatim...

2020-01-15 19:49:07 466

原创 【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) local_format = "%Y-%m-%d %H:%M:%S" local_dt = utc_dt.replace(tzinfo=pytz.utc).ast...

2020-01-09 19:23:08 1911

原创 Windows下获取GUID

#include "stdafx.h"#include ////////////////////////////////////////////////////////////////////////////获取guid需要的头文件#include #pragma comment(lib, "Rpcrt4.lib")//获取guidBOOL GetGUID(CStr

2012-03-08 11:05:20 7781 1

原创 GetIconInfo获取ICON的大小

ICONINFO iconInfo; ::GetIconInfo(m_hLiteIcon, &iconInfo); BITMAP bitmap; ::GetObject(iconInfo.hbmColor, sizeof(BITMAP), &bitmap); m_byIconW = (byte)bitmap.bmWidth; m_byIconH

2011-12-07 19:00:30 4082

原创 Ogre学习----读取particle文件

Ogre学习----读取particle文件

2011-06-02 14:31:00 925

转载 快速启动、停止SQL2008服务

快速启动、停止SQL2008服务

2011-05-19 08:42:00 3128

原创 Lua:VS2008 C++中link失败

Lua:VS2008中link失败

2011-04-12 19:32:00 1061

转载 attempt to call a table value

lua attempt to call a table value

2011-04-12 19:28:00 3032

转载 VS2008中使用GDI+

VS2008中使用GDI+

2011-03-18 14:15:00 946

原创 VS2008 OCX 添加外部接口、属性

VS2008 OCX 添加外部接口 、添加外部方法

2011-03-02 10:17:00 4701

原创 VC设置窗口全屏并且最前面显示(居中、最小化恢复)

VC设置窗口全屏并且最前面显示

2011-02-14 16:16:00 5779

转载 Berkeley DB

Berkeley DB

2011-01-21 14:40:00 641

原创 消息钩子使用总结

SetWindowsHookEx、CallNextHookEx、UnhookWindowsHookEx

2011-01-18 13:20:00 683

原创 CreateEvent使用总结

CreateEvent、SetEvent、ResetEvent、WaitForSingleObject

2011-01-17 17:26:00 1014

原创 VC精确定时

VC精确定时

2011-01-13 10:29:00 1026

原创 C++对象的地址

1、对象的地址是该对象拥有的所有地址中的最小地址;2、每个类中的非静态成员变量的声明顺序将会决定其地址值的大小,声明越靠后,地址值越大;3、继承和虚继承会影响父类和子类地址的分配顺序;4、以上的前提条件是在VS2008环境、无空类、无静态成员变量的情况下测试出来的;

2011-01-08 15:29:00 6490

原创 C++ 空类

VS2008环境下空类:没有数据成员,没有函数的类。(不包括默认的)1) 无继承关系的空类大小为1;2) 有虚继承的,对每一个虚继承基类,都有一个虚基类索引,占4字节;3) 空类继承多个空类,大小仍然是1;4) 空类虚继承N个空类,大小为N*4;5) 空类虚继承N个空类,继承M个空类,大小是N*4;6) 我认为空类的区分是默认的1字节的地址或者虚继承中的某个虚基类索引的地址,两者只取其一即可,也就是说空类对象的地址应该是与这两个中的一个相等的。

2011-01-06 14:39:00 1477

转载 Windows 用来定位 DLL 的搜索路径

Windows 用来定位 DLL 的搜索路径

2011-01-05 10:07:00 555

转载 /STACK(堆栈分配)

对于 x86 和 x64 计算机,默认堆栈大小为 1 MB。

2010-12-31 08:58:00 421

转载 慧人慧语

成熟的人不问过去;聪明的人不问现在;豁达的人不问未来。

2010-12-31 08:42:00 379

转载 SQL2008:如何解决“阻止保存要求重新创建表的更改”

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

2010-12-31 08:30:00 1674

原创 回调函数

指针、指针变量、指针函数、回调函数、虚函数

2010-12-29 15:08:00 433

翻译 GetLocalTime

GetLocalTime、SYSTEMTIME

2010-12-24 15:34:00 556

原创 使用CTime的一些注意点

CTime 、time_t

2010-12-24 15:10:00 1316

翻译 MakeSureDirectoryPathExists

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

2010-12-23 09:09:00 8003 1

翻译 getpeername

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

2010-12-22 10:02:00 445

翻译 inet_addr

this function returns an IP address as a 32-bit unsigned long integer in network-byte order.

2010-12-22 09:54:00 348

翻译 Using Tooltip Controls

Using Tooltip Controls

2010-12-22 09:44:00 407

翻译 Shell_NotifyIcon

 Shell_NotifyIconThis function sends a message to the system to add, modify, or delete an icon from the taskbar status area.

2010-12-22 09:36:00 2292 1

zlib-1.2.7

zlib-1.2.7官网上的

2012-10-18

Ogre_1.7.0_API

Ogre API 1.7 Ogre API 1.7 Ogre API 1.7 Ogre API 1.7

2011-05-24

深度探索C++对象模型

深度探索C++对象模型,要英文版请看Inside_the_C++_Object_Model.pdf

2011-01-08

Inside_the_C++_Object_Model[英文版]

Inside_the_C++_Object_Model

2011-01-08

Effective C++ & More Effective C++.chm

Effective C++ & More Effective C++.chm Learning the fundamentals of a programming language is one thing; learning how to design and implement effective programs in that language is something else entirely. This is especially true of C++, a language boasting an uncommon range of power and expressiveness. Built atop a full-featured conventional language (C), it also offers a wide range of object-oriented features, as well as support for templates and exceptions.

2010-12-23

Network Programming for Microsoft Windows 2nd

windows网络编程(第2版)英文版 Network Programming for Microsoft Windows 2nd

2010-12-23

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除