文章列表
 
2011-01-04 1:01

鉴于前段时间发生的两件事情,我决定将这个博客迁至自建的博客“chinakr的博客”,为此我特意申请了quickbest.net这个域名。

这里提到的两件事情,第一件事情是blog.sina.com/chinakr这个博客无故被关闭,第二件事情是百度空间升级后变成SNS网站并且编辑器对Linux支持不好了。

鉴于国际上著名的几个免费Blog服务都被拒于国门之外,我决定自己用WordPress架“chinakr的博客”。运营这个个人博客的同时,我也在不断摸索SEO的规律,积累经验,为下一阶段的网络推广战斗奠定更坚实的基础。

当这里的主要文章迁移完毕后,这里的文章将不再更新。

欢迎大家继续访问“chinakr的博客”,和我一起交流开源技术和产品!

 
2010-12-29 0:14

作者:chinakr
日期:2010-12-29

Q:我把Smarty放在了哪里?
A:
/../include/Smarty-3.0.6/libs/

Q:如何让PHP脚本知道我把Smarty放在了哪里?
A:
在php.ini中设置搜索路径,加上Smarty的位置
include_path = "...:/path/to/smarty_root/include/Smarty-3.0.6/libs/"

Q:Smarty需要你在App目录下新建哪些目录?
A:
需要新建4个目录:
./templates
./templates_c
./configs
./cache
其中templates_c和cache目录需要770权限或775权限。

Q:如何测试Smarty是否安装成功?
A:
新建PHP脚本testSmarty.php,内容如下:
<?php
//注意Smarty的S是大写的
require_once('Smarty.class.php');
$smarty->testInstall();
?>
然后运行testSmarty.php,如果输出提示成功的信息那就说明OK了。

Q:我是如何知道这些东西的,有哪些参考资料?
A:
Google“Smarty”,找到Smarty的官方网站。
Documentation > Smarty 3 Documentation > English > Getting Started > Basic Installation,文章的链接是:
http://www.smarty.net/docs/en/installing.smarty.basic.tpl

注:
本文基于CC协议
关注开源,关注http://QuickBest.com.cn/
欢迎转载,转载请注明作者和出处

 
2010-12-26 3:11

应用了Smarty、Blueprint和jQuery(开发中),

实践了“Google SEO Guide”,

并且通过301跳转完成了老站到新站的无缝迁移。

 

网址是:http://haijia.org

 

欢迎大家提意见!

btw:很少上网了,有意见请发我邮箱:chinakr@gmail.com,thx!

 

