摘要:
centos 7 修改hostname hostnamectl set-hostname cdh1 # 使用这个命令会立即生效且重启也生效,cdh1为hostname hostname # 查看hostname vim /etc/hosts # 编辑hosts文件 cat /etc/hosts # 阅读全文
摘要:
在使用jqplot生成柱状图的时候我们经常需要自定义柱状图的颜色,网上给的方法是添加以下代码:seriesColors: ["#F39801", "#29A7E1", "#8FC320", "#E71873"],如果是有多个series,这样设置就可以了。但是如果只有一个series就不行了,还需要设置以下属性:varyBarColor: true,最后生成的图表如下所示: 阅读全文
摘要:
在项目中用到文件下载功能,用的是FileStreamResult方法:return File(new FileStream(path, FileMode.Open), Utilities.MimeType(fileName), fileName);下载普通文件都正常,测试时发现下载含有中文名的word和excel文件时直接返回了方法的名称,后来查了很多资料,终于找到解决办法,是文件名编码问题。在返回FileStreamResult之前将文件名称手动编码:fileName = HttpUtility.UrlEncode(fileName, Encoding.GetEncoding("U 阅读全文
摘要:
今天在安装k2后启动的时候报如下错误:未能加载文件或程序集“Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35”或它的某一个依赖项。系统找不到指定的文件。查找资料后发现是没有安装Windows Identity Foundation,于是下载了安装文件进行安装,我的机器是windows2008 r2,下载64位的安装文件,下载地址:http://www.microsoft.com/zh-cn/download/details.aspx?id=17331安装的时候报错 阅读全文
摘要:
GetUrlKeyValue 阅读全文
摘要:
原文地址:http://geekswithblogs.net/SoYouKnow/archive/2011/08/20/a-dummies-guide-to-sharepoint-and-jqueryndashgetting-amp-setting-sharepoint.aspx<< SharePoint Saturday: The Conference–Slides and Wrap Up | Home | Don’t be “That Company”… Allow your employees to work from home… >>A Dummies Guid 阅读全文
摘要:
Download documents from moss2010 server.从服务器下载文档到本地 支持MOSS2010。不多说了,直接上图。 阅读全文
摘要:
使用jquery.SPServices查询文档库里的某一个文档,需要设置CAMLQueryOptions属性,<ViewAttributes Scope="RecursiveAll" />才能查询出来,取值的时候需要使用SPFilterNode("z:row") $().SPServices({ operation: "GetListItems", async: false, listName: "Test Documents", CAMLQuery: "<Query><Wh 阅读全文
摘要:
I love jQuery; I use it all the time. I also love the great UI controls that come with the jQuery UI library. Unfortunately, I’ve found that a lot of these controls can be a little heavy in terms of required JS/CSS files that your clients will have to download in order to use these controls. Being t 阅读全文
摘要:
The “lightbox” is a unique and useful design tool when used properly. It allows designers to present information that is totally independent from the site theme, and it is especially useful when displaying information that is loaded via AJAX requests (often negating the need for additional post-back 阅读全文
摘要:
It’s a very cool feature to have a form field that has prompt text such as Enter search keywords… right inside the input box, itself. It looks good, it makes sense to users, and it can save a lot of real estate in your design by negating the need for field labels. The problem, however, is that there 阅读全文
摘要:
SharePoint 2010 makes it incredibly easy to add dialog content to your website. Built-in functionality allows you to retrieve content from anywhere within your site and display it in a modal dialog that appears over the page. This is pretty standard stuff when it comes to modern web technology, but 阅读全文
摘要:
原文地址:http://sharepoint-works.blogspot.com/2012/02/cascading-dropdown-or-filtered-values.htmlSharepoint 下拉菜单联动Cascading dropdown (or) Filtered Values in Lookup Columns in SharePointTo know about the basics of Lookup Columns read this article.Also, to know about the Enhancements of Lookup columns in S 阅读全文
摘要:
jquery jqplot pierenderer 饼图百分比小于3的无法显示DataLabels,需要设置如下属性:this.dataLabelThreshold = 3将3改为0即可。设置DataLabels的位置:this.dataLabelPositionFactor = 0.520到1之间,值越大,离饼图边缘越近。 阅读全文
摘要:
Update: I’ve just recorded a screencast tutorial on creating a search scope: click hereGo to Site Actions > Site Settings (make sure you’re in the root site), and click “Search scopes”.Click “New Scope” to create a new scope to load in a sub-page of the site.Nothing really needs to be set on this 阅读全文