由买买提看人间百态

topics

全部话题 - 话题: question
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
R******3
发帖数: 40
1
来自主题: DotNet版 - c# and asp.net entry level questions
just start to learn c# and asp.net, have some 101 questions, could anyone
shed some light on these questions? thanks a lot.
page.request["string"]
page.request gets the HttpRequest object for the requested page. what is
page.request["string"](like page.request["email"]) return? a property of
HttpRequest object? if so, which property? is there a default property for
each class?
what is [] representing? thanks.
same doubt for page.session["string"]. get really confused by []. i assume [
] is for ... 阅读全帖
z**r
发帖数: 17771
2
来自主题: EmergingNetworking版 - question on mpls forwarding
for your 1st question: cisco routers would rely on CEF table (adj table).
for your second question: come on, just read ios>

else
still
l***y
发帖数: 791
3
来自主题: EmergingNetworking版 - question on mpls forwarding
found some info from rfc for my 2nd and 3rd question. for first question,
I'm hoping to find this out for Juniper. =(((
w*y
发帖数: 47
4
来自主题: Internet版 - Network question, THanks
I find a question in homework,
"It has been proposed to assign IPv6 addresses like telephone country codes
and area codes. Design such a system, describing how you would lay out the
IPv6 address bits, and describe the requirements on provider interconnection.
"
Especially the last question, how to answer it ,
thanks a lot,
a***t
发帖数: 39
5

when
Clarifying some concepts first:
1. Switch operats on the layer 2, data link layer (of course, the regular
switch, not the layer-3 or layer-4 switch)
2. Router operates on the IP layer, layer 3
So, to answer you question:
Switches don't know the routing. If they are connected to the same subnet,
nothing needs to be done. If they are connected to the different subnet, you
need to put a router between them. Switch isn't counted as a hop, router is.
Same applies to the second question, if no s
W******c
发帖数: 23
6
来自主题: Java版 - Java interview questions
I find a list of 200 general Java interview questions and answers
by a india guy.
Most are silly questions but frequently are asked for Java developer
in most interviews.
Any job hunter interested?
Part one
w******t
发帖数: 1422
7
来自主题: Java版 - basic java question
actually my question comes from the singleton pattern I am using.
in my singleton class (pretty standard),
public class myclass {
private static myclass instance = new myclass();
... other variables ...
private myclass() {
....
}
public myclass getInstance() {
}
...
}
question is that: is it possible first line get executed more than once??
and should we use sync key word within constructor?
I use singleton many times and never think about it carefully, but suddenly I
have thi
d*r
发帖数: 238
8
I found that maybe I can use EventQueue to solve this. I will try that today.
Another question: How to import classes dynamically.
That is:
If I have a class implemented a certain interface but I can only know the
exact class name at run time. How to do it?

