由买买提看人间百态

topics

全部话题 - 话题: gurus
首页 上页 1 2 3 4 5 下页 末页 (共5页)
j******n
发帖数: 271
1
来自主题: Hardware版 - hardware interface for laptop harddrive
Hardware gurus, I have a Toshiba laptop with bad motherboard. I'd like to
get the data out of the hard drive. I tried to put it in my other laptops
but was surprised that it won't fit. The size and number of pins are all
right but the interface is different. The hard drives from HP and Acer all
have knife-like pins while the one from Toshiba has needle-like pins. I
googled about the hardware interface for laptop hard drives but found
nothing useful so far. Can someone shed some light? Many thank
l********t
发帖数: 33
2
来自主题: Hardware版 - 海美迪910A or 海美迪900A
Gurus,
I am trying to decide which one to go for 910A or 900A. there seems to be
same price, although there are more 910A on taobao.
One thing i can tell is 900A has gigabit LAN, what else?
or if there are other himedia model you would recommend?
l********t
发帖数: 33
3
来自主题: Hardware版 - 海美迪910A or 海美迪900A
Gurus,
I am trying to decide which one to go for 910A or 900A. there seems to be
same price, although there are more 910A on taobao.
One thing i can tell is 900A has gigabit LAN, what else?
or if there are other himedia model you would recommend?
E***e
发帖数: 3430
4
来自主题: Hardware版 - 刚拼的server点不亮
Could gurus help review these two PSUs?
The cheap Rosewill one works on the server, but the EVGA one does not.
However, the EVGA works fine elsewhere...
Rosewill:
http://www.newegg.com/Product/Product.aspx?Item=N82E16817182074
EVGA:
http://www.newegg.com/Product/Product.aspx?Item=N82E16817438010
What could be the difference since they are all standard ATX PSUs?
d***n
发帖数: 1
5
Internet Gurus:
How can I program the Winsock control in Visual Basic to send a text file
from one machine and receive the file from another machine? I need an easy way
to exchange text files between two machines with IP addresses. Could you give
me any suggestions or links to sample programs? Thanks in advence.
f*****y
发帖数: 709
6
来自主题: Internet版 - Please help, problem with cable intenet
Please help, gurus. I have cable internet and recently, I have problem
connecting to the internet. The connection sign always says no connection or
limited speed connection, and when I launched IE, it always gives an error
message and cannot load anything. But when I called the cable provider, they
said that I am online. Then I tried Adware remover, and it doesn't help.
Anyone had similar situation? Please advise, thanks so much....
f**u
发帖数: 559
7
【 以下文字转载自 BuildingWeb 讨论区,原文如下 】
发信人: fufu (弗弗), 信区: BuildingWeb
标 题: Any Guru has idea about auto form fill?
发信站: Unknown Space - 未名空间 (Wed May 4 12:20:33 2005) WWW-POST
I am thinking some functions who can help automately fill the on-line form. I
google and saw some tools who do this job. But I try to figure out what is the
technology idea behide the tool, in another word, how to implement it by
myself. But so far no clue.
Any gurus know sth about this area? Many thanks.
fufu
s******n
发帖数: 876
8
来自主题: Java版 - Cloud computing
we do have new type of applications with scale never seen before,
and with consistency requirement very much relaxed. we have each
company with their own gurus and their own ad hoc solutions, but
we don't have a solid theoretical understanding as we do with RDBMS.
T*****e
发帖数: 361
9
According to Head First's Design Pattern, #1 has a performance issue (I
guess this is the point of the above gurus) and can be modified into:
public class Singleton {
___ private volatile static Singleton s;
___ private Singleton() {}
___ public static Singleton getInstance() {
___ ___ if (s == null) {
___ ___ ___ synchronized (Singleton.class) {
___ ___ ___ ___ if (s == null) s = new Singleton();
___ ___ ___ }
___ ___ }
___ ___ return s;
___ }
}
Key points:
1. Lazy initialization
2. volatile
3.
l*****b
发帖数: 82
10
Hi, all gurus,
I am going to create a web service client connecting to remote HTTPS service
. So far, I only have the WSDL file and know the following information about
the service authentication:
1. it will generate session id after invoke login command, e.g. https://
remote-service-url/services/login?user=abc&password=abc
2. put the return session id in every web service request to make
transactions
I have use wsdl2java tool (Apache-CXF) to generate the client stuffs and try
to call the remote
w****g
发帖数: 597
11
来自主题: Linux版 - Linux基金会重新发布Linux网站
real notebook computers for “Ultimate Linux Guru” .
"The top Linux.com user will be recognized each year as the “Ultimate Linux
Guru” and be given a fully loaded “dream” Linux notebook, personally
autographed by Linux creator Linus Torvalds, as recognition of his or her
guru status. The top five Linux gurus and ultimate Linux guru will be
determined by Guru points total on Feb 15 every year."
m***i
发帖数: 2480
12
The reason that Google can't check in their changes into the public tree
is because it is REALLY hard to get everybody on board. Google hire some
gcc / kernel gurus in the community, but their influence overall is
limited. For example, to get a simple line of change into gcc, one of my
friend spent months to iterate with those people who can approve. One
reviewer has one opinion, but some other guy strongly disagree with him...
So the question is how to make the review, check-in process more eff
E*V
发帖数: 17544
13
anyway, it is not recommended to add the current dir to your path
it is un-safe, many gurus would say
S*******e
发帖数: 525
14
I didn't know this until gurus here pointed out this. I reported this to a
Ubuntu forum. People there seems either don't care or don't know where the
problem is ( only one person gave a vague response saying it was probably
due to single mode and he does not know how Ubuntu works).
This is far too easy to skip the login screen (of course, one has to be as
'smart' as my son). My son is so funny -- he said he in fact was a cheater
since he didn't use any password at all.
C*****s
发帖数: 292
15
haha. Have you seen any real gurus?
mw
发帖数: 525
16
【 以下文字转载自 Linux 讨论区 】
发信人: mw (mw), 信区: Linux
标 题: how to get time() result in millisecond precision?
发信站: BBS 未名空间站 (Mon Nov 24 15:05:29 2008)
hi, gurus:
we kknow that time() returns the seconds passed since 1970 UTC time. Can we
get the millisecond precision?
is there any specific function to do this?
thanks
c******e
发帖数: 558
17
来自主题: Programming版 - 问个XPath的问题
/title/[@lang] will select title element's all child nodes, which has lang
as attribute.
but how to select those child nodes that doesn't have the lang attribute?
Please advise, gurus! Thank you in advance. :-)
f*********e
发帖数: 10
18
来自主题: Programming版 - gurus: How to optimize this c code
void init_f (void)
{
char c[256] = {0};
int i = 0;
for (i = 0; i < 256; i++)
c[i] = (char) i;
}
D*******a
发帖数: 3688
19
来自主题: Programming版 - gurus: How to optimize this c code
用uint64一次加8个字节
p***o
发帖数: 1252
20
来自主题: Programming版 - gurus: How to optimize this c code
void init_f (void)
{
/* char c[256] = {0};
int i = 0;
for (i = 0; i < 256; i++)
c[i] = (char) i;*/
}
k**********g
发帖数: 989
21
来自主题: Programming版 - gurus: How to optimize this c code
static const char c[256] =
{
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
16, 17, 18, 19, 20, 21, 22, 23, 24, 25, tnnd ...
};
n******t
发帖数: 4406
22
来自主题: Programming版 - gurus: How to optimize this c code
你这是什么东东?好像啥也没做。
f*********e
发帖数: 10
23
来自主题: Programming版 - gurus: How to optimize this c code
It's a piece of code to test if you can optimize it so it runs faster than
the current implementation.
g*****y
发帖数: 7271
24
来自主题: Programming版 - gurus: How to optimize this c code
纯从code看的话,把这个function直接丢掉运行最快,因为它什么也没做啊。
我估计是这个原因才有前面的问题的吧?
y***d
发帖数: 2330
25
来自主题: Programming版 - gurus: How to optimize this c code
simply
const char s0[256] = {0, 1, 2, 3, ...., 255}
memcpy ...
L***n
发帖数: 6727
26
来自主题: Programming版 - gurus: How to optimize this c code
i guess they are testing you some basic optimization techniques like loop
unrolling, etc
p*********t
发帖数: 2690
27
来自主题: Programming版 - gurus: How to optimize this c code
o(n),难道要优化成o(1)?
想不出来。难道是要用List之类的?
g*****y
发帖数: 7271
28
来自主题: Programming版 - gurus: How to optimize this c code
面试问题的话,很多是等着你去问的,看你提的问题就知道你对问题的理解程度了。
如果一定要运行时初始化内存的话,用memcpy那个帖子应该就可以了。其实就是
先单个拷贝不对齐的字节,对于对齐的部分,一次copy 32bits 或 64bits,
比挨个字节赋值要快得多。
S**I
发帖数: 15689
29
来自主题: Programming版 - gurus: How to optimize this c code
void init_f(void)
char c[256];
uint64_t* l = (uint64_t*) c;
int i;
// if big-endian, use
// l[0] = 0x0001020304050607;
l[0] = 0x0706050403020100;
for (i = 1; i < 32; i++)
l[i] = l[i-1] + 0x0808080808080808;
}
p********s
发帖数: 37
30
来自主题: Programming版 - gurus: How to optimize this c code
几个可能的地方:
1.char c[256] = {0}; 会从头到尾把数组赋值成0,没意义
2.if (a 3.c[i] 相当于 *(c+i),比c++和c--浪费
4.不要强制类型转化i,循环变量直接用char
5.见楼上大牛
o*****n
发帖数: 94
31
来自主题: Programming版 - gurus: How to optimize this c code
都是大牛啊
k**********g
发帖数: 989
32
来自主题: Programming版 - gurus: How to optimize this c code

我笑了
p********s
发帖数: 37
33
来自主题: Programming版 - gurus: How to optimize this c code
自嘲下,多谢楼上
t****t
发帖数: 6806
34
来自主题: Programming版 - gurus: How to optimize this c code
呃, 你弄明白了他笑的原因吗?
p********s
发帖数: 37
35
来自主题: Programming版 - gurus: How to optimize this c code
大概是因为int转char是直接低位拷贝吧,大牛们指点下
p***o
发帖数: 1252
36
来自主题: Programming版 - gurus: How to optimize this c code
你写出来跑跑看就知道了。
t****t
发帖数: 6806
37
来自主题: Programming版 - gurus: How to optimize this c code
char的范围就是0-255, 现在需要0-255. 那什么时候循环能退出呢?
p********s
发帖数: 37
38
来自主题: Programming版 - gurus: How to optimize this c code
void init_f (void)
{
char c[256];
char *cp = c+255;
char i = -1;
while(i)
*cp-- = i--;
c[0] = 0;
}
还是没明白,跑了结果貌似没啥问题,大牛们直说吧。明天电面了,救人一命胜造七级
浮屠啊
p********s
发帖数: 37
39
来自主题: Programming版 - gurus: How to optimize this c code
啊原来是这个,用了不是很elegant的overflow,见楼上。。
我还以为笑话我那个不要类型转化不是优化呢
t****t
发帖数: 6806
40
来自主题: Programming版 - gurus: How to optimize this c code
yeah, so you have to do it in two steps: 1-255 and 0. what's the point?
p********s
发帖数: 37
41
来自主题: Programming版 - gurus: How to optimize this c code
每次循环省一个i
p********s
发帖数: 37
42
来自主题: Programming版 - gurus: How to optimize this c code
啊。。明白了,受教受教。一年多没写程序汇编指令忘光了,不好意思
f*********e
发帖数: 10
43
来自主题: Programming版 - gurus: How to optimize this c code
我笨, 明白了啥? 能直说吗? 让咱刚入们的长点见识
t****t
发帖数: 6806
44
来自主题: Programming版 - gurus: How to optimize this c code
well, for one thing, nowadays it's usually not advised to manually or
mentally do C->assembly mapping.
p********s
发帖数: 37
45
来自主题: Programming版 - gurus: How to optimize this c code
不好意思光顾向大牛们学习没说清楚,俺之前共犯了俩错误,一个是之前说的,int转
char是没有花费的,所以不需要优化循环变量i;另一个是我以为把for里面的判断句从
i<256改成i能节约一个比较,但是好像汇编里j类跳转指令依赖的signal都是要cmp指令
先赋值的,所以这个优化也没啥意义。。
L***n
发帖数: 6727
46
来自主题: Programming版 - gurus: How to optimize this c code
so 8086ish...
H****r
发帖数: 2801
47
来自主题: Programming版 - gurus: How to optimize this c code
这init_f(void)整个来看好像没做啥实际有意义的啊?
H****r
发帖数: 2801
48
来自主题: Programming版 - gurus: How to optimize this c code
#define SPEC_CHAR_ARRY {0, 1, 2, 3, ...., 255}
void init_f (void)
{
char c[] = SPEC_CHAR_ARRY;
// do sth ...
}
首页 上页 1 2 3 4 5 下页 末页 (共5页)