s**g 发帖数: 3271 | 1 水之痕 --- 未名空间Whisper版精华区
I. 旧Whisper精华区(dir)
1 群英册(dir)
(1) 群英册 1 (dir)
<1> 事物集(pistone) (dir): 13 posts
<2> 眉笔集(maybe) (dir): 41 posts + subdirs
<3> 黑格集(hegel) (dir): 13 posts
<4> 天篷集(serein) (dir): 17 posts + subdirs
<5> 令狐集(danielf) (dir): 13 posts + subdirs
<6> 尘穴集(socks) (dir): 11 posts + subdirs
<7> 器器集(kittywang) (dir): 32 posts + subdirs
<8> 管子集(aimerfy) (dir): 81 posts + subdirs
<9> 易 |
|
N****w 发帖数: 21578 | 2 那个太复杂了
其实如果每个子目录都需要相同的 makefile,俺有一招
SUBDIRS = $(shell find . -maxdepth 1 -o -type d -name [^.]\* -print | sed s/
\\s/\\+/g)
all: makesubdirs target
.PHONY: makesubdirs $(SUBDIRS)
makesubdirs: $(SUBDIRS)
$(SUBDIRS):
if (test ! -f $(subst +,\ ,$@)/Makefile); then cp Makefile $(subst +
,\ ,$@); fi
$(MAKE) -C $(subst +,\ ,$@)
target:
do sth |
|
l*****n 发帖数: 246 | 3 第2题不是应该是leetcode上的permutation II吗?还是我题意理解错了?
尝试着写了个第二题和第三题的代码:
//给定一个字典,给定一个字符串,返回所有可能的组合。
public List words(Set dict, String str) {
char[] arr = str.toCharArray();
List result = new ArrayList();
Arrays.sort(arr);
helper(dict, arr, result, new boolean[arr.length], new ArrayList<
Character>());
return result;
}
private void helper(Set dict, char[] arr, List result,
boolean[] used, List item) {
if(item.size()==arr.l... 阅读全帖 |
|
l*******G 发帖数: 1191 | 4 Oops, even though I found the cause of the problem, there doesn't seem to
exist a simple solution to it. Matlab does not have an explicit way to stop
the file checks on linux system?? I understand IDE may want to check number
of files etc in current dir in order to search for programs etc. When
running code without IDE, it makes no sense!
It is terrible that matlab would slow down because number of files in folder
is large.
A sloppy solution is to save the files in a subfolder rather than in the... 阅读全帖 |
|
l*******G 发帖数: 1191 | 5 Oops, even though I found the cause of the problem, there doesn't seem to
exist a simple solution to it. Matlab does not have an explicit way to stop
the file checks on linux system?? I understand IDE may want to check number
of files etc in current dir in order to search for programs etc. When
running code without IDE, it makes no sense!
It is terrible that matlab would slow down because number of files in folder
is large.
A sloppy solution is to save the files in a subfolder rather than in the... 阅读全帖 |
|
j***n 发帖数: 301 | 6 FreeBSD下开发PHP,刚装好的一个apahce1.x的变种,现在有这些问题:
1.我在htdocs下连接了一个目录到~/subdir,然后在这个subdir里面放html或者php文件
的话,用浏览器访问就会返回空白页面。如果放.txt就能正常返回。如果在htdocs下直
接建立目录就可以。这个行为可以哪里设置?
2.我自己新建的php页面,只要在浏览器里访问过一次,就在哪儿被cache起来了(服务
器端)。我每次都得重新命名,这个能在哪儿设置一下不用cache么?
3.php页面,里面要是有语法错误的话,就悄无声息的结束了(后面都是空白),能让他
在出错的时候打印错误信息么?
谢谢 |
|
L******t 发帖数: 1985 | 7 In Linux source, under net directory, there are a bridge subdir, and a 8021q
subdir.
By bridge it seems to me that Linux can do software layer-2 switching and
supports
STP & multiple bridge groups.
8021q is Linux's support of VLAN. I am sure Linux supports routing over VLAN.
But does
it support layer-2 switching within each VLAN? Or Linux's VLAN is just a kind
of interface
encapsulation over Ethernet?
Multiple bridge groups look like VLAN (if VLAN can do switching itself). So I
wonder
what's the |
|
t*******l 发帖数: 421 | 8 要实现下列功能:进入目录bbs,显示所有subdir,从屏幕输入要考古的subdir,
进入该目录,浏览最后一片文章.大致是这样的.
cd bbs
ls
read -p " " answer
if ( -e $argv[1]) then
cd $argv[1]
pico lastpost
else
echo2 file $argv[1] doesn't exist
endif
学这个都两星期了,还是创不出来可以执行的小程序来.
请大虾指导指导. |
|
|
o****e 发帖数: 4946 | 10 这里人多,求好心人指点一下
【 以下文字转载自 Programming 讨论区 】
发信人: ophone (欧陆风情), 信区: Programming
标 题: 菜鸟求助:怎么自动include header file?
发信站: BBS 未名空间站 (Tue Oct 26 23:30:14 2010, 美东)
本人是一个超级菜鸟,现泣血求助
俺有一堆code. 在top folder有若干sub dir,每个sub dir下面又有若干sub sub dir
每个folder里有一堆*.c和一个makefile
现在俺需要弄一个*.h文件定义一些变值(用#define),并且从某一及目录下(包括
所有subdir)的所有*.c都自动include这个头文件,就是说让这个头文件里的东东
成为global的。请问大拿俺该怎么办?//bow |
|
x*******a 发帖数: 11067 | 11 DC版的高人多多,俺问个技术问题。包子感谢!
【 以下文字转载自 Programming 讨论区 】
发信人: xinyuemba (小树), 信区: Programming
标 题: 一个batch file的问题
发信站: BBS 未名空间站 (Wed Aug 15 15:59:02 2012, 美东)
菜鸟诚惶诚恐地上来请教,花了一天琢磨一个BATCH FILE,就是为了LOOP THROUGH一堆
SUBDIRECTORY,打开每个SUBDIR下面的同一个TEXT文件,然后替换里头的一个参数。
总算是WORK了,但是很多是照葫芦画瓢。特别不明白的是两个
!!中间加一个VARIABLE的名字是啥意思。
特别不明白的是,为啥我不能直接让
%%a=123
echo %%a >>file
必须要让
fa=%%a
set fa=123
echo !fa! >>file
请高手解释一下,谢谢!
程序在下面写的很傻,轻拍。
@echo off
setlocal enabledelayedexpansion
FOR /D %%1 IN ("*") DO (
rem cd to all sub... 阅读全帖 |
|
e**n 发帖数: 478 | 12 simply input sperion.vuse.vanderbilt.edu
then enter the subdir. |
|
l******n 发帖数: 17 | 13 See the file "httpd.conf" of your system (if running apache)
check the directive named "UserDir"
if it's set to "abcd" then you just need to
create subdir "abcd" in your home dir... |
|
s**********i 发帖数: 711 | 14
does the php configuration allow uploading to outside of the
php directory? if not, you may need to create a subdir in
the same directory use as temporary folder. |
|
C********g 发帖数: 1548 | 15 1.chmod 755 subdir试一试
2. 你确定不是web browser(客户端)的问题?
3. 语法错误不好弄,不会报错,有人曾建议我用JavaBeans PHP,它可以检查类似)
missing这样的语法错误。但我没用过。 |
|
j***n 发帖数: 301 | 16 谢谢啊
1.chmod 755 subdir试一试
2. 你确定不是web browser(客户端)的问题?
3. 语法错误不好弄,不会报错,有人曾建议我用JavaBeans PHP,它可以检查类似)
missing这样的语法错误。但我没用过。 |
|
d******8 发帖数: 2191 | 17 hostgator的客服说网站好多redirect,造成server延迟好多。第一次看htaccess文件
,能给提供些修改建议吗?谢谢!
# RewriteEngine on
# RewriteCond %{HTTP_HOST} ^(www.)?nymovein.com$
# RewriteCond %{REQUEST_URI} !^/nymovein/
# RewriteCond %{REQUEST_FILENAME} !-f
# RewriteCond %{REQUEST_FILENAME} !-d
# RewriteRule ^(.*)$ /nymovein/$1
# RewriteCond %{HTTP_HOST} ^(www.)?nymovein.com$
# RewriteRule ^(/)?$ nymovein/index.php [L]
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
# Add trailing slash if path does not contain a period or end ... 阅读全帖 |
|
y****w 发帖数: 3747 | 18 subdir没必要。用不用level掌握90/10原则,问问会有多少更新,这个设计需不需要极
端照顾层次查询---而且,要想真正拿到level的好处,还得加上root。 |
|
S******n 发帖数: 617 | 19 实在抱歉,一大堆字符,没准还说不清楚,年初刚摸LINUX,头晕脑胀的。
当前目录是
/root/Bcom_LAN_10_30_Linux_Source_A00/NetXtreme/, 有四个文件:
README.TXT tg3-3.74b-1.src.rpm tg3_sup-3.74b.tar.gz tg3-3.74b.tar.gz
# tar -xvzf tg3-3.74b.tar.gz
产生了下一级目录: tg3-3.74b, 有这么几个文件:
ChangeLog LICENSE Makefile README.TXT tg3.4 tg3.c tg3.h
依着戴尔网站说明,下面应该:
Build the driver tg3.o as a loadable module for the running kernel.
# make clean
# make; make install
到这里make; make install就完蛋
make -C SUBDIRS=/root/Bcom/Bcom_LAN_10_30_Linux_Source_A00/NetXtre |
|
k**e 发帖数: 86 | 20 You can create a method referring to the below code, then
call this method recursively:
File currentDir = new File(String yourDir);
String[] subDirs = currentDir.list(new FilenameFilter(){
public boolean accept(File dir, String name)
{
// add your code here
/*
File tmpFile = new File(name);
return tmpFile.isDirectory();
*/
}
}); |
|
s**********g 发帖数: 29 | 21 我刚刚接到一个crack for my software.
但它是用java的,
×××××××××××××××××××××××××××××××××××××××
×
Unzip, unrar, and install. After installation, unzip CRACK.ZIP
and copy patcher.jar to /http/Dwwwprimierbiosoft.com/P80/DMIUpdater
/DM**/DM** (the very last subdir in this hierarchy). Run with
java -jar patcher.jar and enjoy!
×××××××××××××××××××××××××××××××××××××××
××××
希大牛帮助,讲具体一点!!
多谢!!!! |
|
a*******e 发帖数: 3021 | 22 I am pretty sure I used uid/gid for ext3 before.
The thing with option users is,
say i have a dir, /mnt/diskd, owned by user1,
in fstab, /dev/sdc1 /mnt/diskd, users,noauto,
actually all the files/dirs on /dev/sdc1 are owned by user1 too!
after user1 mount it, (i found now /mnt/diskd/ is owned by root~)
user1 can't create/modify/delete anything in root dir /mnt/diskd!
however, user1 can create/modify/delete anything in subdirs in /mnt/diskd!
isn't that weird? |
|
wy 发帖数: 14511 | 23 I guess he meant he cannot be in a subdir? But I suspect you can a |
|
B*V 发帖数: 3365 | 24 parent folder的makefile。am 里面写有子目录的内容阿
不知道你什么意思
一般工程师
/project/src/make.am
/project/anothercase/makefile.am
....... /makefile.am
/project/makefile。am里面
SUBDIR = src anothercase
然后再/build/里面make
就会把子目录的豆调用了 |
|
w*s 发帖数: 7227 | 25 This is the message when i run make
$ make
which gcc
/opt/arm-cross-tools/toolchain/arm/codesourcery-2009q1/work/arm-2009q1/arm-
none-linux-gnueabi/bin//gcc
echo "-------------------\n"
-------------------
echo -I /opt/arm-cross-tools/toolchain/arm/codesourcery-2009q1/work/arm-
2009q1/lib/gcc/arm-none-linux-gnueabi/4.3.3/include
-I /opt/arm-cross-tools/toolchain/arm/codesourcery-2009q1/work/arm-2009q1/
lib/gcc/arm-none-linux-gnueabi/4.3.3/include
echo "-------------------\n"
-------------------
... 阅读全帖 |
|
w*s 发帖数: 7227 | 26 BTW, the makefile looks like this,
all:
$(MAKE) -C $(LINUX_KERNEL_SOURCE) SUBDIRS=`pwd` M=`pwd` ARCH=arm modules;
if i just run this line directly from command line, it builds. |
|
o****e 发帖数: 4946 | 27 本人是一个超级菜鸟,现泣血求助
俺有一堆code. 在top folder有若干sub dir,每个sub dir下面又有若干sub sub dir
每个folder里有一堆*.c和一个makefile
现在俺需要弄一个*.h文件定义一些变值(用#define),并且从某一及目录下(包括
所有subdir)的所有*.c都自动include这个头文件,就是说让这个头文件里的东东
成为global的。请问大拿俺该怎么办?//bow |
|
x*******a 发帖数: 11067 | 28 菜鸟诚惶诚恐地上来请教,花了一天琢磨一个BATCH FILE,就是为了LOOP THROUGH一堆
SUBDIRECTORY,打开每个SUBDIR下面的同一个TEXT文件,然后替换里头的一个参数。
总算是WORK了,但是很多是照葫芦画瓢。特别不明白的是两个
!!中间加一个VARIABLE的名字是啥意思。
特别不明白的是,为啥我不能直接让
%%a=123
echo %%a >>file
必须要让
fa=%%a
set fa=123
echo !fa! >>file
请高手解释一下,谢谢!
程序在下面写的很傻,轻拍。
@echo off
setlocal enabledelayedexpansion
FOR /D %%1 IN ("*") DO (
rem cd to all sub directories
echo %%1
cd %%1
rename OUT.txt OUT.txt1
FOR /F "tokens=1,2,3,4,5,6,7 delims=" %%a IN (OUT.txt1) DO (
set fa=%%a
set fb=%%b
... 阅读全帖 |
|
c*****h 发帖数: 14923 | 29 谢谢。我BF的机器也遇到比我更厉害的情形。
我看了第二个link,里面说有个命令 rm -d "//C/Program Files/Subdir/COM1"
可是我BF找不到这个命令。我们用的是系统是XP,在哪里能找到呢?谢谢。 |
|
h****l 发帖数: 7290 | 30 New functions in Windows Commander 4.50:
- Multi-rename tool: Allows to rename multiple files in one step
(Hotkey: Ctrl+T)
- Batch rename function with Shift+F6 to quickly rename multiple
files one by one
- Rename files and subdirs inside a ZIP archive (Shift+F6)
- Parallel port transfer function (direct cable connection), works
between Win95/98/NT/2000/3.1 and DOS!
- FTP: Definition of custom host types, using a definition string
- FTP: Retry to connect multiple times also for non-anonymo |
|
|
l*l 发帖数: 225 | 32 使用飞行转换, If the server support it.
if you want get the directory name of KKK, so, just use command:
get KKK.tar
You will download KKK.tar , and untar it! |
|
c**t 发帖数: 2744 | 33 假定当前目录下有文件:file;子目录 subdir1 subdir2
我现在想 在subdir$i下生成名为file$(3*i+1) 的文件,这些
文件都是 file 的别名。
SHELL 中是如何完成这样的计算?假定用的是 Bash |
|
w*****n 发帖数: 94 | 34 for x in 1 2; do
let 'y=x*3+1'
cp file subdir"$x"/file"$y"
done |
|
r******f 发帖数: 413 | 35 run a wrong command "rm wang* subdir"
I mean mv but it's now removed......
fortunately, I have hard copy of these
files.
BUT:
After that operation, the compile
command "pgf77 -o x.exe filename.f"
does not work any longer...... So I am
afraid some other files have been
removed.
Wuwuwu........ I don't know how to fix
the 2nd problem. And now I need run
my programs urgently. DAXIA Please
Give me a hand.
Thanks a lot
|
|
f*****p 发帖数: 235 | 36 【 以下文字转载自 Hardware 讨论区 】
【 原文由 firstep 所发表 】
现有子目录subdir1, subdir2, subdir3, etc. 分别是不同时间的备份。
每个subdir*下都有个foo文件。希望对比这些foo文件的详细信息。
find . -name foo -print 只能列出文件名。怎么才能得到ls -l的效果? |
|
c***y 发帖数: 114 | 37 nod, only works for 1 dir now, i'll update it later to push all the subdir to
an array, then work through the array, b/c i only care the duplicates in
the same dir. |
|
t*****s 发帖数: 49 | 38 版本: microsoft outlook 2002
想问一下,有没有办法把所有帐号的收件箱都作为 subdir 放在 outlook today 的收件箱
下,
每次建立一个邮件帐户都会出现一个新的并列于 outlook today 的文件夹, 而outlook
today 的收件箱根本永不上, 我的手机好像是自动去sync这个outlook today收件箱的,
所以耶没法把文件传到手机立.
另外,设新帐号的时候, 是应该所有的发邮件服务器用internet service provider的,
手邮件的服务器根据具体的信箱设置吗?
多谢帮助了~~~~~//bow |
|