自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 php op code 缓存 xcache

xcache 缓存 PHP 的 操作码 操作码 缓存起来之后,不用每次执行 php 代码的时候,CPU 和内存 重新执行一次,这样减少了 CPU 和 内存的压力,提高效率。 说明: php安装目录:/usr/local/php php.ini配置文件路径:/usr/local/php/etc/php.ini Nginx安装目录:/usr/local

2015-09-21 14:57:22 748

原创 mamp 下 的mysql 安装 python 的 mysql 接口 MySQLdb

搞了几个小时,后来才才发现 mamp 环境下的mysql  无法安装 Python 的 MySQLdb 。解决办法就是 重新编译安装 mysql 这是原文链接 How to install mysqldb (mysql-python) on MAMP http://dreamconception.com/tech/how-to-install-mysqldb-mysql-pyth

2015-09-20 15:59:08 715

原创 Mac Python 操作 粘贴板

Usage is simple: import pyperclip pyperclip.copy('The text to be copied to the clipboard.') spam = pyperclip.paste() 原文链接 http://coffeeghost.net/2010/10/09/pyperclip-a-cross-platform-clipboar

2015-09-20 11:12:47 2936 1

原创 selenium 操作测试对象

1、鼠标点击与键盘输入 browser.find_element_by_id("kw").send_keys("XXX") ---用于在输入框里输入 内容 browser.find_element_by_id("kw")click()  用于点击一个按钮 browser.find_element_by_id("kw").clear() 清除输入框里面的内容 2、

2015-09-20 10:35:58 464

原创 selenium 浏览器操作

1、浏览器最大化 browser.maximize_window() #将浏览器最大化显示 2、设置浏览器宽、高 browser.set_window_size(480, 800) 3、浏览器的前进、后退 browser.back() bro

2015-09-20 10:27:30 1103

原创 selenium python 常用命令---元素定位 休眠

find_element_by_id("kw") -- 通过id 查找元素 browser.close() -- 关闭当前窗口 browser.quit() -- 退出浏览器 元素定位 #通过 id 方式定位 browser.find_element_b

2015-09-20 10:23:52 1261

原创 laravel 分页 说明

