- 英伟达(NVIDIA)B200架构解读
weixin_41205263
芯际争霸GPGPU架构gpu算力人工智能硬件架构
H100芯片是一款高性能AI芯片,其中的TransformerEngine是专门用于加速Transformer模型计算的核心部件。Transformer模型是一种自然语言处理(NLP)模型,广泛应用于机器翻译、文本生成等任务。TransformerEngine的电路设计原理主要包括以下几个方面:
- 使用vllIm部署大语言模型
添砖JAVA的小墨
机器学习
使用vllm部署大语言模型一般需要以下步骤:一、准备工作1.系统要求-操作系统:常见的Linux发行版(如Ubuntu、CentOS)或Windows(通过WSL)。-GPU支持:NVIDIAGPU并安装了适当的驱动程序。-足够的内存和存储空间。2.安装依赖-Python3.8及以上版本。-CUDA工具包(根据GPU型号选择合适的版本)。二、安装vllm1.创建虚拟环境(推荐)-使用Conda:c
- 人工智能-GPU版本机器学习、深度学习模型安装
bw876720687
人工智能机器学习深度学习
背景1、在有Nvidia-GPU的情况下模型使用cuda加速计算,但是很有多模型的GPU和CPU版本安装方式不同,如何安装lgb\cat\xgb.2、为了让代码有普适性,如何自适应环境当中的设备进行CPU或者GPU的调整?解决方案问题一:安装GPU版本的LightGBMLightGBM默认不会安装GPU支持版,需要手动编译以启用GPU。以下是在Linux和Windows上编译GPU版本LightG
- 黄仁勋最新演讲全文:我忍受的一切挫折、痛苦和磨难淬炼了超能力|钛媒体AGI | 最新快讯...
深夜冒泡
媒体agi人工智能
“我们彻底改变了公司。我们也彻底改变了计算。”英伟达创始人、CEO黄仁勋(JensenHuang)钛媒体App获悉,当地时间6月15日,英伟达创始人、CEO黄仁勋(JensenHuang)参加美国加州理工学院第130届毕业典礼,并发表了一段题为“迎难而上抓住机会“(EmbraceChallengesandSeizeOpportunities)的主题演讲。黄仁勋畅谈了英伟达(NVIDIA)自1993
- 黄仁勋的思维世界:Nvidia的AI和游戏之王
AI小夏
人工智能游戏百度
在这个行业中,黄仁勋是一位举足轻重的人物,也是Nvidia的联合创始人之一。他因在创新方面的强大而富有远见的领导力而受到认可。从卑微的起点到领导一家改变了电子游戏和人工智能面貌的公司,黄仁勋的故事启迪了人们的雄心、韧性以及如何超前思考。早年生活和职业生涯黄仁勋出生于台湾,九岁时移居美国。在成长过程中,他的生活充满了辛劳和决心,这些品质后来成为他职业生涯的标志。随后,黄仁勋就读于俄勒冈州立大学,攻读
- 缩小模拟与现实之间的差距:使用 NVIDIA Isaac Lab 训练 Spot 四足动物运动
AI人工智能集结号
人工智能
目录在IsaacLab中训练四足动物的运动能力目标观察和行动空间域随机化网络架构和RL算法细节先决条件用法训练策略执行训练好的策略结果使用JetsonOrin在Spot上部署经过训练的RL策略先决条件JetsonOrin上的硬件和网络设置Jetson上的软件设置运行策略开始开发您的自定义应用程序由于涉及复杂的动力学,为四足动物开发有效的运动策略对机器人技术提出了重大挑战。训练四足动物在现实世界中上
- Ubuntu 开机出现 recovering journal 无法进入图形界面解决流程(不通用,自用)
Artintel
学习ubuntu
远程连接进入命令行:rm-rf/etc/X11/xorg.confcp/etc/X11/xorg.conf.failsafe/etc/X11/xorg.confsudoservicelightdmstopsudoapt-getremovenvidia*cdjohn/qudong+cuda9.0\+\cudnn/sudochmoda+xnv.runsudo./nv.run-no-x-check-no
- 华为云端畅玩《黑神话:悟空》
单车~
算法数据结构华为云服务器运维
在华为云端畅玩《黑神话:悟空》,其电脑配置最低要求如下28:操作系统:需要64位处理器和操作系统,如Windows1064-bit。处理器:IntelCorei5-8400/AMDRyzen51600。内存:16GBRAM。显卡:NVIDIAGeForceGTX10606GB/AMDRadeonRX5808GB。DirectX版本:11。存储空间:需要130GB可用空间,推荐使用固态硬盘(SSD)
- CentOS 7 上安装 NVIDIA Docker
ManchiBB
centosdockerlinux
在CentOS7上安装NVIDIADocker需要几个步骤。以下是安装NVIDIADocker的基本步骤:安装NVIDIA驱动:确保您的系统已经安装了NVIDIA驱动。如果没有,请先安装驱动。添加NVIDIADocker仓库:添加NVIDIADocker的官方仓库,以便安装最新版本的NVIDIADocker。distribution=$(./etc/os-release;echo$ID$VERSI
- windows11 wsl2 ubuntu20.04安装vision mamba并进行测试
一剑斩蛟龙
人工智能深度学习图像处理计算机视觉python机器学习pytorch
windows11wsl2ubuntu20.04安装visionmamba安装流程使用cifar-100测试安装成功安装流程visionmamba安装了半天才跑通,记录一下流程在wsl上安装cudawgethttps://developer.download.nvidia.cn/compute/cuda/11.8.0/local_installers/cuda_11.8.0_520.61.05_l
- 深度学习部署:Triton(Triton inference server)【旧称:TensorRT serving,专门针对TensorRT设计的服务器框架,后来变为Triton,支持其他推理后端】
u013250861
#LLM/部署深度学习人工智能
triton作为一个NVIDIA开源的商用级别的服务框架,个人认为很好用而且很稳定,API接口的变化也不大,我从2020年的20.06切换到2022年的22.06,两个大版本切换,一些涉及到代码的工程变动很少,稍微修改修改就可以直接复用,很方便。本系列讲解的版本也是基于22.06。本系列讲解重点是结合实际的应用场景以及源码分析,以及写一些triton周边的插件、集成等。非速成,适合同样喜欢深入的小
- OSError: libnccl.so.2: cannot open shared object file: No such file or directory
王小葱鸭
python
linux安装完torch或者tensorflow的gpu版本,安装没问题,但是import就有问题,报错OSError:libnccl.so.2:cannotopensharedobjectfile:Nosuchfileordirectory,是缺少nvidia的ncll,下面介绍解决方法:1安装ncll下载链接https://developer.nvidia.com/nccl/nccl-dow
- 活动|华院计算宣晓华受邀出席“AI引领新工业革命”大会,探讨全球科技的最新趋势
华院计算
人工智能
8月31日,“AI引领新工业革命”大会于上海图书馆圆满落幕。本次大会由TAA校联会和台协科创工委会联合主办,得到上海市台办、上海市台联、康师傅的大力支持。大会邀请了NVIDIA全球副总裁、亚太区企业营销负责人刘念宁,元禾厚望资本创始合伙人潘海东,芯原微电子董事长兼总裁戴伟民及华院计算技术(上海)股份有限公司(以下简称“华院计算”)创始人、董事长宣晓华分别就各自领域的最新动态与未来趋势展开精彩分享,
- 电脑驱动分类
黄卷青灯77
电脑驱动分类
电脑驱动程序(驱动程序)是操作系统与硬件设备之间的桥梁,用于使操作系统能够识别并与硬件设备进行通信。以下是常见的驱动分类:1.设备驱动程序显示驱动程序:控制显卡和显示器的显示功能,负责图形渲染和屏幕显示。示例:NVIDIA、AMD显示驱动程序。打印机驱动程序:允许操作系统与打印机通信,控制打印任务。示例:HP、Canon打印机驱动程序。声卡驱动程序:管理音频输入和输出,与声卡硬件交互。示例:Rea
- 合约跟单(对接火币/币安/OK/欧易OKEX交易所)系统开发
2301_78234743
java
合约跟单(对接火币/币安/OK/欧易OKEX交易所)系统开发合约跟单开发是指开发一个系统,让用户能够根据专业交易者的交易策略自动执行交易。以下是合约跟单系统开发NvidiaSONiC测开面经已octimeline一面3.111.英文自我介绍2.英文介绍项目3.ARP协议已知目的ip获数马笔试全a没面正常嘛看群里都在面试了,焦虑[牛泪]在boss投的还查不到状态短剧对接广告联盟系统开发详情玩法/案例
- 机器人仿真常用软件简介
三十度角阳光的问候
机器人
目录1ros-gazebo2agxunity3matlab-robotstudio-simscape4rviz+box2d,2d仿真方案5nvidia-issac-sim/gym6mujaco7pybullet结合工作经验简单介绍下目前比较常用的机器人仿真软件。1ros-gazebo基于ros系统,ros安装包自带的插件,用urdf文件描述刚体属性和连接关系,3d物理引擎,简单易用,上手快可以与r
- apex安装,解决ModuleNotFoundError: No module named ‘packaging‘ error: subprocess-exited-with-error
pingtaner1105
pythonpip
在anaconda上安装apex:安装步骤:gitclonehttps://github.com/NVIDIA/apexcdapexpipinstall-v--no-cache-dir--global-option="--pyprof"--global-option="--cpp_ext"--global-option="--cuda_ext"./报错:ModuleNotFoundError:No
- 【FFMPEG】Install FFmpeg CUDA gltransition in Ubuntu
RockWang.
环境配置ffmpegubuntulinux
因为比较复杂,记录一下自己安装过程,方便后续查找,所有都是在docker环境安装cuda11.7的**ffmpeg4.2.2nv-codec-headers-9.1.23.3**手动下载安装吧https://github.com/aperim/docker-nvidia-cuda-ffmpeg/blob/v0.1.10/ffmpeg/Dockerfile最好手动一个一个安装,错误跳过,后面报错再说
- 常见大模型框架
AI小夜
ai
生成对抗网络(GAN)类似框架StyleGAN(及其变体StyleGAN2和StyleGAN3):开发者:NVIDIA特点:能够生成极高质量的图像,广泛应用于人脸生成、艺术创作等领域。BigGAN:开发者:DeepMind特点:在大规模数据集上训练的高质量图像生成模型,特别适用于高分辨率图像生成。CycleGAN:特点:用于图像到图像的转换任务,如风格迁移,无需成对的训练数据。Pix2Pix:特点
- 环境安装-1:Python3.8+CUDA11.6.1+cuDNN8.6+Tensorflow-gpu2.6.1
w坐看云起时
环境安装tensorflowpython人工智能
环境配置建议多看几个别人的安装过程的图文,不要着急,慢慢来,我们肯定行,加油!一、知识储备1.CUDACUDA是显卡厂商NVIDIA推出的运算平台。CUDA™是一种由NVIDIA推出的通用并行计算架构,该架构使GPU能够解决复杂的计算问题。(来自百度词条)2.cuDNNNVIDIACUDA深度神经网络库(cuDNN)是一个GPU加速的深度神经网络基元库,能够以高度优化的方式实现标准例程(如前向和反
- ffmpeg+nvidia 编码错误
嵌入梦想
工具视频编解码
ffmpegversiongit-2021-12-31-6b7e4deCopyright(c)2000-2021theFFmpegdevelopersbuiltwithgcc7(Ubuntu7.5.0-3ubuntu1~18.04)configuration:--pkg-config-flags=--static--extra-libs='-lpthread-lm'--ld=g++--enable
- Nvidia GPU benchmark压力测试工具
花花少年
运维NvidiabenchmarkGPUgpu_burn
一、参考资料使用Pytorch测试cuda设备的性能(单卡或多卡并行)GPU:使用gpu-burn压测GPU二、GPU压力测试方法1.PyTorch方式使用torch.ones测试CUDA设备。importtorchimporttimedefcuda_benchmark(device_id,N=1000000):#指定要使用的显卡设备torch.cuda.set_device(device_id)
- Linux 编译 qtav,QtAV 1.3.3 发布,跨平台音视频播放库
丶本心灬
Linux编译qtav
QtAV1.3.3发布-支持调用NVIDIA的cuvid库进行CUDA硬解。支持平台:windows,linux。(是linux上第一个支持cuda硬解的么?)。有些视频播放会抖动,目前原因还不清楚。4k硬解画面貌似有点花,效果不如lavfilters好。-OpenGL和OpenGLES2支持16-bit的YUV渲染,包括9,10,12,14,16bit的little/bigendian的yuv。
- Ubuntu下安装CUDA和cuDNN
_Mallow_
ubuntulinux
Ubuntu下安装CUDA和cuDNNCUDA1.查看显卡是否支持CUDA网址https://developer.nvidia.com/cuda-gpus。2.CUDA版本选择查看ubuntu版本是否对应要下载的CUDA,比如我选择的是11.7,对应CUDATOOLKITDOCUMENTION。在systemrequirements中查看版本,在pre-installationoactions有所
- 【debug】dpkg: error processing archive...Invalid cross-device link
李加号pluuuus
debugssh连接人工智能
更新系统驱动后,sudoaptinstall时出现:Thefollowingpackageshaveunmetdependencies:nvidia-dkms-535:Depends:nvidia-firmware-535-535.183.01butitisnotgoingtobeinstallednvidia-driver-535:Depends:libnvidia-compute-535(=5
- NVIDIA NCCL 源码学习(八)- 数据通信链路transport的建立
KIDGINBROOK
ncclncclgpucuda
上节以ringGraph为例介绍了机器间channel的连接过程,现在环里每个rank都知道了从哪个rank接收数据以及将数据发送给哪个rank,本节具体介绍下P2P和rdmaNET场景下数据通信链路的建立过程。上节说到nccl通过ncclTransportP2pSetup完成了数据通信链路的建立,还是以上节两机十六卡的环为例:第一台机器的环:graph->intra:GPU/0GPU/7GPU/
- 支持nvidia显卡硬件加速的ffmpeg库编译
wjsiou123
ffmpeg
前提是安装了cuda#安装nvidia-codec-headergitclonehttps://github.com/FFmpeg/nv-codec-headers.gitcdnv-codec-headers/sudomakeinstall#安装必要库sudoaptinstallbuild-essentialyasmcmakelibtoollibc6libc6-devunzipwgetlibnum
- 使用Dockerfile构建一个包含NVIDIA的PyTorch和Detectron2的镜像
fydw_715
Detectron2pytorch人工智能python
查看Dockerfile以下是详细的解释:#使用更具体的标记来固定基础镜像版本,确保环境一致性FROMnvcr.io/nvidia/pytorch:23.01-py3#设置工作目录和环境变量WORKDIR/rootENVDETECTRON2_PATH/root/detectron2#复制并安装Detectron2COPYdetectron2$DETECTRON2_PATHRUNpipinstall
- windows的vscode配置cuda编码环境
小马敲马
c++vscodegpu算力
windows的vscode配置cuda编码环境配置过程1下载vscode2安装NVIDIACUDAToolkit3配置环境变量4创建cuda项目5运行6bug6.1visualstudio的版本问题6.2环境变量问题6.3其他问题1下载vscode完成vscode下载安装后,依次点击左下角的“设置”,“配置文件”,“创建配置文件”,然后点击“创建“。(这里是为了让cuda的编程环境能够与其他项目
- 【Ubuntu20.04】配置深度学习环境
糊涂懿
深度学习人工智能
参考Ubuntu20.04配置深度学习环境(全网最细最全)NVIDIA显卡驱动安装安装CUDA通过终端nvidia-smi查看自己能安装的最高CUDA版本,在官方网址下载需要的版本。安装cuDNN在官方网址选择适配于自己安装的CUDA版本的cuDNN安装Anaconda(借用一下这张图)InstallerType那里一定要选择第三个runfile,可以选择不再安装NVIDIA驱动了,最后一个初始化
- Java实现的简单双向Map,支持重复Value
superlxw1234
java双向map
关键字:Java双向Map、DualHashBidiMap
有个需求,需要根据即时修改Map结构中的Value值,比如,将Map中所有value=V1的记录改成value=V2,key保持不变。
数据量比较大,遍历Map性能太差,这就需要根据Value先找到Key,然后去修改。
即:既要根据Key找Value,又要根据Value
- PL/SQL触发器基础及例子
百合不是茶
oracle数据库触发器PL/SQL编程
触发器的简介;
触发器的定义就是说某个条件成立的时候,触发器里面所定义的语句就会被自动的执行。因此触发器不需要人为的去调用,也不能调用。触发器和过程函数类似 过程函数必须要调用,
一个表中最多只能有12个触发器类型的,触发器和过程函数相似 触发器不需要调用直接执行,
触发时间:指明触发器何时执行,该值可取:
before:表示在数据库动作之前触发
- [时空与探索]穿越时空的一些问题
comsci
问题
我们还没有进行过任何数学形式上的证明,仅仅是一个猜想.....
这个猜想就是; 任何有质量的物体(哪怕只有一微克)都不可能穿越时空,该物体强行穿越时空的时候,物体的质量会与时空粒子产生反应,物体会变成暗物质,也就是说,任何物体穿越时空会变成暗物质..(暗物质就我的理
- easy ui datagrid上移下移一行
商人shang
js上移下移easyuidatagrid
/**
* 向上移动一行
*
* @param dg
* @param row
*/
function moveupRow(dg, row) {
var datagrid = $(dg);
var index = datagrid.datagrid("getRowIndex", row);
if (isFirstRow(dg, row)) {
- Java反射
oloz
反射
本人菜鸟,今天恰好有时间,写写博客,总结复习一下java反射方面的知识,欢迎大家探讨交流学习指教
首先看看java中的Class
package demo;
public class ClassTest {
/*先了解java中的Class*/
public static void main(String[] args) {
//任何一个类都
- springMVC 使用JSR-303 Validation验证
杨白白
springmvc
JSR-303是一个数据验证的规范,但是spring并没有对其进行实现,Hibernate Validator是实现了这一规范的,通过此这个实现来讲SpringMVC对JSR-303的支持。
JSR-303的校验是基于注解的,首先要把这些注解标记在需要验证的实体类的属性上或是其对应的get方法上。
登录需要验证类
public class Login {
@NotEmpty
- log4j
香水浓
log4j
log4j.rootCategory=DEBUG, STDOUT, DAILYFILE, HTML, DATABASE
#log4j.rootCategory=DEBUG, STDOUT, DAILYFILE, ROLLINGFILE, HTML
#console
log4j.appender.STDOUT=org.apache.log4j.ConsoleAppender
log4
- 使用ajax和history.pushState无刷新改变页面URL
agevs
jquery框架Ajaxhtml5chrome
表现
如果你使用chrome或者firefox等浏览器访问本博客、github.com、plus.google.com等网站时,细心的你会发现页面之间的点击是通过ajax异步请求的,同时页面的URL发生了了改变。并且能够很好的支持浏览器前进和后退。
是什么有这么强大的功能呢?
HTML5里引用了新的API,history.pushState和history.replaceState,就是通过
- centos中文乱码
AILIKES
centosOSssh
一、CentOS系统访问 g.cn ,发现中文乱码。
于是用以前的方式:yum -y install fonts-chinese
CentOS系统安装后,还是不能显示中文字体。我使用 gedit 编辑源码,其中文注释也为乱码。
后来,终于找到以下方法可以解决,需要两个中文支持的包:
fonts-chinese-3.02-12.
- 触发器
baalwolf
触发器
触发器(trigger):监视某种情况,并触发某种操作。
触发器创建语法四要素:1.监视地点(table) 2.监视事件(insert/update/delete) 3.触发时间(after/before) 4.触发事件(insert/update/delete)
语法:
create trigger triggerName
after/before 
- JS正则表达式的i m g
bijian1013
JavaScript正则表达式
g:表示全局(global)模式,即模式将被应用于所有字符串,而非在发现第一个匹配项时立即停止。 i:表示不区分大小写(case-insensitive)模式,即在确定匹配项时忽略模式与字符串的大小写。 m:表示
- HTML5模式和Hashbang模式
bijian1013
JavaScriptAngularJSHashbang模式HTML5模式
我们可以用$locationProvider来配置$location服务(可以采用注入的方式,就像AngularJS中其他所有东西一样)。这里provider的两个参数很有意思,介绍如下。
html5Mode
一个布尔值,标识$location服务是否运行在HTML5模式下。
ha
- [Maven学习笔记六]Maven生命周期
bit1129
maven
从mvn test的输出开始说起
当我们在user-core中执行mvn test时,执行的输出如下:
/software/devsoftware/jdk1.7.0_55/bin/java -Dmaven.home=/software/devsoftware/apache-maven-3.2.1 -Dclassworlds.conf=/software/devs
- 【Hadoop七】基于Yarn的Hadoop Map Reduce容错
bit1129
hadoop
运行于Yarn的Map Reduce作业,可能发生失败的点包括
Task Failure
Application Master Failure
Node Manager Failure
Resource Manager Failure
1. Task Failure
任务执行过程中产生的异常和JVM的意外终止会汇报给Application Master。僵死的任务也会被A
- 记一次数据推送的异常解决端口解决
ronin47
记一次数据推送的异常解决
需求:从db获取数据然后推送到B
程序开发完成,上jboss,刚开始报了很多错,逐一解决,可最后显示连接不到数据库。机房的同事说可以ping 通。
自已画了个图,逐一排除,把linux 防火墙 和 setenforce 设置最低。
service iptables stop
- 巧用视错觉-UI更有趣
brotherlamp
UIui视频ui教程ui自学ui资料
我们每个人在生活中都曾感受过视错觉(optical illusion)的魅力。
视错觉现象是双眼跟我们开的一个玩笑,而我们往往还心甘情愿地接受我们看到的假象。其实不止如此,视觉错现象的背后还有一个重要的科学原理——格式塔原理。
格式塔原理解释了人们如何以视觉方式感觉物体,以及图像的结构,视角,大小等要素是如何影响我们的视觉的。
在下面这篇文章中,我们首先会简单介绍一下格式塔原理中的基本概念,
- 线段树-poj1177-N个矩形求边长(离散化+扫描线)
bylijinnan
数据结构算法线段树
package com.ljn.base;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Set;
import java.util.TreeSet;
/**
* POJ 1177 (线段树+离散化+扫描线),题目链接为http://poj.org/problem?id=1177
- HTTP协议详解
chicony
http协议
引言
- Scala设计模式
chenchao051
设计模式scala
Scala设计模式
我的话: 在国外网站上看到一篇文章,里面详细描述了很多设计模式,并且用Java及Scala两种语言描述,清晰的让我们看到各种常规的设计模式,在Scala中是如何在语言特性层面直接支持的。基于文章很nice,我利用今天的空闲时间将其翻译,希望大家能一起学习,讨论。翻译
- 安装mysql
daizj
mysql安装
安装mysql
(1)删除linux上已经安装的mysql相关库信息。rpm -e xxxxxxx --nodeps (强制删除)
执行命令rpm -qa |grep mysql 检查是否删除干净
(2)执行命令 rpm -i MySQL-server-5.5.31-2.el
- HTTP状态码大全
dcj3sjt126com
http状态码
完整的 HTTP 1.1规范说明书来自于RFC 2616,你可以在http://www.talentdigger.cn/home/link.php?url=d3d3LnJmYy1lZGl0b3Iub3JnLw%3D%3D在线查阅。HTTP 1.1的状态码被标记为新特性,因为许多浏览器只支持 HTTP 1.0。你应只把状态码发送给支持 HTTP 1.1的客户端,支持协议版本可以通过调用request
- asihttprequest上传图片
dcj3sjt126com
ASIHTTPRequest
NSURL *url =@"yourURL";
ASIFormDataRequest*currentRequest =[ASIFormDataRequest requestWithURL:url];
[currentRequest setPostFormat:ASIMultipartFormDataPostFormat];[currentRequest se
- C语言中,关键字static的作用
e200702084
C++cC#
在C语言中,关键字static有三个明显的作用:
1)在函数体,局部的static变量。生存期为程序的整个生命周期,(它存活多长时间);作用域却在函数体内(它在什么地方能被访问(空间))。
一个被声明为静态的变量在这一函数被调用过程中维持其值不变。因为它分配在静态存储区,函数调用结束后并不释放单元,但是在其它的作用域的无法访问。当再次调用这个函数时,这个局部的静态变量还存活,而且用在它的访
- win7/8使用curl
geeksun
win7
1. WIN7/8下要使用curl,需要下载curl-7.20.0-win64-ssl-sspi.zip和Win64OpenSSL_Light-1_0_2d.exe。 下载地址:
http://curl.haxx.se/download.html 请选择不带SSL的版本,否则还需要安装SSL的支持包 2. 可以给Windows增加c
- Creating a Shared Repository; Users Sharing The Repository
hongtoushizi
git
转载自:
http://www.gitguys.com/topics/creating-a-shared-repository-users-sharing-the-repository/ Commands discussed in this section:
git init –bare
git clone
git remote
git pull
git p
- Java实现字符串反转的8种或9种方法
Josh_Persistence
异或反转递归反转二分交换反转java字符串反转栈反转
注:对于第7种使用异或的方式来实现字符串的反转,如果不太看得明白的,可以参照另一篇博客:
http://josh-persistence.iteye.com/blog/2205768
/**
*
*/
package com.wsheng.aggregator.algorithm.string;
import java.util.Stack;
/**
- 代码实现任意容量倒水问题
home198979
PHP算法倒水
形象化设计模式实战 HELLO!架构 redis命令源码解析
倒水问题:有两个杯子,一个A升,一个B升,水有无限多,现要求利用这两杯子装C
- Druid datasource
zhb8015
druid
推荐大家使用数据库连接池 DruidDataSource. http://code.alibabatech.com/wiki/display/Druid/DruidDataSource DruidDataSource经过阿里巴巴数百个应用一年多生产环境运行验证,稳定可靠。 它最重要的特点是:监控、扩展和性能。 下载和Maven配置看这里: http
- 两种启动监听器ApplicationListener和ServletContextListener
spjich
javaspring框架
引言:有时候需要在项目初始化的时候进行一系列工作,比如初始化一个线程池,初始化配置文件,初始化缓存等等,这时候就需要用到启动监听器,下面分别介绍一下两种常用的项目启动监听器
ServletContextListener
特点: 依赖于sevlet容器,需要配置web.xml
使用方法:
public class StartListener implements
- JavaScript Rounding Methods of the Math object
何不笑
JavaScriptMath
The next group of methods has to do with rounding decimal values into integers. Three methods — Math.ceil(), Math.floor(), and Math.round() — handle rounding in differen