一开始用eclipse中svn插件习惯了,在工作中用git 一直都是使用命令行,今天有时间就装了一个egit插件,推送到github上的时候老出现各种问题。在这里做一个整理,主要步骤如下:1.装插件就不讲了,百度教程很多2.装好插件之后,在本地操作一切都ok,重点在常见的几个错误之上3.如果想要推送...
分类:
其他好文 时间:
2014-07-22 22:51:55
阅读次数:
180
1.关于本文 文中描述的是一个学习List类过程中写的程序,程序中进行了以下步骤 1)创建list<string> 2)调用函数push_front和push_back添加元素 3)调用迭代器遍历list 4)调用函数front和back查找首尾结点 5)调...
分类:
编程语言 时间:
2014-07-22 09:03:06
阅读次数:
359
一开始比较慌,下意识里就想到用reset和push -f重置版本并强制推送到远程库,经过实验发现这样做只能保证自己的本地库和远程库回到之前一个版本,而其他人想通过git pull同步是无效的,远程库版本已经低于其他人的...
分类:
其他好文 时间:
2014-07-22 08:19:33
阅读次数:
188
代码发布流程:代码上线:通过工具进行代码分发,分发方式:push(推)、pull(拉)一般拉得方式比较安全一些。工具:jenkins测试:使用wordpressinstallation:wget-O/etc/yum.repos.d/jenkins.repohttp://pkg.jenkins-ci.org/redhat/jenkins.reporpm--importhttp://pkg.jenkin..
分类:
其他好文 时间:
2014-07-19 02:14:15
阅读次数:
349
iOS页面间传值的方式(NSUserDefault/Delegate/NSNotification/Block/单例)实现了以下iOS页面间传值:1.委托delegate方式;2.通知notification方式;3.block方式;4.UserDefault或者文件方式;5.单例模式方式;6.通过...
分类:
移动开发 时间:
2014-07-18 15:01:43
阅读次数:
286
近期想做一个跑马灯的效果,于是写出了如下的跑马灯效果的代码。。。但是调试发现,在iOS6下动画是可以执行的,但是在iOS7下动画并不执行,没有达到预期的效果。
[_scrollLabel sizeToFit];
CGRect frame = _scrollLabel.frame;
frame.origin.x = 320;
_scrollLabel.frame = fra...
分类:
移动开发 时间:
2014-07-18 11:18:16
阅读次数:
208
#includepthread_t pthread_self(void)功能:获取调用线程的thread identifer例如:thread_id.c运行结果:清除:线程终止有两种情况:正常终止和非正常终止当某段代码可能出现不可预料的终止时,可以用pthread_cleanup_push和pthr...
分类:
编程语言 时间:
2014-07-18 09:19:15
阅读次数:
269
In one embodiment, a method includes sending to a mobile client computing device a first notification through a real-time push service, the first noti...
分类:
其他好文 时间:
2014-07-17 22:06:41
阅读次数:
603
//定义数组 var _arrays = []; for (var i = 0; i < 10; i++) { _shangpins.push(i); }//post $.post(href, {list: _arrays} );//get post dat...
分类:
Web程序 时间:
2014-07-16 12:05:00
阅读次数:
243
Notification(通知) 是应用程序提醒用户某件事情已经发生了的一种方式,可以在“状态栏”和“通知托盘”中看到它。如我们更新程序的时候,可以通过Notification来实现下载进度。Notification 可以有以下动作来增强用户提醒:1.在状态栏中显示图标。2.灯光:手机LED呼吸灯闪...
分类:
其他好文 时间:
2014-07-14 15:43:59
阅读次数:
208