WordPress 正文添加标签选项

对于部分wp主题在正文页没有标签现实,这里提供两个简单的代码增加显示标签的功能。

1:代码比较简单就一行

标签: <?php the_tags(__(”), ‘, ‘); ?>

修改single.php,放入到the_content代码之后就可以了。

2:代码比较多,放入同样的位置即可:

$posttags = get_the_tags();
$content .= “[ 标签: ";
if ($posttags) {
$tag_i = 0;
foreach($posttags as $tag) {
if($tag_i > 0) { $content .= ', '; }
$content .= '<a href="' . get_tag_link($tag->term_id) . '">' .$tag->name .  '</a>';
$tag_i++;
}
}
else {
$content .=  '无';
}
content .= " ] <br>”;
$content .= “[ 固定链接:<a href='" . get_permalink() . "'>" . get_permalink() . "</a> ]<br/>”;

注册表非常规启动项

或说某天对一个qq截取聊天记录的东西很感兴趣,于是下载研究了下,结果研究完了软件删除。重启之后发现右下角有弹窗。

简单的用360和msconfig看了下没发现启动项。但是程序确实是后台运行了。 C:\\WINDOWS\\system32\\MySoftware.exe

于是到注册表中搜索,最后终于找到了,不过这个东西倒是可以隐藏启动项来用。效果貌似不错啊。

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows]
"DebugOptions"="2048"
"Documents"=""
"DosPrint"="no"
"load"=""
"NetMessage"="no"
"NullPort"="None"
"Programs"="com exe bat pif cmd"
"Run"="C:\\WINDOWS\\system32\\MySoftware"
"Device"="Microsoft XPS Document Writer,winspool,Ne00:"

驱动开发学习笔记(2)-开发环境和第一个sys驱动

说白了,没什么技术含量全是抄得书上的代码,而写下来不过是为了加深对这个东西的印象。

1.开发环境下载搭建

http://connect.microsoft.com/

wdk

微软官方的下载地址,需要登陆,可以用windows live id或者msn帐号登陆。 中间有一步需要注册,注册后登录会跳转的控制中心,点首页。从左侧类别选择开发人员工具,知道到Windows Driver kit下载安装就可以了。

Continue Reading

驱动开发学习笔记(1)-调试环境调试器设置【WinDbg】

从今天开始正式开始学习开发驱动,很多的东西可能都需要慢慢开始把。现在的感觉依旧是学艺不精。东西学的太多太杂。
记录下这些东西怕用的时候会忘了。也不知道该怎么办了。
1.驱动程序安装
工具:srvinstw.exe
猛击此处下载!

工具使用简单明了,也就没不要记录了。需要注意的是在file path这里只能手工输入,如果浏览的话只能看到exe文件。

Continue Reading

【分享】雷人语录中英版

1. My advantage is that I am handsome, but my disadvantage is that the handsomeness is not so obvious。

我的优点是:我很帅;而我的缺点是:我帅得不明显。

2. When I went shopping one day, a group of girls stopped me, saying that I was handsome. But I denied it, and then they hit me and said I am hypocritical。

有一次我上街,一群女孩把我拦住,她们说我帅。我不承认,她们就打我,还说我虚伪。

3. I am an angel, and the reason why I can not go back to heaven is the problem of my weight。

我是天使,回不去天堂是因为体重的原因。

4. Although you wear some cologne, I can still vaguely smell a scummy whiff out of you。

虽然你身上喷了古龙水,但我还是能隐约闻到一股人渣味儿。

5. It does not hurt feelings, when it comes to money, but it indeed damn cost money when it comes to feelings。

谈钱不伤感情,但是谈感情最伤钱。

Continue Reading