由买买提看人间百态

topics

全部话题 - 话题: host2
(共0页)
m******n
发帖数: 51
1
来自主题: JobHunting版 - Amazon 線上面試題
Total 4 questions.
--------------------------------------------------------------
Question 1:
1. What is the runtime complexity for the code below?
2. What is the space complexity for the code below?
Queue queue = new LinkedList() ;
public void myMethod(TreeNode root) {
if (root == null)
return;
queue.clear();
queue.add(root);
while(!queue.isEmpty()){
TreeNode node = queue.remove();
if(node.left != null) queue.add(node.left);... 阅读全帖
x***o
发帖数: 253
2
我来提一个土办法:
host1: ping host2
host1: tcpdump dst host2 -vvv
host2: tcpdump src host1 -vvv
比较tcpdump的timestamp来算出单向延迟。
k***r
发帖数: 4260
3
来自主题: Java版 - SSL Termination
Just tell the network person to forward HTTPS to this host1:port1
and HTTP to host2:port2 (host1 and host2 can be the same as long
as port1 and port2 are different.)
Then you should be able to figure out the rest. You should be able
to replace the HTTPS apache instance with a squid, though.
I'm not sure how LB works. Wouldn't you lose the source IP in
the logs?
I'd use a lightweight web server as software load balancer.
f***y
发帖数: 98
4
来自主题: 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.
a****y
发帖数: 1035
5
来自主题: USTC版 - 更严重的是这些:
more info:
Domain Name: cnkjedu.cn
ROID: 20080110s10001s05027718-cn
Domain Status: ok
Registrant Organization: 王新家
Registrant Name: 王新家
Administrative Email: w*[email protected]
Sponsoring Registrar: 北京新网数码信息技术有限公司
Name Server:ns2.xinnet.cn
Name Server:ns2.xinnetdns.com
Registration Date: 2008-01-10 16:59
Expiration Date: 2009-01-10 16:59
>nslookup www.cnkjedu.cn
Name: host2.cncidc.com.cn
Address: 58.56.37.200
Aliases: www.cnkjedu.cn
Domain Name: cncidc.com.cn
ROID: 20051115s10011s39861102-cn
w*****g
发帖数: 198
6
use perl's HTTP moduile
something like
my $req = new HTTP::Request 'POST', "http://my.host2/cgi/submit";
$req->content_type('application/x-www-form-urlencoded');
$req->content("EMAIL=$USERID&PASSWORD=$USERPSWD");
w****f
发帖数: 1420
7
来自主题: Hardware版 - 请问NAS应该怎么备份?
http://docs.oracle.com/cd/E18752_01/html/819-5461/gbchx.html#gb
You can use the zfs send command to send a copy of a snapshot stream and
receive the snapshot stream in another pool on the same system or in another
pool on a different system that is used to store backup data. For example,
to send the snapshot stream on a different pool to the same system, use
syntax similar to the following:
# zfs send tank/data@snap1 | zfs recv spool/ds01
If you are sending the snapshot stream to a different sys... 阅读全帖
y***d
发帖数: 2330
8
ssh xxx@host ls
ssh xxx@host rm tmp/xxx
ssh user2@host2 "echo hello world | awk '{print \$1}'"
d*****y
发帖数: 12
9
来自主题: Unix版 - shell question , help?
Hi,
I am writing a Korn Shell program now on host1, but I need to run
some commands and retrieve the results from host2, my question is how
to implement this in Korn Shell:

1. telnet to host 2 from host 1
2. run a command line from host 2
3. retrieve the result to host1.
4. close the connection.
Thanks a lot!
a*********a
发帖数: 22
10
来自主题: Unix版 - shell question , help?
1. If your system supports rsh, use rsh to excute the command:
host1%> rsh host2 command
then use rcp command to copy the result from the remote host.
2. Or you can use expect to non-interactively log into the remote
host and excute the command, then also use expect to non-interactively
ftp the results back.
(共0页)