Archive for the ‘twitter’ Category

Free BPA Service 简单说明

Sunday, April 11th, 2010

http://conby.com/page/create-c3-task-business-process-automation 简单说明

Task name: 必填,任务的名称,可用中文

Description: 描述任务,可用中文

Maillog:  如果填入为电子邮件,当task条件满足时,将会发送task的日志报告到填入的电子邮件

Conditions Type: 规定task的conditions(条件)之间的关系,OR为任意一个condition条件满足时触发action(动作). AND为所有condition条件同时满足时触发action(动作)

Condition Name: 必填,condition(条件)的名称,如果希望把本condition(条件)的结果作为变量在action(动作)中使用,请使用规范的变量字符(常规字符和数字,可含空格,空格在变量名中将自动转换为下划线)

Condition Type:

  • crontab 为标准的Linux/Unix的crontab格式,条件满足时触发action(动作)
  • post 为一个用户自定义的网址,系统将自动将payload使用HTTP协议的POST方法将数据发送过去,此时可以在eval中验证post回来的结果
  • api 为C3系统的API调用,可接受payload
  • due 为简单的时间到期检查,格式如 2010-01-01 10:30, 时间到达后,将自动触发 action(动作)
  • hook 为系统钩或回调, 可以直接获取到 其他task某个action(动作)的运行结果,并在eval中验证post回来的结果

Spec 为根据不同的condition(条件) Type,填入相应的格式或者名称

Payload 为不同的condition(条件) Type下的参数,只对 api, post, hook有效.  due和 crontab不需要填payload。 payload的格式为name=value&name2=value2, 其中value要求已经被urlencode, 系统的[result]将自动进行urlencode

eval 为Python规范的eval表达式,例如:

  • ‘aa’==’aa’
  • ‘[result]==’aa’, 其中[result]为系统token,表示前面的post,api或者hook的运行结果
  • 1, 如果想不验证运行结果,直接让条件满足触发后面的动作,可以简单填入1

Action Name: 动作的名称, 如果需要在其他任务的hook中被使用,请使用规范的规范的变量字符(常规字符和数字,可含空格)

Action Type:

  • api 为C3系统的API调用,可接受payload
  • post 为一个用户自定义的网址,系统将自动将payload使用HTTP协议的POST方法将数据发送过去
  • queue,基本与api相同,但此动作将会列入云计算平台的队列中异步执行,不会马上返回执行结果,如果希望获得此action的结果,请使用hook condition 方法
  • map-reduce, 基本与queue相同,此action动作专门为map-reduce类型的大规模云计算设计,action(动作)将会列入云计算平台的队列中异步执行,不会马上返回执行结果,如果希望获得此action的结果,请使用hook condition 方法。如queue不同的是:
  1. Spec中需要填入完整的map-reduce api对。例如  c3_demo_mapper-c3_demo_reducer,用”-”分割,前面的代表map-reduce计算模型中的map方法,后面的代表map-reduce计算模型中的reduce方法
  2. Payload中需要指定map数据集,例如 map=1%2C2%2C3,%2C为“,”的urlencode后的表达方式。此例子表示map数据集有3项,分别为1,2,3。 常用的使用方式应该为map=[conditionname],直接使用condition(条件)的返回结果。系统将自动对[conditionname]进行urlencode。
  3. map-redude计算模式一般在2~3分钟内启动计算,经过多轮的map,recuce运算后,计算结果可以使用hook condition 方法获取(需另外创建一个task来hook这个action的运算结果). maillog只会发送同步action(动作)的结果,不会发送异步和任何queue类型的action(动作)的结果

如果需要终止task,或者修改task,请使用 C3 SDK开发包,或者直接登录 BPA系统进行修改.  C3 SDK开发包下载地址:

http://conby.com/products_ch.html

all news and information will be posted on twitter

Thursday, February 25th, 2010

all news and information will be posted on twitter, this blog has been moved to twitter.

16 Different Clones You Can Build with Drupal

Sunday, January 10th, 2010

Drupal is an excellent choice for a content management system (CMS). However, many people only see it as a simple CMS, a site to build a landing page or two. But Drupal is much more than that. Not only is Drupal easy to theme, it’s got a wide range of built in functionality and a large community powering the popular CMS.

One of the great things about Drupal is that you can build almost any sort of site that you can imagine, with the help of a couple modules. Want to go beyond the basics of a simple CMS? Drupal has an excellent API that allows you to extent nearly any aspect of the software. In fact, many people have started to talk about using Drupal as a framework, as it’s robust, well written, handles lots of traffic, and has a large and helpful community.

So, if you’re thinking about building your next big site, here are a few ways that you can take existing modules and turn a project quickly, without needing to make any custom modules.

A quick note: I don’t think it’s a great idea to make exact clones of existing sites and slap a new name on them. Clones hardly become as popular as the original site. This article is merely to show the power of Drupal and what can be done with limited time and no development budget.

