- 2022-12-17
你好南方
今天一睁眼就看看暖暖的阳光从窗户偷偷进了房间,又一个美好的一天开始。早早起床去下了炝锅面,前几天早上都是煮粥,今天换一下。吃了面,洗漱完毕整理好一切准备上课,这几天上课的孩子明显减少,看今天怎样吧,这样下去真不是事儿。我今天的客户上周就联系好了今天过来试课报名,期待了这么久,不会又泡汤吧。不过也不奇怪,马上要过年了,春节后再报名也不迟,也在不乎这几天,反过来我是家长,单单从安全角度来说我也会选择在
- 如果《原神》手游取消了原粹树脂,会发生什么?
笔点酷玩
这是一个《原神》游戏爱好者在知乎发出的提问——如果《原神》取消了原粹树脂(每日160体力),会发生什么?提问之后,立刻有大佬写出一篇长文,其主要观点一句话就能概括:“肝帝一天全角色满90级”、“代练业务如火如荼”。哥们儿,还“肝一天90级”,你想得美!你以为米哈游傻啊,单纯取消树脂,其他不变?我认为,这个提瓦特大陆是非常残酷的。凭什么取消树脂,让游戏失衡,游戏工作室不会这样玩火,而真实的情况,应该
- orcal和sql server中的字符串查找函数
weixin_30387799
INSTR(C1,C2[,I[,J]])【功能】在一个字符串中搜索指定的字符,返回发现指定的字符的位置;【说明】多字节符(汉字、全角符等),按1个字符计算【参数】C1被搜索的字符串C2希望搜索的字符串I搜索的开始位置,默认为1J第J次出现的位置,默认为1【返回】数值【示例】selectinstr('abcdefgc','c',1,2)fromdual;返回:8CHARINDEX(C1,C2[,I]
- 忙碌的周末
露娜2005
最近宝宝越来越淘气,在家里也是各种爬上爬下。昨天晚上,趁宝宝睡觉的时候,从安全角度考虑,我跟先生把屋里的一些家具位置做了一些相应调整。弄完之后都凌晨了,幸好是周末时间。早上又睡了一个懒觉,还是在宝宝的呼唤声中,我才醒的。一看表已经早晨九点多,又小小地赖了一会儿床。吃过早午饭之后,就带宝宝出门去玩了。马上就要进入绵绵雨季,趁着最近天气还不错的时候,多带她到户外活动一下。前段时间因为导航不给力,结果让
- Linux:grep进阶(11)
鲍海超-GNUBHCkalitarro
linuxmysql运维
Linux:shell脚本:基础使用(4)《正则表达式-grep工具》_shellgrep全角字符串-CSDN博客https://blog.csdn.net/w14768855/article/details/132338954?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522170833601716800226594687%2522
- securityoverridehacking challenge 解题思路汇总——JavaScript
captain_hwz
securityjavascript安全ctf
通过了Advanced部分(securityoverridehackingchallenge解题思路汇总——Advanced),下面就进入JavaScript了。总的来说,这个部分比较简单,因为JavaScript是高度可控的东西。也就是说,安全角度而言,JavaScript是不可信的。4Javascript4.1LoginBypass这题比较容易让人想多,逛了下hint,发现很简单。观察,首先请
- python全角数字_python 半角全角的相互转换
喻毅嘉
python全角数字
全角与半角在中文输入法里经常要接触到,后台在处理用户输入数据时需要对半角全角的相互转换。下面是python实现的半角全角的相互转换功能。全角与半角全角指一个字符占用两个标准字符位置的状态。半角即一个字符占用一个标准字符的位置。全角占两个字节,半角占一个字节。半角全角主要是针对标点符号来说的,全角标点占两个字节,半角占一个字节,而不管是半角还是全角,汉字都还是要占两个字节。半角全角的转换python
- mysql 去除全角空格_去除字符串内多余空格
aurging
mysql去除全角空格
倒数第二行就是去除多余空格原本最后一种写法是网上找来的可是根本不好使\\1匹配数字1或一次吧(我有点记不清了)"\s"匹配非空字符"\x20"匹配空格这里也可以直接打上个空格来代替我为了醒目就那么做了,后面替换那里是有空格的那句的意思也就是2个以上的空格替换成一个空格呵呵$str="iamabook\n\n\n\n\nmoth";echo"原来字符串:".$str."\n";echo"去除所有的空
- python中英文半角还是全角_Python实现全角半角转换的方法
weixin_39752800
python中英文半角还是全角
本文实例讲解了Python实现全角半角转换的方法,相信对于大家的Python学习能够起到一定的参考借鉴价值。如下所示:一、全角半角转换概述:全角字符unicode编码从65281~65374(十六进制0xFF01~0xFF5E)半角字符unicode编码从33~126(十六进制0x21~0x7E)空格比较特殊,全角为12288(0x3000),半角为32(0x20)而且除空格外,全角/半角按uni
- php 全角空格,PHP实现全角字符转为半角方法汇总
weixin_39878989
php全角空格
这篇文章主要给大家汇总介绍了PHP实现全角字符转为半角方法,从简单到复杂,小伙伴们根据自己的需求来自由选择吧。最简单的方法$str="0123ABCDFWS\",.?<>{}[]*&^%#@!~()+-|:;";echo"$str";echo"";$str=preg_replace('/\xa3([\xa1-\xfe])/e','chr(ord(\1)-0x80)',$str);echo$str;
- 全角字符转换半角字符原来
weixin_30628077
/***全角空格为12288,半角空格为32*其他字符半角(33-126)与全角(65281-65374)的对应关系是:均相差65248**将字符串中的全角字符转为半角*@paramsrc要转换的包含全角的任意字符串*@return转换之后的字符串*/publicstaticStringtoSemiangle(Stringsrc){char[]c=src.toCharArray();for(int
- 经历:sybase的sql查询,当传递的参数中包含全角空格(\u00a0),查询慢
weixin_30312563
javascriptViewUI
今天,我遇到了一个sybase数据库查询的问题。一句简单的sql,但是不知道为什么查询不出来,导致生产生产服务器频频挂掉。吓得我的小心脏砰砰啊。selectDISTINCTA.FCIL_CDEasfcilCdefromDND_EVENT_LOGAWHEREA.DOC_REF=?ANDA.DOC_TYPE=?ANDA.START_OR_END='S'后来,经网络运营经理查询,原来是客户传递的参数中包
- java 全角空格 正则表达式_关于JAVA正则匹配空白字符的问题(全角空格与半角空格)...
春光古大侠
java全角空格正则表达式
今天遇到一个字符串,怎么匹配空格都不成功!!!我把空格复制到test.properties文件显示“\u3000”,这是什么?这是全角空格!!!查了一下\s不支持全角1、"\s"匹配的是哪一种空格?正则表达式中\s匹配任何空白字符,包括空格、制表符、换页符等等;中文全角空格\s并不能匹配中文全角空格。\s只能匹配下面六种字符(详见java.util.regex.Pattern的APIDOC):半角
- php 半角 全角空格,PHP实现全角字符转为半角的方法
哗啦哗啦12238
php半角全角空格
本篇文章主要介绍PHP实现全角字符转为半角的方法,感兴趣的朋友参考下,希望对大家有所帮助。最简单的方法'0','1'=>'1','2'=>'2','3'=>'3','4'=>'4','5'=>'5','6'=>'6','7'=>'7','8'=>'8','9'=>'9','A'=>'A','B'=>'B','C'=>'C','D'=>'D','E'=>'E','F'=>'F','G'=>'G','
- java去全角空格_去掉字符串两端的全角空格和半角空格(含源代码)
小浪花VG
java去全角空格
昨天,遇到了一个技术问题。本来我在程序中用的trim()方法来处理从JSP页面传来的值,后来在测试时,发现当我输入的是全角空格时,trim()方法失效。需求是这样的,只是去掉字符串两端的空格(不论是全角空格还是半角空格),字符串中间的空格不变。后来经过查资料和研究,总结出了以下两种写法:一、字符串的字符替换法:思路:(1)将字符串中所以有的全角空格转换成两个半角空格(2)用trim()方法去掉字符
- 中文字符,全角字符的正则表达式
启源边界
前端公用功能javascript
经过测试其中匹配双字节字符(包括汉字在内):[^\x00-\xff]非常好用推荐一下关键字:正则表达式模式匹配Javascript摘要:收集一些常用的正则表达式。正则表达式用于字符串处理,表单验证等场合,实用高效,但用到时总是不太把握,以致往往要上网查一番。我将一些常用的表达式收藏在这里,作备忘之用。本贴随时会更新。匹配中文字符的正则表达式:[\u4e00-\u9fa5]匹配双字节字符(包括汉字在
- SqlServer替换全角空格的探索
fsyysf
sqlserver数据库
工作环境是SqlServer2008,在地址处理的时候发现有些地址的空格用replace无法替换,把地址文本用16进制查看,原来是C2A0,网上搜索了一下,是全角空格,就是那个 ,再搜索一下替换的方法也没找到,只有自己想办法了。用Convert(varbinary(max),Address),发现这个全角空格对应的值是3F,而普通空格对应的值是20,参考网上提取16进制值的程序修改了个替换
- mysql操作中文字段信息时,一定要注意全角半角符号问题
jbluxun
mysql数据库java
最近用python操作mysql数据库,让一个“,”符号折腾得不轻,整条SQL语句看不出大问题,就是始终通不过。原来是中文逗号,和英文,逗号的区别。其实我很想使用全英文字段名等,但显示需要转译成中文,有的时候嫌麻烦,就直接输入中文,结果中英文切换出问题,混入这些符号折腾人。要注意
- SQL SERVER 数据库储存的值里面前后有空格,有可能是全角或者半角空格,如何在查询中处理
czf2505
sqlsql
例如用户表里面的UserCode有空格,那么如何查询出来对应的用户表名tblUser字段UserCode表记录为3条’admin','bbbadmin','abc'如果用select*fromtblUserwhereUserCode='123',查询内容为空如果修改数据库有空格的字段值,因为有全角和半角之分,所以处理方法复杂,而且还要保证以后不能再将有空格的数据保存所以处理方法为建立一个对应的视图
- 原来是全角空格
海天鹰
JSjavascript
最近因项目需要把空格替换为逗号,却发现没有替换!c=c.replace('',',');百思不得其解,后来才想查一下码值ASCII码表——在线ASCII字符转换Unicode(十进制)=12288Unicode(十六进制)=0x3000再一查,是全角空格!改为:c=c.replace('',',');肉眼根本看不出来!有些地方的空格ASCII=32,是普通空格,干脆全改成全角!
- 2018-08-23 Java工具类——全角半角字符相互转换
Albert陈凯
https://blog.csdn.net/xyw591238/article/details/51719747https://my.oschina.net/zjcx/blog/679604https://segmentfault.com/a/1190000010841143importorg.apache.commons.lang.StringUtils;/****提供对字符串的全角->半角,半
- [CEOI2018]Global warming
Gank_Wind
题解
update:20210614更改了半全角,图片,LaTeX。LinkETHANK大佬已经写过题解,但是对于没有想过来的friends可能会有点迷糊,故以此帖加以补充。通过读题可知我们需要修改的是一个连续区间[l,r][l,r][l,r],由于增加值相等,所以区间内的元素相对大小不改变,也就是说,这次修改只会对[r+1,n][r+1,n][r+1,n]造成影响。但修改的范围和增加值我们都不知道,这
- 【Markdown学习总结(不定期更新)】
Daoming Li
学习
文章目录Markdown简介Markdown的特点Markdown的文本编辑器推荐Markdown基本操作Notice基础知识全角标点与半角标点目录与标题[数个"#"+空格]强调的三种方法斜体的三种方法删除线*高亮(拓展语法)代码代码块引用创建无序列表的三种方法创建有序列表[数字+"."+空格]*上标[用"^"包围](拓展语法)*下标[用"~"包围](拓展语法)*注释["[^]"后置](拓展语法)
- 2020-02-16这是一个Makedown的示范文件
钟旭伟
tags:技术,工具categories:技能提升符号均为英文符号,空格为全角空格。一级标题TOC第二级别标题三级列表无序号的分級列表下一各上有序2.有序号鞋号加粗斜着(不要有空格)nihao脚注1[主角1]这是一个红色的标记链接1ceshi*斜杠*(如果要用*号)
[email protected]直接跳转邮箱代码示例:@requires_authorizationdefsomefunc(param
- c# 字符串帮助类
vbloveshllm
c#开发语言
publicclassStringHelper{#region全角半角互相转换//////转全角的函数(SBCcase)//////任意字符串///全角字符串//////全角空格为12288,半角空格为32///其他字符半角(33-126)与全角(65281-65374)的对应关系是:均相差65248///publicstaticstringToSBC(stringstr){//半角转全角:cha
- 丝绸、羊绒专业洗涤剂全角度测评,从此告别“选择困难症”
阳光下的空气泡沫
衣食住行,“衣”是基本生活的刚需。随着社会进步,穿衣不再仅仅为了蔽体遮羞,更趋向于追求美观时尚。但穿时美,洗时累。为了让衣物洗得干净且轻松,洗涤剂不断推陈出新:从肥皂到洗衣粉,再到现在家家必备的洗衣液。大家为了洗干净衣服也是用尽了洪荒之力,尤其面对动辄几百上千的真丝、羊绒类娇贵衣物,穿的时候小心,洗的时候更是要呵护备至,毕竟都是钱啊~这次为了给广大妈妈们谋福利,特意选了市面上比较火的6款丝绒类专用
- C#全角和半角转换
若离
编码编程
尊重原创:http://www.cto360.com/a/5000119107.shtml在计算机屏幕上,一个汉字要占两个英文字符的位置,人们把一个英文字符所占的位置称为"半角",相对地把一个汉字所占的位置称为"全角"。在汉字输入时,系统提供"半角"和"全角"两种不同的输入状态,但是对于英文字母、符号和数字这些通用字符就不同于汉字,在半角状态它们被作为英文字符处理;而在全角状态,它们又可作为中文字
- 基于单片机的LED显示系统
电气_空空
毕业设计单片机嵌入式硬件
摘要LED显示屏(LightEmittingDiodepanel)是高亮度的发光二极管的点阵排列在一定的控制方式下来显示文字、数字、图形等各种信息。LED显示屏具有造价低但亮度高,功耗小等特点。近些年,很多的公共场所已取代原始的霓虹灯类广告牌匾,开始使用LED显示屏作为新的宣传牌匾,并且很多大屏幕也由视觉角度单一的液晶显示屏转变为发射球面波全角度的LED显示屏。随着单片机的飞速发展,单片机已进入生
- 正则表达式——Unicode 匹配规则
空零kl
正则与jpython正则表达式
一般来说,数字字符解释[0-9],单词字符就是[0-9a-zA-Z_],空白字符则包括空格、回车等字符,但这是ASCII编码中的情况,在Unicode编码中并非如此。因为包括了多种语言和字符,所以在Unicode编码中,全角数字0、1、2之类也算作“数字字符”,可以由\d匹配;中文字符,也可以算作“单词字符”,由\w匹配;同样的道理,中文的全角空格(码值为30ff),也可以算作“空白字符”,由\s
- 宿舍恶性负载识别限电模块的参数指标
石家庄光大远通电气
硬件工程安全
宿舍恶性负载识别控制器石家庄光大远通公司的安全技术指标概述随着社会的发展和科技的进步,人们对生活质量的要求越来越高,其中安全问题尤为重要。学生宿舍限电模块是为了保障学生的安全和正常学习生活而设计的一种设备,主要用于控制宿舍用电量。本文将从安全角度出发,阐述学生宿舍限电模块的安全技术指标以及相关的***知识。一、学生宿舍恶性负载识别模块的安全技术指标1.安全标准X先,在设计和生产学生宿舍限电模块时,
- Spring4.1新特性——Spring MVC增强
jinnianshilongnian
spring 4.1
目录
Spring4.1新特性——综述
Spring4.1新特性——Spring核心部分及其他
Spring4.1新特性——Spring缓存框架增强
Spring4.1新特性——异步调用和事件机制的异常处理
Spring4.1新特性——数据库集成测试脚本初始化
Spring4.1新特性——Spring MVC增强
Spring4.1新特性——页面自动化测试框架Spring MVC T
- mysql 性能查询优化
annan211
javasql优化mysql应用服务器
1 时间到底花在哪了?
mysql在执行查询的时候需要执行一系列的子任务,这些子任务包含了整个查询周期最重要的阶段,这其中包含了大量为了
检索数据列到存储引擎的调用以及调用后的数据处理,包括排序、分组等。在完成这些任务的时候,查询需要在不同的地方
花费时间,包括网络、cpu计算、生成统计信息和执行计划、锁等待等。尤其是向底层存储引擎检索数据的调用操作。这些调用需要在内存操
- windows系统配置
cherishLC
windows
删除Hiberfil.sys :使用命令powercfg -h off 关闭休眠功能即可:
http://jingyan.baidu.com/article/f3ad7d0fc0992e09c2345b51.html
类似的还有pagefile.sys
msconfig 配置启动项
shutdown 定时关机
ipconfig 查看网络配置
ipconfig /flushdns
- 人体的排毒时间
Array_06
工作
========================
|| 人体的排毒时间是什么时候?||
========================
转载于:
http://zhidao.baidu.com/link?url=ibaGlicVslAQhVdWWVevU4TMjhiKaNBWCpZ1NS6igCQ78EkNJZFsEjCjl3T5EdXU9SaPg04bh8MbY1bR
- ZooKeeper
cugfy
zookeeper
Zookeeper是一个高性能,分布式的,开源分布式应用协调服务。它提供了简单原始的功能,分布式应用可以基于它实现更高级的服务,比如同步, 配置管理,集群管理,名空间。它被设计为易于编程,使用文件系统目录树作为数据模型。服务端跑在java上,提供java和C的客户端API。 Zookeeper是Google的Chubby一个开源的实现,是高有效和可靠的协同工作系统,Zookeeper能够用来lea
- 网络爬虫的乱码处理
随意而生
爬虫网络
下边简单总结下关于网络爬虫的乱码处理。注意,这里不仅是中文乱码,还包括一些如日文、韩文 、俄文、藏文之类的乱码处理,因为他们的解决方式 是一致的,故在此统一说明。 网络爬虫,有两种选择,一是选择nutch、hetriex,二是自写爬虫,两者在处理乱码时,原理是一致的,但前者处理乱码时,要看懂源码后进行修改才可以,所以要废劲一些;而后者更自由方便,可以在编码处理
- Xcode常用快捷键
张亚雄
xcode
一、总结的常用命令:
隐藏xcode command+h
退出xcode command+q
关闭窗口 command+w
关闭所有窗口 command+option+w
关闭当前
- mongoDB索引操作
adminjun
mongodb索引
一、索引基础: MongoDB的索引几乎与传统的关系型数据库一模一样,这其中也包括一些基本的优化技巧。下面是创建索引的命令: > db.test.ensureIndex({"username":1}) 可以通过下面的名称查看索引是否已经成功建立: &nbs
- 成都软件园实习那些话
aijuans
成都 软件园 实习
无聊之中,翻了一下日志,发现上一篇经历是很久以前的事了,悔过~~
断断续续离开了学校快一年了,习惯了那里一天天的幼稚、成长的环境,到这里有点与世隔绝的感觉。不过还好,那是刚到这里时的想法,现在感觉在这挺好,不管怎么样,最要感谢的还是老师能给这么好的一次催化成长的机会,在这里确实看到了好多好多能想到或想不到的东西。
都说在外面和学校相比最明显的差距就是与人相处比较困难,因为在外面每个人都
- Linux下FTP服务器安装及配置
ayaoxinchao
linuxFTP服务器vsftp
检测是否安装了FTP
[root@localhost ~]# rpm -q vsftpd
如果未安装:package vsftpd is not installed 安装了则显示:vsftpd-2.0.5-28.el5累死的版本信息
安装FTP
运行yum install vsftpd命令,如[root@localhost ~]# yum install vsf
- 使用mongo-java-driver获取文档id和查找文档
BigBird2012
driver
注:本文所有代码都使用的mongo-java-driver实现。
在MongoDB中,一个集合(collection)在概念上就类似我们SQL数据库中的表(Table),这个集合包含了一系列文档(document)。一个DBObject对象表示我们想添加到集合(collection)中的一个文档(document),MongoDB会自动为我们创建的每个文档添加一个id,这个id在
- JSONObject以及json串
bijian1013
jsonJSONObject
一.JAR包简介
要使程序可以运行必须引入JSON-lib包,JSON-lib包同时依赖于以下的JAR包:
1.commons-lang-2.0.jar
2.commons-beanutils-1.7.0.jar
3.commons-collections-3.1.jar
&n
- [Zookeeper学习笔记之三]Zookeeper实例创建和会话建立的异步特性
bit1129
zookeeper
为了说明问题,看个简单的代码,
import org.apache.zookeeper.*;
import java.io.IOException;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ThreadLocal
- 【Scala十二】Scala核心六:Trait
bit1129
scala
Traits are a fundamental unit of code reuse in Scala. A trait encapsulates method and field definitions, which can then be reused by mixing them into classes. Unlike class inheritance, in which each c
- weblogic version 10.3破解
ronin47
weblogic
版本:WebLogic Server 10.3
说明:%DOMAIN_HOME%:指WebLogic Server 域(Domain)目录
例如我的做测试的域的根目录 DOMAIN_HOME=D:/Weblogic/Middleware/user_projects/domains/base_domain
1.为了保证操作安全,备份%DOMAIN_HOME%/security/Defa
- 求第n个斐波那契数
BrokenDreams
今天看到群友发的一个问题:写一个小程序打印第n个斐波那契数。
自己试了下,搞了好久。。。基础要加强了。
&nbs
- 读《研磨设计模式》-代码笔记-访问者模式-Visitor
bylijinnan
java设计模式
声明: 本文只为方便我个人查阅和理解,详细的分析以及源代码请移步 原作者的博客http://chjavach.iteye.com/
import java.util.ArrayList;
import java.util.List;
interface IVisitor {
//第二次分派,Visitor调用Element
void visitConcret
- MatConvNet的excise 3改为网络配置文件形式
cherishLC
matlab
MatConvNet为vlFeat作者写的matlab下的卷积神经网络工具包,可以使用GPU。
主页:
http://www.vlfeat.org/matconvnet/
教程:
http://www.robots.ox.ac.uk/~vgg/practicals/cnn/index.html
注意:需要下载新版的MatConvNet替换掉教程中工具包中的matconvnet:
http
- ZK Timeout再讨论
chenchao051
zookeepertimeouthbase
http://crazyjvm.iteye.com/blog/1693757 文中提到相关超时问题,但是又出现了一个问题,我把min和max都设置成了180000,但是仍然出现了以下的异常信息:
Client session timed out, have not heard from server in 154339ms for sessionid 0x13a3f7732340003
- CASE WHEN 用法介绍
daizj
sqlgroup bycase when
CASE WHEN 用法介绍
1. CASE WHEN 表达式有两种形式
--简单Case函数
CASE sex
WHEN '1' THEN '男'
WHEN '2' THEN '女'
ELSE '其他' END
--Case搜索函数
CASE
WHEN sex = '1' THEN
- PHP技巧汇总:提高PHP性能的53个技巧
dcj3sjt126com
PHP
PHP技巧汇总:提高PHP性能的53个技巧 用单引号代替双引号来包含字符串,这样做会更快一些。因为PHP会在双引号包围的字符串中搜寻变量, 单引号则不会,注意:只有echo能这么做,它是一种可以把多个字符串当作参数的函数译注: PHP手册中说echo是语言结构,不是真正的函数,故把函数加上了双引号)。 1、如果能将类的方法定义成static,就尽量定义成static,它的速度会提升将近4倍
- Yii框架中CGridView的使用方法以及详细示例
dcj3sjt126com
yii
CGridView显示一个数据项的列表中的一个表。
表中的每一行代表一个数据项的数据,和一个列通常代表一个属性的物品(一些列可能对应于复杂的表达式的属性或静态文本)。 CGridView既支持排序和分页的数据项。排序和分页可以在AJAX模式或正常的页面请求。使用CGridView的一个好处是,当用户浏览器禁用JavaScript,排序和分页自动退化普通页面请求和仍然正常运行。
实例代码如下:
- Maven项目打包成可执行Jar文件
dyy_gusi
assembly
Maven项目打包成可执行Jar文件
在使用Maven完成项目以后,如果是需要打包成可执行的Jar文件,我们通过eclipse的导出很麻烦,还得指定入口文件的位置,还得说明依赖的jar包,既然都使用Maven了,很重要的一个目的就是让这些繁琐的操作简单。我们可以通过插件完成这项工作,使用assembly插件。具体使用方式如下:
1、在项目中加入插件的依赖:
<plugin>
- php常见错误
geeksun
PHP
1. kevent() reported that connect() failed (61: Connection refused) while connecting to upstream, client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "fastc
- 修改linux的用户名
hongtoushizi
linuxchange password
Change Linux Username
更改Linux用户名,需要修改4个系统的文件:
/etc/passwd
/etc/shadow
/etc/group
/etc/gshadow
古老/传统的方法是使用vi去直接修改,但是这有安全隐患(具体可自己搜一下),所以后来改成使用这些命令去代替:
vipw
vipw -s
vigr
vigr -s
具体的操作顺
- 第五章 常用Lua开发库1-redis、mysql、http客户端
jinnianshilongnian
nginxlua
对于开发来说需要有好的生态开发库来辅助我们快速开发,而Lua中也有大多数我们需要的第三方开发库如Redis、Memcached、Mysql、Http客户端、JSON、模板引擎等。
一些常见的Lua库可以在github上搜索,https://github.com/search?utf8=%E2%9C%93&q=lua+resty。
Redis客户端
lua-resty-r
- zkClient 监控机制实现
liyonghui160com
zkClient 监控机制实现
直接使用zk的api实现业务功能比较繁琐。因为要处理session loss,session expire等异常,在发生这些异常后进行重连。又因为ZK的watcher是一次性的,如果要基于wather实现发布/订阅模式,还要自己包装一下,将一次性订阅包装成持久订阅。另外如果要使用抽象级别更高的功能,比如分布式锁,leader选举
- 在Mysql 众多表中查找一个表名或者字段名的 SQL 语句
pda158
mysql
在Mysql 众多表中查找一个表名或者字段名的 SQL 语句:
方法一:SELECT table_name, column_name from information_schema.columns WHERE column_name LIKE 'Name';
方法二:SELECT column_name from information_schema.colum
- 程序员对英语的依赖
Smile.zeng
英语程序猿
1、程序员最基本的技能,至少要能写得出代码,当我们还在为建立类的时候思考用什么单词发牢骚的时候,英语与别人的差距就直接表现出来咯。
2、程序员最起码能认识开发工具里的英语单词,不然怎么知道使用这些开发工具。
3、进阶一点,就是能读懂别人的代码,有利于我们学习人家的思路和技术。
4、写的程序至少能有一定的可读性,至少要人别人能懂吧...
以上一些问题,充分说明了英语对程序猿的重要性。骚年
- Oracle学习笔记(8) 使用PLSQL编写触发器
vipbooks
oraclesql编程活动Access
时间过得真快啊,转眼就到了Oracle学习笔记的最后个章节了,通过前面七章的学习大家应该对Oracle编程有了一定了了解了吧,这东东如果一段时间不用很快就会忘记了,所以我会把自己学习过的东西做好详细的笔记,用到的时候可以随时查找,马上上手!希望这些笔记能对大家有些帮助!
这是第八章的学习笔记,学习完第七章的子程序和包之后