由买买提看人间百态

topics

全部话题 - 话题: directory
首页 上页 1 2 3 4 5 6 7 8 9 10 (共10页)
h*****0
发帖数: 4889
1
来自主题: Java版 - So weird.
You still didn't get it.
You probably installed something called "jdk", or "j2se developer's toolkit",
This is a command line toolkit. It's not a texteditor.
1. Try to locate your java installation directory. It's
somewhere like "c:\program files\java....". You can find a "bin"
directory, and inside it you should be able to find "javac.exe"
2. Use any texteditor to type in your source code.
3. Compile your source code using "javac.exe"
4. run your code using "java.exe", which is by default alrea
m******o
发帖数: 774
2
写了个并不复杂的applet,自己的jar file一个(digital.jar),需要其它两个lib jar
(dpotapi.jar, dpotjni.jar)。我靠,中文写这个实在不行。
Everything worked perfectly, however, I hate the fact that I must place the
same jar files at two places to make it work. It is deployed under JBoss as
a WAR file, however, I must store the same 3 jar files in both the myapp.war
directory and the myapp.war/WEB-INF/lib directory to make the applet work.
I have tried more than 3 hours with all possible combination I can think of
with the applet tag:
T*****e
发帖数: 361
3
I guess you don't have to put the jar files in your WEB-INF/lib directory if
you don't use them on the server side. For the purpose of applets, you may
create a directory called "lib" or "applets" in your context root (or any
other place) and use relative path to access them.
For example:
..../ (project root)
..../applets/MyApplet.jar
..../html/MyPage.html
Then in MyPage.html:

