自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Andrew's Blog

keep moving, don't settle

  • 博客(156)
  • 资源 (3)
  • 收藏
  • 关注

原创 Windows使用Computer Modern Roman字体

1. 下载字体OTF文件 http://www.gust.org.pl/projects/e-foundry/latin-modern/download2. 安装字体:control panel --> font --> 拖动安装lmroman12 regular,bold和italic三个字体就足够3. 安装完成后使用office即可使用lm roman 12字体,如果save as p

2014-12-25 19:53:20 8139

转载 Visio 2010去除页面白边

On the File tab, click Options, and then in the navigation pane, click Customize Ribbon.In the Main Tabs pane, click to select the Developer check box, and then click OK.On the Developer tab, click

2013-10-06 14:29:35 7576

转载 字符集笔记

http://www.ruanyifeng.com/blog/2007/10/ascii_unicode_and_utf-8.html

2013-02-05 12:55:39 731

转载 简单的command line编译Java Project

http://www.sergiy.ca/how-to-compile-and-launch-java-code-from-command-line/

2013-02-04 11:18:47 1713

原创 Windows 8设置保护视力的颜色

以前在windows 7中可以很方便的在控制面板中设置windows color成豆绿色 眼睛看起来很舒服windows8中貌似去掉了这个方便的功能,幸好微软没把注册表设置给去掉,调整桌面颜色还是很简单的:Step1: 打开注册表编辑器 command line 输入regedit (command prompt可以直接在start screen搜索cmd)Step2: HKEY_CU

2013-01-03 11:38:56 8830

转载 Migrating SVN repositories

http://www.petefreitag.com/item/665.cfmMoving a Subversion Repository to Another ServerFEBRUARY 13, 2008Moving a subversion repository from one server to another, while still preserv

2012-12-17 22:02:53 1110

转载 The "right way" to handle file download in PHP

Copied from: http://www.richnetapps.com/the-right-way-to-handle-file-downloads-in-php/I’ve seen many download scripts written in PHP, from simple one-liners to dedicated classes. Yet, at lea

2012-12-16 14:33:16 1112

转载 Mastering the Java CLASSPATH

Copied from: http://kevinboone.net/classpath.htmlaHomeArticlesContactCVSite info• Articles • Articles about computingMastering the Java CL

2012-11-21 13:14:17 1015

转载 VI reference

http://blog.eddie.com.tw/2012/04/27/screencast-1-learning-vim-from-the-beginning/http://www.ibm.com/developerworks/cn/linux/l-tip-prompt/tip15/http://man.ddvip.com/soft/vieditor/vi.html

2012-11-07 23:24:33 700

转载 Enable colorful terminal

http://it.toolbox.com/blogs/lim/how-to-fix-colors-on-mac-osx-terminal-37214

2012-11-07 22:28:15 665

原创 A simple JNI example

