- 设计模式 23 访问者模式
WineMonk
#设计模式设计模式访问者模式
设计模式23创建型模式(5):工厂方法模式、抽象工厂模式、单例模式、建造者模式、原型模式结构型模式(7):适配器模式、桥接模式、组合模式、装饰者模式、外观模式、享元模式、代理模式行为型模式(11):责任链模式、命令模式、解释器模式、迭代器模式、中介者模式、备忘录模式、观察者模式、状态模式、策略模式、模板方法模式、访问者模式文章目录设计模式23访问者模式(VisitorPattern)1定义2结构3
- 今日备忘之星期六 星期天
教育行走林
——这两天干了点啥(二)为了防止落下一项工作,每天都要提前写一个今日备忘,然后晚上查一查,看看有没有落下一项工作没干,俗话说得好“好记性不如烂笔头”。周六周日比平常工作也不少,这两天干了点啥呢,先说周六吧:早自习在八五班上历史,同学们整体背书状态还不错,下课前进行了表扬;上午第一节课在后面办公室盯着给学校伙房送米、面、油、肉、蔬菜的等小贩过秤、开票,严格把好常规食品原料采购关;上午第二节课拿着宿舍
- 解决rsync 同步auth failed on module问题
w36680130
rsyncauthfailedrsync认证失败问题rsync报错
解决rsync同步authfailedonmodule问题参考文章:(1)解决rsync同步authfailedonmodule问题(2)https://www.cnblogs.com/LD-linux/p/3822162.html备忘一下。
- 这个桌面日历真不错 笔记 提醒 生日记录 打卡 翻译都有 真的太方便了!
C盘清理
实用软件笔记待办日历桌面日历电脑日历生日提醒记事本
这个桌面日历真不错笔记提醒生日记录打卡翻译都有真的太方便了!日历产品非常的多,如何选择一个合适自己的桌面日历,这个很重要,今天小编给大家介绍这个芝麻日历,一起看下它有些什么功能,是不是你需要的。1、美观,一个实用的桌面日历,不仅要界面美观,还要功能强大;芝麻日历(https://rili.zhimasoft.cn/?abiw)芝麻日历下载实用的桌面日历万年历农历查询桌面便签/备忘录芝麻日历软件官方
- iPhone备忘录清除缓存
HaloHoohoo
问题iphoneios缓存
前言离剁手只有一张图,就是:遇到问题就去找方法,找方法就要找问题源头,经过我不懈的努力,我终于找到了万恶之源——备忘录。奇怪的是我的东西并不多,而且写图文总结的备忘录,一般都会放在iCloud上,前几日我一直是觉得自己的图片放得太多才导致如此,但狂删除的举动反而让其占用的存储更大了些,我震惊并生气。遂在几次连相机都打不开的时候怒摔(伪)手机并扬言13出来就把你扔了,只是13还得等,日子还得过,微信
- 如何把小米手机便签内容云同步到iPhone XS上?
weixin_34220179
云同步指的是在云平台上以个人为中心的不同设备之间数据共享。那么小米手机与iPhoneXS都是支持用户个人云服务的设备,两款手机上备忘的内容能够实现共享吗?答案显而易见,不可以。因为两款手机系统不同,用来备忘的软件也不同,iPhonexs是以备忘录作为备忘软件,而小米用手机便签。那如何才能让小米手机与iPhoneXS手机实现备忘内容的云同步呢?可以通过能够多端云同步的敬业签来实现。敬业签云便签能够跨
- 已经导出到电脑的荣耀手机便签如何打开
匠心�
virtualenv
手机便签往往记录着我们生活和工作中容易遗忘的信息,荣耀手机又比较耐用,用个两三年没有问题。两三年的时间,足以让我们在便签上记录很多内容了。如果需要在电脑上查看手机便签内容,该如何操作?如果已经导出到电脑上的手机便签内容,该如何打开?现在这篇文章就来详细解答一下这个问题。荣耀手机自带的便签叫备忘录,如果要把备忘录的内容传输到电脑上,用华为云账号就可以了。先在手机上把备忘录内容备份到云账号,然后在百度
- Android WebView常见问题及解决方案汇总
zhengxiuchen86
解决解决方案webviewwebandroid问题
AndroidWebView常见问题及解决方案汇总参考文章:(1)AndroidWebView常见问题及解决方案汇总(2)http://www.cnblogs.com/olartan/p/5713013.html备忘一下。
- 遇到的问题及解决方法汇总
w36680130
\N
遇到的问题及解决方法汇总参考文章:(1)遇到的问题及解决方法汇总(2)https://www.cnblogs.com/hd-test/p/12160407.html(3)https://www.codeprj.com/blog/b98d971.html备忘一下。
- Flutter3备忘: GetX常用命令
mulegame
Flutterflutter
D:\flutter_app\getcreatepagesearch//创建一个firstPage在productContent目录中getcreateview:firstPageonproductContentgetcreateview:secondPageonproductContentgetcreateview:thirdPageonproductContentgetgeneratemode
- 定性分析检查表
小兵_快跑
作者自己做定性分析时,有一份检查表。老唐在作者基础上,精简整理出一份我认为更适合A股投资需求的清单,共计30条问题大家可以在「瞅地」时,作为备忘的检查清单,也可以作为企业分析的提纲,解决无处下爪的困惑。1)我是否愿意花大量时间研究这家企业和这个行业?(困难度,兴趣)2)现在公司决定聘我担任CEO,三个月后到任。现在我需要赶紧知道哪些东西?3)公司现有生意的获利,“真”钱的比例有多大?4)公司的核心
- 备忘录模式(Memento)
疯狂的阿吉
c++设计模式设计模式
目录前言一、备忘录模式总结1、模式意图2、参与者3、结构、协作、适用性及效果二、备忘录模式简单示例1、用例描述2、示例代码总结前言本周五参加了Memento(备忘录)模式研讨会,本文的目的是对这个模式的总结和分享,希望对需要学习这个设计模式的同学有所帮助。本文一共分为两个部分,第一个部分是备忘录模式的基础知识总结;第二个部分是分享备忘录模式简单示例。一、备忘录模式总结1、模式意图在不破坏封装性的前
- java设计模式---中介者模式
奔跑的扫地僧
Java设计模式java
首先我们了解下设计模式的总览:GoF提出的设计模式总共有23种,根据目的准则分类分为三大类:创建型模式,共五种:单例模式、工厂方法模式、抽象工厂模式、建造者模式、原型模式。结构型模式,共七种:适配器模式、装饰模式、代理模式、外观模式、桥接模式、组合模式、享元模式。行为型模式,共十一种:策略模式、模板方法模式、观察者模式、迭代器模式、责任链模式、命令模式、备忘录模式、状态模式、访问者模式、中介者模式
- Java设计模式(二十二)行为型- 备忘录模式 Memento Pattern(史上最全备忘录模式)与使用场景以及优缺点
刘了个刘
java设计模式java设计模式备忘录模式
备忘录模式MementoPattern备忘录模式又称为快照模式(SnapshotPattern)或令牌模式(TokenPattern),是指在不破坏封装的前提下,捕获一个对象的内部状态,并在对象之外保存这个状态,这样以后就可将该对象恢复到原先保存的状态。特征:“后悔药”备忘录模式的主要角色如下:发起人(Originator)角色:记录当前时刻的内部状态信息,提供创建备忘录和恢复备忘录数据的功能,实
- 设计模式扫荡-行为型模式-责任链、命令、迭代器、备忘录、观察者、状态、策略、模板、访问者
JunSIr_#
面向对象设计模式责任链命令观察者备忘录
设计模式扫荡-行为型模式-责任链、命令、迭代器、备忘录、观察者、状态、策略、模板、访问者文章目录设计模式扫荡-行为型模式-责任链、命令、迭代器、备忘录、观察者、状态、策略、模板、访问者责任链模式(ChainofResponsibilityPattern)命令模式(CommandPattern)迭代器模式(IteratorPattern)备忘录模式(MementoPattern)观察者模式(Obse
- 【秀娟习惯养成记—2020.10.16】
欧秀娟
2020.10.16日习惯养成第54天每到周日,除了感叹时间过得快,还是感叹时间过得快,一天天,一周周,一月月,2020转眼就将接近尾声,年初定下的目标实现了多少?这一年又有哪些成长呢?多问问自己,珍惜当下的每分每秒,努力去做好一件件小事,不求最好,但求比昨天更好。在剩下来的两个多月时间里,在食饮有节上还要注意再注意,因为一到周末休息,不经意间总会吃多。此刻打开手机备忘录,坐在电脑前,开始完成迟到
- 亚马逊AI产品Amazon Q被指出有各种问题,这将导致客户流失至微软
市象
人工智能网络科技
近日,泄露的消息显示,亚马逊的重要AI产品AmazonQ在发布初期面临不少挑战,并且存在客户转向微软Copilot的风险。这款备受期待的产品在四月份公开发布后,遇到了一系列的问题。内部备忘录显示,八月份时,一些亚马逊网络服务(AWS)的员工在内部Slack频道中表达了对AmazonQ的看法,指出该产品存在功能不足、成本较高以及难以与其他软件集成等问题。更有员工担心,这些问题可能导致客户转投微软的C
- 当代青年人格分裂图鉴
卫校一七药二
分裂,并快乐着当代年轻人真是越活越分裂了。他们一面被动接收着来自社会、长辈的正能量“谆谆教诲”,一面私下里践行着“怎么爽怎么来”的生活哲学。在正能量和丧文化的频频交锋中,他们也在不知不觉间形成了诸多种矛盾人格,我们为各位盘点了以下十种类型的年轻人,相信总有几款是你熟悉的味道:)01每逢新年或xx节点,都是他们大批出没的高峰时段,备忘录里列得满满当当的todolist和朋友圈里洋洋洒洒的“新年献词”
- 软考-常见的23种设计模式整理
ppliu600
软件架构数据仓库数据库数据挖掘
参考:23种设计模式总结设计模式可以将复用别人的解决方案。一、设计模式的分类创建型模式,共5种:单例模式、工厂方法模式、抽象工厂模式、建造者模式、原型模式。结构型模式,共7种:适配器模式、组合模式、代理模式、享元模式、外观模式、桥接模式、装饰器模式、行为型模式,共11种:观察者模式、策略模式、模板方法模式、迭代子模式、责任链模式、命令模式、备忘录模式、状态模式、访问者模式、中介者模式、解释器模式。
- 姑娘,痛苦不是财富,对痛苦的思考才是财富
进击的Juju
「我们面对同一个世界,却无法看见同一个世界。」《看见》,是知名记者和主持人柴静的一本自传性作品。第一次知道这本书,源于我读大学时新闻学导师的推荐。但其实这本书,不管是新闻从业者,还是普通读者都值得一看。书中有谈到非典、汶川地震、两会报道、北京奥运、华南虎照、征地调查等,可以说是中国社会十年变迁的备忘录。虽然都是社会性事件和调查,但柴静的文章,写得细致真诚,没有戾气,不刻意煽情,却依然直指内心。「她
- Android Fragment 学习备忘
Arms206
Android学习android学习
1.fragment的动态添加与管理,fragment生命周期在后面小节:https://www.bilibili.com/video/BV1Ng411K7YP/?p=37&share_source=copy_web&vd_source=982a7a7c05972157e8972c41b546f9e4https://www.bilibili.com/video/BV1Ng411K7YP/?p=37
- 《收获》
阿拉萝卜
你问我最近做了些什么收获如何我默然因为说不出来你看那些握在大脑皮层里的神经元那些散落在每本书的扉页每页笔记上的调皮的小清新那些被扔掉的彩色信纸上的勾勒对了还有躺在备忘录里的文字图片发自App它们要如何才能连在一起?我把生活铺成了满天星辰却抓不住任何一颗因为它们已经散漫得不想属于我
- 设计模式漫谈之备忘录模式
weixin_34362790
设计模式
最近很长时间没写博客了,其实这个博客写过一半,中间有事耽搁了,就没继续。主要是给别人做了一个小系统,及维护码云上的代码库。同居的日子也占了我很多时间。最近也是烦,欠了7W,各种烦事。所以可想写个博客静静心。在面向对象中关注的焦点是对象空间,对象与对象的联系还是通过保存引用(相当于路),来走到其空间中。在对象中是有空间的,空间里放的肯定是数据或者是命令。备忘录就是把A对象的空间数据,备份到B对象空间
- 果然复盘010
果然越来越好
果然复盘0102021-3-71今日收获①美图日更读书②关注一些阅读学习公众号,阿猫读书,杨熹文,绽放。读书美学,学习在路上。③文字记录,读书笔记。备忘录翻看到一篇去年的读书笔记,有内容有思考,现在看看居然仍然觉得有可读,果然是触发了思考。④复盘笔记,坚持写。简单的事,持久做。2今日反思①少即是多。挂在嘴上,但是学习上,还是会被精彩分享吸引。忍不住关注,结果又觉得时间不够用。②视频号很火,大家都在
- Blender纹理绘制无效的几种解决方案(备忘录01)
2301_78998594
blender
图片来源:b站:Nora仙仙仙https://www.bilibili.com/video/BV1x8411r76A/解决方案:1.1:到编辑模式下选中物体后重试;1.2(本人遇到的问题):打开面朝向模式,蓝色的物体是正常物体,红色表示面朝向相反,你画的东西都在背面全选并SHIFT+N,就可以把面朝向反过来
- Java设计模式【备忘录模式】-行为型
lianyinghhh
Java设计模式
1.介绍备忘录模式(MementoPattern)是一种行为型设计模式,允许在不破坏封装的前提下,捕获并保存一个对象的内部状态,然后可以在以后将其恢复到原先保存的状态。备忘录模式的核心思想是记录和恢复对象的状态,通常用于“撤销(undo)”操作中。备忘录模式涉及以下角色:发起人(Originator):负责创建备忘录对象来存储其内部状态,并能够从备忘录对象中恢复其状态。备忘录(Memento):存
- Java分布式ID生成解决方案
短期菜鸟
java
Java分布式ID生成解决方案参考文章:(1)Java分布式ID生成解决方案(2)https://www.cnblogs.com/hxun/p/11451629.html备忘一下。
- 一文教你如何清理 Docker 中闲置的镜像、容器和卷
DO_Community
教程技术科普docker容器运维
Docker让你可以轻松地将应用程序和服务封装进容器中,使它们可以在任何地方运行。然而,在使用Docker的过程中,很容易积累大量未使用的镜像、容器和数据卷,这些未使用的资源不仅占据输出空间,还会消耗磁盘空间。Docker提供了所有你需要的工具,通过命令行来清理你的系统。这份备忘单式指南为你提供了一些实用的命令快速参考,帮助你通过删除未使用的Docker镜像、容器和卷来释放磁盘空间,保持系统整洁。
- 【无戒学堂】走出自己,走进人生
竹音尘
鱼堂主分享会后之所思。图摘自鱼堂主分享,侵删以前听说过今日头条app,但是没有下载,也没有看过。知乎是下载了,但只关注了几次。是缘起于偶然的推荐app中才知道的创作自由app。说起来,好像是知乎中的推荐。于是,以前是间断性的。还是以日记本和备忘录为准记录生活。有了,就在上记录了。很多简友是学习的榜样。正能量,尽力向上,学到知识,涨知识。点评别人的文字,遇到心仪的故事会点评。记得刚开始进入。遇见了一
- goreplay流量重放备忘
dzl84394
go压力测试
go环境下载gohttps://studygolang.com/dl解压tar-C/usr/local-zxvfgo1.21.4.linux-amd64.tar.gz环境变量vim/etc/profileexportGOROOT=/usr/local/goexportPATH=PATH:PATH:PATH:GOROOT/binsource/etc/profile验证goversiongorepla
- 统一思想认识
永夜-极光
思想
1.统一思想认识的基础,才能有的放矢
原因:
总有一种描述事物的方式最贴近本质,最容易让人理解.
如何让教育更轻松,在于找到最适合学生的方式.
难点在于,如何模拟对方的思维基础选择合适的方式. &
- Joda Time使用笔记
bylijinnan
javajoda time
Joda Time的介绍可以参考这篇文章:
http://www.ibm.com/developerworks/cn/java/j-jodatime.html
工作中也常常用到Joda Time,为了避免每次使用都查API,记录一下常用的用法:
/**
* DateTime变化(增减)
*/
@Tes
- FileUtils API
eksliang
FileUtilsFileUtils API
转载请出自出处:http://eksliang.iteye.com/blog/2217374 一、概述
这是一个Java操作文件的常用库,是Apache对java的IO包的封装,这里面有两个非常核心的类FilenameUtils跟FileUtils,其中FilenameUtils是对文件名操作的封装;FileUtils是文件封装,开发中对文件的操作,几乎都可以在这个框架里面找到。 非常的好用。
- 各种新兴技术
不懂事的小屁孩
技术
1:gradle Gradle 是以 Groovy 语言为基础,面向Java应用为主。基于DSL(领域特定语言)语法的自动化构建工具。
现在构建系统常用到maven工具,现在有更容易上手的gradle,
搭建java环境:
http://www.ibm.com/developerworks/cn/opensource/os-cn-gradle/
搭建android环境:
http://m
- tomcat6的https双向认证
酷的飞上天空
tomcat6
1.生成服务器端证书
keytool -genkey -keyalg RSA -dname "cn=localhost,ou=sango,o=none,l=china,st=beijing,c=cn" -alias server -keypass password -keystore server.jks -storepass password -validity 36
- 托管虚拟桌面市场势不可挡
蓝儿唯美
用户还需要冗余的数据中心,dinCloud的高级副总裁兼首席营销官Ali Din指出。该公司转售一个MSP可以让用户登录并管理和提供服务的用于DaaS的云自动化控制台,提供服务或者MSP也可以自己来控制。
在某些情况下,MSP会在dinCloud的云服务上进行服务分层,如监控和补丁管理。
MSP的利润空间将根据其参与的程度而有所不同,Din说。
“我们有一些合作伙伴负责将我们推荐给客户作为个
- spring学习——xml文件的配置
a-john
spring
在Spring的学习中,对于其xml文件的配置是必不可少的。在Spring的多种装配Bean的方式中,采用XML配置也是最常见的。以下是一个简单的XML配置文件:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.or
- HDU 4342 History repeat itself 模拟
aijuans
模拟
来源:http://acm.hdu.edu.cn/showproblem.php?pid=4342
题意:首先让求第几个非平方数,然后求从1到该数之间的每个sqrt(i)的下取整的和。
思路:一个简单的模拟题目,但是由于数据范围大,需要用__int64。我们可以首先把平方数筛选出来,假如让求第n个非平方数的话,看n前面有多少个平方数,假设有x个,则第n个非平方数就是n+x。注意两种特殊情况,即
- java中最常用jar包的用途
asia007
java
java中最常用jar包的用途
jar包用途axis.jarSOAP引擎包commons-discovery-0.2.jar用来发现、查找和实现可插入式接口,提供一些一般类实例化、单件的生命周期管理的常用方法.jaxrpc.jarAxis运行所需要的组件包saaj.jar创建到端点的点到点连接的方法、创建并处理SOAP消息和附件的方法,以及接收和处理SOAP错误的方法. w
- ajax获取Struts框架中的json编码异常和Struts中的主控制器异常的解决办法
百合不是茶
jsjson编码返回异常
一:ajax获取自定义Struts框架中的json编码 出现以下 问题:
1,强制flush输出 json编码打印在首页
2, 不强制flush js会解析json 打印出来的是错误的jsp页面 却没有跳转到错误页面
3, ajax中的dataType的json 改为text 会
- JUnit使用的设计模式
bijian1013
java设计模式JUnit
JUnit源代码涉及使用了大量设计模式
1、模板方法模式(Template Method)
定义一个操作中的算法骨架,而将一些步骤延伸到子类中去,使得子类可以不改变一个算法的结构,即可重新定义该算法的某些特定步骤。这里需要复用的是算法的结构,也就是步骤,而步骤的实现可以在子类中完成。
 
