Archive

Archive for August, 2008

WordPress的网站地图生成器

August 28th, 2008

Sitemap Generator Plugin for Wordpress

http://www.dagondesign.com/articles/sitemap-generator-plugin-for-wordpress/

与Google XML Sitemaps插件不同,Dagon Design Sitemap Generator是服务于你的读者的,并不是给搜索引擎看的。

安装很简单,1~5和其他插件完全一样,就step 6需要你在想显示地图的页面插入<!– ddsitemapgen –>
1. Download sitemap-generator.zip and uncompress
2. Upload the entire sitemap-generator folder (not just the files inside) to your plugins directory
3. Activate the plugin in your administration panel
4. Configure the plugin in the options panel (under DDSitemapGen)
5. If using permalinks, read the permalink section below
6. Simply add the following line to a WordPress page (where you would like the sitemap to display):  <!– ddsitemapgen –>

效果见 http://www.thinkedge.cn/?page_id=26

使用方法有两种:

◆ 建立单独的 Sitemap 页面:只要去发表(Write)一个新页面(Write Page)即可,其中新建页面内容是下面的这一行代码:<!– ddsitemapgen –>
注: 这句代码要在<html>编码方式下写,如果不在<html>格式下写,站点地图就无法显示出来。
◆ 在页面模板中调用 Sitemap:只需在页面模板文件中,调用下面的函数即可
PHP代码 <?php echo ddsg_create_sitemap(); ?>

使用设置:
◇ 在 DDSitemapGen 项中,用户可以根据自己的需要设置生成的 Sitemap 的风格、样式以及内容等
◇ 用户还可以设置该 Sitemap 页面的依旧地址(须与建立该页面时的 page slug 一致)
◇ 在设置项的最后,还提供了一个指向 XML 格式 Sitemap 文件的设置项
◇ 该插件还提供了两个供美化用途的 CSS class 项

.ddsg-wrapper - Sitemap 整体样式(Div around the entire sitemap)
.ddsg-pagenav - 导航条样式(Div around the page navigation)

thinkedge 网站建设

本地快速构建WordPress平台

August 5th, 2008

单独安装Apache/MySQL/PHP? 这都是过去的历史了!

http://www.dualface.com/blog/?page_id=402 下载APM Express - Apache/PHP/MySQL 绿色版。APMXE5是一个非常简单的PHP平台套装,只需要安装后,运行桌面上的“APMXE5控制器”, 然后在任务栏处出现的白色齿轮那点右键选择”Start APMXE”。 在浏览器里输入http://localhost/。 就这么简单!

然后下载WordPress,放在apmxe5\htdocs目录下,修改wp_config.php,你的博客平台就可以工作了!

thinkedge 网站建设

VNC图形化显示登陆Linux

August 5th, 2008

VNC是OpenSource的软件,它可以将目标机器上的整个桌面以图形方式发送到访问端,同时将访问端的鼠标,键盘等命令发送过去,最终你就可以在它提供的窗口中,像操作本地电脑一样操作其它电脑了。这个工具是跨平台的,我常用的是在Windows下访问Linux系统。

tar -xvzf  vnc-4_1_2-x86_linux.tar.gz
mv vnc-4_1_2-x86_linux  vnc
cd vnc
./vncserver

type password
Create default startup script /home/eric/.vnc/xstartup

为了能够在Windows上清晰的显示Linux窗口,还需要修改.vnc/xstartup

file content of .vnc/xstartup for RHEL3: (just one line)

exec /etc/X11/xinit/xinitrc

file content of .vnc/xstartup for RHEL4: (just one line)

gnome-session &

thinkedge 工具