码迷,mamicode.com
首页 > 其他好文
IE8支持function.bind()方法
主要解决“百度地图”官网上的例子的bug,摘取如下代码...
分类:其他好文   时间:2014-10-16 14:18:42    阅读次数:96
Docker container 容器介绍
容器操作使用 docker 命令行操作 docker 容器启动容器core@localhost ~ $ docker run Usage: docker run [OPTIONS] IMAGE [COMMAND] [ARG...] Run a command in a new container -a, --attach=[] Attach to STDIN, ST...
分类:其他好文   时间:2014-10-16 12:55:13    阅读次数:301
HDU 1873 看病要排队
优先队列,水题。 三个医生,对应三个优先队列就可以了。 多组数据要初始化优先队列 #include #include #include #include #include #include #include #include #include #include #include #include #define INF 0x7fffffff #define eps 1e-8 #defi...
分类:其他好文   时间:2014-10-16 13:28:22    阅读次数:204
POJ1797 Heavy Transportation 【Dijkstra】
Heavy Transportation Time Limit: 3000MS   Memory Limit: 30000K Total Submissions: 21037   Accepted: 5569 Description Background  Hugo Heavy is happy. After the breakdo...
分类:其他好文   时间:2014-10-16 14:18:02    阅读次数:180
SmartController智能控制系统
脑洞大开= =!...
分类:其他好文   时间:2014-10-16 13:27:52    阅读次数:177
ListViewItem中的图片不能动态改变的解决方法
最近遇到了一个问题,就是我的listviewitem中有个图片,点击的时候需要变成另一种图片,结果在getView()中设置了响应,但是可以执行,就是不起作用,在网上查了很多资料也没有解决。最后发现时ViewHolder的创建位置有问题;之前是在adapter入口的位置创建了一个adapter,这样每次执行getView()的时候只是重新new了一个对象出来,所以setOnClickListene...
分类:其他好文   时间:2014-10-16 14:34:22    阅读次数:176
[dfs] UVALive 3667 Ruler
题目链接: https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1668 Root    Regionals 2006 >> Asia - Beijing 3667 - Ruler Ti...
分类:其他好文   时间:2014-10-16 14:50:52    阅读次数:241
王立平--Button背景,点击效果设置
1.新建....xml                         android:drawable="@drawable/ic_launcher"  />                        android:drawable="@drawable/btn"/>           2,           android:id="@+id/btn_l...
分类:其他好文   时间:2014-10-16 14:17:22    阅读次数:168
王立平--EditText实现单行显示,左侧图标,提示信息
android:layout_width="200dp"           android:layout_height="50dp"           android:hint="请输入账号"            android:singleLine="true"             android:drawableLeft="@drawable/ic_launcher"   /...
分类:其他好文   时间:2014-10-16 13:10:40    阅读次数:139
调用getChildFragmentManager时出现的Bug
Fragment中有一个ViewPager,ViewPager的每个pager为Fragment 如此内嵌引发的异常: java.lang.IllegalStateException: Activity has been destroyed at android.support.v4.app.FragmentManagerImp 的解决方案...
分类:其他好文   时间:2014-10-16 13:26:42    阅读次数:526
Circular buffer
ringbuffer...
分类:其他好文   时间:2014-10-16 14:16:32    阅读次数:218
如何让他喜欢你?让他多看一眼
多看你一眼,就会喜欢多一点。咦?为什么呢?来看看。 女友让我给她的同事介绍男朋友,我说出了一个名字,女友简直跳起来:“啊,他哪里配得上我同事?” 。其实,她同事并不见得有多美,不过,在她眼里,同事美若天仙。 想起我当红娘的一次经历。我是女方线人,朋友是男方线人,看他们迟迟没有进展,我打电话给朋友:“那女孩可是人尖儿,一堆人在后面候着呢!”朋友不疾不徐:“没到时候吧。”“都很忙吧。”又过...
分类:其他好文   时间:2014-10-16 13:09:42    阅读次数:221
单片机第3课:共阳极数码管
讲述共阳极数码管的静态显示和动态显示,有利于初学者进行学习,带您进入电子世界。...
分类:其他好文   时间:2014-10-16 13:26:12    阅读次数:189
Google2015校招在线测试题1----扫雷最少点击次数
Problem Minesweeper is a computer game that became popular in the 1980s, and is still included in some versions of the Microsoft Windows operating system. This problem has a similar idea, but it does...
分类:其他好文   时间:2014-10-16 13:26:02    阅读次数:255
使用Tcmalloc进行堆栈分析
前一篇译文《使用TCmalloc的堆栈检查》,介绍了Tcmalloc进行堆栈检查,今天翻译《heap-profiling using tcmalloc》,了解如何 TCmalloc进行堆栈分析。...
分类:其他好文   时间:2014-10-16 14:48:52    阅读次数:201
事务的隔离级别
事务的隔离级别...
分类:其他好文   时间:2014-10-16 13:25:02    阅读次数:176
SDUTOJ 1298 活动选择
#include #include using namespace std; int a[105],b[105],c[105],d[105]; int main() { int n,i,timestart=0,j,temp,t,t1,k; memset(d,0,sizeof(d)); cin>>n; for(i=1;i>a[i]>>b[i]; c[i...
分类:其他好文   时间:2014-10-16 14:31:32    阅读次数:450
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!