Sunday Aug 23, 2009
Thursday Aug 13, 2009
Today, I tried to find a way to merge my two accounts in LinkedIn. It's make me disappointed that there is no easy way to do it. Here I just get some anwser from LinkedIn:
- Import one account information
- Close that one
- Send invitation to all connections in your first account to rebuild the connection with your second account
Sunday Aug 09, 2009
Web team decided put some servers into EOF. DocWeb unfortunately is hosted on one of those servers. So we got a notification we need move DocWeb to new server. I was very busy on this thing last week:
- Apply a new virtual machine
- Setup GlassFish and do performance tunning
- Migrate all data from old server to new server
- Stress testing on new server
- Request old hostname doc.java.sun.com point to new server's ip address
Saturday Jul 04, 2009
Here, I try to list some debugging tools for different kinds of browser:
- Internet Explorer
- There have script editor in Microsoft Office which we can use to debug javascript which is stable than Microsoft Script Debugger according to my experience. You can install it from Microsoft Office(eg, Office 2003).
- Internet Explorer Developer Toolbar is a tool to help you explore and understand web page, such as view and modify DOM, finding the css style used on an element
- Microsoft Visual Studio include heavy tool to debug javascript and view DOM tree which is maybe your another option.
- FireFox
- FireBug is wonderful tools for javascript debug and web page explore
- Chrome
- It come from WebKit and Google provide an embed tools in it. You can get javascript debugger tool shown below:
and explore web page as below:
- Safari
- It also base on WebKit, so it's same as Google way.
- Opera
- Opera dragonfly is option for javascript debugging and web exploring. You can easy get tools by access Opera debug menu in Opera. A menu will be added like belowing:
- SeaMonkey
- Tools is there in browser. You can invoke it from menu:
- Konqueror
- Web Browser, File Manager and more for the K Desktop Environment
Thursday Feb 12, 2009
In case you have blogs in Roller system need be backup, here is one way if you are using thunderbird email client:
- Create a new account with type 'RSS news & blog'.
- Add your blogs rss feed url into that account. You can get your blogs rss feed url by click 'XML' icon on your blog's first page.
- Change your account setting to make sure all blog will be download at once
- Close thunderbird and find it's profile directory to backup it. You can get detail step for this on this link .
Friday Jan 16, 2009
If you are installing windows from iso file by using 'Virtual Machine Manager' in xVM, windows installer will let you put your disk into cdrom when windows restart during installation. xVM won't load iso file into cdrom automatically if you restart your domain.
If you run 'virsh dumpxml [domain]', you will see that domain's device information like this:
<disk device='cdrom'>
<target dev='hdc'/>
<readonly/>
</disk>
<disk type='file' device='disk'>
<driver name='tap' type='vdisk'/>
<source file='[raw file]'/>
<target dev='hda'/>
</disk>
To solve this windows installation issue, we just need run following command from console:
virsh attach-disk [domain] --type cdrom --driver file --mode readonly [iso file] hdcLet's check device again:
#virsh dumpxml [domain]
<disk type='file' device='cdrom'> <driver name='file'/> <source file='[iso file]'/> <target dev='hdc'/> <readonly/> </disk> <disk type='file' device='disk'> <driver name='tap' type='vdisk'/> <source file='/export/os/2003tw'/> <target dev='hda'/> </disk>
Now, just back to your windows installer window, clicking 'retry' and installer will continue it's job.
We can use same way to switch difference CD during installation. For example, there have 4 CDs if you install SuSe 10. It's a way for you if you don't have a dvd iso file.
You can click this to get more information about 'virsh' command.
Thursday Jan 08, 2009
在 08 年初申请了两张 Sun 考试券,由于 2008 年一直挺忙,结果一拖再拖到年底终于决定要用掉它们。SCJP 和 SCJD 都在几年前过了,唯一的选项就只有 SCEA 5 (Sun Certified Enterprise Architect for the Java Platform, Enterprise Edition 5) 了。本来听说 2008 年考过 SCEA 5 Beta 版的人都认为题挺难的,不太好考阿。但考虑到与其让考试券过期还不如试一下。准备了两周过后去考,居然过了。这也是我元旦放假前比较高兴的事了:-)
比较奇怪的是,其中居然我认为还不错的关于模式、Web 层的部分考得不好,反倒是安全、EJB 的部分考得不错。可能是我考前都看自己不太熟悉的部分,反倒没对熟悉的部分轻视了。如果有人要考的话我可有很多教训分享哦
2009 年就要考 SCEA 5 的二和三阶段了,也希望自己能一样顺利吧。
Thursday Nov 27, 2008
配合 javascript 调试器, 在 IE 上有与 FireBug 类似的 DOM 查看和修改工具 Internet Explorer Developer Toolbar。你可以到此网址下载到。如下图,开发人员可以很方便的查看 DOM 图,如果你正为网页在 IE 上显示不是你预料的效果头疼,此工具可以使你部分解脱了:
配合 FireFox 上的 FireBug (FireBug 1.2.1现在支持 Firefox 2 or 3),就可以更容易的使 Web 应用在不同的浏览器上表现一致了。
你可以到 Mozilla 网站上下载到 FireBug 的 Add-ons。
Wednesday Nov 26, 2008
今天我终于找到 Internet Explorer 下的调试工具,因为之前没有工具,在 Internet Explorer 下调试时浪费了大量的时间。说来也是巧,我几年前用过此工具。今年想用时却怎么也找不到起连接。最近再试 Netbeans 6.5 对 javascript 的支持时,试着选择了调试 javascript 却无意中又找到了:
然后选了在 Internet Explorer 下调试。Netbeans 弹出一个消息对话框并在 IE 中开始下载该工具:
你也可以根据上图提供的 URL 自己去手工下载。安装成功后重新启动 IE,在"Internet 选项"->"高级" 栏中多了 "禁用脚本调试 (Internet Explorer"项。取消对该项的选中,点"确定"退出后。用户可以在菜单"查看"下找到该工具"脚本调试程序"。
此工具支持如下系统:Windows 2000; Windows NT; Windows Server 2003; Windows XP。更多信息,请参考此网址。
Monday Nov 24, 2008
Monday Oct 15, 2007
今年的 Sun Tech Day 即将到来。
在上海举行的时间:10月23-24日(周二-周三)社区技术专题:10月25日(周四)地点:上海国际会议中心
在北京举行的时间:11月01-02日(周四-周五)社区技术专题:11月03日(周六)地点:北京国际会议中心
与往年的日程比较,今年增加了 Glassfish day。有关详细的信息,请参看此处
Sunday Oct 14, 2007
Another new binary has been deployed outside today. There have three major features have been implemented in this binary: - Multi-projects supported in DocWeb . User can choose project in left frame's drop list to only list packages or classes belonging to that project . User can view, translate, annotation and vote JavaEE 5 SDK API doc on DocWeb site. . Japanese translation for JavaEE 5 get over 30% leverage from JavaEE 1.3 . User view the statistics information according to chosen project - Full note functionality supported . The registered users are able to add/edit "Notes", "Bug Reports" and "Sample Code" to the online JavaDoc APIs at class/interface level, method level, or field level. Once submitted, the contributions will be viewable by all others users browsing DocWeb. . Registered users are able to vote on contributions with a rating from 1 to 5 stars. . Contributions can be translated into different language as you want. - Code view enhancement . New source code viewer can mark java source with different color according to java grammer . New source code viewer have line number information for source
Please feel free to access http://doc.java.sun.com/DocWeb
Wednesday Sep 26, 2007
今天在看 James Gosling 的 Blog, 无意中看到我的名字出现在了他的 Blog 上,很是高兴,如果你对 DocWeb 感兴趣,请点击这里是该文章。
Monday Sep 17, 2007
This blog copyright 2009 by leonfan