【转】编程语言/JAVA 转 Netbeans 5.5 界面英文问题解决

Netbeans 5.5 界面英文问题解决

从昨晚搞到现在。Netbeans的界面语言问题终于解决了。

问题:从官网下载的netbeans不论是中文版还是英文版默认的操作界面都是中文,并且字体十分恶心。

目标效果:把界面语言改成英文并使系统正常支持中文。

解决办法:

进入netbeans-5.5etc ,其中netbeans-5.5为netbeans的安装路径。
编辑netbeans.conf
将其中的#command line switchs下面那行变为:
netbeans_default_options=”-J-Xms128m -J-Xmx256m -J-XX:PermSize=32m -J-XX:MaxPermSize=160m -J-Xverify:none -J-Dapple.laf.useScreenMenuBar=true -J-Duser.language=zh -J-Duser.country=US –fontsize 13″

说明:

关于前面几个参数的解释可以参照netbeans的guide:

http://www.netbeans.org/kb/55/using-netbeans/configuring.html#pgfId-1158626

后面的几个参数-J-Duser.language=zh -J-Duser.country=US –fontsize 13是调用java的本身系统属性,设置语言为中文,国家为美国。这点很重要!

国家是美国使netbeans的界面为英文,而语言为中文使netbeans可以支持中文,如果只需要英文则可以把language设为en,不过在调用file browser的时候会发现左边一系列windows特性的中文按钮都回变成乱码。

在netbeans的toolsoptionsfonts&colorssyntax下的language选项设置all languages的default的字体为一个能够支持中文的字体,如:Microsoft YaHei

Read: 1034

[转] Dream Scape – Yuki Kajiura 歌词(日文 罗马音 中文翻译)

dream scape
「ツバサ・クロニクル」 插入歌

作曲・编曲・作词:梶浦由记
歌:FictionJunction Featuring KAORI

见たことのない草の海が
银色に揺れてざわめいて
梦と现の境目あたりの景色

君に出会うため?
それともまだ见ない谁かの瞳のため
风を分けてゆく
dream scape

もうすぐ鸣るね、目覚ましの音
でもその先もまだ梦かもしれないね
大事なものは何処にいたってあまり変わらないよね

目覚めてもまだここにいようと思うよ
それが勇気というものかとも思うよ

sittin’ in the silence…
everlasting night breeze…
(I believe… I deceive… I relieve…)
暗すぎて见えないだけさ……
in my…

泣きたくなくて放ってあった胸のササクレに
今顷追いかけられて息もつけなくて
しがみついていた真実がボロボロに枯れて落ちるまで

今ちょっと见えないだけさ・・・

现実だって梦だって君を迷わせるだけだからさ

坂道の上の曲がり角、几つでもその先に行きたい
音楽の中にしか无い风景の向こうへ
暗すぎで见えないだけさ

梦の続きには梦が
七色の迷路みたいに
音阶のない草笛に歌を见つけるために
広すぎて目がくらんでも
歌いすぎて喉がかれても
见たことのない草の海を
たとえ君がいなくなっても

暗すぎて见えないだけさ・・・
dream scape

———————————————————-

dream scape

Mi ta ko to no na I ku sa no u mi ga
Gi n I ro ni yu re te za wa me I te
Yume to u tsu tsu no sa ka I me a ta ri no ke shi ki
Kimi ni te a u ta me?
So re to mo ma ta mi na i da re ka no hi to mi no ta me
Kaze o wa ke te yu ku
Dream scape
Mou su gu me I ru ne me za ma shi no o to
Te mo so no sa ki mo ma da yume ka mo shi re na I ne
Da I ji na mo no ha do ko ni I tatte a ma ri ka wa ra na I yo ne
Me za me te mo ma da ko ko ni I yo u yo o mo u yo
So re ga yu u ki to I u mo no ka to mo o mo u yo
Sittin’ in the silence… everlasting night breeze…
(I believe… I deceive… I relieve…)
Ku ra su gi te mi e na I da ke sa, in my…
Na ki ta ku na ku te houtte atta mu ne no sa sa ku re ni
I ma do ro o I ka ke ra re te I ki mo tsu ke na ku te
Shi ga mi tsu I te I ta shi n ji tsu ga bo ro bo ro ni ka re te o chi ru ma te
I ma chi yo tsu to mi te na I da ke sa…
Ge n ji tsu da tsu te yume da tsu te kimi o ma yo wa se ru da ke da ka ra sa
Sa ka mi chi no u e no ma ga ri ka do
I ku tsu te mo so no sa ki ni yu ki ta I
O n ga ku no na ka ni shi ka na I fu u he I no mu ko u he
Ku ra su gi te mi e na I da ke sa
Yume no tsu zu ki ni ha yume ga
Na na I ro no me I romita I ni
O n ka I no na I ku sa fu u e ni u ta o mi tsu ke ru ta me ni
Hi ro su gi te me ga ku ra n te mo
U ta I su gi te nodo ga ka re te mo
Mi ta ko to no ma I ku sa no u mi o
Ta to e kimi ga I na ku natte mo
Ku ra su gi te mi e na I da ke sa…
Sittin’ in the silence… everlasting night breeze…
(I believe… I deceive… I relieve…)
Dream scape——

