不说废话,直接上代码。 #import <ifaddrs.h> #import <arpa/inet.h> - (NSString *)getIPAddress { NSString *address = @"error"; struct ifaddrs *interfaces = NULL; st ...
分类:
移动开发 时间:
2016-05-25 12:59:19
阅读次数:
158
https://www.sitepoint.com/intuitive-scrolling-interfaces-with-css-scroll-snap-points/ ...
分类:
Web程序 时间:
2016-05-23 22:35:33
阅读次数:
184
/** * 获取设备HardwareAddress地址 * @return */public static String getMachineHardwareAddress(){ Enumeration<NetworkInterface> interfaces = null; try { inter ...
分类:
移动开发 时间:
2016-05-23 19:05:30
阅读次数:
790
Binding to a Derived Type绑定派生类型Although we have focused on interfaces (since that is most relevant in MVC applications), we can alsouse Ninject to bin ...
分类:
Web程序 时间:
2016-05-23 19:02:37
阅读次数:
153
今天在电脑上安装了WIRESHARK软件,在设置interface 时提示"There are no interfaces on which a capture can be done" 提示没有任何一个网络接口准备好。此提示明显是不对的, 我的网卡明明可以正常上网,网络接口怎么会没有准备好呢? 想 ...
分类:
其他好文 时间:
2016-05-23 14:50:08
阅读次数:
371
1. 2016新版raspbian系统的固定IP配置: 自2016年2月份新版raspbian系统发布以后,树莓派的固定IP配置方法就与之前不一样了。 之前在raspbian系统中编辑/etc/network/interfaces文件就可以生效的固定IP配置,在新版raspbian系统中完全无法使用 ...
分类:
Web程序 时间:
2016-05-22 15:16:21
阅读次数:
219
将本地邮件服务器配置充当为控客户端,已将所有邮件都转发到中央服务器以进行发送 1.postconf -e "relayhost=[mail.example.com]" 邮件被路由到的服务器。2.postconf -e "inet_interfaces=loopback-omly" 邮件服务器只侦听回 ...
分类:
其他好文 时间:
2016-05-22 08:31:02
阅读次数:
157
一、什么是Java的反射机制Java反射是Java被视为动态语言的一个关键性质。这个机制允许程序在运行时透过ReflectionAPIs取得任何一个已知名称的class的内部信息,包括其modifiers(诸如public,static等)、superclass(例如Object)、实现之interfaces(例如Cloneable),也包括fields..
分类:
编程语言 时间:
2016-05-21 07:50:17
阅读次数:
136
原文 http://blog.ibireme.com/2015/11/12/smooth_user_interfaces_for_ios/ 这篇文章会非常详细的分析 iOS 界面构建中的各种性能问题以及对应的解决思路,同时给出一个开源的微博列表实现,通过实际的代码展示如何构建流畅的交互。 Index ...
分类:
移动开发 时间:
2016-05-18 12:12:07
阅读次数:
406