二维码手机识别软件

wordpress wap化一文中,我没有直接给出冰古blog的具体wap地址,而是给出了一张图片。
冰古blog的wap地址
这个就是二维码,上面的二维码就记录了冰古blog的wap地址,我们只有在手机上安装相应的软件,就可以将它识别出来了。

我使用的二维码识别软件是QuickMark,下面就看看QuickMark是怎样工作的吧:
启动QuickMark
启动quickmark
将软件中的框框对准屏幕中的二维码图
识别二维码
马上它就能提示二维码包含的信息了
完成识别

就是这么简单,安装文件(用于Nokia S60 3rd版本):QuickMark 3.3

收藏到: 收藏到del.icio.us | 收藏到baidu搜藏 | 收藏到diglog | 收藏到饭否 | 收藏到Google | 收藏到新浪vivi | 收藏到mister wong | 收藏到挖客 | 收藏到qq书签

wordpress wap化[FM81581-70]

因为买手机,于是近期都在试用相关的wordpress插件和适用的服务。

WPhone:是现在冰古blog唯一启用的此方面的插件,它的作用就是使我们能用手机管理wordpress。现在唯一有点遗憾的就是还未实现上传功能。
而另一个相关的服务就是FeedM8的rss托管服务,而且它能将托管的rss进行wap处理,使之能用手机方便地浏览。是的FeedM8还能将流量转化为$,但我知道这似乎不太容易。好吧,以下就是我的wap链接:
冰古blog的wap

当然除了上面的两个东东外,我还试用了很多插件,都因为各种原因放弃了:
Wordpress Mobile 1.2:据称能写文章,上传文件还有能使手机浏览blog时,自动转化为适应的xhtml手机版(我的观察是这样的)。停用的原因,xhtml手机版在手机上看起来挺乱的。
WP-Wap 2.10:生成一个纯wap的页面,不过我在使用过程中发现按下Previous Page等链接后会出现错误,可能是空间的问题。
WordPress Mobile Edition:这个插件挺久的了,也是当手机访问blog时,自动转换为适应的xhtml手机版。也是同样因为看起来乱而放弃的。

收藏到: 收藏到del.icio.us | 收藏到baidu搜藏 | 收藏到diglog | 收藏到饭否 | 收藏到Google | 收藏到新浪vivi | 收藏到mister wong | 收藏到挖客 | 收藏到qq书签

优化wordpress的robots.txt

SitePoint里的一个贴子针对wordpress的SEO优化做了讨论。讨论中cyrillsneer7关于robots.txt的优化给出了一个实例,感觉不错,贴出来跟大家分享下:

