现在位置: 首页 > postpone发表的所有文章
        今天在Windows 7操作系统中安装了memcached内存缓存软件,本想借助Windows的telnet程序向memcached缓存管理系统中添加一些数据,可是命令输入后竟然出现了如下图这样的错误:         开始以为telnet环境变量没有配置,后来网上一搜发现不是环境变量的事儿,现将解决方案总结一下:         1、打开Windows 7的控制面板,并将其“查看方式”调至“小图标”模式,如下图:         2、点击上图被黑圈圈定的“程序和功能”选项,得到下图:         3、点击上图被红圈圈定的“打开或关闭windows功能”选项,得到下图:         4......
阅读全文
  • 09月
  • 14日
综合 ⁄ 共 3475字 评论关闭
1、到底啥是医疗器械注册?  医疗器械注册,对于新进入医疗器械行业的生产企业和相当一部分业内的老企业,提起来就让人头疼:把法规中承诺的时限加起来,好像不算太长,但实际干起来,不是这儿不行,就是那儿有问题,反反复复,审核老师好像总跟企业过不去,好不容易取得了注册证,在产品销售的时候,还可能会因为注册时考虑不周,遇到很多问题。  到底怎么做,才能比较顺利地取得注册证,同时又不会为日后的产品升级、销售留下隐患呢?  笔者从事医疗器械注册工作十多年,积累了一些经验,略作总结,拿出来与想把注册工作做好,可......
阅读全文
  • 05月
  • 29日
综合 ⁄ 共 5746字 评论关闭
http://www.net-snmp.org/wiki/index.php/TUT:Configuring_snmptrapd Configuring snmptrapd to allow traps in the door By default, snmptrapd does not do anything with received notifications. You have to tell it what you want to receive notifications. Configuring snmptrapd to accept SNMPv1 or SNMPv2c notifications To receive SNMPv1 or SNMPv2c notifications you need to tell snmptrapd your community strings. The easiest way to do this is by using theauthCommunity snmptrapd.conf configuration fil......
阅读全文
  • 01月
  • 05日
综合 ⁄ 共 877字 评论关闭
1.编译错误 Copy: apicheck (out/host/linux-x86/obj/EXECUTABLES/apicheck_intermediates/apicheck) Install: out/host/linux-x86/bin/apicheck Checking API: checkapi-last (unknown): error 17: Field android.app.Notification.FLAG_SHOW_LIGHTS has changed value from 1 to 0 ****************************** You have tried to change the API from what has been previously released in an SDK.  Please fix the errors listed above. ****************************** make[1]: *** [out/target/common/obj/PACKAGING/c......
阅读全文
  • 09月
  • 15日
综合 ⁄ 共 309字 评论关闭
Invalid property 'username' of bean class [com.bbk.entity.User]: Bean property 'username' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter? 首先,jsp中字段名称java bena的属性一样。其次,不是看java bean中字段的值是不是一样,要看getter和setter是否一致。 最后,由于涉及到添加 spring.tld spring-form.tld的问题,所以有可能有spring版本的问题。
阅读全文
  • 08月
  • 18日
数据库 ⁄ 共 22233字 评论关闭
--省级   provincial   create table provincial (   provincialID int,   provincialName varchar(50),   primary key (provincialID) )engine=INNODB default charset=gbk;    insert into provincial values(1,'北京市'); insert into provincial values(2,'天津市'); insert into provincial values(3,'上海市'); insert into provincial values(4,'重庆市'); insert into provincial values(5,'河北省'); insert into provincial values(6,'山西省'); insert into provincial values(7,'台湾省'); insert into provincial val......
阅读全文
  • 05月
  • 26日
综合 ⁄ 共 1943字 评论关闭
= #import "CHViewController.h" @interface CHViewController (){ NSArray *_allDescs; } @end @implementation CHViewController - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. //设置图片描述 NSBundle *bundle = [NSBundle mainBundle]; NSString *path = [bundle pathForResource:@"descs" ofType:@"plist"]; _allDescs = [NSArray arrayWithContentsOfFile:path];//因为只需要加载一次就可以 NSLog(@"%@",_al......
阅读全文
  • 05月
  • 22日
综合 ⁄ 共 7022字 评论关闭
看了几篇介绍Angular源码的帖子,写的都很好。能够把angular的源码读懂,是一件有难度的事情,里面用到了很多匿名函数,回调,闭包,会把读者搞晕,但是如果耐心下来多读几次,并且回过头来统一的去看,还是可以学到很多东西。 这篇文章旨在以最通俗的方式,一步步的解读angular的源码,希望同僚们多多提意见,哪里写的不好,应该增强些什么内容,欢迎留言给我。那么就开始吧! 准备活动: 1,源码基于AngularJS v1.2.16 2,html是基于angularjs网站教程中的第一步,在html标签注明ng-app="phonecatApp",并且在body标签注明了......
阅读全文
  • 04月
  • 25日
综合 ⁄ 共 27字 评论关闭
a,b=input(),input() print a*b
阅读全文
  • 04月
  • 23日
综合 ⁄ 共 8009字 评论关闭
以下代码实现的是:紧凑转换。 其中使用的Image和ImageGrab模块需要安装PIL库。   from Tkinter import * from tkMessageBox import * import time import Image import ImageGrab # some constant HEIGHT = 20 WIDTH = 20 TRUE = 1 FALSE = 0 INVALID = 0 NONSEL = 1 SELECTED = 2 # some parameters ENTRY_WIDTH = 58 # launch tk root=Tk();root.title('Dot matrix') class App(Frame): def __init__(self,master): Frame.__init__(self) # bind event master.bind('<Button......
阅读全文
  • 04月
  • 10日
综合 ⁄ 共 4136字 评论关闭
对一些访问受限的网站进行爬取(例如需要登录、切换代理),往往需要进行自定义http请求。 BreadthCrawler默认使用JDK自带的HttpUrlConnection进行http请求,下面示例通过自定义http请求,使用httpclient 4.x进行http请求。(需要导入httpclient 4.x所需jar包,或添加httpclient 4.x的maven dependency). import cn.edu.hfut.dmic.webcollector.crawler.BreadthCrawler; import cn.edu.hfut.dmic.webcollector.fetcher.Fetcher; import cn.edu.hfut.dmic.webcollector.model.CrawlDatum; import cn.edu.hfut.dmic.webcollector.m......
阅读全文
  • 03月
  • 15日
综合 ⁄ 共 950字 评论关闭
题目: Find the contiguous subarray within an array (containing at least one number) which has the largest product. For example, given the array [2,3,-2,4], the contiguous subarray [2,3] has the largest product = 6. 解题: 因为0比较影响结果,对0进行特判,凡是出现0的地方,重新计算。 每次计算的方式是计算le~ri之间的最大值,从左边往右记录le~x的积和从右往左扫记录x~ri的积,取个最大值就好了 代码: class Solution { public: int maxProduct(int A[], int n) { if(!n) return 0; ......
阅读全文