1. Digg Clone

There’s plenty of Digg clone software out there, but it’s pretty simple to make a site that allows users to submit links to content, vote, comment and moderate the submitted links. It’s even easier when that functionality is all wrapped up into a single module. Drigg creates an identical voting site that allows users to add web links, vote on them, share stories, and many more features.

digg

2. Blog

This is one of the most obvious and common uses for Drupal, but that doesn’t mean it’s not important. Drupal comes primed for blogging straight out of the box, and there are many modules available that can enhance the commenting and overall blogging functionality.

3. News Portal

For those of you wanting a site that can showcase lots of information like Yahoo! or some of the other news portals, Drupal has you covered. Thanks to an excellent module called Views and some custom categories, you can quickly create many different types of content and display them in different ways on the homepage. Views is an indispensable module for a Drupal site. It’s a rare occasion that I’m not using the module on a site that I’m developing.

4. Robust user site

Here is where I think Drupal shines brighter than most (if not all) content management systems. Drupal has an excellent user management system, user profiles and even OpenID right out of the box. It also has modules that can connect to Twitter, Facebook, and it’s easy to connect to other authentication gateways with the use of custom modules.

Drupal also has a stellar module called Organic Groups that allows users to “organize” themselves into groups. Each group can have it’s own homepage, blocks, themes, taxonomy and more.

5. Awareness site

If you’re wanting to build a site specifically for a cause or organization, Drupal makes that easy as well. Aside from the Organic Groups plugin and other community-friendly features, there’s a donation module that accepts payments from Paypal, and shows the donating users on a donation page.

CiviCRM (demo) is a constituent relationship management solution module that was specifically created for advocacy and non-profit groups. Over 5,000 organizations use CiviCRM, and it’s well-supported and has many sub-modules for more specific advocacy needs.

Another great Drupal module for developing an awareness site is the Connect module. Connect allows you to easily create petitions, emails or fax campaigns.

6. Twitter Clone

Yeah, yeah… the world doesn’t need another Twitter clone, right? Well, I tend to disagree. The concept of sites and communities built around short, cross-platform messaging systems are a phenomena that just aren’t going away any time soon. With Drupal, it could be just as easy. Drupal’s Microblog module copies most of the features of Twitter. Micro-messaging, following users and public timelines.

7. File Storage Site

File storage sites like Drop.io or Box.net could be created with Drupal and the help of a module like Media Mover. Media Mover allows you to take uploaded files and copy them over to Amazon S3, the highly-scalable data storage system.

8. Flickr Clone

Photo sites like Flickr and Photobucket could also be created with the Image module and Views. The Image module gives users the ability to upload images, and then creates thumbnails and galleries from the uploads. Users could also comment on the photos using the built-in commenting functionality.

9. Delicious Clone

It turns out that making a bookmarking site like Delicious is fairly trivial in Drupal. There are several options for modules that give users the ability to post bookmarks to their Drupal account.

10. YouTube Clone

If you’re wanting to build a video sharing site like YouTube, Drupal has some modules that can greatly help with that. FlashVideo adds functionality to convert uploaded files to flash, and then moves them over to Amazon S3 if desired. FlashVideo also provides the ability to embed the videos, just like the big boys.

11. Amazon Clone

Trying to recreate the powerhouse’s ecommerce dominance is a tall order, but if any CMS is capable of it, Drupal is. Drupal has a few stellar ecommerce modules like Ecommerce and Ubercart. Both of these modules have an extensive feature list that make it easier to create an ecommerce powerhouse.

12. Tumblr Clone

Creating a social aggregation site with Drupal is easy enough with the excellent Activity Stream module. Activity Steam allows you to pull in user’s activity on social sites like Facebook, Twitter, YouTube, Qik, StumbleUpon and many others.

13. Blogger Clone

If you’re wanting to start a blog host like Blogger or Wordpress.com, Drupal is easily equipped to do that. Drupal has a blog module that comes shipped with the package, and it allows every site member the ability to have a blog.

14. Blog network

Blog networks like Performancing and WiseBread rely on Drupal to power their networks. This requires the use of the built-in blog module. Member’s blog posts all end up on the homepage of the site by default, and you could modify how the member’s blogs looked with the help of the Views module.

15. News Aggregator

I built the LifeRemix network site with Drupal and a single module to aggregate all of our blogger’s posts. The site updates itself without any monitoring from me.

16. Friendfeed

By utilizing the excellent Activity Stream module, it would be quite easy to build a FriendFeed clone. As Drupal already comes shipped with an awesome set of user and profile modules, a quick Friendfeed clone could be made in a matter of hours, depending on your design skills.

Use your imagination! These are by no means the only uses for the popular CMS. I’d love to hear more examples of sites built with Drupal, or possible sites that I’ve left off the list.

Fwd from: http://webjackalope.com/16-different-clones-you-can-build-with-drupal/