上一页 1 ··· 68 69 70 71 72 73 74 75 76 ··· 164 下一页
摘要: shape和selector的结合使用(2013-04-07 11:11:00)转载▼分类:android1、Shape(1)作用:XML中定义的几何形状(2)位置:res/drawable/文件的名称.xml(3)使用的方法:Java代码中:R.drawable.文件的名称XML中:Android:background="@drawable/文件的名称"(4)shape 属性: Android:shape=["rectangle" | "oval" | "line" | "ring"]其中re 阅读全文
posted @ 2013-08-09 10:54 火腿骑士 阅读(182) 评论(0) 推荐(0)
摘要: XDocument doc = new XDocument( new XDeclaration("1.0", "utf-8", "yes"), new XElement("voteList", new XAttribute("PageSize", PageSize), new XAttribute("TotalPages", TotalPageNum), new XAttribute("Count", TotalNum), new... 阅读全文
posted @ 2013-08-07 17:58 火腿骑士 阅读(153) 评论(0) 推荐(0)
摘要: 不使用数据库缓存依赖项实现同样的功能先说下当前项目的场景 后台人员1天不定时的 添加新闻和视频图片10条左右 数量不多不使用缓存 来回和数据库打交道 非常耗时 造成效率低 尤其是在数据量非常庞大的情况下可是加了缓存 加多少时间的缓存? 新闻要保证实时更新 一发布立刻显示出来微软给出了解决方法 数据库缓存依赖项 但是貌似只能用在SQL上 而且要配置些东西 还有 并不透明~ 一些东西看不到http://msdn.microsoft.com/zh-cn/library/system.web.caching.sqlcachedependency%28VS.80%29.aspx感兴趣的朋友可以查下MSD 阅读全文
posted @ 2013-08-07 17:47 火腿骑士 阅读(245) 评论(0) 推荐(0)
摘要: 整合的平台是Centos5环境如下:apache源代码包: httpd-2.2.11.tar.gz 下载地址http://labs.xiaonei.com/apache-mirror/httpd/httpd-2.2.11.tar.gztomcat二进制代码包: apache-tomcat-6.0.18.tar.gz 二进制代码包下载地址:http://apache.mirror.phpchina.com/tomcat/tomcat-6/v6.0.18/bin/apache-tomcat-6.0.18.tar.gzJDK 二进制代码包: jdk-6u11-linux-i586-rpm.bin 下 阅读全文
posted @ 2013-08-07 16:10 火腿骑士 阅读(271) 评论(0) 推荐(0)
摘要: DateTime dt=DateTime.Now;//当前时间DateTime startWeek=dt.AddDays(1-Convert.ToInt32(dt.DayOfWeek.ToString("d")));//本周周一DateTime endWeek=startWeek.AddDays(6);//本周周日DateTime startMonth=dt.AddDays(1-dt.Day);//本月月初DateTime endMonth=startMonth.AddMonths(1).AddDays(-1);//本月月末//DateTime endMonth = sta 阅读全文
posted @ 2013-07-29 11:39 火腿骑士 阅读(211) 评论(0) 推荐(0)
摘要: Unknown | unknown0发生未知错误。CertificateCommonNameIsIncorrect | certificateCommonNameIsIncorrect1SSL 证书公用名与 Web 地址不匹配。CertificateExpired | certificateExpired2SSL 证书已过期。CertificateContainsErrors | certificateContainsErrors3SSL 证书包含错误。CertificateRevoked | certificateRevoked4SSL 证书已吊销。CertificateIsInvalid 阅读全文
posted @ 2013-07-29 10:16 火腿骑士 阅读(781) 评论(0) 推荐(0)
摘要: http://stackoverflow.com/questions/12608734/body-joints-angle-using-kinect-checking-time-interval?rq=1http://stackoverflow.com/questions/15989322/calculate-kinect-skeleton-knee-and-elbow-angles-using-existing-joint-angleshttp://channel9.msdn.com/coding4fun/kinect/Kinect-Earth-Movehttp://social.msdn. 阅读全文
posted @ 2013-07-25 20:35 火腿骑士 阅读(371) 评论(0) 推荐(0)
摘要: http://stackoverflow.com/questions/12499602/body-joints-angle-using-kinect?rq=1新浪微博跟update相关的api已经挂了很多天了一直没有恢复正常,返回错误:40070 Error limited application access api!,新浪开放平台的论坛里n多的人都在等这个恢复,新浪官方也相当的恶心出问题了连个公告都没有,既不说什么原因又不说什么时候能恢复,。还是有版主说是api正在升级礼拜1恢复正常今天都礼拜2了还是不行。基于这个原因我的android版的新浪微博客户端已经停工好几天了,刚好是跟updat 阅读全文
posted @ 2013-07-25 14:24 火腿骑士 阅读(572) 评论(0) 推荐(0)
摘要: public static void RegisterGlobalFilters(GlobalFilterCollection filters){ filters.Add(new HandleErrorAttribute()); filters.Add(new System.Web.Mvc.AuthorizeAttribute());}ttribute in the ASP.NET Web API.Custom Authorize Attributein ASP.NET WEB API you can extend "AuthorizeAttribute" to imple 阅读全文
posted @ 2013-07-25 13:45 火腿骑士 阅读(612) 评论(0) 推荐(0)
摘要: using System;using System.Security.Cryptography;using System.Collections.Generic;using System.Text;using System.Web;namespace OAuth { public class OAuthBase { /// /// Provides a predefined set of algorithms that are supported officially by the protocol /// public enum S... 阅读全文
posted @ 2013-07-25 10:28 火腿骑士 阅读(497) 评论(0) 推荐(0)
上一页 1 ··· 68 69 70 71 72 73 74 75 76 ··· 164 下一页