topics

全部话题 - 话题: syntax
1 2 3 4 5 末页 (共10页)
z****t
发帖数: 1090
1
标题是起着玩的,吸引眼球。 但还是头一次碰到问题网上找不到任何线索来解决了。

用了10.10几天没什么问题, 今天突然用软件中心或新立得安装删除软件时 突然有了
这个错误 dpkg: version
'uname -r' has bad syntax
取不到内核版本,导致后面的错误。 还以为是dpkg的问题,但试着重装过dpkg不行,
同样的错误; 试着从live
cd重装dpkg也是同样的错误。 现在怀疑是shell的问题, shell执行的时候'uname
-r' 没有当成命令执行。 但
不知道可以怎么解决, 换个shell吗 有没有问题。 ubuntu默认的shell是 /bin/bash
dpkg: version 'uname -r' has bad syntax: version string has embedded spaces
dpkg: version 'uname -r' has bad syntax: version string has embedded spaces
dpkg: version 'uname -r' has bad synt... 阅读全帖
s*******1
发帖数: 33
2
去面试被要求用纯C写程序,不能有C++ syntax,我写的代码如下:
//Assume ids[] is to get specific_id in aliasID
//num is used to fix the length of ids[]
//alias is used to get the aliasID array
//aliasNum is used to get the length of array alias
/*
successFind = ture means return ids[] with length of num
successFind = false means return ids[] is null
or the length of ids[] is aliasNum (num > aliasNum)
*/
int* GetSomeIDs(int num, aliasID* &alias, int &aliasNum, bool& successFind)
{
successFind = true;
... 阅读全帖
z****t
发帖数: 1090
3
下面是我刚刚在live cd下招待sudo apt-get upgrade时 的情况
前面有个Removing bootchart... 是因为这个错误第一次发生在我要删除bootchart时, 后来就一直有错 所
以bootchart实际上并没有删掉
...

Extracting templates from packages: 100%
Can not write log, openpty() failed (/dev/pts not mounted?)
(Reading database ... 210385 files and directories currently installed.)
Removing bootchart ...
dpkg: version 'uname -r' has bad syntax: version string has embedded spaces
dpkg: version 'uname -r' has bad syntax: v... 阅读全帖
z****t
发帖数: 1090
4
再执行了一下删除bootchart, 错误如下
$ sudo apt-get remove bootchart
[sudo] password for zebrat:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
bootchart
0 upgraded, 0 newly installed, 1 to remove and 42 not upgraded.
1 not fully installed or removed.
After this operation, 127kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 210385 files and directories currently installed.)
Removing bo... 阅读全帖
z****t
发帖数: 1090
5
贴个从一最开始的错误 也许这个installArchives有线索
installArchives() failed: Selecting previously deselected package ttf-ubuntu
-title.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database .... 阅读全帖
D******n
发帖数: 2836
6
来自主题: Statistics版 - VIM syntax highlight
the log syntax definition in sas.vim is minimal even if it works.
here is how to make log look nice.
1) create ~/.vim/syntax/log.vim
syn match sasNumber "-\=\<\d*\.\=[0-9_]\>"
syn match sasNote "\s*NOTE:.*" contains=sasNumber
syn match sasWarn "\s*WARNING:.*" contains=sasNumber
syn match sasError "\s*ERROR.*" contains=sasNumber
syn region sasEp start="^\s\+_$" end="^\s\+\d\+$" contains=sasNumber
hi sNote term=NONE cterm=bold ctermfg=Blue ctermbg=Black gui=bold guifg=Blue
guibg=black
hi sWarn ter... 阅读全帖
j***y
发帖数: 1640
7
来自主题: JobHunting版 - 第一回碰到电面要背syntax 的
先问怎么创建 一个简单的 database 的table;
我说: create table user (username varchar, 。。。。。);
她说这还不行,我说那就加个 primary Key, 她说这还不行, 你这样还没有创建
table. 要加一行: go;
然后问偶做过 input validation 没有。 我说做过 server side validation 用的
是 Hibernate的validation annotation. 她说要用 JavaScript 做, 要我告诉她 用
Javascript 做的syntax 是什么。我++! 用javascipt, syntax也是各种搞法都有啊,
又要我背细节;
最后问的进行不下去了,都是要背细节,而且都要按她的那套来搞。
最后丫说, 你不fit, 俺哈哈大笑,心里想这个搞法俺确实是不fit, 心服口服
w**2
发帖数: 724
8
来自主题: Programming版 - Hex byte string syntax in perl please (转载)
【 以下文字转载自 Linux 讨论区 】
发信人: wds2 (阿旺), 信区: Linux
标 题: Hex byte string syntax in perl please
发信站: BBS 未名空间站 (Thu Feb 26 18:21:00 2015, 美东)
so i have a ascii string: 11, 22, 33 ,
(ascii 22 is not readable),
what's the syntax in perl for this string pls,
$str = "0x112233" ?
thanks !
a*********n
发帖数: 1331
9
来自主题: Statistics版 - spss Syntax怎么用
刚上班,这里的人都用spss Syntax,而不是在spss里点击命令。
spss Syntax怎么用啊? 推荐个学习网站吧
b**********i
发帖数: 1059
10
来自主题: Statistics版 - spss Syntax怎么用
没看过书没法推荐,不是很必要,网上google一下基本的介绍,然后看看别人写的code
,对照一下syntax guide里的procedure,很快就熟了。 写syntax的话改动起来方便。
要不你做一大堆工作,中间一个环节要修改,靠菜单不得重新来过,累死你。
D******n
发帖数: 2836
11
来自主题: Statistics版 - VIM syntax highlight
Do you have your own sas.vim in ~/.vim/syntax/ already?
if yes thats easy.
if not also easy. But you need to copy the default one to ~/.vim/syntax and
edit it.
m*****i
发帖数: 2325
12
来自主题: JobHunting版 - 第一回碰到电面要背syntax 的
我前公司招到过两个烙印,电面都不错,来了一点都干不了活。 我们估计要么就是冒
名顶替的,要么是刷题刷出来的。
所以适当问点syntax 也不能怨她。

