`
zenius
  • 浏览: 54993 次
  • 性别: Icon_minigender_1
社区版块
存档分类
最新评论
文章列表
       C/C++语言是有趣的,因为它是“计算机科学”发展的产物。        Python和Ruby是有趣的,因为它是“天才”的产物,尽管Ruby的作者是个日本人。        与之不同的是很多程序员认为Java是无趣的。        Java是 ...
Parse支持的数据类型 目前Parse的table column支持NSString, NSNumber, NSDate, NSData, 或者另外一个PFObject。同时也可以使用NSDictionary and NSArray保存结构化的数据。其中NSArray 支持相对应的查询。虽然可以使用NSData保存二进制数据,但是推荐先 ...
目前正在开发的产品告一段落,有时间总结下经验,也顺便分享一下我们主要使用的平台-Parse。 什么是Parse? Parse是一群美国人开发的专为移动APP服务的云计算平台,与现有的其他云计算平台相比,Parse除了提供Restful的service 之外,也提供了官方的iOS和Android SDK。个人认为高质量的client端SDK是Parse区分与其他云服务的核心优势。为什么呢?看完我的文章就知道了。 为什么要用Parse? 先想想开发一个简单的需要保存用户数据的APP,你需要做什么。非技术背景的人多半会认为只需要找个人做几个手机界面就行了。慢!身为程序员的我们会告诉这个不懂技术的朋 ...

Useful ios link

Table view: http://www.cocoachina.com/bbs/read.php?tid=103145 动画效果: http://pro.ctlok.com/2010/03/iphone-uiview.html http://blog.csdn.net/xiaoguan2008/article/details/6291425 Cocos2d-x: http://www.cocoachina.com/gamedev/gameengine/2012/0428/4206.html UIView: http://www.cocoachina.com/newbie/basic/ ...

Spring AOP

<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" x ...
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <grou ...
<render-kit> <description>Some replacements for the standard renderers</description> <renderer> <description>Replacement renderer for h:outputLabel</description> <component-family>javax.faces.Output</compon ...
import org.springframework.webflow.engine.RequestControlContext; import org.springframework.webflow.engine.support.TransitionExecutingFlowExecutionExceptionHandler; import org.springframework.webflow.execution.FlowExecutionException; import org.springframework.webflow.execution.RequestContext; ...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2. ...

Dozer Sample

    博客分类:
  • Java
Configurable dozer converter: public class BalanceConverter implements ConfigurableCustomConverter { public Object convert(Object destinationFieldValue, Object sourceFieldValue, Class destinationClass, Class sourceClass, String param) { Balance[] source = (Balance[]) ...

JSF Special Code

    博客分类:
  • JSF
[b][/b] Logging phaselistener: public class RequestLoggingPhaseListener implements PhaseListener { private Log logger = LogFactory.getLog(RequestLoggingPhaseListener.class); public void afterPhase(PhaseEvent event) { // no-op } public void beforePhase(PhaseEvent event) { if (log ...
Javascript menu function loadOptionTabsMenu() { var current = document.location.toString(); $('.options-tabs ul li a').each(function() { var url = $(this).attr('href'); if (current.indexOf(url) != -1) { alert(1); ...
<reporting> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <version>2.3</version> <configuration> <configLocatio ...
PropertyPlaceholderConfigurer <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="locations"> <value>classpath:com/foo/jdbc.properties</value> </property> </bean> <bea ...
Set flow and menu item mapping public void setLocationMaps(MenuComponent[] menuComponents) { for (MenuComponent menuComponent: menuComponents) { if (null == this.locationMapping.get(menuComponent.getLocation()) || null != menuComponent.getParent()) ...
Global site tag (gtag.js) - Google Analytics