由买买提看人间百态

topics

全部话题 - 话题: octet
1 (共1页)
z***a
发帖数: 9
1
老板ATTACH了一个文件,是APPLICAION/OCTET-STREAM FILE. 打开时弹出OPEN WITH
窗口,试了几个都没搞定,打下帮忙说说要用什么才能打开? 谢了先.
d**********u
发帖数: 4124
2
☆─────────────────────────────────────☆
yuanfeiwo (原非我|梨园深) 于 (Sat Nov 15 15:51:26 2008) 提到:
从别处转载来的,可能统计并不完全
http://www.ncku1897.net/post/topic.aspx?tid=2763619
生物医学:
Cell. Vol 134, 279-290, 25 July 2008 (IF=29.887)
Physiol Rev 88: 1491–1545, 2008 (IF=29.6)
Nat Rev Neurosci. 2008 Aug;9(8):646-54. (IF=24.52)
Circulation. 2008, doi: 10.1161/CIRCULATIONAHA.107.761932 (IF=12.755)
Gastroenterology. 2008 Apr;134(4):998-1006. (IF=11.673)
Mol Psychiatry. 2008 Jan 8 [Epub ahead of print] (IF=10.9)... 阅读全帖
b*******e
发帖数: 24532
3
来自主题: Chicago版 - 请问这种C 编程方式叫什么?
不完整,我贴个完整点的。
00131 if(pdu == NULL) return NULL;
00132 switch (pdu->type) {
00133 #define OPTIONAL_BEGIN
00134 #define TLV_INTEGER(name, octets)
00135 #define TLV_NULTERMINATED(name, max_len)
00136 #define TLV_OCTETS(name, min_len, max_len)
00137 #define OPTIONAL_END
00138 #define INTEGER(name, octets) p = *(&p);
00139 #define NULTERMINATED(name, max_octets) p = *(&p);
00140 #define OCTETS(name, field_giving_octets) \
00141 p->field_giving_octets =
r********g
发帖数: 1351
4
来自主题: Chicago版 - 请问这种C 编程方式叫什么?
#define在函数中间使用相当于是定义了一个内嵌的函数吧(macros)。。。美国人的教材经常用的,我们好像用得很少。。。
刚根据acerqu的帖子修改了一下。。。
00131 if(pdu == NULL) return NULL;
00132 switch (pdu->type) {
00133 #define OPTIONAL_BEGIN
00134 #define TLV_INTEGER(name, octets)
00135 #define TLV_NULTERMINATED(name, max_len)
00136 #define TLV_OCTETS(name, min_len, max_len)
00137 #define OPTIONAL_END
00133-00137: 没用。。。
00138 #define INTEGER(name, octets) p = *(&p);
00139 #define NULTERMINATED(name, max_octets) p = *(&p);
00140 #define OCTETS(name, field_giving
S*****a
发帖数: 63
5
【 以下文字转载自 Pharmaceutical 讨论区 】
发信人: Somalia (Anti-Pirates), 信区: Pharmaceutical
标 题: Biologics Discovery and Development Positions Available at Abpro Labs in Woburn, MA
关键字: Biologics,Discovery,Development,Antibody,Computational
发信站: BBS 未名空间站 (Wed May 31 20:28:52 2017, 美东)
Multiple Biologics Discovery and Development Positions Available at Abpro
Labs in Woburn, MA
www.abpro-labs.com
To apply please send resume to [email protected]
1. Scientist/Senior Scientist, Antibody Display Technology
... 阅读全帖
S*****a
发帖数: 63
6
【 以下文字转载自 Pharmaceutical 讨论区 】
发信人: Somalia (Anti-Pirates), 信区: Pharmaceutical
标 题: Biologics Discovery and Development Positions Available at Abpro Labs in Woburn, MA
关键字: Biologics,Discovery,Development,Antibody,Computational
发信站: BBS 未名空间站 (Wed May 31 20:28:52 2017, 美东)
Multiple Biologics Discovery and Development Positions Available at Abpro
Labs in Woburn, MA
www.abpro-labs.com
To apply please send resume to [email protected]
1. Scientist/Senior Scientist, Antibody Display Technology
... 阅读全帖
S*****a
发帖数: 63
7
【 以下文字转载自 Pharmaceutical 讨论区 】
发信人: Somalia (Anti-Pirates), 信区: Pharmaceutical
标 题: Biologics Discovery and Development Positions Available at Abpro Labs in Woburn, MA
关键字: Biologics,Discovery,Development,Antibody,Computational
发信站: BBS 未名空间站 (Wed May 31 20:28:52 2017, 美东)
Multiple Biologics Discovery and Development Positions Available at Abpro
Labs in Woburn, MA
www.abpro-labs.com
To apply please send resume to [email protected]
1. Scientist/Senior Scientist, Antibody Display Technology
... 阅读全帖
b***y
发帖数: 554
8
来自主题: ClassicalMusic版 - Decca Legends
any one collect this series?
http://www.deccaclassics.com/music/legends/index.asp#
i have 4,
Beethoven: Violin Sonatas
Perlman/Ashkenazy

Mendelssohn:
A Midsummer Nights Dream
LSO/Maag
Schubert: Spohr Octet
Wiener Octet
Schubert: Symphony No.9
Vienna/Solti
a*p
发帖数: 62
9
my php:
header("Content-Type: application/octet-stream");
header("Content-Length: ".filesize($processfilename));
header("Content-Disposition: attachment;
filename=".basename($processfilename));
readfile($processfilename);
My experiences is IE is not as capable as Netscape in
handling octet-stream
this code probably doesn't work in IE5.5
you can use NetXRay to detect what's going on if you click
attachment in webmail
or you can check HTTP RFC for exact answer.
Unfortunately as far as I know, ther
z**r
发帖数: 17771
10
来自主题: EmergingNetworking版 - question on TCP and UDP header
did a quick search
http://stackoverflow.com/questions/281606/why-does-udp-have-a-l
There is a 96 bit pseudo header conceptually prefixed to the TCP header that
contains the information already.
The checksum field description from this source gives the answer:
Checksum: 16 bits
The checksum field is the 16 bit one's complement of the one's complemen
t sum of all 16 bit words in the header and text. If a segment contains an o
dd number of header and text octets to be checksummed, the last ... 阅读全帖
a****x
发帖数: 231
11
来自主题: Hardware版 - VPN和本地连接有办法方便切换么
取消所有路由走vpn?然后搞个批处理文件改路由?
我用这个批处理加192.168.0.0,10.0.0.0 到路由表,你可以参考一下。
==================================================================
@rem - ASB (10 Oct 2005): Get IP Address and Break Into Individual Octets
@ECHO OFF
SETLOCAL
for /f "tokens=3-7 delims=:. " %%v in ('ipconfig ^| find /i "address"') do
call :GetIPs %%v %%w %%x %%y
ENDLOCAL
GOTO :EOBAT
rem SUBROUTINE
rem %1-%4 = 4 Octets of IP address
if not "%1"=="192" GOTO :EOBAT
if not "%2"=="168" GOTO :EOBAT
ECHO %1.%2.%3.%4
route add 192.168.... 阅读全帖
w**q
发帖数: 3
12
来自主题: Programming版 - what does this code do?
Hi I am not sure what this code does.
I have the following questions
1. where is the case?
2. #define TLV_INTEGER(name, octets) p->name = -1; Is it define a
function
TLV_INTEGER(name, octets) and return a -1? and similar questions on
other #define
3. in
#define PDU(name, id, fields) \
case id: { \
struct name *p = &pdu->u.name; \
pdu->type_name = #name; \
fields \
p->command_id = type; \
p->sequence_number = seq_no; \
l**********n
发帖数: 8443
13
ip.toLong = function(ip) {
var ipl = 0;
ip.split('.').forEach(function(octet) {
ipl <<= 8;
ipl += parseInt(octet);
});
return(ipl >>> 0);
};
ip.fromLong = function(ipl) {
return ((ipl >>> 24) + '.' +
(ipl >> 16 & 255) + '.' +
(ipl >> 8 & 255) + '.' +
(ipl & 255) );
};
s*******g
发帖数: 36
14
想把protein immobilized到sensor chip上,用biacore或者octet Red做screen。。。
可是问题是我label的蛋白一直load不上去,load到的信号非常低。。。。 我用了
maleimide-PEG4-biotin 去label cysteine,结果一直不好。信号就是很低的时候就达
到平衡了,很奇怪。 之后我换成NHS-LS-biotin,这个大家用的比较多,结果load的信
号更低。。 我都有BSA去test labeling,都信号很低。。
我现在的问题是,蛋白肯定是label了,30%左右,我用的1 biotin: 1 protein的
ratio做的labeling,因为不想over label multiple sites on one protein. 都做了
两个月了,快绝望了。。。什么条件都试了,Octet red的信号就是不行!
另外,有人说BSA 不好label,想问问别人有用其他蛋白label的吗,我想做个positive
control, 说明是蛋白的问题,还是label的方法的问题
有经验的人指点一下吧。谢谢了!
S*****a
发帖数: 63
15
【 以下文字转载自 Pharmaceutical 讨论区 】
发信人: Somalia (Anti-Pirates), 信区: Pharmaceutical
标 题: Biologics Discovery and Development Positions Available at Abpro Labs in Woburn, MA
关键字: Biologics,Discovery,Development,Antibody,Computational
发信站: BBS 未名空间站 (Wed May 31 20:28:52 2017, 美东)
Multiple Biologics Discovery and Development Positions Available at Abpro
Labs in Woburn, MA
www.abpro-labs.com
To apply please send resume to [email protected]
1. Scientist/Senior Scientist, Antibody Display Technology
... 阅读全帖
S*****a
发帖数: 63
16
Multiple Biologics Discovery and Development Positions Available at Abpro
Labs in Woburn, MA
www.abpro-labs.com
To apply please send resume to [email protected]
1. Scientist/Senior Scientist, Antibody Display Technology
We are seeking an experienced and highly motivated Scientist with strong
hands-on experience in antibody display (phage/yeast) to support discovery
research projects by screening to identify lead candidate therapeutic
antibodies, as well as engineering molecules for improved... 阅读全帖
w********9
发帖数: 8613
17
来自主题: Military版 - 惊讶于德国人的英语能力
这是Shorter Oxford American English Dictionary第五版列出的与德语或者日耳曼语
相关的英语词根或词汇。
-at, suffix2. + -dom, suffix. + -ed, suffix1. + -ed, suffix2. + -en, suffix1
+ -en, suffix2 + -en, suffix5 + -en, suffix6 + -er, suffix1. + -er, suffix3
. + -er, suffix5. + -est, suffix1. + -est, suffix2. + -et, suffix2. + -eth,
suffix1. + -hood, suffix. + -ing, suffix1. + -ing, suffix3. + -ish, suffix1.
+ -kin, suffix. + -le, suffix1 + -le, suffix3 + -less, suffix. + -ling,
suffix1. + -ling, suffix2 + -ly, suffix1. + -ly, s... 阅读全帖
t**a
发帖数: 442
18
http://www.weidb.com/images/6374-859-1407882651.octet-stream
【TOC 快讯】8月12日上午8点30分,南加大纪欣然抢劫谋杀案在洛县高等法院开庭审理
。南加大同学及南加各大社团由南加华商群萧强会长组织牵头,有逾百人前往声援,希
望法庭以正义还逝去的年轻生命以尊严,并代表华人同胞支持安慰两位心碎的老人纪欣
然的父母。前往声援的南加社团包括南加华商群(群主孙少华),内蒙古商会(会长于
忠霞),栋梁基金(主席刘方),The Orange Club (主席 Alex Chen)。老威,Peter
Wei, 莉子等代表TOC前往声援。
清晨8点30分不到,庭内庭外就已挤满了华人声援者,由于庭内座位有限,很多人逗留
在外,挤满了走廊。老威,Peter Wei 代表TOC与受害者家属代表 - 内蒙古商会就捐款
事宜及帮助受害人家属心理重建方面交换了想法和具体的建议。
华人代表作为受害人家属被安排就坐于courthouse 前排,聆听了整场听讯会。一些华
人义工自发组织起来在外围协助维持秩序。庭内庭外华人同胞相互安慰,相互打气,相
互扶持,血... 阅读全帖

发帖数: 1
19
【 以下文字转载自 Henan 讨论区 】
发信人: zhudf (超级大臭猪), 信区: Henan
标 题: Re: 河南老乡最新名单 (update 1/6/2013 by eastsun26)
发信站: BBS 未名空间站 (Mon Nov 7 14:02:03 2005), 转信
郑州
nethard zzhn bely yycams wade ffdd xuanyuan czyhust
richardson vancomycin Blueangels Orsino Hetzer huahuaniu
cds xuxian firstangel suancaiyu BOOL samma ilovegradma ohmygosh
Cmeonfaya shanlin shong Savant jasonzxs (祖籍 巩县) pkucu moondog

xiaobailong
jodi yzzhang yeshi sun... 阅读全帖
a***c
发帖数: 2443
20
来自主题: JobHunting版 - 继续攒人品 报几家面经
"2. 给一个字符串检测是否是valid ip address, 这题他似乎是想看看我的思路,我说
regular express, 他说要code, 我就写了一些,解释了一下。总之,这题真要追究起
来,细节颇多,但因为我们每个人都只有30分钟,所以他没有要求完美的答案。"
what are the complications in this one?
The obvious is to make sure all the octets are within the 0-255 range,
what else is there to check? reserved addresses?
d******n
发帖数: 1713
21
来自主题: Money版 - ink plus 70k match 成功哈
打枣成功哈呵呵。账户已经收到10k,但60k还没到账哈呵呵 :)
下面是DP
Date: 04-28-2016 11:59:55
From: Chase Card Services
Subject: Re: Rewards Inquiry
Message:
Dear xx xxx,
Thank you for contacting Chase about your inquiry.
Thank you for your recent inquiry regarding the 10,000
point enrollment bonus offer.
I am pleased to advise that I did add 10,0000 points to
the account number noted above so that it receives a total
of 70,000 points for an enrollment bonus. You will see
this adjustment on the next statement. This... 阅读全帖
S*****a
发帖数: 63
22
【 以下文字转载自 Biology 讨论区 】
发信人: Somalia (Anti-Pirates), 信区: Biology
标 题: Yeast Display/Phage Display Scientist position available in Woburn MA
发信站: BBS 未名空间站 (Fri Jul 7 09:38:52 2017, 美东)
We are seeking an experienced and highly motivated Scientist with strong
hands-on
experience in antibody display (phage/yeast) to support discovery research
projects
by screening to identify lead candidate therapeutic antibodies, as well as
engineering
molecules for improved function. The successful candidate wi... 阅读全帖
b*******e
发帖数: 24532
23
来自主题: Chicago版 - 请问这种C 编程方式叫什么?
【 以下文字转载自 JobHunting 讨论区 】
发信人: bigbigbee (大蜜蜂:B计划前言), 信区: JobHunting
标 题: 请问这种C 编程方式叫什么?
发信站: BBS 未名空间站 (Thu Jun 18 12:43:04 2009, 美东)
switch (pdu->type) {
#define OPTIONAL_BEGIN
#define TLV_INTEGER(name, octets)
default:
error(0, "Unknown type, internal error while packing.");
}
碰到这么一段code,以前没有见过,不知道如何理解,啥意思?
有知道的吗?
wh
发帖数: 141625
24
来自主题: Connecticut版 - 明晚马友友在New Haven Green免费演出
就是那个一年一度的International Festival of Arts & Ideas,明晚第一场,马友友
率领丝绸之路演出团表演:
http://blogs.courant.com/curtain/2011/03/yoyo-ma.html
Yo-Yo Ma and Silk Road Ensemble in Free New Haven Concert
By
Frank Rizzo
on March 12, 2011 7:04 PM
Yo-Yo Ma will lead the Silk Road Ensemble in a free concert on the New Haven
Green at 7 p.m. June 11, opening the 16th annual International Festival of
Arts & Ideas
Founded by Yo-Yo Ma in 2000, the ensemble is a collective of musicians,
arrangers, and composers dedicated ... 阅读全帖
G****e
发帖数: 11198
25
来自主题: NCAA版 - 把RR送回WVU
http://collegefootballtalk.nbcsports.com/2010/11/28/report-wvus-stewart-to-retire/
Report: WVU’s Stewart to retire
Posted by John Taylor on November 28, 2010, 8:32 AM EST
Bill Stewart
In the last five weeks, there have been seven Div. 1-A head coaches who have
either fired themselves or been canned by their respective employers,
including one from each category on Saturday alone.
Based on one report, that grouping is about to become an octet.
According to a pay website that you can’t access unle... 阅读全帖
p**********n
发帖数: 1470
26
来自主题: ClassicalMusic版 - 有人特别喜欢门德尔松的室内乐吗
门德尔松是德奥系的一个另类 -- 风格极其细腻优美, 而缺少大气深度粗旷这些日尔曼
民族的特质.
原因很简单, 他是德国作曲家中少数的几个犹太人.
也是因为这些原因, 瓦格纳这样的hardcore日尔曼作曲家就不遗余力地批判门德尔松,
批判他那种细腻优美的风格.
最能反应他的风格的, 除了小协, 就是那些室内乐.
我最喜欢的是 quintet no. 1 和 string octet. 后者是他16岁的时候写的.
y*****g
发帖数: 1822
27
来自主题: ClassicalMusic版 - 有人特别喜欢门德尔松的室内乐吗
这是当年( 76) Library of Congress 出版的 Mendelssohn Octet 的手稿复印本。在
序文中, 编者详细地描术 Mendelssohn 与 他父亲宗教冲突 ( Christianity vs.
Judaism ) 如何影响他在 Mendelssohn 从作曲到出版作品的细节和习惯。在这出版的第一页, 印出当年这复印本的售价为 $17.5,但现在已炒卖至 $275 @_@
http://www.wurlitzerbruck.com/Search/index.php?process=search&List[]=Facsimiles&show_body=1
s*******y
发帖数: 46535
28
☆─────────────────────────────────────☆
pascaldechin (小帕) 于 (Fri Jan 29 21:13:41 2010, 美东) 提到:
门德尔松是德奥系的一个另类 -- 风格极其细腻优美, 而缺少大气深度粗旷这些日尔曼
民族的特质.
原因很简单, 他是德国作曲家中少数的几个犹太人.
也是因为这些原因, 瓦格纳这样的hardcore日尔曼作曲家就不遗余力地批判门德尔松,
批判他那种细腻优美的风格.
最能反应他的风格的, 除了小协, 就是那些室内乐.
我最喜欢的是 quintet no. 1 和 string octet. 后者是他16岁的时候写的.
☆─────────────────────────────────────☆
vertebrate (吖嗬 有脊椎咧) 于 (Fri Jan 29 21:44:56 2010, 美东) 提到:
我挺喜欢门德尔松的。八重奏非常好,第一次听是在P大听的一个现场,听到最后我说
这不是哈利路亚么,好high的咧。他的一干弦乐四重奏我也喜欢。他的无词歌真是非常
非常可爱,那也是
p**********n
发帖数: 1470
29
来自主题: LeisureTime版 - 听了个quartet,感觉像灌水
哈哈哈哈, (我学文豪说话) 你搞笑死了.
我一开始还以为你要说人家这个作品平庸, 像垃圾论文灌水一样.
看进去以后才发现说得太有道理了.
不过发论文确实和某些版面的灌水没啥区别.
我听 quartet quintet octet 的时候也特别喜欢大提琴, 总觉得小提琴音色太尖了,
大提琴很自然很放松, 虽然不太"发主贴", 不引人注目.
所以巴赫的大无伴这样出世的作品, 还必须是大提琴才行.
c*****b
发帖数: 164
30
来自主题: Music版 - 【原创】合唱的魅力 (转载)
Actually it is good enough if we call them chorus when many singers are
singing the same song together, but we 'd better to clearfiy the term if we
talk about it as the beautiful choral art. And there are other ensembles for
voices such as duet, trio, quartet and octet etc.
enjoy it.:)
s*****e
发帖数: 21415
31
☆─────────────────────────────────────☆
PALA (D.K.F.Y.) 于 (Thu Jun 2 00:38:24 2011, 美东) 提到:
PA贴,已被板斧跳跳销毁罪证,请查看版务回收站
http://www.mitbbs.com/article/PhotoGear/32863503_0.html
发信人: skydive (跳跳~~修竹凝妆,垂杨驻马), 信区: PhotoGear
标 题: Re: diana2009过去奔过的照片 (转载)
发信站: BBS 未名空间站 (Wed Jun 1 23:34:07 2011, 美东)
wsn固然无聊,这个女人也是一个attention whore ...
===================================================
然后跳跳继续报复性封禁id,这样的,还继续当板斧?
寄信人: deliver
标 题: Paladino被取消在PhotoGear版的发文权限
发信站: BBS 未名空间站 (Thu Jun 2 00:26:57 201... 阅读全帖
z*****n
发帖数: 7639
32
来自主题: Joke版 - 好挫的F家面经 (转载)
你这个跟哪个比特先读取/存储没有任何关系。
多数系统都是LSB 0。但是一个字节的8八个比特如何写入
到一个顺序存储设备里面,只跟读写电路相关,比如
parallel to serial convertor里面的flip-flop是如何
串联的。
再举个例子,不管是big endian还是little endian,他们
向ethernet端口发送一个octet的时候都是LSB first。

是先
b******3
发帖数: 623
33
来自主题: LES版 - 亲爱的,你在哪里
ip的头两octet一样而已,location可能覆盖方圆百里。
郑重声明,我不是楼主的马甲,初步判断,跟她不大可能认识。
z***f
发帖数: 1182
34
郑州
nethard zzhn bely yycams wade ffdd xuanyuan czyhust
richardson vancomycin
Blueangels Orsino Hetzer huahuaniu cds xuxian firstangel
suancaiyu BOOL samma ilovegradma ohmygosh Cmeonfaya shanlin
shong Savant jasonzxs (祖籍 巩县) pkucu moondog xiaobailong
jodi yzzhang yeshi sunjot lanyi barkingDog littlewindy nany
wujia para soarchen sugnuf miaomi sunjot papaw barki... 阅读全帖
g***i
发帖数: 4272
35
原以为ios的app只要退出了,网络连接就关掉,一切通知推送都靠APNS,但今天的抓包
发现ios后台的流量也挺丰富的:
这只是连接上3g后一分钟左右的活动:
==========================================================================
Application Disc Octets Packets Flows
----------------------------------------------------------------------------
---
Apple iCloud 0% 5785 75 4
Apple Push Notification Service0% 2532 28 2
DNS 0% 1... 阅读全帖
b*****y
发帖数: 1
36
我写了一个CGI程序,
返回的串开始为"Content-type:application/octet-stream\n\n",
然后是具体内容.
当我用Netscape请求时, 浏览器提示我保存文件; 但用IE访问时, 它
将结果直接显示在页面上了, 怎样让它也能提示我保存?
多谢指教.
h******n
发帖数: 493
37
来自主题: BuildingWeb版 - 急问:IIS6.0无法访问某些文件
呵呵,google加看了IIS的帮助以后自己搞定了。
原来是要在IIS manager里面把.vcr加到MIME map里面。
具体的做法是在先添加一个extension,然后在mime type
里面写上“application/octet-stream”就好了。
想过去其他的扩展名应该是一样的了。。。
s****y
发帖数: 983
i***2
发帖数: 39
39
来自主题: BuildingWeb版 - 无标题
Hi everyone,
I need to decipher some IPv4 addresses with the fourth octets anonymized, e.
g., 24.145.236.jcf. Fortunately, the mapping from the original number (0-255
) and the alphabets is unchanged. In other words, I need a 256 to 256
mapping. To decipher this, one would need to triangulate the data with some
other data. For example, one would have access to a large set of IPv4
addresses of people who would visit a government regulator website, or a
similar set of IPv4 visitors (not hosts). If... 阅读全帖
w****a
发帖数: 186
40
像是一个Java Class文件,faint.
i***2
发帖数: 39
41
来自主题: CS版 - 无标题
Hi everyone,
I need to decipher some IPv4 addresses with the fourth octets anonymized, e.
g., 24.145.236.jcf. Fortunately, the mapping from the original number (0-255
) and the alphabets is unchanged. In other words, I need a 256 to 256
mapping. To decipher this, one would need to triangulate the data with some
other data. For example, one would have access to a large set of IPv4
addresses of people who would visit a government regulator website, or a
similar set of IPv4 visitors (not hosts). If... 阅读全帖
r****y
发帖数: 26819
42
来自主题: DotNet版 - 问一个Response.WriteFile的问题
Response.Clear();
Response.ClearContent();
Response.ClearHeaders();
Response.AddHeader("Content-Disposition", "attachment; filename=" +
strFileName);
Response.ContentType = "application/octet-stream";
Response.WriteFile(strFileName);
Response.End();
执行没有问题。唯一的问题是,IE总要自动rename这个save as...dialog,给文件名第一
个.之前自动加上[1]。比如文件原名download.mp3,就会变成download[1].mp3.
Firefox就不会这么干。
这可能和.NET无关。怎么避免IE自动rename?应该是可以避免的。因为很多下载都不会
自动加[1]。可能因为这个例子是作为attachment的问题。
l*s
发帖数: 783
43
☆─────────────────────────────────────☆
rodney (gotoAndPlay(0)) 于 (Mon Feb 12 15:01:35 2007) 提到:
Response.Clear();
Response.ClearContent();
Response.ClearHeaders();
Response.AddHeader("Content-Disposition", "attachment; filename=" +
strFileName);
Response.ContentType = "application/octet-stream";
Response.WriteFile(strFileName);
Response.End();
执行没有问题。唯一的问题是,IE总要自动rename这个save as...dialog,给文件名第一
个.之前自动加上[1]。比如文件原名download.mp3,就会变成download[1].mp3.
Firefox就不会这么干。
这可能和.NET无关。怎么避免IE自动rename?应该是
z******u
发帖数: 5
44
来自主题: Internet版 - Need help with strange emails
Hi, I've been receiving odd emails from gsu.edu, gatech.edu, worldonline.net
etc., don't know how they got my address. Are these mails dangerous? They all
look something like this:
- att1.htm
- kitty.exe
Content-Type: application/octet-stream;
name=MISPSGNU.HTM
Content-Transfer-Encoding: base64
Content-ID:
PEhUTUw+DQoJPEhFQUQ+DQogICAgICAgICAgICAgICAgPGxpbmsgcmVsPXN0eWxlc2hlZXQg
dHlwZT0idGV4dC9jc3MiIGhyZWY9Ii4uLy4uL21zbnNldHVwL21tc29ic2hlLmNzcyI+DQoJ
CTxUSVRMRT5TcGVlZHkgSVNQIG
J*******n
发帖数: 2901
45
这几天需要弄个straightforward的provision web app, 后台rest api + mongodb用
java写一两小时就搞定了,放streaming file到http response下载也没问题,但是
front end的 file upload in js已经搞了两三天了还是没什么头绪。。
我要实现的功能很简单,就是一个form,里面有几个text input,一个file input,通
过一个button click action把这几个string和一个file(比如说.zip)通过http post
传给back end
为了适应rest api,这几个string param可以作为path param,http request的body就
一个streaming,rest是支持consume application/octet-stream的,整个传输又是基
于http,应该是完全可行的
有人做过类似的吗,我google了一下,貌似file upload是一个bi
g pain
h**i
发帖数: 712
46
在web server的mime.type里设置了conf和log文件为
application-octet/stream,但是浏览器都很聪明,检测到它们是文本文件就直接打开
了,该后缀也没用。
客户端的JS如下
function downloadconf()
{
var obj=document.getElementById('mylist');
if(window.location.port == '80')
var url='http://'+window.location.hostname+'/files/'+obj.value;
else
var url='http://'+window.location.hostname+':'+window.location.port+'/files/'+obj.value;
window.open(url, 'Download');
}
这个到底是server还是client的问题?
s*******n
发帖数: 38
47
来自主题: Programming版 - 同主题转寄 (转载)
写了个同主题转寄的python script. 就是附件还不work. mitbbs的附件bs直接pass.
python新手。边学边编的。
----------------------------------------------
from urllib import request
from bs4 import BeautifulSoup, NavigableString
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
from email.mime.base import MIMEBase
from email import encoders
from email.header import Header
#password=sys.argv[1]
password='*****'
address='http://www.mitbbs.com/article_t/Programming/17234582.html'
urlBase='http://www.m... 阅读全帖
h**i
发帖数: 712
48
【 以下文字转载自 Linux 讨论区 】
发信人: heji (和记经手人), 信区: Linux
标 题: javascript问题,怎么让浏览器下载一个文件不是直接打开?
发信站: BBS 未名空间站 (Mon Feb 18 09:40:55 2013, 美东)
在web server的mime.type里设置了conf和log文件为
application-octet/stream,但是浏览器都很聪明,检测到它们是文本文件就直接打开
了,该后缀也没用。
客户端的JS如下
function downloadconf()
{
var obj=document.getElementById('mylist');
if(window.location.port == '80')
var url='http://'+window.location.hostname+'/files/'+obj.value;
else
var url='http://'+window.location.hostname+':'+window.location.port+'/files/'+obj.valu... 阅读全帖
s***o
发帖数: 2191
49
It sounds like a server problem.
not sure if it's typo, but the correct one is "application/octet-stream".
also, did you add "Content-Disposition: attachment" in the response header?
1 (共1页)