tested on CentOS 5.8Step 1: declare a native function in the java source file public class AddMe{ static { System.loadLibrary("hello"); } public native vo

2012-11-03 22:16:29 851

转载 How do programs execute?

Copied from: http://stackoverflow.com/questions/1599434/how-does-program-execute-where-does-the-operating-systems-come-into-playFor starters, a modern CPU has (at least) two modes, a mode in which

2012-11-02 19:19:39 626

转载 How input events are dispatched in Android?

http://cjix.info/blog/misc/internal-input-event-handling-in-the-linux-kernel-and-the-android-userspace/

2012-10-31 19:44:24 1879

转载 Java reflection: accessing private fields and methods

Origin: http://tutorials.jenkov.com/java-reflection/private-fields-and-methods.htmlDespite the common belief it is actually possible to access private fields and methods of other classes via Java Re

2012-06-07 22:18:47 890

原创 Android startActivity()

Have you ever been curious about how startActivity() works? I was thinking what will happen if I put some code after this method call. So I tried out.The result is more or less as I expect. The code

2012-06-07 11:38:06 1114

转载 Every activity runs in a separate process?

Original URL: http://stackoverflow.com/questions/6468126/every-activity-in-android-is-a-process-or-one-application-is-one-processAll activities inside an application run in one process?It depe

2012-06-03 17:20:59 939

转载 Blocking I/O的概念

Original URL: http://www.jollen.org/blog/2008/08/linux_device_driver_blocking_io.html在 Linux 驅動程式的整個框架中,最重要,而且必須一開始就先了解的主題有二個:1. Blocking I/O 的觀念。2. Wait queue 以及 event-driven(event-poll

2012-06-03 16:31:37 1235

原创 JPF Configuration Parameters

In this post, I will put down the details about some common JPF options one can specify in a .jpf configuration file or a the argument page of a run configuration. Below, a fully qualified name includ

2012-05-19 11:57:14 1497

原创 Symbolic execution with Java Pathfinder

JPF has an extension for symbolically executing Java bytecode (called SPF). I have been using SPF for analyzing some pieces of code. This post introduces installation and basic configurations of SPF t

2012-05-17 20:33:07 4171 1

原创 Creating threads in Java

There are in general two ways to create and start a new thread in Java.1. extend the Thread class and override the run() methodpublic class MyThread extends Thread{ @Override public void r

2012-05-14 21:25:19 842

转载 Eclipse中用subclipse通过ssh tunneling check out project repo

Forwarded from http://myowntechdiary.blogspot.com/2009/05/eclipse-subclipse-svn-ssh.htmlsolution validated on Eclipse indigo + subclipse 1.8 on May 12, 2012Eclipse + Subclipse + SVN SSH Down

2012-05-12 11:50:16 1138

原创 手贱修改了grub导致开机无法进入系统

我的机器上早先装有windows 7, 后来由于项目需要就安装了fedora 15之后又升级到16.安装完双系统以后,每次启动,都是先由grub进行引导,默认的启动系统是fedora,可供选择的界面停留5秒钟左右。 后来发现还是大部分时间在用windows 7,而且经常让我抓狂的是还没来得及选择系统就进入了fedora, 近日有空,于是准备修改grub配置文件来让windows默认启动。G

2012-05-11 22:05:53 7087

转载 A very basic introduction about Java stack and heap

Forwarded from http://www.javatutorialhub.com/wiki/Stack_and_HeapStack and HeapThe JVM divided the memory into following sections.HeapStackCodeStaticThis division of memory is required for

2012-05-05 15:06:23 681

转载 Can Java classes be declared as static?

http://www.javaworld.com/javaworld/javaqa/1999-08/01-qa-static2.html?page=1

2012-04-28 18:02:02 558

转载 Neat and clear explanation of Java's passing by value

Q: Does Java pass by reference or pass by value?A: Your question demonstrates a common error made by Java language newcomers. Indeed, even seasoned veterans find it difficult to keep the terms str

2012-04-11 17:49:00 674

原创 adb logcat filter doesn't work

My Android application tries to log some runtime information with Log.i ("myTag", rtMsg)According to Android developer documents, I will be able to use "adb logcat myTag:I" to filter those informati

2012-03-30 16:40:53 1114

原创 shut down, restart, sleep keyboard short cut

shutdown: control+option+command+ejectrestart: control+command+ejectsleep: option+command+ejectOne can set System Preferences --> security --> require password immediately, then press the

2012-03-28 23:07:31 781

原创 Installing Subclipse Plugin in Eclispe (unable to load JavaHL)

Snow Leopard (Mac osx 10.6.x) come with svn by default. After installing Subclipse plugin, Eclipse failed to locate the javaHL library, which is required by Subclipse to call local Subversion APIs (im

2012-03-28 11:47:07 1096

转载 Your project contains errors, but there is no red cross marks

http://hi.baidu.com/lonpo/blog/item/829a3862cf7568c9e7113aca.html

2012-03-27 20:11:56 715

转载 Java Serialization

http://www.javabeginner.com/uncategorized/java-serialization

2011-11-30 13:15:05 492

原创 Polymorphism, class member access control, static method/field

Overloading vs. overriding (Polymorphism)OverloadingBetween a class and its subclass or within the same classSame method name, different parameters, return type can be different (Note that

2011-11-23 23:14:20 630

转载 Briefing introduction to four programming language concepts

link: http://joemorrison.org/projects/four-concepts/

2011-11-02 23:25:45 530

原创 Fedora notes

1. five must have Gnome shell extensionhttp://justinstories.wordpress.com/2011/05/27/five-must-have-gnome-shell-extensions-for-fedora-15/2. change font renderinghttp://blog.ust.hk/jasonwangm/2

2011-10-11 12:50:29 838

原创 Android 用代码开启和关闭飞行模式

boolean isEnabled = Settings.System.getInt(getContentResolver(), Settings.System.AIRPLANE_MODE_ON, 0) == 1;Settings.System.putInt(getConten

2011-08-14 20:44:40 9416

转载 Calculate distance based on GPS data (latitude and longitude)

http://www.movable-type.co.uk/scripts/latlong.html

2011-08-12 17:31:45 954

原创 Sending and receiving broadcast message in Android

Sending and receiving broadcast messages enables inter activity communication. Suppose in activity A you have completed a task and you want

2011-08-06 18:27:56 1145

原创 Creating Toast in IntentService

Oftentimes, we need a background service to do a long running task like downloading a file when we develop android apps. IntentService is a

2011-08-06 13:29:11 1218

原创 Multiple choice listview in Android

Below is a simple yet effective solution of using checkbox in listviews.XML File<LinearLayout xmlns:android="http://schemas.android.com

2011-08-01 15:44:42 1300 1

转载 Using GPS to get current location in Android

http://www.firstdroid.com/2010/04/29/android-development-using-gps-to-get-current-location-2/

2011-07-31 22:12:08 799

原创 Android ListView and ListActivity Tutorial

http://www.vogella.de/articles/AndroidListView/article.html

2011-07-30 12:47:11 571

Yacc+Lex快速入门

Lex和Yacc的入门必读 简单易懂 有实例

2009-04-12

prolog教程——以经典游戏为例

本教程适合初学者阅读 简单易懂 生动 以一个经典游戏为例

2009-04-12

五子棋算法(比较简单容易理解的算法)

五子棋的算法,这个算法比较容易理解,可以很容易地自己参考然后实现,不错的算法

2008-10-26

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除