由买买提看人间百态

topics

全部话题 - 话题: user2
1 (共1页)
t***n
发帖数: 546
1
鉴于有人要求详细配置,现在把几个配置文件贴出来,欢迎大牛们指正
gtalk.conf***********************
[general]
context=google-in ; Context to dump call into
allowguest=yes
[guest] ; special account for options on guest account
disallow=all
allow=ulaw
context=google-in
[dummy-gtalk]
username=d***[email protected]
disallow=all
allow=ulaw
context=google-in
connection=dummy
[user3-gtalk]
username=u***[email protected]
disallow=all
allow=ulaw
context=google-in
connection=user3
[user1-gtalk]
username=u***[email protected]
disallow=all
... 阅读全帖
g******r
发帖数: 55
2
Dear experts:
I'm considering a scenario where two users communicate with a base station.
I've several questions:
1) When user1 is sending data to the base station, can I modify the users
and allow user2 to overhear user1's transmission? (For example, let user2
know user1's sub-carriers).
2) If user2 can be modified to overhear user1, what's the bit error on the
base station and user2 respectively? For example, if I assume the channels
of user1-basestation and user1-user2 are LOS (line of sight)
p******g
发帖数: 347
3
来自主题: Linux版 - rsa public key
This is really driving me crazy.
I am trying rsa public key to login to difference users in a remote RHEL6
box.
I created the rsa key in my local ubuntu box. I use ssh-copy-id to copy the
pub key to different users on the remove servers.
The pub key works for user1, but not for user2. On REHL6 box I copied the /home/user1/.
ssh/authorized_keys to /home/user2/.ssh/authorized_keys, then my local pc's
rsa key works for user2@RHEL6.
But the two authorized_keys are identical.
Here's it:
-bash-4.1$ ls... 阅读全帖
g*****g
发帖数: 34805
4
最简单的方法是不要做任何底层的序列化反序列化。
而是在server和每个client上起一个RMI Server,
直接远程调方法就得。
比如user1跟user2聊天,user1吊server的
chat(user2, msg)
server收到后,直接在user2的RMI上调用chat(msg)
user2显示即可。
画图啥的,调另一个方法名就是。
如果你非要用raw socket,简单的你就对没一种操作定义一个
可序列化的对象。比如Chat和Draw,然后在接收端
Object o = is.readObject();
if(o instanceof Chat) {
Chat data = (Chat)o;
chat(data.from, data.to, data.message);
} else if(o instanceof Draw) {
//deserialize Draw and call draw function
}
如果你做的是真实项目,而用户不在局域网内。RMI因为
firewall的原因,在client端起是不可行的。你做的
h**0
发帖数: 37
5
1. 理论上user2是能偷听到user1的transmission(uplink上的信息),
这是因为BS事先将ul_map广播给全部SS, 所以,user2完全有能力知道user1在
uplink的什么时隙和用什么调整方式, 所以,user2完全能解调出user1发个BS的信息。
实际现实中, 没有哪个商用芯片会这么干,因为不符合规范,而且MAC处理程序会多
出一块,何必呢。 大概只有为开发调试才会这么干 。
2. 按你的假设,user1的信号到达BS和user2所在位置,信号质量是一样的。
一般情况下,BS的BER会小点。
可能的原因: BS的天线更好(这个是主要因素); BS的芯片更好的
p******g
发帖数: 347
6
来自主题: Linux版 - rsa public key
no. i moved the original user2's authorized_keys to authorized_keys.not
before i copied the one from user1 over.
if i copy authorized_keys.not authorized_keys for user2, public key login
will fail again even though the two files are identical and have the same
ownership and access mode...
this is really weird...
k*****u
发帖数: 1688
7
输入的data是这样的:
user1 user2 user3
book1 1 3 5
book2 3 1
book3 2 4
book4 3 1 5
book5 1 2 4
希望得到的数据是这样的:
{user1: {book1:1, book2:3, book3:2, book4:3, book5:1}, user2:{book1:3, book3
:4, book4:1, book5:2}, user3:{book1:5, book2:1, book4:5, book5:4}}
谢谢
另外,一般用python的话,平时数据都是什么格式的?好像dict的最多。习惯了array
格式的的data,一下子到python这儿变成dict有些不习惯。
C***y
发帖数: 2546
8
来自主题: Programming版 - Fair allocation的简单实现
请教一下版上大牛一个实战问题
要实现一个有fair allocation功能的request queue,简单的说就是希望把有限的资源
尽量公平的分配给每个user的request
比放说user1有200个request,user2有1个request,希望不要出现user2的request要等
很长时间才能被处理的情况
请问有什么简单的数据结构可以做到这个,只要能近似就可以了
d******a
发帖数: 32122
9
来自主题: Security版 - 以德裸奔 zz
如果大家使用的是windows2k 或xp那么教大家一招金蝉脱窍 —— 而且只需要这一招克
就能死所有病毒!!
如果你是新装的系统(或者是你能确认你的系统当前是无毒的),那就再好不过了,现
在就立即就打开: “开始→程序→管理工具→计算机管理→本地用户和组→用户” 吧

