上一页 1 ··· 302 303 304 305 306 307 308 309 310 ··· 411 下一页
摘要: 向server上传文件在android开发中是一件在普通只是的事了。正好如今项目中实用到就做一下总结吧。 1.使用HttpURLConnection。这样的方法比較麻烦,须要自己模拟表单提交。2.使用httpmime库实现,这样的方法是建立在HttpClient基础上的。在2.3以后使用HttpUR 阅读全文
posted @ 2017-06-19 17:42 yjbjingcha 阅读(151) 评论(0) 推荐(0)
摘要: 在Android的开发其中,Application和Context对象应该是我们接触最多的对象了,特别是Context对象。 当我们在某个Activity或者Service其中时,因为它们本身就是Context的子类。因此“this”能够等价于Context对象使用。然而。在非常多时候这个Conte 阅读全文
posted @ 2017-06-19 16:22 yjbjingcha 阅读(158) 评论(0) 推荐(0)
摘要: Problem Description The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit the 阅读全文
posted @ 2017-06-19 15:09 yjbjingcha 阅读(152) 评论(0) 推荐(0)
摘要: 作为一名程序猿,日常的工作除了上班撸代码就是加班撸代码了。撸码事实上不难,无非询问Google,StackOverflow,解决方法和demo一箩筐。可是撸的一手好代码着实不易。无独有偶,码农一抓一大把,优秀的程序猿却不易寻觅。优秀的程序猿既不可能出自各种天花乱坠的培训机构,更不可能来自挖掘机摇篮山 阅读全文
posted @ 2017-06-19 15:07 yjbjingcha 阅读(270) 评论(0) 推荐(0)
摘要: #include<iostream> using namespace std; int a[1010]; void qsort(int a[],int l,int r) { int x=a[l],i=l,j=r; if(l>=r) return ; while(i<j) { while(i<j&&a 阅读全文
posted @ 2017-06-19 14:10 yjbjingcha 阅读(178) 评论(0) 推荐(0)
摘要: package exchange_sort; import java.util.Random; /*各类交换排序 * 数据存储范围1~s.length-1 *主要包含 *冒泡排序 *快排 */ public class Sort { /* * 冒泡排序 稳定 */ private static vo 阅读全文
posted @ 2017-06-19 12:29 yjbjingcha 阅读(157) 评论(0) 推荐(0)
摘要: 1 踩过的坑 1.1 io_service boost::asio::io_service::run()会一直运行到没有任务为止,假设中途调用stop()。则全部等待中的任务会立马运行。要在停止的时候抛弃全部的任务,解决方式是用run_one()。即 while (keep_running) io_ 阅读全文
posted @ 2017-06-19 11:43 yjbjingcha 阅读(395) 评论(0) 推荐(0)
摘要: 准备工作: 我用的开发环境是windows下的apache+mysql+php 编辑器不知道该用哪个好。临时用dreamweaver吧 我自己的http://localhost/相应的根文件夹是E:/website/localhost/ yii的下载地址是https://github.com/yii 阅读全文
posted @ 2017-06-19 10:08 yjbjingcha 阅读(190) 评论(0) 推荐(0)
摘要: 选择法 基本思想。 每一趟 (比如第 i 趟,i = 0, 1, …,n-2)在后面 n-i个待排的数据元素中选出keyword 最小的元素, 作为有序元素序列的第 i 个元素。 排序过程 首先通过n-1次keyword比較,从n个记录中找出keyword最小的记录,将它与第一个记录交换; 再通过n 阅读全文
posted @ 2017-06-19 09:26 yjbjingcha 阅读(190) 评论(0) 推荐(0)
摘要: 原文地址: http://www.30daydo.com/article/56 由于平时爱好摄影。所以喜欢看看色影无忌论坛的获奖摄影作品,所以写了个小script用来抓取上面的获奖图片,亲自測试能够使用。 自己主动抓全部的获奖图片 完整代码: #-*-coding=utf-8-*- __author 阅读全文
posted @ 2017-06-18 21:09 yjbjingcha 阅读(364) 评论(0) 推荐(0)
上一页 1 ··· 302 303 304 305 306 307 308 309 310 ··· 411 下一页