由买买提看人间百态

topics

全部话题 - 话题: header
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
d*******u
发帖数: 186
1
来自主题: JobHunting版 - how to implement malloc?
From c programming language:
typedef long Align; /* for alignment to long boundary */
union header { /* block header */
struct {
union header *ptr; /* next block if on free list */
unsigned size; /* size of this block */
} s;
//The Align field is never used; it just forces each header to be
aligned on a worst-case boundary.
Align x; /* force alignment of blocks */
};
typedef union header Header;
static Header base; /* empty list to get started */
static Header *fr... 阅读全帖
w*******y
发帖数: 60932
2
Gigabyte Z68XP-UD3 LGA 1155 Intel Z68 SATA 6Gb/s USB 3.0 ATX Intel
Motherboard with mSATA Slot GA-Z68XP-UD3
Link:
http://www.amazon.com/Gigabyte-Z68XP-UD3-Intel-Motherboard-GA-Z
Technical Details
Core i7/i5/i3 in LGA 1155 package , chipset: Intel Z68 Express Chipset
Memory: 4 x 1.5V DDR3 DIMM sockets supporting up to 32 GB of system memory,
Dual channel memory architecture,
Audio: Realtek ALC889 codec , High Definition Audio ,2/4/5.1/7.1-channel,
Dolby Home Theater, LAN: 10/100/1000 Mbit
Expansi... 阅读全帖
s***e
发帖数: 122
3
来自主题: Programming版 - ask a question about struct in C programming
看来是因为这一句:
fread(&sacbin, sizeof(header), 1, fpr);
要改成
fread(&sacbin, sizeof(struct header), 1, fpr);
如果你是用C编译器的话。
当然你也可以定义struct header为typedef struct header {...} HEADER; 那样你就可以用sizeof(HEADER)了。
下面这段代码是可以编译运行的。
#include
struct header {
int hd;
};
struct sac
{
struct header hdr;
float * data;
};
void test2() {
const char * const fn = "test2.txt";
FILE* fpw = fopen(fn, "w");
struct header hdr;
hdr.hd = 18;
fwrite(&hdr, sizeof(hdr), 1, fpw);
fclose(fpw
s*****8
发帖数: 606
4
来自主题: Automobile版 - DIY exhaust manifold
DIY这个其实是几个月之前的事,发现最近很多童鞋们在学习自己修车,所以来分享点
自己的
经验。修车其实不是难事,难的是如何诊断,自己的经验不足,借助外力的帮助是必要
的,在
此页分享下换manifold(header)过程中遇到的问题和求助方法。
工作之前搜索header的拆卸过程很重要,同时要知道过程中需要什么零件&螺母大小。
不要凭
空想象需要什么零件,因为process中会遇到考虑不到的问题;拆卸中可能需要deep
socket,
wrench等各种想象不到的问题。准备--很重要!
拆header的过程:
-jack up the car
-卸掉coolant reservoir
-卸掉IPDM fuse box
-卸掉drive belt
-卸掉alternator
-卸掉O2 sensor
-卸掉header unit
卸header要及其小心,因为上面的螺栓是嵌在engine里,一旦弄断,U got a bad day
。。。
下面的螺丝因为与地表近,腐蚀的及其厉害!
重新装上新header后,问题出现了,车在第一次打火的时候,启动了1秒死火,之后再
也打不
着火。以下是我... 阅读全帖
i**p
发帖数: 902
5
e.getMessage() returns the class name "Header"
This is the code to in Android App to read the object.
try {
FileInputStream fin = new FileInputStream(file);
ObjectInputStream sin = new ObjectInputStream(fin);

Header header = (Header)sin.readObject();
} catch (Exception e) {
Log.e("Err", e.getMessage());
}
------------------------
Here is code in Java application to write the file
try {
FileOutputStream f = new FileOutputStream(file);
ObjectOutputStream s = new ObjectOutputStream(f);... 阅读全帖
w*******y
发帖数: 60932
6
Athlon II x2 250 + free motherboard $58 + tax YMMV Microcenter B&M
I know it has been cheaper but this is not currently adverftised in
Microcenter's motherboard deals (free motherboard only with more expensive
cpus). Also, with the apparent death of Frys motherboard deals I think this
is worth mentioning.
In Houston, TX, I was able to place an order for:
AMD Athlon II X2 250 Dual Core Processor = 57.99
I could add for .01:
Biostar A780L Socket AM2 /AM3 760G mATX Motherboard (Reg. $49.99 DDR2 me... 阅读全帖
r********g
发帖数: 14
7
来自主题: JobHunting版 - 请假大家一道BB的题

string 遍历一遍即可
伪码:
for each char in string str
if char in hashtable
change the value of key char in hashtable( key char value 2)
next char
else
linkedlist.tail->next.value= char
tail = tail->next;
add char to hashtable( key char value 1)
end of loop for string // just one time
//now let us deal with the linkedlist
while( header != null){
if header value in hashtable is 2 ( hashtable.get(header)==2) // header is
duplicate
header = header->next;
else return header->value // first non-duplicate ch... 阅读全帖
k*******r
发帖数: 90
8
来自主题: EmergingNetworking版 - 有兴趣搞一个userspace的nat实现吗
mellanox 这个 pdf 对于 RDMA 编程有简单的介绍
http://www.mellanox.com/related-docs/prod_software/RDMA_Aware_P
这封邮件介绍了如何使用 IBV_QPT_RAW_ETH 来直接访问 L2
http://listarc.com/showthread.php?157108-Libibverbs:%2520add%25
Adding a IBV_QPT_RAW_ETH enables a L2 traffic kernel bypass using user-space
verbs API.
The L2 RAW_ETH acceleration assumes that user application transmits and
receives a whole L2 frame including MAC/IP/UDP/TCP headers. Depending on
frame content and available HW filters in HW any L2 traffic type coul... 阅读全帖
w*******y
发帖数: 60932
9
Wow, just found three solid motherboards for Intel 775 processors w/
integrated graphics for less than $9 at my local Microcenter. Looks like
some locations still have some in stock.
This board has a 4/5 egg on Newegg! Link:
http://www.newegg.com/Product/Product.aspx?Item=N82E16813138125
Chipset
North Bridge Intel G31
South Bridge Intel ICH7
CPU Supported
Socket Type LGA 775
Intel CPU Support Core 2 Quad
Core 2 Duo
Pentium D
Pentium 4
Pentium Dual-Core
Celeron Dual-Core
Celeron... 阅读全帖
i**p
发帖数: 902
10
来自主题: EmergingNetworking版 - L2TP协议
This is waht I read about L2TP
L2TP(Layer Two Tunneling Protocol,第二层通道协议)是VPDN(虚拟专用拨号网络
)技术的一种,专门用来进行第二层数据的通道传送,即将第二层数据单元,如点到点
协议(PPP)数据单元,封装在IP或UDP载荷内,以顺利通过包交换网络(如Internet)
,抵达目的地。
Here is my understanding, assuming I have a IP packet.
(my IP packet) ->
(Layer 2 header with tunnel destination layer 2 address sucah as MAC + ((my
IP packet)) ->
(IP header with tunnel destination IP address + (Layer 2 header with tunnel
destination layer 2 address sucah as MAC + ((my IP packet)) ) ->
(Layer 2 head... 阅读全帖
d********1
发帖数: 3828
11
来自主题: Programming版 - cookie的问题
最近在研究googlevoice python script。
这个script是用来登录google voice的。现在用这个script总是出错,似乎是因为不支
持cookie。
比较关键的几行是
content = self.__do_page('login').read()
# holy hackjob
galx = re.search(r"name="GALX"\s+value="(.+)"", content).group(1)
self.__do_page('login', {'Email': email, 'Passwd': passwd, 'GALX':
galx})
这里面'login'是https://www.google.com/accounts/ServiceLoginAuth?service=
grandcentral
do page的定义是
def __do_page(self, page, data=None, headers={}):
"""
Loa... 阅读全帖
r********g
发帖数: 14
12
来自主题: JobHunting版 - 请假大家一道BB的题
基于你的算法,我稍作改变:
建立一个hashset 和一个linkedlist, linkedlist 不需要double single即可 有
header和tail两个指针
对于string, 在遍历时,先检验是存在于hashset之中 如果存在 检验下一个char
如果不存在,放到linkedlist的tail后面 tail指向这个node 同时放到hashset中
这样遍历string一边后,
从linkedlist的header 开始查找 如果存在于hashset中 header指向下一个, 如果不
存在于hashset
return header的value 如果header指向null return 不dupliate的char 不存在。
T*******r
发帖数: 1246
13
窗子上必须有header的,header的尺寸要follow code。
是不是有properly sized header将会很大程度上左右加装一个窗子的造价。header比
窗子长,所以真正开的洞应该比窗子大。见过便宜的安装方式,就是开个窗子一样大的
洞,把窗子装上就完了,根本没header,便宜是便宜,过不了多久窗子就被压变形了。
y*********r
发帖数: 587
14
第二步:焊接pin header和d0
需要的工具:电烙铁、松香、焊锡和一些绝缘胶布
在焊pin header之前需要从它上面取下一根pin(因为主板上的LPC正好少了一个孔)。
这个过程很简单。我的做法是用一个vise夹住pin header的主体,然后用一个小钳子
夹住那根多余的pin,稍微使点劲就能取下来了。记得取之前一定要make sure你取下
的确实是不需要的那根pin,不然的话......
把主板放好,正面朝上。找到LPC,将pin header针短的一面放进LPC。然后用胶布把
pin header粘到主板上,不要让它移动(不然的话一翻过主板它就会掉出来)。接下
来将主板翻过来,这时候就可以焊上所有的pin了。所有的焊点和pin都非常小(比
我想象的小很多),因此需要全身心地投入,小心谨慎地焊接。如果你平时接触过
电烙铁,应该不是太难。我平时做实验用电烙铁很多,所以并不怯场,很块就焊好
了。如果你很久没有碰过电烙铁了,我建议多花一点时间练习一下。Anyway,焊完
之后,我还在放大镜下检查了一下焊接的质量,看有没有溅出来的焊锡留在主板上。
如果有的话要清理掉,以免造成短
s*******o
发帖数: 4896
15
主机的fifa11大概是有6,7个大项,每个大项有几十个任务吧
我给你贴个例子
光射门的,全是要进球的,奶奶的,光进球加起来就要近百个才能做完
01) Drill one in from close
02) Finish with finesse 8 Oct 2010 19:22
03) Score a header
04) Drive from distance
05) Curl one from outside
06) Bend in a free kick
07) Score a volley
10) Chip the keeper from outside
11) Finesse in consecutive games
12) Two from range
13) Dink the keeper
14)... 阅读全帖
A*******n
发帖数: 625
16
来自主题: DotNet版 - add web service
加了也没用。
他们的做法是去他们的网站下载需要的wsdl和xsd files。 用svcutil 建一个cs和一个
config 文件, 然后在写function。
他们说function最后送出去的format like below:
?xml version="1.0" encoding="UTF-8"?>
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">


http://docs.oasis-open.org/wss/2004/... 阅读全帖
s*******8
发帖数: 12734
17
来自主题: EmergingNetworking版 - L2TP协议
Here is something I want to share:
Protocol stack:
ip
ppp
L2TP
udp
IP
layer2
L2TP encapsulation:
IP header+udp header+L2TP header+PPP header+IP header+IP packet Datagram
g***l
发帖数: 2753
18
【 以下文字转载自 Programming 讨论区 】
发信人: gmail (Gmail is Nothing --Lanxiang/SJTU), 信区: Programming
标 题: ask a question about compile shared library using libtool
发信站: BBS 未名空间站 (Thu Apr 7 01:55:44 2011, 美东)
Sorry, no Chinese input here.
I met a strange issue when creating a shared library using libtool.
In this project,I am using two C files, base.c and base2.c, and one H header
file,base.h, to create libbasefunc.so. All the function declarations are
done in the header file and the function implement... 阅读全帖
g***l
发帖数: 2753
19
Sorry, no Chinese input here.
I met a strange issue when creating a shared library using libtool.
In this project,I am using two C files, base.c and base2.c, and one H header
file,base.h, to create libbasefunc.so. All the function declarations are
done in the header file and the function implementations are done in these
two C files.
In another project, some functions in libbasefunc.so will be called in other
C files which are used to create another shared library libinstance.so.
The main appli... 阅读全帖
p******r
发帖数: 122
20
现在有一些 excel xlsx 格式的数据要分析。
首先第一步是读入数据。先用了xlrd 读,但是读到计算机里的都是些 unicode 的
string, 我想要的是 raw string 从 excel 里。不知道有什么法子让xlrd 读raw
string到计算机里。如果能的话,这问题就解决了。但是在网上搜了一下,貌似不能。
问下诸位,到底能吗?如能,该怎样?
后来又用openpyxl,能读成raw string了。但是有一个问题,我的excel 的文件,前几
行都是一些header,和正式的要读的数据格式不同。我需要从某一行读起。用了一些方法
import openpyxl
file_name="xxx.xlsx"
wb = openpyxl.load_workbook(filename=file_name, use_iterators = True)
first_sheet = workbook.get_sheet_names()[0]
ws = workbook.get_sheet_by_name(first_sheet)
for index, row in enumera... 阅读全帖
v*******e
发帖数: 11604
21
大家说得很对,特别是发现楼主贴的第一个code中的bug的。。。我来帮助一下楼主。
if [item for item in httpobj.headers.keys() if "content-type" in item]:
return httpobj.headers['content-type']
[item for item in httpobj.headers.keys() if "content-type" in item]是一个
list comprehension,它的结果是一个list,对于httpobj.headers.keys()这个list里
面的每一个item,考察"content-type"这个字符串是不是这个item的一部分。如果是,
就放在结果list里;如果不是,就丢弃。剩下的code就是:
if 刚才那个结果list:
return httpobj.headers['content-type']
if考察的是这个结果list是不是空的,如果不是,那么就返回值。如同8楼说的,这个
code是有bug的。把... 阅读全帖
b****e
发帖数: 45
22
来自主题: JobHunting版 - 请问一个题目
可以自定义一个编码/解码的协议。可以参考一些file header的设计。比如:
1. 在开头加上字符串分段信息。用's‘表示一个新的字符串,然后紧跟着该字符串的
长度。最后用'e'表示协议header的结束位置。然后把所有字符按顺序连接起来跟在
header的后面。
例子:
把“Hello" "World"连接起来再分解,则编码后的字符串为"s5s5eHelloWorld"。解码
时,依序读取header信息得到两个字符串的长度。然后在结束字符'e'的后面开始读取
各个字符串。
o****g
发帖数: 174
23
用的是这个wheel, 要先加载一个package scrapy.
https://github.com/LKI/wescraper
有如下错误:好像是没有得到cookie? 为什么?
[scrapy.utils.log] INFO: Scrapy 1.5.0 started (bot: scrapybot)
2018-01-23 17:51:22 [scrapy.utils.log] INFO: Versions: lxml 4.1.1.0, libxml2
2.9.7, cssselect 1.0.3, parsel 1.3.1, w3lib 1.18.0, Twisted 17.9.0, Python
2.7.13 |Anaconda 4.4.0 (64-bit)| (default, Dec 20 2016, 23:09:15) - [GCC 4.4
.7 20120313 (Red Hat 4.4.7-1)], pyOpenSSL 17.0.0 (OpenSSL 1.0.2l 25 May
2017), cryptography 1.8.1, Platform Linux-... 阅读全帖
wh
发帖数: 141625
24
【 以下文字转载自 Translation 讨论区 】
发信人: wh (wh), 信区: Translation
标 题: 哪位朋友愿意做machinery方面的翻译吗?
发信站: BBS 未名空间站 (Wed Feb 6 14:52:05 2013, 美东)
朋友需要翻译一份机械安装方面的文件(英翻中),30页左右,带去深圳培训时用。
按市场价付费。以下附一份样本为参考(不是需要翻译的文件,大致相仿);技术细节
或不明之处会与译者解释商讨。有意者请回帖或站内信联系,非常感谢!
Sample document(非翻译文件):
MECHANICAL SPECIFICATIONS OUTLINE
1.0 PROJECT SPECIFICS
...
1.2 This document outlines the basic requirements of the Mechanical
Installation Contractor for the installation of the equipment as proposed in
this bid package.
..... 阅读全帖
b******u
发帖数: 1586
25
来自主题: SanDiego版 - 曝光个骗子修车铺
本人愚钝,去到第三次,才发现这个修车铺不老实。。。anyway,直入正题哈:
此修车铺叫save auto
9280 Kearny Mesa Rd
San Diego, CA 92126
(858) 586-6666
初次去是去年这个时候,当时header pipe坏掉,车噪音很大。先去了版上推荐的g win
,但水平实在是不敢恭维,都检查不出来啥问题。然后去了save auto,虽然贵,当时
修了后还是消除噪音了。开了1年,又出现了噪音,去save auto check后被告知,
exhaust manifold 和gasket crack了需要换新的。要我付450刀。鉴于我那破车也就
2000多刀的样子,实在不想花这么多银子在上面,就问能不能换used part,他们说可
以,打了一个电话后和我说,还是新的,不过可以降到350. 我很诧异,为啥价格降这
么快,人家说在toyota part那边有朋友(我狐疑为啥不早点说捏?)。。
好了,开始察觉出其不老实了,于是俺就自己当场上网查这part的price,发现只需要
70就能搞到新的。然后俺决定自己买part,买来了让他们换(labo... 阅读全帖
s*******n
发帖数: 12995
26
☆─────────────────────────────────────☆
santa2000 (sea) 于 (Wed Sep 12 21:54:07 2012, 美东) 提到:
现在的family room 和living room 中间有一个不大的门,并且门靠一边,还不在中间
。想把现在的门堵上, 把门开在两个room 的中间,同时把门开大一些。 这样显得
open 一些。
请问这样做可行吗?一般来说family room 和living room 中间的墙是承重墙吗? 这
样改不影响结构的稳定性, 不会有什么结构问题吧?
另外,这样做大概花费是多少呀? Thanks。
☆─────────────────────────────────────☆
tocheer4 (tocheer4) 于 (Wed Sep 12 22:06:22 2012, 美东) 提到:
问结构engineer, 任何的回答都没有用。

☆─────────────────────────────────────☆
sonofagun (止戈为武) 于 (Wed Sep 12... 阅读全帖
t******r
发帖数: 28
27
来自主题: BrainTeaser版 - c++ 选择题求解
1. What is Visual C++?
a.It's a program used for starting other programs.
b.It's a program that you use to create other programs.
c.It's a program for browsing the Web.
d.It's a multimedia program that teaches you how to program.
2.What is the name of the process by which Visual C++ converts your C++
code to a program the computer can understand?
a.Compile.
b.Run.
c.Debug.
d.Build.
3.What do you call the container that stores all the files you write and
all the files Visual C++ writes to create ... 阅读全帖
wh
发帖数: 141625
28
【 以下文字转载自 Translation 讨论区 】
发信人: wh (wh), 信区: Translation
标 题: 哪位朋友愿意做machinery方面的翻译吗?
发信站: BBS 未名空间站 (Wed Feb 6 14:52:05 2013, 美东)
朋友需要翻译一份机械安装方面的文件(英翻中),30页左右,带去深圳培训时用。
按市场价付费。以下附一份样本为参考(不是需要翻译的文件,大致相仿);技术细节
或不明之处会与译者解释商讨。有意者请回帖或站内信联系,非常感谢!
Sample document(非翻译文件):
MECHANICAL SPECIFICATIONS OUTLINE
1.0 PROJECT SPECIFICS
...
1.2 This document outlines the basic requirements of the Mechanical
Installation Contractor for the installation of the equipment as proposed in
this bid package.
..... 阅读全帖
wh
发帖数: 141625
29
朋友需要翻译一份机械安装方面的文件(英翻中),30页左右,带去深圳培训时用。
按市场价付费。以下附一份样本为参考(不是需要翻译的文件,大致相仿);技术细节
或不明之处会与译者解释商讨。有意者请回帖或站内信联系,非常感谢!
Sample document(非翻译文件):
MECHANICAL SPECIFICATIONS OUTLINE
1.0 PROJECT SPECIFICS
...
1.2 This document outlines the basic requirements of the Mechanical
Installation Contractor for the installation of the equipment as proposed in
this bid package.
...
1.4 General site Information
Installation Site xxxx
P.R. China
Environment: General Purpose
Uti... 阅读全帖
a*p
发帖数: 62
30
来自主题: BuildingWeb版 - logoff/logout怎么实现?
1.最好所有的操作都是同一个URL
2.我用PHP写的时候加了这几句:
header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT");// Date in
the past
header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . "
GMT");//always modified
header ("Cache-Control: no-cache, must-revalidate");//
HTTP/1.1
header ("Pragma: no-cache");// HTTP/1.0
这样能阻止browser caching
3.操作完成最好能关闭窗口,有些browser有memory cache
4.有https方式更好,loginname也不会被auto-fill记录。
T*****e
发帖数: 361
31
来自主题: BuildingWeb版 - 问个用table控制版面的问题
想要的效果就是把一个网页的内容分为上、中、下三部分,
分别是header, contents, and footer,并且header紧靠
页面顶端,然后是内容,而footer则紧靠页面底端。
实现的思路是:
1 html body高、宽都设为100%
2 第一个table上下两格,上格嵌套一个table用来放
header和内容,向上垂直对齐;下格放footer,向下垂直
对齐。这个table高宽都为100%。
3 嵌套的table也是上下两格,上格放header,下格放内
容。
html代码附后。
问题:在IE中看着好像没有问题,但是FireFox中footer还是
紧靠在内容后面,并没有紧贴页面底端。使用DOM Inspector
发现html body的大小并没有覆盖整个页面,不知道为什么?
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
x***h
发帖数: 8
32
来自主题: Database版 - A question in class diagram
You didn't provide enough information. So I just
have a guess.
In data modeling, there is a popular
pattern called "header, line, detail". For example,
you can model an order as three tables,
headers table, lines table and details table.
The relationship between headers table and lines
table are one to many. The relationship between
lines table and details table are one to one.
In the headers table, you store information about
the entire order, such as customer name, order date, etc.
In the line
A*******n
发帖数: 625
33
来自主题: Database版 - SSRS 牛人请进
如果这些table的header都差不多,为什么不用一个header啊。
非要这么做,你看看这样行不行:
1. 在每一个table后面加1个textbox,visible is false, textbox 的value是
current page number。
2. 比较第二个table的header的current page number 和上面的textbox 的page
number, 如果一样,就hide第二个table的header。
........
我没试过,逻辑上好像可行。
A*******n
发帖数: 625
34
来自主题: Database版 - SSRS 牛人请进
如果这些table的header都差不多,为什么不用一个header啊。
非要这么做,你看看这样行不行:
1. 在每一个table后面加1个textbox,visible is false, textbox 的value是
current page number。
2. 比较第二个table的header的current page number 和上面的textbox 的page
number, 如果一样,就hide第二个table的header。
........
我没试过,逻辑上好像可行。
c*******u
发帖数: 1269
35
来自主题: Flash版 - A simple problem on Flex
今天刚好也被flash在server和client之间传数据的问题困扰,结果是浪费了一天工夫.
我的case是server是人家写好的,参数通过http的header传.flash可以定制http header
,却不能读收到的http header. :( flash 怎么这么lame. 所以只好改用别的做.
如果server 也是你做,两者之间用xml传是最通用的做法,通过webservice. 还有方法比
如用sendAndLoad http://livedocs.adobe.com/flash/8/main/00002336.html, 传过来就是一string.里面的例子我试了,OK,但是不能decode http header. hoho.
如果都在一台机器上.我觉得应该还有别的办法吧.
i****h
发帖数: 251
36
来自主题: Hardware版 - 翻个历史贴:ver1.3 v.s. ver 3.3
发信人: MadCow (Very Mad), 信区: Hardware
标 题: Re: gigabyte DS3 主板rev1.3和rev3.3 有什么区别?
发信站: BBS 未名空间站 (Fri Apr 20 13:58:13 2007)
Rev. 1.0: FSB 1066MHz, one system fan header, ALC883 (Vista Basic Logo)
Rev. 1.3: FSB 1333MHz, one system fan header, ALC883
Rev. 2.0: FSB 1066MHz, three system fan headers, ALC888 (Vista Premium L
ogo)
Rev. 3.3: FSB 1333MHz, three system fan headers, ALC888
http://www.gigabyte.com.tw/Products/Motherboard/Products_ComparisonSheet
.aspx?Pr
oductID=2510,2456
另外似乎由于cpu供电改进,对q
T*****e
发帖数: 361
37
【 以下文字转载自 BuildingWeb 讨论区,原文如下 】
发信人: ThatOne (ThatOne), 信区: BuildingWeb
标 题: 问个用table控制版面的问题
发信站: Unknown Space - 未名空间 (Sun Mar 27 11:09:15 2005) WWW-POST
想要的效果就是把一个网页的内容分为上、中、下三部分,
分别是header, contents, and footer,并且header紧靠
页面顶端,然后是内容,而footer则紧靠页面底端。
实现的思路是:
1 html body高、宽都设为100%
2 第一个table上下两格,上格嵌套一个table用来放
header和内容,向上垂直对齐;下格放footer,向下垂直
对齐。这个table高宽都为100%。
3 嵌套的table也是上下两格,上格放header,下格放内
容。
html代码附后。
问题:在IE中看着好像没有问题,但是FireFox中footer还是
紧靠在内容后面,并没有紧贴页面底端。使用DOM Inspector
发现
s*******e
发帖数: 28
38
来自主题: Programming版 - 一道面试怪题C++. (转载)
That's right. But that is the dependence between the header file and source
file.
What I meant here is the dependence between various header files.
Without any doubt, forward declaration does eliminate the dependence between
two header files, A.h and B.h.
And trying to remove the dependence between header files turns out to be
crucial in reducing the dependece among different translational units.
For example, if another source file c.cpp includes B.h,
and if B.h is independent of A.h, then c.cpp
e*******c
发帖数: 804
39
来自主题: Programming版 - c++ inline问题 (转载)
agree
X::f is defined outside of class but in the header file. The header file is
included in two files, so each will have a copy of X::f definition, and
hence redefinition.
You should either move X::f definition inside class (so the function is
inline, and will have internal linkage), or move it to the implementation
file for class X.
Put function definition in a header file is really bad habit. Also, "using
std" in a header file is the source of a lot of trouble.
l********a
发帖数: 1154
40
看你也是firefox,怎么没弄个httpfox插件看header呢?
你的代码有2个问题:
1. 提交的时候,密码对应的字段不是password,而是passwd,用httpfox能看到的
2. 登陆页面的request地址有误,不是http://www.mitbbs.com/mitbbs_login.php,而是http://www.mitbbs.com/newindex/mitbbs_bbslogin.php.也是httpfox看的.
下面附上调试通过的代码
import urllib, urllib2, cookielib
username = 'username'
password = 'password'
cj = cookielib.CookieJar()
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))
body = (('id', username),
('passwd', password),
)
headers={
'User-age... 阅读全帖
k**********g
发帖数: 989
41
来自主题: Programming版 - 你妈用VS写个helloworld真难啊。
Two more tips.
(1) Precompiled header. "stdafx.h"
Basically, this is the place where you put all standard library include
directives that will be needed by your code.
Examples:
// OS includes
#include
// C includes
#include
// C++ STL includes
#include
#include
Try not to include any of your own header files in "stdafx.h", until you are
familiar with the Visual C++ build process.
Never modify "stdafx.cpp". It is required to be an empty file containing
jus... 阅读全帖
ET
发帖数: 10701
42
来自主题: Programming版 - Spring REST+AFNetworking问题
AfNetworking post 有两种方式(我的知识),一是http header, 一是http body,
用http header的方法,parameter是个dictionary, key:value pair,如果key是一
样的话,key就是你等号左边的,value就是你等好右边的
用body form data post的话,你怎么格式(nsarray, nsdictionary)都可以,只要
你的server端能认。
header比较常用。另外用header,你是看不到这些传的值的(比如你给的ur例子)
从设计的角度来说,很少有key一样的。如果真是你所举的例子,给出选的选项,左边
不如给选项的id,右边是true
比如第3个选择了,并且第5个也选择了。
例子:
http://samwize.com/2014/05/10/tutorial-on-using-afnetworking-2-
另外给你介绍个工具叫postman,chrome extension
编译
p******g
发帖数: 347
43
来自主题: Programming版 - C#转C++可行否?

separated header/source for declaration/definition is a very good design.
Java also doesn't have it but i bet it regretted it that's why they need
javadoc, which IS effectively header files.
Plus, there are tools to create header files from sources automatically. but
writing declarations in headers is always the first step for me before i
actually write the source. that's the way to design software.
of course a decent c++ IDE will update the includes when you rename your
files. i always do that... 阅读全帖
p******g
发帖数: 347
44
来自主题: Programming版 - C#转C++可行否?

separated header/source for declaration/definition is a very good design.
Java also doesn't have it but i bet it regretted it that's why they need
javadoc, which IS effectively header files.
Plus, there are tools to create header files from sources automatically. but
writing declarations in headers is always the first step for me before i
actually write the source. that's the way to design software.
of course a decent c++ IDE will update the includes when you rename your
files. i always do that... 阅读全帖
d**d
发帖数: 389
45
来自主题: Programming版 - 请教一个C++的设计问题
谢谢各位的输入,我把输入流的情况在说详细一下。
一个几个G的officeline的流或者是streaming进来的流被拿到以后,level 1的decoder
会把流分成不同大小的packet,每个
packet有header和payload。 level 1的decoder需要6个。分包的依据是magic word和
两个固定位置的tag。这个level 1的decoder跟我以前做的相似,就是读一段数据先找
magic word,再找那两个tag,然后根据相对于包的大小开验证是否可以重复magic word
和tags。然后对packet header进行解码。
对于level 1 packet来讲,level 1 decoder在分析包头以后来决定需不需要把不同包
的负载合并成一个新的 level 2 packet,然后调用 level 2 decoder,就是我讲的那20
几个新的decoder. level 2 packet下面实际上还有两个level的信息,结构是一样的,
都是分包头和负载,然后合并成新的包,然后再重复一遍就彻底结束了。我们现在不需
要全部的level 3和... 阅读全帖
t******r
发帖数: 28
46
来自主题: Computation版 - c++选择题求解
1. What is Visual C++?
a.It's a program used for starting other programs.
b.It's a program that you use to create other programs.
c.It's a program for browsing the Web.
d.It's a multimedia program that teaches you how to program.
2.What is the name of the process by which Visual C++ converts your C++
code to a program the computer can understand?
a.Compile.
b.Run.
c.Debug.
d.Build.
3.What do you call the container that stores all the files you write and
all the files Visual C++ writes to create ... 阅读全帖
wh
发帖数: 141625
47
【 以下文字转载自 Translation 讨论区 】
发信人: wh (wh), 信区: Translation
标 题: 哪位朋友愿意做machinery方面的翻译吗?
发信站: BBS 未名空间站 (Wed Feb 6 14:52:05 2013, 美东)
朋友需要翻译一份机械安装方面的文件(英翻中),30页左右,带去深圳培训时用。
按市场价付费。以下附一份样本为参考(不是需要翻译的文件,大致相仿);技术细节
或不明之处会与译者解释商讨。有意者请回帖或站内信联系,非常感谢!
Sample document(非翻译文件):
MECHANICAL SPECIFICATIONS OUTLINE
1.0 PROJECT SPECIFICS
...
1.2 This document outlines the basic requirements of the Mechanical
Installation Contractor for the installation of the equipment as proposed in
this bid package.
..... 阅读全帖
w***e
发帖数: 35
48
来自主题: Statistics版 - R comma between numbers
In R, to read such file into memory:
DatSet <- read.table(StrPathFile,sep=",",header=T); %with header
DatSet <- read.table(StrPathFile,sep=",",header=F); %without header
If you do need to add 'comma' between two number, use 'gvim' to do that (
normal mode):
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)