首页 > 2014年07月13日 > 全部分享
Cocoa多线程编程之block与semaphore(信号量)
首先大家要了解 dispatch_queue 的运作机制及线程同步 我们可以将许多 blocks 用 dispatch_async 函数提交到 dispatch_queue ,如果类型是DISPATCH_QUEUE_SERIAL (串行),那么这些 block 是按照 FIFO (先入先出)的规则调度的,也就是说,先加入的先执行,后加入的一定后执行,但在如果类型是DISPATCH_QUEUE_C...
分类:编程语言   时间:2014-07-13 16:56:25    收藏:0  评论:0  赞:0  阅读:773
Java集合类汇总记录--JDK篇
汇总记录了JDK中所有的标准Collection类,简单介绍了各自的特性,以备速查。...
分类:编程语言   时间:2014-07-13 17:23:59    收藏:0  评论:0  赞:0  阅读:440
解决vsftp无法上传文件及文件夹的问题
最近一段时间,因为搞hadoop的缘故,考虑到启动linux桌面会给电脑带来比较卡。。所以就将图形界面的启动给关闭,完全在命令的模式下使用linux。 使用yum搭建了ftp服务。。yum的使用参考:http://blog.csdn.net/enson16855/article/details/9140623 windows使用FileZilla连接linux的ftp,比较郁闷的是上传问题,弄...
分类:其他   时间:2014-07-13 14:03:54    收藏:0  评论:0  赞:0  阅读:363
Android 开发 ------------- Unable to resolve target 'android-19'
重新装完Ecplise+ATD+Android SDK 在Ecplise工作空间导入之前写过的Android项目会出现错误,大部分是SDK 版本不符,如下错误提示: Error:Unable to resolve target android-19 如图: 解决办法:修改工程目录下的project.properties文件里的内容target=android-...
分类:移动平台   时间:2014-07-13 15:53:22    收藏:0  评论:0  赞:0  阅读:371
Caused by: java.lang.ClassNotFoundException: org.dom4j.DocumentException
1、错误描述 信息: Initializing c3p0-0.9.2.1 [built 20-March-2013 10:47:27 +0000; debug? true; trace: 10] 2014-7-12 19:18:48 org.springframework.web.context.ContextLoader initWebApplicationContext 严重: Contex...
分类:编程语言   时间:2014-07-13 17:03:07    收藏:0  评论:0  赞:0  阅读:612
VC中常见API函数用法(经验版)
1.设置对话框为无边框方法   ModifyStyle(WS_CAPTION | WS_THICKFRAME, 0, SWP_FRAMECHANGED); 2.设置控件灰色与不灰色 void CMthread1Dlg::OnStop()  { // TODO: Add your control notification handler code here m_bRun = FA...
分类:Windows开发   时间:2014-07-13 13:47:47    收藏:0  评论:0  赞:0  阅读:476
SpringMVC案例2----基于spring2.5的注解实现
和上一篇一样,首先看一下项目结构和jar包 web.xml <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.su...
分类:编程语言   时间:2014-07-13 17:25:56    收藏:0  评论:0  赞:0  阅读:474
Caused by: java.lang.ClassNotFoundException: org.hibernate.annotations.common.reflection.MetadataPro
1、错误描述 信息: MLog clients using java 1.4+ standard logging. 2014-7-12 19:29:20 com.mchange.v2.c3p0.C3P0Registry banner 信息: Initializing c3p0-0.9.2.1 [built 20-March-2013 10:47:27 +0000; debug? true; tr...
分类:编程语言   时间:2014-07-13 16:58:27    收藏:0  评论:0  赞:0  阅读:539
Caused by: java.lang.ClassNotFoundException: org.jboss.logging.BasicLogger
1、错误描述 usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [ -nonaming ] { -help | start | stop } 2014-7-12 19:35:50 org.apache.catalina.core.AprLifecycleListener init 信息: Loaded...
分类:编程语言   时间:2014-07-13 15:52:39    收藏:0  评论:0  赞:0  阅读:437
Java中的BigInteger在ACM中的应用
Java中的BigInteger在ACM中的应用 在ACM中的做题时,经常会遇见一些大数的问题,这是当我们用C或是C++时就会觉得比较麻烦,就想有没有现有的现有的可以直接调用的BigInter,那样就方便很多啦。在java中就有的,所以在这儿我就做一个简要的介绍吧 —:在java中的基本头文件(java中叫包) import java.io.* importjava.util.*     ...
分类:编程语言   时间:2014-07-13 14:03:09    收藏:0  评论:0  赞:0  阅读:324
SpringMVC案例3----spring3.0项目拦截器、ajax、文件上传应用
依旧是项目结构图和所需jar包图: 显示配置文件hib-config.xml <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframew...
分类:编程语言   时间:2014-07-13 17:08:15    收藏:0  评论:0  赞:0  阅读:420
Caused by: java.lang.ClassNotFoundException: javax.persistence.Entity
1、错误描述 usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [ -nonaming ] { -help | start | stop } 2014-7-12 19:41:17 org.apache.catalina.core.AprLifecycleListener init 信息: Loaded...
分类:编程语言   时间:2014-07-13 13:47:02    收藏:0  评论:0  赞:0  阅读:1111
poj 2506 Tiling(java解法)
题目链接:http://poj.org/problem?id=2506 本题用的java解的,因为涉及到大数问题,如果对java中的大数操作不熟悉请点这儿:链接 思路:地推公式f[i]=f[i-1]+2*f[i-2] code: import java.math.*; import java.util.Scanner; public class Main { public...
分类:编程语言   时间:2014-07-13 16:57:46    收藏:0  评论:0  赞:0  阅读:287
POJ 1276 Cash Machine
多重背包问题。 题意是给你一个数目的钱,还有一些 不同数量 也不同面额的钞票。问最接近给定 的数目,不能大于。 老样子,转换为 01 背包 和完全背包做。 不过很神奇的是,给多重背包 用二进制思想转换的时候 用 k #include #include #include #include #include #include #include #include #i...
分类:其他   时间:2014-07-13 16:22:32    收藏:0  评论:0  赞:0  阅读:321
【翻译自mos文章】使用aum( Automatic Undo Management) 时遇到 ORA-01555错误--- 原因和解决方案。
使用aum( Automatic Undo Management) 时遇到 ORA-01555错误--- 原因和解决方案。...
分类:其他   时间:2014-07-13 17:23:19    收藏:0  评论:0  赞:0  阅读:494
OpenJDK 源码阅读之 Java 字节流输出类的实现
通过阅读 OpenJDK 源代码,描述了 Java IO 中,字节输出系列6个类的实现方式,并简单介绍了与压缩解压缩相关的几个类。...
分类:编程语言   时间:2014-07-13 15:50:45    收藏:0  评论:0  赞:0  阅读:371
php获取中文的拼音代码
php获取中文的拼音代码...
分类:Web开发   时间:2014-07-13 15:55:31    收藏:0  评论:0  赞:0  阅读:651
Spiral Matrix II
Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. For example, Given n = 3, You should return the following matrix: [ [ 1, 2, 3 ], [ 8, 9, 4 ], [...
分类:其他   时间:2014-07-13 16:36:58    收藏:0  评论:0  赞:0  阅读:283
POJ 2955 Brackets
Brackets Time Limit: 1000MS   Memory Limit: 65536K Total Submissions:    Accepted:  Description We give the following inductive definition of a “regular brackets” seq...
分类:其他   时间:2014-07-13 13:44:19    收藏:0  评论:0  赞:0  阅读:422
使用Java8提供的Duration类制作字幕时间轴调整工具
网上下载的字幕有时和片源的时间轴不一致,我们可以自己写一个工具来调整,也就是整体向前移动几秒,或者向后移动几秒。Java8中提供的Duration类使得这种时间计算极其方便。下面就以最简单的srt字幕格式为例说明。...
分类:编程语言   时间:2014-07-13 13:50:28    收藏:0  评论:0  赞:0  阅读:275
1365条   上一页 1 ... 22 23 24 25 26 ... 69 下一页
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!