由买买提看人间百态

topics

全部话题 - 话题: req
1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
w*******y
发帖数: 60932
1
Kohls have 2 codes running today that stack on apparel for kids-toddlers &
baby
Use code KIDS20 first for 20% off then
Use code XTRA15 for 15% off
99c shipping per item
Here are some things I found
Jumping Beans Bling Babydoll Top 2T-4T:
http://www.kohls.com/kohlsStore/clearance/kids1/toddlergirls/PR Beans Bling Babydoll Top.jsp
- $3.54 + 99c
Jumping Beans Bling Babydoll Top 4 - 7:
http://www.kohls.com/kohlsStore/clearance/kids1/girls46x/PRD~72 Beans Bling Babydoll Top.jsp#
#" rel="nofollow" t... 阅读全帖
w*******y
发帖数: 60932
2
Kohls has the KeurigElite Coffee Brewer
as one it's Power Hour items (exp 11/20 3pm central)
Keurig B-40:
http://www.kohls.com/kohlsStore/saleevents/1119ph/kitchendining/ph67ktichenelectrics/PRD~500275/Keurig Elite Coffee Brewer.jsp#
#" rel="nofollow" target="_blank" onclick="_gaq.push(['_trackEvent', 'thread
', 'click', '2399583 - keurig-elite-coffee-brewer-b40-79-tax-shipped-
kohlscom-no-kohls-charge-req']);">Keurig B-40 [Keurig B-40:
http://www.kohls.com/kohlsStore/saleevents/1119ph/kitchendi... 阅读全帖
h******y
发帖数: 47
3
来自主题: Automobile版 - 求问MANT REQ'T 灯闪烁的可能原因
MANT REQ'T 等在启动的时候会闪烁一会,开一段路之后就没了。求问可能的原因是什
么?要怎么处理?非常感谢!
G*L
发帖数: 485
4
二手交易风险自负!请自行验证是否合法和一手卡!:
我想卖的物品:
$200 Bonus Chase Total Checking no DD req'd
单张面值:
$200
可接受价格(必须明码标价!):
$15
物品新旧要求:
New
邮寄方式要求:
email code or $2 for FCDC
买卖双方谁承担邮寄损失(Required if not code only):
付款方式说明:
BOA, chase quickpay or non-cc Paypal
其他补充说明:
广告的有效期:
物品来源(Required for All Cards!):
Mail
我的联系方式:
Warranty期限:
能否证明是合法的一手卡?(Required for All Cards!):
state and zip:
G*L
发帖数: 485
5
二手交易风险自负!请自行验证是否合法和一手卡!:
我想卖的物品:
$200 Bonus Chase Total Checking no DD req'd
单张面值:
$200
可接受价格(必须明码标价!):
$15
物品新旧要求:
New
邮寄方式要求:
email code or $2 for FCDC
买卖双方谁承担邮寄损失(Required if not code only):
付款方式说明:
BOA, chase quickpay or non-cc Paypal
其他补充说明:
广告的有效期:
物品来源(Required for All Cards!):
Mail
我的联系方式:
Warranty期限:
能否证明是合法的一手卡?(Required for All Cards!):
state and zip:
b*****t
发帖数: 31
6
$200 Bonus Chase Total Checking no DD req'd
$10, noncc paypal.
k****t
发帖数: 12697
7
来自主题: PhotoGear版 - FEDEX GND SIGNATURE REQ
有办法让IT DROP 吗? TWO ATTEMPTS ALREADY, MONDAY IS FINAL.
卖家用了SIG REQ, 尽管<250. 还显然把LABEL 搞成GROUND. 要是搞对HOME DELIVERY
的话FEDEX 会过了6PM 再来送一次. 这次在GND 的TRUCK 上俺没辙了.
有何高见?
j******a
发帖数: 100
8
1M 个 TCP 开关没有机器做得到,协议就是这样了
长连接 1M 个 tcp req/response,轻轻松松
兰州信口开河,挺会忽悠,1ms+ 系统调用时间随口就来
其实随手ping一台就知道他在扯淡
64 bytes from 172.31.32.255: icmp_seq=1 ttl=64 time=0.016 ms
前面的哥们说很对
/dev/null read是空的,/dev/zero多了地址check,中途要reshed一次,所以会慢,而
且结果不稳定
q********y
发帖数: 20
9
【 以下文字转载自 Physics 讨论区 】
发信人: quantumboy (喜欢所有抽象的东西), 信区: Physics
标 题: 【req】文献求助,量纲分析的文章一篇
发信站: BBS 未名空间站 (Tue Nov 15 00:50:52 2011, 美东)
http://dx.doi.org/10.1016/j.flowmeasinst.2008.05.004
谢谢
回邮箱:g********[email protected]
b********r
发帖数: 1380
10
哪里的pre-reqs的课最便宜?当然是认可的学校。
q********y
发帖数: 20
11
【 以下文字转载自 Physics 讨论区 】
发信人: quantumboy (喜欢所有抽象的东西), 信区: Physics
标 题: 【req】文献求助,量纲分析的文章一篇
发信站: BBS 未名空间站 (Tue Nov 15 00:50:52 2011, 美东)
http://dx.doi.org/10.1016/j.flowmeasinst.2008.05.004
谢谢
回邮箱:g********[email protected]
w*******y
发帖数: 60932
12
just saw this on Engadget:
Link:
http://www.engadget.com/2010/12/04/viber-voip-iphone-app-3g-calling-no-registration-and-totally/
What it essentially is, is an App in App store, thats free and all it req is
ur phone number, then u can make VoIP calls with ur contact list. Don't
need to go thru multiple apps anymore!
You know those voice minutes you've been coaxed into buying for, like, ever?
Now would be an awesome time to bid 'em adieu. Out of nowhere, Viber has
swooped in to crush the dreams o... 阅读全帖
w*******y
发帖数: 60932
13
Kohls NIGHT OWL EARLY BIRD deals have an extra 15% off already discounted
select Toys (ends 3pm CST 4/23/11)
All Toys included in the Promotion:
http://www.kohls.com/kohlsStore/saleevents/0422ph/toys/ph114sel
Melissa & Doug Shape Sorting Cube:
http://www.kohls.com/kohlsStore/saleevents/0422ph/toys/ph114sel and Doug Shape Sorting Cube.jsp
- $5.77 + tax shipped after all discounts
Use Code SAVEME15 for an additional 15% off
Use Code SAVEME20 for an additional 20% off if you spend over $100
Use C... 阅读全帖
w*******y
发帖数: 60932
14
Kohls has the Norelco SensoTouch 1160X Razor:
http://www.kohls.com/kohlsStore/beauty/razorstrimmers/formen/PR SensoTouch 1160X Razor.jsp
on sale for $82.49
Use Code SAVEME15 for an additional 15% off
Use Code SHIP4FREE for free shipping [no minimum & no Kohls Charge req.]
Final Price - $70.12 + tax shipped
Not too early for Fathers Day!!
This is not the model with the precision jet cleaning system - but I think
that is kind of gimmickie anyway - I'll pay the $70 over the $140 + for the
version... 阅读全帖
l******h
发帖数: 2
15
Highly reputational company with very competitive compensation for all
positions.
Please send in your resume and position/positions you like to apply to my
email address below.
h*******[email protected]
All resumes will be deliver to hiring manager directly. Act fast!
Thanks!
Silicon Engineering Group
Sr. Physical Design Timing Engineer
Timing (STA) Manager
Senior Physical Design Engineer
CAD Manager - Front-End Design and Verification
Sr. CAD Engineer - Place & Route / Physical Design Engineer
Sr. CA... 阅读全帖
l******h
发帖数: 2
16
Highly reputational company with very competitive compensation for all
positions.
Please send in your resume and position/positions you like to apply to my
email address below.
h*******[email protected]
All resumes will be deliver to hiring manager directly. Act fast!
Thanks!
Silicon Engineering Group
Sr. Physical Design Timing Engineer
Timing (STA) Manager
Senior Physical Design Engineer
CAD Manager - Front-End Design and Verification
Sr. CAD Engineer - Place & Route / Physical Design Engineer
Sr. CA... 阅读全帖
q******n
发帖数: 66
17
来自主题: Programming版 - 求助: node.js memory leak
如果我comment out line 88, 就没问题。 各为大牛, handle_database有什么问题吗?
{code}
1 var express = require('express');
2 var app = express();
3 var mysql = require('mysql');
4 var pool = mysql.createPool({
5 connectionLimit : 100, //important
6 host : 'localhost',
7 user : 'root',
8 password : '',
9 database : 'callback',
10 debug : false
11 });
12
13 function handle_database(req,res) {
1... 阅读全帖
h**o
发帖数: 548
18
来自主题: JobHunting版 - 贴一个电梯设计伪码吧。
我觉得和cc150 8.2 design a call center 类似。
bank/callcenter 收到一个request,分给一个空闲的elevator/employee
如果没闲人,把request入queue. 一旦有人闲下来,就来queue里找任务去处理。bank/
callcenter就好像server, elevator/employee 就好象process/thread/task.
passanger 是 request 中的 subrequest.
贴一个我的码吧。 欢迎指正。网上有些code有铃啊,门的。我不明白。就不加入我的
码了。
test_evelatorSystem(){
mg = Manager::getInstance();
for (i = 0; i < 4; i++){
//sb. press button UP at floor 5
Request* req = new Request(floor=5, direction=UP);
mg.dispatchRequest(req)... 阅读全帖
T********d
发帖数: 621
19
来自主题: JobHunting版 - 公司在招人 (转载)
【 以下文字转载自 Seattle 讨论区 】
发信人: TigersHead (虎头), 信区: Seattle
标 题: 公司在招人
发信站: BBS 未名空间站 (Tue Nov 30 19:25:24 2010, 美东)
1. Human resources
Non-Exempt Position
Talent Acquisition Coordinator II – Req # 75116
2.Quality
Exempt Positions
Prin. Design Quality Engineer – Req # 71806
Sr. Manufacturing Quality Engineer – Req # 73987
Sr. Supplier Quality Engineer – Req # 73210
Sr. Incoming Quality Assurance Supervisor – Req # 74826
Design Quality Engineer – Req # 75034
Configuration Assurance Manager – Req #... 阅读全帖
T********d
发帖数: 621
20
来自主题: Working版 - 公司在招人 (转载)
【 以下文字转载自 Seattle 讨论区 】
发信人: TigersHead (虎头), 信区: Seattle
标 题: 公司在招人
发信站: BBS 未名空间站 (Tue Nov 30 19:25:24 2010, 美东)
1. Human resources
Non-Exempt Position
Talent Acquisition Coordinator II – Req # 75116
2.Quality
Exempt Positions
Prin. Design Quality Engineer – Req # 71806
Sr. Manufacturing Quality Engineer – Req # 73987
Sr. Supplier Quality Engineer – Req # 73210
Sr. Incoming Quality Assurance Supervisor – Req # 74826
Design Quality Engineer – Req # 75034
Configuration Assurance Manager – Req #... 阅读全帖
T********d
发帖数: 621
21
来自主题: Oregon版 - 公司在招人 (转载)
【 以下文字转载自 Seattle 讨论区 】
发信人: TigersHead (虎头), 信区: Seattle
标 题: 公司在招人
发信站: BBS 未名空间站 (Tue Nov 30 19:25:24 2010, 美东)
1. Human resources
Non-Exempt Position
Talent Acquisition Coordinator II – Req # 75116
2.Quality
Exempt Positions
Prin. Design Quality Engineer – Req # 71806
Sr. Manufacturing Quality Engineer – Req # 73987
Sr. Supplier Quality Engineer – Req # 73210
Sr. Incoming Quality Assurance Supervisor – Req # 74826
Design Quality Engineer – Req # 75034
Configuration Assurance Manager – Req #... 阅读全帖
T********d
发帖数: 621
22
来自主题: Seattle版 - 公司在招人
1. Human resources
Non-Exempt Position
Talent Acquisition Coordinator II – Req # 75116
2.Quality
Exempt Positions
Prin. Design Quality Engineer – Req # 71806
Sr. Manufacturing Quality Engineer – Req # 73987
Sr. Supplier Quality Engineer – Req # 73210
Sr. Incoming Quality Assurance Supervisor – Req # 74826
Design Quality Engineer – Req # 75034
Configuration Assurance Manager – Req # 74857
3.R&D
Exempt Positions
Sr. Project Engineer – Req # 74076
Prin. Project Engineer – Req # 73582
4.Operations
E... 阅读全帖
n*****t
发帖数: 22014
23
来自主题: Programming版 - 又愿意做练习题的吗?
/* route code */
#define AB 0
#define AC 1
/* ... */
#define YZ 190
queue_to_check[AB] = { AB, AC, AD, AE, /* ... */ AZ, -1 };
queue_to_check[KO] = { KO, KP, JO, KQ, /* ... */ AZ, -1 };
queues = ticket_queue_base + queue_to_check[get_route_code(req->from,req->to
)]
switch (req->op) {
case QUERY:
return ticket_avaliable[req->train][req->class][indexof(req->from,
req->to);
case RESERVE:
queue = get_queue_to_check(ticket_queue, req->from, req->to);
while (queue) {
... 阅读全帖
w*s
发帖数: 7227
24
来自主题: Programming版 - Passport isAuthenticated() always returns TRUE
简化版的程序,logout, 按了back key后
isAuthenticated() 还说 "you are logged in".
var express = require('express');
var passport = require('passport');
var net = require('net');
var bodyParser = require('body-parser');
var http = require('http');
var multer = require('multer');
var cp = require('child_process');
var exec = require('child_process').exec;
var sys = require('sys');
var path = require('path');
var util = require('util');
var session = req... 阅读全帖
s*****w
发帖数: 1527
25
Can dryden and other big cow help me to complete this,
Thanks very much !
var express = require("express");
var session = require("express-session");
var app = express();
//Creating Router() object
var router = express.Router();
// Router middleware, mentioned it before defining routes.
router.use(function(req,res,next) {
console.log("/" + req.method);
next();
});
router.use("/user/:id",function(req,res,next){
console.log(req.params.id)
if(req.params.id == 0) {
res.json({"message" : ... 阅读全帖
l*******o
发帖数: 250
26
来自主题: Programming版 - vert.x就是一个小型的eai
not every time, but happened several times at least. Only got issues with
this site.
C:\dev\vert.x>gvim bin\vertx.bat
C:\dev\vert.x>vertx run Server.java
"C:\Java\jdk1.7.0_45/bin/java.exe" -Djava.util.logging.config.file="c:\
dev\vert.x\bin\..\conf\logging.properties" -Dvertx.home="c:\dev\
vert.x\bin\.." -Dvertx.clusterManagerFactory="org.vertx.java.spi.cluster.
impl.hazelcast.HazelcastClusterManagerFactory" -classpath ";c:\dev\
vert.x\bin\..\conf;c:\dev\vert.x\bin\..\lib\*" org.vertx.java.... 阅读全帖
n*****t
发帖数: 22014
27
来自主题: Programming版 - 狠偷懒狠偷懒的一个测试
我们蓝翔技校水平差,码的程序肯定错误百出,大家不许笑。
单进程,也不用锁了。5M 票,320M request,原始数据都是偷 memory 的,测试结果是
3 秒不到。request 前 2 bit 是 opcode,最后几位是 ticket ID。
1、我这个没搜空闲票,先声明一下。
2、IO 会多占一点时间,呵呵,不过估计也就多几秒的时间,懒得整太复杂了。
3、HW 就不提了,丢脸,唯一能透露的是 virtualpc
#include
#include
#include
#define SIZE 5*1024*1024
#define LOOPS 64
unsigned char tickets[SIZE];
unsigned long *reqs;
unsigned char *results;
int main() {
int i;
unsigned char op;
unsigned char *ticket;
unsigned long *... 阅读全帖
w*s
发帖数: 7227
28
来自主题: Programming版 - 请教express create session的问题
正在学习session, 看到这个例子,
var sess;
app.get('/',function(req,res){
sess=req.session;
//Session set when user Request our app via URL
if(sess.email)
{
/*
* This line check Session existence.
* If it existed will do some action.
*/
res.redirect('/admin');
}
else{
res.render('index.html');
}
});
app.post('/login',function(req,res){
sess=req.session;
//In this we are assigning email to sess.email variable.
//email comes from HTML page.
sess.email=req.body.email;
res.end('done');
});
我的理解是user login时, ser... 阅读全帖
h*c
发帖数: 45
29
来自主题: Programming版 - 出票正确率的定义,赵,姜请进。
但是你这个不符合我定义的正确性。下面这个例子在你是正确的,但是在我这里不是。
假设有两段(1,2),两座(a,b),3个request。
A: req: 1, res: a
B: req: 2, res: b
C: req: 1-2, res: not available.
对我来讲正确的是:
A: req: 1, res: a
B: req: 2, res: a
C: req: 1-2, res: b
我的问题是:你有没有算法保证找到我所定义的正确性。
s*****a
发帖数: 1269
30
来自主题: _voip版 - gv + sipgate + sipsorcery的问题
check your dialplan, I use SIPGate+GV+SIPSorcery, this one works for me:
http://www.magicjacksupport.com/step-by-step-for-gv-and-sipsoce
#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 = true
sys.Log("call from #{req.Header.From.FromURI.ToString()} to #{req.URI.User}.
")
if sys.In then
# Do your INCOMING call processing customisations here.
if sys.IsAvailable() then
sys.Dia... 阅读全帖
j*****g
发帖数: 463
31
更新:
瞎蒙出来根据区号,选择性使用哪一 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:
=====... 阅读全帖
a********2
发帖数: 2561
32
来自主题: Automobile版 - 福特野马V6 怎么样
嗯,这是有点麻烦。我用我的USAA账号和LA地区的邮编在USAA上查了一下,为了省事我
存了一个截屏图片,配合这个图片我给你说说哈。
每一项option都有个说明。主要就是三项,REQ,N/A,和 -inc。
REQ就是先决条件,就是说要想得到这个option,得先满足REQ要求的配置。
例如:BREMBO BRAKE PKG的REQ是44x manual trans,就是说想配BREMBO BRAKE
PACKAGE就必须选手动变速器,自动的就不行。
再比如hood and side stripes的REQ是400A,就是premium的基本版,如果你选了401A
或是402A(GT/CS),就不能选这个hood and side stripes。(不过402A有自己独特的
stripes)
N/A就是不兼容啦。还是以brembo brake package来说,这个就N/A with 402A,也就是
说如果你选择402A package,就没有brembo brake package 了。
再比如列表最上方的几个轮毂的option,也都是不给402A选配的。
-inc就是说明这个... 阅读全帖
f****a
发帖数: 4708
33
来自主题: WmGame版 - 今天买了一个东东
w. Sir Pohl Sanbert trades dune borrow jaws for
• Cane (chaos dmg:11-22, req. 9 illusion magic)
• Grim cesta (energy+12, req. 9 death magic)
• Flame artifact (energy+12, req. 9 fire magic)
• Divine symbol (energy+12, req. 9 divine magic)
• Battle axe (slashing dmg:6-28, req. 9 axe mastery)
g***l
发帖数: 2753
34
来自主题: Programming版 - 问个node.js的问题
学着自己建一个node.js的web server,用来接收post过来的数据,发现同一个post在
submit以后,nodejs server有时间能收到,有时间根本收不到,用inspector查了一下
,Network里面也看不见这个post的动作,但是log显示所有的form.submit()都已经执
行了。无论是form还是node.js这边都没有报错。请问如何查出这个bug?
贴一下server的code,就是从网上抄的很简单的。
http = require('http');
fs = require('fs');
server = http.createServer(function(req, res) {
if (req.method == 'POST') {
console.log("POST");
var body = '';
req.on('data', function(data) {
body += data;
});
req.on('end', ... 阅读全帖
l***h
发帖数: 9308
35
那就是以下这样,明天试试
另外,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********e
发帖数: 2284
36
来自主题: JobHunting版 - 我们公司在招软件工程师 (转载)
【 以下文字转载自 Carolinas 讨论区 】
发信人: JerryMouse (Jerry), 信区: Carolinas
标 题: 我们公司在招软件工程师
发信站: BBS 未名空间站 (Thu Feb 18 10:00:57 2016, 美东)
我熟悉的一个team同时开招四个职位。详情请看web site.
感兴趣的可以和我站内联系。
The positions are:
• Systems Developer II, ETL, Support Operations Team, Req ID 129826
• Systems Developer, ETL, Support Operations Team, Req ID 129341
• Systems Developer, SOA, Support Operations Team, Req ID 129827
• Associate Systems Developer, ETL, Support Operations Team, Req ID
129... 阅读全帖
w****a
发帖数: 710
37
Instagram缺人缺人~~
职位:
Software Engineer (MPK & NYC)
https://www.instagram.com/about/jobs/req/a0IA0000006cPYBMA2/
Product Manager
http://www.instagram.com/about/jobs/req/a0I1200000JIbgSEAT/
Product Designer
https://www.instagram.com/about/jobs/req/a0I1200000JIc0HEAT/
Product Researcher
https://www.instagram.com/about/jobs/req/a0I1200000JIc0HEAT/
Data Scientist, Analytics
https://www.facebook.com/careers/jobs/a0I1200000JIWQvEAP/?q=data%20scientist
只要4+年工作经验或者是PHD。
欢迎找我内推。谢谢!!!请站内联系。
J********e
发帖数: 2284
38
【 以下文字转载自 Carolinas 讨论区 】
发信人: JerryMouse (Jerry), 信区: Carolinas
标 题: 我们公司在招软件工程师
发信站: BBS 未名空间站 (Thu Feb 18 10:00:57 2016, 美东)
我熟悉的一个team同时开招四个职位。详情请看web site.
感兴趣的可以和我站内联系。
The positions are:
• Systems Developer II, ETL, Support Operations Team, Req ID 129826
• Systems Developer, ETL, Support Operations Team, Req ID 129341
• Systems Developer, SOA, Support Operations Team, Req ID 129827
• Associate Systems Developer, ETL, Support Operations Team, Req ID
129... 阅读全帖
i****a
发帖数: 36252
39
来自主题: TVGame版 - 没人讨论PS3的暗黑破坏神3?
二手游戏 inferno helm DLC代码已被用。 除了 25%的EXP 头铠, 无用的翅膀和染料,
这 DLC 还有别的吗?
包括这些吗?
-Hero's Journey (shoulders, lvl1 req.)
-Leah's Ring (ring lvl1 req.)
-Drake's Amulet (amulet, lvl1 req.)
-Leoric's Gauntlets (hands, lvl30 req.)
c**t
发帖数: 2744
40

use HTTP::Request;
$req = HTTP::Request->new(POST => "...");
$req->content_type('application/x-www-form-urlencoded');
$req->content("select=AMC");
$resp = $ua->request($req);
if ($resp->is_success){
}
else{
}
h****g
发帖数: 772
41
http://www.tutorialspoint.com/python/python_cgi_programming.htm 'filename'
系统是debian squeeze, python 2.6.6, apache2
错误信息如下
Phase: 'PythonHandler'
Handler: 'mod_python.publisher'
Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 1537,
in HandlerDispatch
default=default_handler, arg=req, silent=hlist.silent)
File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line 1229,
in _process_target
result = _execut... 阅读全帖
b**********8
发帖数: 239
42
多谢高人指点.The updated script works fine under Python 2.7. But it will
still fail if runing it under Python 3.2 after converting. (I guess it
might be related to different handling for header info of request in 3.2.
But I am not sure). Is there anything wrong with following script ?
多谢了!

Code :
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import urllib.request, urllib.parse, urllib.error, urllib.request, urllib.
error, urllib.parse, http.cookiejar
#from bs4 import *
username = 'id'
password = ... 阅读全帖
z****e
发帖数: 54598
43
来自主题: Programming版 - Python Concurrency 主流是用啥
为什么那么在意主流?
js是主流?
vert.x就可以给你搞python
import vertx
server = vertx.create_http_server()
@server.request_handler
def handle(req):
filename = "index.html" if req.uri == "/" else req.uri
req.response.send_file("webroot/" + filename)
server.listen(8080)
http://en.wikipedia.org/wiki/Vert.x
N******K
发帖数: 10202
44
来自主题: Programming版 - 又愿意做练习题的吗?
[req->train][req->class][indexof(req->from, req->to);
是个什么东西
z****e
发帖数: 54598
45
来自主题: Programming版 - 用python写多线程。刘姥姥都笑了
因为所有的辅线程都是单向的嘛
一个req塞入整个thread的周期就结束了
以后有req来,就重新建一个thread
你是不是要担心new一个object需要的代价?
放心,java在我电脑上测试,一秒可以new大概5w个thread对象
如果是server的话,就更强大了
没有任何理由说辅线程堵在这里
只有一个主线程
只有可能主辅线程之间争抢lock
要么主等辅,要么辅等主
而无论主辅都不会占用lock,必然释放lock
辅线程因为跟req绑定,所以只负责将command放到map上,就不管了
所以是单向的,致于客户端的output,那是主线程发送的req到客户端上
所以并不是一个thread绑定一个客户端,你的构架有问题,当然会有lock的冲突了
b********0
发帖数: 62
46
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end("");
}).listen(8080);
函数里不是这个req res成对的么 根据req给res返回就行了啊 不会混的啊
如果是要区分用户的话
response.writeHead(200, {
'Set-Cookie': 'key=value',
'Content-Type': 'text/plain'
});
不同的用户给个不同的value就行了 然后parse req就可以区分用户了
f*****w
发帖数: 2602
47
入门问题,肯定是我什么地方理解错了 但是不明白为啥
这样的两行代码
console.log('req.body:' + JSON.stringify(req.body))
console.log('email:' + req.body['email'])
输出是:
req.body:{"body":{"email":"[email protected]
/* */"}}
email:undefined
我不明白为什么 ,明明我在body的内容里面是有email这个属性的。而且我尝试了其他
的reference的方法,都是说undefined
请问这是为啥啊?
1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)