c**e
发帖数: 2558
13
once you get used to the time-saving features,
you'll hate to waste any time on repetitve tasks.
and syntax sugar also helps to improve readability.
l****u
发帖数: 2166
14
来自主题: Java版 - Tomcat JSP syntax error
If i have a syntax error on my jsp, let's say, not in the script, but some
html tag. i.e. forget to close a tag.
How can i configure tomcat to give me the error stack on the page source?
right now, it gives me blank page...
-Bow
y***d
发帖数: 2330
15
“dpkg: version 'uname -r' has bad syntax: version string has embedded
spaces"
这个之前 log 说啥,可能也有帮助。

sda1.
w**2
发帖数: 724
16
来自主题: Linux版 - Hex byte string syntax in perl please
so i have a ascii string: 11, 22, 33 ,
(ascii 22 is not readable),
what's the syntax in perl for this string pls,
$str = "0x112233" ?
thanks !
L*1
发帖数: 11537
17
来自主题: Linux版 - Hex byte string syntax in perl please
Don't know what you meant by syntax here.
try
$str = "0x112233";
print "str = $str\n";
$num = hex $str;
print "num = $num\n";
r*********r
发帖数: 3195
18
来自主题: Programming版 - boost::function 的 syntax 问题
boost::function f;
这句的template argument 的 syntax: bool (int) 看着很怪, 为什么是合法的呢?
这能表示一个 type 吗?
r*********r
发帖数: 3195
19
来自主题: Programming版 - boost::function 的 syntax 问题
看了. boost 的源码都在那儿. 不过没看出来trick 在哪儿.
有本书上说这是 legal c++, but not all compilers support it.
c++ 有这个 syntax 吗?
t*****r
发帖数: 142
20
来自主题: Programming版 - Python 缩进的syntax
有谁知道python为什么用缩进的syntax?我孤陋寡闻,只知道好像只有makefile用这种
方式,是明显的与众不同,不知道语言设计的时候是怎么考虑的,纯属标新领异,个人
偏好,还是别的什么原因?
k***g
发帖数: 7244
21
Word 的拼写检查功能很强大, Winedt 等软件虽然也能检查拼写,但是不能检查语法
错误,所以想问一下有没有能够在 Word 里标亮 LaTex 的 syntax 的插件,这样两不
耽误,等到需要 compile 的时候,在全文拷贝回 Winedt
t*****t
发帖数: 72
22
in unix, type:
setenv TERM xterm-color
and then in vim, type:
:syntax enable
d*****u
发帖数: 17243
23
来自主题: AnthroLing版 - phonology-syntax interface
I'm not really going to do pure formal phonological theory, but hopefully can
locate something more or less related to it.
As for computational linguistics, I guess I'm too lazy to be an expert in that
area; though a taste would be fine. Generally speaking, computational
linguistics has more to do with syntax and semantics.
Nowadays many people are doing neuroimaging stuff. I met Gandour today. He is
famous in studies of tone perception, with fMRI technology. It seems that this
is also an area w
d*****u
发帖数: 17243
24
来自主题: AnthroLing版 - phonology-syntax interface
It seems that U Maryland is very strong in cognitive lingusitics. They have
produced a lot of syntax faculty too.

