茶与水:最足以显示一个人性格的,莫过于他所嘲笑的是什么东西 o(∩_∩)o

蚁人里的那款笔记本壳看起来很不错

蚁人里的那款笔记本电脑壳子看起来不错。三防机,不过已经过时了,国内也有比如Xingtac,如果在野外条件不好的地方,这种笔记本很不错。 电脑型号:dell_e6400_xfr 于是在网上找了几张图片。 (more...)

春季烧烤

(more...)

记一段JS代码 从链接A中正则获取需要的字段自动填入B

从链接A中正则获取需要的字段填入B 123456789    l("#linkA").on("blur",     function() {         var t = l(this),         a = /(正则)/i;         if (t.val() && a.test(t.val())) {             var e = t.val().match(a);             e[1] && jQuery("#textB").val(e[1])         […] (more...)

正则:获取链接尾巴的字符

1[a-z]{32} (more...)

正则:获取链接的主要域名

https://pianpai.com/xxxadas 1https:\/\/[^\/]+ 获取结果为:https://pianpai.com http与https的区别 http://pianpai.com/yyyyyyy 1http:\/\/[^\/]+ 获取结果为:http://pianpai.com (more...)

给WordPress 文章自定义域添加一个文件上传按钮

效果如上图。 主要供自定义域使用,方便调用。废话不多,直接贴代码。 需要插入到functions.php文件的代码 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647// pianpai.com 添加上传面板 function aw_custom_meta_boxes( $post_type, $post ) {     add_meta_box(         'aw-meta-box',         __( '上传文件的面板' ),         'render_aw_meta_box',         array('post'),         'normal',         'high'     ); } add_action( 'add_meta_boxes', 'aw_custom_meta_boxes', 10, […] (more...)

Chrome插件 CRX文件下载

Chrome插件 CRX文件下载 网址:https://pianpai.com/chromecrx 使用方法:复制你打不开的chrome插件链接,类似这样的https://chrome.google.com/webstore/detail/custom-cursor-for-chrome/ogdlpmhglpejoiomcodnpjnfgcpmgale粘贴到框框,点击下载,然后会提示保存到电脑。点击即可…… (more...)

x2.5管理员登录密码忘记了怎么办

改UC创始人密码。 修改UC配置文件 /uc_server/data/config.inc.php 对应两行换掉 12define('UC_FOUNDERPW', '636822edaa353665147896b9061edc4b'); define('UC_FOUNDERSALT', 'p5j8K5'); 复制代码 这样设置后uc创始人的密码为 123654 登录UC后,用户管理,再修改会员密码,登录论坛 参考自:https://www.discuz.net/forum.php?mod=redirect&goto=findpost&ptid=3680629&pid=29477006 (more...)

discuz 恢复网站1146错误 新建表语句错误原来是TYPE=MyISAM

12345678DROP TABLE IF EXISTS pre_common_syscache; CREATE TABLE pre_common_syscache (   cname varchar(32) NOT NULL,   ctype tinyint(3) unsigned NOT NULL,   dateline int(10) unsigned NOT NULL,   `data` mediumblob NOT NULL,   PRIMARY KEY (cname) ) TYPE=MyISAM; 会提示 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server […] (more...)

lnmp 二级目录安装discuz、wordpress的解决方案

今天这个问题困扰了我一下,以前很少在子目录建站,这次因为想把网站集中一下。所以折腾很久。由于看到网上很多文章并没有解决我的问题,很多都是二级目录安装同样的程序。废话不多说,我总结了几种情况。 时间一久,这些都会变成思路,请参考,注意自己的情况。我用的是lnmp 一、根目录是wordpress程序,二级目录blog需要再安装wordpress ①修改wordpress.conf为下面内容。 12345678910111213141516171819location / {     try_files $uri $uri/ /index.php?$args; } # Add trailing slash to */wp-admin requests. rewrite /wp-admin$ $scheme://$host$uri/ permanent; location /blog/ { if (-f $request_filename/index.html){                 rewrite (.*) $1/index.html break;         } if (-f $request_filename/index.php){         […] (more...)