csjoz11

导航

上一页 1 ··· 6 7 8 9 10 11 下一页

2021年8月29日 #

mysql Specified key was too long; max key length is 767 bytes

摘要: 今天生产上遇到上述的bug: 系统变量innodb_large_prefix开启了,则对于使用DYNAMIC或COMPRESSED行格式的InnoDB表,索引键前缀限制为3072字节。如果禁用innodb_large_prefix,不管是什么表,索引键前缀限制为767字节。 上述的bug很明显是索引 阅读全文

posted @ 2021-08-29 01:47 csjoz11 阅读(293) 评论(0) 推荐(0)

apachi 设置index.html index.htm index.php

摘要: D:\AppServ\Apache24\conf\extra\httpd-vhosts.conf DocumentRoot "D:\admin\z1" ServerName www.z1.com ServerAlias www.z1.com <directory "d:\admin\z1"=""> 阅读全文

posted @ 2021-08-29 01:47 csjoz11 阅读(126) 评论(0) 推荐(0)

JAVA面经

摘要: 1,之前公司做过什么项目,用过什么技术2,REDIS做秒杀,怎么判断最后一件商品,如果有两人同时购买如何处理3,之前如的项目中,有哪些是你觉得比较难解决的问题,都 是怎么处理的4,SPRINGBOOT启动过程经历了什么,先启动什么再启动什么有以下特点: 创建独立的Spring应用程序嵌入的Tomca 阅读全文

posted @ 2021-08-29 01:43 csjoz11 阅读(123) 评论(0) 推荐(0)

2017年10月10日 #

csv导出

摘要: import org.apache.commons.csv.CSVFormat; import org.apache.commons.csv.CSVParser; import org.apache.commons.csv.CSVPrinter; import org.apache.commons. 阅读全文

posted @ 2017-10-10 19:45 csjoz11 阅读(158) 评论(0) 推荐(0)

声音