s****y
发帖数: 180
9
来自主题: Java版 - Interview Questions in Core Java
Interview Questions in Core Java
http://www.sap-img.com/java/interview-questions-in-core-java.htm
1.what is a transient variable?
A transient variable is a variable that may not be serialized.
2.which containers use a border Layout as their default layout?
The window, Frame and Dialog classes use a border layout as their default
layout.
3.Why do threads block on I/O?
Threads block on i/o (that is enters the waiting state) so that other threads
may execute while the i/o
Operation is performed.
4
r*t
发帖数: 34
10
【 以下文字转载自 BuildingWeb 讨论区,原文如下 】
发信人: rgt (一脸无辜), 信区: BuildingWeb
标 题: Questions on failover & Hot deployment
发信站: Unknown Space - 未名空间 (Sat May 14 12:16:51 2005) WWW-POST
I have some questions about 'failover' and 'hot deployment' on several J2EE
platforms, any advice or hints will be highly appreciated, thanks a lot!
1. Some vendors, such as IBM websphere, have fufil the "stateful session
failover" and "HTTP session failover", so we can easily use those functions
just as do a little setting w
g**********y
发帖数: 14569
11
来自主题: Java版 - A regular expression question
This is not my question. An example of my question is:
Original: "testStr==null | testStr=='ls | wc -l'"
Result: "testStr==null || testStr=='ls | wc -l'"
I'd like to see Java solution, means using String.replaceAll(), just one line
to solve it.
f*****e
发帖数: 5177
12
来自主题: Java版 - A question about JavaScript (转载)
【 以下文字转载自 Internet 讨论区 】
发信人: flyfire (flyfire), 信区: Internet
标 题: A question about JavaScript
发信站: BBS 未名空间站 (Mon Jun 12 10:36:46 2006)
I would like to build a customized delete confirm window works just like
confirm() of javascript but with my own buttons. When the user want to delete
a file, the window pop up with "yes" and "no" option. If the user click "yes",
the file should be deleted and window closed. My question is, how to bind the
server side action (delete the file) with client side
g*****g
发帖数: 34805
13
来自主题: Java版 - Spring MVC question.
Used to use Struts, and here's a question for Spring MVC.
After submit a form successfully, I want to return to
main menu which should be a link like main.html (map .html to spring
controllers).
Now the question is, with InternalResourceViewResolver as ViewResolver,
prefix and suffix specified, /WEB-INF/jsp/ and .jsp respective,
how do you do the redirect?
Do I have to write a dummy jsp page which forwards to main.html?
g*****g
发帖数: 34805
14
来自主题: Java版 - another Java interview Question
To be honest, we don't mind your asking interview questions here.
But you should respect people's time on it. Get together your
thought on interview question and get straight to the point that
you are confused, and you'll be better served.
c*******n
发帖数: 112
15
来自主题: Java版 - another Java interview Question
you are think too highly of yourself. I do not have any confusion regarding
this question.
To share interview question could benifit other people, maybe not you. But,
you should discourage this behavior.
h*********o
发帖数: 62
16
来自主题: Java版 - a question on interface
first, I do not see reflective invocation has anything to do with the
original question. maybe I do not see things deep enough.
second, getmethod is a method belongs to class metadata, you can not call it
on an object instance , nor on instanceof operator.
third, getmethod(String) only returns method object. If you can somehow to
figure out which class metadata to use, you already answer the question, no
need to make the function call using reflection.
w*m
发帖数: 1806
17
来自主题: Java版 - one question about java in Linux
【 以下文字转载自 Linux 讨论区 】
发信人: wdm (WDM), 信区: Linux
标 题: one question about java in Linux
发信站: BBS 未名空间站 (Thu Dec 10 17:08:29 2009, 美东)
we have installed an application in Liuix64 machine and will start from a
jnlp(java). I checked my java and the default version is 1.4, but I need 1.5
. So I downloaded and installed jre1.5 in /usr as root.
my question is: how to let firefox automatically use my new java/jre to open
jnlp file? When I click to open a jnlp file from firefox, firefox give an
option t
v*****r
发帖数: 1119
18
来自主题: Linux版 - Newbie question
Make sure your "chsh" is not sym-lined to bash.
Also for your original questions, .bash_profile is the login shell for bash
and .bashrc is the interactive shell for bash; Understanding a few basic
concepts in unix/linux will help:
1. login shell vs interactive shell?
2. environment variables vs shell variables?
Once you understand the above two questions, the following rules (a lots of
folks don't follows them since they never bother trying to understand the
basic things:-):
1. Set all environme
c******n
发帖数: 4965
19
来自主题: Linux版 - question on mem management
recently ran into some questions regarding what java is doing when its
starting virtual space is 2G, while running a no-op program.
then I dug into what happens when malloc() is called.
it looks malloc() has 2 mem management methods: it has its own cache of
memory blocks, using "buddy" algorithm, then for larger block requests, it
just mmaps() an anonymous block , **** essentially delegating the task to
kernel mem management *****
then my question is , what happens to kernel when it tries to all... 阅读全帖
w*s
发帖数: 7227
20
Hi, i have a question like this,
want to install ubuntu VMs in person A's pc at home,
when VMs are running, we can turn on ubuntu remote access.
then B will try to access his VM instance from his house using VM's ip,
C will do the same thing.
My question is, can it work ?
what ip shall B and C use for remote access ?
this is at home, there's no VPN.
w*s
发帖数: 7227
21
Embedded system running ubuntu, this system is a blackbox to the user, you
can use web to see its status, but no console outputs until developers fly
there.
My design question is a general question, not for ubuntu only.
we want to build the installation package for our application,
each time user installs the new package in the running system, it's a black
box to them. Our installation should cover all kinds of cases.
Things i can think of:
1. what's the best/standard package creation procedure ... 阅读全帖
m***t
发帖数: 254
22
来自主题: Programming版 - question about const reference
That is absolutely correct. However, that was not the point of the question.
Unfortunately Stroustrup did
not give a ctor for this code snippet, but I assume the reference has been
safely initialized. The main
question i am having is if c is a regular const reference, then c.valid=true
in string_rep will be a violation
of constness, thus resulting in undefined behavior, right?
w**t
发帖数: 592
23
来自主题: Programming版 - some C++ interview questions
don't quite understand the question...
I didnt get it either. Question: when the destructor is called? Answer: when
the object is out of scope? Then he asked how to bring it back (call the
destructor??) even if the object is out of scope?
b********n
发帖数: 609
24
来自主题: Programming版 - C++ questions
【 以下文字转载自 Quant 讨论区 】
发信人: nadw (singer), 信区: Quant
标 题: C++ questions
发信站: BBS 未名空间站 (Sat Jul 14 16:51:54 2007)
I was asked these two questions recently:
1. what are the drawbacks of pass-by-value? (i said: copy may use alot
memory and slow, can not change the value, slicing problem. But interviewer
said there are more serious problems?)
2. how do you limit the number of objects of a class?
i**p
发帖数: 902
25
来自主题: Programming版 - One OS scheduling question (转载)
【 以下文字转载自 Linux 讨论区 】
发信人: isup (No), 信区: Linux
标 题: One OS scheduling question
发信站: BBS 未名空间站 (Wed Feb 13 22:06:32 2008)
This is an interview question.
To give the fast response in the realtime system, we give some process/
thread high priority to run. As a result some lower process/thread may be
starved. How could we solve it? Is there any other solution besides rising
the priority?
i***0
发帖数: 8469
26
来自主题: Programming版 - CODING QUESTIONS
CODING QUESTIONS
Please write a solution for each of the following coding questions:
1. Given a singly linked list of integers, write a function to remove all
nodes with even values, and then provide a set of test cases against that
function.
2. Write me a function that receives three integer inputs for the lengths
of the sides of a triangle and returns one of four values to determine the
triangle type (1=scalene, 2=isosceles, 3=equilateral, 4=error). Generate
test cases for the functi
i***h
发帖数: 12655
27
来自主题: Programming版 - google inerview question (转载)
【 以下文字转载自 JobHunting 讨论区 】
发信人: chuncl (ray), 信区: JobHunting
标 题: google inerview question
发信站: BBS 未名空间站 (Thu Jul 17 12:03:08 2008)
Question: How do you put a Binary Search Tree in an array in a efficient manner?
=================================
while there is some guy say using two of in-order, pre-order or post order
would do the work, but i felt it is not the most efficient way.
we can just save it LEVEL by LEVEL in the array. since it is BST not just
binary tree, any comments?
thanks
====
y*******g
发帖数: 6599
28
【 以下文字转载自 JobHunting 讨论区 】
发信人: yangcheng (牛魔王), 信区: JobHunting
标 题: 有没有人做过intel email发的那种question?
发信站: BBS 未名空间站 (Wed Sep 3 18:09:53 2008), 转信
收到intel的信,
说会给一个email 一个one technical problem solving question
要求2小时内回复 ,
有没有人知道会是什么样的题目呀? 谢谢
ps。 是Mobility Group 下面的3D Graphic's Fulsim Team
w******g
发帖数: 67
29
来自主题: Programming版 - C++ question about template typedef
I have a question about template typedef. The question is that I want to use
the data structure like map>.
So I define the following:
#ifndef DATATEMPLATE_H_
#define DATATEMPLATE_H_
#include
#include
using namespace std;
/***************************************************************************
***********************************
* The following code define the type"MapOfVec"
* Map >
*
* Note: KeyType, ElementType are si
d****p
发帖数: 685
30
来自主题: Programming版 - Interview question: is the following code OK?
The example you gave is actually another good interview question:
the static point will be deleted more than once if there are multiple objects whose
destructor functions will each try delete the static pointer. And by
assigning it with 0 after deleting is a good technique.
However, this is a different question from mine.
There is no such thing as "recursive deleting" involved in both scenarios.
c******n
发帖数: 4965
31
来自主题: Programming版 - Interview question: is the following code OK?
regarding ur #5,
web search seems to say that map::erase() SHOULD call destructor,
so the real point of this question is rather uninteresting,
just the difference between destructing container content and removing
the content, which everyone knows. yes the actual behavior is not
defined , so it's bad to expect the interviewee to see this --- in fact
I always assumed that the destructor is NOT called.
I'd rather separate out this question explicitly

Solaris
pointer'
ref
triggered
t****t
发帖数: 6806
32
来自主题: Programming版 - C++ questions
they question is virtual call vs non-virtual call. the question is not
virtual call vs "manual dynamic-binding" call.

,给编译器作了,程序员解放了。但是代价就是有vritual table查询。
似判断),这个比virtual还浪费。所以,只要是程序设计的时候,要有基于类型的函
数调用,那么vritual是最高效的。如果想彻底提高程序效率,就要避免这种函数调用
,这是程序设计理念的问题,
e******d
发帖数: 310
33
来自主题: Programming版 - A question about page table
I have a question about page table.
Assume we have two processes A, and B.
In process A we have a virtual address, say, 0x8243_AB25;
In process B we have the same virtual address 0x8243_AB25;
My question is if these two virtual addresses in process A and B point to
the same physical memory location?
More specifically, how is the page table built and how many page tables are
maintained?
Thank you a lot.
w******g
发帖数: 67
34
来自主题: Programming版 - C & C++ mixing question
"Question about C functions calling C++ STL - can we C structs typecasted
into C++ containers (asked some specifics here)"
Call C functions call STL function?
Actually, this is from someone's interviewing one headhunter sent to you.
So it maybe just part of original question. Any idea, reference or
discussion is welcome.
Thanks a lot.
y*******o
发帖数: 6632
35
来自主题: Programming版 - Two classic C++ questions, how to answer
well for question 1, my answer is override the operator new. But I do not
how to do so.
I find the following link:
http://www.flipcode.com/archives/How_To_Find_Memory_Leaks.shtml
something like
#ifdef _DEBUG
#define DEBUG_NEW new(__FILE__, __LINE__)
#else
#define DEBUG_NEW new
#endif
#define new DEBUG_NEW
Do you think this would be a good answer for the question?
y*******o
发帖数: 6632
36
来自主题: Programming版 - Two classic C++ questions, how to answer
another question is that if any class use a self defined operator new, the
file will not compile too. Right?
So if it does not work, what is the correct answer for this question? Thanks
a lot.
k**l
发帖数: 2966
37
来自主题: Programming版 - C++ | A memory allocation question
I use a queue (deque) to store some broadcast messages for later process.
All messages were casted to char array with certain length.
say when I got a new broadcast with length n;
char* bcbuffer = new char [n];
memcpy(bcbuffer,broadcast,n);
m_broadcastQue.push(std::pair(bcbuffer,n));
Later when I process it:
char* bcbuffer =m_broadcastQue.front().first;
int n=m_broadcastQue.front().second;
m_broadcastQue.pop();//cut the link to free queue lock
processOneBroadCast(bcbuffer, n);
delete ... 阅读全帖
r***e
发帖数: 31
38
来自主题: Security版 - [转载] A question.
【 以下文字转载自 Windows 讨论区,原文如下 】
发信人: rodge (rodgexu), 信区: Windows
标 题: [转载] A question.
发信站: The unknown SPACE (Mon Feb 17 16:08:02 2003), WWW转贴
【 以下文字转载自 BuildingWeb 讨论区,原文如下 】
发信人: rodge (rodgexu), 信区: BuildingWeb
标 题: A question.
发信站: The unknown SPACE (Mon Feb 17 16:06:46 2003) WWW-POST
I want to enable cookie acceptance for a windows 2000 based web server, what
do I need to configure on the server side?
(I am using perl script for this site, in perl script, I need to get cookie
parameters, b
z*****n
发帖数: 7639
39
来自主题: TeX版 - A question about gnuplot
hehe, always followed by questions...
I am using gnuplot to output figures. A question is here:
I can use 'set terminal' to select output format,
there are quite a number of them, which is the most
convenient? I am now using postscript and then use PSreader
to convert it to eps, very boring.
Another problem is how to set the scale of figure? I have
output two figures so far, the first one is pretty ok. but
in the second one the y-axis becomes longer than the x-axis
and the figure looks verticall
o*******e
发帖数: 186
40
来自主题: TeX版 - Two questions about Latex
Question 1:
I used CTeX, and wanted to download or update some package from online, but
failed. It always show that the package repository was not correct. Any body
know the ftp/http link of the online package repository?
Questions 2:
To get the online packages, I deleted CTeX and installed MikTeX. In this way
, I can download/update the packages. But another problem happened that my .
tex file doesn't recognize the other directories to find the figures when I
compile it. For example, the figure
h******s
发帖数: 176
41
来自主题: TeX版 - [合集] A stupid question...
☆─────────────────────────────────────☆
futureguy (会飞的猪) 于 (Wed Jul 16 04:41:20 2008) 提到:
Hi, everyone. Sorry to interrupt you and sorry that I cannot type Chinese in
my office. My question is that how to type the mathematical symbol for
indicator function in Latex. I have tried \mathbb{1}, but it does not work.
Thank you very much
☆─────────────────────────────────────☆
kkff (克复) 于 (Wed Jul 16 12:16:41 2008) 提到:

in
.
Your question is not very clear. Do you want it be part of normal t
l**d
发帖数: 110
42
【 以下文字转载自 Java 讨论区,原文如下 】
发信人: lapd (震碎一地的美丽), 信区: Java
标 题: question on Javascript..sorry.
发信站: The unknown SPACE (Tue Nov 28 02:51:23 2000) WWW-POST
sorry..i don't know where to ask such question..
the same code:
document.write("Last updated on"+document.lastModified+".")
if source file put into my apache webserver, it will display
correctly in Netscape browser the time of last modified.
but if i put source file to www.tripod.com , it won't
display correctly in Netscape browser though it disp
b*****a
发帖数: 12
43
来自主题: Unix版 - Help, Simple stupid Vi question
Hi, All:
I have a simple vi question, please do not laugh.
When I use vi in Xterm, I can use mouse highlight a region,
then how to
delete the highlighed area ?
Another related question, what is most popular editor in
Unix with X Window,
Emacs or VIM ?
Thanks
w****c
发帖数: 10
44
来自主题: Unix版 - a question about regular expression
one question about regular expression:
assuming we have statement as following:
%var1%/dir:%var2%/dir:%var3%/dir
in vi, it is expected that using s/%\(.*\)%/$\1/g the above
could be converted to "$var1/dir:$var2/dir:$var3/dir".but
I found that it wound up with "$var1%/dir:%var2%/dir:%var3/dir",
that is, vi searchs for largest matchup. How could I get the
fewest match up?
it is very interesting question. hope unix guru could help me.
Acton
w****c
发帖数: 10
45
来自主题: Unix版 - question about vi
a question about vi:
"man ls > ls.out" which redirects output to ls.out.
then i try to look at it in vi by "vi ls.out". I see that
a lot of "^H" in the content which distracts my view.
question as is:
1.I try to delete them using s/\^H/\ /g. but doesn't
match the pattern given.I could not match against "^H" using
\^H in the regular expression. What is "^H" from ? and how
could I match against it?
2. in vi line comannd ":", how can I represent the
Ctrl key "^"?It is the small quest
c*****e
发帖数: 32
46
来自主题: Unix版 - beginner's question: Emacs vs. vi
It's hard to compare them as comparing oranges with appples.
Below I attached somebody's reply to this question in news://comp.emacs
You may want check all the answers about this question in that news group
Here goes the reply by David Kastrup:
k***s
发帖数: 277
47
【 以下文字转载自 Linux 讨论区,原文如下 】
发信人: kenjs (乔峰.Leon), 信区: Linux
标 题: a question about text format/process
发信站: Unknown Space - 未名空间 (Fri Feb 13 17:25:09 2004) WWW-POST
I have a text file,
each line is a record,
each record has several field, seperated by ','
e.g.
new york, NY, 39823
I want to out put the field in different order,
e.g,
NY, 39823, new york
awk can do it,
awk -F , '{print $2, $3, $1;}'
But my question is, if some field include ',' and enclosed by "
e.g
"south, dakota", SD, 392
how can
c********t
发帖数: 19
48
Thank you, coconut, for always answering my questions!!
One more security related questions here and happy new year to you!!
If there is a financial application sit on UNIX (UNIX has all the necessary
password complexity, lockout...), but the application can only set the lock
out (lock out after 3 times of failure attempts. It can not enforce password
complexity because of the application limitation). Is it a big deal?
I mean is it easy for people who knows other's UNIX password to get into
that
c***t
发帖数: 324
49
来自主题: Windows版 - a question about email (转载)
【 以下文字转载自 shopping 讨论区 】
发信人: codit (codit), 信区: shopping
标 题: a question about email (转载)
发信站: BBS 未名空间站 (Mon Oct 17 10:43:27 2005)
发信人: codit (codit), 信区: Money
标 题: a question about email
发信站: BBS 未名空间站 (Mon Oct 17 10:42:51 2005)
I tried to check email from a hotel pc, using my eudora in a USB drive.
But it said that "SSL negociation failed: one certificate in the server cert
chain has expired"
my email doesn't have webmail.
is there anyway to fix it?
N*********y
发帖数: 105
50
【 以下文字转载自 CS 讨论区 】
发信人: NoDealToday (今天真的没有deal啊,真的没有), 信区: CS
标 题: Question about WinDbg w/ COM port (转载)
发信站: BBS 未名空间站 (Thu Mar 16 18:38:20 2006)
发信人: NoDealToday (今天真的没有deal啊,真的没有), 信区: Programming
标 题: Question about WinDbg w/ COM port
发信站: BBS 未名空间站 (Thu Mar 16 18:37:39 2006)
Try to do kernel debugging with windbg. Connect two machines with serial cable
. Debugger is win2k3 SP1, debuggee is win2k3 R2. Tried the whole afternoon but
cannot connect.
The problem is, on the debugger, I used
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)