今天在用git的时候遇到了一个问题。在想远程分支push的时候,出现了下面的错误:
! [remote rejected] master -> refs/for/master (change 144 closed)
error: failed to push some refs to ...
检查了一下发现是因为本地分支的版本相比远程分支的版本低。
解决的过程中有如下问题:
1、(不建议...
分类:
其他好文 时间:
2014-07-23 17:06:51
阅读次数:
251
昨天一天只写了两篇文章,效率超低。追其原因呢,其实我一直在研究notification的实现方式,今天研究完了给大家分享一下。本来想写个工具类来封装一下代码的,但是我发现notification的个性化元素太多了,做成一个方法的话参数又多的要死...
分类:
其他好文 时间:
2014-07-23 15:17:07
阅读次数:
369
Zeromq是个啥玩意?Connectyourcodeinanylanguage,onanyplatform.Carriesmessagesacrossinproc,IPC,TCP,TPIC,multicast.Smartpatternslikepub-sub,push-pull,androuter-dealer.High-speedasynchronousI/Oengines,inatinylibrary.Backedbyalargeandactiveopensourcecommunity.Su..
分类:
Web程序 时间:
2014-07-23 13:45:57
阅读次数:
328
Git Push是老是失败,提示:> fatal: the remote end hung up unexpectedly > git did not exit cleanly (exit code 1)原来是文件Push文件太大引起。解决方法:windows:在 .git/config 文件中加入...
分类:
其他好文 时间:
2014-07-23 11:55:26
阅读次数:
319
开启一个服务,服务中 启动一个通知。 通知中 下载。Android之Notification的多种用法 http://blog.csdn.net/loongggdroid/article/details/17616509 Android多任务下载,使用Notification更新进度条:http:/...
分类:
移动开发 时间:
2014-07-22 22:54:53
阅读次数:
244
Notification是用来在通知中心中显示信息的,这里讲解了其最简单的使用方式。关于PendingIntent和Intent的区别可以参考这篇文章:http://blog.csdn.net/zeng622peng/article/details/6180190MainActivity.javap...
分类:
其他好文 时间:
2014-07-22 22:40:33
阅读次数:
302
The DDMS tool can be used to push out test location during testing. However, it has two serious limitations:DDMS sets location for GPS location provid...
分类:
移动开发 时间:
2014-07-22 22:34:35
阅读次数:
915
#include
#include
using namespace std;
queueq;
int main()
{
int n;
cin>>n;
for(int i=1;i<=n;i++)
q.push(i);
while(!q.empty())
{
cout<<q.front()<<' ';
q.pop();
if(!q.empty())
...
分类:
其他好文 时间:
2014-07-22 22:34:33
阅读次数:
179
在红黑联盟上看到的,这几天一直考虑做一个Notification 的带下载功能的自定义通知,但没搞出来,无意中在论坛看到这个。先Mark,明天试试。
从Android 2.3(API level 9)开始Android用系统服务(Service)的方式提供了Download Manager来优化处理长时间的下载操作。Download Manager处理HTTP连接并监控连接中的状态变化以...
分类:
移动开发 时间:
2014-07-22 14:50:04
阅读次数:
345
最短路+次短路(SPFA)
题意是要求你找出最短路的条数+与最短路只差1的次短路的条数。
开始只会算最短路的条数,和次短路的长度。真是给次短路条数跪了。ORZ。其他人都用Dijkstra。我想试试SPFA。
然后大神说要把这个最短,次短都拿去push。而且要用最短来。priority_queue。优先队列。
改得无比忧伤。反正开始改来改去连样例都过不了。后来想着 如果最短可...
分类:
其他好文 时间:
2014-07-22 14:19:59
阅读次数:
239