———————————————————-
dream scape
「翼・年代记」插曲

作曲・编曲・作词:梶浦由记
歌:FictionJunction Featuring KAORI

陌生的草之海洋
闪耀着点点银光 沙沙作响地摇动着
位于梦境和现实的边界的景色

是为了和你相遇?
还是为了未知的某人的眼瞳
迎风而行
dream scape

闹钟的铃声立刻就会响起
但在那之后 或许仍然是梦境
重要的东西无论身在何处都不会改变

即使从梦中醒来 我也依然想留在这里
我想这大概就是所谓的勇气吧

sittin’ in the silence…
everlasting night breeze…
(I believe… I deceive… I relieve…)
仅仅是由于太暗而无法看到……
in my…

因为不想哭泣 而将心中的慌乱置之不理
现在却反被慌乱压迫着 连呼吸都感到困难
直到紧紧依存着的真理枯萎掉落为止

现在只是看不到而已……

因为无论现实还是梦想 都只会令你迷失

想要越过坡道上的无数转弯
向着只存在于音乐中的景色
仅仅是由于太暗而无法看到

梦想的延续仍然是梦想
仿佛七彩的迷宫一般
为了在缺乏音阶的草笛中发现旋律
即使为无边的广阔感到目眩
即使歌唱至喉咙干枯
即使你已经不在这里

仅仅是由于太暗而无法看到那
陌生的草之海洋……
dream scape

 

 

来源:http://zhidao.baidu.com/question/28142559.html

Read: 994

QEMU/Images

QEMU/Images


From Wikibooks, the open-content textbooks collection
Jump to: navigation, search

Once
QEMU has been installed, and kqemu compiled and configured, it should
be ready to run a guest OS from a virtual disc image. A disc image is a
file that represents the data on a hard disc. From the perspective of
the guest OS, it actually is a hard disc, and the guest OS can actually
create its own filesystem on the virtual disc.

You can download a few guest OS images from the QEMU website, including a simple 8MB image of a Linux distro. To run it, download and unzip the image in a folder and run the QEMU command.

qemu linux-0.2.img

Replace linux-0.2.img
with the name of your guest OS image file. If it has a GUI and you want
to use your mouse with it, double-click on the window and QEMU will
grab your mouse. To make QEMU release your mouse again, hold down the
Control and Alt keys simultaneously, then let go – your mouse will be
released back to X.

Contents[hide]

1Image types


Image types

QEMU supports several image types. The “native” and most flexible type is qcow2, which supports copy on write, encryption, compression, and VM snapshots.

If you need to copy files to and from the image directly from the host, however, you need to use the raw image type.

QEMU currently supports these image types or formats:

raw

Creating an image

To set up your own guest OS image, you first need to create a blank disc image. QEMU has the qemu-img
command for creating and manipulating disc images, and supports a
variety of formats. If you don’t tell it what format to use, it will use
raw files. The “native” format for QEMU is qcow2, and this format
offers some flexibility. Here we’ll create a 3GB qcow2 image to install
Windows XP on:

qemu-img create -f qcow2 winxp.img 3GB

The
easiest way to install a guest OS is to create an ISO image of a boot
CD/DVD and tell QEMU to boot off it. Many free operating systems can be
downloaded from the Internet as bootable ISO images, and you can use
them directly without having to burn them to disc.

Here
we’ll boot off an ISO image of a properly licensed Windows XP boot
disc. We’ll also give it 256MB of RAM, but we won’t use the kqemu kernel
module just yet because it causes problems during Windows XP
installation.

qemu -m 256 -hda winxp.img -cdrom winxpsp2.iso -boot d

To boot from a real CD or DVD, tell QEMU where to find it. On Linux systems, you can usually use a logical device name like /dev/cdrom or /dev/dvd, or the physical name of the device, e.g. /dev/sr0

qemu -m 256 -hda winxp.img -cdrom /dev/cdrom -boot d

QEMU
will boot from the ISO image or CD/DVD and run the install program. If
you have two screens, move the QEMU screen off to the spare one where
you can keep an eye on the installer, but get on with something else –
it will take a while!

