2010-08-30 Mon
As promised, here's the code for the sort sections powertoy. (Look at the end of this article under my signature for the ZIP file).
It's mostly unchanged from the 2007 version. One bug fix that I put in was to remove section groups from the sorting. Without this fix, the sections that were inside a section group would get "pulled up" to the top of the notebook. Here's the fix:
XmlNode sg = xmlDoc.SelectSingleNode("//one:SectionGroup",nsmgr);
int count = 0;//limit of 5000 section groups just to prevent an infinite loop
while (sg != null && count < 5000)
{
string docoxml = xmlDoc.OuterXml;
string nodeouterxml = sg.OuterXml.Replace(" xmlns:one=\"http://schemas.microsoft.com/office/onenote/2010/onenote\"", "");
string temp = docoxml.Replace(nodeouterxml, "");
xmlDoc.LoadXml(temp);
count++;
sg = xmlDoc.SelectSingleNode("//one:SectionGroup", nsmgr);
}
I left a note in the code to just remove the section group node in the XML instead of this XML/string manipulation. An improvement there if someone wants to tweak this addin. I changed the tool tip you get when you hover over the toolbar icon too.
Other areas of improvement would be to add a ribbon button rather than the old icon, and possibly a progress dialog while the sorting is happening.
Oh, the last change was adding an icon for the control panel add/remove programs applet. This is simply the OneNote 2010 icon with the N and border changed to red:
I do this so that I can easily tell which addin is mine when I work on them and need to uninstall a version after testing. Since I have no UI skills at all, this is the best I can do to come up with a somewhat unique icon that doesn't look terrible :).
Questions, comments, concerns and criticisms always welcome,
John
BizTalk Server是微软构建业务流程和集成解决方案的首选服务器,BizTalk Server 2010是这个产品线的第7个主要版本,提供对Windows Server 2008 R2、SQL Server 2008 R2和Visual Studio 2010的全面支持和集成。
BizTalk Server 2010基于BizTalk Server 2009的核心架构,在应用到应用、业务到业务以及业务流程自动化等方面做了诸多重大改进,能让以前动辄以月和年为单位的设计和实现过程,现在只需要几周甚至几天就能完成。
BizTalk Mapper是在Visual Studio中运行的可视化工具,帮助开发人员创建和编辑Map(映射)文件,用以转换消息。双击一份BizTalk Map 文件 (*.btm),Visual Studio 2010会自动将btm文件在BizTalk Mapper中打开。下图展示了BizTalk Mapper主界面:
其中工具条在BizTalk Mapper的操作中扮演了重要角色,因为我们接下来要介绍的很多新功能点都能在工具条上找到对应的按钮,如下图:
BizTalk Server 2010对Mapper做了诸多改进,使管理大型和复杂的映射更加容易,包括:
- 剪切、拷贝 和粘贴
- 不同页面间移动Functoid和链接
- 优化BizTalk Mapper中的链接显示
- 重点显示被选择的目标
- 自动滚屏显示相关节点及链接
- 自动链接架构节点
- 查找Functoid的配置错误
- 相关视图
- 高亮显示相关匹配的Schema(架构)节点
- 搜索
- 选择多个链接和Functoid
- 标签和注示
- 通过InfoTips和ToolTips显示相关信息
- 增强的Functoid配置
- 其他用户易用性的增强
本文将给大家介绍BizTalk Server 2010 中BizTalk Mapper的增强,但是限于篇幅,我们将分两部分介绍用粗字体显示的功能。本章是第一部分。
一、自动滚屏显示相关节点及链接
编辑一个复杂的Map文件(错综复杂的链接,一长串的节点),在BizTalk Server 2009中用户需要上下翻页才能看到源节点和目标节点,或者通过网格预览的方式快速定位链接相关的目标节点或者源节点。如下图:
在上面这个Map文件中一部分Functoid无法直接在界面中看到。
BizTalk Server 2010提供自动滚屏功能,将源节点/目标节点/链接自动定位到当前视野,省却用户手动翻屏或者切换网格预览的麻烦。
使用BizTalk Server 2010 Mapper的自动滚屏功能之前,需要确认您已经选择了
(自动滚屏)图标,如下图:
然后点击链接或者源节点或者目标节点,BizTalk Mapper就会自动将它们集中在当前视野中显示,如下图:
二、自动链接架构节点
自动链接架构元素是BizTalk Mapper提供的一种方便快捷的链接生成方法。
当我们设计源架构到目标架构的映射时,用鼠标直接将源节点拖拽到目标节点,BizTalk Mapper会自动弹出一个快捷窗口,提供直接链接、按结构链接、按名字链接和批量复制四种链接生成方式以供选择,如下图:
直接链接模式简单地生成从源节点到目标节点的链接,如下图:
按结构链接模式将源架构和目标架构中结构匹配的节点之间自动生成链接。即使节点名称不同,只要结构相同也能够生成链接,如下图:
按名称链接模式自动在源架构和目标架构中名字相同的节点直接生成链接,即使节点所处的结构并不相同,如下图:
批量复制模式方便用户映射包含any或者anyAttribute的节点,如下图:
三、相关视图
我们可以使用相关视图优化源架构树或者目标架构书的显示。当我们设计复杂Map文件的时候,冗长的架构树节点增加了寻找相关节点的复杂度。如果我们点击
图标,相关视图功能帮助我们自动隐藏不相关的节点,从而突出我们关心的节点以及链接。
下图是默认视图下源结构树的显示界面:
启动相关视图以后,源结构树显示界面变为:
在启动相关视图的时候,请注意以下方面:
通过演示这三个新功能,大家是不是觉得很方便?是不是迫不及待的想试用一下?别急,我们还有关于BizTalk Mapper的更多精彩内容。请继续关注本文的第二章——BizTalk Server 2010新功能介绍(五):BizTalk Mapper (下)。
如果您想进一步了解BizTalk Server 2010的更多信息,请登录官方主页。作为BizTalk Server产品组的一员,我们非常鼓励大家试用这些新功能,并且提供您的反馈。您可以直接在此博客上发表意见,也可以加入我们的社区提出问题或者共享您的知识。
以下是我们的社区资源:
|
资源 |
链接 |
|
BizTalk社区门户(英文) |
|
|
BizTalk论坛(英文) |
http://social.msdn.microsoft.com/forums/en-US/category/biztalkserver/ |
|
BizTalk论坛(中文) |
http://social.microsoft.com/forums/zh-CN/biztalkserverzhchs/threads/ |
|
BizTalk开发人员社区(英文) |
|
|
BizTalk网播 |
马燕,软件测试开发工程师
2010-08-27 Fri
Some notes about Solaris HBA management refer
luxadm probe
luxadm -e port
devfsadm
To show Sun/Qlogic HBA’s
luxadm qlgc
To show all vendor HBA’s
Found Path to 0 FC100/S Cards
Complete
Found Path to 5 FC100/P, ISP2200, ISP23xx Devices
Opening Device: /devices/pci@9,600000/SUNW,qlc@2/fp@0,0:devctl
Detected FCode Version: ISP2200 FC-AL Host Adapter Driver: 1.14 01/11/20
Opening Device: /devices/pci@8,700000/SUNW,qlc@5,1/fp@0,0:devctl
Detected FCode Version: ISP2312 Host Adapter Driver: 1.14.09 03/08/04
Opening Device: /devices/pci@8,700000/SUNW,qlc@3,1/fp@0,0:devctl
Detected FCode Version: ISP2312 Host Adapter Driver: 1.14.09 03/08/04
Opening Device: /devices/pci@8,700000/SUNW,qlc@3/fp@0,0:devctl
Detected FCode Version: ISP2312 Host Adapter Driver: 1.14.09 03/08/04
Opening Device: /devices/pci@8,700000/SUNW,qlc@5/fp@0,0:devctl
Detected FCode Version: ISP2312 Host Adapter Driver: 1.14.09 03/08/04
Complete
Found Path to 0 JNI1560 Devices.
Complete
Another Method
prtpicl -v > filename
To show link status of card
luxadm -e port
To see the WWN’s (using address given to you from previous commands), it is the last one that specifies it is a HBA, so the port WWN here is 210000e08b100d16
Pos Port_ID Hard_Addr Port WWN Node WWN Type
0 10600 0 224100015d210900 220000015d210900 0x1f (Unknown Type)
1 10700 0 210000e08b103417 200000e08b103417 0x1f (Unknown Type)
2 10800 0 210000e08b100d16 200000e08b100d16 0x1f (Unknown Type,Host Bus Adapter
Configuring storage online
cfgadm -al
#
Ap_Id Type Receptacle Occupant Condition
c0 scsi-bus connected configured unknown
c0::dsk/c0t0d0 disk connected configured unknown
c0::dsk/c0t2d0 CD-ROM connected configured unknown
c1 fc-fabric connected unconfigured unknown
c1::210000e08b103417 unknown connected unconfigured unknown
c1::224100015d210900 unknown connected unconfigured unknown
c2 fc-fabric connected unconfigured unknown
c2::210100e08b303417 unknown connected unconfigured unknown
c2::223100015d210900 unknown connected unconfigured unknown
So we‘re going to run
# cfgadm -f -c configure c1 c2
you can now run devfsadm
Example cfgadm -al
c1 fc-private
c1::21000020379cb9bb disk connected configured unknown
c4 fc-fabric connected unconfigured unknown
c5 fc connected unconfigured unknown
C1 is a 280r internal controller
C4 is a HBA attached to a switch with no targets
C5 is a HBA that has nothing connected
This Might Help
1) The command cfgadm -al
2) look for the fc-fabric
c2 fc-fabric connected
c3 fc-fabric connected
3) and then cfgadm -cconfigure c2 c3
4) Now you see the LUN
A Magical File
/kernel/drv/sd.conf
Checking IO on Fibre Cards
iostat -xcn 5
San Foundation Kit
You get this from Sun, install it after you install the drivers
There is no SAN foundation kit for Solaris 10. Installing the SAN foundation kit will do bad things. It’s only for Solaris 8 and Solaris 9.
$ luxadm probe
$ luxadm -e port
$ luxadm -e dump_map <xyz> where xyz= your connected port.
Method 2
bash-2.03# cat /var/adm/messages | grep -i WWN
Sep 20 18:23:28 alautpnc003 qlc: [ID 657001 kern.info] Qlogic qlc(0) WWPN=210000e08b934ead : WWNN=200000e08b934ead
Sep 20 18:23:39 alautpnc003 qlc: [ID 657001 kern.info] Qlogic qlc(1) WWPN=210100e08bb34ead : WWNN=200100e08bb34ead
Method 3
#modinfo | grep SunFC
46 10274e94 20010 172 1 fcp (SunFC FCP v20050926-1.86)
47 10269923 8204 – 1 fctl (SunFC Transport v20050926-1.36)
51 1028b850 15e28 171 1 fp (SunFC Port v20050926-1.53)
53 10300f09 c5024 175 1 qlc (SunFC Qlogic FCA v20051013-2.08)
This example is SFS 4.4.8 from 2005.
All of above assumes Sun-QLogic (qlc) not QLogic (qla).
Method 4
cfgadm -o show_FCP_dev -al
Method 5
prtconf -pv | grep -i wwn | grep -i port
</xyz>
HTH.