- RK3288下如何实现虚拟摄像头。
Open+
安卓androidarmlinux
提示:安卓、RK3288、虚拟摄像头文章目录前言一、v4l2loopback是什么二、ffmepg是什么三、ubuntu环境准备四、安卓源代码编译环境准备五、RK3288开发环境准备六、编译v4l2loopback。七、编译ffmepg八、编译安卓源代码九、v4l2loopback移植到RK3288上十、创建测试APP。十一、修改安卓系统相机源代码与编译。总结注意事项前言提示:由于项目技术要求,需
- 9 自研rgbd相机基于rk3566之qt框架开发rgb图像处理线程
三十度角阳光的问候
qt图像处理qt-creatorv4l2rk3566多线程
qt框架开发rgb图像处理线程rgb线程功能及处理流程1rgb线程分为如下几个功能:2rgb线程的处理流程如下:rgb线程qt程序详解1接收界面启动停止信号。2qt线程运行rgb线程程序示例1线程头文件:pthread_33d_sc2310.h2线程源文件:pthread_33d_sc2310.cpprgb线程功能及处理流程1rgb线程分为如下几个功能:1v4l2采图部分,将v4l2采图功能放到q
- TDA4VM EVM学习笔记(2):基于v4l2用USB摄像头采集图像并显示
耀眼宝玉
TDA4VM学习笔记linux
本文要实现的功能是在A72上用USB摄像头采集图像数据(格式YUYV4:2:2),然后在DSP上将YUV422格式的图像转化为RGB格式的图像,之后在Display上显示该图像数据。完整代码1.Kernel:https://download.csdn.net/download/walker_bk/877479672.Usecase:https://download.csdn.net/downloa
- RK3568平台 安卓hal3适配usb camera
嵌入式_笔记
瑞芯微microsoftwindows
一.RK安卓hal3camera框架Camerahal3在android框架中所处的位置如上图,对上,主要实现Framework一整套API接口,响应其控制命令,返回数据与控制参数结果。对下,主要是通V4l2框架实现与kernel的交互。3a控制则是通controlloop接口与camera_engine_isp交互。另外,其中一些组件或功能的实现也会调用到其他一些第三方库,如cameraBuff
- 树莓派相机tuning方法文档机翻
宇宙研究小组
数码相机物联网
相机调整工具(CTT)是一个Python程序,旨在从一组相对较小的校准图像中生成一个完全工作的相机调整JSON文件。一旦工具运行完毕,为了获得所需的图像质量,应该不需要或只需要对JSON文件进行最小的进一步调整。此外,调谐算法被设计为使用最少量的昂贵或专业设备。创建完成的相机调谐所需的过程如下。1.首先,必须编写一个功能强大的V4L2相机驱动程序(见第3章)。为了编写相机驱动程序,可以复制未校准的
- v4l2打开相机获取流demo及命令打开相机设备
屁小猪
音视频linux
/*打开设备->检查和设置设备属性->设置帧格式->设置一种输入输出方法(缓冲区管理)->循环获取数据->关闭设备。https://www.cnblogs.com/emouse/archive/2013/03/04/2943243.html*/#include#include#include#include#include#include#include#include#include#inclu
- 【20240131】USB相机(查看设备列表、打开设备)
m_Molly
笔记
USB相机采集1、v4l2查看设备列表2、查看具体设备信息3、在桌面打开USB相机1、v4l2查看设备列表打开终端,输入:v4l2-ctl--list-devicesusb设备在Webcam:Webcam栏,分别是video9和video10,下一步:确定哪一个是接入的相机2、查看具体设备信息在终端输入:v4l2-ctl--list-formats-ext--device=/dev/video9(
- 【转载】linux摄像头驱动
BC锌
linux运维服务器
Linux摄像头驱动学习第一篇,对虚拟视频驱动VirtualVideoDriver(vivid)进行测试、分析、编写。V4L2(VideoforLinuxtwo)是Linux内核中关于视频设备的内核驱动框架,为上层的访问底层的视频设备提供了统一的接口。V4L2可以支持多种设备,它可以有以下几种接口:Videocaptureinterface(视频采集接口):从摄像头等设备上获取视频数据,是V4L2
- 解决pyuvc无法读取yuv格式的问题
yuanlulu
机器学习和机器视觉pythonyuvUVC摄像头图像处理opencv
问题描述我使用pyuvc访问uvc摄像头,但是发现pyuvc只支持了MJPEG的格式和GRAY格式。我在linux下通过v4l2-ctl查看,发现摄像头本身还支持YUV的格式,但是pyuvc解析出的帧格式则没有。后面通过阅读pyuvc的代码,发现libuvc本身没有限制YUV的格式,是pyuvc限制的。修改代码后重新编译whl,重新安装就可以了。如何让pyuvc支持yuv格式要修改的内容都在uvc
- unity解码4k图片过慢,使用turbojpeg加速,使用opencl加速,使用libjpeg,使用v4l2
panda0熊猫
踩坑unityc#c语言v4l2jpeg
后记:果然贻笑大方,libjpeg也不记得哪个文章说最新版是1996年的,还煞有介事的给了一个1996年以后再没更新过的所谓官网,实际上libjpeg一直有维护和更新,支持到的最新版vs比我用的还要新,找到正确的地址轻轻松松就编译通过了。把我整篇文章都推翻了,下面不用看了。libjpeg-turbo也不要去自己编译,下载现成的好像性能更好。libjpeg下载地址:DirectoryListingo
- RK3568 android11 移植 v4l2loopback 虚拟摄像头
Y多了个想法
RockChip平台调试记录androidrk3568音视频虚拟摄像头v4l2loopback
一,v4l2loopback简介v4l2loopback是一个Linux内核模块,它允许用户创建虚拟视频设备。这种虚拟视频设备可以用于各种用途,例如将实际摄像头的视频流复制到虚拟设备上,或者用于视频流的处理和分析等。v4l2loopback的主要作用是创建一个虚拟的Video4Linux2设备,它可以接收来自其他应用程序的视频数据,并将这些数据提供给其他应用程序。一旦加载了v4l2loopback
- 音视频开发之V4L2
稚肩
音视频开发音视频
V4L2(VideoforLinux2)是Linux内核中用于视频设备的子系统,提供了统一的接口,使用户空间程序能够与各种视频设备进行通信和控制。V4L2主要用于处理视频输入设备(例如摄像头)和视频输出设备(例如显示屏等)。V4L2提供了一个统一的接口,允许用户空间程序与各种视频设备进行通信,而无需了解底层硬件的具体细节。这使得开发视频应用程序更加方便。同时V4L2支持各种不同类型的视频设备,包括
- 飞凌RZ/G2L的开发板实上的时视频编码推流设计与实现
lutherluov
音视频实时音视频arm嵌入式硬件
飞凌RZ/G2L的开发板测评--实时视频编码推流设计与实现大信(QQ:8125036)在完成RZ/G2L板上视频采集的试用测试基础上,逐渐熟悉了RZ/G2L开发板的SDK,在研究过它的音视频硬件与软件包后,想进一步利用该开发板做音视频的深度的应用开发。前面已经实现了在开饭上采集视频,采集视频是视频开发的基础,基本熟悉了板子支持V4L2软件工具,其实V4l2还能做很多其它的功能。同样还有很多其它的音
- Jeson nano--安装使用摄像头csi/usb
小豆包的小朋友0217
linux
Jesonnano--安装使用摄像头一、安装使用摄像头二、vscode调用摄像头总结一、安装使用摄像头列出与视频设备相关的设备文件ls/dev/video*显示与/dev/video0设备关联的摄像头支持的所有格式及其详细信息。可以查看输出以了解所支持的分辨率、帧率和像素格式等信息。请确保将/dev/video0替换为实际摄像头设备的路径。sudoaptinstallv4l-utilsv4l2-c
- V4L2-core(基于linux5.4.258)
东楠爱学习
linux
目录V4L2目录结构包含文件及其功能每个文件中函数解析tuner-core.cv4l2-async.c结构体structv4l2_async_notifierstructv4l2_async_subdevstructv4l2_async_notifier_operations函数v4l2-clk.cv4l2-common.cv4l2-compat-ioctl32.c函数解析v4l2-ctrls.c
- python opencv程序如何在arm上运行_OpenCV ffmpeg移植到ARM平台
渔舟晚之
python
前一篇写了如何在移植OpenCV库到ARM平台上,本来我只是用到OpenCV的打开USB摄像头获取图像到IplImage结构中,这用到了V4L2的底层函数。然后进行视频图像的帧处理。那么如何用OpenCV读写ARM板上的视频文件,并进行视频处理呢?这该又将如何移植呢?本文引用地址:http://www.eepw.com.cn/article/201611/317669.htm这个就必须要装x264
- c 有错
乐山劲松
c语言算法开发语言
#include#include#include#include#include#include#include#include//v4l2头文件#include#include#include#include#definePI3.1415926#definepic_width80#definepic_heigth48#definefilename"/home/wjs/Pictures/sampl
- Nvidia Jetson deepstream配置多路RTSP视频源
君宝bob
深度学习nvidia
DeepStream实现多RTSP源DeepStream实现多RTSP源,其实很简单NvidiaJetsondeepstream使用DeepStream实现多RTSP源,其实很简单[source0]enable=1#Type-1=CameraV4L22=URI3=MultiURI4=RTSPtype=3uri=rtsp://admin:
[email protected]:554num-
- Linux-v4l2框架
Paper_Love
Linuxlinux
框架图从上图不难看出,v4l2_device作为顶层管理者,一方面通过嵌入到一个video_device中,暴露video设备节点给用户空间进行控制;另一方面,video_device内部会创建一个media_entity作为在mediacontroller中的抽象体,被加入到media_device中的entities链表中。此外,为了保持对所从属子设备的控制,内部还维护了一个挂载了所有v4l2
- 内核关于色域空间的枚举
CheungChunChiu
linuxandroidgithubgit运维
内核关于色域空间的枚举/include/uapi/linux/videodev2.hV4L2_COLORSPACE_DEFAULT:默认颜色空间,由驱动程序自动确定,仅适用于视频捕获。V4L2_COLORSPACE_SMPTE170M:SMPTE170M颜色空间,用于广播NTSC/PALSDTV。V4L2_COLORSPACE_SMPTE240M:过时的SMPTE240MHDTV标准,已被Rec.
- T527 camera: AHD摄像头转MIPI
icy、泡芙
Android人工智能
一、AHD常见的摄像头接口一般有MIPI、USB、DVP等等,但是MIPI摄像头受限于高速信号的传输距离问题,导致走线不能太长,这样在安防监控领域、车载等领域,使用就很受限,因此会引入AHD,目的就是提高了传输的距离。AHD是模拟摄像头,因此需要AD转换芯片来转换,输出数字信号给到主控进行接收。二、AHD转MIPI调试同样的转接芯片的驱动也是基于V4l2框架的,本次调试的是TP系列的TP2815。
- UVC摄像头视频流原理解析
技术求索者
linux操作系统android驱动程序uvc
1.UVC摄像i头从插入到加载驱动,看我前面的文章分析过程2.UVC摄像头驱动加载时在kernel\drivers\media\usb\uvc\uvc_driver.cuvc_probe->函数中完成的整个流程如下uvc_register_chains->uvc_register_terms->uvc_register_video->vdev->v4l2_dev=&dev->vdev;vdev->
- opencv 读取YUYV摄像头原始数据
HeroYDHY
opencvpythonyuyvyuv422摄像头原始数据
最近使用python+opencv进行获取摄像头原始数据,摄像头是yuyv格式的,进行设置cap.set(cv2.CAP_PROP_CONVERT_RGB,0)即可,但是这种方法在windows下可能不起作用,需要在linux下并且支持v4l2才行,如果还是不起作用可以试下下面的方式cap.set(cv2.CAP_PROP_FOURCC,cv2.VideoWriter.fourcc('Y','U'
- ROS USB_cam功能包
K-Liberty
开发语言机器人c++
ROS中的USB_cam功能包是一个用于与USB摄像头交互的软件包。这个软件包可以订阅摄像头的图像话题,并将其发布到ROS中,从而允许用户在ROS系统中使用USB摄像头。功能:USB_cam功能包主要用于获取USB摄像头的图像数据。它通过调用V4L2(VideoforLinux2)接口来与摄像头硬件通信。USB_cam发布图像数据为ROS的标准消息类型sensor_msgs/Image,这使得图像
- ROS 传感器—相机的介绍
K-Liberty
计算机视觉人工智能机器人
在ROS中,相机是一种常见的传感器设备,用于获取视觉信息。ROS支持多种类型的相机,并提供了统一的接口和工具来处理相机数据,使得开发者可以方便地在不同硬件平台上实现视觉功能。在ROS中,可以通过usb_cam、camera_driver等包来驱动这些相机。默认情况下,相机设备通常挂载在/dev/videoX中(X为数字,如/dev/video0),可通过V4L2(VideoforLinux2)接口
- linux下编译出现multiple definition of 错误
ComputerInBook
c++重复定义linux编译
这个错误从表面上看,是出现了重复定义类或函数的情况,大部分都是确实是重复定义了,但是出现这样的重复定义的原因,即是不太容易获知,我这次出现这样错误,是由于Makefile和操作不当引起的错误。我是做了这样的操作后出现这种情况的,或许对类似的情况有所启发:1.编写Makefile文件,正常编译没有问题,编译生成了以下2个文件:client.ov4l2-camara.o2.这个时候,我把源文件改了个名
- Linux系统驱动要如何学习
内核笔记
linux运维服务器
1.你将获得:快速上手Linux操作系统;掌握Linux内核工作原理;掌握Linux内核调试手段;掌握复杂驱动:USB、PCIE、V4L2等这门课程旨在为你打开Linux内核驱动的大门,让你在探索Linux内核的旅程中获得前所未有的收获和体验!2.课程介绍《Linux内核驱动从入门到精通》是通往探索Linux核心运作机制的精彩之旅!我将深入剖析Linux操作系统的引擎,让你洞悉Linux系统的奥秘
- openharmony camera 模块学习
TARDIS_2020
openharmony学习harmonyosrisc-vubuntuc语言
openharmonycamera模块学习学习目的学习记录缩写解释HDI:hardwaredeviceinterface(硬件设备接口)HDF:hardwaredriverfoundation(硬件驱动层)OSAL:operationsystemabstractionlayer(操作系统适配层)V4L2:videoforlinux2(linux中关于视频设备的内核驱动)一、概述二、CAMERAHD
- 【genius_platform软件平台开发】第六十二讲:Linux系统之V4L2视频驱动-VIDIOC_STREAMON开启视频流
隨意的風
linux系统V4L2视频驱动3VIDIOC_STREAMONV4L2
喜欢的可以加微信群:VIDIOC_STREAMON开启视频流喜欢的可以加微信群:1.概述2.应用层3.驱动层3.1vb2_streamon函数3.2vb2_core_streamon函数3.3vb2_start_streaming函数3.4__enqueue_in_driver函数3.5vb2_buffer_done函数1.概述主要就是让设备启动视频流,驱动中不停的获取视频数据,queued_li
- linux下使用v4l2-ctl查看摄像头数据
yuanlulu
linuxv4l2图像处理图像编码
安装我有一个支持uvc的相机,通过USB线和我的linux开发机连起来了。为了查看它的信息,我上网发现有v4l-utils这个包。这个包的工具可以让我在写代码前就对相机的参数有个大概了解。sudoaptinstallv4l-utils安装成功后系统上多出了一下工具:v4l2-compliancev4l2-ctlv4l2-dbgv4l2-sysfs-path我主要是用v4l2-ctl来查看摄像头的信
- 统一思想认识
永夜-极光
思想
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