public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); Button btn = new Button(this);
btn.setText("测试ndk"); btn.setOnCl...
分类:
移动开发 时间:
2014-05-14 02:33:36
阅读次数:
488
导入两个包:
import android.view.Window;
import android.view.WindowManager;
public class MainActivity extends ActionBarActivity {@Override protected void onCreate(Bundle savedInstanceState) { super.onCrea...
分类:
移动开发 时间:
2014-05-13 23:19:51
阅读次数:
509
package edu.hpu.init;import
android.app.Activity;import android.content.Intent;import
android.os.Bundle;import android.os.Handler;import edu.hpu.logic...
分类:
移动开发 时间:
2014-05-13 22:35:50
阅读次数:
462
Mac OS X任意 Linux 发行版本(Ubuntu,CentOS, Redhat,
ArchLinux ...)强烈新手使用 Ubuntu 省掉不必要的麻烦!以下代码区域,带有 $ 打头的表示需要在控制台(终端)下面执行(不包括 $
符号)步骤0 - 安装系统需要的包# For Mac # 先...
分类:
其他好文 时间:
2014-05-12 19:59:38
阅读次数:
286
1.dos工程路径下执行(c:home/trunk/src下):rubyscript/generatemigrationAddPermissionsData(名字随便起)生成时间戳文件classAddPermissionsData<ActiveRecord::Migrationdefself.upp=Permission.create({:name=>‘张三‘,:parent_id=>‘367‘,:deleted=>‘0‘,:act..
分类:
数据库 时间:
2014-05-12 03:49:00
阅读次数:
330
先执行:rubyscript/generatemigrationadd_change_flag_to_userschange_flag:Boolean生成时间序列文件:db/migrate/20131016034104_add_changeflag_to_users.rb内容:classAddchangeflagToUsers<ActiveRecord::Migrationdefself.upadd_column:users,:change_flag,:booleanen..
分类:
其他好文 时间:
2014-05-12 03:10:04
阅读次数:
368
首先,给Actionbar添加返回图标:代码: @Override protected
void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);
setContentView(R.layout.s.....
分类:
移动开发 时间:
2014-05-12 01:38:48
阅读次数:
379
工作也已经接近两年了,给自己一个小的总结,谈论一下软件研发中的术与道。
所谓术,乃技术之意,软件研发过程中,技术直接关系到一个项目的成功与否。所谓技术有可以分为很多层面。编程语言层面,ruby、java、等等语言只是一种表达逻辑的方式,没有什么那种语言好那种语言坏之说。每一种语言都有自己适合的应用场景。比如ruby就强调代码的可读性。java等就兼顾了很多效率。c就是性能中的奶霸,但是可读性就一...
分类:
其他好文 时间:
2014-05-11 22:29:50
阅读次数:
413
本文首先发布在
CSDN的文章编辑器实在太烂了,建议大家用Cmd Markdown。它不但支持markdown,还支持VIM模式。
智能化的命令行工具-betty
betty tool command ruby
betty 是一个用Ruby实现的非常简单,好玩的智能化命令行提示工具。主要解决的问题是将英文翻译成机器可以理解的unix命令。在它的官方文...
分类:
其他好文 时间:
2014-05-11 20:00:09
阅读次数:
355
IDE: VS2005
语言: C#
组件: sqlite-netFx20-setup-bundle-x86-2005-1.0.92.0
简介:
本示例使用SQLite的密码、外键功能。以及关闭临时文件(journal mode=Off)。
通过查询和插入(修改、删除)来演示...
分类:
数据库 时间:
2014-05-11 14:37:17
阅读次数:
527