现在的位置: 首页 > 软件开发
0℃
2013年08月08日 移动开发 ⁄ 被围观 3,775+
开发过移动APP的同学都知道云推送,比如Google的后台服务,联系人同步,邮件同步,APK的自动升级等都是这个机制,其实利用云推送机制还可以实现消息的发送,本文介绍了一种基于PHP后台的推送机制,实现原理还是通过Google的云端服务(Google Cloud Messaging for Android service),android客户端采用的是phoneGap的PushPlugin。 Last days I’ve been working within a Phonegap project for Android devices using Push Notifications. The idea is simple. We need to use the Push Notification Plugin for Andr...
阅读全文
0℃
2013年08月08日 程序设计 ⁄ 被围观 3,348+
前言 OpenSCADA作为一个开源的Scada系统,本文基于此系统来添加一个子模块,例子中准备添加一个支持61850协议的模块(名称为SP61850)。 OpenScada内置支持如下的子系统 "Data Bases" "Communication Interfaces, Transports" "Protocols of the communication interfaces" "Data Sources and Data Acquisition" "Archives(Histories) (of messages and values)" "User Interfaces (GUI, TUI, WebGUI, speach, signal ...)" "Additional modules" 我们所要添加的子模块隶属于如上的"Additional modules",即"spe...
阅读全文
0℃
2013年08月05日 程序设计 ⁄ 被围观 3,686+
在开发Java的过程中,怎么样来监测一个对象占用的内存大小,对于调试程序,优化程序来说,有很大的帮助,本文介绍了一个开发包,JAMM (Java Agent for Memory Measurements),可以很方便的在程序的运行过程中动态监测对象的内存占用情况。 This short article shows how to measure java object memory size at runtime with JAMM, a java agent dedicated to measure actual object memory use including JVM overhead. JAMM uses the Instrumentation implementation provided by the JVM to compute memory usa...
阅读全文
0℃
2013年08月05日 程序设计 ⁄ 被围观 3,107+
在基于Java语言的开发过程中,DB相关的开发相信大家都接触过SQL语句,增删改查作为基本的操作,比较熟悉,那么JOIN,UNION, MERGE, DISTINCT这些高级的操作使用过没有呢?使用的过程中有哪些误用呢?有没有可能改善现在的SQL语句来提高程序的性能。本文介绍了几种常见的SQL误用场合,有语法方面的,改善效率方面的,下次,自己再做开发的时候,想想当前的SQL处理语句有没有可以完善的情况。 Java developers mix object-oriented thinking with imperative thinking, depending on their levels of: Skill (anyon...
阅读全文
1℃
2013年08月05日 程序设计 ⁄ 被围观 4,288+
简介 SCADA(Supervisory Control And Data Acquisition)系统,即数据采集与监视控制系统。SCADA系统是以计算机为基础的DCS与电力自动化监控系统;它应用领域很广,可以应用于电力、冶金、石油、化工等领域的数据采集与监视控制以及过程控制等诸多领域。详细可以从百度百科和维基百科了解。 安装环境 OS: Ubuntu 11 openscada-0.8.0.5 依赖包的安装 ####### 文字处理相关 sudo apt-get install gettext sudo apt-get install zlib1g-dev sudo apt-get install libgd2-xpm-dev sudo apt-get install libpcre3 ...
阅读全文
0℃
2013年08月04日 移动开发 ⁄ 被围观 3,207+
在开发Android的过程中,涉及到list view什么的,应该经常会碰到加载layout的状况,那么平时使用inflate函数的时候,经常是怎么传递参数的?在不同的场合,比如list view的adapter中加载layout与在自定义Dialog中加载Layout,它们有没有特殊区别的地方,本文就会介绍inflate函数的正确使用方法,请学习一下。 Layout inflation is the term used within the context of Android to indicate when an XML layout resource is parsed and converted into a hierarchy of View objects. It’s common practice in t...
阅读全文
0℃
2013年08月04日 移动开发 ⁄ 被围观 3,113+
开发过Android的同学,应该对上下文Context的概念不陌生,启动新的Activity,启动新的Service,加载系统资源文件,加载Layout等等,记得以前还分析过腾讯游戏平台免安装的实现机制,这些都涉及到了上下文Context。同时,如果误用了Context了,还会导致内存的泄露,想了解Android系统中Context使用的场合么?那么本文就会给你回答~~~ Context is probably the most used element in Android applications…it may also be the most misused. Context objects are so common, and get passed around so frequently...
阅读全文
0℃
2013年08月04日 程序设计 ⁄ 被围观 3,144+
我们都知道发布Python模块的时候需要准备几份文件,其中就包括了setup.py和requirements.txt,这两份文件中都需要填写待发布模块的依赖关系,那么是不是这样就会出现信息的重复,维护起来也不方便呢? 如下的文章解释了这两个文件中重复信息的不同功用,前者为“虚引用”,后者为“具体引用”,那么他们利用的场合和背后的机制是什么样子的,马上就会知晓了。 There's a lot of misunderstanding between setup.py and requirements.txt and their roles. A lot of people have felt they are duplicated information ...
阅读全文
×
腾讯微博