??
Getting Started
开始
Modeling a system involves identifying the things that are important to your particular view. These things form the vocabulary of the system you are modeling. For example, ...
分类:
其他好文 时间:
2014-06-22 22:33:29
阅读次数:
220
1.classmethods
such
as select/update/insert/delete queries。
# Example:
class User(Model):
username = CharField()
join_date = DateTimeField()
is_admin = BooleanField()
u = User(use...
分类:
编程语言 时间:
2014-06-22 21:27:39
阅读次数:
436
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.
For example:
Given the below binary tree and sum...
分类:
其他好文 时间:
2014-06-22 20:59:24
阅读次数:
227
Given a linked list, remove the nth node from the end of list and return its head.
For example,
Given linked list: 1->2->3->4->5, and n = 2.
After removing the second node from the end, the...
分类:
其他好文 时间:
2014-06-22 20:02:46
阅读次数:
182
【原创】车载实时路况信息接收终端移植于Smart210开发板
所用工具:
windows电脑
Ubuntu12.04
Smart210开发板
4g以上SD卡
U盘
步骤:
1. 用SD卡烧写Linux系统到smart210开发板,开机测试烧写过的Linux,确保可以正常运行。(可以参考开发板光盘中带的资料)
2. 在windows系统下安装...
分类:
其他好文 时间:
2014-06-22 19:26:48
阅读次数:
196
上一篇《Qt on Android: Qt Quick事件处理之鼠标、键盘、定时器》我们介绍了常见的鼠标、键盘、定时器的处理,鼠标、键盘都是电脑上我们最常使用的事件,这节我们来介绍 Android 智能手机上的一个非常重要的手势:捏拉手势。捏拉手势最早在苹果手机上得到应用,苹果还曾经尝试为此操作申请专利,借以钳制三星在美国的手机和平板销售。这些我们且不管它,咱们只说在 Qt Quick 中如何处理捏拉手势。...
分类:
移动开发 时间:
2014-06-22 18:46:01
阅读次数:
347
Write a function for retrieving the total number of substring palindromes.
For example the input is 'abba' then the possible palindromes= a, b, b, a, bb, abba
So the result is 6.
Updated at 11...
分类:
其他好文 时间:
2014-06-21 23:59:42
阅读次数:
422
上一篇已经介绍了Android种Bitmap和Canvas的使用,下面我们来写一个具体实例
http://blog.csdn.net/zhaoyazhi2129/article/details/32136179
运行效果:
主要代码
package com.example.guaguale;
import android.app.Activity;
import androi...
分类:
其他好文 时间:
2014-06-21 23:19:04
阅读次数:
235
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.
For example:
Given the below binary tree and sum = 22,
5
/ ...
分类:
其他好文 时间:
2014-06-21 22:44:58
阅读次数:
266
点击监听器接口:onClickListener抽象函数onClick(Viewv)有2个方法实现监听:1:当前类继承点击监听器接口packagecom.example.button;importandroid.app.Activity;importandroid.os.Bundle;importandroid.view.Menu;importandroid.view.View;importandroid.view.View.OnClickLi..
分类:
移动开发 时间:
2014-06-21 19:24:32
阅读次数:
267