Well, I guess you may have tried this already :)
Good luck.
m******o
发帖数: 774
4
Thanks a lot ThatOne.
I think I figured it out with your input.
I do need to use some of the library classes in my server side code, so it
makes perfect sense that the whole process won't finish when I take the lib
files out of WEB-INF/lib.
I've tried use only the jar files in WEB-INF/lib but it always failed to
load. Now with your input, I tried put the jar files in a directory named '
WEBINF/lib' and it worked! So I suspected that the '-' part in the directory
name is the trouble maker. Guess
m*****k
发帖数: 731
5
来自主题: Java版 - hadoop quickstart 疑问
我在试http://hadoop.apache.org/common/docs/r0.20.2/quickstart.html
我用的是win7 和 cygwin,
Standalone Operation
By default, Hadoop is configured to run in a non-distributed mode, as a
single Java process. This is useful for debugging.
The following example copies the unpacked conf directory to use as input and
then finds and displays every match of the given regular expression. Output
is written to the given output directory.
$ mkdir input
$ cp conf/*.xml input
在这一步
$ bin/hadoop jar hadoop-*-examples.ja... 阅读全帖
m*****k
发帖数: 731
6
来自主题: Java版 - hadoop quickstart 疑问
我在试http://hadoop.apache.org/common/docs/r0.20.2/quickstart.html
我用的是win7 和 cygwin,
Standalone Operation
By default, Hadoop is configured to run in a non-distributed mode, as a
single Java process. This is useful for debugging.
The following example copies the unpacked conf directory to use as input and
then finds and displays every match of the given regular expression. Output
is written to the given output directory.
$ mkdir input
$ cp conf/*.xml input
在这一步
$ bin/hadoop jar hadoop-*-examples.ja... 阅读全帖
f*******3
发帖数: 351
7
【 以下文字转载自 WashingtonDC 讨论区 】
发信人: Westridge (西岭), 信区: WashingtonDC
标 题: Java开发人员知识点(更新)
发信站: BBS 未名空间站 (Wed Apr 18 00:03:19 2012, 美东)
Java开发人员知识点
1.听说过James Gosling,SUN和Oracle公司。知道网上下载Java的地址,在哪讨论Java
。练习过Java在Windows下的安装和配置。知道Java应用系统中常见的几种license和JCP。了
解bytecode和Java在不同系统下可以轻松移植的原理。
2.懂得基本的Java编程和行命令格式。了解面向对象的编程思路。
几个基本点:Java基本语法和控制结构,命名和代码风格,结构化,对象封装,继承,
抽象,多态,接口,异常处理,堆空间,栈空间,垃圾回收器,static,this,
synchronized,annotations,JUnit,JDBC,JSP/servlet
Java Core APIs: java.lang,java.util,java.io,java.a... 阅读全帖
b******y
发帖数: 9224
8
最近感觉,我写了很多java程序,经常碰到需要一些简单的utility,但java api里也
没有。比如说,最近做了一个把给定多层directory里的文件都提上来放到root
directory的method.
这些东西,将来可能也会有用。我想,是不是我应该搞一个custom utility数据库呢?
好处是,搜索一下就能找到。否则,都散落在程序里,貌似再想用的时候,不好找啊。
Thoughts?
T********r
发帖数: 6210
9
should be ok. or you can try tar:
(cd /source/directory && tar cf - . ) | (cd /dest/directory && tar xpvf -)
x******0
发帖数: 1490
10
怎样mount 及 unmount NFS disk 呀(mac osx leopard xserve)
现有两个问题,请大侠们帮忙,谢谢,
1) how to mount NFS disks exported by other mac computer using command line?
2) I mounted a NFS disk through Directory Utility, but might be somthing
wrong, the mounted disk is only accessible by root, and they can not be
unmounted even I deleted it from Directory Utility, could you tell me how to
unmount this error mounting points?
w****g
发帖数: 597
11
Thanks. I use Thunar 1.0.0, but I cannot find its function to generate tree chart.
Would you please tell me how to use thunar to generate tree chart of
directory and its sub-directories if you knew it? need any plugin or addon ?
or other softwares?
w****g
发帖数: 597
12
谢谢。查了一下,Ubuntu 9.04没有这个你提到这个目录和文件:
$ cat /etc/rc.d/rc.local
cat: /etc/rc.d/rc.local: No such file or directory
$ cd /etc/rc.d
bash: cd: /etc/rc.d: No such file or directory
使用了/etc/rc.local运行调节亮度的命令也没有效果。
$ cat /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default thi
p*****s
发帖数: 344
13
I guess u mean to backup everything u changed.
under your home directory, there is a .mozilla directory, backup
everything under that dir.
i**********s
发帖数: 528
14
来自主题: Linux版 - LInux Kdev help
../libtool: line 2429: mkdir /.libs: No such file or directory
This comes when I build the project the file. Can anyone tell me how to fix
it.
Also when I compile the project I shows
../libtool: line 1146: X.deps/test4.Tpo: No such file or directory
a*******e
发帖数: 3021
15
.............
Alias /ebook /home/ebook

Options Indexes FollowSymlinks MultiViews
AllowOverride AuthConfig
Order allow,deny
Allow from all
m*********g
发帖数: 273
16
The temporary files problem really depends on your browser.
If you use firefox and thunderbird(IMAP, do not download email), you really
don't have to worry about the temp files. Their folder will be maybe as
large as 150M, which is really small considering the modern hard drive size.
You personal config files are in your home directory. They are normally very
small, you don't have to worry about it.
You can ls -a to list all the files and folders under your home directory.
And you can use du -sh
s*****l
发帖数: 2041
17
来自主题: Linux版 - 请教两个问题
Debian 5.03
1、每次打开一个sub-directory,就open a new window。怎样设置才能用一个window
打开sub-directories?有没有类似windows资源管理器的东东?
2、在任务栏上的Places,怎样修改里面的列表?例如,我想加一些folder到列表上,
怎么整?
3、输入法FCITX怎么更改设置阿(例如翻页,中英文切换等等),在图标上没找到设置
选项。
多谢了。
g****g
发帖数: 1828
18
来自主题: Linux版 - madgraph安装不上 [ubuntu]
README里让make,下面是error:
$ make
Running make for MadGraphII
make[1]: Entering directory `/home/weigang/Downloads/MG_ME_V4.4.32/
MadGraphII'
g77 -O -i4 -ffixed-line-length-132 -c driver.f
make[1]: g77: Command not found
make[1]: *** [driver.o] Error 127
make[1]: Leaving directory `/home/weigang/Downloads/MG_ME_V4.4.32/MadGraphII'
make: *** [mg2] Error 2
我用的UBUNTU。
b*****s
发帖数: 12
19
Thanks for your recommendation. I just tested syncback. However, it is the
same: all directories and sub-directories have the current time, not the
original time shown on the sever.
b*****s
发帖数: 12
20
Thank you, vbitter.
I know many sync/backup software can keep the same creation date/time for
the files, but not for the folders/directories.
If possible, please help me check "rsync --times" can keep the original
creation date/time for the folders/directories. I need to backup a lot of
data files and the origianl folder creation
date is important to me.
M**********n
发帖数: 432
21
As long as you can see that the 20G file is still on D disk, it should be OK
. I think you can recover your data. I had similar problem a few months ago.
The solution is to reinstall WUBI. But you have to put the old 20G file in
the same directory as your installation directory. Be sure to backup your
data first. You could google more details before you start.
a*******e
发帖数: 3021
22
来自主题: Linux版 - network if-up if-down问题
from googling,
if-up.d is only excuted when system boot, not excuted following ifup/ifdown
command.
here is the source
https://lists.ubuntu.com/archives/ubuntu-users/2008-May/147785.html
Pol wrote:
> How do the /etc/network/if-up.d mechanims work?
> I have found that files on that directory are not read during the boot
> processes
Not directly. They are only executed when called through a link in
the /etc/rc?.d directories.
A post-up method:
http://www.cyberciti.biz/tips/how-do-i-run-firewall-sc
d*b
发帖数: 21830
23
来自主题: Linux版 - Federal 14
别jjww了,使用open source就是对open source最大的贡献。但对open source
industry来说,尤其是fedora project, 要是连最基本的quality assurance 都做不好
,你叫人怎么选择open source?
随便举个mozilla的例子,最近的mozilla有个directory的bug,你的directory要是
symbolic link的话,丫第一次能打开,关掉,再开,就直接死了,以后永远都打不开
。这个bug是老老年间的bug, 来来去去N次了,很多人的目录结构没有symbolic link,
但也有不少人有,这样,bug report的结果就是mixted result. 丫搞project的人一看
到这个bug不是随口说不能复制,直接close,就是要人把目录delete再generate.
你说,这是software industry应有的态度么?很多人不懂怎么回事,但丫的写code的
至少应该懂吧?这bug也不是一年2年了,quality assurance在哪里呢?
keep in mind, Open s... 阅读全帖
S*A
发帖数: 7142
24
There are two kinds of link:
symbol link & hard link.
symbol link is just point to a differnt file/directory name.
hard link directly point the same inode struct, also increase
the inode reference count.
symbol link, if you remove the link, it just remove the pointer.
It does not harm to your real file. Also if people remove the
real file, you symlink is invalid.
hard link, if you remove either of the file, only remove the
directory entry, and decrease the reference count on inode.
when the inod... 阅读全帖
S*A
发帖数: 7142
25
来自主题: Linux版 - 大家用什么build tool?
make so far.
I am currently working on a pet project rewriting make.
Make works extremely well for one directory.
Not so well for bigger projects with lots of directories.
D******n
发帖数: 2836
26
来自主题: Linux版 - tar question
if I tar a directory like this
tar -cf 123.tar /aa/bb/cc/dd/123
and now I wanna untar it, but dont want to preserve the directory tree, i ju
st wan the 123 folder.
How to do this ?
S*A
发帖数: 7142
27
来自主题: Linux版 - just intall fedora 14 on notebook
It might work. I don't know. If not enough space, try point
the yum preupgrade directory symlink to some bigger file system
directory. It may or maynot work. The worse case it can't upgrade.
You can still use your existing FC14.
l*******G
发帖数: 1191
28
来自主题: Linux版 - 问个弱问题

实验一下这个笨方法:
在/var/www/html/webappl1/ 下放一个index.php ,内容为:
/**
* index.php
* This file simply takes any attempt to view source files and sends
* him to the /var/www/html/index.php instead
*/
header('Location: ../index.php');
?>
也可以用htpasswd 用密码保护/var/www/html/webappl1下的内容。见:
http://www.javascriptkit.com/howto/htaccess3.shtml
还可以 用 -Indexes

