首页 Soft PlugIn RAN乱 Dev开发 Info资料 English WAP 留言 登陆 注册
-
Posted by Yippee | 评论(0) | 引用(0) | 阅读73次
20080425 Groove use

20080425 Groove use
http://www.shengfang.org

SYMPTOMS
You may see yourself as being offline when other people see you as being online in Groove Workspace 2.x.

Back to the top
CAUSE
This problem occurs when you decide to show your online presence only to Groove users in your My Contacts list, and your own identity is not listed as a contact.

Back to the top
RESOLUTION
To resolve this problem, modify your presence settings, or add your identity to your My Contacts list.

To modify your presence settings, follow these steps:
1. Click Go To, and then click My Accounts.
2. Click all Groove users listed in My Contacts under Show your online presence to, and then click to select either all Groove users in your shared spaces or everyone.
To add your identity to your My Contacts list, follow these steps:
1. Click Go To, and then click My Contacts.
2. Click Add Contact.
3. Under Look in, click to select Known Groove Contacts.
4. Click to select your identity from the list and then click Add.

Showing your online presence

You can set preferences for showing your online presence to other Groove users. The options you choose affect the status icons that display next to your name in any Groove contact list. For example, you can "hide" your online presence and thus appear to be offline to other Groove users.

   1. On the Options menu, click Preferences and then click the Options tab.
   2. To hide your online presence, uncheck Everyone, and then uncheck one or both of the other options.
          * Uncheck All users in My Contacts to make your contact appear offline only in contact lists.
          * Uncheck All workspaces members to make your contact appear offline only in workspace member lists.

运行结果

intConcatTimes=1000时:

string concat Spend :49710 ticks
StringBuilder concat Spend :244 ticks
intSpendOfString / intSpendOfStringBuilder :203

intConcatTimes=10000时

string concat Spend :10285828 ticks
StringBuilder concat Spend :3754 ticks
intSpendOfString / intSpendOfStringBuilder :2739

 由上可见,当字符串连接次数较多时,StringBuilder 的效率要明显优于string,并且随着连接次数的增加,优势也愈加明显.

当然,string在易用性方面优于StringBuilder ,少量连接是选择string更为合适.

不要在测试用例的构造函数中做初始化.
改为:
public class TestHello extends TestCase {
    public void TestSay() {
        Hello hi = new Hello();
        assertEquals("Hello word",hi.Say());
    }

    public static void main(String[] args) {
        junit.textui.TestRunner.run(TestHello.class);
  }
}


How to use Groove through a firewall.

Firewalls are designed to limit access into and out of the network. If a firewall is not in the path between two devices interacting with Groove then Groove uses the Simple Symmetric Transport Protocol (SSTP) over TCP/IP to exchange data. Because most companies have configured their firewalls to allow for employees to access the Web, Groove takes advantage of this existing configuration to send and receive information when it cannot make direct connections over SSTP. This technique is known as HTTP tunneling.
Groove operates most efficiently if users can establish direct connections using Groove's SSTP over TCP/IP. Firewalls may be configured in many different ways, both in the types of packets they enable from behind the firewall to the Internet, and from the Internet to behind the firewall. If a Groove client is behind a firewall that only enables outgoing connections then Groove will fall back to using an HTTP or SSL connection to a Groove Relay service (either a Groove Networks one on the Internet, or one administered by your organization) so that communication is still possible. This will work even between two sites that are both restricted in this manner.
Groove can use additional transport types, if available, that work through some firewalls and proxies at less of a performance cost than HTTP. Here are the other connection types Groove uses:

    * HTIP/SSL - Use a Secure Socket Layer proxy to connect to the relay through port 443
    * SOCKS - Use a SOCKS proxy to connect to the relay through port 2492
    * Various HTTP encapsulations with mechanisms to maintain the TCP connection for multiple operations.

If your company wants to configure your firewall to allow Groove communications, enable outgoing TCP connections on ports 80 and 443 for HTTP and SSL, as you've probably already completed for other Web sites.  For best performance, also enable TCP connections on port 2492 for SSTP (Groove's native peer-to-peer protocol).

weblog:
http://weblogs.asp.net/sbchatterjee

Pickup Groove Developer workspaces:
http://www.ctdotnet.org  (bottom of page)

Assuming that you are using the public Groove infrastructure and not
something that has been set up by your enterprise, verify that you can get to
http://blugro1gms.groove.microsoft.com/gms.dll with a browser.  If you can
get to it with a browser you should also verify that other network clients
can get to it.  Try telnet.

telnet blugro1gms.groove.microsoft.com 80
then type a€?fooa€? and hit return.  You should get error output like this:

HTTP/1.1 400 Bad Request
Content-Type: text/html
Date: Thu, 08 Mar 2007 15:47:18 GMT
Connection: close
Content-Length: 35


Connection to host lost.

If you do not get this output then you should look at your network security,
DNS or local client firewall software.


字体:


Permanant URI永久地址 http://www.shengfang.org/blog/p/20080425Grooveuse.php
Trackback URI引用地址 http://www.shengfang.org/blog/tb.php?tb_id=1232176741

2009年1月17日15:19星期六  [RAN乱] 追踪此文的RSS
提示:
此文还没有评论。

称呼:    登陆   注册
   不注册,但记住我的信息
邮件:
(非必须)
评论: [UBB代码帮助]
粗体 斜体 下划线 链接 水平线 引用



验证码: 请输入你看见的数字
关闭UBB      提交时自动将内容复制到剪贴板

公告
Fire and Motion!

统计信息
[Yippee]||[统计]||日志:1790
在线: 14||用户: 2562 [列表]
今日:20||到访:2669519
Rss:837713||评论:1584

最新日志

最新评论

友情链接

日历

最新引用

搜索

归档

杂项
Get RSS Feed (Version 2.0)
Get Atom Feed (Version 0.3)
编码:  UTF-8