如下图,即使图片尺寸不规范,xcode5也可以正常预览(这里我提供的尺寸是57*57, 而需要的是120*120)但编译运行失败,报的错是:Images.xcassets: error: The app icon set named "AppIcon" did not have any applic...
分类:
其他好文 时间:
2014-07-16 22:57:46
阅读次数:
276
如何配置BIND9,使得向它发起的所有DNS请求都返回固定的IP地址?通过一些小技巧,可以实现。下面是一个配置示例:首先是主配置文件named.conf的配置:zone "." { type master; file "/etc/named.fakeroot";};其中上面的zone "...
分类:
其他好文 时间:
2014-07-16 21:37:24
阅读次数:
226
如果想使用非当前模块中的代码,需要使用Import,这个大家都知道。如果你要使用的模块(py文件)和当前模块在同一目录,只要import相应的文件名就好,比如在a.py中使用b.py:import b或者 from b import b.类或者是方法但是如果要import一个不同目录的文件(例如b....
分类:
编程语言 时间:
2014-07-16 21:18:24
阅读次数:
453
已知 string sentence="We were her pride of 10 she named us: Benjamin, Phoenix, the Pordigal and perspicacious pacific Suzanne.";编写程序,计算sentence中有多少个单次,并...
分类:
其他好文 时间:
2014-07-16 21:08:43
阅读次数:
328
1、删掉工程中main.storyboard 后要删除plist文件中对应的键值,否则会报如下错误:Could not find a storyboard named 'Main' in bundle NSBundle2、删除main.storyboard后,需要在AppDelegate.m中初始化...
分类:
其他好文 时间:
2014-07-16 20:43:35
阅读次数:
151
Language-Independent Set Expansion of Named Entities Using the Web.Chao Wang,Venu Satuluri,Srinivasan Parthasarathy:Local Probabilistic Models for Lin...
分类:
其他好文 时间:
2014-07-16 20:14:17
阅读次数:
346
linux 管道管道是Linux中很重要的一种通信方式,是把一个程序的输出直接连接到另一个程序的输入,常说的管道多是指无名管道,无名管道只能用于具有亲缘关系的进程之间,这是它与有名管道的最大区别。有名管道叫named pipe或者FIFO(先进先出),可以用函数mkfifo()创建。Linux管道的...
分类:
系统相关 时间:
2014-07-12 14:48:12
阅读次数:
285
1、错误描述
严重:Servlet service() for servlet default threw exception .
org.springframework.beans.factory.NoSuchBeanDefinition Exception:
No bean named 'sessionFactory' is defined.
...
分类:
其他好文 时间:
2014-07-09 11:40:23
阅读次数:
181
1. git send-email is included in an individual package, named "git-email":$ sudo apt-get install git-email2. Configure the SMTP server info after the ...
分类:
系统相关 时间:
2014-07-08 14:49:13
阅读次数:
413
In a fast local area network (LAN) environment, Transmission Control Protocol/Internet Protocol (TCP/IP) Sockets and Named Pipes clients are comparabl...
分类:
其他好文 时间:
2014-07-06 20:39:21
阅读次数:
315