摘要: 来源:http://www.apkbus.com/forum.php?mod=viewthread&tid=13194&reltid=17730&pre_thread_id=0&pre_pos=3&ext=在Android开发中我们经常会用到网络连接功能与服务器进行数据的交互,为此Android的SDK提供了Apache的HttpClient来方便我们使用各种Http服务。你可以把HttpClient想象成一个浏览器,通过它的API我们可以很方便的发出GET,POST请求(当然它的功能远不止这些)。 比如你只需以下几行代码就能发出一个简单的GET请求并打 阅读全文
posted @ 2012-09-03 11:37 狼哥2 阅读(2595) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://blog.csdn.net/mfx1986/article/details/5606228分类:批处理命令2010-05-19 08:004903人阅读评论(0)收藏举报参考链接:http://hi.baidu.com/zch11230/blog/item/125ddc8bba61fe15c8fc7aa2.html在SharePoint迁移中,要同步新旧用户SID,但是用户太多,所以决定用批处理一行行读取导出的User.txt(每一行是一条用户信息),再针对每一条用户记录进行操作。 于是学习参考了上面大侠的一些知识。主要用到的是/f命令,(想了下,还是整个贴到自己空间来 阅读全文
posted @ 2012-08-31 13:55 狼哥2 阅读(3444) 评论(0) 推荐(0) 编辑
摘要: 抓包准备1. Android手机需要先获得root权限。一种是否获得root权限的检验方法:安装并打开终端模拟器(可通过安卓市场等渠道获得)。在终端模拟器界面输入su并回车,若报错则说明未root,若命令提示符从$变#则为rooted;2. 如果Android手机尚未root,可通过superoneclick或其它方法进行root处理(需要先安装Microsoft .NET Framework)。Superoneclick刷root权限教程:(http://soft.shouji.com.cn/news/501.shtml)3. 需要先获得 Android SDK4. 需要获得tcpdump软 阅读全文
posted @ 2012-08-27 17:50 狼哥2 阅读(175) 评论(0) 推荐(0) 编辑
摘要: Chapter3.HTTP state managementOriginally HTTP was designed as a stateless, request / response oriented protocol that made no special provisions for stateful sessions spanning across several logically related request / response exchanges. As HTTP protocol grew in popularity and adoption more and more 阅读全文
posted @ 2012-08-23 21:20 狼哥2 阅读(561) 评论(0) 推荐(0) 编辑
摘要: 转自:http://blog.csdn.net/frankworld/article/details/2678921很多人在工作中都会碰到过查看一些非常大的文本文件(100M以上,甚至1G)的需求,我所在的公司这种需求尤其突出。在文本文件的查看和编辑工具里最出名的应该是UltraEditer(以下简称UE)了吧。它功能非常强大,但是很多功能对我们而言没有任何用处。更严重的问题是,我们需要在大文件中搜索。如果你使用过UE打开大文件,你一定会有这种感觉,打开大文件速度比较慢,搜索就更不用说了,如果你搜索的结果有几万条甚至几十万条,那就需要你极度的耐心。而且UE不是免费的,一个license大概要5 阅读全文
posted @ 2012-07-17 17:57 狼哥2 阅读(1303) 评论(0) 推荐(0) 编辑
摘要: IBuffer^ Scenario3::GetBufferFromString(String^ str){ InMemoryRandomAccessStream^ memoryStream = ref new InMemoryRandomAccessStream(); DataWriter^ dataWriter = ref new DataWriter(memoryStream); dataWriter->WriteString(str); return dataWriter->DetachBuffer();}void Scenario3::ReadBytesButt... 阅读全文
posted @ 2012-07-04 17:18 狼哥2 阅读(838) 评论(0) 推荐(1) 编辑
摘要: String^ postData = ref new String(L"vps=1%23android2.2%23sdk%23JS11332819623969119164175006%23128%23480_800%237.1.3&pver=5&funid=4001"); ULONG BytesWritten = 0; ComPtr<IStream> postStream; HRESULT hr = S_FALSE; CreateStreamOnHGlobal(nullptr,true,&postStream); const wchar_ 阅读全文
posted @ 2012-07-03 13:31 狼哥2 阅读(5274) 评论(0) 推荐(0) 编辑
摘要: 翻译自MSDN文档:This article shows how to use C++ to create a Windows Runtime Component DLL that's callable from a Windows Metro style app that's built by using JavaScript. Here are several reasons for building such a component:这文章展示了如何使用C++创建一个使用JavaScript 创建的Windows Metro风格程序可调用的windows Runtime 阅读全文
posted @ 2012-06-19 21:05 狼哥2 阅读(1749) 评论(0) 推荐(0) 编辑
摘要: The Windows Runtime provides asynchronous APIs and programming patterns that enable your app to continue working while another operation executes on another thread. In addition to this functionality, you can use the exclusive features in the C++ compiler and the Parallel Programming Library (PPL) to 阅读全文
posted @ 2012-06-17 16:17 狼哥2 阅读(1785) 评论(0) 推荐(0) 编辑
摘要: 小于操作符重载Theless-thancomparison operator (operator<) is important to Standard Template Library operations such as sorting. We recommend that you implementoperator<if you develop a Windows Runtime component that you intend to be used in a Standard Template Library comparison operation.小于比较操作符对于标准 阅读全文
posted @ 2012-06-17 15:22 狼哥2 阅读(325) 评论(0) 推荐(0) 编辑