- Android筑基——RxJava框架学习笔记
willwaywang6
#著名开源库学习RxJava观察者模式装饰器模式map时序图
目录1.前言2.正文2.1RxJava里的观察者模式和普通的观察者模式有什么区别?2.2RxJava观察者模式的订阅流程2.2.1创建自定义`Observer`对象2.2.2创建`ObservableOnSubscribe`对象2.2.3创建`ObservableCreate`对象2.2.4调用`Observable.subscribe()`订阅方法2.2.5创建`CreateEmitter`对象
- 【Java】基于【Mybatis】框架学习系列——Mybatis增删改查(CURD)
Ali.s
Java后端#Mybatis框架学习mybatisjava学习mysql后端
个人主页:Ali,S最近更新:2022年7月2日⛽Java框架学习系列:Mybatis框架⛳Java基础学习系列:面向对象飞机大战通信仿真学习系列:【硬件】【通信】【MATLAB】个人简介:通信工程本硕、Java程序员。目前只会CURD点赞收藏留言都是我最大的动力文章目录前言一、准备数据和实体类1.创建数据表2.创建实体类3.创建工具类4.对工具类进行测试二、创建映射与注册映射1.创建映射2.注册
- Java框架学习:MyBatis之MyBatis入门、优化配置、Mapper映射文件
weixin_45919908
mybatisjava
文章目录ORMMyBatis入门第一个MyBatis程序优化配置读取配置文件获取数据库连接的参数日志配置Mapper映射文件ORM对象关系映射(ObjectRelationalMapping,简称ORM)是通过使用描述对象和数据库之间映射的元数据,将面向对象语言程序中的对象自动持久化到关系数据库中。具体表现:O-Java对象R-数据库表M-映射文件一个Java类对应数据库中的一张表;一个Java对
- Rxjava框架学习总结
慢行的骑兵
rxjavaandroid
一.前言本篇文章学习的目标:Rxjava体系的知识相当庞大,我们仅针对以上内容进行学习;其次,源码的细节是比较复杂的,我们以弄清楚原理为主,不会深入细节;需要弄清楚的概念:被观察者;观察者;订阅;上游/下游的被观察者;上游/下游的观察者;这几个概念会在下方的具体场景中对其进行解释;验证一些结论:验证一:下游的被观察者是持有上游被观察者的引用;验证二:上游观察者是持有下游观察者的引用;验证三:下游的
- Java框架学习(二)SSM体系:Spring、SpringMVC、MybatisPlus
芸兮
Java框架java学习spring
文章目录SpringIoC控制反转DI依赖注入BeanBean基础配置namescopeBean实例化方式Bean的生命周期依赖注入方式依赖自动装配Mybatis-Plus配置BaseMapper通用Service常用注解@TableName@TableId雪花算法@TableField@TableLogic条件构造器和常用接口QueryWrapperUpdateWrapper插件Spring在原
- Java框架学习--Spring
水果篮子~
springjava学习
1.Spring概念【托管很多对象的框架】一个包含了众多工具方法的IoC容器。1.1什么是容器?容器是用来容纳各种物品的(基本)装置。--来自百度百科之前常见的容器有:List/Map-》数据存储容器Tomcat-》Web容器1.2什么是IoC?IoC=InversionofControl翻译成中文就是“控制反转”的意思,也就是说Spring是一个“控制反转”的容器。控制反转:对象的创建权反转给别
- Java框架学习 | MyBatis
风吹衣ou
提问式学习Java知识mybatisjava学习
问题导向学习MyBatis为什么要有MyBatis框架?避免Java开发者直接使用JDBC重复做数据库操作,同时更便捷地实现想要的数据库相关功能,让Java专注于开发业务。MyBatis框架如何实现该目的?MyBatis是半自动化持久层ORM框架,想要实现什么数据库操作都能够通过使用MyBatis这个工具高效的实现。ObjectRetionalMapping对象关系映射开发者直接编辑Java代码调
- Java框架学习顺序,主要讲解三大框架
python88889
java架构分布式redisspring
Java编程是世界第一编程语言,这已经达成共识,是毋庸置疑的真理,Java框架是程序员们必学的知识点,而且是十分重要的应用,Spring、Struts、Hibernate也是经典中的经典,最常用的框架类型。作为Java零基础应该如何去学习呢?小编搜集了很多网友的建议,现在为大家总结如下:对于Spring来说,最应该学习的就是Spring的IOC原理,这在使用过程中是必须要理解的、必会的。用配置文件
- 【Java】基于【Mybatis】框架学习系列——Mybatis数据连接测试
Ali.s
Java后端#Mybatis框架学习mybatisjava学习数据库mysql
个人主页:Ali,S最近更新:2022年7月12日⛽Java框架学习系列:Mybatis框架⛳Java基础学习系列:面向对象飞机大战通信仿真学习系列:【硬件】【通信】【MATLAB】个人简介:通信工程本硕、Java程序员。目前只会CURD点赞收藏留言都是我最大的动力文章目录前言一、Mybatis核心对象1.SqlSessionFactory2.SqlSession二、Mybatis连接测试1.数据
- 【JAVA项目实战】【图书管理系统】学生管理功能【Servlet】+【Ajax】+【MySql】+【Jsp】
Ali.s
Java后端#Java阶段二项目javamavenintellijidea架构个人开发
个人主页:欢迎访问Ali.s的首页⏰最近更新:2022年10月13日⛽Java框架学习系列:【Spring】【SpringMVC】【Mybatis】Java项目实战系列:【飞机大战】【图书管理系统】Java算法21天系列:【查找】【排序】【递归】⛳Java基础学习系列:【继承】【封装】【多态】通信仿真学习系列:【硬件】【通信】【MATLAB】个人简介:通信工程本硕、Java程序员。目前只会CURD
- 【JAVA项目实战】【图书管理系统】借阅管理功能【Servlet】+【Ajax】+【MySql】+【Session】
Ali.s
Java后端#Java阶段二项目javaservletajaxjava-eeintellijidea
个人主页:欢迎访问Ali.s的首页⏰最近更新:2022年10月23日⛽Java框架学习系列:【Spring】【SpringMVC】【Mybatis】Java项目实战系列:【飞机大战】【图书管理系统】Java算法21天系列:【查找】【排序】【递归】⛳Java基础学习系列:【继承】【封装】【多态】通信仿真学习系列:【硬件】【通信】【MATLAB】个人简介:通信工程本硕、Java程序员。目前只会CURD
- 【JAVA项目实战】【图书管理系统】书籍管理功能【Servlet】+【JSP】+【MySql】+【Ajax】
Ali.s
#Java阶段二项目javaservletmysqlajax后端
个人主页:欢迎访问Ali.s的首页⏰最近更新:2022年9月20日⛽Java框架学习系列:【Spring】【SpringMVC】【Mybatis】Java项目实战系列:【飞机大战】【图书管理系统】Java算法21天系列:【查找】【排序】【递归】⛳Java基础学习系列:【继承】【封装】【多态】通信仿真学习系列:【硬件】【通信】【MATLAB】个人简介:通信工程本硕、Java程序员。目前只会CURD点
- 【最优化算法】基于【MATLAB】的牛顿法【Newton Method】计算与推导
Ali.s
通信技术#优化算法算法matlab开发语言动态规划矩阵
个人主页:欢迎访问Ali.S主页最近更新:2022年7月7日⛽Java框架学习系列:Mybatis框架⛳Java基础学习系列:面向对象飞机大战通信仿真学习系列:【硬件】【通信】【MATLAB】【最优化】个人简介:通信工程本硕、Java程序员。目前只会CURD点赞收藏留言都是我最大的动力文章目录一、牛顿法介绍二、牛顿法原理三、牛顿法步骤四、牛顿法代码五、牛顿法测试总结一、牛顿法介绍前面介绍过通过梯度
- 【Javaweb学习笔记】在Eclipse中创建Web项目
颜颜yan_
JAVA框架前端eclipse学习
【Javaweb学习笔记】在Eclipse中创建Web项目哈喽大家好,这里是Java框架学习笔记专栏第二期本期内容——在Eclipse中创建Web项目前期回顾:第一期——schema约束笔者还是菜菜,还请大家多多指教呀!文章目录【Javaweb学习笔记】在Eclipse中创建Web项目前言一、创建web项目二、整合tomcat服务器三、部署到tomcat总结前言大家好呀,今天我们来学习用Eclip
- java框架学习笔记 —— Spring
关于小熊关于你
java笔记springjava
Spring1、概述1.1、优点1.2、组成2.IOC概述2.1什么是IOC2.1.1推导过程2.1.2IOC本质2.2HelloSpring2.2.1导入Jar包2.2.2编写代码2.2.2思考2.3IOC过程2.4IOC接口3.Bean管理3.1基于xml方式——set方法注入3.2FactoryBean3.3bean作用域3.4bean生命周期4.自动装配4.1ByName4.2byType
- java框架学习笔记——SpringMVC
关于小熊关于你
java笔记java学习笔记springmvc
SpringMVC1.SpringMVC简介1.1什么是MVC1.2SpringMVC1.3SpringMVC的常用组件2.HelloSPringMVC2.1基础配置2.2总结3.@RequestMapping注解3.1功能3.2位置3.3value属性3.4method属性3.5params属性3.6headers属性3.7SpringMVC支持ant风格的路径3.8SpringMVC支持路径中
- 【Java】基于【Mybatis】框架学习系列——动态SQL
Ali.s
Java后端#Mybatis框架学习mybatisjavamysql动画开发语言
个人主页:Ali,S最近更新:2022年7月2日⛽Java框架学习系列:Mybatis框架⛳Java基础学习系列:面向对象飞机大战通信仿真学习系列:【硬件】【通信】【MATLAB】个人简介:通信工程本硕、Java程序员。目前只会CURD点赞收藏留言都是我最大的动力文章目录前言一、OGNL表达式二、动态SQL1.动态标签if2.动态标签set3.动态标签choose三、测试案例1.测试标签if2.测
- 【JAVA项目实战】【图书管理系统】登录模块【Servlet】+【Session】+【Filter】+【JSP】
Ali.s
#Java阶段二项目Java后端#Java基础javaservlet开发语言css3软件工程
个人主页:欢迎访问Ali.s的首页⏰最近更新:2022年9月6日⛽Java框架学习系列:【Spring】【SpringMVC】【Mybatis】Java项目实战系列:【飞机大战】【图书管理系统】Java算法21天系列:【查找】【排序】【递归】⛳Java基础学习系列:【继承】【封装】【多态】通信仿真学习系列:【硬件】【通信】【MATLAB】个人简介:通信工程本硕、Java程序员。目前只会CURD点赞
- 【通信原理】通信系统概念、组成、分类、度量的分析与研究
Ali.s
通信技术#通信原理数据挖掘语音识别硬件工程5G人工智能
个人主页:欢迎访问Ali.s的首页⏰最近更新:2022年8月15日⛽Java框架学习系列:【Spring】【SpringMVC】【Mybatis】Java项目实战系列:【飞机大战】【图书管理系统】Java算法21天系列:【查找】【排序】【递归】⛳Java基础学习系列:【继承】【封装】【多态】通信仿真学习系列:【硬件】【通信】【MATLAB】个人简介:通信工程本硕、Java程序员。目前只会CURD点
- 【通信原理】揭开傅里叶级数与傅里叶变换的神秘面纱
Ali.s
通信技术#通信原理数据挖掘数据分析人工智能傅里叶分析dsp开发
个人主页:欢迎访问Ali.s的首页⏰最近更新:2022年8月18日⛽Java框架学习系列:【Spring】【SpringMVC】【Mybatis】Java项目实战系列:【飞机大战】【图书管理系统】Java算法21天系列:【查找】【排序】【递归】⛳Java基础学习系列:【继承】【封装】【多态】通信仿真学习系列:【硬件】【通信】【MATLAB】个人简介:通信工程本硕、Java程序员。目前只会CURD点
- 【JAVA项目实战】【图书管理系统】用户更新功能【Servlet】+【Ajax】+【Mysql】
Ali.s
Java后端#Java阶段二项目javaservletajax开发语言mysql
个人主页:欢迎访问Ali.s的首页⏰最近更新:2022年8月5日⛽Java框架学习系列:【Spring】【SpringMVC】【Mybatis】Java项目实战系列:【飞机大战】【图书管理系统】⛳Java基础学习系列:【继承】【封装】【多态】通信仿真学习系列:【硬件】【通信】【MATLAB】个人简介:通信工程本硕、Java程序员。目前只会CURD点赞收藏留言都是我最大的动力文章目录前言一、需求分析
- 【通信原理】确知信号的性质分析与研究
Ali.s
通信技术#通信原理5G数据挖掘傅立叶分析人工智能
个人主页:欢迎访问Ali.s的首页⏰最近更新:2022年8月24日⛽Java框架学习系列:【Spring】【SpringMVC】【Mybatis】Java项目实战系列:【飞机大战】【图书管理系统】Java算法21天系列:【查找】【排序】【递归】⛳Java基础学习系列:【继承】【封装】【多态】通信仿真学习系列:【硬件】【通信】【MATLAB】个人简介:通信工程本硕、Java程序员。目前只会CURD点
- Java框架学习day01---maven+安装jdk1.8+tomcat8.5+zookeeper
嘻嘻你好呀
javaFramejavatomcatmaven
本篇笔记将会以博客的形式去写,旨在查漏补缺3.19文章目录一、Maven的简介1.1项目构建的工具1.2配置maven的镜像加速器:1.3配置maven的本地仓库:二、安装虚拟机2.1安装2.2配置虚拟机的ip地址:2.3安装客户端工具:三、安装jdk1.83.1上传安装包到linux3.2解压缩安装包3.3修改解压缩的目录名3.4配置环境变量3.5重新加载配置文件3.6验证jdk是否安装成功:四
- Linux 安装项目软件 MySql Redis Nginx RabbitMQ Docker 轻松 详细
秋日的晚霞
linuxmysqlredisdockerrabbitmq
java全知识点学习笔记思维导图面试跳槽必备码云仓库地址java框架学习思维导图实用笔记不断更新中:java框架学习思维导图实用笔记思维软件用的是XMind以及MindMaster如有错误的地方欢迎指出及时改正微信号:vx202158Linux安装MySqlRedisNginxRabbitMQDocker轻松搞定详细
- 问题: Error creating bean with name 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor
渐醒的思考者
problem
问题描述:在JAVA框架学习中遇到了org.springframework.beans.factory.BeanCreationException在控制太区域出现了如下的提示Errorcreatingbeanwithname'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor具体显示如下:/**警告:Exception
- Java框架学习:SpringMVC之动态资源和静态资源访问冲突问题、常用注解
weixin_45919908
文章目录动态资源和静态资源访问冲突问题出现的问题解决方案常用注解@RequestMapping@PathVariable@SessionAttribute和@SessionAttributes动态资源和静态资源访问冲突问题出现的问题web.xml配置文件DispatcherServletorg.springframework.web.servlet.DispatcherServletcontext
- Java框架学习之Struts2(拦截器,校验,文件上传下载,标签使用)
范亚明
web项目框架
第一节Struts2拦截器概述拦截器:Struts2拦截器是在访问某个Action或Action的某个方法之前或之后实施拦截,并且Struts2拦截器是可插拔的,拦截器是SpringAOP的一种实现.AOP:面向切面编程.其实现原理:动态代理模式—>留给SpringWebWork中文文档解释:拦截器是动态拦截Action调用的对象。它提供了一种机制使开发者可以定义在一个Action执行的前后执行的
- Java框架学习:SpringBoot入门
weixin_45919908
springbootspringjava
文章目录SpringBoot简介第一个SpringBoot程序创建maven工程导入依赖运行程序简单探究启动器`@SpringBootApplication``SpringApplication.run()`的作用一些小配置更换端口号更换banner图片关于配置文件配置多环境配置热部署导入依赖在``标签下配置设置IDEA中的配置三层架构演示更改使用的服务器自动配置再理解SpringBoot简介Sp
- Java框架学习_Mybatis(七)Mybatis的核心配置文件的配置
馬冬梅啊
SSM框架_MybatisJAVA框架SSMMybatis持久化框架
1、Mybatis的核心配置文件:核心配置文件里面还有很多可以配置的(DTD格式,顺序不能乱)properties:属性settingstypeAliases:别名typeHandlersobjectFactorypluginsenvironmentsmappersproperties:两种方法引入,第一种是resource,引入properties文件;第二种是直接设置property,然后下面
- java框架学习路线总结
yuze2333
java
已经大三的我是一路自学过来的,不能说学校教的没用,但要想真正地提升自己还要额外画出很多的时间去学习别的技术。java基础学习完的我,现在开始着手准备学框架了,下面我总结一下如何学习后端javaweb框架,自己也看了很多博文,所以通过融会贯通表达一下我的学习路线。有很多博主都说学习structs,Hibernate,springmvc要按照一定的前后顺序,我觉得我不需要,首先Struts2代替了St
- html页面js获取参数值
0624chenhong
html
1.js获取参数值js
function GetQueryString(name)
{
var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
var r = windo
- MongoDB 在多线程高并发下的问题
BigCat2013
mongodbDB高并发重复数据
最近项目用到 MongoDB , 主要是一些读取数据及改状态位的操作. 因为是结合了最近流行的 Storm进行大数据的分析处理,并将分析结果插入Vertica数据库,所以在多线程高并发的情境下, 会发现 Vertica 数据库中有部分重复的数据. 这到底是什么原因导致的呢?笔者开始也是一筹莫 展,重复去看 MongoDB 的 API , 终于有了新发现 :
com.mongodb.DB 这个类有
- c++ 用类模版实现链表(c++语言程序设计第四版示例代码)
CrazyMizzz
数据结构C++
#include<iostream>
#include<cassert>
using namespace std;
template<class T>
class Node
{
private:
Node<T> * next;
public:
T data;
- 最近情况
麦田的设计者
感慨考试生活
在五月黄梅天的岁月里,一年两次的软考又要开始了。到目前为止,我已经考了多达三次的软考,最后的结果就是通过了初级考试(程序员)。人啊,就是不满足,考了初级就希望考中级,于是,这学期我就报考了中级,明天就要考试。感觉机会不大,期待奇迹发生吧。这个学期忙于练车,写项目,反正最后是一团糟。后天还要考试科目二。这个星期真的是很艰难的一周,希望能快点度过。
- linux系统中用pkill踢出在线登录用户
被触发
linux
由于linux服务器允许多用户登录,公司很多人知道密码,工作造成一定的障碍所以需要有时踢出指定的用户
1/#who 查出当前有那些终端登录(用 w 命令更详细)
# who
root pts/0 2010-10-28 09:36 (192
- 仿QQ聊天第二版
肆无忌惮_
qq
在第一版之上的改进内容:
第一版链接:
http://479001499.iteye.com/admin/blogs/2100893
用map存起来号码对应的聊天窗口对象,解决私聊的时候所有消息发到一个窗口的问题.
增加ViewInfo类,这个是信息预览的窗口,如果是自己的信息,则可以进行编辑.
信息修改后上传至服务器再告诉所有用户,自己的窗口
- java读取配置文件
知了ing
1,java读取.properties配置文件
InputStream in;
try {
in = test.class.getClassLoader().getResourceAsStream("config/ipnetOracle.properties");//配置文件的路径
Properties p = new Properties()
- __attribute__ 你知多少?
矮蛋蛋
C++gcc
原文地址:
http://www.cnblogs.com/astwish/p/3460618.html
GNU C 的一大特色就是__attribute__ 机制。__attribute__ 可以设置函数属性(Function Attribute )、变量属性(Variable Attribute )和类型属性(Type Attribute )。
__attribute__ 书写特征是:
- jsoup使用笔记
alleni123
java爬虫JSoup
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>1.7.3</version>
</dependency>
2014/08/28
今天遇到这种形式,
- JAVA中的集合 Collectio 和Map的简单使用及方法
百合不是茶
listmapset
List ,set ,map的使用方法和区别
java容器类类库的用途是保存对象,并将其分为两个概念:
Collection集合:一个独立的序列,这些序列都服从一条或多条规则;List必须按顺序保存元素 ,set不能重复元素;Queue按照排队规则来确定对象产生的顺序(通常与他们被插入的
- 杀LINUX的JOB进程
bijian1013
linuxunix
今天发现数据库一个JOB一直在执行,都执行了好几个小时还在执行,所以想办法给删除掉
系统环境:
ORACLE 10G
Linux操作系统
操作步骤如下:
第一步.查询出来那个job在运行,找个对应的SID字段
select * from dba_jobs_running--找到job对应的sid
&n
- Spring AOP详解
bijian1013
javaspringAOP
最近项目中遇到了以下几点需求,仔细思考之后,觉得采用AOP来解决。一方面是为了以更加灵活的方式来解决问题,另一方面是借此机会深入学习Spring AOP相关的内容。例如,以下需求不用AOP肯定也能解决,至于是否牵强附会,仁者见仁智者见智。
1.对部分函数的调用进行日志记录,用于观察特定问题在运行过程中的函数调用
- [Gson六]Gson类型适配器(TypeAdapter)
bit1129
Adapter
TypeAdapter的使用动机
Gson在序列化和反序列化时,默认情况下,是按照POJO类的字段属性名和JSON串键进行一一映射匹配,然后把JSON串的键对应的值转换成POJO相同字段对应的值,反之亦然,在这个过程中有一个JSON串Key对应的Value和对象之间如何转换(序列化/反序列化)的问题。
以Date为例,在序列化和反序列化时,Gson默认使用java.
- 【spark八十七】给定Driver Program, 如何判断哪些代码在Driver运行,哪些代码在Worker上执行
bit1129
driver
Driver Program是用户编写的提交给Spark集群执行的application,它包含两部分
作为驱动: Driver与Master、Worker协作完成application进程的启动、DAG划分、计算任务封装、计算任务分发到各个计算节点(Worker)、计算资源的分配等。
计算逻辑本身,当计算任务在Worker执行时,执行计算逻辑完成application的计算任务
- nginx 经验总结
ronin47
nginx 总结
深感nginx的强大,只学了皮毛,把学下的记录。
获取Header 信息,一般是以$http_XX(XX是小写)
获取body,通过接口,再展开,根据K取V
获取uri,以$arg_XX
&n
- 轩辕互动-1.求三个整数中第二大的数2.整型数组的平衡点
bylijinnan
数组
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class ExoWeb {
public static void main(String[] args) {
ExoWeb ew=new ExoWeb();
System.out.pri
- Netty源码学习-Java-NIO-Reactor
bylijinnan
java多线程netty
Netty里面采用了NIO-based Reactor Pattern
了解这个模式对学习Netty非常有帮助
参考以下两篇文章:
http://jeewanthad.blogspot.com/2013/02/reactor-pattern-explained-part-1.html
http://gee.cs.oswego.edu/dl/cpjslides/nio.pdf
- AOP通俗理解
cngolon
springAOP
1.我所知道的aop 初看aop,上来就是一大堆术语,而且还有个拉风的名字,面向切面编程,都说是OOP的一种有益补充等等。一下子让你不知所措,心想着:怪不得很多人都和 我说aop多难多难。当我看进去以后,我才发现:它就是一些java基础上的朴实无华的应用,包括ioc,包括许许多多这样的名词,都是万变不离其宗而 已。 2.为什么用aop&nb
- cursor variable 实例
ctrain
variable
create or replace procedure proc_test01
as
type emp_row is record(
empno emp.empno%type,
ename emp.ename%type,
job emp.job%type,
mgr emp.mgr%type,
hiberdate emp.hiredate%type,
sal emp.sal%t
- shell报bash: service: command not found解决方法
daizj
linuxshellservicejps
今天在执行一个脚本时,本来是想在脚本中启动hdfs和hive等程序,可以在执行到service hive-server start等启动服务的命令时会报错,最终解决方法记录一下:
脚本报错如下:
./olap_quick_intall.sh: line 57: service: command not found
./olap_quick_intall.sh: line 59
- 40个迹象表明你还是PHP菜鸟
dcj3sjt126com
设计模式PHP正则表达式oop
你是PHP菜鸟,如果你:1. 不会利用如phpDoc 这样的工具来恰当地注释你的代码2. 对优秀的集成开发环境如Zend Studio 或Eclipse PDT 视而不见3. 从未用过任何形式的版本控制系统,如Subclipse4. 不采用某种编码与命名标准 ,以及通用约定,不能在项目开发周期里贯彻落实5. 不使用统一开发方式6. 不转换(或)也不验证某些输入或SQL查询串(译注:参考PHP相关函
- Android逐帧动画的实现
dcj3sjt126com
android
一、代码实现:
private ImageView iv;
private AnimationDrawable ad;
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout
- java远程调用linux的命令或者脚本
eksliang
linuxganymed-ssh2
转载请出自出处:
http://eksliang.iteye.com/blog/2105862
Java通过SSH2协议执行远程Shell脚本(ganymed-ssh2-build210.jar)
使用步骤如下:
1.导包
官网下载:
http://www.ganymed.ethz.ch/ssh2/
ma
- adb端口被占用问题
gqdy365
adb
最近重新安装的电脑,配置了新环境,老是出现:
adb server is out of date. killing...
ADB server didn't ACK
* failed to start daemon *
百度了一下,说是端口被占用,我开个eclipse,然后打开cmd,就提示这个,很烦人。
一个比较彻底的解决办法就是修改
- ASP.NET使用FileUpload上传文件
hvt
.netC#hovertreeasp.netwebform
前台代码:
<asp:FileUpload ID="fuKeleyi" runat="server" />
<asp:Button ID="BtnUp" runat="server" onclick="BtnUp_Click" Text="上 传" />
- 代码之谜(四)- 浮点数(从惊讶到思考)
justjavac
浮点数精度代码之谜IEEE
在『代码之谜』系列的前几篇文章中,很多次出现了浮点数。 浮点数在很多编程语言中被称为简单数据类型,其实,浮点数比起那些复杂数据类型(比如字符串)来说, 一点都不简单。
单单是说明 IEEE浮点数 就可以写一本书了,我将用几篇博文来简单的说说我所理解的浮点数,算是抛砖引玉吧。 一次面试
记得多年前我招聘 Java 程序员时的一次关于浮点数、二分法、编码的面试, 多年以后,他已经称为了一名很出色的
- 数据结构随记_1
lx.asymmetric
数据结构笔记
第一章
1.数据结构包括数据的
逻辑结构、数据的物理/存储结构和数据的逻辑关系这三个方面的内容。 2.数据的存储结构可用四种基本的存储方法表示,它们分别是
顺序存储、链式存储 、索引存储 和 散列存储。 3.数据运算最常用的有五种,分别是
查找/检索、排序、插入、删除、修改。 4.算法主要有以下五个特性:
输入、输出、可行性、确定性和有穷性。 5.算法分析的
- linux的会话和进程组
网络接口
linux
会话: 一个或多个进程组。起于用户登录,终止于用户退出。此期间所有进程都属于这个会话期。会话首进程:调用setsid创建会话的进程1.规定组长进程不能调用setsid,因为调用setsid后,调用进程会成为新的进程组的组长进程.如何保证? 先调用fork,然后终止父进程,此时由于子进程的进程组ID为父进程的进程组ID,而子进程的ID是重新分配的,所以保证子进程不会是进程组长,从而子进程可以调用se
- 二维数组 元素的连续求解
1140566087
二维数组ACM
import java.util.HashMap;
public class Title {
public static void main(String[] args){
f();
}
// 二位数组的应用
//12、二维数组中,哪一行或哪一列的连续存放的0的个数最多,是几个0。注意,是“连续”。
public static void f(){
- 也谈什么时候Java比C++快
windshome
javaC++
刚打开iteye就看到这个标题“Java什么时候比C++快”,觉得很好笑。
你要比,就比同等水平的基础上的相比,笨蛋写得C代码和C++代码,去和高手写的Java代码比效率,有什么意义呢?
我是写密码算法的,深刻知道算法C和C++实现和Java实现之间的效率差,甚至也比对过C代码和汇编代码的效率差,计算机是个死的东西,再怎么优化,Java也就是和C