来源:http://blog.renren.com/blog/247483245/703582204

 
2010-11-01 0:52
由于论坛中存在大量的机器人帐号和垃圾信息,清北服务网站的数据库体积已经接近1TB,直接导致了前些日子升级Discuz! X 1.5失败。于是下定决定彻底清理论坛上的垃圾帐号和无用帖子。 由于SupeSite后台设计不良,加上后续Comsenz已无开发计划,同时考虑到被腾讯收购后,产品可能更加偏离开源社区的风格,因此决定放弃用SupeSite搭建的news.quickbest.com.cn测试站,不再购买SupeSite商业授权,并且bbs.quickbest.com.cn采用的Discuz! 7.2将不再升级到Discuz! X1。 之后清北服务网站将只运营已经够买了商业授权的Discuz! 7.2和ECSHOP,其它功能需求将自行开发程序来满足。 卸载SupeSite(或称为关闭SupeSite站点)而不影响网站搜索引擎排名的唯一方法是使用301跳转。具体操作方法如下: 在news.quickbest.com.cn根目录,编辑.htaccess文件,内容为: ==========文件开始========== RewriteEngine on # Use PHP5 Single php.ini as default AddHandler application/x-httpd-php5s .php RewriteBase / #把news.quickbest.com.cn强制重定向到bbs.quickbest.com.cn RewriteBase / RewriteCond %{HTTP_HOST} ^news.quickbest.com.cn$ RewriteRule ^(.*)$ http://bbs.quickbest.com.cn/$1 [R=301,L] ==========文件结束========== 在bbs.quickbest.com.cn根目录,编辑.htaccess文件,内容为: ==========文件开始========== RewriteEngine on # Use PHP5 Single php.ini as default AddHandler application/x-httpd-php5s .php RewriteBase / #把bbs.quickbest.com.cn/html/22/t-62622.html强制重定向到 #bbs.quickbest.com.cn/thread-62622-1-1.html RewriteRule ^html/[0-9]+/t-([0-9]+)\.html$ thread-$1-1-1.html [R=301,NC] ==========文件结束========== 这样,当你访问: http://news.quickbest.com.cn/html/22/t-62622.html 时就会自动跳转到: http://bbs.quickbest.com.cn/thread-62622-1-1.html 而不会出现找不到页面的错误。 在设置了301跳转后,就可以在“UCenter 用户管理中心 -> 应用管理 -> 应用列表”中删除“清北IT在线 http://news.quickbest.com.cn”。 然后删除news.quickbest.com.cn下的所有文件和目录(之前在根目录下建立的.htaccess文件除外)。 最后删除数据库中所有以supe_开头的数据表。对应的SQL语句如下: ==========SQL语句开始========== DROP TABLE `supe_adminsession`, `supe_ads`, `supe_announcements`, `supe_attachments`, `supe_attachmenttypes`, `supe_blocks`, `supe_cache`, `supe_cache_0`, `supe_cache_1`, `supe_cache_2`, `supe_cache_3`, `supe_cache_4`, `supe_cache_5`, `supe_cache_6`, `supe_cache_7`, `supe_cache_8`, `supe_cache_9`, `supe_cache_b`, `supe_cache_c`, `supe_cache_d`, `supe_categories`, `supe_channels`, `supe_click`, `supe_clickgroup`, `supe_clickuser`, `supe_creditlog`, `supe_creditrule`, `supe_crons`, `supe_customfields`, `supe_forums`, `supe_friendlinks`, `supe_members`, `supe_modelcolumns`, `supe_modelfolders`, `supe_modelinterval`, `supe_models`, `supe_pages`, `supe_polls`, `supe_postitems`, `supe_postlog`, `supe_postmessages`, `supe_postset`, `supe_prefields`, `supe_reports`, `supe_robotitems`, `supe_robotlog`, `supe_robotmessages`, `supe_robots`, `supe_rss`, `supe_settings`, `supe_sitemaplogs`, `supe_spacecomments`, `supe_spaceitems`, `supe_spacenews`, `supe_spacepages`, `supe_spacetags`, `supe_styles`, `supe_tagcache`, `supe_tagcache_2`, `supe_tagcache_3`, `supe_tagcache_7`, `supe_tagcache_9`, `supe_tags`, `supe_usergroups`, `supe_userlog`, `supe_words`; ==========SQL语句结束========== 以上是我对清北服务网站所做的调整。之后清北将转向“致力于提供基于开源技术的商业解决方案”的公司。原有的业务只保留“清北技术论坛”和“清北网上放心店”,而“清北技术论坛”将采用邀请注册、VIP服务的方式来运营。 欢迎大家不久后访问焕然一新的 清北服务技术论坛(http://bbs.quickbest.com.cn) 和 清北网上放心店(http://shop.quickbest.com.cn)。 清北QuickBest,追求完美用户体验
 
2010-10-30 17:07
Tutorials & References     HTML - The W3C School website     CSS  - The "CSS Mastery: Advanced Web Standards solutions 2nd" book     JavaScript -> jQuery - The jQuery official website     Server Side Script -> PHP / Python - The official manual / The "Dive into Python" book(Alternate: The "Core Python Programming" book)         Python on Pylons - The "The Definitive Guid to Pylons" open book(About Pylons / Mako / SQLAlchemy)     SQL -> MySQL / Postgre SQL - The official manual
 
   
 
 
文章分类
 
 
 
 
 
Ubuntu(25)
 
 
Django(17)
 
c#(11)
 
 
Css(1)
 
Php(3)
 
 
   
 
文章存档
 
     
 
最新文章评论
  

[表情]
 

非常感谢你的 workspace/Mono/testSqlite3/TestExample.cs(14,14): Error CS0234: w
 

朋友~这东西实用.转载了留备份.谢谢
 

咱们要对QQ有信心呀!
 

本人始终坚信中国的、未来的、巨大的互联网公司就是腾讯!
   
帮助中心 | 空间客服 | 投诉中心 | 空间协议
©2012 Baidu