由买买提看人间百态

topics

全部话题 - 话题: alias
1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
A*******e
发帖数: 2419
1
来自主题: Programming版 - 问个C++ type alias的问题
下面两种写法,定义Alias的位置语义上有区别吗?Alias都只是foo.cc里可见吧?
foo.cc
using Alias = namespace_x::Alias
namespace foo {
namespace {
// some code using Alias
} // namespace
// some other code using Alias
} // namespace foo
vs
foo.cc
namespace foo {
namespace {
using Alias = namespace_x::Alias
// some code using Alias
} // namespace
// some other code using Alias
} // namespace foo
Y***e
发帖数: 1030
2
在不同的资料里看到Alias和join 不同的写法,请教各位前辈是怎么回事。是在不同的
环境下的区别嘛?
1 Alias: 一种带as, 一种不带
SELECT column_name AS alias_column_name
FROM table_name As alias table_name;

SELECT column_name alias_column_name
FROM table_name alias table_name;
为什么我在各种教材里看到这两种写法?
2 join: 一种写join... on.., 一种就用where
SELECT column_name(s)
FROM table1
JOIN table2
ON table1.column_name=table2.column_name;

SELECT table1_column_name_1, table2_column_name_2
FROM table1, table2
where table1.column_name=table2.column_name;
而且下面只用where 这种写... 阅读全帖
a*****8
发帖数: 261
3
来自主题: Programming版 - 怎么实现这个alias (转载)
【 以下文字转载自 Linux 讨论区 】
发信人: apollo8 (apollo8), 信区: Linux
标 题: 怎么实现这个alias
发信站: BBS 未名空间站 (Tue Dec 3 21:10:56 2013, 美东)
hi
我现在需要写个alias under tcsh:
alias emac emacsclient
然后每次从terminal我输入:
linux>emac file1.txt &
就是用emac 打开文件file.txt 并且在背后运行(所有有个 &)
请问,有没有alias 的写法,能够把这个& sign 也加进去?谢谢
n****t
发帖数: 39
4
来自主题: Unix版 - A qucik Q about bash alias
Hi,
I try set an alias under bash, something like
alias del '/bin/mv \!* /tmp/ '
but under bash, the alias (alias del='/bin/mv $* /tmp/')
always complain that tmp foler cann't be overwritten.
I sewarched nline but in vain. Could anyone give me a pointer?
I would appreciate you may reply to my email account as well.
Thanks!
a*****8
发帖数: 261
5
来自主题: Linux版 - 怎么实现这个alias
hi
我现在需要写个alias under tcsh:
alias emac emacsclient
然后每次从terminal我输入:
linux>emac file1.txt &
就是用emac 打开文件file.txt 并且在背后运行(所有有个 &)
请问,有没有alias 的写法,能够把这个& sign 也加进去?谢谢
l*l
发帖数: 225
6
来自主题: Unix版 - A qucik Q about bash alias
It can't be access though alias.
alias give the var at the end of your alias, so
del test1 will be translate to :/bin/mv /tmp/ test1
Obviously you will get wrong message!
Solution is using function:
del() { /bin/mv $* /tmp }
add upper line in your .bashrc
Done
t*******l
发帖数: 421
7
I put my alias in .cshrc, and write it in my script.
alias read '/bbs/boards/family/display_posts <' ------------this works.
alias dead 'read last_post' ------------this doesn't work
both don't work in my script.
t*****e
发帖数: 13
8
来自主题: Windows版 - vista下如何关掉anti-alias
【 以下文字转载自 Hardware 讨论区 】
发信人: thinkme (thinkme), 信区: Hardware
标 题: vista下如何关掉anti-alias
发信站: BBS 未名空间站 (Sat Feb 24 08:48:23 2007), 转信
如果用windows classic主题,anti-alias自动会关掉,用vista主题则
自动打开,一直都不喜欢anti-alias字体,费眼睛,怎么样把他关掉呢?
w*******y
发帖数: 60932
9
Scott Alias Snow Goggle (No. 67, Semi Pro & Snow Blind)
Regular Price: $109.99
Sale Price: $29.99
Link:
http://www.alssports.com/Ski-and-Board-Goggles/Scott-Alias-Snow-Goggle-No-67-Semi-Pro-and-Snow-Blind/PAAAIAAIKEHBMJGI/3657-3699-3700/Product
Scott Alias Snow Goggle Features:
No Fog Anti-Fog Lens Treatment
100% UVA/UVB/UVC Radiation Protection
Air Control System (ACS)
Pivoting strap clip for an improved helmet fit
Hypoallergenic, colored 3-layer thermo face foam (white & black excl.)
Hypoalle... 阅读全帖
L******w
发帖数: 970
10
来自主题: Reunion版 - 有关DS-160: Alias
大使馆网站上的instruction说
When the application requests "Have you ever used other names?", we
request that applicants from the People's Republic of China should also
enter their Surname and "Given Name with a space separation between the
letters" as an alias.
我试着想按上面说的填在一行里,但是因为given name那行空着,不让我通过。各位碰
到这样的情况吗?非得填alias吗?
V**3
发帖数: 12756
11
这是我非常喜欢的一个小说
多谢了,望能继续转贴过来!
寄信人: deliver (自动发信系统)
标 题: 本站转帐通知单
发信站: BBS 未名空间站 (Tue Mar 22 19:14:12 2016)
来 源: mitbbs.com
V123,您好:
您转给 alias,现金(伪币):200,收取手续费:2
同时附加了如下留言给 alias.
多谢转贴!
r*****e
发帖数: 792
12
来自主题: Linux版 - 怎么实现这个alias
不知道你要的是不是这个
alias emc 'emacsclient -c !* &'
我用这个alias,这样我只用emc a.txt就可以了。
t*******l
发帖数: 421
13
for example,
alias t `cat /bbs/boards/family/6666
写个script把alias t放进去怎么不工作呢?
说没有这个命令。
r********s
发帖数: 179
14
[6:19pm] echo $SHELL
/bin/tcsh
[6:20pm] alias prsth 'echo "It Works"'
[6:20pm] cat > xixi.csh
#!/bin/csh
prsth
[6:21pm] chmod +x xixi.csh
[6:21pm] ./xixi.csh
prsth: Command not found.
[6:21pm] cat > xixi.csh
#!/bin/csh
alias prsth 'echo "It Works"'
prsth
[6:28pm] ./xixi.csh
It Works
**********
From the above test, we can see this might be the case touchsoul got stuck in.
i.e., even when you are using csh/tcsh, yo
r********s
发帖数: 179
15
可以在一个alias中引用另一个alias的,我就不贴测试过程了。。:p
所以你那个dead不工作是没有道理的。
你在script第一行加"#!/bin/csh"了马?"#!"告诉系统用紧跟的shell
来执行下面的命令。
h*****y
发帖数: 783
16
我在网上填了表,提交了以后bing就给我发了一个RESPONSE REQUESTED for Bing
cashback support request‏的邮件。我直接回复的那个邮件,附件里加上了我
的order confirmation,可是没过几分钟它就回我说:
Thank you for contacting cashback Customer Support. You have reached an
unmonitored alias. For assistance, please visit https://support.cashback.
discoverbing.com/default.aspx?mkt=en-us
这是怎么回事啊?
M*****y
发帖数: 262
17
我把 order confirmation 发过去后,bing立刻回信如下:
Thank you for contacting cashback Customer Support. You have reached an
unmonitored alias. For assistance, please visit https://support.cashback.
discoverbing.com/default.aspx?mkt=en-us
这是什么意思?我是照他们信里说的直接回复的,不应该这样吗?
谢谢~~
m*******j
发帖数: 40
18
unmonitored alias不是这个意思吧。。。
M*****y
发帖数: 262
19
google:
在邮件服务器中,给邮件地址冠以其他名称的功能称为alias。能够设定为一个邮箱由
复数的地址共用,向其中的任何一个地址发送邮件都会到达同一个人的手中。
我觉得这应该是遇上了bing邮箱的技术问题吧……
s****y
发帖数: 581
20
来自主题: EB23版 - 赞alias"百撕不得骑姐"
Hi, Poise,
give Alias a baozi please due to "百撕不得骑姐" .
h*******t
发帖数: 214
21
来自主题: EB23版 - TSC ALIA的streamline有用吗?
2008年年底出的,只要你的律师是ALIA的会员,就可以帮着streamline?还是骗人的?
http://www.lawlogix.com/blog/are-your-i-140-petitions-and-eb-i-
能否讨论一下。
B********n
发帖数: 12753
22
印度人说ALIA不支持140 mobility,因为大家拿到ead和ap后就不续签h1b了,这样律师
就赚不到钱了。
版上快去给他们洗洗脑,要向我们学习,哪怕有ead和ap也应该坚决不用,继续找律师
申请续签h1b。。。
a*o
发帖数: 25262
23
来自主题: NewYork版 - 新注册了ALIAS
不问了,问了啥叫 Alias 会被认为很无知的。
g*******a
发帖数: 31586
24
来自主题: NewYork版 - 新注册了ALIAS
什么是alias ?
p**r
发帖数: 109
25
来自主题: CouchPotato版 - 'Alias' Star to Get a Sister
Fri Mar 26, 3:44 AM ET Add Entertainment - Reuters to My Yahoo!
LOS ANGELES (Hollywood Reporter) - Mia Maestro is set to join the cast of
ABC's "Alias," playing the sister of Jennifer Garner (news)'s character.
She will appear in the last three episodes of the spy drama this season and is
expected to return as a regular next season, the show's fourth. Her credits
include the features "The Motorcycle Diaries" and "Frida" and HBO's "For Love
or Country: The Arturo Sandoval Story."
In pilot castin
p**r
发帖数: 109
26
来自主题: CouchPotato版 - Alias -- Felicity
现在Alias里面来自Felicity的人是越来越多了,Jennifer
Garner就不说了,还有Marshall
跟他老婆,CIA那个胖子,不知道以后还会有谁。Felicity里面那个唱歌的女孩子长得挺
不错,跟Jennifer Garner又象,因该让她演这个妹妹的。什么时候让Kerry Russel 来演
个大反派就有意思了
O***T
发帖数: 124
27
1 Alias: 一种带as, 一种不带
我平时写都不带as,就是为了省事,带as可能就是看着比较清楚,其实没有任何区别
2 join: 一种写join... on.., 一种就用where
用join可以明确是left join, right join。where就不可以了
我个人偏好用Join,这样有时候5,6个table join的时候,看的特别清楚。
x******a
发帖数: 6336
28
来自主题: Linux版 - 请教关于alias
thank you joa,
can i do, for example
alias q++ i.cpp='for i in *.cpp; do
g++ -I/opt/local/include $i -o ${i%.cpp} -L/opt/local/lib -lQuantLib
done'
a*****8
发帖数: 261
29
来自主题: Linux版 - 怎么实现这个alias
我用的tcsh
文件名这个参数好像无法传进去。
alias emac 'emacsclient !* &'
你这个!* 在我的系统里变成了上一个命令的参数。不知为啥?
你知道吗?
先谢谢
b***e
发帖数: 1419
30
来自主题: Programming版 - 怎么实现这个alias (转载)
I wrote a shell script and alias that in .rc file.
b***e
发帖数: 1419
31
来自主题: Programming版 - 怎么实现这个alias (转载)
Something like:
#!/bin/bash
emacs $1 &
Save that in a file and make an alias or path in your .bashrc (or .tcshrc).
BTW, 阿sir, 我不写shell script已经很久了。You really need to google it out
of the correct shell script syntax.
o***z
发帖数: 133
32

t后面的最好用''括起来
try this in your tc壳:
echo "alias t 'cat /bbs/boards/family/6666'" > ttt
source ./ttt
t
r********s
发帖数: 179
33
Let's do a test in explicit shell definition.
[12:04am] tail -n 1 ~/.cshrc
alias prsth 'echo "It Works"'
[12:04am] cat xixi.csh
#!/bin/csh
prsth
[12:04am] ./xixi.csh
It Works
[12:04am] cat xixi.sh
#!/bin/sh
prsth
[12:04am] ./xixi.sh
./xixi.sh: prsth: not found
Isn't it clear now?
D**e
发帖数: 10169
34
i told him sh doesn't have alias.
t*******l
发帖数: 421
35
告诉了.而且第一个alias在script里不工作.说找不到这个命令.
我拭了一千遍了都不工作.气也快气死了!
究竟怎么回事啊!
c*****e
发帖数: 32
36
alias 只能在当前 shell 工作。而你的script运行在子 shell 里。所以不工作

work
in.
.cshrc
D**e
发帖数: 10169
37
use csh or tcsh. alias won't work in sh.
D**e
发帖数: 10169
38
你得拿定主意到底用什么壳。别一会C壳一会SH壳的。
the first line of your script specifies the shell which will be used by this
script.
#!/bin/sh
#!/bin/csh
#!/bin/tcsh
change the first line of your script to csh or tcsh. alias will work but other
things may
start crashing.
D**e
发帖数: 10169
39
it must work.
try this(that is single qoute, not back-qoute):
#!/bin/tcsh
alias t 'ls -1'
t;

this
other
t*******l
发帖数: 421
40
no kidding.
any alias works well when no in my script.
I logout and log back in, still doesn't work.
sorry for this tough problem :)))
t*******l
发帖数: 421
41
来自主题: Unix版 - what is wrong with my alias?
alias view " grep 'user name' */*/* |awk '{print $1,$3,$4}' > test "
thanks.
r********s
发帖数: 179
42
来自主题: Unix版 - what is wrong with my alias?
that's not the point. $n (n=1-9) means positional parameters to shell,
whereas it is used as a symbol of fields in awk.
you will see those fields disappearing by "alias view".
e****r
发帖数: 166
e****r
发帖数: 166
44
来自主题: _Graphics版 - alias 3december
although the future of maya is unknown,at least we can still have fun right now.
mainly for industry, but free alchohol:O), check out your local schedule
online.
anybody in LA aera? wanna a free lunch and tour in Dreamworks Animation? just
drop me a mail
http://www.alias.com/eng/about/events/3december/index.shtml
r*****y
发帖数: 507
45
来自主题: _Graphics版 - alias 3december
registration done. Hope to see you at that time.
btw, Are you working for Alias?

right now.
just
c*******u
发帖数: 12899
46
☆─────────────────────────────────────☆
newage123 (newage123) 于 (Wed Dec 21 21:12:51 2011, 美东) 提到:
如果在财产分隔和子女归属上意见不同的话?
现在刚开始讨论,娃爸表示要娃。我觉得如果我没有重大失误的话一般是娃跟妈妈吧?
☆─────────────────────────────────────☆
kongvita (巴西木木) 于 (Wed Dec 21 21:19:48 2011, 美东) 提到:
你要离婚??
☆─────────────────────────────────────☆
newage123 (newage123) 于 (Wed Dec 21 21:25:05 2011, 美东) 提到:
刚开始讨论,希望某人不会反悔。
以前想的是有啥不爽都为了娃忍了,熬到她18岁了还受不了再离,
现在娃爸貌似也想通了。但是他说他找他自己的律师,让我自己找自己的律师。我以为
一个律师就搞定了呢。

☆────────────────────────────... 阅读全帖
u***************r
发帖数: 11227
47
来自主题: Headline版 - unidentified_title
发信人: inews(inews), 信区: Headline
标题: 女子疯狂迷恋丰唇,在嘴唇注射填充物,变“腊肠嘴”
发信站: BBS未名空间站(Fri Oct 13 08:34:19 2017,GMT)
许多人整容是为了让自己变得更加漂亮。来自英国利物浦的30岁女子Alia Byrne却偏偏通过整容让自己变成“香肠嘴”,许多人认为Alia Byrne的嘴唇又厚又丑,但是她却认为自己的嘴唇非常性感。
Alia Byrne是一个2岁孩子的妈妈,生完孩子后,Alia Byrne认为自己苍老了许多,为了让自己变得与众不同,在她29岁生日的时候,选择给自己做一次整容手术来作为生日礼物。
Alia Byrne到医院注射了6.5ml的填充物,注射完以后,她的嘴唇变得又大又厚,整个手术花费了2300欧元(约1.8万元人民币)。
做完丰唇手术后不久,Alia Byrne觉得自己的嘴唇还不够大,在上个月,Alia Byrne又到医院注射了填充物,她的嘴巴变得越来越大了。
看到Alia Byrne整容上瘾,她的母亲多次劝说她停止整容,母亲认为Alia Byrne的嘴唇已经很大了,但Alia Byrne... 阅读全帖
s*******1
发帖数: 33
48
去面试被要求用纯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;
... 阅读全帖
a****a
发帖数: 5763
49
http://bbs.weiphone.com/read-htm-tid-501021.html
Mac OS X 10.6即所谓的Snow Leopard操作系统已正式发售。一如既往,Apple
产品光鲜的外表下凝聚了太多艰辛的劳作。ArsTechnic的John Siracusa以其独特的、
专业的、全面的视角深入翔实地体验这款最新的操作系统。
Weiphone.com将对该综述进行翻译整理并独家连载。欢迎关注。
在文件系统方面,Mac OS X历史性地提供了多种应用程序内调用文件的方式。
操作系统为传统的路径模式(例如,/Users/john/Documents/myfile)提供最底层支持。
这种方式具有简单明了的特点,但是如果作为应用程序追踪文件的唯一方式显然不是很
合适。设想一下,如果一个应用程序打开了一个文件,然后用户在编辑这个文件的时候
将其移动到了其他地方,当该程序试图保存该文件时,源文件并不在原始路径,因此程
序会在原始位置上重新创建一个新的文件——显然这不是用户期望的。
经典的Mac OS内部拥有一... 阅读全帖
1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)