-
把Raspberry Pi打造成 Web Server
Setup Raspberry Pi安装理论上 OS 可以是任何支持 ARM v6 的 Linux 发行版,推荐使用官方的 wheezy 系统,因为这是针对树莓派定制并优化了的 Debian。下载地址:http://www.raspberrypi.o... -
关于 Java String 内存管理的几个有趣的例子
今天在 OSChina 上看到一篇有趣的文章:关于String内存分配的深入探讨 ,文章通过几个简单的例子,把Java中String的内存管理的方式解释的很清楚,涨了不少姿势,现根据自己的理解做些笔记在这里:
-
Dojo在IE中的那些坑
最近的一个小项目中使用的dojo 作为前台页面框架。本来很简单的功能,但是发布给用户做 UAT时却发现一堆简单低级的错误,但在开发环境却始终不能重现,百思不得其解…原来用户的测试环境是 IE8,果然问题在这,之前测试是在FireFox,没想到相同的... -
HighCharts 笔记2:通过表格生成Pie Chart
接上一篇 HighCharts笔记之: Bar Chart ,这一篇继续记录在项目中使用 Pie Chart 的情况,只是自己的一点总结和记录,以备日后翻阅。这一次是通过页面上的表格(Table)数据,生成对应的饼图(Pie Chart),具体实现如下:
Highcharts 是一个用纯JavaScript编写的一个图表库, 能够很简单便捷的在web网站或是web应用程序添加有交互性的图表,并且免费提供给个人学习、个人网站和非商业用途使用。目前HighCharts支持的图表类型有曲线图、区域图、柱状图、饼状图、散状点图和综合图表。
HighCharts界面美观,由于使用JavaScript编写,所以不需要像Flash和Java那样需要插件才可以运行,而且运行速度快。另外HighCharts还有很好的兼容性,能够完美支持当前大多数浏览器。 -
HighCharts笔记之: Bar Chart
最近需要做一些Web图标,研究了几个开源的第三方工具后,最后决定使用HighCharts开发: Highcharts 是一个用纯JavaScript编写的一个图表库, 能够很简单便捷的在web网站或是web应用程序添加有交互性的图表,并且免费提供给个... -
Java并发编程笔记:线程管理
创建线程两种方法: 通过直接继承thread类,然后覆盖run()方法; 构建一个实现Runnable接口的类, 然后创建一个thread类对象并传递Runnable对象作为构造参数; 启动线程:只有调用start()方法才能启动一个新的执行... -
Find duplicate records in text file
Example12345abc 1000 3452 2463 2343 2176 7654 3452 8765 5643 3452 abc 1000 3452 2463 2343 2176 7654 3452 8765 5643 3452 tas... -
Hibernate中的关系映射
多对多123456@ManyToMany()@JoinTable(name="t_role_rights",joinColumns={ @JoinColumn(name="right_id")... -
剔除List中的重复值
方法一:循环元素删除1234567891011// 删除ArrayList中重复元素public static void removeDuplicate(List list) { for ( int i = 0 ... -
Hibernate中的继承关系
Hibernate中支持3种形式实现继承关系: Table per concrete class 表与子类之间独立一对一关系 Table per subclass 每个子类对应一张子表,并与主类共享主表 Table per class ...