首先就是把超级管理员密码更改成十位数以上,然后再建立一个用户,把它 的密码也
设置成十位以上并且提升为超级管理员。这样做的目的是为了双保 险:如果你忘记了
其中一个密码,还有使用另一个超管密码登陆来挽回的余 地,免得你被拒绝于系统之
外;再者就是网上的 黑客无法再通过猜测你系统 超管密码的方式远程获得你系统的控
制权而进行破坏。接着再添加两个用户 ,比如用户名分别为:user1、user2;并且指
定他们属于user组,好了,准 备工作到这里就全部完成了,以后你除了必要的维护计
算机外就不要使用超 级管 理员和user2登陆了。只使用user1登陆就可以了。
登陆之后上网的时候找到ie,并为它建立一个快捷方式到桌面上,右键单击 快捷方式
,选择“以其他用户方式运行”点确定!要上网的时候就点这个快 捷方式,它会跟你
p******f
发帖数: 162
10

let's say file1 & file2 are in directory ~user0/secret,
and if ~user0, ~user1 & ~user2 are in a single filesystem
you may try this:
user0$ chmod 711 ~ ~/secret
user0$ chmod 644 ~/secret/{file1,file2}
user1$ mkdir ~/secret
user1$ chmod 700 ~/secret
user1$ ln ~user0/secret/{file1,file2} ~/secret
same thing for user2
user0$ chmod 700 ~ (optional)
user0$ chmod 700 ~/secret
user0$ chmod 666 ~/secret/{file1,file2}
t***n
发帖数: 546
11
最近折腾神由上的astersik不少时间,总算让多google voice帐号和SipGate能正常运
行。分享一下自己
的心得,欢迎大牛们拍砖。
多google voice主要用于打出,打入的话就都forward到一个SipGate号码就行了。好处:
1. 多个人用同一个电话时,可以在电话号码上加前缀决定从谁的google voice走。也
决定了对方的来电

