今天在编译Java程序的时候出现以下错误:No enclosing instance of type Main is accessible. Must qualify the allocation with an enclosing instance of type Main (e.g. x.new...
分类:
数据库 时间:
2015-04-11 19:12:28
阅读次数:
172
DIR结构体类似于FILE,是一个内部结构 struct __dirstream { void *__fd; char *__data; int __entry_data; char *__ptr; int __entry_ptr; size_t __allocation; size_t __siz...
分类:
其他好文 时间:
2015-04-11 13:03:57
阅读次数:
368
malloc的全称是memory allocation,中文叫动态内存分配,当无法知道内存具体位置的时候,想要绑定真正的内存空间,就需要用到动态的分配内存。原型为extern void *malloc(unsigned int num_bytes)。在使用上,malloc 和 new 至少有两个不同...
分类:
其他好文 时间:
2015-04-10 17:40:57
阅读次数:
121
我们在用织梦系统制作网站时,经常会用到channel标签来调子栏目。但是,很多朋友会遇到这种情况在使用channel标签来调子栏目的时候,指定 “type=son typeid=x” 发现currentstyle无效。今天笔者就跟大家分享一下解决方法。1、解决channel标签currentstyl...
分类:
其他好文 时间:
2015-04-10 09:28:52
阅读次数:
142
选择器是JavaNIO重磅推出的一个概念;在旧有的系统中为了跟踪多端口消息,需要为每一个端口配备一个线程做监听;但是有了selector就不需要了,一个Selector可以管理一众渠道(channel)。 选择器的本质就是:让监听的工作由选择起来做;它会定时执行来获取注册到他那里的渠道是否已经准备就...
分类:
编程语言 时间:
2015-04-09 23:32:47
阅读次数:
198
1对于服务端,privatevoidbindPort(intport){
EventLoopGroupworkGroup=newNioEventLoopGroup();
EventLoopGroupbossGroup=newNioEventLoopGroup();
try{
ServerBootstrapb=newServerBootstrap();
b.group(bossGroup,workGroup);
b.channel(NioServerSocketChannel.class)
.opt..
分类:
Web程序 时间:
2015-04-09 17:50:44
阅读次数:
187
一.到支付宝官网https://b.alipay.com/order/techService.htm?channel=psl下载(快捷支付(无线))开发包。将alipay-sdk-common文件夹下的alipaysdk.jar ,alipaysecsdk.jar,alipaysecsdk.jar 拷贝到工程的libs下。二.支付宝集成
在技术集成之前,商户需要在https://ms.alip...
分类:
移动开发 时间:
2015-04-09 17:35:51
阅读次数:
384
1,0516-787 extendlv: Maximum allocation for logical volume hd3 is 512smitt chlv改max logical partion值 or 使用Cli命令行 chlv -x 值M lvName;
分类:
其他好文 时间:
2015-04-08 21:24:58
阅读次数:
116
Channel是一个网络端口连接,或者是可以进行读,写,链接,绑定端口的组件的连接。 Channel就是一个链接,它提供了如下的功能。1:获取当前链接的状态2:配置当前链接参数3:进行read,write,connect,bind等通道支持的操作。4:该Channel关联的ChannelPipeLi...
分类:
Web程序 时间:
2015-04-08 12:59:26
阅读次数:
130
Netty的服务端怎么和java NIO联系起来的,一直很好奇这块内容,这里跟下代码,下篇文章看下Channel相关的知识。 final ChannelFuture initAndRegister() { final Channel channel = channelFactory().newCha...
分类:
Web程序 时间:
2015-04-08 12:26:47
阅读次数:
264