自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(17)
  • 收藏
  • 关注

原创 Swift SpriteKit 中使用 FontAwesome

Swift SpriteKit 中使用 FontAwesome1. FontAwesome.otf加入xCode直接从Finder中把fontAwesome.otf文件拖入xCode项目下。2. Copy Bundle Resource在project->build里面,设置copy bundle resource。![这里写图片描述](http://img.blog.csdn.net/2016

2016-10-25 07:18:01 682

原创 CentOS7 PHP 连接 MSSQL 2008

1. CentOS 7.2 / MSSQL Server 2008 R2略2. CentOS MSSQL Server 2008 R21. 安装 epel 源rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-7.noarch.rpm2. 默认禁用vi /etc/yum

2016-07-11 16:04:43 3755

原创 Parallels+Fedora23+Kafka

TMD….写那么多按了个回退。。。不是号称自动保存么 1. Reference: http://www.cnblogs.com/liushannet/p/4303793.html 2. Parallels 安装 Fedora 23 3. 安装 Parallels Tools 4. DOCK强迫症患者yum updateyum install gnome-shell-extension-*

2016-06-10 16:18:48 680

原创 Egnyte CmdLine 批量下载

curl --user name@domain:pwd -O ftp://egnyte..com/path/to/folder/filename[0-163] /home/download

2014-04-24 15:20:25 687

原创 SUSE11安装NginxMongoSybasePHP环境

SUSE11安装NginxMongoSybasePHP环境

2014-04-24 13:45:53 1492

原创 [施工中]CentOS5.7 安装 FFMPEG转码MP4

=============re-request==================1. Create a file named dag.repo in /etc/yum.repos.d with the following contents on it[dag]name=Dag RPM Repository for Red Hat Enterprise Linuxbaseurl=h

2011-12-07 15:31:30 724

原创 C++/php 文件上传,支持断点续传

C++ 访问网页参见: C++访问Web页面协议: Client::HandShake({ "action":"handshake", "session":"session Info / Acc psw", "filepath":"c:/testpath/test.file", "filesize":12345678, "filemd5":"x23dfadafa

2011-11-03 12:50:28 1511

原创 C++访问网页

// Post Specified data to web server// By Jim Dai 2011// buf: content to post// blocksize: block size// strHttpName: destination url CString CUploader::UploadBinary(char * buf, UINT blocksiz

2011-11-03 11:54:21 3798

原创 C++实现urlencode

C++ 实现 urlencode,可以使用 php 的 url_decode() 解码。注意 char * 与 String 的区别在  “\0”inline BYTE toHex(const BYTE &x){ return x > 9 ? x + 55: x + 48;}CString CMyTools::urlEncoding( unsigned char * sIn,

2011-11-03 11:47:18 751

原创 GB2312 与 UTF8 互转

CString CMyTools::G2U(CString gb2312){    int len = MultiByteToWideChar(CP_ACP, 0, gb2312, -1, NULL, 0);    wchar_t* wstr = new wchar_t[len+1];    memset(wstr, 0, len+1);    MultiByteToWideC

2011-11-03 11:45:20 1049

原创 JQuery实现图片放大的动态菜单效果

div, img, ul, li { margin: 0; padding: 0;}.head img { border: 0 none; vertical-align: top; position:absolute; width:100px; height:75px;}ul, li { list-style: none ou

2011-11-03 11:42:55 430

原创 使用MySQLConnector/C++连接MySQL数据库

sql::ResultSet * CMyTools::ListAll(void){ using namespace sql; mysql::MySQL_Driver::Driver * driver; Connection * con; Statement * state; ResultSet * result; try { driver = sql::mysql:

2011-11-03 11:36:05 626

原创 单文档应用程序切换视图

BOOL CMainFrame::ReplaceView(CRuntimeClass * pViewClass){ CCreateContext context; CView * pCurrentView; // If no active view for the frame, return FALSE because this // function retr

2011-11-03 11:33:47 359

原创 ANSI 与 UTF8 互转

CString CMyTools::A2U(const char * s){ CString wStr; int nLen = ::MultiByteToWideChar( CP_UTF8, 0, s, -1, NULL,0); wchar_t* p = wStr.GetBuffer( nLen+10 ); wmemset( p, 0, nLen+10 ); nLen =

2011-11-03 11:28:58 355

原创 用CMarkup操作XML

<br />CMarkup的开源代码在firstobject.<br /> <br />主要的一些方法:<br />.load(_PATH_) //载入xml文件<br />.intoElem() //进入元素<br />.FindElem() //查找<br /> <br />例子:<br /> CMarkup xml; xml.Load(XMLPATH); CList<CString,CString&> BSList; CList<CString,CString&> BSFile; wh

2010-09-15 11:46:00 384

原创 把线程写进类中

<br />首先一个非常简单的多线程程序,基本上类似如下情况:<br />#include "stdafx.h"#include <Windows.h>#include <iostream>DWORD WINAPI MyCallBack(LPVOID lpParam);int _tmain(int argc, _TCHAR* argv[]){ std::cout<<"Main Thread online."<<std::endl; HANDLE m_hThread1 = Crea

2010-09-01 14:27:00 353

原创 转战csdn

<br />    忙东忙西的,最后还是折腾到C++了。现在说人生或许太早,但是十年最后回到C++,也算是画个小圆圈。从头开始吧。在csdn这块扎个根,也顺便把从前的那些东西整理整理,搬过来好了。

2010-08-20 09:23:00 302

空空如也

空空如也

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

TA关注的人

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