win10 wampserver httpd.exe - 应用程序错误 应用程序无法正常启动(0xc000007b)
安装提示vcruntime140.dll丢失
需重装vc++2015
下载地址:https://www.microsoft.com/zh-CN/download/details.aspx?id=48145
安装提示vcruntime140.dll丢失
需重装vc++2015
下载地址:https://www.microsoft.com/zh-CN/download/details.aspx?id=48145
很多时候使用第三方模板会产生很多无用的css样式,如果比较在意可以使用下面方法尝试处理。
1.firfox安装插件dust-me-selectors
https://addons.mozilla.org/en-US/firefox/addon/dust-me-selectors/
2.chrome直接运行开发者工具 Audits 选项,选中audit present state点击run即可
3.在线工具
http://gtmetrix.com/remove-unused-css.html
https://unused-css.com/
4.其他
但需注意,通常一个样式表会在不同页面同时使用,如果依据一个页面的分析删除了未使用的样式,那你该呵呵了~
以前全栈也懒得用版本管理,最近同事想备份代码求心安,索性搭一个svn,别问我为啥不用git,同事喜欢图形~
yum install subversion mod_dav_svn
mkdir -p /www/svn/project1 /www/svn/project2
svnadmin create /www/svn/project1[project2]
cd /www/svn/project/conf
vi passwd
[users]
icecry=icecry
vi authz
[aliases]
[groups]
[/]
icecry=rw
* =
vi svnserve.conf
[general]
anon-access = none
auth-access = write
password-db = passwd
authz-db = authz
[sasl]
# use-sasl = true
# min-encryption = 0
# max-encryption = 256
启动
svnserve -d -r /www/svn
查看
ps -ef|grep svn
netstat -ln |grep 3690
关闭
killall svnserve
accept: {
title: 'Images',
extensions: 'jpg,jpeg,png',
//mimeTypes: 'image/*' //修改此行为具体类型,如下
mimeTypes: 'image/jpg,image/jpeg,image/png,image/gif,image/bmp' //修改这行
}
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
package com.wiggins.teaching.utils;
import android.util.Base64;
import java.io.UnsupportedEncodingException;
import javax.crypto.Cipher;
import javax.crypto.spec.SecretKeySpec;
public class AESHelper {
private static final String CipherMode = "AES/ECB/PKCS5Padding";
private static final String password = "Coding@xxx.China";
public AESHelper() {
}
private static SecretKeySpec createKey(String password) {
byte[] data = null;
if(password == null) {
password = "";
}
StringBuffer sb = new StringBuffer(16);
sb.append(password);
while(sb.length() < 16) {
sb.append("0");
}
if(sb.length() > 16) {
sb.setLength(16);
}
try {
data = sb.toString().getBytes("UTF-8");
} catch (UnsupportedEncodingException var4) {
var4.printStackTrace();
}
return new SecretKeySpec(data, "AES");
}
public static byte[] encrypt(byte[] content, String password) {
try {
SecretKeySpec e = createKey(password);
Cipher cipher = Cipher.getInstance("AES/ECB/PKCS5Padding");
cipher.init(1, e);
byte[] result = cipher.doFinal(content);
return result;
} catch (Exception var5) {
var5.printStackTrace();
return null;
}
}
public static String encrypt(String content, String password) {
byte[] data = null;
try {
data = content.getBytes("UTF-8");
} catch (Exception var4) {
var4.printStackTrace();
}
data = encrypt(data, password);
String result = Base64.encodeToString(data, 2);
return result;
}
public static String encrypt(String content) {
byte[] data = null;
try {
data = content.getBytes("UTF-8");
} catch (Exception var3) {
var3.printStackTrace();
}
data = encrypt(data, "sgg45747ss223455");
String result = Base64.encodeToString(data, 2);
return result;
}
public static byte[] decrypt(byte[] content, String password) {
try {
SecretKeySpec e = createKey(password);
Cipher cipher = Cipher.getInstance("AES/ECB/PKCS5Padding");
cipher.init(2, e);
byte[] result = cipher.doFinal(content);
return result;
} catch (Exception var5) {
var5.printStackTrace();
return null;
}
}
public static String decrypt(String content, String password) {
byte[] data = null;
try {
data = Base64.decode(content, 2);
} catch (Exception var6) {
var6.printStackTrace();
}
data = decrypt(data, password);
if(data == null) {
return null;
} else {
String result = null;
try {
result = new String(data, "UTF-8");
} catch (UnsupportedEncodingException var5) {
var5.printStackTrace();
}
return result;
}
}
public static String decrypt(String content) {
byte[] data = null;
try {
data = Base64.decode(content, 2);
} catch (Exception var5) {
var5.printStackTrace();
}
data = decrypt(data, "sgg45747ss223455");
if(data == null) {
return null;
} else {
String result = null;
try {
result = new String(data, "UTF-8");
} catch (UnsupportedEncodingException var4) {
var4.printStackTrace();
}
return result;
}
}
public static String byte2hex(byte[] b) {
StringBuffer sb = new StringBuffer(b.length * 2);
String tmp = "";
for(int n = 0; n < b.length; ++n) {
tmp = Integer.toHexString(b[n] & 255);
if(tmp.length() == 1) {
sb.append("0");
}
sb.append(tmp);
}
return sb.toString().toUpperCase();
}
private static byte[] hex2byte(String inputString) {
if(inputString != null && inputString.length() >= 2) {
inputString = inputString.toLowerCase();
int l = inputString.length() / 2;
byte[] result = new byte[l];
for(int i = 0; i < l; ++i) {
String tmp = inputString.substring(2 * i, 2 * i + 2);
result[i] = (byte)(Integer.parseInt(tmp, 16) & 255);
}
return result;
} else {
return new byte[0];
}
}
}
<?php
namespace icecry;
/**
* aes 加密 解密类库
* @by singwa
*/
class Aes {
private $key = null;
/**
*
* @param $key 密钥
* @return String
*/
public function __construct() {
$this->key = 'Coding@xxx.China';
}
/**
* 加密
* @param String input 加密的字符串
* @param String key 解密的key
* @return HexString
*/
public function encrypt($input = '') {
$size = mcrypt_get_block_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_ECB);
$input = $this->pkcs5_pad($input, $size);
$td = mcrypt_module_open(MCRYPT_RIJNDAEL_128, '', MCRYPT_MODE_ECB, '');
$iv = mcrypt_create_iv(mcrypt_enc_get_iv_size($td), MCRYPT_RAND);
mcrypt_generic_init($td, $this->key, $iv);
$data = mcrypt_generic($td, $input);
mcrypt_generic_deinit($td);
mcrypt_module_close($td);
$data = base64_encode($data);
return $data;
}
/**
* 填充方式 pkcs5
* @param String text 原始字符串
* @param String blocksize 加密长度
* @return String
*/
private function pkcs5_pad($text, $blocksize) {
$pad = $blocksize - (strlen($text) % $blocksize);
return $text . str_repeat(chr($pad), $pad);
}
/**
* 解密
* @param String input 解密的字符串
* @param String key 解密的key
* @return String
*/
public function decrypt($sStr) {
$decrypted= mcrypt_decrypt(MCRYPT_RIJNDAEL_128,$this->key,base64_decode($sStr), MCRYPT_MODE_ECB);
$dec_s = strlen($decrypted);
$padding = ord($decrypted[$dec_s-1]);
$decrypted = substr($decrypted, 0, -$padding);
return $decrypted;
}
}
聚米田小田SEO课程
基础课 – SEO基础知识
大家晚上好,我是hitortoise ! 一个程序员,俗称码农,简单的说就是一个做网站的。2014年因为所在公司发展微商而接触微商,加上之后开发、运营了微信好多群网站:www.haoduoqun.com接触到了更多的微商包括更多的一些微商产品,可惜的是,由于种种原因,好多群网站现在也已经关站。好多群网站群里可能有的朋友使用过,当时日访客UV过万,PV过17万,百度自然排名一段时间内第一。
很多程序员一看就知道不会创业
“程序员思维”会害死你!
在IT这一行做得久了,会接触到无数让人哭笑不得的外行话。
「我们就差一个写代码的了」是其中典型的一种,之所以黑它,不是因为程序员有多自大,认为自己被轻视所以愤怒。而是因为说这句话的人里有90%以上绝对不仅仅差一个写代码的,而是一整套技术体系。
那么,程序员在创业公司之中真的这么重要吗???