Java*

Intel(r) CCF 3.0.13 Release

March 20th, 2015

Intel® CCF 3.0.13

This release of Intel® Common Connectivity Framework SDK version 3.0 provides support for developing applications on Intel® CCF Version 3.0, and it includes the framework, tools, documentation and sample applications for creating applications on Windows*, Android*, and iOS*.

  • Desarrolladores
  • Android*
  • Apple iOS*
  • Microsoft Windows* (XP, Vista, 7)
  • Microsoft Windows* 8.x
  • .NET*
  • C#
  • C/C++
  • Java*
  • Avanzado
  • Intel® Common Connectivity Framework
  • Contrato de licencia: 

    Android 开发之浅谈广播的运用

    之前讲过了activity,服务service和内容提供者,四大组件就还差广播没讲,所以就顺便讲讲吧。当然,这里都是很基础的讲解,没有深入,要是深入的话光一个activity就可以讲很久。所以这里只做基础使用的讲解了。

    时间紧迫,直接上代码吧。

    首先,广播有两种注册方式,一种在清单文件中注册,注册后程序一运行广播就开始监听。一种在代码中注册,根据需求注册注销广播。

    我们先看广播的第一种注册方式,首先定义一个广播接受者

     

    Intel® INDE 2015 Released

    Hello,

    Today, October 15th, Intel has released a major update to the Intel® Integrated Native Developer Experience (Intel® INDE). For more information about this release, please see this article.

    Download and purchasing options can be found on the Intel INDE Home Page. You can obtain the Starter Edition of the product as free download, or download a trail version the Ultimate Edition.

    Intel INDE Beta program has ended

    As of today, October 15th, in parallel with the official release of Intel® INDE 2015, the Intel INDE Beta program has ended. The Beta version of the product will no longer be supported, so please do not post questions about the Beta version.

    If you had installed the Beta version of the product, please upgrade to Intel INDE 2015. Download and purchasing options can be found on the Intel INDE Home Page. You can obtain the Starter Edition of the product as free download, or download a trail version the Ultimate Edition.

    Welcome to the Dev Story/*HACK THE CODE*/ Sticky Thread

    Working on modifications, mini-challenges or new levels?

    Got a question or comment about the app?

    You’re in the right place.

    Post your questions (and answers) right here and we’ll help you as best we can.

    To create Dev Story/*HACK THE CODE*/ we used the Intel XDK and Crosswalk with a couple of open-source javascript libraries.

    Panda.js – HTML5 Game Engine
    Pixi.js – 2D webGL renderer with canvas fallback

    Android 开发之监听发出的短信

    运行效果图:

    预备知识:

           为了监听指定的ContentProvider的数据的改变,需要通过ContentResolver向指定Uri注册CotentObserver监听器。ContentResolver提供了如下方法来注册监听器:

      publicfinal void registerContentObserver(Uriuri, boolean notifyForDescendents, ContentObserver observer)

    Internal Intel users of INDE: Read Me!

    Hello,

    If you are an internal Intel employee trying to use INDE, your username is "MAD\<my-idsid>", and your password is your normal corporate login password. This will be required both when you initially download INDE, and when you attempt to download or install products. If you have any other password issues, please contact the Intel support team, as the INDE team cannot reset your password or provide any additional information about your account and password.

    spring3+hibernate4 service 中多线程事务异常及解决

    初次使用spring3结合hibernate4做项目,迅速配置完成,测试,一切正常。

    然而,当我在service层中另外开启一个线程,线程中的方法需要进行数据库操作,这个时候,悲催的抛出了异常:-org.hibernate.HibernateException: No Session found for current thread

    当然,hibernate4的session是和当前线程绑定的,多线程中用sessionFactory.getCurrentSession()获取当前session自然不存在,不存在又不会自动创建,所以抛出了异常,无可厚非。

    于是就想着怎么解决这个问题。

    遍翻google、baidu,大部分都说如何如何配置,设置事务的传播属性propagation="REQUIRED",开启opensessioninview filter等等,无一对此问题有何解释(当然或许是我没翻到,有知道的麻烦告知)

    在http://sishuok.com/forum/blogPost/list/2625.html#7523上看到相关配置,我就想作者这个项目该多线程运行正常吧,果断下载源码,修改测试,oh。。。跟我的错一模一样!

    Hadoop Hbase 升级

    Hadoop HDFS 与Hbase升级笔记

    由于之前使用了hadoop1.0.2,hbase 使用的是hbase-0.92.1 但是一次事故导致元数据丢失,且修复元数据的类本身有BUG
    所以摆在眼前的只有两条路:
    1、修改hbase源码重新编译 hbase 修复BUG
    2、升级到下一个版本,且这个版本已经修复了此BUG 从release node中看到 0.92.2及以后版本均修复了此bug
      所以决定升级到最新的稳定版 hbase-0.94.3 而此版本的hbase 和hadoop-1.0.4 的兼容性最好,所以hadoop 连带升级到hadoop-1.0.4

    1. Hadoop升级步骤:
     (1)停止集群上的所有MR任务,包括Hbase(如果Hbase在使用中,先停掉,接着是zookeeper)
     (2)停止DFS(1、2两步也可以在hbase和zookeeper关闭后使用stop-all.sh脚本直接关闭)
     (3)删除临时数据,即在core-site.xml中设置的hadoop.tmp.dir的value所文件目录下的文件
     (4)备份HDFS元数据

    Suscribirse a Java*