
Development
文章平均质量分 74
coolypf
这个作者很懒,什么都没留下…
展开
-
数独(Sudoku)求解程序
/* 数独完全求解程序 Ver 3.0 *//* coolypf *//* 2008-11-24 22:11 */#include using namespace std;int matrix[9][9]; /*数独矩阵*/int count = 0; /*解的个数*/int check(int x, int y, bool mark[10]) /*检测matrix[x][原创 2012-08-05 19:00:52 · 3976 阅读 · 6 评论 -
基于 POCO 框架的 C++ 版搜狗代理程序
搜狗代理服务器程序,网上已经有用 Python 实现的版本。这个版本在某些情况下(例如迅雷下载)性能不够好,于是我用 C++ 实现了一个版本,基于POCO 框架开发,应当具有不错的可移植性(改一下 _snprintf 函数名)。完整的源代码如下:#include #include #include #include #include #include #include #in原创 2012-12-01 13:56:41 · 14843 阅读 · 7 评论 -
基于 POCO 框架的 TCP 连接分流程序
下面的程序实现了对 TCP 连接的分流,即将一个 TCP 连接的流量分布到多个 TCP 连接上进行传输。本程序的主要作用是在特定网络环境下提升通过 TCP 连接的 OpenVPN 服务的速率,使之充分利用带宽。程序的主要复杂之处在于单生产者—多消费者、多生产者—单消费者两种同步方式的实现。在测试中:客户端网络环境为 CERNET ,服务器是位于达拉斯的 BurstNET VPS ,连接方式是 TCP/IPv6 。直接连接, OpenVPN 速率为 341 KB/s 。使用 5 个连接进行分流, Op原创 2013-11-25 19:18:27 · 18072 阅读 · 1 评论 -
地球坐标系 (WGS-84) 到火星坐标系 (GCJ-02) 的转换算法
原文WGS-84 到 GCJ-02 的转换(即 GPS 加偏)算法是一个普通青年轻易无法接触到的“公开”的秘密。这个算法的代码在互联网上是公开的,详情请使用 Google 搜索 "wgtochina_lb" 。整理后的算法代码请参考 https://on4wp7.codeplex.com/SourceControl/changeset/view/21483#353936 。知道了这个算原创 2013-03-18 12:39:55 · 118565 阅读 · 20 评论 -
火星坐标系 (GCJ-02) 与百度坐标系 (BD-09) 的转换算法
关于 GCJ-02 和 BD-09 ,请参考 http://developer.baidu.com/map/question.htm#qa0043 。算法代码如下,其中 bd_encrypt 将 GCJ-02 坐标转换成 BD-09 坐标, bd_decrypt 反之。#include const double x_pi = 3.14159265358979324 * 3000.0原创 2013-02-04 17:43:10 · 94870 阅读 · 40 评论 -
Google 地图下载工具 (C#)
这是一个用于下载 Google 地图的小工具,相关内容参见 https://on4wp7.codeplex.com/ 。//// Google Map Tiles Downloader in C# by coolypf// No rights reserved, neither warranty nor guarantee//using System;using System.原创 2013-02-01 17:36:51 · 17908 阅读 · 0 评论 -
gSpan 频繁子图挖掘算法的实现
gSpan 是一种高效的频繁子图挖掘算法,参考 http://www.cs.ucsb.edu/~xyan/software/gSpan.htm 。/* * gSpan algorithm implemented by coolypf * http://blog.youkuaiyun.com/coolypf */#define _CRT_SECURE_NO_WARNINGS 1#inclu原创 2012-12-06 07:52:44 · 21306 阅读 · 33 评论 -
Ice Cream Sandwich 中使用私有 API 修改 WiFi 代理服务器设置
在SDK中添加私有API支持https://devmaze.wordpress.com/2011/01/18/using-com-android-internal-part-2-hacking-around/所需权限android.permission.ACCESS_WIFI_STATEandroid.permission.CHANGE_WIFI_STATE代码原创 2012-08-05 19:45:51 · 3240 阅读 · 0 评论 -
GCC 4.4 修改版
添加了 x86_64-w64-mingw32 目标平台的 multilib 支持。源代码下载地址http://115.com/file/aqo4v3yi原创 2012-08-05 19:36:04 · 1426 阅读 · 0 评论 -
五子棋(Gomoku)博弈程序
// Five AI Player// Author: coolypf// #define TEST_PERF#ifdef TEST_PERF#include #endif#include #include #include #include #include #include using namespace std;const int infinite = 10原创 2012-08-05 19:29:01 · 2857 阅读 · 1 评论 -
一些开源项目
MRRM, 基于 UniCore 指令系统的 32 位 RISC 微处理器https://code.google.com/p/mrrm/WMReader, 用于移动设备的北大未名 BBS 客户端软件https://code.google.com/p/wmreader/AVS Reflector, AVS 码流分析工具https://avsreflector.原创 2012-08-05 20:01:53 · 2421 阅读 · 0 评论 -
Firefox 4 PGO BUILD with Intel C++ Compiler 12
环境:VS2010SP1, ICC 12.0.2.154, Core i5-480M, 4GB RAM结果:性能相对Firefox 4官方版有10-20%提升。下载地址 http://115.com/file/czdy8cwu步骤: 1 修改源码中的js/src/ctypes/libffi/msvcc.sh,将cl替换成icl 2 运行autoconf之后,修改以下conf原创 2012-08-05 19:32:33 · 1681 阅读 · 0 评论 -
角斗士(Blokus)博弈程序
/********************************* Blokus Baicai Seeker Release ** by coolypf ** 2009-05-22 09:24 *********************************/#include #include #include usi原创 2012-08-05 19:18:29 · 2421 阅读 · 0 评论 -
POJ 3728 Blah数集
Blah数集#include#includeusing namespace std;int main(){ int n, i; unsigned a, p[51], q[51]; vector v[51]; while (cin >> a >> n) { if (v[a].empty()) { v[a].push_back(a);原创 2012-08-05 19:13:50 · 2458 阅读 · 1 评论 -
Windows Phone 运动轨迹记录工具 (20130404 更新)
轨迹记录工具带有 GPS 记录功能的运动手表价格不菲,于是我自己写了一个简单的运动轨迹记录工具。核心代码如下,只有不到 200 行。工具记录的数据可以使用 Isolated Storage Explorer Tool 导出,进行进一步的分析、处理和转换。下载链接 http://pan.baidu.com/share/link?shareid=375619&uk=21141958原创 2013-03-30 16:19:30 · 8373 阅读 · 10 评论