由买买提看人间百态

topics

全部话题 - 话题: headers
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
a9
发帖数: 21638
1
我猜在 if sys.In下面,放上
name = req.Header.From.FromName.to_s # create a copy of FromName
name = req.Header.from.FromURI.User.to_s if name =~ /^$|\D/
name = ('1' + name) if name =~ /^[2-9]\d{9,9}$/
name.sub!(/^011/,'')
req.Header.from.FromURI.User = name
req.Header.From.FromName = name
可能会有用,你试一下。

}.
#
l***h
发帖数: 9308
2
那就是以下这样,明天试试
另外,name.sub!(/^011/,'')这个是单起一行,不是上一行自动换行出来的吧
#Ruby
# Dial Plan Generated by Rubyzard v0.1
# If you need help, please post in our forum
# http://www.mysipswitch.com
# SIP tracing : true or false
sys.Trace = false
sys.Log("call from #{req.Header.From.FromURI.ToString()} to #{req.URI.User}.
")
if sys.In then
name = req.Header.from.FromURI.User.to_s
name = ('1' + name) if name =~ /^[2-9]\d\d[2-9]\d{6}$/
name.sub!(/^011/,'')
req.Header.From.FromName = name
req.Header.from.FromURI.User =
j*****g
发帖数: 463
3
更新:
瞎蒙出来根据区号,选择性使用哪一 GV account。
但 CID 似乎还没弄出来。如果有大侠,能否帮忙搞定 CallerID,并检查一下语法. 多谢。
原问题和代码如下
==============================
用 SIPGate + GoogleVoice + SIPSorcery, 一直用 Simple Dial plan.
有哪位高人能发个具有如下功能的 Complex Dial plan 么?
1. 根据区号自动选择使用哪一 GV account.
本人有两个 GV account, 一个搬家前的区号,另一搬家后现在的区号。希望和老朋
友联系时用搬家前的号码。打现在本地时,使用新的号码。
2. 来电显示
现在来电显示在姓名处显示的是 SIPGate 的号码,在电话号码处显示的是对方真实号
码。希望能将 SIPGate 号码替换成对方实际姓名。
我知道网上的 Complex Dial plan 可以 Customize 实现上述功能。
想偷懒,如果谁有现成的直接能用最好。
另一方面也是实在忙得没空。
多谢。

Update:
=====... 阅读全帖
O*******d
发帖数: 20343
4
那个是因为还有文件的header, 就是文件最开始的关于这个文件的所有信息的部分。
没有header的文件根本无法播放。
如果一个电影文件只有最后5分钟的部分存在,根本播放不出来。照片文件也是如此。
文件的后半截可以丢失,但header
不可丢失。
d*******s
发帖数: 15155
5
【 以下文字转载自 Auto_Fans 俱乐部 】
发信人: dearbulls (CiTY HuNTeR), 信区: Auto_Fans
标 题: 自己换exhaust manifold靠谱么?
发信站: BBS 未名空间站 (Thu Apr 22 01:28:56 2010, 美东)
现在的这个header锈穿了,搞得发动机舱比平时热好多,担心那些电子部件和线路的寿
命,还有也怕哪天锈的厉害直接掉了(看到很多买的人都是因为这个原因)。
买了一个short header(http://www.americanmuscle.com/bbk-shorty-headers-9904v6.html),问了熟悉的garage,换要人工180刀,是不是比较贵了?自己搞这个麻烦么?他说要搞大半天,至少5个小时。
如图
s*****8
发帖数: 606
6

如果工具对的话很容易,不要拿“L"型的小铁棒整,用不上力。我的也是altima,整了
很多遍
了。
楼上的说道exhaust,那我也顺便插句。首先exhaust可分4部分:头段header;三元催
化剂CAT;
中段和尾端catback。
任何一部分都可在ebay单独买到,对于02altima,header的改装件(比原厂的性能更佳
)100-ish
就可以买到,CAT不晓得,catback顶端品牌500-ish刀,中端品牌200-ish刀,尾端
muffler几十
刀。labor fee:header和catback各需一个小时,按正规的小时计费100刀/H,可以自
己算下这个
exhaust的维修到底要多少钱。如果exhaust再发生问题,希望LZ能省点钱
f****u
发帖数: 219
7
来自主题: Automobile版 - 我的第一辆老车照片
Chrome的报错:
Duplicate headers received from server
The response from the server contained duplicate headers. This problem is
generally the result of a misconfigured website or proxy. Only the website
or proxy administrator can fix this issue.
Error 349 (net::ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION): Multiple
distinct Content-Disposition headers received. This is disallowed to
protect against HTTP response splitting attacks.
重点only website or proxy administrator can fix it.
s****i
发帖数: 857
8
来自主题: Automobile版 - 修车铺在骗我不?
1. 你把 dealer 的报价单之类的贴上来.
2. 那个block test dealer怎么做的?
3. 你先自己做个 header test, 看看是不是漏气. 去autozone租个blcok tester http://www.autozone.com/loan-a-tools/block-tester/oem-block-tester/391378_0_0/?checkfit=true&checkfit=true, 然后自己买个test fluid http://www.autozone.com/test-scan-and-specialty-tools/cooling-system-test-kit/oem-block-tester-test-fluid/391381_0_0/?checkfit=true&checkfit=true
测试方法就是在你的radiator那里,如果header gasket坏了, fluid颜色就变了.自己
google, youtube.
如果只是header gasket坏了,不用换发动机. MD , dealer又在忽... 阅读全帖
L*******e
发帖数: 114
9
来自主题: JobHunting版 - 砸了面试,发面题
骑驴找驴,砸了面试,潜心修行,明春再战。
//1. what is the output of the following program?
class A{
public:
struct HEADER{
int a_;
double b_;
unsigned int c_;
unsigned char d_;
static int SIZE = 100;
}header;
private:
double k;
};
int main()
{
A a;
cout << "sizeof A: " << sizeof(a) << endl;
cout << "sizeof structure: " << sizeof(a.HEADER) << endl;
}
//2. What is the output of the following program?
void print(int a, int b)
{
cout<<"value a: " << a
k***s
发帖数: 277
10
来自主题: JobHunting版 - a very difficult interview question
think about the infinite matrix
2^1 3^1 4^1 5^1
2^2 3^2 4^2 5^2
2^3 3^3 ...
then you can find a traverse routing from 2^1 in increasing order.
for each row, store the header
all headers are put into a min heap (# of headers depends on how long the
sequence)
each time to get min element in min heap, add the next element in same row
to heap.
space O(n), time O(nlog(n))

of
l***x
发帖数: 1761
11
来自主题: Living版 - 纯新手问装木地板的问题
纯新手!打算自己学习装Engineered hardwood地板,floating或者nail-down都可以。
经过Youtube等资源的学习,已经跃跃欲试。但是对于边界怎么处理还是有问题。
现在要铺的地方是地毯,要替换成engineered hardwood。上几张图说说我的问题。图1
,fireplace的红砖基座边界,图2,楼梯跟前(楼梯也要换成木头的),图3,通往外
面deck的推拉门,图4,另一个fireplace的花岗岩(大理石?)基座边界。这四个,我
的理解,是不是直接裁好了尺寸铺到跟前就行了?还是需要header board或者t-
molding或者 threshold?
我不大明白header board的原理,如果是floating的话,不是四周围要用spacer留出空
间吗?可以就这么严丝合缝地顶上?
图1:https://dl.dropboxusercontent.com/u/47932567/1.jpg
图2:https://dl.dropboxusercontent.com/u/47932567/2.jpg
图3:https://dl.dropboxus... 阅读全帖
A**********n
发帖数: 824
12
来自主题: Immigration版 - 推荐信的letter head重要吗?
With good header>Without header>With bad header
b*********g
发帖数: 951
13
来自主题: Immigration版 - 情况复杂了- 被revoke 140?
抽个空,跟大家反馈一下我在干啥:
1) 我自己在web of science 总结了一遍独立引用。律师说不行,用google scholar
的,因为和我交的140一致。
有个网站可以部分统计google scholar结果(http://cids.fc.ul.pt/cids_3_0/index.php),但还是担心不够精确。保险起见,还是自己一点点做。
所以我现在再一个个的核对独引, 一边核对,心里一遍遍问候着uscis。
google scholar难得是不能像wos一样自动输出格式化列表。就算程序抓取,很容易被
google block。
最难的一篇文章,你们知道左边屏幕上是百十个作者,另一个屏幕是100篇文章,挨个对
比有没有共同作者的滋味吗?
前面有版友,回复可以用google scholar -auth:"LASTNAME" -author:"First LAST"
... 的方法,对这种多作者的失效,因为google 对字符串有限制,填不了那么多作者。
后来我写了个小程序 (那些Diff 软件也试了,不行。python 的 diff libraray也不
行),把... 阅读全帖
f**s
发帖数: 2225
14
来自主题: Minnesota版 - 找油烟机安装的
只要别找我们正要起诉的那位就行了,就是那个叫tony的在华人报纸上打广告的,把我
们window header打断了,花了很多钱找人修,此人号称装了30年了,来了之后先在橱
柜上打2个洞,然后正准备打出去,切开drywall一看后面是暖气的vent (问他为什么不
用stud finder,他说那东西能找到什么啊,都得打开看看才知道后面有什么),于是就
换了个地方从我们window header上穿出去了。敢情丫的干了30年都不知道window
header是什么
这哥们在drywall和橱柜上切洞非常搞笑,拿个圆盖子照着画一个圈,然后拿高速钻沿
着画的圈切下来,和他妈的狗啃的一样,后来找干remodelling的contractor来修才知
道人家有个环形的锯用电钻带着切下来很圆很漂亮。
不建议找handyman很多handyman就是shit,除非你很了解,我们找过一个在angielist
上评价很好的来贴一片瓷砖,直接悲剧了,赶紧轰走了,自己费了2个晚上贴上了
其实干remodelling有licence的都行,一般专业有Licence的干的活都很漂亮
b****y
发帖数: 50
15
支持一下。多谢你的努力!
First Column Header $50.00
Third Column Header 11/12/2013
Fourth Column Header 15h175doz

parenting.
g*********r
发帖数: 1443
16
New England的冬天说到就到,striper南下迁徙,tautog和sea bass也往offshore去了
,大多数人都已收杆过冬。不过真正的渔民是没有off season的。一般人可能不知道,
在New England,天气最冷的时候,其实是cod/pollock等冷水鱼鱼情最好的时候。
屈指一算,已经整整一个月没出海了,难怪最近总有点缺失感。当年陆放翁,孤独地躺
在荒凉的乡村里,还能回想少壮时的金戈铁马,咱区区一介渔民,入梦而来的当然就是
深海搏大鱼的畅快淋漓了。
打电话给American Classic的Capt. Jim,想去overnight jigging trip,已经sold
out了。现在Jim的名声越来越大,冬天offshore jigging已经是一票难求了。 几年前
我开始冬天jigging的时候,提前两三天打电话就行了,现在不提前一周根本没戏。周
六下午,在开船前2小时,再次给Jim打电话,希望有last minute cancelation。 当然
没有。失望之中,只好对Jim说 best of luck fishing, 正要bye bye之时,... 阅读全帖
J******Z
发帖数: 33
17
来自主题: Fishing版 - 纽约海钓 - 报告
这次纽约海钓black sea bass是成功的,也是我个人摸鱼竿以来最疯狂的一次钓鱼经历
,历时16个小时…….
首先要感谢鱼版KV,dulw71热心的帮忙,KV借了我两根Shimano Trevala杆子,赞助了我
一卷lead line,鱼钩,swivel等物,免去了我在船上花钱租器械买tackle,还特地带
我去NJ的渔具店买铅坠,剪刀。手把手教我这个新手如何快速制作高效的tackle。71兄
则帮我介绍了一个他认识的台湾渔友,这个渔友接我去的码头,帮了大忙,感谢这个台
湾同胞。
下面说正题:
12号晚上,纽约的天气很暖活45度的样子,10点从曼哈顿的酒店摸索着坐地铁到了法拉
盛,渔友的车已经在等着了,上车之后直奔Freeport的码头。船长要求每个人11点左右
到,估计是想要早点开船。到了确定付费之后,每个人拿boarding pass并签了一份
Fishing Agreement,主要是讲black sea bass每人的bagging limit是15条,11.5寸的
size limit,Porgy鱼season closed....darn.....
和渔友把东西搬上... 阅读全帖
w*****0
发帖数: 361
18
来自主题: Soccer版 - 肥罗不如达内好乏?
1998's champion almost had nothing to do with Zidane. He was simply lucky to
score two headers in the final. Without his header France would still
manage to win anyway. I rarely see any other header goal from him.
He did very well in 2006 during the knockout stage. I still remember people
criticizing his bad performance during the group stage because France played
much slower when he was present.
a*p
发帖数: 62
19
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
c**t
发帖数: 2744
20
来自主题: DotNet版 - LinqPad is handy
http://www.linqpad.net/
It's not as heavy as VS; but very handy to test out code snippets. For an
exmple download music from wenxuecity.com. Once you figured out the
playListXml (either view source or sniff), a few lines code as follows run
great in LinqPad:
void Main()
{
string playListUrl = @"http://space.wenxuecity.com/media/1292261551.xml";

using(WebClient wc = new WebClient())
{
wc.Headers.Add("User-Agent", "Mozilla/4.0 (compatible; MSIE
8.0;... 阅读全帖
s*****g
发帖数: 1055
21
来自主题: EmergingNetworking版 - 请教一个网络访问记录的问题
If the original client is behind a NAT firewall using private IP (or public
IP that overlaps with globally routable IP), what would this XFF header be?
if firewall does not change it (most likely it will be the case), if frond
end load balancer changes IP header source, then webserver will see two
meaningless addresses, right?
So what good will this XFF header do?
t*******r
发帖数: 3271
22
来自主题: EmergingNetworking版 - PTX! PTX!
回到电脑跟前了, 那些说PTX一点儿PE feature没有的, 睁大了眼睛看着
COS related features
PTX supports following types of classifiers:
 dscp
 dscp-ipv6
 exp
 ieee-802.1
 ieee-802.1ad
 inet-precedence
 ifl based fixed classification
PTX supports max of 32 classifier tables per Type and max of 64 classifier
tables for all types together.
The following rewrite types are supported:
 dscp;
 dscp protocol mpls;
- Apply to IPv4 packets entering MPLS tunnel; r... 阅读全帖
f*****m
发帖数: 416
23
来自主题: EmergingNetworking版 - 304 ; Section 10.3.5: Not Modified啥意思啊
10.3.5 304 Not Modified
If the client has performed a conditional GET request and access is allowed,
but the document has not been modified, the server SHOULD respond with this
status code. The 304 response MUST NOT contain a message-body, and thus is
always terminated by the first empty line after the header fields.
再查啥是conditional GET
The semantics of the GET method change to a "conditional GET" if the request
message includes an If-Modified-Since, If-Unmodified-Since, If-Match, If-
None-Match... 阅读全帖
r*a
发帖数: 1503
24
非常感谢! 电源,显卡有什么可以推荐和它搭配的嘛?
这里就是400块的那个组合。
MSI P67A-C43 B3 Intel P67 Motherboard
Processor Socket: Intel
Processor Interface: LGA1155
Form Factor: ATX
Processors Supported: 2nd generation Intel® Core™ i3
2nd generation Intel® Core™ i5
2nd generation Intel® Core™ i7
Additional Technologies: THX TruStudio PRO
MSI ClickBIOS
Military Class II
OC Genie II
Northbridge: Intel® P67 Express
Memory Supported: DDR3 1333MHz
DDR3 1066MHz
DDR3 1600MHz (... 阅读全帖

发帖数: 1
25
来自主题: Hardware版 - 海康威视的摄像头太烂了
谁叫自己上了嵌入式的贼船,工资低呢。。。C看多了,也不能刷题转码搞互联网
为什么摄像头领域不能有像开源openwrt一样的项目呢?
把海康的dmesg贴出来,大家可以参考,他们用安霸S3L,https://www.ambarella.com/
products/security-ip-cameras/security-ip-camera-products#S3L
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 3.10.73+ ([email protected]) (gcc version 5
.2.1 20151005 (Linaro GCC 5.2-2015.11-2) ) #1 PREEMPT Mon Jan 23 10:38:22
CST 2017
[ 0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=
10c53c7d
[ 0.000000] CPU: PIPT / ... 阅读全帖
T*****e
发帖数: 361
26
来自主题: Java版 - 问一个关于pdf的问题
I guess you need to either do it from SQL Server side or from your servlet
code serving the PDF files. If you need to keep updating your SQL Server
database from Access, the latter may be a better approach.
From SQL Server side, simply read out the PDF field and write back the
portion with OLE header stripped.
From the servlet side, you may check the first four bytes. If the PDF
header presents, write the whole field to output stream. Otherwise, write
everything after the OLE header. This me
N****w
发帖数: 21578
27
来自主题: Linux版 - 大牛帮忙看看吧!
http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.0-oneiric/
http://www.ramoonus.nl/2011/05/linux-kernel-3-0-0-release-candi
后果自负
Installation Guide
Download the kernel headers package;
linux-headers-3.0.0-0300rc1_3.0.0-0300rc1.201105310830_all.deb
And the appropriate package for your system
linux-headers-3.0.0-0300rc1-generic_3.0.0-0300rc1.201105310830_amd64.deb
And the accompanying compiled kernel;
linux-image-3.0.0-0300rc1-generic_3.0.0-0300rc1.201105310830_amd64.deb
... 阅读全帖
i***r
发帖数: 1035
28
【 以下文字转载自 Programming 讨论区 】
发信人: iiiir (哎呀我最牛), 信区: Programming
标 题: python code performance --- normal or too slow?
发信站: BBS 未名空间站 (Tue Jan 7 11:21:52 2014, 美东)
file is 2.5GB with 18,217,166 lines
my python script took about 20-30 minutes to finish
seems slow?
Thanks!!
input file data structure (showing first two lines, wrapped):
chromo pos ref alt dc1 dc2 dc3 dtm bas din
crw itb ptw spw isw irw inw ru1 ru2
ru3 im1 ... 阅读全帖
S****t
发帖数: 1186
29
来自主题: Programming版 - size of structure
thanks a lot! this makes sense. i have a further question.
since the file i am reading has a fixed header length of 100.
can i still use
fread(&shapeFileHeader, sizeof(shapeFileHeader), 1, fpShapeFile)
to read the header into the header structure or I need to read the fields (
like
Shape, Xmin, etc) one by one to address the disparity? Thanks again!
b********r
发帖数: 273
30
来自主题: Programming版 - help for interview question
1.)Design (like to see class diagrams) a Formatted File reading System, and
provide an implementation. The requirements are as follows.
1. The system must be configurable.
2. Should facilitate addition of new formats quickly.
3. Must be portable.
4. All files are of a standard format. They have several sections. Each
section has a header that describes the data that follows it.
MATRIX_1 2 3

1 1 1
2 2 2
MATRIX_2 1 2

1 2
s*****k
发帖数: 604
31
跳转是怎么实现的? 用http header里面的location还是用javascript之类的?
我刚才试了一下一个跳转网页,用的是设置返回http status code 301,http header
field中的location设置成要跳转的url, 浏览器的话会根据收到的http header处理跳
转.用curl的话就显示
$ curl http://192.168.1.100/pub


301 Moved Permanently

Moved Permanently


The document has moved http://192.168.1.100/pub/">here.


c*******9
发帖数: 6411
32
来自主题: Programming版 - a strange issue
I have the following existing structure:
in a header file header.h
struct test
{
test();
string a;
...
std::map b;
...
}
the existing code impl.cxx use this structure and work ok, now I modify
the structure as following in the header.h
struct test
{
test();
string a;
string a2;
...
std::map b;
...
}
and it crash now in impl.cxx in the existing code:
test test1;
..
test1.a2 = d; (crash here)
...
EXCEPTION_ACCES... 阅读全帖
s*******n
发帖数: 38
33
来自主题: 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... 阅读全帖
b**********8
发帖数: 239
34
请各位大牛指点,感激不尽
想写一个登录mitbbs 的script with following code but failed.
( if trying with mechanize package , I can login successfully)
Is there anything wrong with the function ?
Code:
import urllib, urllib2, cookielib
username = 'username'
password = 'password'
cj = cookielib.CookieJar()
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))
body = (('id', username),
('password', password),
)
headers={
'User-agent':'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2... 阅读全帖
i***r
发帖数: 1035
35
file is 2.5GB with 18,217,166 lines
my python script took about 20-30 minutes to finish
seems slow?
Thanks!!
input file data structure (showing first two lines, wrapped):
chromo pos ref alt dc1 dc2 dc3 dtm bas din
crw itb ptw spw isw irw inw ru1 ru2
ru3 im1 im2 im3 im4 xj1 xj2 qh1 qh2
ti1 ti2 glw mxa rwa ysa ysb ysc cac jaa
jac
chr01 242806 G ... 阅读全帖
r***y
发帖数: 4379
36
Notable changes
buffer: Fixed a bug introduced in v4.1.0 where allocating a new zero-
length buffer can result in the next allocation of a TypedArray in
JavaScript not being zero-filled. In certain circumstances this could result
in data leakage via reuse of memory space in TypedArrays, breaking the
normally safe assumption that TypedArrays should be always zero-filled. (
Trevor Norris) #2931.
http: Guard against response-splitting of HTTP trailing headers added
via response.addTrailers(... 阅读全帖
d********g
发帖数: 10550
37
这都啥人写的垃圾代码……明明第一个是有bug会出错的
测试:
>>> a = {'content-type': 'text/plain'}
>>> b = {'content-type-typo': 'typo'}
第一个:
>>> if [item for item in a.keys() if "content-type" in item]:
... a['content-type']
...
'text/plain'
>>> if [item for item in b.keys() if "content-type" in item]:
... b['content-type']
...
Traceback (most recent call last):
File "", line 2, in
KeyError: 'content-type'
第二个:
>>> if "content-type" in a:
... a['content-type']
...
'text/plain'
>>> if "content-... 阅读全帖
g*****y
发帖数: 7271
38
来自主题: Programming版 - 请教一个C++的设计问题
照我理解,以dll办法为例:
1. 所有找到的某个目录下的decoder dlls,加入链表;
2. 把header依次传给decoder的回调函数来分析header并返回是否接受;
3. 如果某一个decoder回调函数返回接受,就把数据传给该decoder的
decode回调函数;
分析header的回调函数是decoder来implement的。新decoder
的code当然需要编译成dll。除了这个,还有什么要重新编译的么?
哪个语言里新的decoder都要重新编译吧?
l******n
发帖数: 9344
39
来自主题: TeX版 - 问一下bibliography
我用了\usepackage{fancyhdr}来产生header
最后用的
\begin{thebibliography}
\end{thebibliography}
来显示reference
有个问题是我最后显示reference的header不好,是
REFERENCE ******* REFERENCE
这样的(******是我最后一章的header)
REFERENCE那几个字怎么去掉?好像是bibliography自动加德的
T*******n
发帖数: 493
40
As a matter of good style, don't use long titles in the TOC. If you want
to use long titles, as in the Cambridge style, you need to completely
redefine the layout commands for the TOC.
\chapter[Short Title for TOC and Headers]
{Full Chapter Title for Table of Contents and Page Headers}
\section[Short Title]{Long Title for TOC and Headers}
Same thing for \caption[...]{...}
r****t
发帖数: 10904
41
git 内置了一些关于 latex 的知识,加了 gitattributes 以后,diff 的时候应该会
在 hunk header 里面告诉改动发生在哪个 section, 不过我没有验证。 这个是 man
gitattributes, 里面还建议 *.bib diff=bibtex
Each group of changes (called a "hunk") in the textual diff output is
prefixed with a line of the form:
@@ -k,l +n,m @@ TEXT
This is called a hunk header. The "TEXT" portion is by default a
line that begins with an alphabet, an underscore or
a dollar sign; this matches what GNU diff -p output uses. This
default sel... 阅读全帖
p**e
发帖数: 533
42
来自主题: Unix版 - unix command explain??
谁能解释一下下面的UNIX command. 看不懂
/bin/rm -f rms_fnam rms.csh awk.file
是不是delete 这三个文件?
echo 'BEGIN {header = 1 }' > awk.file
不知道
echo '{if ( header == 1 ){' >> awk.file
不知道
echo ' else header = 0; } ' >> awk.file
不知道
echo rms_1-2_all.crd | awk '{print tolower($1)}' >rms_fnam `
echo ' set fnam=`cat rms_fnam`; set fnam=$fnam:r ; /bin/rm -f $fnam.rms '
>> rms.csh
echo 'awk -f awk.file $fnam.crd > $fnam.rms ' >> rms.csh
csh rms.csh
/bin/rm -f rms_fnam rms.csh awk.file
B**h
发帖数: 103
43
来自主题: Unix版 - [转载] Pine charset Question
【 以下文字转载自 Linux 讨论区 】
【 原文由 Bach 所发表 】
Hi, folks,
How can I specify the charset every time when composing?
Have been trying to see if I can change the header option
but even use rich header or enable-full-header-cmd
still does not show the option
Basically I would like to have an option between iso and gb18030
when composing mails.
So anybody got some idea?
Thanks in advance.
r******o
发帖数: 1851
44
For example, I just ordered some pin and connector from digikey. These are
the part numbers:
WM4620-ND
CONN HEADER 2POS .156 VERT TIN
WM4621-ND
CONN HEADER 3POS .156 VERT TIN
WM4622-ND
CONN HEADER 4POS .156 VERT TIN
Corresponding to
WM1566-ND
CONN HOUSING 4POS .156 W/O RAMP
WM1565-ND
CONN HOUSING 3POS .156 W/O RAMP
WM1564-ND
CONN HOUSING 2POS .156 W/O RAMP
And you need to some clips:
WM2303-ND
CONN TERM FEMALE 22-26AWG TIN
Then I just made by myself
t******g
发帖数: 372
45
来自主题: Statistics版 - 怎么在Centos上面安装R package?
于server local与否无关,或者至少给些error log 别人也好知道你尝试了啥,
S/W Requirements:
-----------------
MySQL client library ("libmysqlclient.so") and header files
(see www.mysql.com). For Linux/intel you may use the binary rpms
client+devel+shared, and make sure you also have the header files,
they are *NOT* included in the following
MySQL-client-4.1.7-1.i386.rpm
MySQL-shared-4.1.7-1.i386.rpm
but they are included in the latest 4.1.7 rpm versions.
The library libz. This is a stan... 阅读全帖
t*****w
发帖数: 254
46
来自主题: Statistics版 - 请问面试 R 应该怎么准备?
When I had my job interview, they always tested my SAS skill.However I use R
all the time. To help your preparation, read my R codes to see how much you
can understand it.
%in%
?keyword
a<-matrix(0,nrow=3,ncol=3,byrow=T)
a1 <- a1/(t(a1)%*%spooled%*%a1)^.5 #standadization in discrim
a1<- a>=2; a[a1]
abline(h = -1:5, v = -2:3, col = "lightgray", lty=3)
abline(h=0, v=0, col = "gray60")
abs(r2[i])>r0
aggregate(iris[,1:4], list(iris$Species), mean)
AND: &; OR: |; NOT: !
anova(lm(data1[,3]~data1[,1... 阅读全帖
M******n
发帖数: 138
47
来自主题: mitOCEF版 - 慈善公益报关于OCEF的整版报道
谢谢,这是四篇通稿整合成的一篇,作者下了很多工夫仔细读了稿子。而且因为
Houston 报纸版面字数限制,我们还对一些文字进行了删减。这篇稿子基本是原文长度
的,当然进行了一系列的编辑。
我们还有 5 篇通稿,该交给谁联系一下?
另外不好意思的是,因为这些通稿以前是发给 Houston 报纸的,所以用的 header 是
Houston chapter 的。我这里也有 OCEF 总会 header 的,可能对国内发行更好。这个
是 OCEF 各地义工共同劳动成果,至少有 6 位参与写作 - 我 push 得也比较厉害,
汗一下。。。
再汗一个,header design 的很简单。。。
M******n
发帖数: 138
48
来自主题: mitOCEF版 - 慈善公益报关于OCEF的整版报道
谢谢,这是四篇通稿整合成的一篇,作者下了很多工夫仔细读了稿子。而且因为
Houston 报纸版面字数限制,我们还对一些文字进行了删减。这篇稿子基本是原文长度
的,当然进行了一系列的编辑。
我们还有 5 篇通稿,该交给谁联系一下?
另外不好意思的是,因为这些通稿以前是发给 Houston 报纸的,所以用的 header 是
Houston chapter 的。我这里也有 OCEF 总会 header 的,可能对国内发行更好。这个
是 OCEF 各地义工共同劳动成果,至少有 6 位参与写作 - 我 push 得也比较厉害,
汗一下。。。
再汗一个,header design 的很简单。。。
A*********0
发帖数: 144
49
来自主题: DataSciences版 - 请好心人指点我哪里错了?
getwd()
pollutantmean<-function(getwd(),id=1:332){
for(i in id)
{ if(i<10){data<-read.csv(paste("0","0",as.character(i),".csv",sep=""),
header=T, na.string=c("NA","NaN"," "))}
else if(i>=10 & i<100){data<-read.csv(paste("0",as.character(i),".csv",sep
=""),header=T, na.strings=c("NA","NAN",""))}
else{data<-read.csv(paste(as.character(i),".csv",sep=""),header=T,na.
string=c("NA","NaN”," ")}
if(pollutant="sulfate"){total=total+sum(data$sulfate)}
else{total=total+sum(data$nitrate)}
}
setwd... 阅读全帖
d*******s
发帖数: 15155
50
来自主题: _Auto_Fans版 - 自己换exhaust manifold靠谱么?
现在的这个header锈穿了,搞得发动机舱比平时热好多,担心那些电子部件和线路的寿
命,还有也怕哪天锈的厉害直接掉了(看到很多买的人都是因为这个原因)。
买了一个short header(http://www.americanmuscle.com/bbk-shorty-headers-9904v6.html),问了熟悉的garage,换要人工180刀,是不是比较贵了?自己搞这个麻烦么?他说要搞大半天,至少5个小时。
如图
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)