27
Jul

The main reason is for Twitter real-time update.
twitter-realtime-sidebard.png

Last week, Twitter.com finally release his real-time live update search widget.
twitter widget_search.png

I would like to test it. Which search query should I use? I think about and it might be a good idea to use tag/category as the keyword.

I don't have extensive tagging in my old posts. Search around and I decide to use simple-tags to tag all my posts in this blog. It went well! Great plug-in for my wordpress blog and very nice functions to call for the theme.

To auto-tag my old posts, I need a keyword list to start with. I grab several from the Internet.

from delicious

design, blog, video, software, tools, music, programming, webdesign, reference, tutorial, art, web, howto, javascript, free, linux, web2.0, development, google, inspiration, photography, news, food, flash, css, blogs, education, business, technology, travel,

from wordpress

art, books, business, culture, education, entertainment, events, family, fashion, food, friends, history, humor, inspiration, life, love, movies, music, news, people, personal, philosophy, photography, poetry, politics, random, relationships, religion, reviews, sports, thoughts, travel, video, film, health, media, photos, technology, videos, writing,

from blogbus

股票, 雷人, 好事, 选手, 朋友, 黑色, 长袖, 工作, 运势, 技巧, 演唱会, 金融机构, 无病呻吟, 积分, 时事, 日常, 海, 宏观经济, 进口食品, 长寿, 衰老, 打造, 防晒霜, 婚礼, 偷拍, 熬夜, 起重机, 轨迹, 散文诗, 音乐, 巧妙, 抗皱, 旅游, 景点, 盛夏, 白领, 新东方, 荷花, 机票, 国际, 楼市, 语文, 火锅, 某人, 如果, software, 大爱, 风景, 郁闷, 人文, 团购, 用户体验, 注册, 病毒, 压力, 烦躁, 健康, 高中, 自拍, 曾经, 消息, 生日快乐, 药物, 互联网, 卫星电视, 正常, 预防, 孤独, 快乐, 行业分析,

from technorati

apple, art, art, and, photography, bisnis, blog, blogging, blogroll, blogs, books, business, celebrities, christmas, culture, current, affairs, design, diary, dreams, and, the, supernatural, education, entertainment, environment, events, family, fashion, film, food, football, friends, fun, funny, games, goals, , plans, , hopes, google, hobbies, home, humor, internet, iphone, iraq, jobs, , work, , careers, life, links, linux, love, marketing, media, microsoft, mobile, moblog, movie, movies, movies, , tv, , celebrities, mp3, music, myspace, news, news, and, politics, parties, and, nightlife, pc, people, personal, photo, photography, photos, pictures, podcast, poetry, politics, quiz, random, religion, religion, and, philosophy, reviews, romance, and, relationships, school, school, , college, , greek, science, shopping, software, sport, sports, survey, tech, technology, television, thoughts, topics, travel, travel, and, places, tv, video, videos, web, web 2.0, weblog, windows, wordpress, work, writing, writing, and, poetry, youtube,

With my previous podcast twitter 原创, now I have the following keyword list for simple-tags to auto-tag!

podcast, twitter, 原创, apple, art, photography, bisnis, blog, blogging, blogroll, books, business, celebrities, christmas, culture, current, affairs, design, diary, dreams, supernatural, education, entertainment, environment, events, family, fashion, film, food, football, friends, fun, funny, games, goals, plans, hopes, google, hobbies, home, humor, internet, iphone, iraq, jobs, work, careers, life, links, linux, love, marketing, media, microsoft, mobile, moblog, movie, movies, tv, mp3, music, myspace, news, politics, parties, nightlife, pc, people, personal, photo, photos, pictures, poetry, quiz, random, religion, philosophy, reviews, romance, relationships, school, college, greek, science, shopping, software, sport, sports, survey, tech, technology, television, thoughts, topics, travel, places, video, videos, web, weblog, windows, wordpress, writing, youtube, 股票, 雷人, 好事, 选手, 朋友, 黑色, 长袖, 工作, 运势, 技巧, 演唱会, 金融机构, 无病呻吟, 积分, 时事, 日常, 海, 宏观经济, 进口食品, 长寿, 衰老, 打造, 防晒霜, 婚礼, 偷拍, 熬夜, 起重机, 轨迹, 散文诗, 音乐, 巧妙, 抗皱, 旅游, 景点, 盛夏, 白领, 新东方, 荷花, 机票, 国际, 楼市, 语文, history, inspiration, tools, programming, webdesign, reference, tutorial, javascript, free, web2.0, development, flash, css, 火锅, 某人, 如果, 大爱, 风景, 郁闷, 人文, 团购, 用户体验, 注册, 病毒, 压力, 烦躁, 健康, 高中, 自拍, 曾经, 消息, 生日快乐, 药物, 互联网, 卫星电视, 正常, 预防, 孤独, 快乐, 行业分析

Next, I tweak the code for Twitter/Search_Widget a little. Instead of defining by myself

new TWTR.Widget({
  search: 'San Francisco OR #sf',
  id: 'twtr-search-widget',

I generate it automatically for each post.

new TWTR.Widget({
  search: '<?php global $simple_tags; $tweetkeyword=str_replace(", "," OR ",$simple_tags->generateKeywords()); echo $tweetkeyword; ?>',
  id: 'twtr-search-widget',

So far, looks good.

Leave a Reply