paulwong

#

在EJB3的SESSION BEAN中使用SPRING BEAN

EJB3 façade over Spring services
http://java.dzone.com/articles/ejb3-fa%C3%A7ade-over-spring


Using Spring’s EJB implementation support classes
http://docs.spring.io/spring/docs/current/spring-framework-reference/html/ejb.html#ejb-implementation-ejb3



import javax.ejb.Stateless;
import javax.interceptor.Interceptors;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ejb.interceptor.SpringBeanAutowiringInterceptor;

import ch.frankel.blog.ejb.spring.service.client.RandomGeneratorService;

@Stateless
@Interceptors(SpringBeanAutowiringInterceptor.class)
public class RandomGeneratorBean implements RandomGeneratorService {

    @Autowired
    private ch.frankel.blog.ejb.spring.service.RandomGeneratorService delegate;

    @Override
    public int generateNumber(int lowerLimit, int upperLimit) {

        return delegate.generateNumber(lowerLimit, upperLimit);
    }
}

posted @ 2014-02-12 16:43 paulwong 阅读(400) | 评论 (0)编辑 收藏

A book: Web Crawling and Data Mining with Apache Nutch

Recently I am reading a book <Web Crawling and Data Mining with Apache Nutch>, http://www.packtpub.com/web-crawling-and-data-mining-with-apache-nutch/book, it is really a great book. And I get help in my project.

In my project I need to crawl the web content and do the data analyst. From the book I can know how to use and integrate Nutch and Solr frameworks to implement it.

If you have similiar case, recommand to read this book.

posted @ 2014-02-03 13:14 paulwong 阅读(502) | 评论 (0)编辑 收藏

Will be reviewing a new Apache Nutch book by Packt

Will be reviewing a new Apache Nutch book by Packt: http://www.packtpub.com/web-crawling-and-data-mining-with-apache-nutch/book

posted @ 2014-01-28 20:00 paulwong 阅读(311) | 评论 (0)编辑 收藏

超大型电商系统架构解密

http://www.infoq.com/cn/presentations/decrypt-the-architecture-of-large-e-commerce-system?utm_campaign=infoq_content&utm_source=infoq&utm_medium=feed&utm_term=global

posted @ 2014-01-17 12:00 paulwong 阅读(447) | 评论 (0)编辑 收藏

weather API 收集整理

腾讯

http://sou.qq.com/online/get_weather.php?callback=Weather&city=南京

中国天气-weather.com.cn

http://geoip.weather.com.cn/g/ (根据IP查询城市ID)

http://m.weather.com.cn/data/101110101.html(六天预报)

http://www.weather.com.cn/data/sk/101110101.html(实时天气信息)

google

http://www.google.com/ig/api?weather=Beijing

设计蜂巢

http://www.hujuntao.com/api/weather/api.php?city=南京

MSN

http://weather.msn.com/data.aspx?wealocations=wc:CHXX0008&weadegreetype=C

YAHOO

http://xml.weather.yahoo.com/forecastrss?p=CHXX0008&u=f

http://weather.yahooapis.com/forecastrss?w=2459115&u=f

ThinkPage(收费)

http://www.thinkpage.cn/weather/api.svc/getWeather?city=101010100&language=zh-chs&provider=cma&unit=c&key=

有道

http://www.youdao.com/smartresult-xml/search.s?type=weather&jsFlag=true&q=南京

360

http://cdn.weather.hao.360.cn/api_weather_info.php?app=hao360&_jsonp=smartloaddata101190101&code=101190101

搜狗

http://123.sogou.com/get123.php?block=wt&ver=v32&city=CN110100

1616

http://weather.1616.net/grab/weather/%25E5%258C%2597%25E4%25BA%25AC.js

毒霸

http://123.duba.net/weatherinfo/

淘123

http://weather.tao123.com/static/weather/weather_json.php?cb=callback

114啦

http://weather.api.114la.com/1901/101190101.txt

2345

http://tianqi.2345.com/t/detect2009v2.php

hao123

http://app.hao123.com/weather/forecast.php

其它

http://weather.all2rss.com/weatherrss.asp?City=%C4%CF%BE%A9

posted @ 2014-01-14 10:54 paulwong 阅读(1070) | 评论 (0)编辑 收藏

Simple Logging Facade for Java (SLF4J)