Once
the guest OS has installed successfully, you can shutdown the guest OS
(e.g. in Windows XP, click on Start and then Shutdown). Once it has
shutdown, start QEMU up with the kqemu kernel module to give it a little
more speed.

qemu -m 256 -hda winxp.img -cdrom winxpsp2.iso -kernel-kqemu

If you are running an x86-64 Linux (i.e. 64-bit), you will need to run the x86-64 version of QEMU to be able to utilise kqemu:

qemu-system-x86_64 -m 256 -hda winxp.img -cdrom winxpsp2.iso -kernel-kqemu

Using multiple images

QEMU
can utilise up to four image files to present multiple virtual drives
to the guest system. This can be quite useful, as in the following
examples:

a pagefile or swapfile virtual disc that can be shared between QEMU guests

Bear in mind that only one instance of QEMU may access an image at a time – shared doesn’t mean shared simultaneously!

To utilise additional images in QEMU, specify them on the command line with options -hda, -hdb, -hdc, -hdd.

qemu -m 256 -hda winxp.img -hdb pagefile.img -hdc testdata.img -hdd tempfiles.img -kernel-kqemu

NB:
QEMU doesn’t support both -hdc and -cdrom at the same time, as they
both represent the first device on the second IDE channel.


Copy on write

The “cow” part of qcow2 is an acronym for copy on write,
a neat little trick that allows you to set up an image once and use it
many times without changing it. This is ideal for developing and testing
software, which generally requires a known stable environment to start
off with. You can create your known stable environment in one image, and
then create several disposable copy-on-write images to work in.

To start a new disposable environment based on a known good image, invoke the qemu-img
command with the option -b and tell it what image to base its copy on.
When you run QEMU using the disposable environment, all writes to the
virtual disc will go to this disposable image, not the base copy.

qemu-img create -f qcow2 -b winxp.img test01.img 3GB
qemu -m 256 -hda test01.img -kernel-kqemu &

NB:
don’t forget to copy any important data out of the disposable
environment before deleting it. When developing and testing software in
copy-on-write virtual environments, it is a good idea to use version control software like Subversion or CVS
on a server external to your virtual environment. Not only is it easy
to keep copies of your work outside your virtual environment, it is also
very easy to set up a new virtual environment from version control.


Mounting an image on the host

Sometimes
it is helpful to be able to mount a drive image under the host system.
For example, if the guest doesn’t have network support, the only way to
transfer files into and out of the guest will be by the storage devices
it can address.

Linux and other Unix-like hosts can mount images created with the raw format type using a loopback device. From a root login (or using sudo), mount a loopback with an offset of 32,256.

mount -o loop,offset=32256 /path/to/image.img /mnt/mountpoint

For example, to copy some files across to a FreeDOS hard drive image:

mkdir -p /mnt/freedos
mount -o loop,offset=32256 freedos-c.img /mnt/freedos
cp oldgames /mnt/freedos
umount /mnt/freedos

NB: never mount a QEMU image while QEMU is using it, or you are likely to corrupt the filesystem on the image.

Note:
if you have an image without partitions you should omit the
,offset=32256 part. This is for instance the case if you want to mount
linux-0.2.img (which can be found at the qemu web site at the time of
writing)


Getting information

The qemu-img program can tell you about the format, virtual size, physical size, and snapshots inside an image.

$ qemu-img info test.vmdk
(VMDK) image open: flags=0x2 filename=test.vmdk
image: test.vmdk
file format: vmdk
virtual size: 20M (20971520 bytes)
disk size: 17M


Converting image formats

The qemu-img
program can be used to convert images from one format to another, or
add compression or encryption to an image. Specify the source and target
files for the image, and select from the following options:

-f – optional, specify the format of the input file (QEMU can usually detect it)qemu-img convert -O qcow2 test.vmdk test.qcow2


Exchanging images with VirtualBox

To convert a QEMU image for use with VirtualBox, first convert it to raw
format, then use VirtualBox’s conversion utility to convert and compact
it in its native format. Note that the compact command requires the
full path to the VirtualBox image, not just the filename.

qemu-img convert -O raw test.qcow2 test.raw


(1) VBoxManage convertdd test.raw test.vdi
VBoxManage modifyvdi /full/path/to/test.vdi compact


(1) or try :

VBoxManage convertfromraw -format VDI test.raw test.vdi

VBoxManage
doesn’t have the capability to convert an image back to raw format.
However, an older tool was available for download off the VirtualBox
website, vditool, can apparently convert from .vdi to raw format. UPDATE – Feb 2009 – current installations of VirtualBox should already include vditool. Kvditool is a GUI for managing vditool.

(2) or try :

VBoxManage internalcommands converttoraw file.vdi file.raw

Read: 971