1. synchronized
If two threads are using the same function( here we use output to print out string) of another instance, if we want to make sure that these two threads are not disturbing each other.
...
分类:
其他好文 时间:
2014-05-15 11:14:14
阅读次数:
389
题目链接:http://poj.org/problem?id=3469
Dual Core CPU
Time Limit: 15000MS
Memory Limit: 131072K
Total Submissions: 18147
Accepted: 7833
Case Time Limit: 5000MS
...
分类:
其他好文 时间:
2014-05-15 06:23:05
阅读次数:
271
1.相关数据表
Score表
[User]表
SQL语句如下:
--查询出各科成绩最好的学生信息
--自连接
--SELECT TOP 1 * FROM Score B WHERE B.ScoreName = '数学' ORDER BY B.Score DESC
SELECT A.ID,U.Name,A.ScoreName,A.Score
FROM Score A,[Use...
分类:
数据库 时间:
2014-05-15 05:02:05
阅读次数:
477
第一次使用ModelAdmin.date_query,在admin.py中添加后,出现了这样的错误
ImproperlyConfigured exception (pytz isn't installed)
使用以下命令安装pytz之后,问题依然没有解决
$sudo pip install pytz
根据搜索结果,原来需要把settings.p中的USE_TZ = True修改为USE_T...
分类:
其他好文 时间:
2014-05-15 03:42:23
阅读次数:
224
HOWTO Use Python in the web — Python v3.0.1
documentationmod_python?People coming from PHP often find it hard to grasp how
to use Python in the web. T...
分类:
编程语言 时间:
2014-05-14 22:31:33
阅读次数:
401
描述把文本读出的API,在手机上测试知识支持英文,中文库应该没有所以不支持
/*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exce...
分类:
移动开发 时间:
2014-05-14 21:34:49
阅读次数:
435
还没有处理lambda、上下文等,有待完善。
main
{
for
putsl(eval(getsl))
}
rstr eval(rstr s)
{
s=tokenize(s)
v=s.split(' ')
if v.get(0)!='('
return v.get(0)
next=find(v.sub(2))+2
switch v.get(1)
case '+'
r...
分类:
其他好文 时间:
2014-05-14 15:32:34
阅读次数:
323
CoinsTime Limit:3000MSMemory Limit:30000KTotal
Submissions:27580Accepted:9335DescriptionPeople in Silverland use coins.They
have coins of value A1,A2,...
分类:
其他好文 时间:
2014-05-14 11:52:46
阅读次数:
270
net use与shutdown配合使用,本机重启远程服务器
今天服务器出现问题了,能ping通,但就是远程登录服务器后,服务器无法响应。
在本机测试发现ftp服务可以使用,于是就想通过ftp就行重启服务器。可是倒弄了半天,也没有弄好。
唉,只能放弃此想法。另谋他法了,记得曾经在一篇文章读到过关于通...
分类:
Web程序 时间:
2014-05-14 11:01:38
阅读次数:
399