码迷,mamicode.com
首页 >  
搜索关键字:note to self    ( 21530个结果
iOS中MBProgressHUD使用误区
由于工程使用的ARC,alloc后也没太注意,hide并不会将其release,导致其常驻内存。后用Instruments工具时才发现这问题,后悔不已。因此在这备注下。起初代码:HUD = [[MBProgressHUD alloc] initWithView:self.view]; [self.v...
分类:移动开发   时间:2014-05-19 22:14:27    阅读次数:339
fcntl 函数
设置文件的flags,阻塞设置成非阻塞,非阻塞设置成阻塞(这连个在server开发中可以封装为基本函数)线程引入pthread_self和pthread_equal原因——解决不同平台的问题!Mysql索引__索引的分类_索引的创建_使用alter建立索引(也可以在创建表时设定)、索引的分类fcnt...
分类:其他好文   时间:2014-05-19 20:48:37    阅读次数:415
PHP获取当前url路径的函数及服务器变量
1,$_SERVER["QUERY_STRING"]说明:查询(query)的字符串2,$_SERVER["REQUEST_URI"]说明:访问此页面所需的URI3,$_SERVER["SCRIPT_NAME"]说明:包含当前脚本的路径4,$_SERVER["PHP_SELF"]说明:当前正在执行脚...
分类:Web程序   时间:2014-05-19 20:09:16    阅读次数:391
#MySQL for Python(MySQLdb) Note
#MySQL for Python(MySQLdb) Note#切记不要在python中创建表,只做增删改查即可。#步骤:(0)引用库 -->(1)创建连接 -->(2)创建游标 -->(3)选择数据库 -->(4)执行语句 -->(5)关闭连接#(0)引用库import MySQLdb#(1)创建...
分类:数据库   时间:2014-05-19 09:34:15    阅读次数:413
UIActionSheet完美解决方案
最近程序中用到了,底部弹出框,看了下,前辈写得代码,搜索了下网路,发现其实都没有很好的解决问题,所以研究了下,将代码分享出来,跟大家分享一下,有问题的话,欢迎各位大牛批评指正。最古老的方法一:-(void)CreateActionSheet{ self.actionSheet= [[UIActi.....
分类:其他好文   时间:2014-05-19 08:39:03    阅读次数:306
LeetCode: Remove Nth Node From End of List [019]
【题目】 Given a linked list, remove the nth node from the end of list and return its head. For example, Given linked list: 1->2->3->4->5, and n = 2. After removing the second node from the end, the linked list becomes 1->2->3->5. Note: Given n will ...
分类:其他好文   时间:2014-05-18 18:48:03    阅读次数:269
OpenStack_Swift源码分析——Object-auditor源码分析(2)
1 Object-aduitor审计具体分析 上一篇文章中,讲解了Object-aduitor的启动,其中审计的具体执行是AuditorWorker实现的,在run_audit中实例化了AuditorWorker类,并调用audit_all_objects方法,下面看此方法的具体代码实现: def audit_all_objects(self, mode='once', device_dirs...
分类:其他好文   时间:2014-05-18 16:06:57    阅读次数:427
python中创建和遍历二叉树
python创建二叉树,源代码如下: #!/usr/bin/python class node(): def __init__(self,k=None,l=None,r=None): self.key=k; self.left=l; self.right=r; def create(root): a=raw_input('enter a key:'); if a is '#...
分类:编程语言   时间:2014-05-18 09:27:13    阅读次数:384
【LeetCode】Multiply Strings
Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-nega...
分类:其他好文   时间:2014-05-18 01:25:07    阅读次数:288
多线程顺序的控制(wait,notity,sleep)
public class abc extends Thread{ private Object prev=null; private Object self=null; private String msg=null; public abc(Object prev,Object self,Strin...
分类:编程语言   时间:2014-05-17 18:39:01    阅读次数:361
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!