- 博客(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
8922
转载 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
7758
转载 字符集笔记
http://www.ruanyifeng.com/blog/2007/10/ascii_unicode_and_utf-8.html
2013-02-05 12:55:39
827
转载 简单的command line编译Java Project
http://www.sergiy.ca/how-to-compile-and-launch-java-code-from-command-line/
2013-02-04 11:18:47
1773
原创 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
8897
转载 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
1165
转载 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
1156
转载 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
1066
转载 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
750
转载 Enable colorful terminal
http://it.toolbox.com/blogs/lim/how-to-fix-colors-on-mac-osx-terminal-37214
2012-11-07 22:28:15
710
原创 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
910
转载 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
682
转载 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
1932
转载 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
981
原创 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
1177
转载 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
985
转载 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
1290
原创 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
1556
原创 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
4320
原创 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
895
转载 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
1186
原创 手贱修改了grub导致开机无法进入系统
我的机器上早先装有windows 7, 后来由于项目需要就安装了fedora 15之后又升级到16.安装完双系统以后,每次启动,都是先由grub进行引导,默认的启动系统是fedora,可供选择的界面停留5秒钟左右。 后来发现还是大部分时间在用windows 7,而且经常让我抓狂的是还没来得及选择系统就进入了fedora, 近日有空,于是准备修改grub配置文件来让windows默认启动。G
2012-05-11 22:05:53
7319
转载 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
734
转载 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
599
转载 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
725
原创 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
1160
原创 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
841
原创 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
1164
转载 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
753
转载 Java Serialization
http://www.javabeginner.com/uncategorized/java-serialization
2011-11-30 13:15:05
534
原创 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
676
转载 Briefing introduction to four programming language concepts
link: http://joemorrison.org/projects/four-concepts/
2011-11-02 23:25:45
567
原创 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
869
原创 Android 用代码开启和关闭飞行模式
boolean isEnabled = Settings.System.getInt(getContentResolver(), Settings.System.AIRPLANE_MODE_ON, 0) == 1;Settings.System.putInt(getConten
2011-08-14 20:44:40
9528
转载 Calculate distance based on GPS data (latitude and longitude)
http://www.movable-type.co.uk/scripts/latlong.html
2011-08-12 17:31:45
1027
原创 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
1195
原创 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
1256
原创 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
1341
转载 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
859
原创 Android ListView and ListActivity Tutorial
http://www.vogella.de/articles/AndroidListView/article.html
2011-07-30 12:47:11
613
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人