每个似乎都不错, 开始研究它们的API, 阅读源代码. 接近走火入魔了.
Twitter的第三方应用读了两个的代码rabr和dabr, Plurk的第三方客户端似乎还没有出现, 正在读它的API, 这里有比较完整的介绍(http://goo.gl/wHkI). FriendFeed的代码还没有看过. 尤其难得的是每个应用都可以直接绑定IM. 可以使用MSN或是GTalk来同步状态.
顺便要提一下还有Google的短网址应用: goo.gl
Archive for the ‘技术’ Category
2010年01月04日 星期一
每个似乎都不错, 开始研究它们的API, 阅读源代码. 接近走火入魔了.
Twitter的第三方应用读了两个的代码rabr和dabr, Plurk的第三方客户端似乎还没有出现, 正在读它的API, 这里有比较完整的介绍(http://goo.gl/wHkI). FriendFeed的代码还没有看过. 尤其难得的是每个应用都可以直接绑定IM. 可以使用MSN或是GTalk来同步状态.
顺便要提一下还有Google的短网址应用: goo.gl
2009年09月19日 星期六
Sun 公司提供的Java API Docs是学习和使用Java语言中最经常使用的参考资料之一。但是长期以来此文档只有英文版,对于中国地区的Java开发者来说相当的不便。目前Sun 公司正在组织多方力量将此文档翻译成中文,并于2005年10月31日在Sun 中国技术社区(http://gceclub.sun.com.cn)正式发布第一批中文版Java API文档(包括java.lang和java.util类库API 文档的中文版)。经过将近10个月的努力,目前我们已经将Java SE 5.0的全部API文档中文化。开发人员可以通过Sun 中国技术社区的网站在线浏览相关文档,也可以将全部文档下载到本地以方便检索和使用。
J2SE DK & API下载
————————-
http://java.sun.com/j2se/1.3/download.html
http://java.sun.com/j2se/1.4.2/download.html
http://java.sun.com/javase/downloads/index_jdk5.jsp
http://java.sun.com/javase/downloads/index.jsp
J2EE DK & API下载
————————-
http://java.sun.com/j2ee/1.3/index.jsp
http://java.sun.com/j2ee/1.3/download.html
http://java.sun.com/j2ee/1.4/index.jsp
http://java.sun.com/j2ee/1.4/download.html
http://java.sun.com/javaee/downloads/index.jsp
JDK1.6API中文版(全)
————————-
* HTML 格式(在线英文) http://java.sun.com/javase/6/docs/
* HTML 格式(在线中文) http://download.java.net/jdk/jdk-api-localizations/jdk-api-zh-cn/publish/1.6.0/html/zh_CN/api/index.html
* zip 格式(中文) http://download.java.net/jdk/jdk-api-localizations/jdk-api-zh-cn/publish/1.6.0/html_zh_CN.zip
* CHM 格式(中文) http://download.java.net/jdk/jdk-api-localizations/jdk-api-zh-cn/publish/1.6.0/chm/JDK_API_1_6_zh_CN.CHM
JDK1.5API中文版(全)
————————-
* HTML 格式(在线英文) http://java.sun.com/javase/5/docs/
* HTML 格式(在线中文) http://gceclub.sun.com.cn/Java_Docs/html/zh_CN/api/index.html
* zip 格式(中文) http://gceclub.sun.com.cn/Java_Docs/html_zh_CN.zip
* CHM 格式(中文) http://download.java.net/jdk/jdk-api-localizations/jdk-api-zh-cn/builds/JDK_API_1_5_zh_CN.CHM
相关网站
————————-
http://java.sun.com
http://gceclub.sun.com.cn/
http://developers.sun.com/downloads/
http://java.sun.com/javaee/downloads/
http://java.sun.com/javase/downloads/
http://www.netbeans.info/downloads/
2009年09月17日 星期四
private static String GetSmtpHost()
{
SPOutboundMailServiceInstance instance = SPContext.Current.Site.WebApplication.OutboundMailServiceInstance;
if (instance != null)
{
return instance.Server.Address;
}
instance = SPAdministrationWebApplication.Local.OutboundMailServiceInstance;
if (instance != null)
{
return instance.Server.Address;
}
return String.Empty;
}
SmtpClient smtpClient = new SmtpClient(smtpServer);
MailMessage mail = new MailMessage(FromEmail, ToEMail)
{
Subject = MailSubject,
Body =
“<html><head><meta http-equiv=\”Content-Type\” content=\”text/html; charset=UTF-8\”><title>” + MailSubject + “</title></head>”
+ “<body style=\”font-family: Verdana; font-size: 12px\”>” + MailBody + “</body></html>”,
IsBodyHtml = true
};
smtpClient.Send(mail);
2009年09月16日 星期三
… 并且避免 ASP.NET 验证控件错误:
This page contains content or formatting that is not valid. You can find more information in the affected sections.
or
Input string was not in a correct format.
当创建一个WebPart来显示包含验证控件的表单时, ASP.NET 验证控件会阻止你签入和发布当前的Publishing页面.
解决方案:
This solution applies only if you have a single web part on the page, because you can only check if the current web part is in display/edit/design mode.
// add the EditBox to the page in edit mode
EditModePanelpanel = newEditModePanel();
TextBoxtextBox = newTextBox();
panel.Controls.Add(textBox);
panel.PageDisplayMode = PageDisplayMode.Edit;
this.Controls.Add(panel);
This solution didn’t work. Some replection shows me that the panel uses this function (which is obfuscated): public staticSPControlModeGetContextualFormModeFromPostedForm()
This function comes from the internal class ConsoleUtilities.
// check if the form is in display mode
bool inDisplayMode = SPContext.Current.FormContext.FormMode == SPControlMode.Display;
Well, good luck ;)