现在位置: 首页 > decoupage发表的所有文章
  • 03月
  • 14日
综合 ⁄ 共 306字 评论关闭
测试jdk版本     输入 java -version 命令,查看jdk版本,如果结果和下面的类似,配置就成功了。 java version "1.7.0" Java(TM) SE Runtime Environment (build 1.7.0-b147) Java HotSpot(TM) 最后一步,有可能出现错误, bash: /usr/lib/jvm/java-7-sun/bin/java: 没有那个文件或目录 这里是因为缺少32位的运行库 ia32-libs ,64位系统装32位的jdk,安装这个运行库即可解决 sudo apt-get install ia32-libs 安装完毕,原先的openjdk也不用删除,以后需要的时候还可以更改过来
阅读全文
  • 03月
  • 12日
综合 ⁄ 共 4311字 评论关闭
Acronym PRACK-- Provisional Response ACKnowledgement method PRACK SIP defines two types of responses, provisional and final. Final responses convey the result of the request processing, and are sent reliably.  Provisional responses provide information on the progress of the request processing, but are not sent reliably in RFC3261. Provisional responses indicate that the server contacted is performing some further action and does not yet have a definitive response. A server sends a 1xx r......
阅读全文
  • 08月
  • 22日
综合 ⁄ 共 9493字 评论关闭
教你如何升级app适配iOS 7 发布于:2013-10-11 13:37阅读数:21096 开始工作 在这篇教程中,我们会将一个为iOS 6设计的app《Treasure Hunt》升级适配iOS 7。 Treasure Hunt是一个社交应用,允许用户分享藏宝图,用户们可以沉浸于一起解决谜题以及寻找宝藏。这有点像 “” 阅读器 原文:http://www.raywenderlich.com/49316/how-to-update-your-app-for-ios-7   开始工作 在这篇教程中,我们会将一个为iOS 6设计的app《Treasure Hunt》升级适配iOS 7。   Treasure Hunt是一个社交应用,允许用户分享藏宝图,用户们可以沉浸于一......
阅读全文
  • 06月
  • 09日
综合 ⁄ 共 7792字 评论关闭
一、Intent 和PendingIntent区别 1、Intent:及时启动的意图,Intent一般是用作Activity、Sercvice、BroadcastReceiver之间传递数据       例如:启动activity:startActivity(intent); 启动服务:startService(intent)\bindService(intent); 发送广播:sendBroadcast(intent)。相应的activity 、service、广播接收器只要设置响应的过滤器里的action就可以接收到。 2、PendingIntent:延时的意图,可以理解为延迟执行的intent,PendingIntent是对Intent一个包装。主要使用在:通知Notificatio的发送,短消息SmsManager的发送和警报......
阅读全文
  • 05月
  • 20日
综合 ⁄ 共 190字 评论关闭
数组传递这么写:   echo"<ahref=2.php?info=".base64_encode(serialize($information)).">info</a>" ; 数组接收 : $info = unserialize(base64_decode($_GET['info'])); 访问的话: echo $info['name']; 注意unserialize和base_decode的顺序
阅读全文
  • 04月
  • 23日
综合 ⁄ 共 312字 评论关闭
背景:水 #include<cstdio> #include<iostream> #include<cstring> using namespace std; int main(void){ int t; while(scanf("%d",&t),t){ int ans=0,temp1,temp2=0; for(int i=1;i <= t;i++){ scanf("%d",&temp1); if(temp1 > temp2) ans+=(temp1-temp2)*6+5; else if(temp2 > temp1) ans+=(temp2-temp1)*4+5; else ans+=5; temp2=temp1; } printf("%d\n",ans); } return ......
阅读全文
  • 04月
  • 15日
综合 ⁄ 共 2411字 评论关闭
前段时间在微博上看到一张某集团的数据分析师职位层级表,由于表格太大,在网页上显得字体太小,很难看清楚,因此我将它简化处理成如下两张表格,分为层级1和层级2: 从表中可以看出,专家级的数据分析在分析方法的要求方面与资深数据分析师是相同的,层级2与层级1的能力差别主要体现在业务分析能力、管理能力和影响力等方面。要从“使命必达”的助理数据分析师,成长为“独挡一面”的数据分析专家,其中必然需要学习很多知识、积累很多经验、提升很多技能,这对从事数据分析的人有一定的指导意义,在做职业规划时可以参考。 按照......
阅读全文
  • 04月
  • 13日
综合 ⁄ 共 3164字 评论关闭
AsyncTask offers an easy-to-use (but more limited). You need to perform an asynchronous job that follows a pre-process/process/postprocess pattern, and are looking for a code template that allows you to report progress to the user or otherwise update the UI in each step. In the last technique, we retrieved movie thumbnail images by having a simple downloader helper method fork a new thread that downloaded the image, and then passed it to a custom handler object that updated the image on ......
阅读全文
  • 04月
  • 10日
综合 ⁄ 共 4858字 评论关闭
       转自http://blog.csdn.net/tht2009/article/details/40458425        在开发联网应用时,常常需要申请、绑定端口,这时就需判断哪些端口可用或指定端口是否被占用。在命令行窗口下,输入“netstat -ano"命令可以显示查看当前端口占用情况。如何在程序代码中实现这个功能呢?        当然也可以执行cmd命令,通过分析返回文本来判断。其实,Windows已经提供了获取当前网络连接状态的API,这些API都位于动态库Iphlpapi.dll中。跟查看端口情况相关的API主要有GetTcpTable、GetUdpTable、GetExtendedTcpTable、GetExtendedUdpTa......
阅读全文
  • 04月
  • 02日
综合 ⁄ 共 1319字 评论关闭
From: http://www.linuxidc.com/Linux/2011-06/37268.htm   在 Linux 下制作动态链接库,“标准” 的做法是编译成位置无关代码(Position Independent Code,PIC),然后链接成一个动态链接库。经常遇到的一个问题是 -fPIC 是不是必需,因为好像不加经常也能正常运行,只是创建 .so 的时候会有一个警告。 搜索、试验了一下,答案似乎是这样: (1) 通常的建议是始终加上 -fPIC 生成位置无关代码; (2) AMD64 下,必须使用位置无关代码,否则连接失败: relocation R_X86_64_32S against `a local symbol' can not be used when makin......
阅读全文
  • 02月
  • 22日
综合 ⁄ 共 2786字 评论关闭
Attacking rooks Time Limit: 20000ms, Special Time Limit:50000ms, Memory Limit:65536KB Total submit users: 12, Accepted users: 7 Problem 13028 : No special judgement Problem description Chess inspired problems are a common source of exercises in algorithms classes. Starting with the well known 8-queens problem, several generalizations and variations were made. One of them is the N-rooks problem, which consists of placing N rooks in an N by N chessboard in such a way that they......
阅读全文
  • 01月
  • 22日
综合 ⁄ 共 2422字 评论关闭
http://devbean.blog.51cto.com/448512/235332/(QT学习之路) 博主的更多文章>>  Qt学习之路(24): QPainter 2009-11-26 22:43:41 标签:C++ 教程 学习 QT教程 Qt 原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://devbean.blog.51cto.com/448512/235332 多些大家对我的支持啊!有朋友也提出,前面的几节有关event的教程缺少例子。因为event比较难做例子,也就没有去写,只是把大概写了一下。今天带来的是新的部分,有关Qt的2D绘图。这部......
阅读全文