上一页 1 ··· 296 297 298 299 300 301 302 303 304 ··· 455 下一页
1、首先要确保在ubuntu下已经安装好了jdk,安装方法见:Ubuntu 12.04 安装和配置 Java JDK 2、到http://www.eclipse.org/downloads/下载Eclipse3、将eclipse解压到你想安装到的目录下,然后将jdk安装目录下的jre文件拷贝到eclipse安装目录中,然后双击eclipse运行图标,eclipse启动起来了。关于如何在桌面创建eclipse启动器,参见:ubuntu创建桌面启动器或者使用如下方法:$ sudo su # vim /usr/share/applications/eclipse.desktop 写入以下内容 [D. Read More
posted @ 2013-04-21 21:28 javawebsoa Views(247) Comments(0) Diggs(0)
struts2有哪些优点? 1)在软件设计上Struts2的应用可以不依赖于Servlet API和struts API。 Struts2的这种设计属于无侵入式设计; 2)拦截器,实现如参数拦截注入等功能; 3)类型转换器,可以把特殊的请求参数转换成需要的类型; 4)多种表现层技术,如:JSP、freeMarker、Velocity等; 5)Struts2的输入校验可以对指定某个方法进行校验; 6)提供了全局范围、包范围和Action范围的国际化资源文件管理实现 struts2是如何启动的? struts2框架是通过Filter启动的,即StrutsPrepar... Read More
posted @ 2013-04-21 21:23 javawebsoa Views(233) Comments(0) Diggs(0)
针对飞凌6410中动态卸载驱动时候出现rmmod: chdir(/lib/modules): No such file or directory怎么解决?1.在文件系统目录中创建/lib/modules/3.0.1这个空目录2.查看/sbin中是否有rmmod,如果没有,静态编译如下代码,将生成的rmmod放入/sbin中#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <fcntl.h> #include <string.h> #include & Read More
posted @ 2013-04-21 21:17 javawebsoa Views(154) Comments(0) Diggs(0)
Question : Say you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to complete at most one transaction (ie, buy one and sell one share of the stock), design an algorithm to find the maximum profit.for example: array[] = { 2, 5, 3, 8, 9, 4 } , m. Read More
posted @ 2013-04-21 21:12 javawebsoa Views(162) Comments(0) Diggs(0)
C#中Server.URLEncode和Server.URLDecode是对URL进行编码和解码的方法。今天,在项目中使用了用户控件,可是由于浏览器认为页面中有js错误,于是按钮的搜索事件无法触发。于是,想到了使用js。由于搜索内容可能为中文,而URL中有中文有可能会乱码,得对URL进行编码和解码:$(function(){ $("#imgSearch").click(function(){ window.location.href="sResult.aspx?keys="+EncodeURI($("#txtSearch").val( Read More
posted @ 2013-04-21 21:07 javawebsoa Views(281) Comments(0) Diggs(0)
ProblemA Communist regime is trying to redistribute wealth in a village. They have have decided to sit everyone around a circular table. First, everyone has converted all of their properties to coins of equal value, such that the total number of coins is divisible by the number of people in the vill Read More
posted @ 2013-04-21 20:59 javawebsoa Views(160) Comments(0) Diggs(0)
通过上面的学习,基本上就可以使用线程了,但怎么样让线程运行类里的成员函数呢?以便封装得更方便使用了。接着下来,就看这个例子,如下:// boost_013.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include <boost/thread.hpp>#include <boost/bind.hpp>#include <boost/thread/mutex.hpp>//封装线程组运行的类, 并且演示使用类成员函数作为线程组运 Read More
posted @ 2013-04-21 20:54 javawebsoa Views(242) Comments(0) Diggs(0)
最近我在对 CSS 的样式进行一些性能测试,然后我的一些好友问我:为什么你不使用 IDs 来作为页面上一些特定的内容部分呢?这个问题很难回答,有下面几个理由:页面中的该元素无法重用螺旋式下降导致的特异性通过 IDs 用来标识一些非常特殊的内容,但牺牲了抽象性性能方面可通过其他方式来解决下面我们针对这四点进行深入探讨。无法重用页面的元素IDs 对程序员来说相当于是单例,一个页面中不允许存在两个相同的 id(当然浏览器不会报错就是了),这就意味着你不可能重用某个元素,相当于是一对一的关系。而根据我的速度测试,如果一段 CSS 代码只对一个元素起作用对速度并不利,同时也带来了 CSS 膨胀的额外开销 Read More
posted @ 2013-04-21 20:49 javawebsoa Views(821) Comments(0) Diggs(0)
学习Struts2时,遇到ThreadLocal,不甚理解,所以对此作了一番学习。 ThreadLocal是什么呢?首先这并不是一个线程类,它是用来提供本地线程数据,也就是它保存的数据是线程相关的,每个线程都有一份数据副本,一个线程可以对其保存的副本进行修改,却不会影响其它的线程中的数据。这样说不易理解,比较这三种情况的数据,1、非ThreadLocal类型的静态成员数据;2、非ThreadLocal类型的非静态成员数据;3、ThreadLocal类型的静态数据。第一种情况中的数据是类类型的,所以此变量是所有线程共享的,第二种情况中的数据是实例对象相关的数据,是线程相关的,不同线程中实... Read More
posted @ 2013-04-21 20:44 javawebsoa Views(171) Comments(0) Diggs(0)
我们知道uboot的最终目标是实现将OS内核由flash中复制到ram中,并跳到操作系统分内核的入口address,将处理器的控制权交给操作系统。U-boot的一个很重要的特点就是使用命令实现对底层的操作,通过执行指令我们就可以实现上述目标。这里以实现一个简单的led_blink硬件操作,解析uboot从命令执行到操作led的过程。依照这个example,我们可以对对包括NAND,USB,串口等驱动的执行过程以及uboot的移植有一个相对清晰的认识。在common目录下面是常用的命令文件,文件名格式为cmd_xxx.c。如图: 在这个目录下建立我们的命令,以及命令指定的操作函数。操作函数调用. Read More
posted @ 2013-04-21 20:38 javawebsoa Views(1780) Comments(1) Diggs(0)
上一页 1 ··· 296 297 298 299 300 301 302 303 304 ··· 455 下一页