分类:折腾日期:2012-07-26 - 18:17:34评论:23条作者:老谢
//替换评论者的链接
UPDATE wp_comments SET comment_author_url = REPLACE( comment_author_url, ’http://oldurl’, ’http://newurl’ );
//替换文章中的链接
UPDATE wp_posts SET post_content = REPLACE( post_content, ’http://oldurl’, ’http://newurl’ );
//替换评论者的电子邮箱地址
UPDATE wp_comments SET comment_author_email = REPLACE( comment_author_email, ’old-email@address.com’, ’new-email@address.com’ );
//替换评论者的昵称
UPDATE wp_comments SET comment_author = REPLACE( comment_author, ’old_author’, ’new_author’ ); |
//替换评论者的链接
UPDATE wp_comments SET comment_author_url = REPLACE( comment_author_url, ’http://oldurl’, ’http://newurl’ );
//替换文章中的链接
UPDATE wp_posts SET post_content = REPLACE( post_content, ’http://oldurl’, ’http://newurl’ );
//替换评论者的电子邮箱地址
UPDATE wp_comments SET comment_author_email = REPLACE( comment_author_email, ’old-email@address.com’, ’new-email@address.com’ );
//替换评论者的昵称
UPDATE wp_comments SET comment_author = REPLACE( comment_author, ’old_author’, ’new_author’ );
PS:出处实在找不到了,这里向原作者表示抱歉,之前保存到本地,为了方便查阅就贴到了博客。
分类:linux日期:2012-07-05 - 18:52:05评论:13条作者:老谢
我是root,删文件居然提斯和无操作权限,系统是要逆天么?
用ll命令查看权限,看似正常,但是我们不能只看表面。。用lsattr命令,就找到不正常的地方了。。
[root@aples fcgi-bin]# lsattr
—-i——– ./php5.fcgi
有个i属性,属性的含义如下(谷歌之):
i:设定文件不能被删除、改名、设定链接关系,同时不能写入或新增内容。i参数对于文件 系统的安全设置有很大帮助。
找到怎么回事了,那就能解决了,搜搜怎么取消这个i属性就完了,操作如下:
chattr -i php5.fcgi
完事了,删除吧!
分类:折腾日期:2012-06-08 - 17:58:59评论:49条作者:老谢
首先,在主题文件functions.php加入下面的代码:
function photo($atts, $content=null){
$exif = exif_read_data(''.$content.'', 0, true);
return "<br />\n"."<strong>[器材]</strong> ".$exif[IFD0][Make].$exif[IFD0][Model]."<br />\n"."<strong>[参数]</strong> "."光圈:".$exif[COMPUTED][ApertureFNumber]." 快门:".$exif[EXIF][ExposureTime]." 焦距:".$exif[EXIF][FocalLength]."mm"." ISO:".$exif[EXIF][ISOSpeedRatings]." 拍摄日期:".$exif[EXIF][DateTimeOriginal];
} |
function photo($atts, $content=null){
$exif = exif_read_data(''.$content.'', 0, true);
return "<br />\n"."<strong>[器材]</strong> ".$exif[IFD0][Make].$exif[IFD0][Model]."<br />\n"."<strong>[参数]</strong> "."光圈:".$exif[COMPUTED][ApertureFNumber]." 快门:".$exif[EXIF][ExposureTime]." 焦距:".$exif[EXIF][FocalLength]."mm"." ISO:".$exif[EXIF][ISOSpeedRatings]." 拍摄日期:".$exif[EXIF][DateTimeOriginal];
}
然后编辑主题文件的style.css加入下面css样式:
.exif {
background: #FFD;
height: 50px;
font-size: 12px;
line-height: 16px;
border: 1px solid #999;
border-left: 4px solid #600;
margin: 2px 0;
padding: 4px;
} |
.exif {
background: #FFD;
height: 50px;
font-size: 12px;
line-height: 16px;
border: 1px solid #999;
border-left: 4px solid #600;
margin: 2px 0;
padding: 4px;
}
调用格式:
<div class="exif">[pho]http://图片地址[/pho]</div> |
<div class="exif">[pho]http://图片地址[/pho]</div>
演示效果如图:
ps:本人css实在烂,弄不出来好看的样式
本文参考自:http://cc.80sbar.com/realize-wordpress-display-images-exif-information.html
分类:乱七八糟日期:2012-05-27 - 14:54:41评论:31条作者:老谢
不知不觉博客换上vps已经三个多月了,100天在线~ 截图留念下
分类:思科技术日期:2012-05-16 - 9:23:45评论:9条作者:老谢
拓扑如下:
实验目的:由2.0网段的HDCP服务器为1.0网段的DHCP客户端分配ip地址。
DCHP_Client(config)#int e 0/0
DCHP_Client(config-if)#ip address dhcp
DCHP_Client(config-if)#no shut |
DCHP_Client(config)#int e 0/0
DCHP_Client(config-if)#ip address dhcp
DCHP_Client(config-if)#no shut
R1(config)#int e 0/0
R1(config-if)#ip add 192.168.1.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#int e 0/1
R1(config-if)#ip add 192.168.2.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#int e 0/0
R1(config-if)#ip helper-address 192.168.2.2 |
R1(config)#int e 0/0
R1(config-if)#ip add 192.168.1.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#int e 0/1
R1(config-if)#ip add 192.168.2.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#int e 0/0
R1(config-if)#ip helper-address 192.168.2.2
HDCP_Server(config)#int e 0/0
HDCP_Server(config-if)#ip add 192.168.2.2 255.255.255.0
HDCP_Server(config-if)#no shut
HDCP_Server(config-if)#exit
HDCP_Server(config)#ip dhcp pool test
HDCP_Server(dhcp-config)#network 192.168.1.0 /24
HDCP_Server(dhcp-config)#default-router 192.168.1.1
HDCP_Server(dhcp-config)#exit
HDCP_Server(config)#ip dhcp excluded-address 192.168.1.1 192.168.1.10
HDCP_Server(config)#end
DCP_Server#conf t
HDCP_Server(config)#ip route 192.168.1.0 255.255.255.0 ethernet 0/0 |
HDCP_Server(config)#int e 0/0
HDCP_Server(config-if)#ip add 192.168.2.2 255.255.255.0
HDCP_Server(config-if)#no shut
HDCP_Server(config-if)#exit
HDCP_Server(config)#ip dhcp pool test
HDCP_Server(dhcp-config)#network 192.168.1.0 /24
HDCP_Server(dhcp-config)#default-router 192.168.1.1
HDCP_Server(dhcp-config)#exit
HDCP_Server(config)#ip dhcp excluded-address 192.168.1.1 192.168.1.10
HDCP_Server(config)#end
DCP_Server#conf t
HDCP_Server(config)#ip route 192.168.1.0 255.255.255.0 ethernet 0/0
配置完以后,十几秒就会看到模拟客户端的路由器出现下面的提示:
DCHP_Client#Interface Ethernet0/0 assigned DHCP address 192.168.1.11, mask 255.255.255.0
已经成功获取到了192.168.1.11这个地址。
分类:吐槽日期:2012-05-05 - 22:50:16评论:21条作者:老谢
Mr.children – くるみ ↓ 已经不能回头了啊,继续向前走吧,这条没有你的路
[audio:http://storage.live.com/items/F15975B3FF1399DC!128?filename=Mr.children%20-%20%E3%81%8F%E3%82%8B%E3%81%BF.mp3.mp3]
分类:运维技术日期:2012-05-02 - 8:42:41评论:19条作者:老谢
XenServer下载地址:http://www.citrix.com.cn/products/xenserver/index.aspx
首先感谢:销声匿迹提供的帮助。
安装XenServer需要CPU支持虚拟化,检查当前是否支持虚拟化,可以使用下面的工具:http://115.com/file/bej4wjvf#securable.rar
我使用VM安装的时候,总是无法进入安装页面,反复检查后发现是bios没开启英特尔的VT虚拟化导致的,我的bios开启方法如下:
开启后就可以正常安装了,至于安装步骤,网上教程一堆,此处不做解释。最后要说的是,win下的控制台XenCenter有中文版~并且XenServer不支持直接挂在IOS,只能建NFS服务器来选择IOS,比较麻烦……
最新评论
jiyouzhan:这篇文章写得深入浅出,让我这个...
空空裤兜:在天猫买的利维斯顿,阿里智能APP...
林羽凡:我突然发现,你也记录了很多博文了。
菊座:小米的东西还行
zwwooooo:一般电器产品都jd,就是想售后身心
zwwooooo:能随便搞个公司玩玩也算是实力选手
大D:坚持就是胜利哈哈哈
老麦:看着那一排日志存档,老前辈了啊。
大峰:这售后可以嘛~
平安家属子痕:终于更新了,你这年更都算不上...