码迷,mamicode.com
首页 >  
搜索关键字:something    ( 1401个结果
Handler导致内存泄露分析
Handler mHandler = new Handler() { ? ? @Override ? ? public void handleMessage(Message msg) { ? ? ? ?? ???// do something. ? ? } } ``` 当我们这样创建`Handler`的时候`Android Lint`会提示...
分类:其他好文   时间:2014-08-26 13:52:36    阅读次数:245
五条垂暮之年才明白的道理
5 life lessons you will learn the hard way五条垂暮之年才明白的道理Life is not easy when you are pursuing something worthwhile and ready to learn from the best exp...
分类:其他好文   时间:2014-08-25 11:31:04    阅读次数:275
shell语法
#if语法 ```sh if list then do something here elif list then do another thing here else do something else here fi ``` 基本上和其他脚本语言一样。没有太大区别。不过值得注意的是。[]里面的条件判断。 ##...
分类:其他好文   时间:2014-08-23 11:28:50    阅读次数:187
【python】字符遍历
Python为我们提供了很多便捷的方式去遍历一个字符串中的字符。比如,将一个字符串转换为一个字符数组(列表):theList=list(theString)同时,我们可以方便的通过for语句进行遍历:for c in theString: do_something_with(c)map函数用法:第一...
分类:编程语言   时间:2014-08-21 22:26:34    阅读次数:263
JQuery Notes
$(document).ready(something); says: "when the HTML document is ready, do something!"$(document).ready(function() { var $target = $('li:nth-child(4)...
分类:Web程序   时间:2014-08-20 09:14:56    阅读次数:275
在Web Service中傳送Dictionary
有個需求,想在Web Service中傳遞Dictionary參數,例如:排版顯示純文字[WebMethod]public Dictionary Process(Dictionary dct){ //Do something on the Dictionary //... blah bl...
分类:Web程序   时间:2014-08-18 16:03:53    阅读次数:250
Change value of string array at debug eclipse--转
Question:I have an application, but to test something, I need to change value of aString[].But when I do it usingchange valueinvariablestab, everytime...
分类:系统相关   时间:2014-08-14 20:30:49    阅读次数:321
amazon 设计 9 chat server
Solution:Apparently, I am too naive and I think too few. Here's the detailed solution.What is our chat server?This is something you should discuss wit...
分类:其他好文   时间:2014-08-12 05:53:23    阅读次数:210
perl一次读取多行文本的策略
在处理文本时,常常遇到这样的情况:就是我们需要把两行文本做一个比较,然后选择性输出。而在while(){do something}程序块中默认只能一次读取一行。笔者在这里,举一个简单的例子来说明怎么处理这种情况。 有一个这样一段文本: a 1 2 3 4 a 5 6 7 8 a 6 7 8 9 a 7 8 9 11 a 7 8 9 12 a 13 12 14 15 a 18 14...
分类:其他好文   时间:2014-08-10 01:50:09    阅读次数:237
ThreadPool.QueueUserWorkItem的性能问题
在WEB开发中,为了降低页面等待时间提高用户体验,我们往往会把一些浪费时间的操作放到新线程中在后台执行。简单的实现代码就是://代码一new Thread(()=>{//do something}).Start();可是对于一个请求量大的网址这样做是非常不现实的——每个操作都要开启一个新线程,终于会...
分类:其他好文   时间:2014-08-05 22:09:20    阅读次数:374
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!