Quantcast
Channel: php教程 | java教程 |码农网 »码农
Browsing latest articles
Browse All 15 View Live

使用Jackson格式化输出JSON

本文介绍使用Jackson格式化输出JSON User user = new User(); ObjectMapper mapper = new ObjectMapper(); System.out.println(mapper.writeValueAsString([......] Read more

View Article


.svn隐藏文件清理工具(使用java删除指定目录下所有.svn目录)

使用svn的码农都知道,有时候svn种的.svn目录很烦人,总想着把它们删掉。如果手工去做,那就不能算是码农了。本文博主码农造了一个轮子:.svn隐藏文件清理工具(使用java删除指定录下所有.svn目录) 代码如下: package cn.hezhiming.util; impo[......] Read more

View Article


mysql备份shell脚本

mysql备份shell脚本 修改脚本中数据库名称,数据库用户名和密码,以及mysqldump工具的路径和备份数据存储目录即可。 db_backup.sh #!/bin/bash #global configurations dates=`date +%Y%m%d` the_db_nam[......] Read more

View Article

linux下添加定时任务 cron jobs

The cron service (daemon) runs in the background and constantly checks the /etc/crontab file, and /etc/cron.*/ directories. It also checks the /var/sp[......] Read more

View Article

memcached基本使用

这是一个运行在线上的memcached实例,本文主要记录了查看memcached服务运行情况、memcached运行端口信息,telnet连接memcached,使用memcached命令查看基本信息,列出memcached key等。 查看本机ip [user1]# ifconfig[......] Read more

View Article


得到apk的开发者签名

解压apk包,切换目录到 META-INF下,执行keytool -printcert -file CERT.RSA 例子: F:\app-res\60621\apk\60621\META-INF>keytool -printcert -file CERT.RSA 所有者: CN=S4[......] Read more

View Article

Intelij idea 生成javadoc utf-8乱码

Intelij Idea: Tools==Generate javadoc 解决生成javadocs时中文乱码问题,指定文档输出编码 点击(此处)折叠或打开 -encoding UTF-8 -charset UTF-8 -docencoding UTF-8

View Article

wordpress迁移后管理员admin无权限发文章

我的WordPress从虚拟空间迁移到sae,数据库原封不动的迁移。 登陆后发现不能“发布”文章了,发文章按钮变成了“提请审批”。 最后发现是因为迁移过程中,wp_post表的ID主键自增消失了,需要重新设置一下auto_increment,取消默认值。

View Article


WordPress数据库的清理

WordPress运行一段时间后,会产生大量文章的自动保存的草稿,这些内容会占用很大的数据库空间。本文记录对这些自动保存的草稿的清理。 第一步:备份数据库 第二步:运行下面sql DELETE FROM wp_posts WHERE post_type ='revision'; 第三部:优化表wp_posts OPTIMIZE TABLE wp_posts;...

View Article


Git常用命令

git clone [url] git add * git commit -a … 继续阅读 →

View Article
Browsing latest articles
Browse All 15 View Live