Éducation

Primo Webcast Italiano su Intel Realsense

Il primo Webcast di introduzione alla tecnologia Intel Realsense si e' svolto Lunedi' 15 Settembre 2014 per mano di Massimo Bonanni e mia, in qualita' di Intel Software Innovator per Realsense italiani.

La sessione prevedeva la presentazione delle caratteristiche del nuovo SDK ed alcune demo per vedere il Sistema in Azione in anteprima.

Alla fine e' abbiamo presentato il nuovo Realsense App Challenge 2014, la grande competizione aperta a tutti I developer con un montepremi da capogiro: 1 Milione di DOLLARI!

 

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。。。跟我的错一模一样!

The Last Line Effect

Copy-Paste

I have studied numbers of errors caused by using the Copy-Paste method and can assure you that programmers most often tend to make mistakes in the last fragment of a homogeneous code block. I have never seen this phenomenon described in books on programming, so I decided to write about it myself. I called it the "last line effect".

Null Pointer Dereferencing Causes Undefined Behavior

I have unintentionally raised a large debate recently concerning the question if it is legal in C/C++ to use the &P->m_foo expression with P being a null pointer. The programmers' community divided into two camps. The first claimed with confidence that it wasn't legal while the others were as sure saying that it was. Both parties gave various arguments and links, and it occurred to me at some point that I had to make things clear. For that purpose, I contacted Microsoft MVP experts and Visual C++ Microsoft development team communicating through a closed mailing list.

StdAfx.h

This article is meant for those programmers who are only getting started with the Visual Studio environment and trying to compile their C++ projects under it. Everything looks strange and complicated in an unfamiliar environment, and novices are especially irritated by the stdafx.h file that causes strange errors during compilation. Pretty often it all ends in them diligently turning off all precompiled headers in every project. We wrote this article to help Visual Studio newcomers to figure it all out.

Student Lecture Journal: Developing Android Apps in 14 Weeks

When I was assigned to give a lecture on “Pengembangan Software Pendidikan” (Edu-Software Development) this semester for Chemistry Education Students, I was challenged. I had no idea how to teach Chemistry Education students how to build Android* applications at all.

SpaceApps NYC 2015 : A Truly Stellar Event!

The International Space Apps Challenge is a technology development and problem solving event during which citizens from around the world collaborate to tackle challenges relevant to improving life on Earth and the exploration of space. Intel has participated in these events and has provided technical mentorship, as well as software/hardware sponsorship.
S’abonner à Éducation