JVA的LOGGING FRAMEWORK有很多,如java.util.logging,Jakarta Commons Logging,log4j或LOGBACK。SLF4J就是一个门面框架,允许你底下的实现是上面提到的框架,只需在部署的时候更换对应的JAR包即可。

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class HelloWorld {
  public static void main(String[] args) {
    Logger logger = LoggerFactory.getLogger(HelloWorld.class);
    logger.info("Hello World");
  }
}


参考网址:
http://www.slf4j.org/manual.html

posted @ 2014-01-13 17:39 paulwong 阅读(291) | 评论 (0)编辑 收藏

中医世家

http://v.youku.com/v_show/id_XNTg2MTE5ODg=.html?x http://v.youku.com/v_show/id_XMTM3MjIyNzc2.html?x

posted @ 2014-01-12 23:16 paulwong 阅读(218) | 评论 (0)编辑 收藏

Android开源项目分类汇总

分类整理了150个比较好的Android开源项目,已汇总到AndroidOpenProject@Github,欢迎Star和Fork^_*

 

目前包括:

Android开源项目第一篇——个性化控件(View)篇
  包括ListView、ActionBar、Menu、ViewPager、Gallery、GridView、ImageView、ProgressBar等等
Android开源项目第二篇——工具库篇
  包括依赖注入框架、图片缓存、网络相关、数据库ORM建模、Android公共库、高版本向低版本兼容库、多媒体等等
Android开源项目第三篇——优秀项目篇
  比较有意思的完整的Android项目
Android开源项目第四篇——开发及测试工具篇
  包括开发自测、自动化测试、编译打包相关工具
Android开源项目第五篇——优秀个人和团体篇
  乐于分享并且有一些很不错的开源项目的个人和组织,包括JakeWharton、Chris Banes、Koushik Dutta等大牛

posted @ 2014-01-09 11:03 paulwong 阅读(303) | 评论 (0)编辑 收藏

前端设计福利:40+套精美UI设计素材大放送

本文收集了43套精美的Web应用界面设计素材,你可以在设计应用界面时直接使用或参考,节省宝贵的时间。 

这些素材中的大部分提供了PSD格式文件,你可以点击下面的标题链接,然后在打开的页面中进行下载(部分站点可能需要翻 墙访问)。 

1.  Clear log-in window template 



2.  Transparent UI kit 



3.  Simple log-in form 



4.  Blue UI kit 



5.  Orange UI kit 



6.  Minimize UI kit 



7.  Breadcrumb navigation PSD and CSS 



8.  Calendar 



9.  Black UI kit PSD 



10.  Coconut UI 



11.  Purple UI kit 



12.  Futurico 



13.  Smooth web app UI kit 



14.  The Bricks 



15.  Various PSD sliders 



16.  Dark UI kit 



17.  Simple Music UI 



18.  Slick pagination links PSD and CSS 



19.  Dark admin panel UI kit 



20.  Calendar UI 



21.  Expandable CSS and jQuery menu with slider 



22.  My to-do list 



23.  Sign-in widget 



24.  Facebook login UI 



25.  Sky UI kit 



26.  Twitter widget 



27.  Notification centre UI PSD 



28.  Toolbar 



29.  Visits-per-day widget 



30.  Twitter widget 



31.  Clean drop-down UI 



32.  PayPal button set 



33.  Dropdown 



34.  Modal contact-form template 



35.  Instagram mini profile 



36.  Transparent UI kit 



37.  Progress bar 



38.  Vinny Singh 



39.  Exclusive UI kit PSD 



40.  Mini UI kit 



41.  Noveo button set 



42.  Moonify UI 



43.  Menu-bar Twitter notifications 

posted @ 2014-01-08 10:37 paulwong 阅读(493) | 评论 (0)编辑 收藏

BOOTSTRAP资源

官方教程
http://www.w3cschool.cc/bootstrap/bootstrap-intro.html
http://getbootstrap.com/getting-started/


BOOTSTRAP在线编辑器
http://www.oschina.net/news/48134/the-best-bootstrap-ui-editors


国产在线代码生成
http://www.bootcss.com/
http://www.bootcss.com/p/layoutit/


2014年8月 10 个全新的 Bootstrap 3 管理模板
http://www.oschina.net/news/54800/10-new-bootstrap-3-admin-templates-august-2014




posted @ 2014-01-06 16:06 paulwong 阅读(273) | 评论 (0)编辑 收藏

仅列出标题
共115页: First 上一页 57 58 59 60 61 62 63 64 65 下一页 Last