自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(112)
  • 资源 (11)
  • 收藏
  • 关注

原创 kubernetes及Dashboard实战配置

kubernetes及Dashboard配置本文在两台部署Centos7上部署kubernetes框架以及Dashboard的配置。Master的IP192.169.31.159Node的IP192.168.31.196安装必备程序1.Master上的操作 Master需要安装:docker、 kubernetes-master、etcd、flannelyum install -y dock

2017-11-22 11:01:16 1784

原创 不小删除python后的补救

不小删除python后的补救尝试apt-get重装此方法不一定好使,但可以方便的尝试,重装python,如若不行,重装ubuntu-desktop(此方法未有效)直接从安装盘拷贝文件使用whereis python在Try Ubuntu系统中查找python存在的位置,直接拷贝所有位置的python到自己电脑的硬盘对应的位置。(最好不要覆盖掉/usr/local/lib/python*下的文件夹,否

2017-03-10 14:02:32 2808

转载 Python实现加解密

Python实现加解密python-crypto 专门为python实现的加密库python-m2crypto 对OpenSSL的封装 http://chandlerproject.org/Projects/MeTooCryptopython-openssl 也是调用OpenSSL, 但主要用来处理https, ssl socket链接 http://pyopenssl.sourcefor

2016-08-29 16:32:15 2928

转载 How to fix: “UnicodeDecodeError: 'ascii' codec can't decode byte”

as3:/usr/local/lib/python2.7/site-packages# cat sitecustomize.pyencoding=utf8import sys reload(sys) sys.setdefaultencoding(‘utf8’)Let me check:as3:~/ngokevin-site# pythonPython 2.7.6 (default, Dec

2016-08-29 16:30:43 816

原创 C++封装python接口(libboost-python)

摘要在Python技术文档中可以找到关于Python与C++之间相互调用的部分。分别叫做extending和Embedding。可以参考技术文档Extending and Embedding the Python Interpreter。于此同时,还提供了 Python/C API接口Python/C API Reference Manual。虽然对于简单的调用使用起来很方便,但对于复杂的结构、封装

2016-07-13 17:34:56 5338

原创 python flask框架 app.debug=True时,启动脚本被执行了2次

The first thing it does is start the main function in a new thread so it can monitor >the source files and restart the thread when they change.http://stackoverflow.com/questions/9276078/whats-the-right

2016-07-08 15:12:28 2908 1

转载 ubuntu设置开机启动图形应用程序,替换默认图形桌面

从字符界面进入图形界面的方法:startx 即启动X Window一、前言无论你想要在ubuntu 12.04(11.10适用)开机启动图形程序,或者非图形程序,相信这篇文章能帮上大忙。我将根据我的需求讲解我的做法,并解释为什么这么做。完了以后,各位看官根据自己的需求不加修改或稍加修改即可适用。我这边,总得来说,需求是做一个RDP瘦客户端,在一个板子上装上ubuntu 12.04,然后要这个系统

2016-07-08 11:14:35 3508

转载 Python修饰器的函数式编程

Python的修饰器

2016-06-23 16:35:52 598

原创 flask学习笔记(-用户)

Flask-Login:用户登陆会话安装Flask扩展pip install flask-login若想使用Flask-Login扩展,必须实现以下方法: Flask-Login要求实现的用户方法 方 法 说 明

2016-06-23 13:18:19 3739

原创 flask学习笔记(-结构)

flask 程序结构

2016-06-21 15:35:23 606

原创 flask学习笔记(-数据库)

flask 数据库

2016-06-21 13:57:04 17682 1

原创 flask学习笔记(-Web 表单)

WEB表单安装flask-wtfFlask

2016-06-20 10:56:24 11608

原创 flask学习笔记(-模板)

flask模板

2016-06-17 16:25:26 3104

原创 flask学习笔记(一hello world)

flask学习笔记(一hello world)

2016-06-17 10:25:29 965

原创 flask学习笔记(一安装配置)

flask

2016-06-16 16:09:03 829

转载 GIT学习

看完了廖老师的学习git资料,收获许多!这里分享学习地址Git教程 Git Book git简明指南 常用 Git 命令清单 猴子都能懂的GIT入门

2016-06-16 11:38:51 391

原创 omniCorba配置及开启name服务

omniCorba配置及开启name服务下载omniCorbaomniCorba下载地址 安装配置 ./configure make -j8 sudo make install 配置名字服务检查/etcld.so.conf.d/libc.conf文件是否存在:/usr/local/lib若没有添加该路径 sudo ldconfig#动态链接库的路径生效 sudo mkdir /var/o

2016-06-15 10:36:48 1624

原创 CMAKE使用笔记

CMAKE使用笔记在编译前执行脚本如在编译需要将idl文件进行编译message("发现并使用omniidl编译所有的idl文件")file(GLOB_RECURSE FILE_LIST "*.idl")foreach(src ${FILE_LIST}) message("发现idl文件: " ${src}) execute_process(COMMAND omniidl -C$

2016-06-06 14:27:25 1683

原创 文章标题

统计学习方法统计学习-概述

2015-03-24 13:21:41 624

原创 COM本质论---第二章 接口

2.1 再谈接口与实现 把接口与实现分离的动机是允许实现类的内部的数据成员的数量和顺序都可以发生变化,但客户无需重新编译,并且允许DLL和客户不必使用同样的C++编译器。前面讲述的技术,虽然提供了编译器独立性,但还不足以为二进制组建提供一个普遍的底层基础。为了创建一个真正的二进制组件通用底层基础,最终还的需要语言独立性。从本质上讲,我们应该从任何一种语言都可以访问这个对象,而不仅仅是实现对

2013-10-30 17:02:34 1091

原创 COM本质论——COM是一个好的C++

1.1 软件的分发和C++        把C++作为组件的基础底层结构所带来的问题:以前,C++一直以分发源代码的形式来发布库,这样做是可行的,但存在问题:如果多个程序都使用一个代码库,则各个程序都将在自己程序中编译同样的代码,并生成可执行文件,导致内存的浪费。同时,更新困难。如:假设一段代码变成可执行的代码大小为16MB,如果一个用户安装了3个程序,这3个程序都使用了这段代码,则将

2013-10-28 17:01:56 3493

转载 DLL中传递STL参数

DLL中传递STL参数,vector对象作为dll参数传递等问题(转) STL跨平台调用会出现很多异常,你可以试试.STL使用模板生成,当我们使用模板的时候,每一个EXE,和DLL都在编译器产生了自己的代码,导致模板所使用的静态成员不同步,所以出现数据传递的各种问题,下面是详细解释。 原因分析:一句话-----如果任何STL类使用了静态变量(无论是直接还是间

2013-09-04 17:05:03 1124

原创 二维指针

void func1(int **p){}void func2(int *p[10]){}void func3(int p[10][10]){}void func1(int (*p)[10]){}void func1(int *p[10]){//重载失败,与第一个参数相同}int main(){ int a[10][10]; func1(a);//不能从(*a)[10]转换为**p

2013-09-02 17:32:05 579

转载 static_cast、dynamic_cast、reinterpret_cast、和const_cast

关于强制类型转换的问题,很多书都讨论过,写的最详细的是C++ 之父的《C++ 的设计和演化》。最好的解决方法就是不要使用C风格的强制类型转换,而是使用标准C++的类型转换符:static_cast, dynamic_cast。标准C++中有四个类型转换符:static_cast、dynamic_cast、reinterpret_cast、和const_cast。下面对它们一一进行介绍。stat

2013-08-16 14:49:05 596

原创 Unique Binary Search Trees

Unique Binary Search TreesAug 27 '123164 / 5973Given n, how many structurally unique BST's (binary search trees) that store values 1...n?For example,Given n = 3, there are a total of 5 uniqu

2013-08-09 17:08:55 812

原创 opencv与cuda的结合使用

OpenCV的gpu模块提供了有cuda实现的很多并行函数,但有时候需要自己写并行函数并与已有的opencv函数结合使用,而opencv是一个开源的函数库,我们可以很轻松的看到其内部的实现机制,可以根据他已有的函数比葫芦画瓢来写一个自己的cuda并行函数。所需要使用的gpu的关键的类有:GpuMat 和 PtrStepSz这两个类。 其中GpuMat主要是用于将内存中的数据上传到现存中,而Pt

2013-08-09 16:28:08 4609 1

原创 opencv 开启gpu模块

1、OpenCV提供的开发包中提供的库没有开启gpu和ocl模块功能,虽然有***gpu.lib/***gpu.dll文件,但不能用。如果调用gpu::getCudaEnableDeviceCount()将会return 0;要开启该功能需要重新编译opencv的库。2、 参考http://docs.opencv.org/modules/gpu/doc/introduction.html和ht

2013-08-09 16:04:01 5891 1

转载 hash_map 使用

今天在使用STL中的hash_map模板遇到使用PTCHAR作为Key时无法对字符串进行正确比较的问题,在网上查找相应的文章可惜没有找到,但找到了http://www.stlchina.org/twiki/bin/view.pl/Main/STLDetailHashMap和http://www.cppblog.com/guojingjia2006/archive/2008/01/12/41037.

2013-08-08 21:53:53 887

转载 CUDA的Threading:Block和Grid设定

硬件基本架构  实际上在 nVidia 的 GPU 里,最基本的处理单元是所谓的 SP(Streaming Processor),而一颗 nVidia 的 GPU 里,会有非常多的 SP 可以同时做计算;而数个 SP 会在附加一些其他单元,一起组成一个 SM(Streaming Multiprocessor)。几个 SM 则会在组成所谓的 TPC(Texture Processing Cl

2013-08-05 09:00:42 1944 1

原创 Symmetric Tree

Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 / \ 2 2 / \ / \3 4 4 3But the f

2013-07-22 17:15:42 791

原创 Binary Tree Level Order Traversal II

Binary Tree Level Order Traversal IIGiven a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).For example

2013-07-22 16:58:12 1354

原创 Convert Sorted Array to Binary Search Tree

Convert Sorted Array to Binary Search TreeGiven an array where elements are sorted in ascending order, convert it to a height balanced BST. /** * Definition for binary tree * struct TreeNode

2013-07-22 16:37:57 807

原创 Convert Sorted List to Binary Search Tree

Convert Sorted List to Binary Search TreeOct 3 '123397 / 9589Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST. 刚开始想用课本上的构造平衡二叉树的方法

2013-07-22 16:27:45 639

原创 Minimum Depth of Binary Tree

Minimum Depth of Binary TreeOct 10 '124568 / 11410Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node down to the near

2013-07-18 14:22:13 1653

原创 Path Sum II

Path Sum IIOct 14 '123844 / 10801Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.For example:Given the below binary tree and sum = 22,

2013-07-18 14:03:53 1325

原创 Path Sum

Path SumOct 14 '124097 / 9547Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.For example:Giv

2013-07-18 11:57:55 2193

原创 Flatten Binary Tree to Linked List

Flatten Binary Tree to Linked List  Oct 14 '124412 / 13068Given a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / \ \

2013-07-18 11:45:43 3104

原创 Distinct Subsequences

Distinct SubsequencesOct 19 '123689 / 10619Given a string S and a string T, count the number of distinct subsequences ofT in S.A subsequence of a string is a new string which is formed from th

2013-07-18 09:49:05 1433

原创 Populating Next Right Pointers in Each Node II

Populating Next Right Pointers in Each Node IIOct 28 '123191 / 7859Follow up for problem "Populating Next Right Pointers in Each Node".What if the given tree could be any binary tree? Would yo

2013-07-17 17:28:23 1473

原创 Populating Next Right Pointers in Each Node

Given a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next; }Populate each next pointer to point to its next right node. If t

2013-07-17 15:59:52 676

深度学习入门

深度学习入门教程!中文版。 快速掌握深度学习基础。。。

2017-11-22

水平集讲义

水平集是一种图像分割算法。 该讲义为英文,讲得很细致,由浅入深,对于理解水平集很有帮助。

2014-03-13

英文版蓝宝书 opengl

Many of the designations used by manufacturers and sellers to distin-guish their products are claimed as trademarks. Where those designa-tions appear in this book, and the publisher was aware of a trademark claim, the designations have been printed with initial capital letters or in all capitals.

2013-10-21

C++设计新思维泛型编程与设计模式之应用

设计新思维泛型编程与设计模式之应用 不学习泛型觉得自己没学过c++, 不学设计模式觉得自己没有学过面向对象编程

2013-10-16

inside com

最近在学习com,感觉这本书不错。 从最基础讲起,没有像其他书那样上来就搞一些术语,让人看不懂。

2013-08-16

机器学习(曾华军)

机器学习是一本好书

2012-11-29

协方差的意义

协方差,希望能帮助大家,理解协方差,并能够更深入的理解PCA

2011-09-30

模式识别第二版

模式识别第二版,张学工,(pattern recognition)很好的一本教材。

2011-09-30

空空如也

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

TA关注的人

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