示显示的是谁的电话。
2. 当某人有自己的专属电话时,可以默认所有电话都从他自己的google voice走。
假定有一下3个GV 帐号:
d***[email protected] 默认打出打入号码,相当于一个landline。 只forward到google
chat
u***[email protected], u***[email protected] 两个人的常用google voice号码
1. 先配置gtalk.conf和jabber.conf,把3个帐号都连上。参考
http://www.mitbbs.com/clubarticle_t1/voip/31214573_0_1.html
2. 配置sip.conf, 注意公共电话的context=... 阅读全帖
T****i
发帖数: 15191
12
你说的也不是终极利刃,这个才是:http://www.rmloho.com/user2/14264/upload/20071223240.jpg
n*********n
发帖数: 1534
13
【 以下文字转载自 Military 讨论区 】
发信人: pmz (pp), 信区: Military
标 题: [转载]中国280亿美元---克拉克地峡运河的较量
发信站: BBS 未名空间站 (Tue May 26 12:57:33 2009)
在网上看到一篇06年的强文。
问题在于 1 海军不行, 2 泰国的政局太乱。
不能保证泰国政局稳定就等于白投进去280亿,说不定到时候人家新政府还会请美军
驻守,到时候和马六甲一个样。
泰国民族问题很让人头疼,就在4年前克拉地峡伊斯兰还闹过政变。
http://blog.phoenixtv.com/user2/wangyuhai/archives
本文摘要:本文主要围绕克拉克地峡运河方案的实施时机进行展开论述。对于中国崛起
过程中的海洋石油运输航道安全以及中美太平洋地区的竞争都有一定篇幅的描述。通过
相关内容的阐述,意在宏观上勾画一个比较完整的阶段性关键结点较量,从而让读者更
为全面地了解克拉克运河的开凿以及海洋问题对于中国复兴的重要性。
一、中国的安全形势不容乐观,加强军事力量建设刻不容缓
风起云涌的年代,一部分中国人已经深刻地认识到
r******n
发帖数: 170
14
来自主题: JobHunting版 - 问个google面试题
我随便说说,看是否有大牛出来吧
1. format存成file或者db table,存的内容基本就是user id(unique)的friend关系,
比如file每行 1 2就表示user1和user2是friend
2.file存在io问题,interface上得自己重新建立datastructure来提供常见的function
,同时这也是优势,更灵活,有完全控制权;可以像读triangle mesh一样读进来,然后
建立mesh;db通常有先有工具,只需考虑table schema的设计,有index等手段优化
search等功能;db易于数据同步,备份,建立db cluster, load balance等常见手段
3. 两个数组按照user id升序排列,找相同id,O(m+n)遍历,可以找完
4. tableName:Connection, 两个column friendStart, friendEnd,都用来存放userId,
两个column都是index
select distinct friend from (
select friendEnd from Conn... 阅读全帖
z********i
发帖数: 568
15
来自主题: JobHunting版 - Amazon电面题目
第一次:
1)如何设计系统去处理很多的user requests。
2)implement LRU(least recently used) cache.
第二次:
1)1-100的整数,有一个数出现两次,其余的数出现一次。找到出现两次的那个数。
2)找到输入数组中所有的pair which sum up to a given value。要求考虑数重复
出现的情况。现在发现自己的程序有bug。
3)hashset vs. hashtable. 不熟悉,就回答了对hash的理解。
4) 从一个文件中找到给定的用户使用的API。文件格式如下:
user1 API1
user2 API3
user1 API2
总体感觉不难。对interviewers感觉比较舒服。希望能拿到onsite。
h****n
发帖数: 1093
16
来自主题: JobHunting版 - Amazon电面题目
4) 从一个文件中找到给定的用户使用的API。文件格式如下:
user1 API1
user2 API3
user1 API2
这个题要问清楚这个操作是一次调用还是多次调用吧。
一次调用的话,就遍历一下
要是多次调用的话,预处理做个hash表效率会高很多
p*u
发帖数: 136
17
来自主题: JobHunting版 - fb电面面经
给一堆用户的登陆日志,要求输出各时间段内的在线用户数。
例子:
user1:
login_time: 0
logout_time: 1
user2:
login_time: 0
logout_time: 2
user3:
login_time: 1
logout_time: 3
输出:
[0 - 2): 2
[2 - 3): 1
[3 - infinite): 0
0 - 1不用输出,因为时间点0有2个在线用户,时间点1也有2个在线用户,在线用户数
没有变,所以不用输出。在时间点2在线用户数变为1,所以输出0 - 2: 2
完成函数:
struct Log
{
float login_time;
float logout_time;
};
void online_user(vector &logs);
=====
刚开始是一些behavior question,后来就问了这一个题,算法2分钟就沟通好了,可是
后来代码写得很乱,到最后都还有bug
华人面试官,感觉人挺好的。可惜自己脑抽了,一紧张就出错,一出错更紧张,最后就
搞不定了
最后他建议在面fb之前,先找其他公司... 阅读全帖
a**d
发帖数: 85
18
来自主题: JobHunting版 - g电面
肯定跪了。
interface RateLimit {
/** Sets the rate, from 1 to 1000000 queries per second */
void setQPS(int qps);
/** accept or reject a request, called when request is received */
boolean allowThisRequest();
}
brief example:
server instantiates your object, calls setQPS(1)
at at time t, user1 makes a request, allowThisRequest() returns true
at time t+0.01 sec, user2 makes a request, allowThisRequest() returns false
at at time t+1, user4 makes a request, allowThisRequest() returns tru... 阅读全帖
f******h
发帖数: 45
19
也找工作了一段时间了,从版上学了很多,上周G家面完了,求个bless。
之前的一些都挂了,还在继续找其他的。等定下来之后一定发面经回报本版。
谢谢大家啦!!
1. http://www.mitbbs.com/article_t/JobHunting/32005597.html
1) Implement a simple calculator (+,-,*,/);
2) Implement "+1" for a large integer;
3) How to match Ads to users;
4) How to extract useful information from a forum webpage (list all
kinds of useful signal you can think of)
5) How to detect the duplicate HTML pages (large scale);
6) Find all the paths between two places on Google map;
7)... 阅读全帖
a**d
发帖数: 85
20
来自主题: JobHunting版 - 问一道g的题
之前面的一个题,现在又重新看了一下。之前有大神说用network的leaky bucket.试着
写了一个简单的,这样合理吗?
interface RateLimit {
/** Sets the rate, from 1 to 1000000 queries per second */
void setQPS(int qps);
/** accept or reject a request, called when request is received */
boolean allowThisRequest();
}
brief example:
server instantiates your object, calls setQPS(1)
at at time t, user1 makes a request, allowThisRequest() returns true
at time t+0.01 sec, user2 makes a request, allowThisRequest() returns false
at at time ... 阅读全帖
j****i
发帖数: 496
21
Bless~~
That posiion is too hard to do surgery. If it's completely blocked, the
prognosis can't be optimistic. Family need to be prepared...
Even in US, there's no better way to treat esophageal cancer. There are some
alternative options that are available at some hospitals in China for those
who are not surgery candidates. Check out http://www.mtzyy.com.cn/dxbl/zlwczlzx.shtml. I've talked to Dr. 王洪武 personally for my dad http://www.fh21.com.cn/zjia/user2/zjia1.php?id=55. He is a very good
a**e
发帖数: 5794
22
来自主题: StartUp版 - web design and hosting
果然如此,多谢!
之前被premier edition的说明给骗了。
Google Apps Premier Edition is $50 USD per user account per year.
One user account is considered to be one email inbox. It is not $50 per doma
in. For example, two email inboxes (u***[email protected], u***[email protected]) wo
uld cost 2 x $50 = $100 per year. User aliases and domain aliases are not ch
arged as additional user accounts.
d********h
发帖数: 2048
d******0
发帖数: 22800
24
来自主题: Running版 - 老了
贴一个如何选stick的
https://www.thestick.com/cgi-bin/commerce.cgi?display=user2
我又心动了。。
z*c
发帖数: 4700
25
你自己改了就变了,就成了User1, User2。。。
它原来的默认值里每个数值都不一样。
h*****k
发帖数: 5022
26
来自主题: TrustInJesus版 - 分享一首我最喜欢的诗歌
这里有很多, 不过网站停慢的
http://shige.7blog.net/user2/yisa/archives/2009/1013197.shtml
我机器上还有不少下载了的新歌颂咏, 和大本诗歌的mp3, wma文件
我可以慢慢上传给大家分享
阿门
h*****k
发帖数: 5022
27
来自主题: TrustInJesus版 - 分享一首我最喜欢的诗歌
试试这个
http://lucyandparasol.shineblog.com/user2/yisa/archives/2009/1013197.shtml
你要是喜欢这首的话, 我可以email给你
h****1
发帖数: 1242
28
http://www.fjbk.cn/user2/1465/show.asp?/_articleid/179764.html
取经僧用一颗绿豆破了卢台长的邪法
----【此法对付卢台长之流百发百中】
取经僧/文
原文出处:http://blog.sina.com.cn/s/blog_4a533d0f0100r1b8.html
如果卢台长真的能跟观世音菩萨通灵,不妨请卢台长的粉丝试试以下几招:
1,第一招:请观世音菩萨说出第二天涨停的几个股票!
2,第二招:请观世音菩萨传授42手眼,背诵整部《法华经》,背诵整部《楞严经》!
【也可以让观世音菩萨用梵语,藏语,巴利语背诵整部大藏经】!
3,第三招:随便抓一把黄豆(或者绿豆),请观世音菩萨说出一共几颗!
如果以上有一条做不到,卢台长见到的就不是观世音菩萨,也许是个蛇精狐仙之类的东
西!也许卢台长根本没有见到观世音菩萨,卢台长是在欺骗你们!
取经僧的佛学恩师之一清定法师在《心经开示》中说:
“ 释迦牟尼佛在祗园精舍讲经说法时,有一个初信佛法的在家弟子,虽是有一点
相信但还没有... 阅读全帖
R*****r
发帖数: 8
29
Is there any way that I can show different weather forecast for differnet
user?
For example, user1 wants to see Los Angeles's and user2 wants to see New
York's.

