现在位置: 首页 > spitz发表的所有文章
  • 08月
  • 04日
编程语言 ⁄ 共 4371字 评论关闭
Google Chart Tools / Image Charts http://code.google.com/intl/zh-CN/apis/chart/faq.html matplotlib http://matplotlib.sourceforge.net/ 网站有很好的文档 matplotlib is a python 2D plotting library which produces publication quality figures in a variety of hardcopy formats and interactive environments across platforms. matplotlib can be used in python scripts, the python and ipython shell (ala MATLAB®* or Mathematica®†), web application servers, and six graphical user interface toolkits. ma......
阅读全文
  • 08月
  • 30日
web前端 ⁄ 共 1450字 评论关闭
1.点击输入框选中内容的Html代码:   <form id="form1" name="form1" method="post" action=""> <label for="textfield">输入内容:</label> <input name="textfield" type="text" id="textfield" value="Dreamweaver"onfocus="this.select()" /> </form>  这段代码中最重要的部分就是onfocus这部分,如果不用onfocus,使用onclick也可以达到同样效果,比如onfocus="this.select()"。   2.鼠标悬浮在输入框上时改变边框颜色或背景色  这个效果有两种方法:方法一是使用CSS中的伪元素:......
阅读全文
  • 05月
  • 01日
综合 ⁄ 共 18891字 评论关闭
 全新整理:微软、Google等公司非常好的面试题及解答、第161-170题 整理:July。 时间:二零一一年四月十日。 微博:http://weibo.com/julyweibo。 出处:http://blog.csdn.net/v_JULY_v。 -------------------------------   引言    此微软100题V0.2版的前60题,请见这:微软、谷歌、百度等公司经典面试100题[第1-60题]。关于本人整理微软100题的一切详情,请参见这:横空出世,席卷Csdn [评微软等数据结构+算法面试100题]。 声明    1、下面的题目来不及一一细看,答案大部是摘自网友,且个人认为比较好一点的思路,对这......
阅读全文
  • 04月
  • 03日
综合 ⁄ 共 1170字 评论关闭
hdu 4909 String 字母出现次数的奇偶关系,可以用状态压缩和位异或的形式表示。 由于数据范围是0~2^25,没法直接开数组,所以用到map容器 需要注意的是:如果仅仅只是为了查看map<key,value>中键是否存在,最好使用map::find(key)函数,直接用map[key]的值来判断会格外增加一倍的时间 #include <cstdio> #include <map> using namespace std; const int MAXN = 20005; int T, n, res, pos, z, k, o, p; int AA[30]; char ss[MAXN]; map<int,int> mp1, mp2; map<int,int>::iterator it; void sol......
阅读全文
  • 02月
  • 16日
综合 ⁄ 共 11123字 评论关闭
转帖请注明本文出自xiaanming的博客(http://blog.csdn.net/xiaanming/article/details/17483273),请尊重他人的辛勤劳动成果,谢谢 所谓回调:就是A类中调用B类中的某个方法C,然后B类中反过来调用A类中的方法D,D这个方法就叫回调方法,这样子说你是不是有点晕晕的,其实我刚开始也是这样不理解,看了人家说比较经典的回调方式: Class A实现接口CallBack callback——背景1 class A中包含一个class B的引用b ——背景2 class B有一个参数为callback的方法f(CallBack callback) ——背景3 A的对象a调用B的方法 f(CallBack callback......
阅读全文
  • 02月
  • 03日
综合 ⁄ 共 147字 评论关闭
缺乏编程经验  深入理解UIApplicationDelegate 每个iPhone应用程序都有一个UIApplication,UIApplication是iPhone应用程序的开始并且负责初始化并显示UIWindow,并负责加载应用程序的第一个UIView到UIWindow窗体中。...[详情]
阅读全文
  • 01月
  • 23日
综合 ⁄ 共 300字 评论关闭
 出处:http://blog.163.com/ybxs3@126/blog/static/17087168201071684425632/ 前几天要测一下别人的webservice服务时,才发现自已的VS出问题了。添加web引用时出现“Web引用所需要的某些文件没有安装”的错误提示,打开msdn时出现错误提示:无法显示Microsoft文档资源管理器,因为指定的帮助集合“ms-help://MS.MSDNQTR.v90.chs"无效。折腾了很久,连VS都重装过了还是不行。最后才发现是msxml3的注册被删了,,相当无语。于是运行“regsvr32 msxml3.dll”,然后重启vs,问题解决!
阅读全文
  • 12月
  • 28日
综合 ⁄ 共 2054字 评论关闭
  一、inline 关键字用来定义一个类的内联函数,引入它的主要原因是用它替代C中表达式形式的宏定义。   表达式形式的宏定义一例:   #define ExpressionName(Var1,Var2) ((Var1)+(Var2))*((Var1)-(Var2))为什么要取代这种形式呢,且听我道来:   1. 首先谈一下在C中使用这种形式宏定义的原因,C语言是一个效率很高的语言,这种宏定义在形式及使用上像一个函数,但它使用预处理器实现,没有了参数压栈,代码生成 等一系列的操作,因此,效率很高,这是它在C中被使用的一个主要原因。   2. 这种宏定义在形式上类......
阅读全文
  • 12月
  • 19日
综合 ⁄ 共 5242字 评论关闭
using System; using System.Runtime.InteropServices; using  System.Management; namespace Hardware {  /// <summary>  /// Hardware_Mac 的摘要说明。  /// </summary>  public class HardwareInfo  {   //取机器名   public string GetHostName()   {    return System.Net.Dns.GetHostName();   }   //取CPU编号   public String GetCpuID()   {    try    {     ManagementClass mc = new ManagementClass("Win32_Processor");     ManagementObjectCollection moc = mc.GetInstances();           String ......
阅读全文
Start Screen in Windows 8 is one of the most impressive things (for some people) and at the same time one of the most irritating things (for many people) present in the OS. Start Screen works like a replacement for the good old Start Menu. It shows big tiles of programs in form of a grid. You can add new tiles or remove existing tiles to customize Start Screen appearance. You can check out following tutorial to learn more about Windows 8 Start Screen if you are not familiar with it: [Wi......
阅读全文
  • 12月
  • 07日
综合 ⁄ 共 466字 评论关闭
对于移动互联网应用,他所涉及到的架构难点和传统互联网有些不一样。 比如,Instagram的架构:http://blog.sina.com.cn/s/blog_56c9b55c0101195u.html 以及 http://www.poluoluo.com/jzxy/201105/134258.html 简单的总结就是,移动应用的整体架构,主要考虑以下几个方面: 1. 消息推送: android (http://blog.sina.com.cn/s/blog_48964b12010191lt.html) iphone(https://github.com/samuraisam/pyapns) 2. 站内搜素引擎:Solr (http://blog.csdn.net/liuzhenwen/article/details/4060922) 3. 图片的缩略,索引以及分布式存储:Gear......
阅读全文
  • 11月
  • 06日
综合 ⁄ 共 168字 评论关闭
.Net 处理注册表的时候,删除时候,出现异常如下: 无法写入到注册表项 后来查看了一下,Registry相关项,原来OpenSubKey第二个参数可以设置注册表的访问权限。 //如果需要项的写访问权限,请设置为True 代码如下: regKey = Registry.CurrentUser.OpenSubKey(strRegPath, true);  
阅读全文