<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>TypeCodes</title><description>Beauty of programming</description><link>https://typecodes.com/</link><language>zh-CN</language><item><title>OpenAI限制免费账号（Free Tier）使用gpt-5.3-codex 和 gpt-5.4</title><link>https://typecodes.com/posts/openairemovefreegpt534/</link><guid isPermaLink="true">https://typecodes.com/posts/openairemovefreegpt534/</guid><description>2026-03-10 上午发现本地 codex 无法调用 cpa 服务器的 api，于是上 cpa 服务器查看了一下账号，发现已经无法使用 gpt5.4 了。同时 github 和 openai 社区也有反馈免费账号（Free Tier）的用户无法使用 gpt-5.3-codex 和 gpt-5.4...</description><pubDate>Thu, 12 Mar 2026 00:00:00 GMT</pubDate></item><item><title>serv00官方4月清理计划和新服务条款</title><link>https://typecodes.com/posts/serv00forbiddennezha/</link><guid isPermaLink="true">https://typecodes.com/posts/serv00forbiddennezha/</guid><description>serv00官方在2025-04-03突然发布了 02.04.2025 - 06.04.2025 的清理计划【April cleaning and new ToS】，并禁止了 fastdownload 、 p2p 、 盗版 、 网络攻击工具/脚本 等内容的托管。 To maintain the qu...</description><pubDate>Sat, 05 Apr 2025 00:00:00 GMT</pubDate></item><item><title>github workflow构建哪吒探针FreeBSD安装包</title><link>https://typecodes.com/posts/githubworkflownezhafreebsdserv00/</link><guid isPermaLink="true">https://typecodes.com/posts/githubworkflownezhafreebsdserv00/</guid><description>之前写了关于 如何在serv00/ct8机器上一键安装哪吒探针 https://typecodes.com/python/serv00ct8nezhav1.html 的内容，这里主要分享下如何构建这种运行在 serv00/ct8 这种 FreeBSD 操作系统上的哪吒探针面板二进制安装包。 当然，也...</description><pubDate>Sun, 09 Feb 2025 00:00:00 GMT</pubDate></item><item><title>serv00和ct8上的哪吒探针V1开启Github和Gitee登录</title><link>https://typecodes.com/posts/serv00ct8nezhav1githubgiteelogin/</link><guid isPermaLink="true">https://typecodes.com/posts/serv00ct8nezhav1githubgiteelogin/</guid><description>一、背景 上篇文章 https://typecodes.com/python/serv00ct8nezhav1.html https://typecodes.com/python/serv00ct8nezhav1.html 介绍了如何在serv00/ct8主机上一键安装哪吒探针V1版本（含面板和ag...</description><pubDate>Sat, 04 Jan 2025 00:00:00 GMT</pubDate></item><item><title>serv00和ct8主机一键安装哪吒探针V1版本和多主机保活</title><link>https://typecodes.com/posts/serv00ct8nezhav1/</link><guid isPermaLink="true">https://typecodes.com/posts/serv00ct8nezhav1/</guid><description>一、背景 上周末L站有佬友反馈之前写的 serv00 和 ct8 一键安装哪吒探针的github项目: https://github.com/vfhky/serv00 ct8 nezha https://github.com/vfhky/serv00 ct8 nezha 出现无法 unzip: Un...</description><pubDate>Wed, 11 Dec 2024 00:00:00 GMT</pubDate></item><item><title>博客完成Follow.is订阅认证</title><link>https://typecodes.com/posts/blogrssfollowiscertification/</link><guid isPermaLink="true">https://typecodes.com/posts/blogrssfollowiscertification/</guid><description>一、前言 最近一个RSS订阅 follow.is https://follow.is 火了起来，在收到内测邀请码注册后，顺便在上面把博客的订阅也做了认证。 目前体验下来还可以，界面比较清爽，订阅源比较丰富，美中不足的是目前还没有手Y客户端。 ! typecodes.com完成follow.is订阅认...</description><pubDate>Sat, 19 Oct 2024 00:00:00 GMT</pubDate></item><item><title>serv00和 ct8主机一键安装哪吒探针和多主机保活 (六)</title><link>https://typecodes.com/posts/serv00ct8nezha6/</link><guid isPermaLink="true">https://typecodes.com/posts/serv00ct8nezha6/</guid><description>一、前言 由于 serv00和ct8主机一键安装哪吒探针的项目 github.com/vfhky/serv00 ct8 nezha https://github.com/vfhky/serv00 ct8 nezha 的易用性和功能多样性，目前在github上已经有50多个star了。这期间也有多个大...</description><pubDate>Sun, 13 Oct 2024 00:00:00 GMT</pubDate></item><item><title>博客切换到Cloudflare并使用免费域名进行DNS解析优选</title><link>https://typecodes.com/posts/blogcloudflaredns/</link><guid isPermaLink="true">https://typecodes.com/posts/blogcloudflaredns/</guid><description>一、前言 大概 6 月份的时候，博客把 typecodes.com 域名解析迁移到了 Cloudflare。但是如果直接使用 Cloudflare 的解析，在国内的效果基本相当于 “减速器”，所以得需要对域名的 dns 解析进行优选。 ! Cloudflare域名优选后的效果 https://cdn...</description><pubDate>Sun, 29 Sep 2024 00:00:00 GMT</pubDate></item><item><title>serv00和 ct8主机一键安装哪吒探针和多主机保活 (五)</title><link>https://typecodes.com/posts/serv00ct8nezha5/</link><guid isPermaLink="true">https://typecodes.com/posts/serv00ct8nezha5/</guid><description>一、前言 前文 serv00和ct8主机一键安装哪吒探针和多主机保活 四 - TypeCodes https://typecodes.com/python/serv00ct8nezha4.html 介绍了如何 utils.sh 脚本的使用方法，例如修改配置等等，那么这篇文章主要是介绍新增的哪吒面板数...</description><pubDate>Sat, 07 Sep 2024 00:00:00 GMT</pubDate></item><item><title>serv00和 ct8主机一键安装哪吒探针和多主机保活 (四)</title><link>https://typecodes.com/posts/serv00ct8nezha4/</link><guid isPermaLink="true">https://typecodes.com/posts/serv00ct8nezha4/</guid><description>一、工具说明 前文 serv00和ct8主机一键安装哪吒探针和多主机保活 三 - TypeCodes https://typecodes.com/python/serv00ct8nezha3.html 介绍了如何使用青龙面板进行保活，这一篇文章主要是介绍 https://github.com/vfh...</description><pubDate>Sun, 01 Sep 2024 00:00:00 GMT</pubDate></item><item><title>serv00和ct8主机一键安装哪吒探针和多主机保活(三)</title><link>https://typecodes.com/posts/serv00ct8nezha3/</link><guid isPermaLink="true">https://typecodes.com/posts/serv00ct8nezha3/</guid><description>一、青龙面板 前文 serv00和ct8主机一键安装哪吒探针和多主机保活 二 - TypeCodes https://typecodes.com/python/serv00ct8nezha2.html 介绍了 https://github.com/vfhky/serv00 ct8 nezha htt...</description><pubDate>Tue, 27 Aug 2024 00:00:00 GMT</pubDate></item><item><title>serv00和ct8主机一键安装哪吒探针和多主机保活(二)</title><link>https://typecodes.com/posts/serv00ct8nezha2/</link><guid isPermaLink="true">https://typecodes.com/posts/serv00ct8nezha2/</guid><description>一、项目的简单架构说明 前文 serv00和ct8主机一键安装哪吒探针和多主机保活 - TypeCodes https://typecodes.com/python/serv00ct8nezha.html 介绍了 https://github.com/vfhky/serv00 ct8 nezha h...</description><pubDate>Sun, 25 Aug 2024 00:00:00 GMT</pubDate></item><item><title>serv00和ct8主机一键安装哪吒探针和多主机保活</title><link>https://typecodes.com/posts/serv00ct8nezha/</link><guid isPermaLink="true">https://typecodes.com/posts/serv00ct8nezha/</guid><description>一、背景 基于 serv00 和 ct8 这种配置较低的主机，比较适合用来做探针。目前还没发现能自动安装哪吒面板和 agent 客户端的脚本，以及多主机间动态保活，所以写了这个 github 项目: https://github.com/vfhky/serv00 ct8 nezha https://...</description><pubDate>Sun, 25 Aug 2024 00:00:00 GMT</pubDate></item><item><title>在serv00主机上安装哪吒探针</title><link>https://typecodes.com/posts/server00installnezha/</link><guid isPermaLink="true">https://typecodes.com/posts/server00installnezha/</guid><description>一、探针 前段时间申请了 serv00 主机一直闲置没有用，但是这个主机的配置比较低（512 M 内存），所以准备用来装个工具类的小应用。 之前使用 Uptime Kuma 创建了一个比较全能的探针： web monitor https://status.typecodes.com/status/w...</description><pubDate>Sun, 28 Jul 2024 00:00:00 GMT</pubDate></item><item><title>一款基于typecho官网的pelican主题</title><link>https://typecodes.com/posts/pelicantypechotheme/</link><guid isPermaLink="true">https://typecodes.com/posts/pelicantypechotheme/</guid><description>一、主题说明 一款用于 pelcian 博客的主题，移植自 Typecho https://typecho.org/ 官网的皮肤，所以取名为 pelican-typecho 。 同时也支持谷歌站内搜索、disqus 评论等，目前 我自己的博客 https://typecodes.com 也在用，欢迎...</description><pubDate>Wed, 08 May 2024 00:00:00 GMT</pubDate></item><item><title>给博客(pelican)增加git提交和自动构建信息</title><link>https://typecodes.com/posts/pelicanaddgitcommitcicdinfo/</link><guid isPermaLink="true">https://typecodes.com/posts/pelicanaddgitcommitcicdinfo/</guid><description>一、pelican 的构建和生成： 博客使用的是 pelican 开源静态博客系统，之前每次生成 html 代码都需要手动在服务器上用脚本生成的。也就是每次新增或者修改了文章都需要手工去执行脚本，然后发布到 nginx 目录。 鉴于每次的生成流程过于繁琐，所以最近考虑把博客的生成过程改用自动构建，同...</description><pubDate>Sat, 04 May 2024 00:00:00 GMT</pubDate></item><item><title>使用ChatGPT对GitHub项目进行CodeReview</title><link>https://typecodes.com/posts/chatgptcodereview/</link><guid isPermaLink="true">https://typecodes.com/posts/chatgptcodereview/</guid><description>前段时间兴起的 ChatGPT 热，跟风研究了一些应用方向。七月份的时候刚好自己打算写一个简易的 redis sentinel 数据解析的服务端项目，于是想用 ChatGPT 的对话模式来对提交的 git 代码进行 review。将近两个月使用下来，自己觉得 review 效果还不错。 ! 使用Ch...</description><pubDate>Fri, 01 Sep 2023 00:00:00 GMT</pubDate></item><item><title>Linux C/C++工程中可生成 ELF、动/静态库文件的通用 Makefile（二）</title><link>https://typecodes.com/posts/cppgeneralmakefile2/</link><guid isPermaLink="true">https://typecodes.com/posts/cppgeneralmakefile2/</guid><description>今天对之前写的 Linux C/C++工程中可生成ELF、动/静态库文件的通用Makefile - TypeCodes https://typecodes.com/cseries/cppgeneralmakefile.html 文章里面的 Makefile 进行了优化，增加了在当前目录生成单个可执行...</description><pubDate>Sun, 04 Jun 2023 00:00:00 GMT</pubDate></item><item><title>utuntu22.04安装含brotli模块的Ningx</title><link>https://typecodes.com/posts/ubuntu2204installbrotlinginx/</link><guid isPermaLink="true">https://typecodes.com/posts/ubuntu2204installbrotlinginx/</guid><description>一、更新源： shell cp /etc/apt/sources.list /etc/apt/sources.list.bak 替换成阿里云的源 sudo bash -c &quot;cat /etc/apt/sources.list &amp;&amp; apt update deb http://mirrors.aliy...</description><pubDate>Mon, 29 May 2023 00:00:00 GMT</pubDate></item><item><title>使用shell脚本导出MySql查询的月表数据到EXCEL中</title><link>https://typecodes.com/posts/exportmysqlshell1/</link><guid isPermaLink="true">https://typecodes.com/posts/exportmysqlshell1/</guid><description>经常会踫到这样的场景需求：自定义时间从MySql流水月表中 SELECT 出来数据到excel报表文件中，所以自己写了这个shell脚本来处理。 一、实现思路 代码比较简单，主要使用了 mysql -e 执行SQL语句，然后重定向到txt文件中。由于linux默认是 uft-8 的格式，所以在使用 ...</description><pubDate>Sun, 02 Aug 2020 00:00:00 GMT</pubDate></item><item><title>使用shell脚本批量插入数据到MySQL中</title><link>https://typecodes.com/posts/batchinsertmysqlshell1/</link><guid isPermaLink="true">https://typecodes.com/posts/batchinsertmysqlshell1/</guid><description>经常会踫到这样的场景需求：批量向MySQL数据库插入数据，显然手工 INSERT 成千上万条数据是不现实的，所以自己写了这个shell脚本来处理。 一、具体需求 shell脚本批量插入10万条数据到MySQL中，其中对应表唯一索引是用户 uid 。因此在程序循环1万次数时，每次都使 uid 自增1就...</description><pubDate>Wed, 15 Apr 2020 00:00:00 GMT</pubDate></item><item><title>Python脚本上传博客自定义的SSL证书到七牛云</title><link>https://typecodes.com/posts/qiniuletssl1/</link><guid isPermaLink="true">https://typecodes.com/posts/qiniuletssl1/</guid><description>博客图片域名 cnd.typecodes.com 的SSL证书是通过Let&apos;s Encrypt申请的，因为证书有效期为3个月，所以需要用脚本定时去重新申请。 重新申请证书主要步骤为： 1、源主机上创建crontab定时任务； 2、先把图片域名DNS解析到源主机上，重新申请Let&apos;s Encrypt证...</description><pubDate>Sun, 23 Jun 2019 00:00:00 GMT</pubDate></item><item><title>脚本自动切换博客图片域名在阿里云的DNS解析</title><link>https://typecodes.com/posts/aliyundnsanalysis1/</link><guid isPermaLink="true">https://typecodes.com/posts/aliyundnsanalysis1/</guid><description>自从 七牛 https://portal.qiniu.com/qvm/active?code=1380335858lRVi &quot;查看优惠码&quot; 开放了自定义SSL证书服务后，博主就通过 CNAME 方式把博客图片对应的域名 cdn.typecodes.com 解析到了七牛，然后把Let&apos;s Encryp...</description><pubDate>Sat, 01 Jun 2019 00:00:00 GMT</pubDate></item><item><title>使用 fastjson 解析json中的键值：乱序和原样输出</title><link>https://typecodes.com/posts/fastjsonorder1/</link><guid isPermaLink="true">https://typecodes.com/posts/fastjsonorder1/</guid><description>最近项目需要做一个java版本的demo，简单来做就是按照api文档拼装请求报文请求自己的服务端，收到应答报文后做MD5签名验证等后续处理。由于客户端和服务端之前通讯报文是json格式的，那么就会涉及到json报文的生成和解析。网上找了下，貌似阿里巴巴的 fastjson 库评价不错，所以就直接拿过...</description><pubDate>Tue, 22 Jan 2019 00:00:00 GMT</pubDate></item><item><title>Python自动析构时出现Exception AttributeError: &apos;NoneType&apos; object has no attribute的问题</title><link>https://typecodes.com/posts/destrutionattributeerrornonetype1/</link><guid isPermaLink="true">https://typecodes.com/posts/destrutionattributeerrornonetype1/</guid><description>昨晚在整理自己的python脚本的时候，想把其中一个脚本中的 print 函数全都改成 logging 包中的相关函数。改完后一运行却出现了 Exception AttributeError: &apos;NoneType&apos; object has no attribute 的错误，网上搜了一下没找到相关答案。...</description><pubDate>Wed, 19 Dec 2018 00:00:00 GMT</pubDate></item><item><title>awk中符点型小数去掉小数点转换成整数的方法</title><link>https://typecodes.com/posts/awkdecimaltoint1/</link><guid isPermaLink="true">https://typecodes.com/posts/awkdecimaltoint1/</guid><description>在写shell脚本时，会遇到要把一个符点数转换成整数的情况。之前线上一个shell脚本在用awk从文本中读取出一个带两位小数的符点数后，是直接把它乘以100转换成整数的。脚本一直运行正常，直到后面遇到了一个符点数 19004.44 ，它在乘以100后得到的不是 1900444 而是科学记数 1.90...</description><pubDate>Wed, 28 Mar 2018 00:00:00 GMT</pubDate></item><item><title>MySQL5.7中使用GROUP_CONCAT数据被截断的问题</title><link>https://typecodes.com/posts/mysql57groupconcattruncated/</link><guid isPermaLink="true">https://typecodes.com/posts/mysql57groupconcattruncated/</guid><description>前天在生产环境中遇到一个问题：使用 GROUP CONCAT 函数select出来的数据被截断了，最长长度不超过1024字节，开始还以为是navicat客户端自身对字段长度做了限制的问题。后面故意重新INSERT了一个字段长度超1024字节的数据，但是navicat能完整展示出来，所以就排除了nav...</description><pubDate>Wed, 14 Mar 2018 00:00:00 GMT</pubDate></item><item><title>分布式系统：一致性hash算法的应用</title><link>https://typecodes.com/posts/consistenthashdistributed1/</link><guid isPermaLink="true">https://typecodes.com/posts/consistenthashdistributed1/</guid><description>前段时间在了解分布式，发现firefoxbug在博客中写的这篇 《一致性hash在分布式系统中的应用》 http://www.firefoxbug.com/index.php/archives/2791/ &quot;查看原文&quot; 对这个问题说明得比较清晰易懂，本文主要是自己的理解和实践。 在后端一般会遇到这样...</description><pubDate>Sat, 17 Feb 2018 00:00:00 GMT</pubDate></item><item><title>使用shell脚本解决Navicat导出excel数据不全的问题</title><link>https://typecodes.com/posts/navicatxportoverflow1/</link><guid isPermaLink="true">https://typecodes.com/posts/navicatxportoverflow1/</guid><description>月末需要对系统注册用户进行报表统计，在使用Navicat从MySQL数据库中导出数据到excel文件时，发现最大只能导出为65536（美好的数字）行的数据。按理说 Navicat应该是从数据库中读取一条记录会立即写到excel文件中，不应该只读取65536范围内的数据然后一次性写到文件里面。 一、问...</description><pubDate>Wed, 07 Feb 2018 00:00:00 GMT</pubDate></item><item><title>修复CentOS7升级Python到3.6版本后yum不能使用的问题（续）</title><link>https://typecodes.com/posts/python3caseyumbug2/</link><guid isPermaLink="true">https://typecodes.com/posts/python3caseyumbug2/</guid><description>在 上一篇文章 https://typecodes.com/linux/python3caseyumbug.html &quot;《修复CentOS7升级Python到3.6版本后yum不能使用的问题》&quot; 中通过重装yum解决了无法使用Python3解释执行的问题，但是 yum -y update 后又会使得...</description><pubDate>Sun, 28 Jan 2018 00:00:00 GMT</pubDate></item><item><title>修复CentOS7升级Python到3.6版本后yum不能使用的问题</title><link>https://typecodes.com/posts/python3caseyumbug/</link><guid isPermaLink="true">https://typecodes.com/posts/python3caseyumbug/</guid><description>之前把现有这台阿里CentOS7.2系统的Python2.7.5升级成Python3.6后，yum工具就不能使用了。当时网上查了下原因，都说是Python3导致的，但是试了很多种方法还是没解决，后面也就一直没管了。因为最近要弄一个Nodejs微信小程序，需要用yum安装一些开发工具，就不得不修复这个...</description><pubDate>Thu, 25 Jan 2018 00:00:00 GMT</pubDate></item><item><title>Linux C/C++多进程同时写一个文件（三）</title><link>https://typecodes.com/posts/linuxmutilprocesswrite3/</link><guid isPermaLink="true">https://typecodes.com/posts/linuxmutilprocesswrite3/</guid><description>本文是这《Linux C/C++多进程同时写一个文件》系列文章的第三篇， 上一篇文章 https://typecodes.com/cseries/linuxmutilprocesswrite2.html &quot;查看原文&quot; 演示了两个亲缘关系的进程（父子进程）同时写一个文件的情形，并得出了 数据只会错乱但...</description><pubDate>Sun, 29 Oct 2017 00:00:00 GMT</pubDate></item><item><title>Linux C/C++多进程同时写一个文件（二）</title><link>https://typecodes.com/posts/linuxmutilprocesswrite2/</link><guid isPermaLink="true">https://typecodes.com/posts/linuxmutilprocesswrite2/</guid><description>本文是这《Linux C/C++多进程同时写一个文件》系列文章的第二篇， 上一篇文章 https://typecodes.com/cseries/linuxmutilprocesswrite1.html &quot;查看原文&quot; 演示了两个非亲缘关系的进程同时写一个文件的情形，并得出了 数据只会错乱但不会覆盖 ...</description><pubDate>Sun, 29 Oct 2017 00:00:00 GMT</pubDate></item><item><title>Linux C/C++多进程同时写一个文件（一）</title><link>https://typecodes.com/posts/linuxmutilprocesswrite1/</link><guid isPermaLink="true">https://typecodes.com/posts/linuxmutilprocesswrite1/</guid><description>近期会写关于《Linux C/C++多进程同时写一个文件》的系列文章，主要是探索在Linux下非亲缘关系的多进程和具有亲缘关系的多进程同时写一个文件的问题。例如，当两个进程同时写一个文件，那么写入结果是怎样的呢？是否会出现数据丢失的情况？是否会出现覆盖？是否会出现错乱？ 本文是这一系列文章的第一篇，...</description><pubDate>Sat, 28 Oct 2017 00:00:00 GMT</pubDate></item><item><title>Linux C++简单实现一个批量插入的sql脚本生成工具</title><link>https://typecodes.com/posts/genmysqlinsertsql/</link><guid isPermaLink="true">https://typecodes.com/posts/genmysqlinsertsql/</guid><description>之前项目上隔三差五地要手工批量导入一些数据，于是自己用C++写了这个sql脚本文件的生成工具。 ! Linux C++简单实现一个批量插入的sql脚本生成工具 https://cdn.typecodes.com/2017/10/genmysqlinsertsql 2.png &quot;Linux C++简单...</description><pubDate>Wed, 18 Oct 2017 00:00:00 GMT</pubDate></item><item><title>CentOS7.3使用CMake编译安装最新的LLVM和Clang4.0.1</title><link>https://typecodes.com/posts/cmakellvmclang4/</link><guid isPermaLink="true">https://typecodes.com/posts/cmakellvmclang4/</guid><description>前段时间试了把虚拟机CentOS下面的C/C++工程中的Makefile文件改用clang/clang++来编译，这篇文章主要是介绍如何在CentOS7.3系统编译安装最新的LLVM和Clang4.0.1。 关于GCC、LLVM和Clang关系可以参考 《这篇文章》 http://www.cnblo...</description><pubDate>Sat, 07 Oct 2017 00:00:00 GMT</pubDate></item><item><title>Typecho同步新浪微博的插件（可提取文章图片作配图）</title><link>https://typecodes.com/posts/typechosynweibo/</link><guid isPermaLink="true">https://typecodes.com/posts/typechosynweibo/</guid><description>由于博客在2015-12-10已经从Typecho转到了Pelican，所以把这个Typecho同步新浪微博的插件放在Github上后就一直也没管了。最近有同学在Github上提了 issue https://github.com/vfhky/WeiboSync/issues &quot;查看issue&quot; ，...</description><pubDate>Tue, 04 Jul 2017 00:00:00 GMT</pubDate></item><item><title>shell遍历输出两个日期范围内所有的日期</title><link>https://typecodes.com/posts/alldateduringtwodays1/</link><guid isPermaLink="true">https://typecodes.com/posts/alldateduringtwodays1/</guid><description>在平常c/c++开发中经常遇到日期处理的情形，例如求两个给定的日期之间相差的天数或者需要使用map存储两个固定日期范围内的所有日期。前段时间项目中需要用shell脚本批量处理给定的两个日期范围内所有日期产生的日志，当时以为shell处理不方便就用c++来处理了。后面用shell实现了下，发现也挺简单...</description><pubDate>Thu, 22 Jun 2017 00:00:00 GMT</pubDate></item><item><title>使用sed和awk查找和替换字符串处理Makefile文件（三）</title><link>https://typecodes.com/posts/sedawkfindreplace3/</link><guid isPermaLink="true">https://typecodes.com/posts/sedawkfindreplace3/</guid><description>在 前文 https://typecodes.com/linux/sedawkfindreplace2.html &quot;《使用sed和awk查找和替换字符串处理Makefile文件二》&quot; 中演示了使用awk和sed命令正则查找和替换 Makefile https://typecodes.com/cser...</description><pubDate>Mon, 22 May 2017 00:00:00 GMT</pubDate></item><item><title>Linux C++使用函数模板实现JSON数据快速和完整写入到文件</title><link>https://typecodes.com/posts/templatejsoncpp2file1/</link><guid isPermaLink="true">https://typecodes.com/posts/templatejsoncpp2file1/</guid><description>昨天在自己的CentOS7机器上编译了JSONCPP库，然后根据api写了下面这个简单的测试程序。代码涉及了文件流数据读取和写入、jsoncpp库的读写api的使用。整个处理流程是先读取一个json格式文件的内容，然后把这些内容分别用jsoncpp库的 Json::FastWriter （快速写入）...</description><pubDate>Sun, 16 Apr 2017 00:00:00 GMT</pubDate></item><item><title>使用C++ STL库统计一散文中单词出现次数和行号</title><link>https://typecodes.com/posts/stlcalcarticlewordlines1/</link><guid isPermaLink="true">https://typecodes.com/posts/stlcalcarticlewordlines1/</guid><description>在开发过程中经常会遇到文件处理的情形，例如统计一篇文章单词的数量、行数、出现频率最高的几个单词等等。这篇文章主要通过C++来解析一篇文章，实现每个单词（不区分大小写）出现的总次数和出现的行号的统计。 ! 使用C++ STL库统计一散文中单词出现次数和行号 https://cdn.typecodes....</description><pubDate>Sun, 16 Apr 2017 00:00:00 GMT</pubDate></item><item><title>Git多仓库作子目录的双向同步：一次Git Subtree的实践</title><link>https://typecodes.com/posts/gitsubtree1/</link><guid isPermaLink="true">https://typecodes.com/posts/gitsubtree1/</guid><description>今年1月中旬的时候BZ在GitHub上收到Typecho社区组织 typecho-fans https://github.com/typecho-fans &quot;GitHub的Organizations名&quot; 的成员邀请，原来是想把所有TP的开源插件都整合到 GitHub https://github.c...</description><pubDate>Wed, 22 Mar 2017 00:00:00 GMT</pubDate></item><item><title>C++中使用vs2015和g++对new开辟的堆内存是否初始化的分析</title><link>https://typecodes.com/posts/gccvsheapnewinit1/</link><guid isPermaLink="true">https://typecodes.com/posts/gccvsheapnewinit1/</guid><description>在C++中使用 new 运算符在堆中申请一内存块的使用权的同时还可以执行对该内存块的初始化工作。下面通过使用2个类对象和2个基本数据类型来分析使用 new class object 、 new class object 和 new int 、 new int 对这块内存的初始化情况。 一、示例程序 ...</description><pubDate>Tue, 14 Mar 2017 00:00:00 GMT</pubDate></item><item><title>Linux TCP客户端出现CLOSE_WAIT后进入死循环</title><link>https://typecodes.com/posts/tcpclosewaitfinwaitrst1/</link><guid isPermaLink="true">https://typecodes.com/posts/tcpclosewaitfinwaitrst1/</guid><description>在 前文 https://typecodes.com/cseries/tcpclosewaitsigpipe.html &quot;《Linux TCP通信出现CLOSE WAIT后导致服务端进程挂掉》&quot; 中讲述了Linux服务端TCP的某个链路变成 CLOSE WAIT 状态，然后由于客户端已经关闭了（发送...</description><pubDate>Fri, 10 Mar 2017 00:00:00 GMT</pubDate></item><item><title>使用sed和awk查找和替换字符串处理Makefile文件（二）</title><link>https://typecodes.com/posts/sedawkfindreplace2/</link><guid isPermaLink="true">https://typecodes.com/posts/sedawkfindreplace2/</guid><description>在 前文 https://typecodes.com/linux/sedawkfindreplace1.html &quot;《使用sed和awk查找和替换字符串处理Makefile文件一》&quot; 中演示了使用awk和sed命令正则查找和替换 Makefile https://typecodes.com/cser...</description><pubDate>Thu, 09 Mar 2017 00:00:00 GMT</pubDate></item><item><title>使用sed和awk查找和替换字符串处理Makefile文件（一）</title><link>https://typecodes.com/posts/sedawkfindreplace1/</link><guid isPermaLink="true">https://typecodes.com/posts/sedawkfindreplace1/</guid><description>在 《使用sed命令批量处理Makefile文件的脚本》 https://typecodes.com/linux/handlemakefilebysed.html &quot;查看原文&quot; 文中使用sed命令对 前文 https://typecodes.com/cseries/cppgeneralmakefil...</description><pubDate>Wed, 22 Feb 2017 00:00:00 GMT</pubDate></item><item><title>C++删除map容器中指定值的元素</title><link>https://typecodes.com/posts/mapdelintstring/</link><guid isPermaLink="true">https://typecodes.com/posts/mapdelintstring/</guid><description>map容器是C++ STL中的重要一员，平时会遇到删除map容器中value为指定元素的问题，例如删除所有字符串为&quot;123&quot;或者能整除3的元素。 一、map容器下的方法说明 由于map容器下的方法较多，这里只列举代码中用到的几个方法： insert 方法： !text //插入val到pos的后面，...</description><pubDate>Sun, 26 Jun 2016 00:00:00 GMT</pubDate></item><item><title>使用sed命令批量处理Makefile文件的脚本</title><link>https://typecodes.com/posts/handlemakefilebysed/</link><guid isPermaLink="true">https://typecodes.com/posts/handlemakefilebysed/</guid><description>前面写了一篇文章 《Linux C/C++工程中可生成ELF、动/静态库文件的通用Makefile》 https://typecodes.com/cseries/cppgeneralmakefile.html &quot;查看原文&quot; ，里面的Makefile代码有个不好的地方需要修改。当编译.cpp文件时，使...</description><pubDate>Sat, 18 Jun 2016 00:00:00 GMT</pubDate></item><item><title>自己实现inet_aton和inet_ntoa函数功能</title><link>https://typecodes.com/posts/networkselfdefineconv/</link><guid isPermaLink="true">https://typecodes.com/posts/networkselfdefineconv/</guid><description>之前遇到过要自己实现 inet aton 和 inet ntoa 函数功能的问题，这里总结一下。 一、基本知识 网络字节序是大端模式，那么内存中的低地址存放的是数据的高位，内存中的高地址存放的是数据的低位。 inet aton 是将IPv4地址（点分法）转换成对应的十进制整数；而 inet ntoa...</description><pubDate>Fri, 08 Apr 2016 00:00:00 GMT</pubDate></item><item><title>C语言删除无序整型数组中的重复元素及时间复杂度</title><link>https://typecodes.com/posts/deldisorderintarrrepeatele/</link><guid isPermaLink="true">https://typecodes.com/posts/deldisorderintarrrepeatele/</guid><description>遇到一个题，大概要求是写一个函数处理来去掉一个无序的整型数组（例如int i arr = { 1, 2, 2, 3, 4, 2, 3, 5 };）中重复的元素，并返回最终的长度。 一、思路 看到这道题的时候，第一反应就是需要删除元素，然后联想到单链表。但是后面一想还是不划算，因为单链表还得先把数组中...</description><pubDate>Wed, 23 Mar 2016 00:00:00 GMT</pubDate></item><item><title>Linux使用KILL 0检测进程是否存在</title><link>https://typecodes.com/posts/kill0checkprocessifexist/</link><guid isPermaLink="true">https://typecodes.com/posts/kill0checkprocessifexist/</guid><description>之前遇到过 kill pid, 0 的情况，由于平常没注意到kill函数的形参为0的情况，不知道它的作用。后面用 man 2 kill 命令查看了下kill函数的说明，发现可以用来检测进程的存在情况。 ! man 2 kill查看关于形参0的说明 https://cdn.typecodes.com/...</description><pubDate>Mon, 14 Mar 2016 00:00:00 GMT</pubDate></item><item><title>UNIX环境高级编程（APUE）之单实例守护进程</title><link>https://typecodes.com/posts/apuesingledaemonprocess/</link><guid isPermaLink="true">https://typecodes.com/posts/apuesingledaemonprocess/</guid><description>在UNIX环境高级编程（APUE）中提到了守护进程的创建方法，思路很清晰，所以这里通过代码具体研究下。 ! UNIX环境高级编程（APUE）之单实例守护进程 https://cdn.typecodes.com/2016/03/apue.png &quot;UNIX环境高级编程（APUE）之单实例守护进程&quot; 一...</description><pubDate>Mon, 14 Mar 2016 00:00:00 GMT</pubDate></item><item><title>vsnprintf字符串格式化输出实例：日志中打印程序名和行号</title><link>https://typecodes.com/posts/vsnprintffilenameline/</link><guid isPermaLink="true">https://typecodes.com/posts/vsnprintffilenameline/</guid><description>在Linux C/C++程序中打印日志时，可能会由于需要打印未知个数的变量参数，那么 vsnprintf 函数就排上用场了。这里使用一个简单的C程序例子，演示在打印源程序文件名和该打印函数所在的行号的同时，使用vsnprintf函数打印个数未知的参数变量。 一、完整程序 代码比较简单，如果需要把内容...</description><pubDate>Sun, 13 Mar 2016 00:00:00 GMT</pubDate></item><item><title>Disqus支持的HTML标签和代码高亮方法</title><link>https://typecodes.com/posts/disqushtmltaghighlight/</link><guid isPermaLink="true">https://typecodes.com/posts/disqushtmltaghighlight/</guid><description>由于Disqus不支持Markdown的原因，所以在评论中使用HTML标签和代码高亮就不像Markdown那样方便了。在查看了 Disqus官方 https://help.disqus.com/customer/portal/articles/466253-what-html-tags-are-al...</description><pubDate>Thu, 03 Mar 2016 00:00:00 GMT</pubDate></item><item><title>更新博客生成发布及同步GitHub的Shell脚本：解决文件名空格问题</title><link>https://typecodes.com/posts/updatesyngithubpelicanshell/</link><guid isPermaLink="true">https://typecodes.com/posts/updatesyngithubpelicanshell/</guid><description>前面一篇文章 https://typecodes.com/linux/syngithubmarkdownpelican.html &quot;《同步GitHub Markdown文章到Linux服务器后更新Pelican博客的脚本》&quot; 通过Linux Shell脚本的方式，实现博客生成发布及同步GitHub的...</description><pubDate>Wed, 02 Mar 2016 00:00:00 GMT</pubDate></item><item><title>Linux TCP通信出现CLOSE_WAIT后导致服务端进程挂掉</title><link>https://typecodes.com/posts/tcpclosewaitsigpipe/</link><guid isPermaLink="true">https://typecodes.com/posts/tcpclosewaitsigpipe/</guid><description>在 前文 https://typecodes.com/cseries/tcpdumpwiresharkclosewait2.html &quot;《使用TCPDUMP和Wireshark排查服务端CLOSE WAIT二》&quot; 中讲述了Linux服务端TCP通信出现 CLOSE WAIT 状态的原因，这篇文章主要...</description><pubDate>Mon, 29 Feb 2016 00:00:00 GMT</pubDate></item><item><title>一个sigprocmask和sigsuspend函数的综合应用</title><link>https://typecodes.com/posts/sigprocmasksigsuspendapp/</link><guid isPermaLink="true">https://typecodes.com/posts/sigprocmasksigsuspendapp/</guid><description>在Linux服务端后台开发中，经常会用到信号处理函数： sigprocmask 和 sigsuspend 。这篇文章主要通过一个综合实例演示如何使用sigprocmask函数屏蔽目标信号（信号掩码）以及sigsuspend函数挂起进程。 ! Linux中编译执行sigprocmask sigsusp...</description><pubDate>Mon, 29 Feb 2016 00:00:00 GMT</pubDate></item><item><title>使用TCPDUMP和Wireshark排查服务端CLOSE_WAIT（二）</title><link>https://typecodes.com/posts/tcpdumpwiresharkclosewait2/</link><guid isPermaLink="true">https://typecodes.com/posts/tcpdumpwiresharkclosewait2/</guid><description>前文 《使用TCPDUMP和Wireshark排查服务端CLOSE WAIT一》 https://typecodes.com/cseries/tcpdumpwiresharkclosewait1.html &quot;查看原文&quot; 通过TCPDUMP和Wireshark在利用CentOS7作为服务端、Windo...</description><pubDate>Sun, 28 Feb 2016 00:00:00 GMT</pubDate></item><item><title>CentOS 7.2使用yum安装MYSQL 5.7.10</title><link>https://typecodes.com/posts/yuminstallmysql5710/</link><guid isPermaLink="true">https://typecodes.com/posts/yuminstallmysql5710/</guid><description>前面两篇文章 《2015博客升级记 四 ：CentOS 7.1编译安装MySQL5.7.7rc》 https://typecodes.com/web/centos7compilemysql.html &quot;查看原文&quot; 、 《阿里云CentOS 7.1使用yum安装MySql5.6.24》 https:/...</description><pubDate>Fri, 26 Feb 2016 00:00:00 GMT</pubDate></item><item><title>Linux中使用TCPDUMP进行简单的TCP抓包</title><link>https://typecodes.com/posts/simpletcpdumpapply/</link><guid isPermaLink="true">https://typecodes.com/posts/simpletcpdumpapply/</guid><description>在Linux TCP通信的调试中，tcpdump应该算是很好的一个工具。这篇文章主要使用Windows作为客户端，向作为服务端的Linux中的一个socket监听端口发送报文信息，然后在Linux中用TCPDUMP工具进行抓包。通过这个实例，可以较为完整的了解TCP通信中的“三次握手”等过程。 ! ...</description><pubDate>Fri, 26 Feb 2016 00:00:00 GMT</pubDate></item><item><title>使用TCPDUMP和Wireshark排查服务端CLOSE_WAIT（一）</title><link>https://typecodes.com/posts/tcpdumpwiresharkclosewait1/</link><guid isPermaLink="true">https://typecodes.com/posts/tcpdumpwiresharkclosewait1/</guid><description>在Linux后端服务网络通信开发中，可能会遇到CLOSE WAIT的状况。引起TCP CLOSE WAIT状态的情况很多，归根结底还是由于被动关闭的一方没有关闭socket链路导致的。这篇文章主要是通过用一个简单的例子通过TCPDUMP和Wireshark这两个工具来模拟产生CLOSE WAIT的情...</description><pubDate>Fri, 26 Feb 2016 00:00:00 GMT</pubDate></item><item><title>Linux多进程和多线程的一次gdb调试实例</title><link>https://typecodes.com/posts/multilprocessthreadgdb/</link><guid isPermaLink="true">https://typecodes.com/posts/multilprocessthreadgdb/</guid><description>Linux C/C++开发中gdb进行多进程和多线程的调试一直比较麻烦，在CSDN上看到高科的一篇文章 《gdb调试多进程和多线程命令》 http://blog.csdn.net/pbymw8iwm/article/details/7876797 &quot;查看原文&quot; 比较有启发，这里就自己重新整理并做了一...</description><pubDate>Thu, 25 Feb 2016 00:00:00 GMT</pubDate></item><item><title>同步GitHub Markdown文章到Linux服务器后更新Pelican博客的脚本</title><link>https://typecodes.com/posts/syngithubmarkdownpelican/</link><guid isPermaLink="true">https://typecodes.com/posts/syngithubmarkdownpelican/</guid><description>使用了Pelican后，最多的操作就是编译Markdown文章生成HTML文件，然后发布到Nginx的博客目录下。 ! 我的Pelican博客管理和发布流程 https://cdn.typecodes.com/2016/01/github pelican nginx.png &quot;我的Pelican博客...</description><pubDate>Sun, 10 Jan 2016 00:00:00 GMT</pubDate></item><item><title>Linux c语言连接MySQL数据库实例</title><link>https://typecodes.com/posts/linuxgccgconnectmysql/</link><guid isPermaLink="true">https://typecodes.com/posts/linuxgccgconnectmysql/</guid><description>工作上自己在Linux C/C++开发时，用的都是Oracle数据库，毕竟企业级应用追求稳定性好、安全可靠。业余时间做了一些WEB开发，接触到MySQL数据库比较多，也比较喜欢开源的MySQL。之前都是用PHP连接MySQL数据库，这里自己用C语言连接MySQL，执行一些简单的连接、查询操作、异常处...</description><pubDate>Thu, 07 Jan 2016 00:00:00 GMT</pubDate></item><item><title>Linux gcc编译生成静态库和共享动态库的过程</title><link>https://typecodes.com/posts/gccgensharedlib/</link><guid isPermaLink="true">https://typecodes.com/posts/gccgensharedlib/</guid><description>这篇文章主要通过实例演示在Linux下如何使用gcc分别编译生成静态库和动态库文件以及其它程序如何使用这个生成的静态库和动态库。 一、要用到的3个测试程序 1、头文件hello.h： !c ifndef HELLO H define HELLO H void hello const char nam...</description><pubDate>Tue, 05 Jan 2016 00:00:00 GMT</pubDate></item><item><title>Linux下Nginx、MySQL和PHP等应用的日志切割脚本</title><link>https://typecodes.com/posts/applogsbackup/</link><guid isPermaLink="true">https://typecodes.com/posts/applogsbackup/</guid><description>在Linux中如果应用程序会产生日志，那么就需要考虑日志切割，例如按照固定的大小切割、按照日期进行切割等等。同样，在编译 Nginx1.9.0 https://typecodes.com/web/centos7compilenginx.html &quot;《2015博客升级记 三 ：CentOS 7.1编译...</description><pubDate>Fri, 18 Dec 2015 00:00:00 GMT</pubDate></item><item><title>准备将博客从Typecho迁移到Pelican</title><link>https://typecodes.com/posts/begintypechotopelican/</link><guid isPermaLink="true">https://typecodes.com/posts/begintypechotopelican/</guid><description>8月份的时候，终于从庞大的WordPress转到了轻量级的 博客程序Typecho https://typecodes.com/mix/eventualwptotypecho.html &quot;《终于从WordPress转向Typecho了》&quot; 。简洁的设计和比较出色的Markdown支持，整个Typec...</description><pubDate>Thu, 10 Dec 2015 00:00:00 GMT</pubDate></item><item><title>成功将博客从Typecho迁移到Pelican</title><link>https://typecodes.com/posts/sucesstypechotopelican/</link><guid isPermaLink="true">https://typecodes.com/posts/sucesstypechotopelican/</guid><description>根据 前文 https://typecodes.com/mix/begintypechotopelican.html &quot;《准备将博客从Typecho迁移到Pelican》&quot; 的上线步骤，目前已经成功的将博客从Typecho迁移到了Pelican。中间上线发布的时候，遇到了好几个问题，不过由于上线步骤...</description><pubDate>Thu, 10 Dec 2015 00:00:00 GMT</pubDate></item><item><title>Linux TCP连接Connection Refused和Connection timed out的问题</title><link>https://typecodes.com/posts/tcpconnectiontimedout/</link><guid isPermaLink="true">https://typecodes.com/posts/tcpconnectiontimedout/</guid><description>前段时间和其它系统做联调测试，对方系统采用的是负载均衡模式。调试时采用的是多台手机作为客户端发送到对方负载均衡服务器，然后再把报文转发送到我这边的服务端。在测试的时候，对方测试人员说有的手机客户端会偶尔出现报文发不过来的情况。 故事有点长，先发一张tcp三次握手的过程图镇楼 ! Linux tcp三...</description><pubDate>Sat, 12 Sep 2015 00:00:00 GMT</pubDate></item><item><title>博客MySQL服务惊魂记：Linux磁盘空间不足(Core Dump文件引爆)</title><link>https://typecodes.com/posts/mysqlerrornospace/</link><guid isPermaLink="true">https://typecodes.com/posts/mysqlerrornospace/</guid><description>昨天在更新完文章 《升级博客文章同步微博的插件：PHP正则提取Markdown的图片地址》 https://typecodes.com/mix/synweibophpmarkdownimgurl.html &quot;&quot; 后，博客突然无法访问了。 ! MySQL的错误日志 https://cdn.typeco...</description><pubDate>Mon, 17 Aug 2015 00:00:00 GMT</pubDate></item><item><title>Linux C/C++工程中可生成ELF、动/静态库文件的通用Makefile</title><link>https://typecodes.com/posts/cppgeneralmakefile/</link><guid isPermaLink="true">https://typecodes.com/posts/cppgeneralmakefile/</guid><description>最近写了一个 nix环境下的Makefile文件，支持编译C/C++，同时能够通过参数配置生成ELF目标文件、动态链接库 .so 和静态链接库 .a 文件。 ! Linux C/C++工程中可生成ELF、动/静态库文件的通用Makefile https://cdn.typecodes.com/201...</description><pubDate>Fri, 14 Aug 2015 00:00:00 GMT</pubDate></item><item><title>解决make编译链接动态库错误：libxx.so: undefined reference to xx</title><link>https://typecodes.com/posts/libraryundefinedref/</link><guid isPermaLink="true">https://typecodes.com/posts/libraryundefinedref/</guid><description>最近在写一个Makefile，调试时遇到了 libsrcpbl.so: undefined reference to gcProgramName 的问题。在这个Makefile脚本里面，终极目标是通过链接一个自定义的动态库 libsrcpbl.so 生成一个ELF目标文件。 由于链接生成libsrc...</description><pubDate>Thu, 13 Aug 2015 00:00:00 GMT</pubDate></item><item><title>Unix系统中nm命令展示目标文件符号的方法</title><link>https://typecodes.com/posts/nmobjectfilesymbol/</link><guid isPermaLink="true">https://typecodes.com/posts/nmobjectfilesymbol/</guid><description>在unix系统中，通过gnu开源gcc或者g++工具生成的目标文件（object file），可以用 nm 、 objdump 和 readelf 这三个命令来查看。 nm：显示目标文件中的符号； objdump：打印目标文件中的详细信息； readelf：显示关于 ELF 目标文件的信息。 之前在...</description><pubDate>Wed, 12 Aug 2015 00:00:00 GMT</pubDate></item><item><title>Linux gcc链接动态库出错：LIBRARY_PATH和LD_LIBRARY_PATH的区别</title><link>https://typecodes.com/posts/gcclderrlibrarypath/</link><guid isPermaLink="true">https://typecodes.com/posts/gcclderrlibrarypath/</guid><description>昨天在自己的CentOs7.1上写makefile的时候，发现在一个C程序在编译并链接一个已生成好的lib动态库的时候出错。链接命令大概是这样的： root@typecodes tcpmsg gcc -o hello main.c -lmyhello /usr/bin/ld: cannot find...</description><pubDate>Sat, 08 Aug 2015 00:00:00 GMT</pubDate></item><item><title>Unix系统进程对SIGTERM、SIGUSR1和SIGUSR2信号处理</title><link>https://typecodes.com/posts/unixsigtermkill/</link><guid isPermaLink="true">https://typecodes.com/posts/unixsigtermkill/</guid><description>好久没更新博客了，写篇文章除除草。这篇文章主要通过简单的例子说明一下Unix/Linux进程中如果捕捉和处理 SIGTERM 、 SIGUSR1 和 SIGUSR2 信号。 先说明一下这三个信号： 信号 signal 是 nix系统中进程之间通信 IPC 的一种常见方式。 SIGTERM：进程终止信...</description><pubDate>Wed, 05 Aug 2015 00:00:00 GMT</pubDate></item><item><title>CentOS中将备份文件同步到BitBucket、GitHub和Coding的shell脚本</title><link>https://typecodes.com/posts/gitsynbackupshell/</link><guid isPermaLink="true">https://typecodes.com/posts/gitsynbackupshell/</guid><description>在 上一篇文章 https://typecodes.com/linux/gitaccountconfig.html &quot;《CentOS系统BitBucket、GitHub和Coding等多git账户的配置》&quot; 讲述了如何在Linux系统中配置BitBucket、GitHub和Coding这三个平台的g...</description><pubDate>Tue, 07 Jul 2015 00:00:00 GMT</pubDate></item><item><title>CentOS系统BitBucket、GitHub和Coding等多git账户的配置</title><link>https://typecodes.com/posts/gitaccountconfig/</link><guid isPermaLink="true">https://typecodes.com/posts/gitaccountconfig/</guid><description>目前自己主要在BitBucket、GitHub和Coding这三个Git平台创建了一些项目，所以这篇文章以自己的CentOS7.1服务器作为示例，说说如何在Linux系统中配置不同平台的Git仓库，也即多git账户的配置。 类似于Windows机器上的git配置方法，在CentOS上也是一样的。通过...</description><pubDate>Sun, 05 Jul 2015 00:00:00 GMT</pubDate></item><item><title>2015博客升级记(八)：CentOS7定时备份博客程序的shell脚本</title><link>https://typecodes.com/posts/centos7blogregularbackup/</link><guid isPermaLink="true">https://typecodes.com/posts/centos7blogregularbackup/</guid><description>这是 《2015年博客升级记》 https://typecodes.com/mix/2015updateblog.html &quot;查看原文&quot; 系列文章的第八篇，同时也是这一系列文章的最后一篇，内容主要记录在Linux系统中如何使用shell脚本备份服务器上的博客程序（当然也可以是主机上的任何目录或者文件...</description><pubDate>Tue, 30 Jun 2015 00:00:00 GMT</pubDate></item><item><title>2015博客升级记(七)：CentOS7定时备份MySql的shell脚本</title><link>https://typecodes.com/posts/centos7mysqlregularbackup/</link><guid isPermaLink="true">https://typecodes.com/posts/centos7mysqlregularbackup/</guid><description>这是 《2015年博客升级记》 https://typecodes.com/mix/2015updateblog.html &quot;查看原文&quot; 系列文章的第七篇，主要记录在Linux系统中如何使用shell脚本备份服务器上的mysql数据库。 ! CentOS7定时备份MySql的shell脚本 http...</description><pubDate>Mon, 29 Jun 2015 00:00:00 GMT</pubDate></item><item><title>Coding.net上git仓库ssh地址的&quot;bug&quot;</title><link>https://typecodes.com/posts/codinggitsshbug/</link><guid isPermaLink="true">https://typecodes.com/posts/codinggitsshbug/</guid><description>前段时间在用Coding.net同步git仓库时，能正常使用非https的ssh协议，但是这两天在自己的Windows机器上push内容时，报如下图中的错误 Permission denied publickey . ： ! Coding.net报错Permission denied publick...</description><pubDate>Sun, 28 Jun 2015 00:00:00 GMT</pubDate></item><item><title>PHP7中php.ini、php-fpm和www.conf的配置</title><link>https://typecodes.com/posts/php7configure/</link><guid isPermaLink="true">https://typecodes.com/posts/php7configure/</guid><description>根据前文 《2015博客升级记 五 ：CentOS 7.1编译安装PHP7》 https://typecodes.com/web/centos7compilephp7.html &quot;查看原文&quot; 的 configure 编译参数设定，安装后的PHP7配置文件所在路径是 /usr/local/php7/e...</description><pubDate>Sat, 27 Jun 2015 00:00:00 GMT</pubDate></item><item><title>2015博客升级记(五)：CentOS 7.1编译安装PHP7</title><link>https://typecodes.com/posts/centos7compilephp7/</link><guid isPermaLink="true">https://typecodes.com/posts/centos7compilephp7/</guid><description>这是 《2015年博客升级记》 https://typecodes.com/mix/2015updateblog.html &quot;查看原文&quot; 系列文章的第五篇，主要记录在Linux系统中如何编译安装PHP7。 一、创建php用户和用户组，并在github下载php7源码 首先创建一个名为php且 没有登...</description><pubDate>Fri, 26 Jun 2015 00:00:00 GMT</pubDate></item><item><title>阿里云CentOS 7.1使用yum安装MySql5.6.24</title><link>https://typecodes.com/posts/centos7yuminstallmysql5/</link><guid isPermaLink="true">https://typecodes.com/posts/centos7yuminstallmysql5/</guid><description>在前面两篇文章 《2015博客升级记 四 ：CentOS 7.1编译安装MySQL5.7.7rc》 https://typecodes.com/web/centos7compilemysql.html &quot;查看原文&quot; 和 《阿里云CentOS 7.1编译安装MySql5.6.24》 https://t...</description><pubDate>Thu, 25 Jun 2015 00:00:00 GMT</pubDate></item><item><title>阿里云CentOS 7.1编译安装MySql5.6.24</title><link>https://typecodes.com/posts/centos7compilemysql5/</link><guid isPermaLink="true">https://typecodes.com/posts/centos7compilemysql5/</guid><description>继 前文 https://typecodes.com/web/centos7compilemysql.html &quot;《2015博客升级记 四 ：CentOS 7.1编译安装MySQL5.7.7rc》&quot; 记述了如何在Linux系统中，通过源码编译安装MySQL5.7.7 Release Candidat...</description><pubDate>Thu, 25 Jun 2015 00:00:00 GMT</pubDate></item><item><title>CentOS系统MySQL的配置文件my.cnf</title><link>https://typecodes.com/posts/centosmysqlconfig/</link><guid isPermaLink="true">https://typecodes.com/posts/centosmysqlconfig/</guid><description>这篇文章主要内容是前文 《2015博客升级记 四 ：CentOS 7.1编译安装MySQL5.7.7rc》 https://typecodes.com/web/centos7compilemysql.html &quot;查看原文&quot; 提到的MySQL的配置文件my.cnf。 需要注意的是my.cnf中的一些配...</description><pubDate>Tue, 23 Jun 2015 00:00:00 GMT</pubDate></item><item><title>MySQL编译安装时常见错误分析</title><link>https://typecodes.com/posts/solvemysqlcompileerror/</link><guid isPermaLink="true">https://typecodes.com/posts/solvemysqlcompileerror/</guid><description>这篇文章主要是关于MySQL在编译安装时，可能出现的错误的解决方法。MySQL正确的编译安装操作见前文 《2015博客升级记 四 ：CentOS 7.1编译安装MySQL5.7.7rc》 https://typecodes.com/web/centos7compilemysql.html &quot;查看原文...</description><pubDate>Tue, 23 Jun 2015 00:00:00 GMT</pubDate></item><item><title>Nginx编译安装时常见错误分析</title><link>https://typecodes.com/posts/solvenginxcompileerror/</link><guid isPermaLink="true">https://typecodes.com/posts/solvenginxcompileerror/</guid><description>这篇文章主要是关于Nginx在编译安装时，可能出现的错误的解决方法。Nginx正确的编译安装操作见前文 《2015博客升级记 三 ：CentOS 7.1编译安装Nginx1.9.0》 https://typecodes.com/web/centos7compilenginx.html &quot;查看原文&quot; ...</description><pubDate>Mon, 22 Jun 2015 00:00:00 GMT</pubDate></item><item><title>2015博客升级记(六)：Nginx配置HTTPS和SPDY实战</title><link>https://typecodes.com/posts/centos7nginxhttpsspdy/</link><guid isPermaLink="true">https://typecodes.com/posts/centos7nginxhttpsspdy/</guid><description>这是 《2015年博客升级记》 https://typecodes.com/mix/2015updateblog.html &quot;查看原文&quot; 系列文章的第六篇，主要记录如何在CentOS 7.1中Nginx如何配置HTTPS和SPDY。关于具体如何编译安装Nginx，可以查看文章 《2015博客升级记 ...</description><pubDate>Sun, 21 Jun 2015 00:00:00 GMT</pubDate></item><item><title>2015博客升级记(四)：CentOS 7.1编译安装MySQL5.7.7rc</title><link>https://typecodes.com/posts/centos7compilemysql/</link><guid isPermaLink="true">https://typecodes.com/posts/centos7compilemysql/</guid><description>这是 《2015年博客升级记》 https://typecodes.com/mix/2015updateblog.html &quot;查看原文&quot; 系列文章的第四篇，主要记录在Linux系统中如何编译安装MySql数据库。 一、创建mysql用户和用户组，并下载MySQL5.7.7 Release Candi...</description><pubDate>Sun, 21 Jun 2015 00:00:00 GMT</pubDate></item><item><title>CentOS开启coredump转储并生成core文件的配置</title><link>https://typecodes.com/posts/centoscoredumpcfgshell/</link><guid isPermaLink="true">https://typecodes.com/posts/centoscoredumpcfgshell/</guid><description>在CentOS或者suse等Linux系统中默认是关闭coredump核心转储的，也就不会产生core文件。由于在C/C++开发中会用到gdb调试，所以需要开启coredump功能。下面是具体的配置命令，可以保存为一个简单的shell脚本执行。 !bash !/bin/bash Filename: ...</description><pubDate>Thu, 11 Jun 2015 00:00:00 GMT</pubDate></item><item><title>Nginx服务启动、停止和重启等操作的SHELL脚本</title><link>https://typecodes.com/posts/nginxserviceoptshell/</link><guid isPermaLink="true">https://typecodes.com/posts/nginxserviceoptshell/</guid><description>由于使用源码编译安装Nginx，不会像yum install那样自动生成Nginx服务控制脚本，所以需要自己添加一个操作脚本。谷歌上搜了一下，shell脚本的代码基本类似，因此自己稍微整理改动了下。 下面的shell脚本内容，需要根据Nginx实际编译安装的配置，修改 NGINX CONF FILE...</description><pubDate>Sat, 06 Jun 2015 00:00:00 GMT</pubDate></item><item><title>Typecho评论邮件通知插件中使用腾讯企业邮箱SSL功能</title><link>https://typecodes.com/posts/typechoexmailconfig/</link><guid isPermaLink="true">https://typecodes.com/posts/typechoexmailconfig/</guid><description>前段时间，在查看博客绑定的腾讯企业邮箱时，发现POP3/SMTP协议支持SSL。由于正好使用了Typecho版的CommentToMail评论邮件通知插件，就顺便也升级成SSL协议。 ! 腾讯企业邮箱SSL配置 https://cdn.typecodes.com/2015/06/exmailsslc...</description><pubDate>Sat, 06 Jun 2015 00:00:00 GMT</pubDate></item><item><title>2015博客升级记(三)：CentOS 7.1编译安装Nginx1.9.0</title><link>https://typecodes.com/posts/centos7compilenginx/</link><guid isPermaLink="true">https://typecodes.com/posts/centos7compilenginx/</guid><description>这是 《2015年博客升级记》 https://typecodes.com/mix/2015updateblog.html &quot;查看原文&quot; 系列文章的第三篇，主要记录如何在CentOS 7.1中编译安装Nginx官方最新的1.9.0版本。由于像Nginx、Mysql和PHP7的的源码都是用C/C++写...</description><pubDate>Wed, 03 Jun 2015 00:00:00 GMT</pubDate></item><item><title>Typecho评论中开启和使用Markdown的方法</title><link>https://typecodes.com/posts/typechocommentmarkdown/</link><guid isPermaLink="true">https://typecodes.com/posts/typechocommentmarkdown/</guid><description>轻量级的博客程序Typecho，还有一个很舒适的体验，那就是支持Markdown语法，不论是在文章或是评论中。这篇文章主要是说明如何在博客中使用Markdown写作以及如何在评论中使用Markdown语法。 ! Typecho评论中开启和使用Markdown的方法 https://cdn.typec...</description><pubDate>Sun, 31 May 2015 00:00:00 GMT</pubDate></item><item><title>视角：C语言将十六进制字符串转成十进制整数</title><link>https://typecodes.com/posts/simplifychexstrtoint/</link><guid isPermaLink="true">https://typecodes.com/posts/simplifychexstrtoint/</guid><description>在前文 《再议C语言将十六进制字符串转成十进制整数》 https://typecodes.com/cseries/againchexstrtointeger.html/comment-page-1 comment-1665 &quot;查看原文评论&quot; 中 @大致 http://pewae.com/ 童鞋帮忙提...</description><pubDate>Sat, 30 May 2015 00:00:00 GMT</pubDate></item><item><title>2015博客升级记(二)：Linux系统磁盘分区挂载和交换空间</title><link>https://typecodes.com/posts/centos7fdiskmountswap/</link><guid isPermaLink="true">https://typecodes.com/posts/centos7fdiskmountswap/</guid><description>这是 《2015年博客升级记》 https://typecodes.com/mix/2015updateblog.html &quot;查看原文&quot; 系列文章的第二篇，主要记录在Linux系统中如何将磁盘进行分区和挂载。 ------------操作说明------------ Linux系统： 阿里云Cent...</description><pubDate>Wed, 27 May 2015 00:00:00 GMT</pubDate></item><item><title>2015博客升级记(一)：安装CentOS7后需要的操作</title><link>https://typecodes.com/posts/centos7afteroperate/</link><guid isPermaLink="true">https://typecodes.com/posts/centos7afteroperate/</guid><description>这是 《2015年博客升级记》 https://typecodes.com/mix/2015updateblog.html &quot;查看原文&quot; 系列文章的第一篇，主要记录安装完CentOS7后的一些优化操作，包括更换yum源并升级系统到CentOS7.1、使用sshd登录、修改机器名、vi映射为vim、v...</description><pubDate>Mon, 25 May 2015 00:00:00 GMT</pubDate></item><item><title>2015年博客升级记</title><link>https://typecodes.com/posts/2015updateblog/</link><guid isPermaLink="true">https://typecodes.com/posts/2015updateblog/</guid><description>这段时间对博客进行了一次升级，主要是从博客程序所在的系统服务器（CentOS）和WEB环境（LNMP）入手。目前自己的Linux服务器已经升级到CentOS7.1，同时LNMP环境也升级到了最新的版本。下面是整个升级过程的详细整理，记录一下方便以后查看。 ! 2015博客升级记 https://cd...</description><pubDate>Sat, 23 May 2015 00:00:00 GMT</pubDate></item><item><title>再议C语言将十六进制字符串转成十进制整数</title><link>https://typecodes.com/posts/againchexstrtointeger/</link><guid isPermaLink="true">https://typecodes.com/posts/againchexstrtointeger/</guid><description>前文 《C语言将十六进制字符串转成十进制整数》 https://typecodes.com/cseries/clanghexstrtointeger.html &quot;查看原文&quot; 讲述了将十六进制字符串中单个字符分别从高位到低位正序和从低位到高位逆序转换成对应的十进制数，今天在看原文的程序发现一个不好的地...</description><pubDate>Thu, 14 May 2015 00:00:00 GMT</pubDate></item><item><title>CentOS7系统如何修改主机名</title><link>https://typecodes.com/posts/centos7chghostname/</link><guid isPermaLink="true">https://typecodes.com/posts/centos7chghostname/</guid><description>前段时间博客一直处于关闭状态，主要是做了一些升级。之前博主用的是CentOS6.5系统，然后升级到了如今的CentOS7版本。另外Nginx、Mysql和PHP都做了相应的版本升级，后续文章会给大家分享下。这篇文章主要讲讲CentOS7系统如何修改主机名。 ! CentOS7系统如何修改主机名 ht...</description><pubDate>Mon, 20 Apr 2015 00:00:00 GMT</pubDate></item><item><title>在UEStudio/UltraEdit中打造C/C#/JAVA等语言的编译器</title><link>https://typecodes.com/posts/uestudioidecompiler/</link><guid isPermaLink="true">https://typecodes.com/posts/uestudioidecompiler/</guid><description>像Emacs、Vim、UEStudio/UltraEdit、Sublime text等非IDE类的文本编辑器，都不会自带某种语言的编译功能，这对于不想开IDE的程序狗来说很是蛋疼。尤其是需要切换到不同语言做开发时，非常不方便，总不能这边开一个VS，那边开一个Eclipse吧。于是自己折腾了一番，通过...</description><pubDate>Sun, 01 Feb 2015 00:00:00 GMT</pubDate></item><item><title>初始化Oracle数据库的bat批处理脚本和shell脚本</title><link>https://typecodes.com/posts/initoraclebatandshell/</link><guid isPermaLink="true">https://typecodes.com/posts/initoraclebatandshell/</guid><description>在使用Oracle数据库的时候，经常会用到表结构、存储过程、视图以及表数据等等元素的导入和导出。如果在Windows的cmd窗口中使用sqlplus的命令登录Oracle后，直接使用 @ sql导入文件路径 或者 start sql导入文件路径 ，就有一个缺陷：不会产生跟踪日志文件，这样就没法了解哪...</description><pubDate>Sat, 10 Jan 2015 00:00:00 GMT</pubDate></item><item><title>C#实现十六进制字符串异或（二）</title><link>https://typecodes.com/posts/hexstringxor2/</link><guid isPermaLink="true">https://typecodes.com/posts/hexstringxor2/</guid><description>上一篇文章 https://typecodes.com/csharp/hexstringxor1.html &quot;《C 实现十六进制字符串异或一》&quot; 主要利用C 自带的 Convert.ToInt32 HexString, 16 方法实现了两个十六进制字符串异或的操作。这篇文章主要利用C 字节数组来实现...</description><pubDate>Wed, 31 Dec 2014 00:00:00 GMT</pubDate></item><item><title>图解如何在PLSQL中调试PACKAGE包中的FUNCTION函数</title><link>https://typecodes.com/posts/plsqldebugpackagefunction/</link><guid isPermaLink="true">https://typecodes.com/posts/plsqldebugpackagefunction/</guid><description>Oracle中的packages包是一组包含procedures存储过程、functions函数和游标等元素的组合。相比Sybase数据库的SQL Advantage工具，Oracle数据库的管理工具——PLSQL在调试存储过程还是方便。 ! PLSQL Developer调试packages包 h...</description><pubDate>Wed, 31 Dec 2014 00:00:00 GMT</pubDate></item><item><title>C#实现十六进制字符串异或（一）</title><link>https://typecodes.com/posts/hexstringxor1/</link><guid isPermaLink="true">https://typecodes.com/posts/hexstringxor1/</guid><description>前面用C/C++实现了两个十六进制的字符串进行异或（ 查看该文 https://typecodes.com/cseries/hexstrxor.html &quot;《C语言实现十六进制字符串异或》&quot; ），这篇文章利用C 来实现这个功能。由于C 命名空间里已经封装好了很多类和方法，不用像之前用C实现十六进制字...</description><pubDate>Mon, 29 Dec 2014 00:00:00 GMT</pubDate></item><item><title>指针数组和指针的指针（间级指针）实例分析</title><link>https://typecodes.com/posts/doubledimensionalarray/</link><guid isPermaLink="true">https://typecodes.com/posts/doubledimensionalarray/</guid><description>网上看到一个关于指向指针的指针变量（间级指针）和指针数组的分析题，感觉比较有代表性，所以摘录了下来自己分析了一番。 一、程序代码： !c / 指针数组和指针的指针（间级指针）实例分析 @Filename: doubledimensionalarray.c @Source : 改动自网络 / incl...</description><pubDate>Mon, 17 Nov 2014 00:00:00 GMT</pubDate></item><item><title>MFC回车键不关闭对话框以及变成TAB键效果</title><link>https://typecodes.com/posts/mfcreturnkeyshutdialog/</link><guid isPermaLink="true">https://typecodes.com/posts/mfcreturnkeyshutdialog/</guid><description>之前在弄完这个十六进制字符串异或的工具后，发现直接按回车键就直接关闭了工具。网上搜了下解决方案，然后自己的总结如下4种方法： 一、设置一个默认按钮（不推荐） 如 前文 https://typecodes.com/cseries/studymfchexstrxortool1.html &quot;《图文实例说M...</description><pubDate>Sun, 16 Nov 2014 00:00:00 GMT</pubDate></item><item><title>去掉最高分和最低分求平均分数的问题</title><link>https://typecodes.com/posts/calculateaveragescore/</link><guid isPermaLink="true">https://typecodes.com/posts/calculateaveragescore/</guid><description>在百度知道看到个问题，原地址不记得了。题目大致是5位选手参加某歌唱比赛，然后6个评委依次为每位选手打分，最终要求出每位选手在去掉一个最高分和最低分后，自己的平均成绩是多少。然后有人给出了一个比较巧妙的答案，遍历二维数组中的每个元素的时候，“找出”最大值和最小值，然后就去掉这个最大值和最小值求出平均值...</description><pubDate>Sun, 16 Nov 2014 00:00:00 GMT</pubDate></item><item><title>图文实例说MFC制作工具的心得（二）</title><link>https://typecodes.com/posts/studymfchexstrxortool2/</link><guid isPermaLink="true">https://typecodes.com/posts/studymfchexstrxortool2/</guid><description>继前文 《图文实例说MFC制作工具的心得一》 https://typecodes.com/cseries/studymfchexstrxortool1.html &quot;点击查看&quot; ，这篇文章继续写几点心得。 一、如何将CString转换成char 指针 由于异或的时候可以直接调用 《十六进制字符串异或》...</description><pubDate>Fri, 14 Nov 2014 00:00:00 GMT</pubDate></item><item><title>图文实例说MFC制作工具的心得（一）</title><link>https://typecodes.com/posts/studymfchexstrxortool1/</link><guid isPermaLink="true">https://typecodes.com/posts/studymfchexstrxortool1/</guid><description>上篇文章 https://typecodes.com/cseries/mfchexstrxortool.html &quot;《MFC写了一个十六进制异或的工具》&quot; 说了用MFC制作一个十六进制字符串异或的工具，这篇文章就以这个工具为演示总结一下自己的学习心得。 ! MFC十六进制异或工具 https://c...</description><pubDate>Thu, 13 Nov 2014 00:00:00 GMT</pubDate></item><item><title>MFC写了一个十六进制字符串异或的工具</title><link>https://typecodes.com/posts/mfchexstrxortool/</link><guid isPermaLink="true">https://typecodes.com/posts/mfchexstrxortool/</guid><description>在写完上一篇文章 《十六进制字符串异或》 https://typecodes.com/cseries/hexstrxor.html &quot;查看详情&quot; 后，网上查了下貌似没有十六进制字符串异或的工具，于是想自己用C++写一个。由于之前没弄过MFC，所以周末花了两天时间边学边做，最后效果如下： ! MFC十...</description><pubDate>Wed, 12 Nov 2014 00:00:00 GMT</pubDate></item><item><title>十六进制字符串异或</title><link>https://typecodes.com/posts/hexstrxor/</link><guid isPermaLink="true">https://typecodes.com/posts/hexstrxor/</guid><description>十六进制字符串异或是C/C++工作中经常遇到的情况，因此自己写了一个异或方法。程序中关键的三点： 一、关键点一 弄清十六进制字符串异或的思路：一个十六进制字符其实表示的是一个字节的低4位，但是在ASCII码表中，它是作为一个字符，即占用了1个字节。所以需要先把这个字符转换成对应的十进制数（范围是0 ...</description><pubDate>Mon, 10 Nov 2014 00:00:00 GMT</pubDate></item><item><title>由学生按某规则依次报数的游戏引发的问题</title><link>https://typecodes.com/posts/studentssoundoffgame/</link><guid isPermaLink="true">https://typecodes.com/posts/studentssoundoffgame/</guid><description>前段时间Q群里有提问如下，编写程序解决一个学生按规则依次报数的体育游戏问题。编程语言不限，Java, C , Ruby, C++, Js, Python, Scala, objective-C统统可以，小语种也没问题。 ! 学生按某规则依次报数的游戏 https://cdn.typecodes.co...</description><pubDate>Sat, 08 Nov 2014 00:00:00 GMT</pubDate></item><item><title>理解有符号和无符号的字符数和整数的转换</title><link>https://typecodes.com/posts/signedunsignedcharconvint/</link><guid isPermaLink="true">https://typecodes.com/posts/signedunsignedcharconvint/</guid><description>网上关于有符号、无符号字符转换成有符号、无符号整形数据的问题，自己写了一个测试程序，分析了下，挺有意思的。 一、测试说明 用的是自己的win7 64位系统，处理器当然是Intel的，因此是前文提到的 小端模式 。默认按32位（总线）处理，即一个整型4个字节，长度共 2^32 = 4294967296...</description><pubDate>Fri, 07 Nov 2014 00:00:00 GMT</pubDate></item><item><title>C语言字节序的大小端模式</title><link>https://typecodes.com/posts/sizeofbyteorder/</link><guid isPermaLink="true">https://typecodes.com/posts/sizeofbyteorder/</guid><description>关于字节序的大小端模式，个人认为CSDN上Hackbuteer1作者的这篇文章 《大端模式和小端模式》 http://blog.csdn.net/hackbuteer1/article/details/7722667 &quot;大端模式和小端模式&quot; 讲解的很清晰。这里MARK一下自己的学习心得： ! C程序...</description><pubDate>Wed, 05 Nov 2014 00:00:00 GMT</pubDate></item><item><title>C语言将十进制字符串转成十进制整数</title><link>https://typecodes.com/posts/clangintegerstrtointeger/</link><guid isPermaLink="true">https://typecodes.com/posts/clangintegerstrtointeger/</guid><description>通过 上一篇文章 https://typecodes.com/cseries/clanghexstrtointeger.html &quot;《C语言将十六进制字符串转成十进制整数》&quot; 完成了十六进制字符串转成十进制整数，同理也很容易写出十进制字符串转成十进制整数的函数。考虑到十进制的字符串中可能会出现正负号...</description><pubDate>Wed, 05 Nov 2014 00:00:00 GMT</pubDate></item><item><title>C语言将十六进制字符串转成十进制整数</title><link>https://typecodes.com/posts/clanghexstrtointeger/</link><guid isPermaLink="true">https://typecodes.com/posts/clanghexstrtointeger/</guid><description>C/C++处理十六进制文件中的报文内容时，经常会遇到先读取报文头中的长度（例如&quot;E2&quot;、&quot;1F&quot;、&quot;-eE2&quot;等等），再读取报文体中的内容的情况。那么就需要把报文头中表示长度的十六进制字符串转换成十进制的整形数据。 转换方法有两种，一种是正向从字符串低位到高位依次转换，另一种是逆向从字符串高位到低位...</description><pubDate>Tue, 04 Nov 2014 00:00:00 GMT</pubDate></item><item><title>决定关闭博客使用SSL证书访问</title><link>https://typecodes.com/posts/shutdownblogssl/</link><guid isPermaLink="true">https://typecodes.com/posts/shutdownblogssl/</guid><description>前几天博客使用了NameCheap的证书，将原来的http访问改成了https访问（详戳 这里 https://typecodes.com/web/lnmppositivessl.html &quot;阿里云CentOS 6.5系统LNMP环境安装SSL证书&quot; ）。由于下面的原因，现决定不再使用SSL证书，恢...</description><pubDate>Fri, 17 Oct 2014 00:00:00 GMT</pubDate></item><item><title>阿里云CentOS 6.5系统LNMP环境安装SSL证书</title><link>https://typecodes.com/posts/lnmppositivessl/</link><guid isPermaLink="true">https://typecodes.com/posts/lnmppositivessl/</guid><description>近期参加了github的一项 优惠活动 https://education.github.com/pack &quot;GitHub Education Student pack&quot; ，获得了一年免费的SSL证书。下面是具体的安装过程，当然SSL证书的安装跟博客程序（不管是wordpress或者typecho等...</description><pubDate>Wed, 15 Oct 2014 00:00:00 GMT</pubDate></item><item><title>更新新浪云存储(SCS) for Typecho 插件版本V1.1.1</title><link>https://typecodes.com/posts/scsfortypechov111/</link><guid isPermaLink="true">https://typecodes.com/posts/scsfortypechov111/</guid><description>一、更新说明 感谢 @奇趣铺 的使用反馈，插件版本更新至最新的V1.1.1。更新内容如下： 1、更新官方SDK文件； 2、增加SCS存储路径参数配置，用户能更自由定义SCS存储路径； 3、取消SCS附件前缀用Unix time stamp格式命名，保持原附件名称不变。 二、版本升级方法 下面对于 L...</description><pubDate>Sat, 20 Sep 2014 00:00:00 GMT</pubDate></item><item><title>更新新浪云存储(SCS) for Typecho 插件版本V1.1.0</title><link>https://typecodes.com/posts/scsfortypechov110/</link><guid isPermaLink="true">https://typecodes.com/posts/scsfortypechov110/</guid><description>一、更新说明 根据新浪云存储 SCS 官方计划，相比之前新增 域名绑定功能 https://open.sinastorage.com/?c=doc&amp;a=guide&amp;section=domain &quot;官方详细说明&quot; 。于是博主调整了SCS插件，同样更新的源代码已经托管在 github https://g...</description><pubDate>Sat, 13 Sep 2014 00:00:00 GMT</pubDate></item><item><title>新浪云存储(SCS) for Typecho 插件</title><link>https://typecodes.com/posts/scsfortypecho/</link><guid isPermaLink="true">https://typecodes.com/posts/scsfortypecho/</guid><description>一、SCS插件说明 由于博主平常喜欢刷微博，所以关注了不少活动。最近在微博上看到 新浪云储存SCS http://weibo.com/cloudtrans &quot;新浪云储存SCS官方微博&quot; 正在公测云储存服务（类似于七牛、百度BCS），于是私信获得了邀请码。测试发现其功能和性价比都不错，所以决定把博客所...</description><pubDate>Mon, 08 Sep 2014 00:00:00 GMT</pubDate></item><item><title>音乐播放器PlayAtWill for typecho插件（移植自wordpress）</title><link>https://typecodes.com/posts/typechomp3player/</link><guid isPermaLink="true">https://typecodes.com/posts/typechomp3player/</guid><description>一、移植wordpress音乐播放器到typecho 在之前的wordpress主题 vfhky 中，集成了三款不同风格的 音乐播放器 https://typecodes.com/mix/vfhkyinsertmusicplayer.html &quot;教程：主题【vfhky】如何在文章中插入音乐播放器&quot; ...</description><pubDate>Fri, 05 Sep 2014 00:00:00 GMT</pubDate></item><item><title>再谈“0xC0000005读取写入位置冲突”——正确使用指针访问内存</title><link>https://typecodes.com/posts/pointermemaccess0xC0000005/</link><guid isPermaLink="true">https://typecodes.com/posts/pointermemaccess0xC0000005/</guid><description>在 前面一篇文章 https://typecodes.com/cseries/trimspace0xC0000005.html &quot;未经处理的异常:0xC0000005:读取/写入位置冲突——从去掉字符串所有空格说起&quot; 中，总结了错误使用指针指向一个字符串常量，然后对该字符串常量进行写入操作导致出错：...</description><pubDate>Wed, 03 Sep 2014 00:00:00 GMT</pubDate></item><item><title>千里佳音，收到新浪云(SAE)的一份礼物</title><link>https://typecodes.com/posts/getsaegift/</link><guid isPermaLink="true">https://typecodes.com/posts/getsaegift/</guid><description>去年4月份，博主参与了百度知道的一个活动，很意外的收到了 百度无线的一个gift https://typecodes.com/mix/getbaidugift.html &quot;《千里佳音，竟然收到百度的一份GIFT》&quot; 。上周末，因为参与了 SAE http://weibo.com/saet &quot;SAE新...</description><pubDate>Sun, 31 Aug 2014 00:00:00 GMT</pubDate></item><item><title>未经处理的异常:0xC0000005:读取/写入位置冲突——从去掉字符串所有空格说起</title><link>https://typecodes.com/posts/trimspace0xC0000005/</link><guid isPermaLink="true">https://typecodes.com/posts/trimspace0xC0000005/</guid><description>在c/c++中，有时会遇到0xC0000005: 读取/写入位置冲突的问题。明明编译器编译通过，但是在执行的时候就出现 Segmentation fault coredump 了。 该错误是由于内存访问出错引起的，最常见于指针的错误使用和数组越界等。下面是博主之前的一个经历——去掉一个字符串前后的所...</description><pubDate>Sat, 30 Aug 2014 00:00:00 GMT</pubDate></item><item><title>PHP中将Unix timestamp时间戳转换成北京时间</title><link>https://typecodes.com/posts/phpunixtimeconvert/</link><guid isPermaLink="true">https://typecodes.com/posts/phpunixtimeconvert/</guid><description>由于博客刚从wordpress转到typecho，所以对之前的数据库需要处理。在wordpress数据库中，文章和评论的时间记录形式和typecho不同：wordpress中登记的是北京时间，形如 2014-08-19 21:05:27；而typecho数据库中登记的是时间戳Unix timesta...</description><pubDate>Tue, 19 Aug 2014 00:00:00 GMT</pubDate></item><item><title>完美解决Mysql导入数据库中文乱码的问题</title><link>https://typecodes.com/posts/mysqlimportmessy/</link><guid isPermaLink="true">https://typecodes.com/posts/mysqlimportmessy/</guid><description>一、问题由来：博客从 WordPress 转向 Typecho 在由 WordPress 转向 Typecho https://typecodes.com/mix/eventualwptotypecho.html &quot;《终于从WordPress转向Typecho了》&quot; 的过程中，主要难点是将 Word...</description><pubDate>Mon, 18 Aug 2014 00:00:00 GMT</pubDate></item><item><title>解决阿里云无法安装typecho 1.0，页面全变空白</title><link>https://typecodes.com/posts/installtypechofail/</link><guid isPermaLink="true">https://typecodes.com/posts/installtypechofail/</guid><description>在Windows中安装 typecho 比较简单，只要先创建了数据库，然后安装过程和wordpress也类似。但是之前博主在自己的阿里云CentOS 6.5系统中安装 typecho，却出现了问题。 一、问题描述 先用 mysql 的一个用户创建了一个数据库，然后进入typecho的安装页面，填写好...</description><pubDate>Sun, 17 Aug 2014 00:00:00 GMT</pubDate></item><item><title>阿里云CentOS主机 LNMP 环境之主机安全篇一</title><link>https://typecodes.com/posts/aliyuncentoslnmphostssh/</link><guid isPermaLink="true">https://typecodes.com/posts/aliyuncentoslnmphostssh/</guid><description>在 前面一篇文章 https://typecodes.com/web/aliyuncentoslnmpwebsafeconf.html &quot;阿里云CentOS主机 LNMP 环境之web安全篇&quot; 介绍了阿里云的CentOS 6.5系统 LNMP 环境下，如何让 web 站点的更为安全。这篇文章主要从用...</description><pubDate>Sat, 16 Aug 2014 00:00:00 GMT</pubDate></item><item><title>阿里云CentOS主机 LNMP 环境之主机安全篇二</title><link>https://typecodes.com/posts/aliyuncentoslnmpiptables/</link><guid isPermaLink="true">https://typecodes.com/posts/aliyuncentoslnmpiptables/</guid><description>在 前面一篇文章 https://typecodes.com/web/aliyuncentoslnmphostssh.html &quot;阿里云CentOS主机 LNMP 环境之主机安全篇一&quot; 介绍了阿里云的 CentOS 系统，用户如何通过 ssh 登陆方式降低主机被入侵的几率。那么这篇文章主要分享通过配...</description><pubDate>Sat, 16 Aug 2014 00:00:00 GMT</pubDate></item><item><title>阿里云iptables防火墙配置出错导致ssh无法远程登录</title><link>https://typecodes.com/posts/iptablessshnologin/</link><guid isPermaLink="true">https://typecodes.com/posts/iptablessshnologin/</guid><description>一、悲催的 iptables 探索 由于之前对 iptables 不熟悉，所以在配置 iptables 的时候，直接执行命令 iptables -F 。结果导致 Securecrt 中所有连接远端服务器的窗口都断掉了，而且博客的所有页面都无法打开。心中顿时一慌，ssh无法登录，即使博客中的程序和数据...</description><pubDate>Sat, 16 Aug 2014 00:00:00 GMT</pubDate></item><item><title>阿里云CentOS主机 LNMP 环境之web安全篇</title><link>https://typecodes.com/posts/aliyuncentoslnmpwebsafeconf/</link><guid isPermaLink="true">https://typecodes.com/posts/aliyuncentoslnmpwebsafeconf/</guid><description>前面几篇文章介绍了阿里云的CentOS 6.5系统中如何搭建和配置 LNMP 环境，这篇文章主要说说 web 站点的安全配置。 一、修改 CentOS 系统的主机名 关系不大, 看个人喜好 默认同开通的阿里云 Linux 主机都是以 AY+随机数 命名的，修改方法如下： root@typecodes...</description><pubDate>Fri, 15 Aug 2014 00:00:00 GMT</pubDate></item><item><title>阿里云CentOS主机 LNMP 环境配置之Php篇——安装XCache加速器</title><link>https://typecodes.com/posts/aliyuncentoslnmpxcacheconf/</link><guid isPermaLink="true">https://typecodes.com/posts/aliyuncentoslnmpxcacheconf/</guid><description>在完成了上面两篇关于阿里云CentOS 6.5主机中 Nginx 和 Mysql 的配置的经验分享后，这篇文章说说如何安装 php 的“加速器”—— XCache http://xcache.lighttpd.net/wiki/ReleaseArchive &quot;XCache稳定版官方介绍&quot; 。相信大家...</description><pubDate>Thu, 14 Aug 2014 00:00:00 GMT</pubDate></item><item><title>阿里云CentOS主机 LNMP 环境配置之Nginx篇</title><link>https://typecodes.com/posts/aliyuncentoslnmpnginxconf/</link><guid isPermaLink="true">https://typecodes.com/posts/aliyuncentoslnmpnginxconf/</guid><description>上一篇文章主要分享了 LNMP 环境如何简单配置 Mysql https://typecodes.com/web/aliyuncentoslnmpmysqlconf.html &quot;阿里云CentOS主机 LNMP 环境配置之Mysql篇&quot; 。这篇文章简要说说如何配置 Nginx 。是其默认配置文件是 ...</description><pubDate>Wed, 13 Aug 2014 00:00:00 GMT</pubDate></item><item><title>阿里云CentOS主机 LNMP 环境配置之Mysql篇</title><link>https://typecodes.com/posts/aliyuncentoslnmpmysqlconf/</link><guid isPermaLink="true">https://typecodes.com/posts/aliyuncentoslnmpmysqlconf/</guid><description>上文中 https://typecodes.com/web/aliyuncentos6creatlnmp.html &quot;阿里云CentOS 6.5搭建LNMP环境（非一键脚本）&quot; 分享了在aliyun主机 CentOS 6.5 系统上搭建了 LNMP 环境，其实就是很简单的一行 yum install...</description><pubDate>Tue, 12 Aug 2014 00:00:00 GMT</pubDate></item><item><title>阿里云CentOS 6.5搭建LNMP环境（非一键脚本）</title><link>https://typecodes.com/posts/aliyuncentos6creatlnmp/</link><guid isPermaLink="true">https://typecodes.com/posts/aliyuncentos6creatlnmp/</guid><description>个人不太喜欢网上的“一键脚本”，原因很简单：我的地盘我做主。下面是自己在5月初购买aliyun初级ECS后，8月初在CentOS 6.5上搭建 LNMP 环境的心得。大鸟请自动飘过，如若错误，请大家指正！ 一、先脑补下Linux系统 Linux系统分支众多，其发行版本可以根据打包方式分为两类：一类是...</description><pubDate>Mon, 11 Aug 2014 00:00:00 GMT</pubDate></item><item><title>解决C-FREE 5编译出现“ld.exe: Dwarf Error: found dwarf version &apos;0&apos;”的问题</title><link>https://typecodes.com/posts/cfree5ldexedwarferr/</link><guid isPermaLink="true">https://typecodes.com/posts/cfree5ldexedwarferr/</guid><description>1问题描述 之前自己在win7 64bit的机器上，安装了MinGW编译器，GCC版本是4.8.1，安装目录是 C: MinGW ，同时安装了C-FREE 5这款C/C++集成开发环境到 D: C-Free 5 目录。用c-free编译程序的时候总是报：C-FREE 1 mingw bin ld.e...</description><pubDate>Sun, 10 Aug 2014 00:00:00 GMT</pubDate></item><item><title>终于从WordPress转向Typecho了</title><link>https://typecodes.com/posts/eventualwptotypecho/</link><guid isPermaLink="true">https://typecodes.com/posts/eventualwptotypecho/</guid><description>4月底，博客的虚拟主机到期。因为不想再用绑定几百个站点的虚拟主机了，所以决定买个vps或者云主机。在比较了几个vps和云主机后，发现阿里的ECS相对来说价格还比较合适，稳定性不错。于是选了个最低配置的CentOS主机，期限为一年。 买完后，由于没时间去备案，所以5，6，7月份博客都处于无法访问状态。...</description><pubDate>Sat, 09 Aug 2014 00:00:00 GMT</pubDate></item><item><title>小心visual studio的“BUG”：变量的声明和使用</title><link>https://typecodes.com/posts/vsbugonvariable/</link><guid isPermaLink="true">https://typecodes.com/posts/vsbugonvariable/</guid><description>昨天一Q友找我帮忙写个C程序：其中函数fun要实现：求出2000到2500之内能被7或者17或者27整除，但是不能同时被7和17整除，也不能同时被17和27整除的整数。题目倒是不难，遂打开visual studio，默默地写出下面的程序。 !c include void fun int a, int...</description><pubDate>Wed, 19 Mar 2014 00:00:00 GMT</pubDate></item><item><title>GitHub个人仓库更新：wordpress主题[W_vfhky]</title><link>https://typecodes.com/posts/postwvfhkygithub/</link><guid isPermaLink="true">https://typecodes.com/posts/postwvfhkygithub/</guid><description>今天往自己的github仓库中扔进另一份博客wordpress主题 W vfhky 。这份主题是从12年6月12建立至2013年7月，博主一直在用的。原型是威少的主题 weisaysimple http://www.weisay.com/ ，简洁明了，很适合IT类的博客。精炼的页面设计，让博客的内容...</description><pubDate>Tue, 18 Mar 2014 00:00:00 GMT</pubDate></item><item><title>版本更新：wordpress主题【vfhky 1.1】发布</title><link>https://typecodes.com/posts/updatewpthemevfhky1/</link><guid isPermaLink="true">https://typecodes.com/posts/updatewpthemevfhky1/</guid><description>一、主题【vfhky】版本1.1的更新说明 主题vfhky在2月15号发布了 1.0版本 https://typecodes.com/mix/postwpthemevfhky1.html &quot;《整装待发：wordpress主题【vfhky 1.0】强势发布》&quot; ，经调整和优化，现发布1.1版本。目前该...</description><pubDate>Sun, 16 Mar 2014 00:00:00 GMT</pubDate></item><item><title>PHP模拟登录WordPress后台二：使用curl函数</title><link>https://typecodes.com/posts/chromephpsimulatelogwptwo/</link><guid isPermaLink="true">https://typecodes.com/posts/chromephpsimulatelogwptwo/</guid><description>在 上一篇文章 https://typecodes.com/web/chromephpsimulatelogwpone.html &quot;《PHP模拟登录WordPress后台一：使用Chrome浏览器网络抓包》&quot; 中讲述了如何使用chrome浏览器进行网络抓包，那么这篇文章就说说结合chrome抓包工具...</description><pubDate>Sat, 15 Mar 2014 00:00:00 GMT</pubDate></item><item><title>再议wordpress中限制没有Gravatar头像的访客提交评论</title><link>https://typecodes.com/posts/againwplimitnogravatar/</link><guid isPermaLink="true">https://typecodes.com/posts/againwplimitnogravatar/</guid><description>今天博客收到 @羽中 https://typecodes.com/web/wplimitnogravatar.html &quot;查看评论详情&quot; 童鞋关于文章 《wordpress中限制没有Gravatar头像的访客提交评论》 https://typecodes.com/web/wplimitnograva...</description><pubDate>Sat, 15 Mar 2014 00:00:00 GMT</pubDate></item><item><title>图解UEStudio/UltraEdit如何新建一个工程</title><link>https://typecodes.com/posts/uestudiocreateproject/</link><guid isPermaLink="true">https://typecodes.com/posts/uestudiocreateproject/</guid><description>UEStudio/UltraEdit应该说是一个超强大的文本编辑器了。之前用过notepad、editplus，博主最后还是选择了强大的UEStudio。在UEStudio或者UltraEdit中新建一个工程，可以方便管理程序文件。另外对于C程序开发人员来说，通过“在工程文件中查找符号定义”按钮轻松...</description><pubDate>Fri, 14 Mar 2014 00:00:00 GMT</pubDate></item><item><title>Google 开发者控制台Developers Console简单介绍以及API KEY的生成</title><link>https://typecodes.com/posts/googledevelopersconsoleapi/</link><guid isPermaLink="true">https://typecodes.com/posts/googledevelopersconsoleapi/</guid><description>如Google Developers所述：Google Developers is now the place to find all Google developer documentation, resources, events, and products， 谷歌开发者（Google Deve...</description><pubDate>Thu, 13 Mar 2014 00:00:00 GMT</pubDate></item><item><title>PHP模拟登录WordPress后台一：使用Chrome浏览器网络抓包</title><link>https://typecodes.com/posts/chromephpsimulatelogwpone/</link><guid isPermaLink="true">https://typecodes.com/posts/chromephpsimulatelogwpone/</guid><description>使用PHP的curl函数，可以模拟登录各种类型的网站后台，例如Discuz、QQ邮箱、WordPress、DeDeCMS等等。模拟登录需要两个步骤，第一个是了解目标网站后台登录时所需要提交的数据字段，第二个才是用curl函数模拟向网站后台提交数据。那么这篇文章先通过讲解使用Chrome浏览器进行网络...</description><pubDate>Thu, 13 Mar 2014 00:00:00 GMT</pubDate></item><item><title>PHP实现谷歌短网址服务的API接口调用</title><link>https://typecodes.com/posts/phgoogleshorturlapi/</link><guid isPermaLink="true">https://typecodes.com/posts/phgoogleshorturlapi/</guid><description>前面整理了一篇文章 《PHP实现百度、网易、新浪短网址服务的API接口调用》 https://typecodes.com/web/phpbd163sinashorturlapi.html &quot;点击查看&quot; ，这篇文章就来说说如何用PHP实现谷歌短网址API接口的调用。谷歌短网址的API接口功能比较丰富，...</description><pubDate>Wed, 12 Mar 2014 00:00:00 GMT</pubDate></item><item><title>Eclipse中的搭建C/C++开发环境：安装MinGW和Eclipse CDT插件</title><link>https://typecodes.com/posts/eclipseloadmingwcdt/</link><guid isPermaLink="true">https://typecodes.com/posts/eclipseloadmingwcdt/</guid><description>Eclipse 是一款由IBM提供支持的开源IDE工具。它的母站是www.eclipse.org。Eclipse在Java工程开发中非常流行。并且它可以通过外部插件来支持C/C++、PHP、Python、Perl以及其它网络工程开发。Eclipse还可以跨平台运行于Windows、Linux和Mac...</description><pubDate>Sat, 08 Mar 2014 00:00:00 GMT</pubDate></item><item><title>Windows平台如何安装最新的MinGW GCC编译器</title><link>https://typecodes.com/posts/windowsinstallmingwgcc/</link><guid isPermaLink="true">https://typecodes.com/posts/windowsinstallmingwgcc/</guid><description>在Eclipse中搭建C/C++环境的话，需要一个C/C++编译器。之前文章 《完美配置NetBeans IDE中的C/C++开发环境》 https://typecodes.com/cseries/netbeanscdevenv.html &quot;点击查看原文&quot; 中提到了使用Cygwin作为C/C++程序...</description><pubDate>Sat, 08 Mar 2014 00:00:00 GMT</pubDate></item><item><title>又要换主机空间了</title><link>https://typecodes.com/posts/changehostspace/</link><guid isPermaLink="true">https://typecodes.com/posts/changehostspace/</guid><description>不知不觉，两年的时光就飞逝了。博客从12年6月12日建立，已经换过两次主机了。第一次是包子赞助的国外主机，第二次（13年4月底）也就是现在用的主机是从一网友买的国内linux虚拟主机，顺便备了个案（话说这哥们帮我备案的时候也挺用心的，在此表示感谢）。空间的速度还不错，价格稍微有点贵，就是IP绑定了将...</description><pubDate>Sat, 08 Mar 2014 00:00:00 GMT</pubDate></item><item><title>PHP实现百度、网易、新浪短网址服务的API接口调用</title><link>https://typecodes.com/posts/phpbd163sinashorturlapi/</link><guid isPermaLink="true">https://typecodes.com/posts/phpbd163sinashorturlapi/</guid><description>闲来蛋疼，看了几个短网址API服务，于是把它们整理出来，方便以后使用。目前，提供靠谱的短网址API接口的公司不多（谷歌、百度、新浪微博、网易等），而像腾讯微博、淘宝这几个巨头的短网址服务都是仅供内部使用。 一、谷歌、百度、网易、新浪短网址服务的API比较 百度短网址API接口完全对外开放，用户不需申...</description><pubDate>Tue, 04 Mar 2014 00:00:00 GMT</pubDate></item><item><title>教程：主题【vfhky】如何在文章中插入音乐播放器</title><link>https://typecodes.com/posts/vfhkyinsertmusicplayer/</link><guid isPermaLink="true">https://typecodes.com/posts/vfhkyinsertmusicplayer/</guid><description>博客主题【vfhky 1.0】版本，在functions.php中封装了三种音乐播放器的短代码函数。因此，在wordpress后台写文章时可以插入三种不同风格的音乐播放器，并可设置是否自动+循环播放模式。不多说了，直接上代码：其中参数auto值为yes表示自动播放，no或者不填写auto则不自动播放...</description><pubDate>Sun, 16 Feb 2014 00:00:00 GMT</pubDate></item><item><title>教程：主题【vfhky】如何高亮wordpress文章以及文章评论中的代码</title><link>https://typecodes.com/posts/vfhkyhighlightcode/</link><guid isPermaLink="true">https://typecodes.com/posts/vfhkyhighlightcode/</guid><description>博客主题【vfhky 1.0】版本，使用google-code-prettify来对wordpress文章中的代码进行高亮美化。博主之前用过WP-CodeBox和Google Syntax Highlighter for WordPress插件，感觉还是不是很适合，而且延长了页面的载入时间。最后选择...</description><pubDate>Sun, 16 Feb 2014 00:00:00 GMT</pubDate></item><item><title>如何在github上参与主题【vfhky】的代码开发：开源项目协作开发实战</title><link>https://typecodes.com/posts/githubcollaborationtvfhky/</link><guid isPermaLink="true">https://typecodes.com/posts/githubcollaborationtvfhky/</guid><description>为了使更多的童鞋能通过github加入到主题【vfhky】的开发上来，博主把整个流程简要介绍下。其实，这也是一篇如何在github上参与一个开源项目的简单教程。 一、下载github（window客户端） 在github上用邮注册帐号后，下载github的window客户端，地址是 https://...</description><pubDate>Sat, 15 Feb 2014 00:00:00 GMT</pubDate></item><item><title>配置IIS出现错误的解决方法</title><link>https://typecodes.com/posts/postwpthemevfhky1/</link><guid isPermaLink="true">https://typecodes.com/posts/postwpthemevfhky1/</guid><description>从13年11月起，博客一直没有更新，主要是工作比较忙。之前陆陆续续有人问我，说主题挺不错的，能不能共享下。由于当时我的主题还在折腾，有时都有代码都有bug，所以一直没有发布。另外去年打算用typecho，选了一个主题，感觉不是很满意，所以也放弃了。趁现在空闲时间，我把现在用的这个主题整理出来（算是一...</description><pubDate>Sat, 15 Feb 2014 00:00:00 GMT</pubDate></item><item><title>使用.bat批处理文件实现内外网多IP地址的切换</title><link>https://typecodes.com/posts/batchginterandextnalnetwork/</link><guid isPermaLink="true">https://typecodes.com/posts/batchginterandextnalnetwork/</guid><description>从上一篇文章 《批处理文件（.bat）的写法——DOS命令大全》 https://typecodes.com/mix/dosbatmethod.html &quot;批处理文件（.bat）的写法——DOS命令大全&quot; ，大致了解了DOS命令以及.bat文件的基本写法，那么这篇文章就是一个实战实例。同时，也能更好...</description><pubDate>Mon, 16 Dec 2013 00:00:00 GMT</pubDate></item><item><title>批处理文件（.bat）的写法——DOS命令大全</title><link>https://typecodes.com/posts/dosbatmethod/</link><guid isPermaLink="true">https://typecodes.com/posts/dosbatmethod/</guid><description>最近看了下cmd命令，发觉有些用起来挺方便的。于是决定把这些DOS命令整理出来，方便以后写.bat批处理文件。 一、先来看看.cmd，.bat是什么： .bat是dos下的批处理文件； .cmd是nt内核命令行环境的另一种批处理文件； 因此，二者是没有本质区别。从更广义的角度来看，unix的shel...</description><pubDate>Tue, 26 Nov 2013 00:00:00 GMT</pubDate></item><item><title>Sybase客户端打开SQL Advantage 12.5.1报错：Internal failure while initializing SQL Advantage(一)</title><link>https://typecodes.com/posts/sqladvatage12internalfailureone/</link><guid isPermaLink="true">https://typecodes.com/posts/sqladvatage12internalfailureone/</guid><description>一、打开SQL Advantage报错：Internal failure while initializing SQL Advantage 前几天在用sybase win客户端（OC 12.5.1）的时候，遇到了一个问题。每次打开SQL Advantage 12.5.1后，如果强制关闭窗口（例如有时...</description><pubDate>Sun, 17 Nov 2013 00:00:00 GMT</pubDate></item><item><title>Sybase客户端打开SQL Advantage 12.5.1报错：Internal failure while initializing SQL Advantage(二)</title><link>https://typecodes.com/posts/sqladvatage12internalfailuretwo/</link><guid isPermaLink="true">https://typecodes.com/posts/sqladvatage12internalfailuretwo/</guid><description>一、打开SQL Advantage报错：Internal failure while initializing SQL Advantage 在sybase官方论坛上找到了两个比较有代表性的提问。二者共同的特点就是之前安装的都是SQL Advantage 11.5.1.3的版本，然后想使用12.5.1...</description><pubDate>Sun, 17 Nov 2013 00:00:00 GMT</pubDate></item><item><title>更新GitHub for Windows出错：git command could not be found</title><link>https://typecodes.com/posts/updategithubclienterr/</link><guid isPermaLink="true">https://typecodes.com/posts/updategithubclienterr/</guid><description>一、更新Github for Windows 前天在用git shell时，发现有新版本。作为“版本控”的我，自然是不会放过了。在升级后，重新打开git shell，竟然显示两个warning： 警告: git command could not be found. Please create an...</description><pubDate>Sun, 10 Nov 2013 00:00:00 GMT</pubDate></item><item><title>简洁的哲学：从华丽的WordPress转Typecho</title><link>https://typecodes.com/posts/wptoconcisetypecho/</link><guid isPermaLink="true">https://typecodes.com/posts/wptoconcisetypecho/</guid><description>前段时间，vfhky还在折腾主题，只为变得更简洁轻快。从12年6月博客建立初，就一直在用Wordpress。优秀的开发团队和强大的社区力量给予了Wordpress强大的生命力。看看各种琳琅满目的主题以及各种功能强劲的插件，你不由得感概这是wp统治的博客帝国。甚者，还有开发人员将其用于企业WEB站点。...</description><pubDate>Sun, 13 Oct 2013 00:00:00 GMT</pubDate></item><item><title>博客减负记：wordpress主题的优化</title><link>https://typecodes.com/posts/wpthemeoptimize/</link><guid isPermaLink="true">https://typecodes.com/posts/wpthemeoptimize/</guid><description>主题制作从7月21完成后，基本上没进行什么大的改动了。而且域名从huangkeye.com转到vfhky.sinaapp.com上来后，就一直搭载着360网站卫士。每天都要上360看看博客的安全状况，尤其看到那些被拦截的攻击后心里就特爽。心里就在琢磨着，要是没用360，博客是不是早就挂掉了。不过，用...</description><pubDate>Sat, 28 Sep 2013 00:00:00 GMT</pubDate></item><item><title>伟大的淘宝IP库的API接口竟然提示503挂掉了</title><link>https://typecodes.com/posts/taobaoipapi503/</link><guid isPermaLink="true">https://typecodes.com/posts/taobaoipapi503/</guid><description>一、淘宝IP库惊现503错误 吃完晚饭，大概6点半了，天色已暗，太阳早就落山了。回到宿舍打开博客一看，傻眼了：博客每篇文章的评论者的地理信息全部处于“正在查询中……”的状态。这神马情况，不会是被淘宝封了吧？但是就凭博客这点小流量应该不至于达到QPS小于10的限制吧？难道是js文件加载出错了？检查了一...</description><pubDate>Fri, 27 Sep 2013 00:00:00 GMT</pubDate></item><item><title>再议wordpress反垃圾评论：都是strpos函数惹的祸</title><link>https://typecodes.com/posts/wpantispamstrpoerror/</link><guid isPermaLink="true">https://typecodes.com/posts/wpantispamstrpoerror/</guid><description>一、strpos函数引起的失误 前天写了一篇文章 《wordpress关键词黑名单：反垃圾评论再升级》 https://typecodes.com/web/wpantispamblacklist.html &quot;wordpress关键词黑名单：反垃圾评论再升级&quot; 。文章内容是关于如何通过在Willin ...</description><pubDate>Tue, 24 Sep 2013 00:00:00 GMT</pubDate></item><item><title>wordpress关键词黑名单：反垃圾评论再升级（非插件）</title><link>https://typecodes.com/posts/wpantispamblacklist/</link><guid isPermaLink="true">https://typecodes.com/posts/wpantispamblacklist/</guid><description>一、老话题：wordpress垃圾评论 wordpress垃圾评论由来已久，在各位博主的有力反抗下，垃圾评论完成了一次又一次的升级。对wp新手来说，肯定不会想到自己的博客会被spam盯上。甚至还可能真认为是某老外关顾了自己的文章（博主曾经就二逼的用英文回复过）。等垃圾评论越来越多时，才仿然大悟。对于...</description><pubDate>Sun, 22 Sep 2013 00:00:00 GMT</pubDate></item><item><title>PHP+jQuery实现wordpress当前在线人数统计</title><link>https://typecodes.com/posts/phpjquerywponlinenum/</link><guid isPermaLink="true">https://typecodes.com/posts/phpjquerywponlinenum/</guid><description>一、在线人数统计：插件OR代码 如何实现一个web站点的在线人数统计？方法可能有很多，在最开始接触PHP的时候，大家可能会用session保存当前用户的IP地址和时间；也有人把登录用户的IP地址和登录时间保存到数据库中，然后在需要的地方查询数据库得到相应的数据；当然还可以用txt、html等文件来保...</description><pubDate>Sat, 21 Sep 2013 00:00:00 GMT</pubDate></item><item><title>wordpress中限制没有Gravatar头像的访客提交评论</title><link>https://typecodes.com/posts/wplimitnogravatar/</link><guid isPermaLink="true">https://typecodes.com/posts/wplimitnogravatar/</guid><description>一、为何限制没有Gravatar头像的访客 前几天博主就一直在想着是否要限制没有gravatar头像的用户在博客留言，主要原因有三点： 1、博客使用的是wordpress程序，而Gravatar早在07年就被Automattic公司收购并在wp程序上发扬光大。所以，wp博客和gravatar头像天生...</description><pubDate>Sun, 15 Sep 2013 00:00:00 GMT</pubDate></item><item><title>集齐腾讯开放平台的所有API接口权限</title><link>https://typecodes.com/posts/collectallqqapi/</link><guid isPermaLink="true">https://typecodes.com/posts/collectallqqapi/</guid><description>一、申请到第一个腾讯开放平台应用 在2012年6月份的时候，博主当时跟风申请了一个腾讯开放平台的应用。这个时候博客刚建立不久，而且当时腾讯开放平台的API授权还用的是Oauth1.0，集中在discuz论坛登录应用。所以，这个应用也一直荒废着。到今年8月底，博主看到各个云平台都打得火热，于是也想试试...</description><pubDate>Mon, 09 Sep 2013 00:00:00 GMT</pubDate></item><item><title>折腾comment-ajax造成wordpress后台页面空白的BUG</title><link>https://typecodes.com/posts/wpcommentajaxbug/</link><guid isPermaLink="true">https://typecodes.com/posts/wpcommentajaxbug/</guid><description>一、折腾Willin Kan评论代码的一个“BUG” 前几天折腾了下Willin Kan的comment-ajax.php文件，改动了一些代码，结果博客好几天都没收到评论了。昨晚上还在纳闷，会不会是文章写得太烂了又或者是360的节点挂了？反正是百思不得其解。随便翻看着之前写的文章，突然想到了自己前几...</description><pubDate>Thu, 05 Sep 2013 00:00:00 GMT</pubDate></item><item><title>上线第一个腾讯开放平台的API应用：收听微博用户（Beta版）</title><link>https://typecodes.com/posts/qqapifollowweibo/</link><guid isPermaLink="true">https://typecodes.com/posts/qqapifollowweibo/</guid><description>经过近段时间的努力，博主研究的腾讯开放平台API接口终于有所“突破”了。今天正式上线第一个测试版的接口应用：收听腾讯微博用户。先上效果图（也是add idol接口调用的整个流程），希望大家提提意见。 一、add idol接口调用流程 （1）点击博客右侧栏的“腾讯微博”图标，准备接口调用。 ! 腾讯A...</description><pubDate>Wed, 04 Sep 2013 00:00:00 GMT</pubDate></item><item><title>PHP中的cURL请求及示例</title><link>https://typecodes.com/posts/phpcurlrequestsample/</link><guid isPermaLink="true">https://typecodes.com/posts/phpcurlrequestsample/</guid><description>最近在学习腾讯开放平台API接口的过程中，看到了一个很强大的PHP库——cURL。它是利用URL语法在命令行方式下工作的文件传输工具。这篇文章是博主直接从国外一个博客翻译过来的，原文地址是： http://codular.com/curl-with-php http://codular.com/cu...</description><pubDate>Sun, 01 Sep 2013 00:00:00 GMT</pubDate></item><item><title>WordPress使用淘宝IP地址库的API显示评论者的位置信息（三）</title><link>https://typecodes.com/posts/wptaoiplibapithree/</link><guid isPermaLink="true">https://typecodes.com/posts/wptaoiplibapithree/</guid><description>一、PHP版本的淘宝IP地址库接口说明 在上一篇文章 《WordPress使用淘宝IP地址库的API显示评论者的位置信息二》 https://typecodes.com/web/wptaoiplibapitwo.html &quot;《WordPress使用淘宝IP地址库的API显示评论者的位置信息（二）》&quot;...</description><pubDate>Sun, 01 Sep 2013 00:00:00 GMT</pubDate></item><item><title>WordPress使用淘宝IP地址库的API显示评论者的位置信息（二）</title><link>https://typecodes.com/posts/wptaoiplibapitwo/</link><guid isPermaLink="true">https://typecodes.com/posts/wptaoiplibapitwo/</guid><description>一、淘宝IP地址库的接口说明 在上一篇文章 《WordPress使用淘宝IP地址库的API显示评论者的位置信息一》 https://typecodes.com/web/wptaoiplibapione.html &quot;查看详情&quot; 中，vfhky使用了新浪工具提供的这个IP接口显示博客评论者的位置信息。那...</description><pubDate>Sun, 01 Sep 2013 00:00:00 GMT</pubDate></item><item><title>调试API接口的利器——获取返回数据中的信息提示字段</title><link>https://typecodes.com/posts/testapiedgetoolreturnmessage/</link><guid isPermaLink="true">https://typecodes.com/posts/testapiedgetoolreturnmessage/</guid><description>一、调试腾讯开放平台QQ登录API 最近博主在测试腾讯开放平台的QQ登录API时，遇到了一个棘手问题。根据腾讯官方API文档，vfhky写了一个调用 get info http://wiki.connect.qq.com/get info &quot;查看腾讯官方关于get info的API文档&quot; 接口的程序...</description><pubDate>Thu, 29 Aug 2013 00:00:00 GMT</pubDate></item><item><title>Wordpress使用淘宝IP地址库的API显示评论者的位置信息（一）</title><link>https://typecodes.com/posts/wptaoiplibapione/</link><guid isPermaLink="true">https://typecodes.com/posts/wptaoiplibapione/</guid><description>一、跟风API 最近各种云平台很是火爆，博主也跟了一把风。之前博客主题的评论列表信息栏处，调用的是 新浪IP地址查询接口 http://int.dpool.sina.com.cn/iplookup/iplookup.php &quot;查看详情&quot; 。新浪的这个IP接口早在2009年就开放了，不过貌似查询的结果...</description><pubDate>Mon, 26 Aug 2013 00:00:00 GMT</pubDate></item><item><title>jQuery引起Wordpress评论快捷提交时的一个BUG</title><link>https://typecodes.com/posts/wpjquerycommentbug/</link><guid isPermaLink="true">https://typecodes.com/posts/wpjquerycommentbug/</guid><description>一、缘由： 上周六博主一直在纠结是否设置没有Gravatar头像的用户不能在博客发表评论，权衡利弊后，最终还是决定实施这个想法。主要考虑两个因素：最大可能避免那些发广告的人、提升博客评论的整体质量。因为一般的广告Spamer都不会有Gravatar头像，所以禁止掉这个用户群体后能尽量避免博客的垃圾评...</description><pubDate>Sun, 25 Aug 2013 00:00:00 GMT</pubDate></item><item><title>细数国内五个大型的云开放平台</title><link>https://typecodes.com/posts/domesticfivecloudplatform/</link><guid isPermaLink="true">https://typecodes.com/posts/domesticfivecloudplatform/</guid><description>一、发展历程 自从2007年5月24日脸谱Facebook推出自己的API应用接口后，Google、Twitter等IT巨头也纷纷推出了自己的开放平台，例如目前国内很多开发人员都在使用GAE部署自己的项目。而国内云平台的初步形成是在2008年，豆瓣、搜狐、天涯以及人人网等几个社区类型的IT企业成为了...</description><pubDate>Sun, 25 Aug 2013 00:00:00 GMT</pubDate></item><item><title>3百大战又将开启？看360和百度的云盘纷争</title><link>https://typecodes.com/posts/360baiduyunpanwar/</link><guid isPermaLink="true">https://typecodes.com/posts/360baiduyunpanwar/</guid><description>一、起由：360云盘的360G活动 本月20日晚上，博主打开360云盘官网，惊奇发现360正在为推广其PC和移动终端的云盘客户端而发起的一项活动。用户只需在自己的PC上安装最新的360云盘客户端，并成功登录后就可在官网上领取360G的云盘空间。不过，该活动已于昨日晚间时候结束。 ! 3百大战 htt...</description><pubDate>Thu, 22 Aug 2013 00:00:00 GMT</pubDate></item><item><title>Linux进程之alarm()信号传送闹钟函数</title><link>https://typecodes.com/posts/linuxalarmknockfunc/</link><guid isPermaLink="true">https://typecodes.com/posts/linuxalarmknockfunc/</guid><description>最近在学习Linux系统编程遇到了一个很有意思的函数：alarm ，它是一个用来设置信号传送的闹钟函数。网上找了一些资料，结合自己的学习体会，现在Mark一下。 一、alarm 函数说明 1 引用头文件： include ; 2 函数标准式：unsigned int alarm unsigned i...</description><pubDate>Wed, 14 Aug 2013 00:00:00 GMT</pubDate></item><item><title>博客必须养成的良好习惯：数据库备份</title><link>https://typecodes.com/posts/blogdatabackup/</link><guid isPermaLink="true">https://typecodes.com/posts/blogdatabackup/</guid><description>常说“有备无患”，指的是在生活中要提前做好准备，那么就能在未知的境遇面前不至于慌了手脚。昨天vfhky就小小的感受了一把，发觉这句话还真神：确实能做到让博客起死回生的作用！ WP3.6应该是在前一周就发布出来了，由于工作的原因，vfhky没及时更新。因为每次升级WP程序之前，我都会把整个主题程序、数...</description><pubDate>Mon, 12 Aug 2013 00:00:00 GMT</pubDate></item><item><title>Linux问题两连击：桥接模式无法上网、ping域名失败</title><link>https://typecodes.com/posts/linuxbridgepingnot/</link><guid isPermaLink="true">https://typecodes.com/posts/linuxbridgepingnot/</guid><description>问题一：Linux能ping通ip但不能ping通域名； 问题二：Linux桥接模式能与宿主机Windows通信互访但无法访问互联网。 上面两个问题都是由Linux中的DNS配置不正确导致的，因为DNS的作用就是将某个域名解析到相对应的IP上。当DNS无法正常把IP和域名相对应起来的时候就出现了上面...</description><pubDate>Sun, 04 Aug 2013 00:00:00 GMT</pubDate></item><item><title>Oracle数据库SQL操作语句报错的解决</title><link>https://typecodes.com/posts/oraclesqlerror/</link><guid isPermaLink="true">https://typecodes.com/posts/oraclesqlerror/</guid><description>最近在小红帽里面用GCCC编译含Oracle数据库SQL操作语句的C程序时候遇到了下面的7个报错信息，现整理出来Mark一下。 一、错误信息 -1400 ORA-01400: cannot insert NULL into &quot;CARDMAIN&quot;.&quot;CLR SFTC000BLOCK0&quot;.&quot;SE 二、错...</description><pubDate>Sun, 04 Aug 2013 00:00:00 GMT</pubDate></item><item><title>PHP获取两个时间相差的年数、月数和天数</title><link>https://typecodes.com/posts/phptimegap/</link><guid isPermaLink="true">https://typecodes.com/posts/phptimegap/</guid><description>今天在查看博客的统计栏时，发现那个“安全运行”的时间只显示了当前时间距离博客的建立时间相差的天数。这样看起来不怎么舒服：要是再过几年后，运行了七八百天，那是不是用户还得估算一下是几年了啊。因此，vfhky觉得还是把具体相差的年月日都写出来，这样才符合用户体验。 那么，如何获取两个不同时间相差几年几月...</description><pubDate>Mon, 29 Jul 2013 00:00:00 GMT</pubDate></item><item><title>PHP版网页随机音乐自动播放器（Wordpress通用）</title><link>https://typecodes.com/posts/phpwpmusicplayer/</link><guid isPermaLink="true">https://typecodes.com/posts/phpwpmusicplayer/</guid><description>最近想在博客的NBA专栏添加一个功能，那就是背景音乐。如果每次进入页面的时候都播放相同的音乐，次数多了就腻了，所以就想整个随机播放的。网上看了下相关的教程，都是用JS写的。由于JS的加载进度会影响整个网页的加载速度，所以放弃了JS，那就用PHP来解决吧。另外，所用到的music.swf文件已经放到博...</description><pubDate>Sun, 28 Jul 2013 00:00:00 GMT</pubDate></item><item><title>近期博客遭受后台攻击</title><link>https://typecodes.com/posts/blogsufferattack/</link><guid isPermaLink="true">https://typecodes.com/posts/blogsufferattack/</guid><description>和很多wordpress博主一样，vfhky也遭遇了博客后台的攻击。先不多说了，直接上图： ! 不止160多次的轰炸 https://cdn.typecodes.com/2013/07/1.jpg ! 系统后台警告 https://cdn.typecodes.com/2013/07/2.jpg 第一...</description><pubDate>Sat, 27 Jul 2013 00:00:00 GMT</pubDate></item><item><title>虚惊一场，一大波攻击来袭</title><link>https://typecodes.com/posts/lotsofblogattack/</link><guid isPermaLink="true">https://typecodes.com/posts/lotsofblogattack/</guid><description>又是一个周末，清晨11点起床。老规矩，先打开电脑再去洗漱神马的。唉，天气热得不行了，估计这会儿出门会立马给红烧的节奏。。。不过，饭还是要吃滴。于是，随便找了条球裤就出门了。幸亏边上的快餐店不远，走了5分钟的样子就到了。叫了碗牛肉拉面，味道还真不错，吃完后精神多了。这家面馆是一家西北人开的，看老板娘头...</description><pubDate>Sat, 27 Jul 2013 00:00:00 GMT</pubDate></item><item><title>Oracle数据库出现ORA-01034、ORA-27101错误解决</title><link>https://typecodes.com/posts/oracleora0103427101/</link><guid isPermaLink="true">https://typecodes.com/posts/oracleora0103427101/</guid><description>最近在虚拟机中操作Oracle数据库SQL语句时，出现了以下两种报错： 一、ORA-27101: shared memory realm does not exist 具体的错误信息如下： ORA-01034: ORACLE not available ORA-27101: shared memor...</description><pubDate>Sun, 21 Jul 2013 00:00:00 GMT</pubDate></item><item><title>关于博客评论的链接审查、网站认证的声明</title><link>https://typecodes.com/posts/commentlinksitecertification/</link><guid isPermaLink="true">https://typecodes.com/posts/commentlinksitecertification/</guid><description>本来不打算写这篇文章的，一来没什么真正有用的价值，二来对普通童鞋也没什么实际影响。但是这几天接二连三的带广告链接的垃圾评论，让vfhky很是无奈。虽然博客的评论设置需要填写算术验证码，在一定程度上避免了广告机器人的ad，但是还是没有阻挡那些广告黑手的热情……好吧，只能幸苦你们又是填写邮箱又是在加减运...</description><pubDate>Sun, 21 Jul 2013 00:00:00 GMT</pubDate></item><item><title>Wordpress文章复制自动添加博客链接的JS脚本（兼容IE、Firefox和Chrome）</title><link>https://typecodes.com/posts/wpcopywithbloglink/</link><guid isPermaLink="true">https://typecodes.com/posts/wpcopywithbloglink/</guid><description>这次博客在改用新主题的时候，曾经尝试过给博客的文章页面添加一个小功能：在复制文字时自动在文字后面加入文章的链接地址。当然保护文章版权的方法也有很多，例如给博文中的图片添加水印，在文章中多次增加内链，也有通过禁用右键复制功能来实现等等。但是还是vfhky觉得添加水印有碍图片的阅览，可以增加文字内链也麻...</description><pubDate>Mon, 15 Jul 2013 00:00:00 GMT</pubDate></item><item><title>启用CMS类型的博客主题，vfhky再次回归</title><link>https://typecodes.com/posts/cmsblogwithvfhkyreturn/</link><guid isPermaLink="true">https://typecodes.com/posts/cmsblogwithvfhkyreturn/</guid><description>由于种种原因，原定于5月底更换的主题未能正常上线。本以为最迟应该可以在6月份完成的，但是毕业设计、毕业旅行、回家……种种的种种，让我不得不停下来；本以为毕业后时间还很长，就像刚进大学时候觉得大学四年会很漫长，结果就是后知后觉了。好吧，不罗嗦了，直接进入主题： 一、主题变更缘由 博客从12年6月12开...</description><pubDate>Sun, 14 Jul 2013 00:00:00 GMT</pubDate></item><item><title>解决Windows中PLSQL连接虚拟机中Oracle缓慢的问题</title><link>https://typecodes.com/posts/plsqlconnvmwareoracleslow/</link><guid isPermaLink="true">https://typecodes.com/posts/plsqlconnvmwareoracleslow/</guid><description>博主上周末在自己的Windows宿主机中，用PL/SQL连接虚拟机中的oracle数据库时，出现了大概需要等待10多秒的时间才能登录成功的问题。很奇怪的现象，因为我在Windows中ping虚拟机中的oracle服务器IP地址，响应时间都在1ms内。在网上GG了下，没找到答案。后经我搭档指点，原来是...</description><pubDate>Sun, 21 Apr 2013 00:00:00 GMT</pubDate></item><item><title>取消WordPress的日志自动保存、修订版本、历史版本和文章不连续</title><link>https://typecodes.com/posts/cancelwpautosave/</link><guid isPermaLink="true">https://typecodes.com/posts/cancelwpautosave/</guid><description>首先声明，这篇文章来源于我大百度，博主只是整理了一下，另外测试了一些bug，所以不负也付不起版权责任^^。开个玩笑，相信很多Wordpress用户在后台写文章的时候都会被文本框下面的自动保存当前文章为草稿的提示所困扰。另外，文章不多，但是文章链接地址中的ID却真的是“围起来可以绕地球一圈”了。再者，...</description><pubDate>Sat, 20 Apr 2013 00:00:00 GMT</pubDate></item><item><title>如何在Windows宿主机中安装PL/SQL管理虚拟机中的Oracle</title><link>https://typecodes.com/posts/windowsplsqlmanageoracle/</link><guid isPermaLink="true">https://typecodes.com/posts/windowsplsqlmanageoracle/</guid><description>和微软SQL server一样，要想远程管理数据库，那么本地的windows主机中就需要安装sql server的客户端。而在Windows宿主机中管理虚拟机中的Oracle数据库，那么我们也需要安装Oracle数据库的客户端（当然是windows版本）。 这是常规的做法，但是oracle出产的软件...</description><pubDate>Sat, 20 Apr 2013 00:00:00 GMT</pubDate></item><item><title>虚拟机VMWare中Linux用桥接方式连接实例</title><link>https://typecodes.com/posts/vmwarelinuxbrigedmode/</link><guid isPermaLink="true">https://typecodes.com/posts/vmwarelinuxbrigedmode/</guid><description>一、虚拟机网络模式介绍与说明 我们在安装完虚拟机VMWare后，会发现在我们的宿主机Windows系统中多出了两个虚拟网卡：VMware Network Adapter VMnet1 和 VMware Network Adapter VMnet8 。因此，我们在使用虚拟机VMWare时，会利用这两个...</description><pubDate>Sat, 20 Apr 2013 00:00:00 GMT</pubDate></item><item><title>千里佳音，竟然收到百度的一份GIFT</title><link>https://typecodes.com/posts/getbaidugift/</link><guid isPermaLink="true">https://typecodes.com/posts/getbaidugift/</guid><description>周一下午3点多，俺突然接到一个区号010的电话。好家伙，不是96121，不是911也不是110，是010！俺还从没给010的号码骚扰过啊，于是就斗胆接了。接通后，手机那边传来的是一个年轻伙计的声音，自称是百度用户体验部的。我靠，竟然还能收到度哥的电话！俺当时心里那个鸡冻啊，差点就按捺不住了，嘿嘿。心...</description><pubDate>Fri, 19 Apr 2013 00:00:00 GMT</pubDate></item><item><title>博客历程一二 – 近期规划碎碎念</title><link>https://typecodes.com/posts/blogexperience/</link><guid isPermaLink="true">https://typecodes.com/posts/blogexperience/</guid><description>（一）Wordpress主题规划 博客从建立开始就定位于IT软件类博客，而且vfhky个人也比较偏爱简洁明了类型的wp主题，所以在众多主题当中就选择了 威少的主题 http://www.weisay.com/blog/wordpress-theme-weisay-simple.html &quot;点击查看 ...</description><pubDate>Sat, 13 Apr 2013 00:00:00 GMT</pubDate></item><item><title>再谈wordpress评论验证码——Willin Kan大神开的一个“玩笑”</title><link>https://typecodes.com/posts/againwpmathverifycode/</link><guid isPermaLink="true">https://typecodes.com/posts/againwpmathverifycode/</guid><description>（一）问题描述 最近在筹划博客的新主题中，遇到了一个问题，那就是在调用先前vfhky写的 《博客优化第二波 三 ：wordpress评论添加算术验证码》 https://typecodes.com/web/wpmathverifycode.html &quot;点击查看原文&quot; 文中的spam provent ...</description><pubDate>Fri, 12 Apr 2013 00:00:00 GMT</pubDate></item><item><title>新手如何做好个人独立博客——SEO经验谈</title><link>https://typecodes.com/posts/personalblogseoexp/</link><guid isPermaLink="true">https://typecodes.com/posts/personalblogseoexp/</guid><description>从2012年6月12日，博客已经度过了大半年的时光。vfhky之前也做过一些其它的站点，像DZ论坛、动易织梦门户神马的也弄过，但都没用心经营，所以后来也不了了之。这个博客的建立，有点无心插柳的味道——刚临近找工作那段时间，好友BZ给我买了个姓名域名，正好他那里还有个国外空间，于是就拿过来“借鸡生蛋”...</description><pubDate>Wed, 20 Mar 2013 00:00:00 GMT</pubDate></item><item><title>Redhat/CentOS通过yum安装与配置vsFTPd的详细步骤</title><link>https://typecodes.com/posts/cmdvsftpdinteraction/</link><guid isPermaLink="true">https://typecodes.com/posts/cmdvsftpdinteraction/</guid><description>上一篇文章 《Redhat/CentOS通过yum安装与配置vsFTPd的详细步骤》 https://typecodes.com/linux/linuxyuminstallvsftpd.html &quot;Redhat/CentOS通过yum安装与配置vsFTPd的详细步骤&quot; 介绍了如何在vmware8中的...</description><pubDate>Sun, 17 Mar 2013 00:00:00 GMT</pubDate></item><item><title>Redhat/CentOS通过yum安装与配置vsFTPd的详细步骤</title><link>https://typecodes.com/posts/linuxyuminstallvsftpd/</link><guid isPermaLink="true">https://typecodes.com/posts/linuxyuminstallvsftpd/</guid><description>由于需要在RHEL5.3中安装oracle数据库，所以博主得把window7中的oracle软件上传到wm8中的linux系统中去。众所周知，对于如何实现vm与windows系统的互通，可以使用vmtools实现。 但是对于一些类似于oracle这种大文件的话，直接从桌面或者其它硬盘拖动到linux...</description><pubDate>Fri, 15 Mar 2013 00:00:00 GMT</pubDate></item><item><title>解决Redhat Linux5 yum出现This system is not registered with RHN</title><link>https://typecodes.com/posts/linuxnotregisteredrhn/</link><guid isPermaLink="true">https://typecodes.com/posts/linuxnotregisteredrhn/</guid><description>最近博主在学习Linux，菜鸟级别的的选手连装个Chrome都觉得难，悲了个催的……百度了很多教程，大多是类似的。博主的配置是在VM8下搭建的RHEL5.3 Tikanga 版本，不知道什么原因，每次在输入yum install google-chrome-stable之后就会出现“This sys...</description><pubDate>Fri, 08 Mar 2013 00:00:00 GMT</pubDate></item><item><title>XAMPP+XDebug完美配置NetBeans IDE中的PHP开发环境</title><link>https://typecodes.com/posts/netbeansphpdevenv/</link><guid isPermaLink="true">https://typecodes.com/posts/netbeansphpdevenv/</guid><description>先吐槽一下Eclipse：博主前两三天一直在尝试用Eclipse juno+CDT8.1.1+MinGW配置C++的开发环境，各种出错，然后各种调试看文档，然后再出错，然后……现在算是基本把它配置成功了。总结一下，其实配置思路跟用NB完全版+Cygwin配置C++环境时一样的。很关键的一点就是CDT...</description><pubDate>Sun, 13 Jan 2013 00:00:00 GMT</pubDate></item><item><title>解决XAMPP的phpmyadmin平台修改mysql的root密码无法登陆的问题</title><link>https://typecodes.com/posts/xamppmysqlrootloginerr/</link><guid isPermaLink="true">https://typecodes.com/posts/xamppmysqlrootloginerr/</guid><description>由于在Netbeans中用到了php开发，所以接触到了XAMPP。但是，它和phpnow是有比较大的区别的。php是cmd命令安装，在安装过程就会提示用户设置root的密码，而非安装版的xampp是手动启动的，默认的localhost主机的用户root的密码为空。所以，一旦在xampp的phpmya...</description><pubDate>Sun, 13 Jan 2013 00:00:00 GMT</pubDate></item><item><title>再议Gravatar头像缓存至本地服务器</title><link>https://typecodes.com/posts/againwpgravatarcache/</link><guid isPermaLink="true">https://typecodes.com/posts/againwpgravatarcache/</guid><description>在 《WordPress中Gravatar头像缓存至本地服务器——暨博客的优化实录》 https://typecodes.com/web/wpgravatarcache.html &quot;点击查看&quot; 一文中，vfhky谈到了Gravatar头像本地服务器缓存技术。遗憾的是，由于当时考虑得不够周到，使用这里...</description><pubDate>Sun, 30 Dec 2012 00:00:00 GMT</pubDate></item><item><title>完美配置NetBeans IDE中的C/C++开发环境</title><link>https://typecodes.com/posts/netbeanscdevenv/</link><guid isPermaLink="true">https://typecodes.com/posts/netbeanscdevenv/</guid><description>目前众多C/C++开发人员使用的开发工具都是微软VC6.0、VC08、VS之类的IDE，那么对于需要进行C/C++开发的java程序猿们是否也要安装这些大块头呢？答案是否定的，因为目前java主要的两大开源IDE——Eclipse和NetBeans都是扩展性很好的开发平台，它们能够利用开源社区贡献的...</description><pubDate>Sat, 29 Dec 2012 00:00:00 GMT</pubDate></item><item><title>博客优化第二波(四)：wordpress头部文件的清理</title><link>https://typecodes.com/posts/wpcleanheaderfile/</link><guid isPermaLink="true">https://typecodes.com/posts/wpcleanheaderfile/</guid><description>前几天跟sparrowwei聊天，讨论博客空间访问速度的问题。一经比较，发觉自己的博客一些程序文件存在很多冗余信息，这些影响了博客的加载速度。遂下决心，彻底整理下博客，提高访问速度，于是开启了博客优化第二波进程。现将整个清理过程记录如下（主要还是头部文件的清理，产生这些冗余信息的是wp head 函...</description><pubDate>Thu, 13 Dec 2012 00:00:00 GMT</pubDate></item><item><title>博客优化第二波(三)：wordpress评论添加算术验证码</title><link>https://typecodes.com/posts/wpmathverifycode/</link><guid isPermaLink="true">https://typecodes.com/posts/wpmathverifycode/</guid><description>虽然说前面通过前面通过采用 《屏蔽wordpress垃圾评论的方法（插件和非插件）》 https://typecodes.com/web/antiwpspamplugorno.html &quot;屏蔽wordpress垃圾评论的方法（插件和非插件）&quot; 的方法来拦截那些spam，效果非常不错。但是博主对这些垃...</description><pubDate>Wed, 12 Dec 2012 00:00:00 GMT</pubDate></item><item><title>博客优化第二波(二)：wordpress评论表情图片路径修改的两种方法</title><link>https://typecodes.com/posts/wpcommentfacepicpath/</link><guid isPermaLink="true">https://typecodes.com/posts/wpcommentfacepicpath/</guid><description>wordpress评论框上的22个表情的图片默认是放在wp-include/images/smilies路径中的，这样做的好处是能够比较快的读取图片，安全性也好；缺点是每次遇到wp程序升级，你精心设计的这22个表情图标（BZ设计了两套表情图标， 点击下载 http://pan.baidu.com/s...</description><pubDate>Wed, 12 Dec 2012 00:00:00 GMT</pubDate></item><item><title>博客优化第二波(一)：同时使用谷歌自定义搜索和百度站内搜索</title><link>https://typecodes.com/posts/googlecustbaidusearch/</link><guid isPermaLink="true">https://typecodes.com/posts/googlecustbaidusearch/</guid><description>之前我写过一篇关于谷歌自定义搜索的文章： 《如何把自己的站内搜索改用强大的谷歌搜索》 https://typecodes.com/web/googlecustomsearch.html &quot;查看原文&quot; 。使用自定义的谷歌搜索引擎，完全满足任何一个站点的搜索，更何况是区区一个wordpress程序。某大...</description><pubDate>Tue, 11 Dec 2012 00:00:00 GMT</pubDate></item><item><title>宏碁笔记本恢复出厂系统记（一）</title><link>https://typecodes.com/posts/acerrestorefactorysysone/</link><guid isPermaLink="true">https://typecodes.com/posts/acerrestorefactorysysone/</guid><description>这篇文章是整个事件的记叙，如果想直接找安装教程，请到 《宏碁笔记本恢复出厂系统记二》 https://typecodes.com/mix/acerrestorefactorysystwo.html &quot;查看原文&quot; 中查看，适用于Acer Aspire 4752G/4750G等。 在笔记本刚买回来的时候...</description><pubDate>Thu, 06 Dec 2012 00:00:00 GMT</pubDate></item><item><title>宏碁笔记本恢复出厂系统记（二）</title><link>https://typecodes.com/posts/acerrestorefactorysystwo/</link><guid isPermaLink="true">https://typecodes.com/posts/acerrestorefactorysystwo/</guid><description>在 《宏碁笔记本恢复出厂系统记一》 https://typecodes.com/mix/acerrestorefactorysysone.html &quot;查看原文&quot; 一文中，记述了我的宏碁Aspire 4752G在用“ALT+F10”恢复出厂系统无效（因为该出厂系统被我损坏了）的情况下自己用宏碁官方的原...</description><pubDate>Thu, 06 Dec 2012 00:00:00 GMT</pubDate></item><item><title>C/C++数据结构与算法之排序法汇总</title><link>https://typecodes.com/posts/datastructsortingcollect/</link><guid isPermaLink="true">https://typecodes.com/posts/datastructsortingcollect/</guid><description>数据结构与算法之各种排序法汇总——数据结构与算法是软件工程必修课程，也是找软件方面工作必先学习的知识。几乎每次笔试一些软件公司都会碰到关于算法方面的题目。 当然，不同公司对这门课程的要求不同。像一些大一点的公司，例如百度、迅雷等等，它们的研发岗位的笔试就要求能用相关语言描述某种数据结构；而一些相对小...</description><pubDate>Fri, 30 Nov 2012 00:00:00 GMT</pubDate></item><item><title>WordPress中Gravatar头像缓存至本地服务器——暨博客优化实录</title><link>https://typecodes.com/posts/wpgravatarcache/</link><guid isPermaLink="true">https://typecodes.com/posts/wpgravatarcache/</guid><description>从11月24开始，博客开始进行优化。一来是博客的服务器不是很好，访问速度比较慢；二来，个人越来越倾向简洁、实用、便捷的博客主题。之前博客的界面有些地方比较繁复，比如右侧栏有两处同时实现类似“最新评论”的功能；另外，博客首页的图片过多，像右侧栏的粉丝墙和最新评论中的头像每次打开博客都需要从gravat...</description><pubDate>Tue, 27 Nov 2012 00:00:00 GMT</pubDate></item><item><title>博客成长录——暨收到工作offer后，博主的正式回归</title><link>https://typecodes.com/posts/growthrecordafteroffer/</link><guid isPermaLink="true">https://typecodes.com/posts/growthrecordafteroffer/</guid><description>一、2012-6-12 TypeCodes 正式建立，感谢包子和意哥赞助了博客的服务器，也非常感谢“威言威语”提供weisaysimple的主题支持。 ———— 《 TypeCodes 》 https://typecodes.com &quot;查看详情&quot; 二、（日子没记住1⊙﹏⊙b汗） 开始主题的修改工作，...</description><pubDate>Mon, 26 Nov 2012 00:00:00 GMT</pubDate></item><item><title>wordpress添加滚动（单条或多条）公告</title><link>https://typecodes.com/posts/wpaddrollnotice/</link><guid isPermaLink="true">https://typecodes.com/posts/wpaddrollnotice/</guid><description>其实想给自己的博客加个公告栏好久了，但是一直都没找到比较合适的方法。对于CMS，我总有种纠结的心情。一来，CMS系统确实给开发人员带来了快捷的网站系统雏形，这点大大节省了各种资源和时间的消耗；但是，我觉得CMS又降低了开发人员自主创新的能力（一家之言^^），总是想依赖点什么。对于wordpress我...</description><pubDate>Wed, 26 Sep 2012 00:00:00 GMT</pubDate></item><item><title>WordPress自动发送评论或回复的通知邮件</title><link>https://typecodes.com/posts/wpautosendcommentmail/</link><guid isPermaLink="true">https://typecodes.com/posts/wpautosendcommentmail/</guid><description>相信很多用过wordpress的朋友都知道，只要你的服务器支持邮件函数功能，那么当有人回复你的文章的时候，wordpress会自动发送邮件通知管理员。但如果是一个人回复另一个人，那么这个被回复的人会不会收到邮箱呢？因为有些主题没有设置自动发送通知邮件，这样就影响了整个博客的吸引力。所以，我们可以自己...</description><pubDate>Mon, 24 Sep 2012 00:00:00 GMT</pubDate></item><item><title>wordpress如何防止访客冒充博主发表评论</title><link>https://typecodes.com/posts/wpantisimulateblogger/</link><guid isPermaLink="true">https://typecodes.com/posts/wpantisimulateblogger/</guid><description>不知道大家注意没有，在wordpress的评论/回复框里面，任何访客只要填上博主的邮箱地址即可冒充博主发表/回复评论。虽然说一般很少人会无聊到这样做，还是“未雨绸缪”一下吧。万一哪天不是vfhky而是某个丑陋的spammer冒充一下帅气的哥，那岂不是损失大了^^开个玩笑，总之，我觉得有必要解决这个问...</description><pubDate>Mon, 24 Sep 2012 00:00:00 GMT</pubDate></item><item><title>如何给wordpress的回复添加引用功能</title><link>https://typecodes.com/posts/wpquotecomments/</link><guid isPermaLink="true">https://typecodes.com/posts/wpquotecomments/</guid><description>在上一篇文章已经写了 关于评论/回复添加@的方法 https://typecodes.com/web/wpatcommentauthor.html &quot;wordpress回复内容前面添加@作者样式&quot; ，今天继续用jQuery添加一个在评论/回复添加引用的功能。其实，只要博客有了评论/回复的@功能，基本...</description><pubDate>Mon, 24 Sep 2012 00:00:00 GMT</pubDate></item><item><title>wordpress回复内容前面添加@作者样式</title><link>https://typecodes.com/posts/wpatcommentauthor/</link><guid isPermaLink="true">https://typecodes.com/posts/wpatcommentauthor/</guid><description>前一篇文章写了关于 完美实现wordpress评论回复无限嵌套的方法 https://typecodes.com/web/wpnestedcomments.html &quot;完美实现wordpress评论回复无限嵌套的方法&quot; ，那么当某一条评论的回复数目比较多的时候怎么办？估计初来咋到的童鞋们会看的眼花缭...</description><pubDate>Sat, 22 Sep 2012 00:00:00 GMT</pubDate></item><item><title>完美实现wordpress评论回复无限嵌套的方法</title><link>https://typecodes.com/posts/wpnestedcomments/</link><guid isPermaLink="true">https://typecodes.com/posts/wpnestedcomments/</guid><description>一般wordpress的主题中的评论回复是可以嵌套使用的，但是一旦某一个人的回复或者评论下面有很多人跟帖的话，那么这种无限嵌套的方法很可能导致网页错位的问题，或多或少也会影响网页的美观。有人可能会想，要是我设置每个评论后面最多跟6个回复，多余的就让它成为新的评论，这样不就解决了吗？是的，本篇文章用的...</description><pubDate>Sat, 22 Sep 2012 00:00:00 GMT</pubDate></item><item><title>如何为自己的搜索引擎添加语音搜索功能</title><link>https://typecodes.com/posts/voicesearchengine/</link><guid isPermaLink="true">https://typecodes.com/posts/voicesearchengine/</guid><description>! 为自己的搜索引擎添加语音搜索 https://cdn.typecodes.com/2012/09/14.png &quot;为自己的搜索引擎添加语音搜索&quot; 谷歌率先在自己的搜索google.com上添加了这项功能，然后国内移动浏览器UC也应用了这项功能，紧接着国内浏览器巨头360浏览器在自己的搜索框架内也...</description><pubDate>Thu, 13 Sep 2012 00:00:00 GMT</pubDate></item><item><title>屏蔽wordpress垃圾评论的方法（插件和非插件）</title><link>https://typecodes.com/posts/antiwpspamplugorno/</link><guid isPermaLink="true">https://typecodes.com/posts/antiwpspamplugorno/</guid><description>相信很多wordpress使用者都有相同的经历，那就是在博客初期，可能不会有一些莫名的文章评论，而且写的内容貌似还比较符合文章的主题。但是，随着网站内容的丰富，相信会得到更多的spam评论。这些一般都是由一些机器人发出的，也不排除一些别有用心的人打算往你的博客里面注入点什么东东来获取点数据。所以屏蔽...</description><pubDate>Wed, 12 Sep 2012 00:00:00 GMT</pubDate></item><item><title>动易官方论坛的邀请码</title><link>https://typecodes.com/posts/sfinvitationcode/</link><guid isPermaLink="true">https://typecodes.com/posts/sfinvitationcode/</guid><description>动易CMS一直坚守着它的“封闭王国”，连个官方论坛都不对广大群众完全开放。所以当很多动易新手在遇到麻烦的时候，他们无法在论坛发帖求助。虽然说动易官方论坛一直都很冷，基本上发帖求助也没几个人回复。但是也不否定有一些好心人会伸手帮你一把，所以我想发布一些动易论坛的邀请码。这些邀请码都是我用自己的动易论坛...</description><pubDate>Mon, 10 Sep 2012 00:00:00 GMT</pubDate></item><item><title>如何修改WordPress的后台登录界面</title><link>https://typecodes.com/posts/amendwordpressloginpage/</link><guid isPermaLink="true">https://typecodes.com/posts/amendwordpressloginpage/</guid><description>和很多CMS一样，网站一经升级就会把你先前修改的一些图片或者样式什么的都替换为CMS自己的内容。Wordpress也一样，每次官方发布新版本升级后的后台管理都会被恢复为官方内容。所以很是麻烦，我们要做的就是想办法“一劳永逸”地解决这个问题。要修改的内容包括：替换登录Logo图片、替换Logo上的链接...</description><pubDate>Fri, 07 Sep 2012 00:00:00 GMT</pubDate></item><item><title>you can be just the one you want to be</title><link>https://typecodes.com/posts/beyouwanttobe/</link><guid isPermaLink="true">https://typecodes.com/posts/beyouwanttobe/</guid><description>Have any of you seen the film &quot;Rudy&quot;? I first saw it when I was 15 or 16. The story gave me the biggest jolt of inspiration of any film I have ever se...</description><pubDate>Tue, 04 Sep 2012 00:00:00 GMT</pubDate></item><item><title>如何把自己的站内搜索改用强大的谷歌搜索</title><link>https://typecodes.com/posts/googlecustomsearch/</link><guid isPermaLink="true">https://typecodes.com/posts/googlecustomsearch/</guid><description>一个优秀的网站必须有一个强大搜索引擎，这是毋庸置疑的。你可以想象一下，如果京东商城没有了搜索，新浪门户没有了搜索，虎扑篮球网没有了搜素……那将是让人奔溃的事情。这些大型网站都有这海量的数据库内容，一旦失去了搜索功能，那么用户要想找到自己想要的资源，简直是大海捞针。而一般网站自带的搜索功能，因为没有比...</description><pubDate>Mon, 27 Aug 2012 00:00:00 GMT</pubDate></item><item><title>PHP中验证码的设计</title><link>https://typecodes.com/posts/phpverificationcode/</link><guid isPermaLink="true">https://typecodes.com/posts/phpverificationcode/</guid><description>验证码是网站的重要组成部分，不管是在注册、登录又或者是留言页面，都需要注册码来验证当前操作者的合法性。很多情况下，我们的一些数据库会被那些垃圾广告软件发送大量的垃圾信息，这个是我们不愿看到的。更有甚者，一些非法用户会通过不断提交信息企图得到数据库的内容，或者造成网站的堵塞。所以，网站的验证码还是非常...</description><pubDate>Sun, 26 Aug 2012 00:00:00 GMT</pubDate></item><item><title>SQL Server2008和Visual Studio2008的安装教程</title><link>https://typecodes.com/posts/installmssql2008vs2008/</link><guid isPermaLink="true">https://typecodes.com/posts/installmssql2008vs2008/</guid><description>SQL Server08和Visual Studio08是我们常用的数据库和编程的开发工具，那么如何快速有效、简洁不重复地安装这两个工具还是有一定的诀窍的。“快速有效简单说”就是安装成功，“简单不重复”是指避免在安装SQL Server2008的时候（因为它还会自动安装Visual Studio08...</description><pubDate>Sun, 26 Aug 2012 00:00:00 GMT</pubDate></item><item><title>几个js的弹窗应用实例</title><link>https://typecodes.com/posts/jspopup/</link><guid isPermaLink="true">https://typecodes.com/posts/jspopup/</guid><description>弹窗可以说是当前很多网站的惯用手法了，几乎成了广告泛滥的重灾区。那么，我们也可以制作自己的弹窗。当然，我们是用在“正道”上面，比如说给网站首页添加一个节日的弹窗效果，增加节日气氛；又如，发布一些网站公告，让读者对网站的近段重要活动有所了解。而且，弹窗并不只是这些作用，它还可以让我们的一些操作变的更为...</description><pubDate>Sun, 26 Aug 2012 00:00:00 GMT</pubDate></item><item><title>网页自动刷新技术</title><link>https://typecodes.com/posts/webpageautorefresh/</link><guid isPermaLink="true">https://typecodes.com/posts/webpageautorefresh/</guid><description>网站的自动刷新技术对一个网站来说还是很有用处的，省去了多余的点击操作步骤，却能到达我们想要到达的页面，这是多么惬意的事情啊。像本站的404页面，当访问者访问了某一无效页面，就会自动转到这个404错误页面。然后通过这个页面的自动刷新技术，在8秒后跳转到博客的首页。所以说，这种设计还是挺人性化的。下面我...</description><pubDate>Sun, 26 Aug 2012 00:00:00 GMT</pubDate></item><item><title>动易SiteFactory系列教程六:数据源标签的讲解</title><link>https://typecodes.com/posts/sfdatasourcetag/</link><guid isPermaLink="true">https://typecodes.com/posts/sfdatasourcetag/</guid><description>本篇文章主要为大家讲解动易SiteFactory中的数据源标签，同时也算是动易SiteFactory系列教程的结束篇章了。因为任何一种CMS，只要你弄清它的标签了，你就算是一个二次开发者的入门者了。好了，不多说，我用“文章 内容页”标签作为例子来解说一下动易主要的两大类标签（普通标签和数据源标签）中...</description><pubDate>Wed, 22 Aug 2012 00:00:00 GMT</pubDate></item><item><title>动易SiteFactory系列教程四:如何添加一个分页标签</title><link>https://typecodes.com/posts/sfaddpagenavtag/</link><guid isPermaLink="true">https://typecodes.com/posts/sfaddpagenavtag/</guid><description>通过这篇文章，我们继续学习动易SiteFactory的标签制作。相信大家在文章列表模板页面或者是下载列表页面又或者是在图片列表页面都会涉及到分页的情况。那么动易SiteFactory又是如何通过标签进行分页的呢？下面我就为大家介绍一下分页标签的具体实现过程以及调用方法。 一这里我只列出图片和相应标签...</description><pubDate>Wed, 22 Aug 2012 00:00:00 GMT</pubDate></item><item><title>动易SiteFactory系列教程一:最新头条新闻带内容标签的制作</title><link>https://typecodes.com/posts/sfnewscontenttag/</link><guid isPermaLink="true">https://typecodes.com/posts/sfnewscontenttag/</guid><description>如何运用cms建立一个网站？我认为，可以分为3个步骤：第一个步骤是设计好整个网站的模板页面，这个主要有前台开发人员设计；第二个是熟悉后台的各种栏目（或者频道或者节点）的设置。不能小看这个步骤，很多标签都跟栏目使用的模板有关，不能通用；第三个步骤是后台开发人员根据相应的前台设计以及相应的要求添加相应的...</description><pubDate>Tue, 21 Aug 2012 00:00:00 GMT</pubDate></item><item><title>动易SiteFactory系列教程三:最新头条新闻标签制作</title><link>https://typecodes.com/posts/sfnewstag/</link><guid isPermaLink="true">https://typecodes.com/posts/sfnewstag/</guid><description>在上一篇最新头条新闻带图片标签制作的教程中，我们熟悉了动易标签制作的大体流程。那么，这篇通过文章，我们继续学习动易SiteFactory的标签制作。本篇教程的主题是以大家访问一些网站的时候经常见到的头条新闻列表来演示动易SiteFactory如何制作出这种风格的标签。 一这里我只列出图片和相应标签内...</description><pubDate>Tue, 21 Aug 2012 00:00:00 GMT</pubDate></item><item><title>动易SiteFactory系列教程二:动易常用的标签</title><link>https://typecodes.com/posts/sfcommontag/</link><guid isPermaLink="true">https://typecodes.com/posts/sfcommontag/</guid><description>1.显示某个栏目的标题及链接： {PE.Label id=&quot;取得节点名称&quot; nodeid=&quot;1&quot;/} 显示“文章中心”及链接。也可以用nodes=&quot;@RequestInt Id&quot;自动取值。 2.显示图片带标题（左边图片，右边文章标题）： {PE.Label id=&quot;通用带图片的信息列表&quot; outpu...</description><pubDate>Tue, 21 Aug 2012 00:00:00 GMT</pubDate></item><item><title>如何将SQL2008的数据库转换成SQL2005</title><link>https://typecodes.com/posts/convertmssql2008to2005/</link><guid isPermaLink="true">https://typecodes.com/posts/convertmssql2008to2005/</guid><description>最近在帮一个Q友改网站的时候，我本地备份的数据库是SQL08的，而他的.NET服务器上装的是SQL Server05的，所以要把我备份的数据库转换为05的。过程如下：首先进入SQL Server Management Studio，登录服务器然后: 1 如果你要转换的数据库在“对象资源管理器”中，那...</description><pubDate>Tue, 21 Aug 2012 00:00:00 GMT</pubDate></item><item><title>动易SiteFactory的详细安装以及常见错误解决方案</title><link>https://typecodes.com/posts/installsitefactory/</link><guid isPermaLink="true">https://typecodes.com/posts/installsitefactory/</guid><description>最近一Q友叫我帮他改一个网站，他用的是动易SiteFactory3.6的内容管理系统。因此，我对动易CMS有了进一步了解。那么，从今天开始，我将为大家做一个关于动易SiteFactory内容管理系统的系列教程（这中间免不了有错误的地方，希望大家指正）。废话不多说，直接从动易CMS的安装开始： 一、动...</description><pubDate>Sun, 19 Aug 2012 00:00:00 GMT</pubDate></item><item><title>对动易CMS和织梦CMS的一些认识——动易CMS篇</title><link>https://typecodes.com/posts/aboutsitefactorycms/</link><guid isPermaLink="true">https://typecodes.com/posts/aboutsitefactorycms/</guid><description>最近一Q友找我帮忙修改他的一个网站，用的是动易SiteFactory3.6的内容管理系统。对于动易的话，我第一次接触也是在大二的时候。那时跟着学校实验室的坤哥混，他接手了一些网站项目然后让我和另外一同学参与了进来。其实那个时候对CMS还是闻所未闻，因为自己以前总觉得所有网站都是自己用相关的开发语言写...</description><pubDate>Sun, 19 Aug 2012 00:00:00 GMT</pubDate></item><item><title>对动易CMS和织梦CMS的一些认识——织梦CMS篇</title><link>https://typecodes.com/posts/aboutdedecms/</link><guid isPermaLink="true">https://typecodes.com/posts/aboutdedecms/</guid><description>一、织梦CMS的概况 织梦（DEDECMS）目前有两大系列产品，即DedeCMS、DedeEIMS。这两种CMS都是基于PHP+MYSQL的开发环境的，其中，DedeCMS应该算是目前国内最受欢迎的的基于PHP环境的CMS了；DedeEIMS 全称EIMSDede Enterprise Inform...</description><pubDate>Sun, 19 Aug 2012 00:00:00 GMT</pubDate></item><item><title>Win7安装及配置IIS7教程（ASP+ASP.NET,包括动易SF的IIS配置）</title><link>https://typecodes.com/posts/win7configiis7/</link><guid isPermaLink="true">https://typecodes.com/posts/win7configiis7/</guid><description>一、安装IIS7 依次点击“开始 -- 控制面板 -- 程序 -- 打开或关闭 Windows 功能”，然后按下图操作：（注意：图中红色部分都要选中） ! 安装IIS7 https://cdn.typecodes.com/2012/08/1.jpeg &quot;安装IIS7&quot; 二、配置IIS7 2.1 身份...</description><pubDate>Fri, 17 Aug 2012 00:00:00 GMT</pubDate></item><item><title>MSSQL还原数据库时出现错误:sql Sys</title><link>https://typecodes.com/posts/mssqlcannotrestore/</link><guid isPermaLink="true">https://typecodes.com/posts/mssqlcannotrestore/</guid><description>先前博主在本地备份了一个数据库文件dy11.bk，然后在MSSQL2008上新建了一个名为first的数据库，打算把dy11.bk还原到这个first数据库上。结果，MSSQL还原时出现错误:sql System.Data.SqlClient.SqlError: 无法覆盖文件&apos;C: Program ...</description><pubDate>Wed, 15 Aug 2012 00:00:00 GMT</pubDate></item><item><title>PHP程序解决WordPress重新排列不连续的文章ID</title><link>https://typecodes.com/posts/phpsolvewparticleid/</link><guid isPermaLink="true">https://typecodes.com/posts/phpsolvewparticleid/</guid><description>wordpress有个缺点，那就是在后天发表文章的时候，系统会自动等时间地帮你备份。虽然出发点是好的，但是却导致了发表的文章的ID不连续。比如，前一篇文章的网站是27.html，很可能在你发表下一篇文章的时候网站会变成45.html。至此为止，博客中总共18篇文章，在我没进行重新排序之前，文章的ID...</description><pubDate>Sat, 28 Jul 2012 00:00:00 GMT</pubDate></item><item><title>Some Thing about Life</title><link>https://typecodes.com/posts/thinkaboutlife/</link><guid isPermaLink="true">https://typecodes.com/posts/thinkaboutlife/</guid><description>生活，真的很难用一个词语来描述它。因为每个阶段，你对它会有不同的认识。而且，即使当你处在某一阶段的时候也会有不同的感悟。 例如，小时候，很多人觉得生活应该是个快乐、充满神奇的世界。几乎每个人都会特别期待打开下一个画面，虽然他们早已为这块画布画满了自己的世界；到了少年的时候，会越来越佩服自己，欣赏自己...</description><pubDate>Thu, 26 Jul 2012 00:00:00 GMT</pubDate></item><item><title>小议网站HTTP响应拆分漏洞</title><link>https://typecodes.com/posts/crlfloophole/</link><guid isPermaLink="true">https://typecodes.com/posts/crlfloophole/</guid><description>一、问题描述 昨天博客重新改用了一个插件，这个插件虽然也是wordpress官方插件，但是在安装之后网站就出现了一个高危漏洞。根据WASC Threat Classification的说明，该漏洞名称叫做“HTTP响应拆分漏洞”，也叫“CRLF注入攻击”。CR、LF分别对应回车（%0d）、换行（%0...</description><pubDate>Tue, 24 Jul 2012 00:00:00 GMT</pubDate></item><item><title>网站的robots和.htaccess应该如何写</title><link>https://typecodes.com/posts/siterobotshtaccess/</link><guid isPermaLink="true">https://typecodes.com/posts/siterobotshtaccess/</guid><description>首先，我们了解一下robots和.htacces这两个文件是什么：①robots即文件robots.txt，存放位置为网站的根目录。它是搜索引擎中访问网站的时候要查看的第一个文件。robots.txt文件告诉蜘蛛程序在服务器上什么文件是可以被查看并收录的，而什么文件又是不能让这些搜索引擎查看和收录的...</description><pubDate>Thu, 19 Jul 2012 00:00:00 GMT</pubDate></item><item><title>DEDE织梦和Discuz整合方法</title><link>https://typecodes.com/posts/combinededediscuz/</link><guid isPermaLink="true">https://typecodes.com/posts/combinededediscuz/</guid><description>一、本地织梦和dz安装目录如下：127.0.0.1/dd，127.0.0.1/dz 其中dz已经安装了ucenter（在127.0.0.1/dz/uc server），在dz后台的“应用管理”中可以看到有个“Discuz！Board”通信成功的应用。 二、进入dd后台配置UCenter 点击“模块”...</description><pubDate>Wed, 04 Jul 2012 00:00:00 GMT</pubDate></item><item><title>如何删除Win7任务栏上通知区域中的多余图标</title><link>https://typecodes.com/posts/delwin7surpic/</link><guid isPermaLink="true">https://typecodes.com/posts/delwin7surpic/</guid><description>在Win7桌面右下角的通知区域图标中，会看到很多通知图标，但很多人会遇到这样的情况，那就是自己明明已经删除了的软件，但是它还是会以通知图标的形式出现在这个通知区域内。那么我们又如何删除这些图标从而得到一个简洁的通知图标呢？ 步骤1 按住 &quot;win+R&quot; 打开&quot;运行&quot;窗口，然后输入 “regedit”...</description><pubDate>Wed, 04 Jul 2012 00:00:00 GMT</pubDate></item><item><title>解决C#生成的.exe文件“一闪而过”的问题</title><link>https://typecodes.com/posts/exeflashacross/</link><guid isPermaLink="true">https://typecodes.com/posts/exeflashacross/</guid><description>在点击用C 命令提示工具生成.exe文件时，很可能会出现“一闪而过”的问题。 方法1：这个方法是通用的：在.CS代码的最后加上这句 Console.ReadLine ; ，它的作用是“等待用户输入”，这样DOS窗口直到你敲击回车键才会关闭；或者在程序最后加上一句 Console.ReadKey ; ...</description><pubDate>Wed, 04 Jul 2012 00:00:00 GMT</pubDate></item><item><title>配置IIS出现错误的解决方法</title><link>https://typecodes.com/posts/configiiserr/</link><guid isPermaLink="true">https://typecodes.com/posts/configiiserr/</guid><description>在给ASP或者ASP.NET等需要配置IIS服务器的过程中，很可能会遇到以下两种错误。尤其是用Win7系统的，配置IIS7.0版本比用XP系统配置IIS5.1版本而言要复杂复杂一些。当同时需要配置ASP和ASP.NET共存的IIS服务器环境时会更有挑战性。下面是我的两个总结: 一、错误提示：ADOD...</description><pubDate>Tue, 03 Jul 2012 00:00:00 GMT</pubDate></item><item><title>PHP和ASP的数据库连接代码</title><link>https://typecodes.com/posts/phpaspconndb/</link><guid isPermaLink="true">https://typecodes.com/posts/phpaspconndb/</guid><description>（一）PHP的连接代码 !php 将上述代码另存为conn.php，就可以通过在页面加入 require &quot;conn.php&quot; ; 调用了。 !php $sql =&quot;select from dbname users where ID=1&quot;; $result = mysql query $sql,$c...</description><pubDate>Sun, 01 Jul 2012 00:00:00 GMT</pubDate></item><item><title>几种编程语言的注释方法</title><link>https://typecodes.com/posts/langannotation/</link><guid isPermaLink="true">https://typecodes.com/posts/langannotation/</guid><description>一、HTML语言 !html Document HTML语言如何注释 /p 二、CSS样式 !css .spostinfo ul li{line-height:24px;}/ 转载注明样式 / .backs {cursor: pointer;}/ 站外引用trackback / 三、ASP语言 !a...</description><pubDate>Sun, 01 Jul 2012 00:00:00 GMT</pubDate></item><item><title>一个简单的Ajax应用</title><link>https://typecodes.com/posts/asimpajax/</link><guid isPermaLink="true">https://typecodes.com/posts/asimpajax/</guid><description>我在上一篇文章中写了在asp中如何用Ajax技术免重载网页检查用户名是否被占用，那么这篇博文主要通过一个简单的Ajax应用来解析一下Ajax技术的原理。 首先需要三个文件，simpleAjax.hml 用来看效果 ，simpleAjax.js 用JavaScript中的XMLHttpRequest对...</description><pubDate>Sat, 30 Jun 2012 00:00:00 GMT</pubDate></item><item><title>从一段ASP代码分析HTML、CSS、ASP、SQL（二）</title><link>https://typecodes.com/posts/aspanalyzetwo/</link><guid isPermaLink="true">https://typecodes.com/posts/aspanalyzetwo/</guid><description>（一）前台DIV+CSS布局 布局样式通过第11行 linkrel =&quot;stylesheet&quot; href=&quot;css/index.css&quot; type=&quot;text/css&quot; 引入控制的。而从图中可以看出首页 index.asp 是由头部 第18行 、中部 第20行）和底部（第127行）这三个DIV层构成...</description><pubDate>Sat, 30 Jun 2012 00:00:00 GMT</pubDate></item><item><title>浅谈初步应用Ajax技术</title><link>https://typecodes.com/posts/talkajax/</link><guid isPermaLink="true">https://typecodes.com/posts/talkajax/</guid><description>为了避免繁重的Web空间服务器负荷，Ajax技术可以使得我们的服务器不再超负载工作了。Ajax全称是“Asynchronous JavaScript and XML”，也即异步JavaScript和XML。它通过JavaScript可使用其XMLHttpRequest对象来直接与服务器进行通信。通过...</description><pubDate>Sat, 30 Jun 2012 00:00:00 GMT</pubDate></item><item><title>从一段ASP代码分析HTML、CSS、ASP、SQL（一）</title><link>https://typecodes.com/posts/aspanalyzeone/</link><guid isPermaLink="true">https://typecodes.com/posts/aspanalyzeone/</guid><description>在大二的时候参加学校的一个网页设计比赛，做了一个关于党建90周年的网站。这个网站是用CSS+ASP+ACCESS2003写的。虽说access数据库现在基本没人用了，但是这对初学者来说是很好的一个数据库操作平台。尤其是在学习SQL时，用Access比MSSQL和MYSQL要容易上手些，因为Acces...</description><pubDate>Fri, 29 Jun 2012 00:00:00 GMT</pubDate></item><item><title>如何用笔记本Win7系统建立Wifi</title><link>https://typecodes.com/posts/win7wifi/</link><guid isPermaLink="true">https://typecodes.com/posts/win7wifi/</guid><description>这几天，好友萌神的Andriod神机由于包的流量用完了，老是一副没精神的神情。看他无所事事的样子，我就想要是自己建个Wifi，那就可以解决他的流量问题了。正好晚上班级聚餐回来，起兴的我马上行动了起来。现在和大家分享下这种在没有用无线路由器（Wireless Router）的情况下，如何利用笔记本的w...</description><pubDate>Thu, 28 Jun 2012 00:00:00 GMT</pubDate></item><item><title>妙用IE浏览器下载各种难以下载的资源</title><link>https://typecodes.com/posts/iedownsource/</link><guid isPermaLink="true">https://typecodes.com/posts/iedownsource/</guid><description>可能很多人会认为微软的IE浏览器是一个很鸡肋的东西，要界面没界面，要速度没速度，而且很呆板。要不是靠着自己的系统捆绑，估计没几个人会用。人家谷歌有速度，而且有很多时尚超前的App Store；火狐向来是网页标准化的先驱者，另外它也是一个开放的王国。但也只有IE死守在自己几十年前的标准，和各大浏览器厂...</description><pubDate>Tue, 26 Jun 2012 00:00:00 GMT</pubDate></item><item><title>如何在博客中发表评论时显示个性头像</title><link>https://typecodes.com/posts/bloggravatar/</link><guid isPermaLink="true">https://typecodes.com/posts/bloggravatar/</guid><description>当前基本上所有的博客都是开放的，可以进行互动性评论。经常看到一些朋友在发表评论时，总是使用千篇一律的头像，毫无个性可言。一部分原因是由于懒得去弄个头像，另一个原因可能是不知道还可以自定义自己的头像或者不知道怎样去设置自己喜欢的头像。那么这篇博文的主题就是教大家如何制作自己的个性头像，而且是全球通用的...</description><pubDate>Sun, 17 Jun 2012 00:00:00 GMT</pubDate></item><item><title>解决Office2010plus安装sp1更新时出现groovemui.msi错误</title><link>https://typecodes.com/posts/office2010plusgroovemuierr/</link><guid isPermaLink="true">https://typecodes.com/posts/office2010plusgroovemuierr/</guid><description>在安装OFFCIE2010后，win7系统的update过段时间会提示更新，但当你把下载好的更新进行安装时会莫名其妙的出现groovemui.msi的错误提示。 ! office2010在安装sp1更新时出现的错??提示 https://cdn.typecodes.com/2012/06/1.jpg...</description><pubDate>Sat, 16 Jun 2012 00:00:00 GMT</pubDate></item></channel></rss>