摘要: if (t <= 11000) { if (sessionStorage.enable_horn == null || sessionStorage.enable_horn == "false") if ($(".next-time-speaker").html() == "") { if (!$( 阅读全文

posted @ 2017-10-10 19:43 csjoz11 阅读(100) 评论(0) 推荐(0)

2017年7月27日 #

Linux通过netstat命令查看80端口连接数的方法

摘要: 服务器上的一些统计数据: 1)统计80端口连接数 netstat -nat|grep -i “80”|wc -l 2)统计httpd协议连接数 ps -ef|grep httpd|wc -l 3)、统计已连接上的,状态为“established netstat -na|grep ESTABLISHE 阅读全文

posted @ 2017-07-27 15:00 csjoz11 阅读(3979) 评论(0) 推荐(0)

左侧自增长

摘要: <html> <body> <div style="width:980px;height:400px;margin:0 auto;border:1px solid red"> <div style="height:400px; width:200px; float:left; ">22</div> 阅读全文

posted @ 2017-07-27 11:56 csjoz11 阅读(79) 评论(0) 推荐(0)

curl

摘要: _____________获取淘宝标题 <?php header("Content-type: text/html; charset=utf-8"); $url = 'https://item.taobao.com/item.htm?spm=a219r.lm5704.14.15.Cb4K9H&id= 阅读全文

posted @ 2017-07-27 11:56 csjoz11 阅读(141) 评论(0) 推荐(0)

红包算法

摘要: /** * 红包 * @param n * @param money 单位:分 * @return **/ public static double[] redPacket(int n, double money) { // 红包结果 double[] result = new double[n]; 阅读全文

posted @ 2017-07-27 11:49 csjoz11 阅读(111) 评论(0) 推荐(0)

生成excel xls

摘要: $filename = ecs_iconv(EC_CHARSET, 'GB2312', $_LANG['guest_statistics']);header("Content-type: application/vnd.ms-excel; charset=utf-8");header("Conten 阅读全文

posted @ 2017-07-27 11:47 csjoz11 阅读(197) 评论(0) 推荐(0)

简单文件上传

摘要: /* 检查文件类型 */if ($_FILES['upfile_flash']['type'] != "application/x-shockwave-flash"){ $link[] = array('text' => $_LANG['go_back'], 'href' => 'javascrip 阅读全文

posted @ 2017-07-27 11:47 csjoz11 阅读(183) 评论(0) 推荐(0)

计时3秒后自动跳转到登录页

摘要: <script> //计时3秒后自动跳转到登录页 var i = 3; var time_out; time_out = setInterval("time()", 800); function time() { if(i == 0){ window.location.href = "/user/l 阅读全文

posted @ 2017-07-27 11:46 csjoz11 阅读(3299) 评论(0) 推荐(0)

jquery $换JQ

摘要: <script type="text/javascript"> var jq = jQuery.noConflict(); jq(document).ready(function () { jq(".btn-inquire").click(function () { jq(".btn-inquire 阅读全文

posted @ 2017-07-27 11:46 csjoz11 阅读(311) 评论(0) 推荐(0)

用于二维数组排序

摘要: function array_sort($arr, $field, $by = SORT_ASC) { foreach ($arr as $v) { $r[] = $v[$field]; } array_multisort($r, $by, $arr); return $arr; } functio 阅读全文

posted @ 2017-07-27 11:45 csjoz11 阅读(104) 评论(0) 推荐(0)

加单引号

摘要: function db_create_in($item_list, $field_name = ''){ if (empty($item_list)) { return $field_name . " IN ('') "; } else { if (!is_array($item_list)) { 阅读全文

posted @ 2017-07-27 11:45 csjoz11 阅读(133) 评论(0) 推荐(0)

URL重写

摘要: PHP code ? 1 2 3 4 5 6 RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^so\.ccvnn\.com$ [NC] RewriteCond %{REQUEST_URI} !^/web2/ RewriteRule ^ 阅读全文

posted @ 2017-07-27 11:44 csjoz11 阅读(212) 评论(0) 推荐(0)

月周日时间

摘要: __________________________ $list = array(array());//昨日时间$yesterday = intval(strtotime(date("Y-m-d")))-86400;//本周时间$week = mktime(0, 0 , 0,date("m"),da 阅读全文

posted @ 2017-07-27 11:44 csjoz11 阅读(153) 评论(0) 推荐(0)

定时任务

摘要: 使用不同账户,执行执行脚本时候sudo经常会碰到 sudo: sorry, you must have a tty to run sudo这个情况,其实修改一下sudo的配置就好了 vi /etc/sudoers (最好用visudo命令) 注释掉 Default requiretty 一行 #De 阅读全文

posted @ 2017-07-27 11:43 csjoz11 阅读(221) 评论(0) 推荐(0)

微信

摘要: ——————————微信公从号授权 $code = input('code'); if($code != ''){ $url = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=".config('appid')."&secret=" 阅读全文

posted @ 2017-07-27 11:42 csjoz11 阅读(121) 评论(0) 推荐(0)

文件处理类

摘要: <?php/** * Tiny - A PHP Framework For Web Artisans * @author Tiny <tinylofty@gmail.com> * @copyright Copyright(c) 2010-2014 http://www.tinyrise.com Al 阅读全文

posted @ 2017-07-27 11:41 csjoz11 阅读(121) 评论(0) 推荐(0)

序列号

摘要: VMware Workstation 12序列号: 5A02H-AU243-TZJ49-GTC7K-3C61N 阅读全文

posted @ 2017-07-27 11:40 csjoz11 阅读(102) 评论(0) 推荐(0)

idea

摘要: 修改快捷键 appearance & behavior keymap Quick Definition 查看方法ctrl+shift+i comment with line comment ctrl+q 注释 comment with block comment ctrl+shift+q 注释 cl 阅读全文

posted @ 2017-07-27 11:40 csjoz11 阅读(115) 评论(0) 推荐(0)

linux命令

摘要: _____________________设置IP vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 HWADDR=00:0: TYPE=Tthernet UUID=486cb8fd-7e13-4fce-80c3-ccffc76d00a 阅读全文

posted @ 2017-07-27 11:39 csjoz11 阅读(120) 评论(0) 推荐(0)

nginx 配置

摘要: _____________________________________________________设权限 sudo chmod -R 777 admin _____________________________________________________定时crontab -e */1 阅读全文

posted @ 2017-07-27 11:38 csjoz11 阅读(142) 评论(0) 推荐(0)

sublime2注册码

摘要: BEGIN LICENSE Andrew Weber Single User License EA7E-855605 813A03DD 5E4AD9E6 6C0EEB94 BC99798F 942194A6 02396E98 E62C9979 4BB979FE 91424C9D A45400BF F 阅读全文

posted @ 2017-07-27 11:33 csjoz11 阅读(175) 评论(0) 推荐(0)

mysql 空密码 安装

摘要: Mysql 源码安装操作: 1. 创建用户 # groupadd mysql # useradd -g -r mysql mysql 2. 解压缩tar包 # tar xf mysql-5.6.25.tar.gz # cd mysql-5.6.25 3. 编译安装 # cmake . -DCMAKE 阅读全文

posted @ 2017-07-27 11:33 csjoz11 阅读(227) 评论(0) 推荐(0)

支付宝

摘要: <!-- saved from url=(0056)http://www.ecmos.com/index.php?app=my_money&act=recharge --> <html><head><meta http-equiv="Content-Type" content="text/html; 阅读全文

posted @ 2017-07-27 11:32 csjoz11 阅读(1295) 评论(0) 推荐(0)

内容图片切换

摘要: <tr> <td width="10%" class="tableleft">广告类别</td> <td> <select name="type" onchange="_ad()" id="type"> <option value="0">图片广告</option> <option value="1 阅读全文

posted @ 2017-07-27 11:32 csjoz11 阅读(162) 评论(0) 推荐(0)

获取URL

摘要: // Array representing a possible record set returned from a database function get_url() { $sys_protocal = isset($_SERVER['SERVER_PORT']) && $_SERVER[' 阅读全文

posted @ 2017-07-27 11:31 csjoz11 阅读(181) 评论(0) 推荐(0)

Axure产品图片占位符dummyimage

摘要: Axure Axure http://dummyimage.com/350x200/200/fffhttp://c7sky.com/the-top-10-placeholder-image-services.htmlhttp://zhanweitu.com/600x100 阅读全文

posted @ 2017-07-27 11:30 csjoz11 阅读(314) 评论(0) 推荐(0)

apache多站点

摘要: <VirtualHost *:80> DocumentRoot "D:\admin\ych_admin\webroot" ServerName ci ServerAlias admin.y.com <Directory "D:\admin\ych_admin\webroot"> Options Fo 阅读全文

posted @ 2017-07-27 11:29 csjoz11 阅读(106) 评论(0) 推荐(0)

QQ推广

摘要: case 62: //联系我们 //index.src = "myabout.php?code=lxwm"; window.open("tencent://message/?uin=95025079&Site=web&Menu=yes", "_blank"); tencent://message/? 阅读全文

posted @ 2017-07-27 11:28 csjoz11 阅读(171) 评论(0) 推荐(0)

Apache Rewrite url重定向功能的简单配置

摘要: 第一步:'URL_MODEL'=>'2',第二步:根路径下建立一个.htaccess,可以通过一些软件比如EditPlus去另存为,windows可能不能直接创建第三步:<IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_F 阅读全文

posted @ 2017-07-27 11:27 csjoz11 阅读(308) 评论(0) 推荐(0)

表结构

摘要: CREATE TABLE `article` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(100) DEFAULT '' COMMENT '//文章标题', `tag` varchar(100) DEFAULT '' COMMENT 阅读全文

posted @ 2017-07-27 11:25 csjoz11 阅读(90) 评论(0) 推荐(0)

AddWhere

摘要: function AddWhere($str){ global $where; if ($where) return $where." and $str "; else return $str;} function AddWhere($str,$where='') {// global $where 阅读全文

posted @ 2017-07-27 11:24 csjoz11 阅读(258) 评论(0) 推荐(0)

全选反选

摘要: ———————————————————————————————— <script type="text/javascript"> $(function(){ //全选 $("#CheckedAll").click(function(){ $('[name=items]:checkbox').attr 阅读全文

posted @ 2017-07-27 11:23 csjoz11 阅读(150) 评论(0) 推荐(0)

showErr()

摘要: function showErr($type,$msg) { $phpmsg = debuginfo(); ob_end_clean(); $host = $_SERVER['HTTP_HOST']; echo <<<EOT <!DOCTYPE html PUBLIC "-//W3C//DTD XH 阅读全文

posted @ 2017-07-27 11:22 csjoz11 阅读(223) 评论(0) 推荐(0)

MYSQL添加权限

摘要: CREATE USER 'jame'@'%'; GRANT GRANT OPTION ON *.* TO 'jame'@'%'; GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, RELOAD, SHUTDOWN, PROCESS, FILE, 阅读全文

posted @ 2017-07-27 11:20 csjoz11 阅读(276) 评论(0) 推荐(0)

svn

摘要: ________________________________________________________创建版本库 c:\svn\bin>svnadmin create c:\app\test _________________________________________________ 阅读全文

posted @ 2017-07-27 11:18 csjoz11 阅读(110) 评论(0) 推荐(0)

svn钩子

摘要: ————————————————-post-commit.bat @echo on SET REPOS=%1 SET REV=%2 SET DIR="C:\admin\web7" SET PATH=%PATH%; SET SVN="C:\svn\bin\svn.exe" SET WORKING_CO 阅读全文

posted @ 2017-07-27 11:17 csjoz11 阅读(123) 评论(0) 推荐(0)

上一页 1 ··· 6 7 8 9 10 11 下一页