User-agent: *
Disallow: /cgi-bin
Disallow: /wp-admin
Disallow: /wp-includes
Disallow: /wp-content/plugins
Disallow: /wp-content/cache
Disallow: /wp-content/themes
Disallow: /trackback
Disallow: /comments
Disallow: /category/*/*
Disallow: */trackback
Disallow: */comments
Disallow: /*?*
Disallow: /*?
Allow: /wp-content/uploads

# Google Image
User-agent: Googlebot-Image
Disallow:
Allow: /*

# Google AdSense
User-agent: Mediapartners-Google*
Disallow:
Allow: /*

# Internet Archiver Wayback Machine
User-agent: ia_archiver
Disallow: /

# digg mirror
User-agent: duggmirror
Disallow: /

# Does anyone care I love Google Apache htaccess
Sitemap: http://bingu.net/blog/sitemap.xml #改为你的sitemap地址

BTW:SitePoint里有很多关于网站方面的文章,他的论坛也很热闹。(3-5-8比例运用在网页设计中就是在SitePoint的邮件列表中看到的)推荐喜欢网站建设的xdjm去看看。 :mrgreen:

收藏到: 收藏到del.icio.us | 收藏到baidu搜藏 | 收藏到diglog | 收藏到饭否 | 收藏到Google | 收藏到新浪vivi | 收藏到mister wong | 收藏到挖客 | 收藏到qq书签

WPhone简体中文包

WPhone的确是个很不错的用手机管理blog的插件
我参照现在网上流行的wordpress中文版做了WPhone简体中文包,方便大家操作。
Wphone简体包是这样使用的:
1. 下载WPhone简体包
2. 解压后将wphone-zh_CN.mo和wphone-zh_CN.po放到wphone插件的localization文件夹中;
3. 如果你的wordpress进行了汉化(wp-config.php中define (’WPLANG’, ‘zh_CN’);),这时WPhone就已进行了汉化。

收藏到: 收藏到del.icio.us | 收藏到baidu搜藏 | 收藏到diglog | 收藏到饭否 | 收藏到Google | 收藏到新浪vivi | 收藏到mister wong | 收藏到挖客 | 收藏到qq书签

latin1_swedish_ci to utf8_general_ci

从旧主机搬到新主机最烦人的就是乱码问题。这也是个由来已久的问题了。
wordpress 2.2开始,wordpress提供DB_CHARSET和DB_COLLATE这两个参数以便我们更好地解决这个问题。但似乎这些并不够,仍旧会产生这样那样的问题,如Warning: Invalid argument supplied for foreach() in D:\xampp\htdocs\wordpress\wp-includes\classes.php on line 88。最根本的解决应该还是把数据库里的数据由latin1_swedish_ci格式转换成utf8_general_ci格式。
wordpress官方的论坛就像wordpress那样,很有人气。你遇到的问题,很可能里面已经有人讨论过并已经解决了。乱码问题这个很热门的问题,当然也是完美地解决了地。
以下方法涉及数据库修改,请在备份数据库后操作!
解决的方法是这样的:
1. 下载g30rg3_x提供的这个plugin;
2. 确保你的wordpress是2.2.x或2.1.x,因为这个plugin只支持这两个系列的版本;
3. 上传到plugins文件夹并激活;
4. 到’UTF-8 Database Converter’菜单中按照提示进行剩余操作即可。

上面的办法多了不少的限制,如wordpress的版本需是2.2.x或2.1.x,并能保证你的wordpress还能登录!(是的,很可能你的wordpress这时已经不能登录了。)
这时我们可以借用一下g30rg3_x提供的UTF8_DB_Converter_DoIt()函数:

  1. <?php
  2. define('DB_NAME', 'putyourdbnamehere');    // 数据库名
  3. define('DB_USER', 'usernamehere');     // MySQL用户名
  4. define('DB_PASSWORD', 'yourpasswordhere'); // 密码
  5. define('DB_HOST', 'localhost');    // 很大可能你无需修改此项
  6.  
  7. function UTF8_DB_Converter_DoIt() {
  8.     $tables = array();
  9.     $tables_with_fields = array();
  10.  
  11.     // Since we cannot use the WordPress Database Abstraction Class (wp-db.php),
  12.     // we have to make an a stand-alone/direct connection to the database.
  13.     $link_id = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD) or die('Error establishing a database connection');
  14.     mysql_select_db(DB_NAME, $link_id);
  15.  
  16.     // Gathering information about tables and all the text/string fields that can be affected
  17.     // during the conversion to UTF-8.
  18.     $resource = mysql_query("SHOW TABLES", $link_id);
  19.     while ( $result = mysql_fetch_row($resource) )
  20.         $tables[] = $result[0];
  21.  
  22.     if ( !empty($tables) ) {
  23.         foreach ( (array) $tables as $table ) {
  24.             $resource = mysql_query("EXPLAIN $table", $link_id);
  25.             while ( $result = mysql_fetch_assoc($resource) ) {
  26.                 if ( preg_match('/(char)|(text)|(enum)|(set)/', $result['Type']) )
  27.                     $tables_with_fields[$table][$result['Field']] = $result['Type'] . " " . ( "YES" == $result['Null'] ? "" : "NOT " ) . "NULL "( !is_null($result['Default']) ? "DEFAULT '". $result['Default'] ."'" : "" );
  28.             }
  29.         }
  30.  
  31.         // Change all text/string fields of the tables to their corresponding binary text/string representations.
  32.         foreach ( (array) $tables as $table )
  33.             mysql_query("ALTER TABLE $table CONVERT TO CHARACTER SET binary", $link_id);
  34.  
  35.         // Change database and tables to UTF-8 Character set.
  36.         mysql_query("ALTER DATABASE " . DB_NAME . " CHARACTER SET utf8", $link_id);
  37.         foreach ( (array) $tables as $table )
  38.             mysql_query("ALTER TABLE $table CONVERT TO CHARACTER SET utf8", $link_id);
  39.  
  40.         // Return all binary text/string fields previously changed to their original representations.
  41.         foreach ( (array) $tables_with_fields as $table => $fields ) {
  42.             foreach ( (array) $fields as $field_type => $field_options ) {
  43.                 mysql_query("ALTER TABLE $table MODIFY $field_type $field_options", $link_id);
  44.             }
  45.         }
  46.  
  47.         // Optimize tables and finally close the mysql link.
  48.         foreach ( (array) $tables as $table )
  49.             mysql_query("OPTIMIZE TABLE $table", $link_id);
  50.         mysql_close($link_id);
  51.     } else {
  52.         die('<strong>There are no tables?</strong>');
  53.     }
  54.  
  55.     return true;
  56. }
  57. UTF8_DB_Converter_DoIt();
  58. ?>

现在你把上面代码保存到一个php文件中,上传至空间并运行,如无意外你的数据已经完成了latin1_swedish_ci到utf8_general_ci转换。

收藏到: 收藏到del.icio.us | 收藏到baidu搜藏 | 收藏到diglog | 收藏到饭否 | 收藏到Google | 收藏到新浪vivi | 收藏到mister wong | 收藏到挖客 | 收藏到qq书签

Page 6 of 94« First...«45678»...Last »