Options -Indexes

See:http://ubuntuforums.org/archive/index.php/t-234876.html
d********t
发帖数: 837
29
来自主题: Linux版 - xbmc 在 fedora 14下面搞不定
rpmfusion里直接有包,装上以后启动报错:
params.c:OpenConfFile() - Unable to open configuration file
"/home/.smb/smb.conf":
No such file or directory
params.c:OpenConfFile() - Unable to open configuration file
"/etc/samba/smb.conf":
No such file or directory
Running DIL (3.6.0) Version
DtsDeviceOpen: Opening HW in mode 0
DtsDeviceOpen: Create File Failed
/usr/bin/xbmc: line 133: 10159 Segmentation fault (core dumped)
"$LIBDIR/xbmc/xbmc.bin" $SAVED_ARGS
Crash report available at /home/xbmc_crashlog-... 阅读全帖
S*A
发帖数: 7142
30
来自主题: Linux版 - xbmc 在 fedora 14下面搞不定
$ xbmc
params.c:OpenConfFile() - Unable to open configuration file "/home/chrisl/.
smb/smb.conf":
No such file or directory
params.c:OpenConfFile() - Unable to open configuration file "/etc/samba/smb.
conf":
No such file or directory
sh: lsb_release: command not found
sh: lsb_release: command not found
Running DIL (3.6.0) Version
DtsDeviceOpen: Opening HW in mode 0
DtsDeviceOpen: Create File Failed
我用可以啊,从来不知到 xbmc, 就是 yum install xbmc.
然后就可以用了。那些 message 基本上是正常的。
yum install redhat-lsb ... 阅读全帖
A******g
发帖数: 612
31
来自主题: Linux版 - 想玩LINUX-求建议
1. usually common user won't get virus, no need to worry about it.
2. For file system, logically, think "/" (root) as "C:\", and then
everything is in this "C:\", you home directory is usually "/home/
youraccount", you have permission for you home directory, root (user) has
permission of the whole system.
No need to worry about defragmention, Linux handles by itself.
r**m
发帖数: 1825
32
来自主题: Linux版 - ctags question
why this doesn't work?
$ ctags -R *.h *.cpp
ctags: Warning: cannot open source file "*.h" : No such file or directory
ctags: Warning: cannot open source file "*.cpp" : No such file or directory
S*A
发帖数: 7142
33
来自主题: Linux版 - ctags question
because you don't have *.h in the current directory.
Most likely you want
ctags -R .

