码迷,mamicode.com
首页 > 2015年01月23日 > 全部分享
模拟IP测试的2种解决方法 [ 光影人像 东海陈光剑 的博客 ]
背景: 之前遇到一个Labs日常需求是对于不同IP地址访问有逻辑判断,例如湖南的IP可以访问,其他地域的IP地址无法访问应用。 难点: 在测试过程中访问应用时,本地地址无法改变,始终为同一地址。对于不同IP地址段的需求无法测试 解决方案一 使用Debug方式远程调试代码 思路:通过本地发起Http请...
分类:其他好文   时间:2015-01-23 21:22:30    阅读次数:178
布局(1、线性布局)
布局(1、线性布局)
分类:其他好文   时间:2015-01-23 21:22:05    阅读次数:140
HDU 1372 Knight Moves
Knight MovesTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7261Accepted Submission(s): 4353Proble...
分类:其他好文   时间:2015-01-23 21:20:32    阅读次数:192
算法学习笔记(三):冒泡排序
基本原理:比较相邻的元素。每一轮选出一个最大的元素,重复这个过程算法复杂度:O(n2)算法实现:void Bubblesort(int array[],int n){ int temp; for (int j = 0; j != n-1;++j) { for (int...
分类:编程语言   时间:2015-01-23 21:20:54    阅读次数:220
Activity(2. 跳转)
Activity(2. 跳转)
分类:其他好文   时间:2015-01-23 21:22:12    阅读次数:152
pthread_cond_wait 信号量丢失
服务器在使用pthread_cond_wait的时候遇到一个问题。具体描述如下一个主进程,给n个从线程发送计算请求,主进程会等待n个线程返回,在执行下一步从线程计算完毕后,最后一个线程会通知主线程。如下是示意性代码main_process(){ for(int i = 0; i sig...
分类:其他好文   时间:2015-01-23 21:20:29    阅读次数:192
LeetCode - Binary Search Tree Iterator
Binary Search Tree Iterator2015.1.23 18:58Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node ...
分类:其他好文   时间:2015-01-23 21:21:40    阅读次数:197
Android开发之控制Toast的开启与关闭
开发这个程序之前先解释一下,为什么Toast信息提示框在显示一定时间后会自己主动消失?由于在Android系统中有一个Toast队列,系统会依次从这个队列中取出一个Toast,并显示它。在显示了指定时间之后,便关闭它。那么可不能够让Toast信息提示框一直显示呢?这个要求对于Toast来说有...
分类:移动开发   时间:2015-01-23 21:20:29    阅读次数:193
phonegap 基础原理
phonegap 基础原理
分类:其他好文   时间:2015-01-23 21:21:08    阅读次数:161
widget(3、Toast)
widget(3、Toast)
分类:其他好文   时间:2015-01-23 21:21:47    阅读次数:181
算法学习笔记(二):插入排序
算法思想:A[i]插入到已排序好的A[0,1,2,...i-1]的过程为将A[i]与已排序好的元素比较,找到其应插入的位置,将其后的元素后移一位。循环这一过程即可完成排序⒈ 从第一个元素开始,该元素可以认为已经被排序⒉ 取出下一个元素,在已经排序的元素序列中从后向前扫描⒊ 如果该元素(已排序)大于新...
分类:编程语言   时间:2015-01-23 21:20:47    阅读次数:168
PHP生成二维码
利用php类库PHP QR Code来实现,不需要装额外的php扩展首先下载类库包,有时候地址打不开地址:http://phpqrcode.sourceforge.net/下载:http://sourceforge.net/projects/phpqrcode/使用时一般引入phpqrcode.ph...
分类:Web程序   时间:2015-01-23 21:18:57    阅读次数:215
startActivityForResult
1、第一个ActivityIntent intent = new Intent(MainActivity.this, WillActivity.class); intent.putExtra("will", item); ...
分类:其他好文   时间:2015-01-23 21:21:32    阅读次数:179
贴一段shell代码
好久没用shell了,呵呵#!/usr/bin/env bashCOUNTER=1while [ $COUNTER -lt 1000 ];doecho The counter is $COUNTER cat>tmp.sqlINSERT INTO "wcdata" VALUES('`(printf.....
分类:系统相关   时间:2015-01-23 21:21:05    阅读次数:263
LeetCode3-Longest Substring Without Repeating Characters
题目Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters ...
分类:其他好文   时间:2015-01-23 21:19:32    阅读次数:187
NFS,FTP
一. NFS1. NFS简介NFS全称是network file systemNFS允许一个系统在网络上与他人共享目录和文件。通过使用NFS,用户和程序可以像访问本地文件一样访问远端系统上的文件。假如有三台机器A, B, C,它们需要访问同一个目录,目录中都是图片,传统的做法是把这些图片分别放到A,...
分类:其他好文   时间:2015-01-23 21:19:43    阅读次数:212
LeetCode1-Two Sum
题目:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two...
分类:其他好文   时间:2015-01-23 21:18:04    阅读次数:239
1751条   上一页 1 ... 11 12 13 14 15 16 17 ... 103 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!