天气
s****d
发帖数: 13
30
来自主题: Database版 - Urgent help!!!
Use the imp/exp
If u dont mind also copy other objects :
exp .. owner=user1 ...
imp .. fromuser=user1 touser=user2 ..
If u want tables only:
exp .. tables=t1,t2,.. ..
imp .. tables=t1,t2,... ..
good luck

to
z******4
发帖数: 4716
31
来自主题: Database版 - 新手如何快速学习数据库
数据库结构
加入同学们,上面都熟悉了,简单SQL会写了,那么下面要稍微深入数据库学习了,这
段,我们来学习数据库结构,记住,同学们都要熟悉背住这些名词,面试必备啊,不会
的话,肯定完蛋
前面,我们用Excel创建了一个简单初级数据库,哪实际的数据库哪,当然不会那么简单
我们来看这个图
一步步来,先看最底下一层
Data files
好了,我前面指出一个excel文件就像一个tablespace,什么是tablespace哪,就是这
些表都在这个tablespace里面
哪我又十几个excel文件,是不是会有十几个tablespace,是的,一般一个tablespace
会建在一个datafile里面
,哪一般oracle数据库在创建时会有几个data file哪
system
user
temp
redo
好了,你发现,你的头脑开始糊涂了吧,这些datafile 妈的和excel到底有什么关系
举例,user data file 里面可以创建user1 tablespace,user2 tablespace,每个
tablespace就相当于一个excel文件
简化的意思,这些data... 阅读全帖
s********e
发帖数: 893
32
来自主题: Database版 - 来做sql题目。
你给的结果不对。user2应该还是两条。
p***n
发帖数: 635
33
来自主题: DotNet版 - 一个简单的REMOTE DESKTOP
http://groups.yahoo.com/group/mitbbs_dot_NET/files/10%20Patterns/RemoteDesktop/
运行步骤:
1) 运行RDAServerLoader, 鼠标点Start键
2) 在操作系统目录的System32目录下创建一文件
Users.txt
譬如: Windows 2000 下放到 Winnt\system32
在Users.txt 里设两个用户:
user1:password1
user2:password2
3) 运行客户程序:RDAClient.exe, 在对话框里设服务器IP,端口
连接.
4) 用2)里设的用户名,密码登录.
呵呵,如果服务器和客户在同一个机器上,比较搞笑, 是个八葛.
r*********2
发帖数: 108
34
感谢您的回复!
看了你的回复现在纠结于两个型号不知道选择哪个好,我感觉区别就是Eizo是LED
backlight, 而NEC 是CCFL Backlight。 价格NEC比EIZO贵47刀。下面列出参数,
请你在给些建议,十分感谢!。
Eizo - FlexScan 24" LCD Monitor $477.49
Model: EV2436W
Panel
Type IPS
Backlight LED
Size 24.1" / 61 cm (611 mm diagonal)
Native Resolution 1920 x 1200 (16:10 aspect ratio)
Viewable Image Size (H x V) 518.4 x 324.0 mm
Pixel Pitch 0.270 x 0.270 mm
Display Colors 16.77 million
Viewing Angles (H / V, typical) 178°, 178°
Brightness (typical) ... 阅读全帖
o**n
发帖数: 1249
35
来自主题: Linux版 - 问个关于user/group的粗浅问题
对于linux的文件权限管理,是一个文件只能属于一个group么,如果我要做这样一个类
似的事情怎么办?
user group
file1 rwxrwx--- user1 group1
file2 rwxrwx--- user2 group2
我想让另外一个user3可以访问file1和file2,就做不到是么?除非把group1和group2
换成用一个group?我是想如果一个文件可以属于多个group,就灵活多了。否则对于
user和group多而且文件权限结构复杂的服务器,岂不是很麻烦?我没有这方面的经验
,欢迎指教。
y***d
发帖数: 2330
36
ssh xxx@host ls
ssh xxx@host rm tmp/xxx
ssh user2@host2 "echo hello world | awk '{print \$1}'"
f***y
发帖数: 98
37
来自主题: Unix版 - shell question , help?
Right, but you need to create a public key on the host1 and copy it into
host2, make sure enter nothing when prompted for password.
then run ssh user2@host2 -x "command". Otherwise, you will keep
getting prompted for password.
p******r
发帖数: 1127
38
好像不对吧。chmod是基于group的,而非root用户不能随便添加group.
就不能用chmod这么做。
例如,三个分属于不同组的用户user0,user1和user2. 文件所有者user0
希望跟user1,2分别共享file1和file2。普通用户应该怎么操作?
p******r
发帖数: 1127
39

这样的结果是file1,2被所有人看见,不是我要求的user1只能访问file1,
user2只能访问file2的“分别共享”
w**n
发帖数: 88
40
This kind of question has been asked again and again...
For regular user you should use setfacl.

这样的结果是file1,2被所有人看见,不是我要求的user1只能访问file1,
user2只能访问file2的“分别共享”
W****S
发帖数: 6555
41
来自主题: Windows版 - Re: win2000 用户设置问题
copy user1's profile to user2's
k*z
发帖数: 4704
42
来自主题: Statistics版 - PROC SQL运行速度问题.
last questin for you. sorry bother too much.
how about i want to join two tables from two odbc datascr?
or I have to write two proc sqls to bring two tables then join?
proc sql;
connect to odbc as lib1 (user=&user1 password=&pwd1 DATASRC=&dsn1) ;
connect to odbc as lib2 (user=&user2 password=&pwd2 DATASRC=&dsn2) ;
create table temp2 as
select * from connection to lib
(
select col
from lib.table
where col="XXX"
);
disconnect from lib;
quit;
1 (共1页)