自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(131)
  • 收藏
  • 关注

原创 iOS In App Purchase: Will Apple reviewers test live or sandbox environment?

原文地址:[url]http://stackoverflow.com/questions/11739576/ios-in-app-purchase-will-apple-reviewers-test-live-or-sandbox-environment[/url]I use In App Payment to sell ingame consumables. After successful...

2012-10-09 15:50:32 209

原创 subelipse svn:ignore gray

1、You can't svn:ignore a file that is already commited to repository.2、Delete it from the repository3、Recreate it in Eclipse4、Set svn:ignore on it via Team->Add to svn:ignoreGood luck!原文地址...

2012-08-01 11:08:54 169

原创 truncate foreign key constrained table

执行truncate的时候出现错误[SQL] TRUNCATE table person;[Err] 1701 - Cannot truncate a table referenced in a foreign key constraint (`treasurewinner`.`game_spin_log`, CONSTRAINT `game_spin_log_ibfk_1` FO...

2012-07-27 12:12:54 218

原创 开闭原则

SOFTWARE ENTITIES(CLASSES, MODULES, FUNCTIONS, ETC.) SHOULD BE OPEN FOR EXTENSION, BUT CLOSED FORMODIFICATION.

2012-07-24 00:45:15 119

原创 ios push notifiycation

昨天搞了许久的苹果的推送服务,看着文档不是很难。可是很少使用socket发送拼接字节一类的数据。后来找到了javapns,很方便。直接就推送成功了。本来是想用netty做的,但是没有成功,我觉得是bytes的发送格式不对,特别是字节数。主页:[url]http://code.google.com/p/javapns/[/url]使用的前提:[url]http://code.go...

2012-05-04 11:18:53 118

原创 Install an external jar into local Maven repository

原文地址:[url]http://jeff.langcode.com/archives/27[/url]Sometimes, you project will have dependency on a jar which is not in official maven repository, and maybe it is propriety jar file which will ne...

2012-05-04 11:11:29 150

原创 deploy as jar

原文地址:[url]http://stackoverflow.com/questions/2022032/building-a-runnable-jar-with-maven-2[/url]The easiest way to do this would be to create an assembly using the maven-assembly-plugin and the prede...

2012-04-24 16:01:07 96

原创 mvc2 iis6 htp 404

昨天将mvc2部署到了iis6上,始终要么是显示网站的目录列表,要么就是http 404啊,403啊。我不debug郁闷。。也不得不气愤为什么要用.net。。。我开始以为.net注册失败,所以只用asnetiis -ir 重新注册.net,结果还是没有作用。最后才发现是web服务扩展里面没有启用。。。。哎。总结如下:1、确保iis是6.02、网站的asp选项是选择的4...

2012-04-24 11:14:58 169

原创 spring send gmail

只要这样配置好久能使用gmail了[code="java"] [color=red] true 25000 465 465 false javax.net.ssl.SSLSocketFactory[/color] **** *** [/c...

2012-04-24 11:06:45 114

原创 The Visitor Pattern Re-visited

原文地址:[url]http://java.dzone.com/articles/visitor-pattern-re-visited[/url]Understanding the problemThe actual problem is not the naming and horrible API verbosity of visiting code, but the mis-unde...

2012-04-19 21:10:09 117

原创 jquery mobile datepicker 手机端日期选择器

在jquery的论坛中有人推荐使用jtsage的日期插件。用了下,感觉还可以。论坛地址:[url]http://forum.jquery.com/topic/datepicker-with-jquery-mobile[/url]插件首页:[url]http://dev.jtsage.com/[/url]汉化地址:[url]http://dev.jtsage.com/jQM-DateBo...

2012-04-19 17:02:24 1139

原创 Top 5 Reasons Not to Use Hadoop for Analytics

原文地址:[url]http://www.quantivo.com/blog/top-5-reasons-not-use-hadoop-analytics[/url]As a former diehard fan of Hadoop, I LOVED the fact that you can work on up to Petabytes of data. I loved the abil...

2012-04-16 12:10:43 93

原创 A Year with MongoDB

原文地址:[url]http://blog.engineering.kiip.me/post/20988881092/a-year-with-mongodb[/url]This week marks the one year anniversary of Kiip running MongoDB in production. As of this week, we’ve also moved ...

2012-04-16 09:43:05 109

原创 redis autocomplete

原文地址[url]http://antirez.com/post/autocomplete-with-redis.html[/url]Hello! This isn't just a blog post, it is actually the Redis weekly update number eight, but we can't tell this to Google: naming p...

2012-04-10 11:28:52 143

原创 redis官方教程 KEY-VALUE DB 教程

原文地址:[url]http://redis.io/topics/twitter-clone[/url]A case study: Design and implementation of a simple Twitter clone using only the Redis key-value store as database and PHPIn this article I'll...

2012-04-10 10:52:01 246

原创 5个让人激动的Java项目

原文地址:[url]http://sd.csdn.net/a/20120409/2804301.html[/url]每个Java/JVM领域的技术专家都应从那些项目中获益,他们中有2011在SanJose举办的Jax 会议中提名为最好的技术产品奖的。我之所以选择他们是因为他们可以广泛用于一系列的项目中解决真实问题。作为开发者,我们也不得不在每天都讨论这些,那么我们赶紧来看看究竟有哪些值得令...

2012-04-09 10:33:34 88

原创 sqlserver2008 3101 还原数据库出错

还原或删除sql server 2008数据库时,经常烩出现:“因为数据库正在使用,所以无法获得对数据库的独占访问权”,终解决方案如下关键SQL语句: ALTER DATABASE [datebase] SET OFFLINE WITH ROLLBACK IMMEDIATE用完之后再alter database [dbname] set onli...

2012-03-27 09:41:43 2161

原创 log4j 常用配置

原文地址:[url]http://www.benmccann.com/dev-blog/sample-log4j-properties-file/[/url]I always find the hardest part of getting started with log4j is creating a log4j.properties file. For that reason, I’ve...

2012-03-22 21:02:14 137

原创 bootstrap Designed for everyone, everywhere.

Bootstrap, from TwitterSimple and flexible HTML, CSS, and Javascript for popular user interface components and interactions.[url]http://twitter.github.com/bootstrap/[/url]

2012-03-13 13:33:15 121

原创 sqlserver2008 3154

我在使用sqlserver2008时,使用别人发回的一个ceshishuju.bak文件进行还原我的数据库:CQMineOA,但是很不幸的报了3154错误。报错为:[code="sql"]Msg 3634, Level 16, State 1, Line 1The operating system returned the error '32(failed to retrieve te...

2012-03-08 20:10:17 508

原创 开源播放器VLC

原文地址:[url]http://news.csdn.net/a/20120220/311995.html[/url]著名开源媒体播放器VLC Media Player在上周宣布放出第一个VLC 2.0 RC候选版后,于2月19日发布了新一代2.0正式版。这次备受期待的升级是VLC的一次重大变化,带来了更多媒体格式、试验性蓝光支持、多核心处理器和移动设备解码加速、专业高清和10-bit解码等等...

2012-02-21 09:25:47 307

原创 21 books for Engineering Managers / Development Managers that guided me in 2011

原文地址:[url]http://www.javacodegeeks.com/2012/02/21-books-for-engineering-managers.html[/url]As an Engineering Manager / Development Manager aspiring to be a good software craftsman I want to promote ...

2012-02-20 15:20:14 112

原创 Dependency Injection - An Introductory Tutorial - Part 1

原文地址:[url]http://code.google.com/p/jee6-cdi/wiki/DependencyInjectionAnIntroductoryTutorial_Part1[/url]CDI is the Java standard for dependency injection (DI) and interception (AOP). It is evident fro...

2012-02-20 10:57:57 130

原创 使用 Spring Batch 构建企业级批处理应用 第 1 部分

原文地址:[url]http://www.ibm.com/developerworks/cn/java/j-lo-springbatch1/[/url]总述本系列文章旨在通过示例搭建以及特性介绍,详细讲述如何利用 Spring Batch 开发企业批处理应用。本系列文章共分为三部分,第一部分初步介绍了批处理以及 Spring Batch 的相关概念,同时搭建了一个简单的基于 Spring ...

2012-02-19 22:51:46 257

原创 Tumblr:150亿月浏览量背后的架构挑战(下)

原文地址[url]http://highscalability.com/blog/2012/2/13/tumblr-architecture-15-billion-page-views-a-month-and-harder.html[/url]转自:[url]http://cloud.csdn.net/a/20120215/311867.html[/url]导读:和许多新兴的网站一样,著名...

2012-02-19 22:09:13 86

原创 Tumblr:150亿月浏览量背后的架构挑战(上)

原文地址[url]http://highscalability.com/blog/2012/2/13/tumblr-architecture-15-billion-page-views-a-month-and-harder.html[/url]转自:[url]http://cloud.csdn.net/a/20120214/311806.html[/url]导读:和许多新兴的网站一样,著名...

2012-02-19 22:05:07 103

原创 基于 Spring 和 iBATIS 的动态可更新多数据源持久层

原文地址:[url]http://www.ibm.com/developerworks/cn/java/j-lo-dynamicpersist/[/url]前言我们时常会遇到一些 web 项目,需要从不同的数据源中抓取数据来进行分析,而这些数据源是有可能变化的,需要用户来进行动态的维护和添加。可是,大多数的 web 程序使用了应用服务器或者容器中间件来管理数据源的生命周期,因此数据源的变化...

2012-02-14 01:26:31 106

原创 pdf.js html5展现pdf

Quite amazing: PDF.js is a JavaScript library that displays PDFs in browsers. At version 0.2, it comes with the requisite warning: “Note: This is an early-stage prototype. Several documents might not ...

2012-02-08 09:24:38 94

原创 Redis 和 memcached

原文地址:[url]http://www.ibm.com/developerworks/cn/java/j-javadev2-22/[/url]Memcached 是一个众所周知的内存对象缓存系统,通过将目标键和值导入内存缓存运行。因此,Memcached 能回避读取磁盘时发生的 I/O 成本问题。在 Web 应用程序和数据库之间粘贴 memcached 时会产生更好的读取性能。因此,对于那些...

2012-02-07 10:38:03 76

原创 jQuery UI vs Kendo UI

原文地址:[url]http://jqueryuivskendoui.com/[/url]We've spent a lot of time talking to customers about Kendo UI, our framework for building rich web applications with modern web standards like HTML5, C...

2012-01-31 09:30:23 170

原创 jQuery Context Menu clashes with jQuery Draggable

原文地址:[url]http://stackoverflow.com/questions/6788566/jquery-context-menu-clashes-with-jquery-draggable[/url]将contextmenu源代码改变:[code="js"]$(this).mousedown( function(e) { var evt = e; evt...

2012-01-06 14:06:57 69

原创 foreach in entityset

QS:OK so I have a strongly-typed Customer "Details" view that takes a Customer object Model.I am using LINQ to SQL and every Customer can have multiple (parking) Spaces.This is a FK relation...

2012-01-05 10:11:01 121

原创 what is activemq

原文地址:[url]http://www.christianposta.com/blog/?p=101[/url]Although the Active MQ website already gives a pithy, to-the-point explanation of ActiveMQ, I would like to add some more context to their de...

2011-12-29 10:10:47 206

原创 用开源软件构建一个价值 3.65 千万美元的企业

原文地址:[url]http://www.ibm.com/developerworks/cn/opensource/os-studionow/[/url]简介开源软件让企业家和技术专家得以将创新型的解决方案带到市场。本文讨论了我们在创立这个后来卖价达 3.65 千万美元的公司之初为何以及如何采用了开源技术。我们创建的 StudioNow 是最早的一个全球分布式的视频制作平台。它联系了视...

2011-12-21 10:18:45 157

原创 jerry jquery in java

Jerry is a jQuery in Java. Jerry is a fast and concise Java Library that simplifies HTML document parsing, traversing and manipulating. Jerry is designed to change the way that you parse HTML content....

2011-12-20 11:15:45 101

原创 iphone javascript call objectc method in uiwebview

android能很方便的使用jsinterface来实现使用javascript调用android的方法。但是iphone的uiwebview貌似没有这样的简便的方法。它的实现大致思想是:每一个js方法都是通过重新提交了一个http请求,请求的src使用特定的前缀,然后将方法名和参数以及回调地址编入src中,然后使用[code="objective-c"]- (BOOL)web...

2011-12-20 10:19:20 90

原创 mysql 修改root密码

今天mysql使用root无法在远程登录,只能在服务器使用localhost登录。而且修改了权限后忘记了刷新权限,就只有重启mysql服务就好了原文:[url]http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html[/url]On Windows, use the following procedure to ...

2011-12-19 16:24:08 99

原创 base64中:java与c#的不同

昨天非常的郁闷的处理这个base64的问题,同样的一个图片文件,在java和c#进行base64编码后结果不一样,让我苦恼很久。在网上搜索很久,有篇文章提到有可能是如下问题:byte在java和c#的不同范围的问题:Java byte : -128 to 127C# byte : 0 to 255我经过对比确实确实是这样的。但是后来解决问题后,发现问题根本就没有出在这里...

2011-12-16 11:18:54 2599

原创 struts2 排除拦截部分路径

情况:在web.xml中配置一个servlet映射路径为/test,但是struts2的filermapping为/*.这样,servlet就不会被映射到。解决:参考:Why the Filter is mapped with /* and how to configure explicit exclusions (since 2.1.7)In the exampl...

2011-11-30 13:27:57 1458

原创 拷贝jar包的文件

1、最近将程序打包成jar的时候才出现个文件:我将一个配置文件放在了classpath下,程序获取classpath路径后便使用了commons-io的fileutils.copy方法将该文件拷贝到system32下。该程序在ide环境中云高兴没有问题,但是当我把程序打包成jar时,程序运行失败。后来查资料才知道要将打包成jar中的文件拷贝到jar外,必须首先将文件从jar...

2011-11-25 17:22:22 515

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除