- Linux常用命令(摘录)
sunjing
crondchkconfig
chkconfig --list 查看linux所有服务
chkconfig --add servicename 添加linux服务
netstat -apn | grep 8080 查看端口占用
env 查看所有环境变量
echo $JAVA_HOME 查看JAVA_HOME环境变量
安装编译器
yum install -y gcc
- 【Hadoop一】Hadoop伪集群环境搭建
bit1129
hadoop
结合网上多份文档,不断反复的修正hadoop启动和运行过程中出现的问题,终于把Hadoop2.5.2伪分布式安装起来,跑通了wordcount例子。Hadoop的安装复杂性的体现之一是,Hadoop的安装文档非常多,但是能一个文档走下来的少之又少,尤其是Hadoop不同版本的配置差异非常的大。Hadoop2.5.2于前两天发布,但是它的配置跟2.5.0,2.5.1没有分别。 &nb
- Anychart图表系列五之事件监听
白糖_
chart
创建图表事件监听非常简单:首先是通过addEventListener('监听类型',js监听方法)添加事件监听,然后在js监听方法中定义具体监听逻辑。
以钻取操作为例,当用户点击图表某一个point的时候弹出point的name和value,代码如下:
<script>
//创建AnyChart
var chart = new AnyChart();
//添加钻取操作&quo
- Web前端相关段子
braveCS
web前端
Web标准:结构、样式和行为分离
使用语义化标签
0)标签的语义:使用有良好语义的标签,能够很好地实现自我解释,方便搜索引擎理解网页结构,抓取重要内容。去样式后也会根据浏览器的默认样式很好的组织网页内容,具有很好的可读性,从而实现对特殊终端的兼容。
1)div和span是没有语义的:只是分别用作块级元素和行内元素的区域分隔符。当页面内标签无法满足设计需求时,才会适当添加div
- 编程之美-24点游戏
bylijinnan
编程之美
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Random;
import java.util.Set;
public class PointGame {
/**编程之美
- 主页面子页面传值总结
chengxuyuancsdn
总结
1、showModalDialog
returnValue是javascript中html的window对象的属性,目的是返回窗口值,当用window.showModalDialog函数打开一个IE的模式窗口时,用于返回窗口的值
主界面
var sonValue=window.showModalDialog("son.jsp");
子界面
window.retu
- [网络与经济]互联网+的含义
comsci
互联网+
互联网+后面是一个人的名字 = 网络控制系统
互联网+你的名字 = 网络个人数据库
每日提示:如果人觉得不舒服,千万不要外出到处走动,就呆在床上,玩玩手游,更不能够去开车,现在交通状况不
- oracle 创建视图 with check option
daizj
视图vieworalce
我们来看下面的例子:
create or replace view testview
as
select empno,ename from emp where ename like ‘M%’
with check option;
这里我们创建了一个视图,并使用了with check option来限制了视图。 然后我们来看一下视图包含的结果:
select * from testv
- ToastPlugin插件在cordova3.3下使用
dibov
Cordova
自己开发的Todos应用,想实现“
再按一次返回键退出程序 ”的功能,采用网上的ToastPlugins插件,发现代码或文章基本都是老版本,运行问题比较多。折腾了好久才弄好。下面吧基于cordova3.3下的ToastPlugins相关代码共享。
ToastPlugin.java
package&nbs
- C语言22个系统函数
dcj3sjt126com
cfunction
C语言系统函数一、数学函数下列函数存放在math.h头文件中Double floor(double num) 求出不大于num的最大数。Double fmod(x, y) 求整数x/y的余数。Double frexp(num, exp); double num; int *exp; 将num分为数字部分(尾数)x和 以2位的指数部分n,即num=x*2n,指数n存放在exp指向的变量中,返回x。D
- 开发一个类的流程
dcj3sjt126com
开发
本人近日根据自己的开发经验总结了一个类的开发流程。这个流程适用于单独开发的构件,并不适用于对一个项目中的系统对象开发。开发出的类可以存入私人类库,供以后复用。
以下是开发流程:
1. 明确类的功能,抽象出类的大概结构
2. 初步设想类的接口
3. 类名设计(驼峰式命名)
4. 属性设置(权限设置)
判断某些变量是否有必要作为成员属
- java 并发
shuizhaosi888
java 并发
能够写出高伸缩性的并发是一门艺术
在JAVA SE5中新增了3个包
java.util.concurrent
java.util.concurrent.atomic
java.util.concurrent.locks
在java的内存模型中,类的实例字段、静态字段和构成数组的对象元素都会被多个线程所共享,局部变量与方法参数都是线程私有的,不会被共享。
- Spring Security(11)——匿名认证
234390216
Spring SecurityROLE_ANNOYMOUS匿名
匿名认证
目录
1.1 配置
1.2 AuthenticationTrustResolver
对于匿名访问的用户,Spring Security支持为其建立一个匿名的AnonymousAuthenticat
- NODEJS项目实践0.2[ express,ajax通信...]
逐行分析JS源代码
Ajaxnodejsexpress
一、前言
通过上节学习,我们已经 ubuntu系统搭建了一个可以访问的nodejs系统,并做了nginx转发。本节原要做web端服务 及 mongodb的存取,但写着写着,web端就
- 在Struts2 的Action中怎样获取表单提交上来的多个checkbox的值
lhbthanks
javahtmlstrutscheckbox
第一种方法:获取结果String类型
在 Action 中获得的是一个 String 型数据,每一个被选中的 checkbox 的 value 被拼接在一起,每个值之间以逗号隔开(,)。
所以在 Action 中定义一个跟 checkbox 的 name 同名的属性来接收这些被选中的 checkbox 的 value 即可。
以下是实现的代码:
前台 HTML 代码:
- 003.Kafka基本概念
nweiren
hadoopkafka
Kafka基本概念:Topic、Partition、Message、Producer、Broker、Consumer。 Topic: 消息源(Message)的分类。 Partition: Topic物理上的分组,一
- Linux环境下安装JDK
roadrunners
jdklinux
1、准备工作
创建JDK的安装目录:
mkdir -p /usr/java/
下载JDK,找到适合自己系统的JDK版本进行下载:
http://www.oracle.com/technetwork/java/javase/downloads/index.html
把JDK安装包下载到/usr/java/目录,然后进行解压:
tar -zxvf jre-7
- Linux忘记root密码的解决思路
tomcat_oracle
linux
1:使用同版本的linux启动系统,chroot到忘记密码的根分区passwd改密码 2:grub启动菜单中加入init=/bin/bash进入系统,不过这时挂载的是只读分区。根据系统的分区情况进一步判断. 3: grub启动菜单中加入 single以单用户进入系统. 4:用以上方法mount到根分区把/etc/passwd中的root密码去除 例如: ro
- 跨浏览器 HTML5 postMessage 方法以及 message 事件模拟实现
xueyou
jsonpjquery框架UIhtml5
postMessage 是 HTML5 新方法,它可以实现跨域窗口之间通讯。到目前为止,只有 IE8+, Firefox 3, Opera 9, Chrome 3和 Safari 4 支持,而本篇文章主要讲述 postMessage 方法与 message 事件跨浏览器实现。postMessage 方法 JSONP 技术不一样,前者是前端擅长跨域文档数据即时通讯,后者擅长针对跨域服务端数据通讯,p