directory
c********g
发帖数: 1173
34
来自主题: Linux版 - 见鬼了。Apache 403 Forbidden
在家setup一个test server。设置全是从我的production上抄下来的。不知怎么就总是
出这个403 error。server ip is 192.168.2.5. On my desktop I change my host
file to pointing www.clingmarks.com to 192.168.2.5.
下面是设置。那位给看看吧。
ls -l /var/www/
total 12
drwxr-xr-x 2 root root 4096 2011-08-04 11:26 clingmarks.com
-rwxr-xr-x 1 root root 177 2011-07-25 16:10 index.html
==============================
cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 americano
192.168.2.5 americano.clingmarks.com www.clingmarks.com
# The following line... 阅读全帖
S*A
发帖数: 7142
35
来自主题: Linux版 - SSA, 能不能讲一下 inode
what race condition do you want to prevent?
mv inside the same file system is very simple.
It does not change the inode much at all, it just change
the directory entry that points to the inode.
Some file system allow more than one directory entry
points to the same inode (hard link).
g****e
发帖数: 172
36
来自主题: Linux版 - 一个linux简单面试题
【 以下文字转载自 JobHunting 讨论区 】
发信人: gangle (nothing), 信区: JobHunting
标 题: 一个linux简单面试题
发信站: BBS 未名空间站 (Mon Jun 18 22:02:33 2012, 美东)
如果我把一个文件从一个directory move到另一个directory。然后我忘了文件名。该
怎么找到这个文件?
大概记得是这样的题目。连文件名都忘了怎么找啊。
g****e
发帖数: 172
37
那些suspicious files安全吗?
多谢!!
sudo chkrootkit
ROOTDIR is `/'
Checking `amd'... not found
Checking `basename'... not infected
Checking `biff'... not found
Checking `chfn'... not infected
Checking `chsh'... not infected
Checking `cron'... not infected
Checking ... 阅读全帖
f******y
发帖数: 2971
38
来自主题: Linux版 - 包子求助,unity启动不了了
错误信息在这里:
unity-panel-service: no process found
compiz (core) - Error: Couldn't load plugin '/usr/lib/compiz/libccp.so' :
libprotobuf.so.7: cannot open shared object file: No such file or directory
compiz (core) - Error: Couldn't load plugin 'ccp'
compiz (core) - Error: Couldn't load plugin '/usr/lib/compiz/libccp.so' :
libprotobuf.so.7: cannot open shared object file: No such file or directory
compiz (core) - Error: Couldn't load plugin 'ccp'
y*******g
发帖数: 6599
39
来自主题: Linux版 - 包子求助,unity启动不了了
apt-get install --reinstall compiz

directory
directory
S*A
发帖数: 7142
40
还是非常艰辛,但是终归是个大进步。以前 FC18 什么的
都不能 liveboot,用 MBR/GPT 混合分区,特别脆弱,每次
Mac升级都要重新 gptsync,要不然那个MBR 的分区表就
被保护起来,bootcamp 就引导不了。
过程大致如下:
1)下载 FC 19 ISO
2)直接 dd 到一个 USB flash drive,不要用 live-cdtools。
3)用这个 USB drive 引导 Mac, 启动的时候按住 ‘c'
不得不提一下,这个 FC19 是第一个 FC 可以在我的Macbook
上面用 EFI 正常启动的。以前的要用 bootcamp 要么根本
启动不了。
4)选 xgrube.64 启动。
5) 进入 grub 菜单,修改引导参数,添加
selinux=0 nogpt noefi
要不然就会出没有引导分区的安装错误装不下去。
参见:
https://fedoraproject.org/wiki/Common_F19_bugs#Apple_EFI_Macs:_EFI_install_
alongside_existing_EFI_... 阅读全帖
S*A
发帖数: 7142
41
还是非常艰辛,但是终归是个大进步。以前 FC18 什么的
都不能 liveboot,用 MBR/GPT 混合分区,特别脆弱,每次
Mac升级都要重新 gptsync,要不然那个MBR 的分区表就
被保护起来,bootcamp 就引导不了。
过程大致如下:
1)下载 FC 19 ISO
2)直接 dd 到一个 USB flash drive,不要用 live-cdtools。
3)用这个 USB drive 引导 Mac, 启动的时候按住 ‘c'
不得不提一下,这个 FC19 是第一个 FC 可以在我的Macbook
上面用 EFI 正常启动的。以前的要用 bootcamp 要么根本
启动不了。
4)选 xgrube.64 启动。
5) 进入 grub 菜单,修改引导参数,添加
selinux=0 nogpt noefi
要不然就会出没有引导分区的安装错误装不下去。
参见:
https://fedoraproject.org/wiki/Common_F19_bugs#Apple_EFI_Macs:_EFI_install_
alongside_existing_EFI_... 阅读全帖
x*****g
发帖数: 3463
42
来自主题: Linux版 - 求教:奇怪的应用程序crash
我的系统是RHEL 6.4.
最近在用一个CAE软件,自带 Qt 4.8.3和 VTK 6.0.0库文件,直接executable。启动没
什么问题,GUI里面的help和settings也可用,就是一点“Open”试图打开文件就crash
了。奇怪的是如果从别的机器(Linux or windows) ssh 再运行同样的程序就没有问题
,可以打开文件正常操作。
唯一的屏幕输出错误信息:
Segmentation fault (core dumped)
自己有log,但是没什么用,有没有crash记录没什么不同。
看了系统log,也是一头雾水。
/var/log/messages:
Directory 'ccpp-2014-10-20-09:58:02-32028' creation detected
abrt[32031]: Saved core dump of pid 32028
(/xxx/yyy) to /var/spool/abrt/ccpp-2014-10-20-09:58:02-32028 (74723328 bytes)
abrtd: Executable '/xxx... 阅读全帖
x*****g
发帖数: 3463
43
来自主题: Linux版 - 求教:奇怪的应用程序crash
我的系统是RHEL 6.4.
最近在用一个CAE软件,自带 Qt 4.8.3和 VTK 6.0.0库文件,直接executable。启动没
什么问题,GUI里面的help和settings也可用,就是一点“Open”试图打开文件就crash
了。奇怪的是如果从别的机器(Linux or windows) ssh 再运行同样的程序就没有问题
,可以打开文件正常操作。
唯一的屏幕输出错误信息:
Segmentation fault (core dumped)
自己有log,但是没什么用,有没有crash记录没什么不同。
看了系统log,也是一头雾水。
/var/log/messages:
Directory 'ccpp-2014-10-20-09:58:02-32028' creation detected
abrt[32031]: Saved core dump of pid 32028
(/xxx/yyy) to /var/spool/abrt/ccpp-2014-10-20-09:58:02-32028 (74723328 bytes)
abrtd: Executable '/xxx... 阅读全帖
g*****d
发帖数: 27
44
What do you mean "在被的机器"? You sure you put the .vimrc in your home
directory rather than other directories? For autoindent, there is no need to
install any plugins. It is just a matter of .vimrc editing.
首页 上页 1 2 3 4 5 6 7 8 9 10 (共10页)