后端采用laravel框架开发 后端php     public function index(){         $res = DB::table('school_news')->orderBy('id' , 'desc')->paginate(2);         //dd($res);         return $this->tpl('viewer.page.pc_

2015-09-17 14:18:22 521

原创 fix-plus fis-plus 是扩展自FIS的前端集成解决方案

http://oak.baidu.com/fis-plus/document.html#%25E5%25BF%25AB%25E9%2580%259F%25E5%2585%25A5%25E9%2597%25A8

2015-09-15 13:57:15 459

原创 laravel -- 安装

http://www.ituring.com.cn/article/194739 composer 的安装 可以自行google , 这个没有太大问题的。 composer config -l -g ------ 这个命令 找到配置内容 其中的[home]配置项内容 找到[home]路径 , 进入 vendor/bin 执行 laravel new blog(项目名称)

2015-09-11 18:29:56 348

原则 pdf 作者: [美] 瑞·达利欧

※ 华尔街投资大神、对冲基金公司桥水创始人,人生经验之作 作者瑞·达利欧出身美国普通中产家庭,26岁时被炒鱿鱼后在自己的两居室内创办了桥水,现在桥水管理资金超过1 500亿美元,截至2015年年底,盈利超过450亿美元。达利欧曾成功预测2008年金融危机,现在将其白手起 家以来40多年的生活和工作原则公开。 ※ 多角度、立体阐述生活、工作、管理原则 包含21条高原则、139条中原则和365条分原则,涵盖为人处事、公司管理两大方面。此前从未有过的逐一详细解答,配合达利欧多年来的各种实例和感悟。任何人都可以轻松上手实践。用以指导桥水日常管理,是桥水的员工手册,帮助桥水屹立40余年不倒,经受住了现实考验。 ※ 半个金融圈、投资界、管理层都在期待简体中文版 2010年起,简略版的原则被放在桥水官网上,至今共计被下载了超过300万次,无数企业、管理者、职场人士

2019-04-03

php--二维码生成代码

谷歌开源的二维码生成代码 //processing form input //remember to sanitize user input in real-life solution !!! $errorCorrectionLevel = 'L'; if (isset($_REQUEST['level']) && in_array($_REQUEST['level'], array('L','M','Q','H'))) $errorCorrectionLevel = $_REQUEST['level']; $matrixPointSize = 4; if (isset($_REQUEST['size'])) $matrixPointSize = min(max((int)$_REQUEST['size'], 1), 10);

2015-07-23

sphinx + mmseg 中文分词

sphinx + mmseg 中文分词

2015-07-18

批量发博客

批量发新浪博客,注意,只是针对 新浪博客的,其他博客的暂时无效。方便,你把本地的文字上传到你的新浪博客里面

2014-06-28

gh0st的socket内核文件

#include <winsock2.h> #include <MSTcpIP.h> #pragma comment(lib,"ws2_32.lib") #include "Buffer.h" #include "CpuUsage.h" #include <process.h> #include <afxtempl.h> //////////////////////////////////////////////////////////////////// #define NC_CLIENT_CONNECT 0x0001 #define NC_CLIENT_DISCONNECT 0x0002 #define NC_TRANSMIT 0x0003 #define NC_RECEIVE 0x0004 #define NC_RECEIVE_COMPLETE 0x0005 // 完整接收 class CLock { public: CLock(CRITICAL_SECTION& cs, const CString& strFunc) { m_strFunc = strFunc; m_pcs = &cs; Lock(); } ~CLock() { Unlock(); } void Unlock() { LeaveCriticalSection(m_pcs); TRACE(_T("LC %d %s\n") , GetCurrentThreadId() , m_strFunc); } void Lock() { TRACE(_T("EC %d %s\n") , GetCurrentThreadId(), m_strFunc); EnterCriticalSection(m_pcs); } protected: CRITICAL_SECTION* m_pcs; CString m_strFunc; }; enum IOType { IOInitialize, IORead, IOWrite, IOIdle }; class OVERLAPPEDPLUS { public: OVERLAPPED m_ol; IOType m_ioType; OVERLAPPEDPLUS(IOType ioType) { ZeroMemory(this, sizeof(OVERLAPPEDPLUS)); m_ioType = ioType; } }; //lang2.1_3 struct ClientContext //简单分析ClientContext结构体然后回到 SendSelectCommand { SOCKET m_Socket; //套接字 // Store buffers CBuffer m_WriteBuffer; CBuffer m_CompressionBuffer; // 接收到的压缩的数据 CBuffer m_DeCompressionBuffer; // 解压后的数据 CBuffer m_ResendWriteBuffer; // 上次发送的数据包,接收失败时重发时用 int m_Dialog[2]; // 放对话框列表用,第一个int是类型,第二个是CDialog的地址 int m_nTransferProgress; // Input Elements for Winsock WSABUF m_wsaInBuffer; BYTE m_byInBuffer[8192]; // Output elements for Winsock WSABUF m_wsaOutBuffer; HANDLE m_hWriteComplete; // Message counts... purely for example purposes LONG m_nMsgIn; LONG m_nMsgOut; BOOL m_bIsMainSocket; // 是不是主socket ClientContext* m_pWriteContext; ClientContext* m_pReadContext; }; template<> inline UINT AFXAPI HashKey(CString & strGuid) { return HashKey( (LPCTSTR) strGuid); } #include "Mapper.h" typedef void (CALLBACK* NOTIFYPROC)(LPVOID, ClientContext*, UINT nCode); typedef CList<ClientContext*, ClientContext* > ContextList; class CMainFrame; class CIOCPServer { public: void DisconnectAll(); CIOCPServer(); virtual ~CIOCPServer(); NOTIFYPROC m_pNotifyProc; CMainFrame* m_pFrame; bool Initialize(NOTIFYPROC pNotifyProc, CMainFrame* pFrame, int nMaxConnections, int nPort); static unsigned __stdcall ListenThreadProc(LPVOID lpVoid); static unsigned __stdcall ThreadPoolFunc(LPVOID WorkContext); static CRITICAL_SECTION m_cs; void Send(ClientContext* pContext, LPBYTE lpData, UINT nSize); void PostRecv(ClientContext* pContext); bool IsRunning(); void Shutdown(); void ResetConnection(ClientContext* pContext); LONG m_nCurrentThreads; LONG m_nBusyThreads; UINT m_nSendKbps; // 发送即时速度 UINT m_nRecvKbps; // 接受即时速度 UINT m_nMaxConnections; // 最大连接数 protected: void InitializeClientRead(ClientContext* pContext); BOOL AssociateSocketWithCompletionPort(SOCKET device, HANDLE hCompletionPort, DWORD dwCompletionKey); void RemoveStaleClient(ClientContext* pContext, BOOL bGraceful); void MoveToFreePool(ClientContext *pContext); ClientContext* AllocateContext(); LONG m_nWorkerCnt; bool m_bInit; bool m_bDisconnectAll; BYTE m_bPacketFlag[5]; void CloseCompletionPort(); void OnAccept(); bool InitializeIOCP(void); void Stop(); ContextList m_listContexts; ContextList m_listFreePool; WSAEVENT m_hEvent; SOCKET m_socListen; HANDLE m_hKillEvent; HANDLE m_hThread; HANDLE m_hCompletionPort; bool m_bTimeToKill; CCpuUsage m_cpu; LONG m_nKeepLiveTime; // 心跳超时 // Thread Pool Tunables LONG m_nThreadPoolMin; LONG m_nThreadPoolMax; LONG m_nCPULoThreshold; LONG m_nCPUHiThreshold; CString GetHostName(SOCKET socket); void CreateStream(ClientContext* pContext); BEGIN_IO_MSG_MAP() IO_MESSAGE_HANDLER(IORead, OnClientReading) IO_MESSAGE_HANDLER(IOWrite, OnClientWriting) IO_MESSAGE_HANDLER(IOInitialize, OnClientInitializing) END_IO_MSG_MAP() bool OnClientInitializing (ClientContext* pContext, DWORD dwSize = 0); bool OnClientReading (ClientContext* pContext, DWORD dwSize = 0); bool OnClientWriting (ClientContext* pContext, DWORD dwSize = 0); };

2014-06-05

CTrueColorToolBar 类

class CTrueColorToolBar : public CToolBar { // Construction public: CTrueColorToolBar(); // Attributes private: BOOL m_bDropDown; struct stDropDownInfo { public: UINT uButtonID; UINT uMenuID; CWnd* pParent; }; CArray m_lstDropDownButton; // Operations public: BOOL LoadTrueColorToolBar(int nBtnWidth, UINT uToolBar, UINT uToolBarHot = 0, UINT uToolBarDisabled = 0); void AddDropDownButton(CWnd* pParent, UINT uButtonID, UINT uMenuID); private: BOOL SetTrueColorToolBar(UINT uToolBarType, UINT uToolBar, int nBtnWidth); // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CTrueColorToolBar) //}}AFX_VIRTUAL // Implementation public: virtual ~CTrueColorToolBar(); // Generated message map functions protected: //{{AFX_MSG(CTrueColorToolBar) afx_msg void OnToolbarDropDown(NMHDR * pnmh, LRESULT* plRes); //}}AFX_MSG DECLARE_MESSAGE_MAP() };

2014-06-04

使用OllyDbg从零开始Cracking

第一章-OD的各个窗口介绍 第二章-数制系统 第三章-寄存器 第四章-汇编指令 第五章-数学指令 第六章-比较和条件跳转指令 第七章-call,ret 第八章-循环,字符串指令和寻址方式 第九章-基本概念 第十章-断点 第十一章-硬件断点与条件断点 第十二章-消息断点

2014-05-04

各种跳转指令.pdf

汇编中各种跳转指令 jmp jne je 不错的资源

2013-11-23

电子商务与社交网络的可能结合.

我对电子商务和社交网络的一点思考,有兴趣的可以交流交流

2011-12-18

空空如也

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

TA关注的人

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