another
d*****u
发帖数: 17243
25
来自主题: AnthroLing版 - phonology-syntax interface
At this point I feel I like both phonology and syntax. I don't know what to
do.
A professor suggests me try something between.

asked
all.
m********e
发帖数: 127
26
来自主题: AnthroLing版 - phonology-syntax interface
en.. phonology and syntax interface is fun

hopefully
in
He
that
no
especially
area?
m********e
发帖数: 127
27
来自主题: AnthroLing版 - phonology-syntax interface
i remember i ran into several books on phonology-syntax interface.
quite enlightening.
are u basically working on English or mandarin?

expert
computational
am
at
x***f
发帖数: 35
28
来自主题: AnthroLing版 - phonology-syntax interface
emmm....I think Feng shengli at Harvard is doing this kind of research now.
Something like Prosodic Syntax in Chinese...

really
j****e
发帖数: 245
29
来自主题: Psychology版 - Help: SPSS Syntax
I am looking for the SPSS syntax for NEO Five-Factor Inventory, and Experience
in Close Relationships (ECR) scale. I am wondering if any of you have them or
know
where I can find them. Thanks!
S***e
发帖数: 108
30
来自主题: Statistics版 - syntax errors
array monthsales {12}只是分配给array的名称,data step中没有对应的variable,
所以syntax error.
改成:
data work.totalsales (keep = mon1-mon12 );
set work.monthlysales (keep = year product sales);
array monthsales {12} mon1-mon12;
do i=1 to 12;
monthsales{i} = sales;
end;
run;
b**********i
发帖数: 1059
31
现在用SPSS16.02, 打印出来的syntax code每行都顶格从第一列打起来,原来为了程
序可读性用tab设的indentation都丢了。程序的结构不容易看清,有没有人知道哪儿可
以设置一下。记得原来用version15 的时候还是好好的。
b**********i
发帖数: 1059
32
9.0 syntax reference guide, 9.0 advanced model
s*********e
发帖数: 1051
33
来自主题: Statistics版 - any free editors supporting SAS syntax?
emacs + ess is the best. it is a fully functional front-end of sas.
1) syntax highlight
2) submit sas within emacs (M-x submit-sas)
3) display log and lst within emacs (M-x switch-to-sas-log-other-window and
M-x switch-to-sas-lst-other-window)
h******e
发帖数: 1791
34
来自主题: Statistics版 - any free editors supporting SAS syntax?
i can modify the syntax control file to let the editor do it in the way i
prefer.
l****i
发帖数: 398
35
来自主题: Statistics版 - 求牛人帮我写个SPSS的syntax
我要把下图情况里的两个变量TV01,TV02, recode成第3个变量TV,这个syntax该怎么写
啊?谢谢
f****7
发帖数: 398
36
来自主题: Statistics版 - spss Syntax怎么用
spss syntax 挺容易的,看看help文件。
下面的网站有很多例子。
http://pages.infinit.net/rlevesqu/SampleSyntax.htm
b**********i
发帖数: 1059
37
来自主题: Statistics版 - spss Syntax怎么用
人家用,你也得会用。照猫画虎吧,不懂查 syntax guide。老用菜单效率太低,
documentation也不方便。
n******e
发帖数: 476
38
来自主题: Statistics版 - VIM syntax highlight
Thanks! Now it works. There was some syntax error in the text I copied &
pasted yesterday. The log looks very pretty.
d**********o
发帖数: 1321
39
来自主题: WebRadio版 - 潜水员冒泡兼征版友意见
hw4:老师附件
/**** Limited to 5 seconds total run time and 5000 lines of output <
<
/**** * ================================================ * <
| Tests for CS445 Assignment 4 | <
| Comparison with Expected Output | <
/**** * ================================================ * <
<
/export/home/nibbler/TestWorld <
find makefile ... 阅读全帖
d**********o
发帖数: 1321
40
来自主题: WebRadio版 - 潜水员冒泡兼征版友意见
hw4:老师附件
/**** Limited to 5 seconds total run time and 5000 lines of output <
<
/**** * ================================================ * <
| Tests for CS445 Assignment 4 | <
| Comparison with Expected Output | <
/**** * ================================================ * <
<
/export/home/nibbler/TestWorld <
find makefile ... 阅读全帖
c***s
发帖数: 70028
41
64岁的谷望江,曾用名汪江,不过没有多少人记得。
唯一有据可查的,是刊登在1998年11月17日《人民日报》经济二版的文章:《赤子情深—记香港喜多来集团行政总裁汪江女士》。
江湖上曾经只有她的传说。尽管谷望江很低调,但在中国的资本市场,她仍是绝对的“大姐大”之一—2010鲁股亿万富豪榜上,谷望江年龄最大,身家最高。
谷望江成为焦点,源自新华社一篇简短的报道。4月10日,新华社报道称薄谷开来、张晓军涉嫌故意杀人犯罪,已经移送司法机关。而谷望江,正是谷开来的大姐。
谷家“五朵金花”由此浮出江湖—在五姐妹中,谷开来的三个姐姐个个叱咤商场,经营着价值达1.26亿美元的商业王国。
谷望江现为中国香港籍,大学学历,曾先后在武汉水运工程学院和北京财贸学院当过教师。后来进入商界,1991年开始在喜多来担任董事。目前,谷望江全资拥有注册在英属维尔京群岛的InfomaticResourcesLimited。
该公司全资拥有喜多来,而喜多来正是在深圳上市的东港安全印刷有限公司(002117.SZ,下简称“东港股份”,英文名为TungkongSecurityPrintingCo.)的第一大股东。据其官方网站显... 阅读全帖
d**********o
发帖数: 1321
42
来自主题: WebRadio版 - 潜水员冒泡兼征版友意见
最终版本的compiler测试结果
=================================================
Output of Building User Code
Explode the tar
c-.l
c-.y
scanType.h
makefile
symtab.h
symtab.cpp
emitCode.h
emitCode.cpp
20131214164956-huang-CS445-F13-A5.tar: POSIX tar archive (GNU)
Tests: directory
c-.l: lex description text
c-.y: lex description text
emitCode.cpp: ASCII C++ program text
emitCode.h: ... 阅读全帖
d**********o
发帖数: 1321
43
来自主题: WebRadio版 - 潜水员冒泡兼征版友意见
最终版本的compiler测试结果
=================================================
Output of Building User Code
Explode the tar
c-.l
c-.y
scanType.h
makefile
symtab.h
symtab.cpp
emitCode.h
emitCode.cpp
20131214164956-huang-CS445-F13-A5.tar: POSIX tar archive (GNU)
Tests: directory
c-.l: lex description text
c-.y: lex description text
emitCode.cpp: ASCII C++ program text
emitCode.h: ... 阅读全帖
j*****g
发帖数: 16
44
来自主题: Programming版 - int F::*x = &F::x是什么意思?
(From "Thinking in C++")
Pointers to members
A pointer is a variable that holds the address of some location. You can
change what a pointer selects at runtime, and the destination of the pointer
can be either data or a function. The C++ pointer-to-member follows this
same concept, except that what it selects is a location inside a class. The
dilemma here is that a pointer needs an address, but there is no “address”
inside a class; selecting a member of a class means offsetting into that
class. Y... 阅读全帖
D******n
发帖数: 2836
45
来自主题: Statistics版 - 新手问个问题 (转载)
create a .vim directory under you home directory(there is a dot before
vim)
and then create a syntax directory under it
and then create a sas.vim file under the syntax directory
==============sas.vim======================
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
syn case ignore
syn region sasString start=+"+ skip=+\\|\"+ end=+"+
syn region sasString start=+'+ skip=+\\|\"+ end=+'+
" Want region from 'cards;' to ';' to be captured (Bob Heckel)
sy... 阅读全帖
b***n
发帖数: 13455
46
来自主题: ebiz版 - 谁家里还有 Olevia TV?
Federal securities regulators this week announced fraud charges against five
former executives at the defunct Tempe television maker Syntax-Brillian
Corp., accusing them of faking big sales to pump up its profit figures and
sell more stock.
The fraud was so transparent that the shipping vessels indicated on the
bills of lading were not even in use or on different routes on the days they
purportedly were delivering Syntax televisions and parts, according to the
SEC.
Without admitting or denying g... 阅读全帖
G*******s
发帖数: 4956
47
Blinded By Tradition:
An Open Letter to Dave Hunt
Regarding His Newly Published Attack Upon the Reformation, What Love Is This
? Calvinism's Misrepresentation of God
James White
Updated 5/16/02, see bottom of file
Dear Dave,
In the period of time since I finally received my own copy of your book (you
may recall I scanned through it while standing at your table in St. Louis a
t the PFO Conference) I have gone through a number of different emotions. A
t first I was just going to do one Dividing ... 阅读全帖
v*****r
发帖数: 1119
48
来自主题: Database版 - tbl1.col1 = tbl2.col2 (+)
To do "full outer join" using old oracle outer join syntax, you will need a
UNION to union left and right outer join.
Oracle old +=, =+ syntax in most cases are more concise than ANSI syntax,
but ANSI full outer join syntax seems more concise than += UNION =+ old
syntax.
t*******r
发帖数: 22634
49
来自主题: Parenting版 - 什么时候给孩子引入方程概念
我发现你说的是对的。。。其实差距不是在是不是总结题型,差距
是在以牛掰的 logic/symbolic 的姿势总结,还是以傻叉的 intuition
的节奏死背。
其实 mathematics structure + mathematics logic,就是题型。
牛掰的地方是在于 logic/symbolic 的姿势。而死背题型就是那个啥。
俺昨晚想了想,具体到小学线性代数题,其实那根本不是一个特别的
类型,只是 mathematics structure + mathematics logic
的一个具体的 implementation。具体来说,题型大法是这么搞的:
1)根据 word problem 来 construct logic graph
2)把 logic graph 转换成 algebraic expressions
3)该 algebraic expression 就是一个 LR syntax tree
4)用各种 property 去 simplify 那个 LR syntax tree
具体而言,collapse 成 2-level tree,level 1 ... 阅读全帖
Y********6
发帖数: 28
50
【 以下文字转载自 Computation 讨论区 】
发信人: Yolanda886 (Yolanda886), 信区: Computation
标 题: 准备100个包子求大神帮下忙
发信站: BBS 未名空间站 (Tue Feb 26 10:02:58 2013, 美东)
马上去找人买100个包子,求哪位大神能赐教帮忙提点一下怎么写下面这个project,谢
谢啦
不好意思,学了几节课又不知道怎么入手了。。想了一周实在不知道怎么写出来,不知
道怎么一个个调取然后分析,感觉很多变量和变化情况,直接写code好像太复杂了
题目是
In reverse Polish notation the operators follow their operands;
To add 3 and 4, one would write "3 4 +" rather than "3 + 4".
If there are multiple operations, the operator is given immediately after
its second operand
The expressi... 阅读全帖
1 2 3 4 5 末页 (共10页)