- SQL Server 6.5 配置使用要点
rc_cdeoo_com
sqlserverserversecuritymanager网络协议sql
SQLServer6.5在安装使用时的默认配置并不能带来系统性能的最大优化,某些使用方法没有具体的说明,在具体应用过程中感觉非常不便。下面结合本人在使用中的心得,就SQLServer6.5的一些安装使用方法作了简要介绍,各位可以针对自己的情况进行修改。1.安装中的要点安装时要求系统使用WindowsNTServer4.0,并且加装SP4。a)网络安装过程中选择网络时,安装程序默认不使用TCP/IP
- source insight4.0中文乱码解决方法
鹿屿二向箔
c语言stm32keilmdk
Sourceinsight是强大、顺手的代码编辑器,它几乎支持所有的语言,包括:C,C++,C#,HTML等等,能够自动创建并维护它自己高性能的符号数据库,包括函数、全局变量、结构、类和工程源文件里定义的其它类型的符号,对于大工程的源码阅读非常方便。但是因为是国外软件,对中文支持不是很好,很多电脑安装使用都会出现注释乱码问题,很让人抓狂。网上很多人遇到类似的问题,也有很多解决方式,也有很多“终极解
- 关于ROS调用USB摄像头的一些问题
Robot_hfut
ROS
一.基本途径1.使用sudo安装使用以下命令安装usb-cam包,对于kinetic版本:roscoresudoapt-getinstallros-kinetic-usb-camroslaunchusb_camusb_cam-test.launch2.使用源代码安装使用以下命令安装usb-cam包:cdcatkin_ws/srcgitclonehttps://github.com/bosch-ro
- RAG与LLM原理及实践(16)---RAG 前端技术Flask-socketIO
PhoenixAI8
RAGMilvusChroma源码及实践前端flaskpythonsocketioRAG
目录背景技术理念RAG结合点实时数据更新与推送实时查询与响应安装使用完整案例说明后端python代码代码解释前端html代码JS代码代码解释总结背景构建RAG系统或别的系统时,如果后端采用的全Python,或者说是以python为主的系统,是很常见的一个选择,因为毕竟python对LLM,图片,乃至其他video等resource的model都有较完善的支撑,为了快速开发出原型,甚至之后的商用,往
- pip安装使用清华源
后山小鲨鱼
python在使用pip安装的时候,一些小一点的还好,安装一些大的包的时候,会非常的慢,这时我们就可以使用清华大学的镜像来安装,打开cmdpipinstall要安装的包-ihttps://pypi.tuna.tsinghua.edu.cn/simple比如说要安装selenium包,可以这样写pipinstallselenium-ihttps://pypi.tuna.tsinghua.edu.cn
- Python国内常用镜像源和安装使用方法
新三晴
python开发语言
由于国内限制,Python自带的源国内可能提取不到软件包,这个时候我们如果要使用官方软件包,或者第三方软件包,我们就需要换成国内源,从国内源提取软件包。Python的国内安装源(也称为镜像源)数量会随着时间变化,因为新的镜像源可能会建立,而一些旧的镜像源可能会停止服务或不再更新。以下是一些常用的Python国内安装源(也称为PyPI镜像源):1、企业镜像:豆瓣(DOUBAN)https://pyp
- 【网络安全 | 渗透工具】IIS 短文件名枚举工具—shortscan安装使用教程
秋说
渗透工具web安全漏洞挖掘渗透工具
未经许可,不得转载。文章目录shortscan安装使用Shortutil工具shortscanShortScan是一种用于在MicrosoftIIS(InternetInformationServices)Web服务器上进行短文件名枚举的工具。该工具可以帮助攻击者利用IIS的文件名处理特性,通过预测性扫描枚举服务器上的文件和目录名称。背景:在早期的Windows文件系统(如FAT和NTFS)中,每
- Windows 环境nginx安装使用及目录结构详解
w风雨无阻w
Nginxwindowsnginx运维
一、Windows环境nginx安装及基本使用1、下载nginx-1.27.1最新的主线版本安装nginx/Windows,请下载1.27.1最新的主线版本,nginx的主线分支包含所有已知的修复程序。2、解压缩nginx-1.27.1版本nginx/Windows作为标准控制台应用程序(而不是服务)运行,可以使用以下命令对其进行管理:nginx-sstop快速关闭nginx-squit正常关闭n
- Ubuntu22 CMake安装使用教程
小朱在敲代码
linuxc++c语言ubuntu
1.CMake简介CMake是一个跨平台的自动化构建系统工具,它被用来管理和控制软件构建过程。CMake使用一个称为CMakeLists.txt的文本文件来描述项目的构建过程。这个文件包含了项目所需的各种设置和指令,比如源文件的位置、编译选项、链接器选项等。CMake并不是一个编译器,而是一个前端工具,它可以生成不同构建系统的脚本,如UnixMakefiles、Ninjabuildfiles、MS
- Python包的安装
weixin_38778542
Python包pythonanaconda
只是在包装paddlepaddle包的时候,使用官方推荐的命令使用安装失败。大概看了一下,是其他的一些支持的包安装失败,要么是找不到,要么是版本问题,要么是自己网速差……自己又看不明白,或者是静不下心来仔细去查找问题,所以开了这个帖子,希望来记录一下学习Python中,在关于一些包的安装使用上的问题。同时也欢迎大家参与讨论。现在正在安装paddlepaddle以及其支持的包,主要学习https:/
- helm2和helm3的区别及helm2的安装使用
Rami
1.从Helm2到Helm3helm是一个k8s应用包管理工具,负责云原生应用的安装部署和生命周期管理2.Helm2两个主要的组件Tiller:helm的服务端,部署在k8s里面的一个pod,通常在kube-system这个名称空间里,主要负责部署helmcharts,管理release,跟k8sAPIserver通信。helmClient:helm的客户端,主要负责从公有或者私有charts仓库
- 【vue、react】前端如何为package.json添加注释
fruge365
vue.jsreact.jsjson
文章目录前言安装使用方法问题前言写了个项目,想给package.json加注释结果发现加不上去,就在网上查找了相关文章,特意总结记录一下,防止下次使用。参考文章:如何为package.json添加注释众所周知,JSON文件是不支持注释的,除了JSON5/JSONC之外,我们在开发项目特别是前端项目时,大量会用到JSON文件,特别是在编写package.json中的scripts时,由于缺少注释,当
- 【LangChain-Chatchat】本地部署模型及搭建个人/企业内部知识库
AI_小站
langchain人工智能ai大模型语言模型自然语言处理
此学习教程结合本人安装经验主要提供给想学习和本地安装使用LangChain-Chatchat的同学们,该教程如有描述不当或者引用不正确的地方,欢迎指出!后续也会更新如何结合自己系统使用。介绍基于ChatGLM等大语言模型与Langchain等应用框架实现,开源、可离线部署的检索增强生成(RAG)大模型知识库项目。该项目支持开源LLM与Embedding模型,亦可实现全部使用开源模型离线私有部署。与
- Ubuntu22.04(Linux Mint 21)安装使用绿联USB无线网卡CM448(rtl8821CU)的方法
ericden
编译UbuntuubuntuUSB网卡trl8821CU绿联
我之前一直在惠普Z230图形工作站上使用的是LinuxMintCinnamon20.3,由于工作站不带无线网卡,最初使用FAST品牌的USB无线网卡(rtl8818eus),这个网卡使用倒是方便,即插即用,但是这个网卡是基于802.11ag的网速较慢,最要命的是这个网卡极不稳定,时断时续;在网上买了一款TP-LINK的免驱版USB网卡(TL-WN823N),但是这款网卡仅支持Windows,Ubu
- 龙芯新世界系统(安同AOCS OS)安装坚果云
ericden
龙芯坚果云安同AOSC
对于办公场景常常需要一个文件同步的功能,确保在家里或移动端随时能与办公室的文件保持一致的状态,提高办公效率,在Linux桌面端可以供选择的软件较少,国产的云同步的软件坚果云就是能够满足要求的工具;由于在此之前都是在amd64硬件环境中安装使用这个软件,没有发现什么问题,但是现在切换到龙芯硬件环境就遇到麻烦了,坚果云没有提供为loongarch64准备的安装包,虽然提供了部分的源代码,实际上很多部件
- linux系统下make安装,如何在Linux上安装和使用Makeself
weixin_39777875
linux系统下make安装
Makeself只是Linux下的一个脚本,可用于文件的创建,因为makeself重写过,所以会有不少人不懂怎么使用makeself,下面小编就给大家介绍下Linux安装使用makeself的方法。Makeself.sh是一个小的Shell脚本,用于从一个目录中生成自解压的tar.gz压缩包。结果文件以一个shell脚本显示(大多数以.run作为后缀名),可以自动运行。该文档会解压自己到一个临时目
- YeAudio音频工具的介绍和使用
夜雨飘零1
语音音视频语音识别pythonffmpeg
夜雨飘零音频工具这款Python音频处理工具功能强大,支持读取多种格式的音频文件。它不仅能够对音频进行裁剪、添加混响、添加噪声等多种处理操作,还广泛应用于语音识别、语音合成、声音分类以及声纹识别等多个项目领域。安装使用pip安装。pipinstallyeaudio-U-ihttps://pypi.tuna.tsinghua.edu.cn/simple(推荐)使用源码安装。gitclonehttps
- jupter_notebook简单介绍以及安装使用
Ctrl+CV九段手
pytorchjupyternotebook学习方法python机器学习人工智能软件安装
目录jupyter简单介绍:Jupyter:Jupyter的主要特点包括:1.交互式编程:2.文档和代码的整合:3.易于分享和协作:4.丰富的扩展性:5.社区支持:6.支持多种内核:7.集成开发环境(IDE)特性:8.版本控制:jupyternotebook的打开:安装jupyter无法安装jupyter与pycharm的主要区别:JupyterNotebookPyCharm总结jupyter简单
- Matplotlib学习(一)快速上手
小翟Sam
一、安装使用pip3安装pip3installmatplotlib二、编写测试程序importmatplotlib.pyplotasplt%matplotlibinline#兼容性写法,有些系统不需要也可执行plt.figure()#创建画布plt.plot([2,0,4],[1,1,9],[4,5,6],[1,3,2])#画图plt.show()效果:代码执行效果图matplotlib结构图:M
- java转发IP/TCP和IP/UDP数据包
击杀了佩奇
javajavatcp/ipudp
java转发IP/TCP和IP/UDP数据包程序原理程序代码程序如何安装使用如何搭建服务器如何使用客户端程序原理读取头部信息,创建Socket将IP数据发送给服务器收到数据加入头部信息返回程序代码查看github程序如何安装使用文件说明:build/XiGuaVpn.jar为服务器程序build/XiGuaVpn.apk为android客户端程序如何搭建服务器我这里讲在ubuntu下的搭建安装jd
- 天宝TBCTrimble Business Center中文版本下载安装使用介绍
Aruanjian888
航测软件点云处理航测信息可视化航测测绘大地测绘测绘合集
天宝TBC:测绘之道,尽在其中引言昔日杜甫,忧国忧民,今朝我辈,测绘天下。天宝TBC,乃测绘之利器,助我等行走于山川河流之间,绘制天地之图。此文将以杜甫之笔,述说TBC之妙用,愿与君共勉。一、初识天宝TBC初识天宝TBC,犹如初见故人,心生亲切。此软件集成了GNSS接收机、全站仪、激光扫描仪、无人机等多种设备的数据处理功能,堪称测绘界之全能选手。其界面简洁明了,操作便捷,令人一见倾心。二、数据导入
- 如何在macOS上安装使用scrcpy投屏软件?
沐言TalkMu
Macmacos
引言scrcpy是一款非常实用的工具,它允许你将安卓设备屏幕镜像到macOS上,并且可以通过电脑控制手机。这对于需要在电脑上演示安卓应用或进行测试的用户来说非常方便。本文将详细介绍如何在macOS上安装和使用scrcpy。一、安装前的准备在开始安装之前,确保你的macOS系统已经安装了Homebrew。Homebrew是macOS上的包管理器,很多软件都可以通过它来安装。如果你还没有安装Homeb
- Jenkins安装配置及插件安装使用
程序员雷叔
jenkinsselenium测试用例功能测试单元测试pytest测试工具
个人理解持续集成:为解决程序代码提交质量低,提交内容导致原有系统的BUG,按时或按需自动编译版本,进行自动化测试。百度对持续集成的定义:持续集成是一种软件开发实践,即团队开发成员经常集成他们的工作,通常每个成员每天至少集成一次,也就意味着每天可能会发生多次集成。每次集成都通过自动化的构建(包括编译,发布,自动化测试)来验证,从而尽快地发现集成错误。许多团队发现这个过程可以大大减少集成的问题,让团队
- Docker安装
什么都干的派森
Dockerdocker
文章目录一、国内daocloud一键安装命令1.安装2.启动二、yum安装1.安装2.修改docker数据目录+换源一、国内daocloud一键安装命令1.安装使用国内daocloud一键安装命令curl-sSLhttps://get.daocloud.io/docker|sh2.启动sudosystemctlstartdocker.serviceps:由于是国内的一键安装脚本,所以国内镜像源也自
- Ubuntu 安装流程图工具asta
Lee_5566
astaasta是一款画流程图、时序图比较专业的软件。官网从官网下载astahprofessional安装包。image.png下载wgethttp://cdn.change-vision.com/files/astah-professional_8.0.0.d641d4-0_all.deb执行后需要一段时间下载。安装安装使用dpkg命令:sudodpkg-iastah-professional_
- 免费开源cms自助建站系统大全,不会编程也可以自己建网站
guizhoumen
cms网站建设网站制作网站源码cms系统
想自己建网站又不会编程的小伙伴有福啦,本期推荐一些开源的cms自助建站系统程序,不需要写后端的任何逻辑代码,只需要下载下来,配置好运行环境就可以安装使用,然后通过后台轻轻松松就可以修改成自己的网站了,当然,要想网站有自己的个性,模版还是需要自己写的,只需要会简单的html+css就可以了,这个不是本章的重点。1、PageAdminCmshttp://www.pageadmin.netPageAdm
- JAVA基础 - HTTRACK安装使用教程
cloneme01
其他技术博文JAVA基础知识网页抓取
写在前面工作中经常需要查看在线文档,在没有网络的情况下如何查看在线文档呢?计划使用HTTRACK将文档克隆到本地,然后离线查看。CENTOS7安装A.HTTRACK的官网:https://www.httrack.comB.下载:wgethttps://download.httrack.com/cserv.php3?File=httrack.tar.gzC.按如下4条命令执行:#tar-xzvfht
- goaccess分析json格式日志
潇潇一夜风兼雨
nginx
一.安装使用yum安装,yuminstallgoaccess二.主要介绍格式问题1.nginx日志格式如下:log_formatmainescape=json'{"time_local":"$time_local",''"remote_addr":"$remote_addr",''"referer":"$http_referer",''"request":"$request",''"status"
- 【myz_tools】Python库 myz_tools:Python算法及文档自动化生成工具
_千思_
myz_toolspython算法开发语言pip
写在前面本来最开始只是单纯的想整理一下常用到的各类算法,还有一些辅助类的函数,方便时间短的情况下快速开发。后来发现整理成库更方便些,索性做成库,通过pipinstall直接可以安装使用关于库平时见到的各类算法大多数还是需要自己手动敲,比如四分位距法,还得知道了原理后详改代码,索性直接做成函数,直接传入原始数据,返回清洗后的数据。内部的话代码也已经开源,也做过几轮测试,所以不用担心会出现什么奇奇怪怪
- node.js学习
tryCbest
node.js学习
目录概述安装使用创建nodejs应用npm使用介绍Node.js回调函数Node.jsEventEmitterNode.jsBuffer(缓冲区)Node.jsStream(流)写入流管道流链式流Node.js模块系统Node.js路由Node.js全局对象Node.js文件系统Node.jsGET/POST请求获取get请求内容获取post请求Node.jsWeb模块Node.jsExpress
- 安装数据库首次应用
Array_06
javaoraclesql
可是为什么再一次失败之后就变成直接跳过那个要求
enter full pathname of java.exe的界面
这个java.exe是你的Oracle 11g安装目录中例如:【F:\app\chen\product\11.2.0\dbhome_1\jdk\jre\bin】下的java.exe 。不是你的电脑安装的java jdk下的java.exe!
注意第一次,使用SQL D
- Weblogic Server Console密码修改和遗忘解决方法
bijian1013
Welogic
在工作中一同事将Weblogic的console的密码忘记了,通过网上查询资料解决,实践整理了一下。
一.修改Console密码
打开weblogic控制台,安全领域 --> myrealm -->&n
- IllegalStateException: Cannot forward a response that is already committed
Cwind
javaServlets
对于初学者来说,一个常见的误解是:当调用 forward() 或者 sendRedirect() 时控制流将会自动跳出原函数。标题所示错误通常是基于此误解而引起的。 示例代码:
protected void doPost() {
if (someCondition) {
sendRedirect();
}
forward(); // Thi
- 基于流的装饰设计模式
木zi_鸣
设计模式
当想要对已有类的对象进行功能增强时,可以定义一个类,将已有对象传入,基于已有的功能,并提供加强功能。
自定义的类成为装饰类
模仿BufferedReader,对Reader进行包装,体现装饰设计模式
装饰类通常会通过构造方法接受被装饰的对象,并基于被装饰的对象功能,提供更强的功能。
装饰模式比继承灵活,避免继承臃肿,降低了类与类之间的关系
装饰类因为增强已有对象,具备的功能该
- Linux中的uniq命令
被触发
linux
Linux命令uniq的作用是过滤重复部分显示文件内容,这个命令读取输入文件,并比较相邻的行。在正常情 况下,第二个及以后更多个重复行将被删去,行比较是根据所用字符集的排序序列进行的。该命令加工后的结果写到输出文件中。输入文件和输出文件必须不同。如 果输入文件用“- ”表示,则从标准输入读取。
AD:
uniq [选项] 文件
说明:这个命令读取输入文件,并比较相邻的行。在正常情况下,第二个
- 正则表达式Pattern
肆无忌惮_
Pattern
正则表达式是符合一定规则的表达式,用来专门操作字符串,对字符创进行匹配,切割,替换,获取。
例如,我们需要对QQ号码格式进行检验
规则是长度6~12位 不能0开头 只能是数字,我们可以一位一位进行比较,利用parseLong进行判断,或者是用正则表达式来匹配[1-9][0-9]{4,14} 或者 [1-9]\d{4,14}
&nbs
- Oracle高级查询之OVER (PARTITION BY ..)
知了ing
oraclesql
一、rank()/dense_rank() over(partition by ...order by ...)
现在客户有这样一个需求,查询每个部门工资最高的雇员的信息,相信有一定oracle应用知识的同学都能写出下面的SQL语句:
select e.ename, e.job, e.sal, e.deptno
from scott.emp e,
(se
- Python调试
矮蛋蛋
pythonpdb
原文地址:
http://blog.csdn.net/xuyuefei1988/article/details/19399137
1、下面网上收罗的资料初学者应该够用了,但对比IBM的Python 代码调试技巧:
IBM:包括 pdb 模块、利用 PyDev 和 Eclipse 集成进行调试、PyCharm 以及 Debug 日志进行调试:
http://www.ibm.com/d
- webservice传递自定义对象时函数为空,以及boolean不对应的问题
alleni123
webservice
今天在客户端调用方法
NodeStatus status=iservice.getNodeStatus().
结果NodeStatus的属性都是null。
进行debug之后,发现服务器端返回的确实是有值的对象。
后来发现原来是因为在客户端,NodeStatus的setter全部被我删除了。
本来是因为逻辑上不需要在客户端使用setter, 结果改了之后竟然不能获取带属性值的
- java如何干掉指针,又如何巧妙的通过引用来操作指针————>说的就是java指针
百合不是茶
C语言的强大在于可以直接操作指针的地址,通过改变指针的地址指向来达到更改地址的目的,又是由于c语言的指针过于强大,初学者很难掌握, java的出现解决了c,c++中指针的问题 java将指针封装在底层,开发人员是不能够去操作指针的地址,但是可以通过引用来间接的操作:
定义一个指针p来指向a的地址(&是地址符号):
- Eclipse打不开,提示“An error has occurred.See the log file ***/.log”
bijian1013
eclipse
打开eclipse工作目录的\.metadata\.log文件,发现如下错误:
!ENTRY org.eclipse.osgi 4 0 2012-09-10 09:28:57.139
!MESSAGE Application error
!STACK 1
java.lang.NoClassDefFoundError: org/eclipse/core/resources/IContai
- spring aop实例annotation方法实现
bijian1013
javaspringAOPannotation
在spring aop实例中我们通过配置xml文件来实现AOP,这里学习使用annotation来实现,使用annotation其实就是指明具体的aspect,pointcut和advice。1.申明一个切面(用一个类来实现)在这个切面里,包括了advice和pointcut
AdviceMethods.jav
- [Velocity一]Velocity语法基础入门
bit1129
velocity
用户和开发人员参考文档
http://velocity.apache.org/engine/releases/velocity-1.7/developer-guide.html
注释
1.行级注释##
2.多行注释#* *#
变量定义
使用$开头的字符串是变量定义,例如$var1, $var2,
赋值
使用#set为变量赋值,例
- 【Kafka十一】关于Kafka的副本管理
bit1129
kafka
1. 关于request.required.acks
request.required.acks控制者Producer写请求的什么时候可以确认写成功,默认是0,
0表示即不进行确认即返回。
1表示Leader写成功即返回,此时还没有进行写数据同步到其它Follower Partition中
-1表示根据指定的最少Partition确认后才返回,这个在
Th
- lua统计nginx内部变量数据
ronin47
lua nginx 统计
server {
listen 80;
server_name photo.domain.com;
location /{set $str $uri;
content_by_lua '
local url = ngx.var.uri
local res = ngx.location.capture(
- java-11.二叉树中节点的最大距离
bylijinnan
java
import java.util.ArrayList;
import java.util.List;
public class MaxLenInBinTree {
/*
a. 1
/ \
2 3
/ \ / \
4 5 6 7
max=4 pass "root"
- Netty源码学习-ReadTimeoutHandler
bylijinnan
javanetty
ReadTimeoutHandler的实现思路:
开启一个定时任务,如果在指定时间内没有接收到消息,则抛出ReadTimeoutException
这个异常的捕获,在开发中,交给跟在ReadTimeoutHandler后面的ChannelHandler,例如
private final ChannelHandler timeoutHandler =
new ReadTim
- jquery验证上传文件样式及大小(好用)
cngolon
文件上传jquery验证
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="jquery1.8/jquery-1.8.0.
- 浏览器兼容【转】
cuishikuan
css浏览器IE
浏览器兼容问题一:不同浏览器的标签默认的外补丁和内补丁不同
问题症状:随便写几个标签,不加样式控制的情况下,各自的margin 和padding差异较大。
碰到频率:100%
解决方案:CSS里 *{margin:0;padding:0;}
备注:这个是最常见的也是最易解决的一个浏览器兼容性问题,几乎所有的CSS文件开头都会用通配符*来设
- Shell特殊变量:Shell $0, $#, $*, $@, $?, $$和命令行参数
daizj
shell$#$?特殊变量
前面已经讲到,变量名只能包含数字、字母和下划线,因为某些包含其他字符的变量有特殊含义,这样的变量被称为特殊变量。例如,$ 表示当前Shell进程的ID,即pid,看下面的代码:
$echo $$
运行结果
29949
特殊变量列表 变量 含义 $0 当前脚本的文件名 $n 传递给脚本或函数的参数。n 是一个数字,表示第几个参数。例如,第一个
- 程序设计KISS 原则-------KEEP IT SIMPLE, STUPID!
dcj3sjt126com
unix
翻到一本书,讲到编程一般原则是kiss:Keep It Simple, Stupid.对这个原则深有体会,其实不仅编程如此,而且系统架构也是如此。
KEEP IT SIMPLE, STUPID! 编写只做一件事情,并且要做好的程序;编写可以在一起工作的程序,编写处理文本流的程序,因为这是通用的接口。这就是UNIX哲学.所有的哲学真 正的浓缩为一个铁一样的定律,高明的工程师的神圣的“KISS 原
- android Activity间List传值
dcj3sjt126com
Activity
第一个Activity:
import java.util.ArrayList;import java.util.HashMap;import java.util.List;import java.util.Map;import android.app.Activity;import android.content.Intent;import android.os.Bundle;import a
- tomcat 设置java虚拟机内存
eksliang
tomcat 内存设置
转载请出自出处:http://eksliang.iteye.com/blog/2117772
http://eksliang.iteye.com/
常见的内存溢出有以下两种:
java.lang.OutOfMemoryError: PermGen space
java.lang.OutOfMemoryError: Java heap space
------------
- Android 数据库事务处理
gqdy365
android
使用SQLiteDatabase的beginTransaction()方法可以开启一个事务,程序执行到endTransaction() 方法时会检查事务的标志是否为成功,如果程序执行到endTransaction()之前调用了setTransactionSuccessful() 方法设置事务的标志为成功则提交事务,如果没有调用setTransactionSuccessful() 方法则回滚事务。事
- Java 打开浏览器
hw1287789687
打开网址open浏览器open browser打开url打开浏览器
使用java 语言如何打开浏览器呢?
我们先研究下在cmd窗口中,如何打开网址
使用IE 打开
D:\software\bin>cmd /c start iexplore http://hw1287789687.iteye.com/blog/2153709
使用火狐打开
D:\software\bin>cmd /c start firefox http://hw1287789
- ReplaceGoogleCDN:将 Google CDN 替换为国内的 Chrome 插件
justjavac
chromeGooglegoogle apichrome插件
Chrome Web Store 安装地址: https://chrome.google.com/webstore/detail/replace-google-cdn/kpampjmfiopfpkkepbllemkibefkiice
由于众所周知的原因,只需替换一个域名就可以继续使用Google提供的前端公共库了。 同样,通过script标记引用这些资源,让网站访问速度瞬间提速吧
- 进程VS.线程
m635674608
线程
资料来源:
http://www.liaoxuefeng.com/wiki/001374738125095c955c1e6d8bb493182103fac9270762a000/001397567993007df355a3394da48f0bf14960f0c78753f000 1、Apache最早就是采用多进程模式 2、IIS服务器默认采用多线程模式 3、多进程优缺点 优点:
多进程模式最大
- Linux下安装MemCached
字符串
memcached
前提准备:1. MemCached目前最新版本为:1.4.22,可以从官网下载到。2. MemCached依赖libevent,因此在安装MemCached之前需要先安装libevent。2.1 运行下面命令,查看系统是否已安装libevent。[root@SecurityCheck ~]# rpm -qa|grep libevent libevent-headers-1.4.13-4.el6.n
- java设计模式之--jdk动态代理(实现aop编程)
Supanccy2013
javaDAO设计模式AOP
与静态代理类对照的是动态代理类,动态代理类的字节码在程序运行时由Java反射机制动态生成,无需程序员手工编写它的源代码。动态代理类不仅简化了编程工作,而且提高了软件系统的可扩展性,因为Java 反射机制可以生成任意类型的动态代理类。java.lang.reflect 包中的Proxy类和InvocationHandler 接口提供了生成动态代理类的能力。
&
- Spring 4.2新特性-对java8默认方法(default method)定义Bean的支持
wiselyman
spring 4
2.1 默认方法(default method)
java8引入了一个default medthod;
用来扩展已有的接口,在对已有接口的使用不产生任何影响的情况下,添加扩展
使用default关键字
Spring 4.2支持加载在默认方法里声明的bean
2.2
将要被声明成bean的类
public class DemoService {