由买买提看人间百态

topics

全部话题 - 话题: invalidate
首页 上页 1 2 3 4 5 6 7 8 9 10 (共10页)
g*****g
发帖数: 1067
1
来自主题: Joke版 - 川普被起诉了! (转载)
【 以下文字转载自 USANews 讨论区 】
发信人: ggggggg (星光小妹), 信区: USANews
标 题: 川普被起诉了!
发信站: BBS 未名空间站 (Tue Mar 6 23:37:03 2018, 美东)
http://www.foxnews.com/politics/2018/03/06/stormy-daniels-sues-trump-says-hush-agreement-is-invalid-because-didnt-sign-it.html
Stormy Daniels sues Trump, says 'hush agreement' is invalid because he didn'
t sign it
川普的傻逼律师是活雷锋,川普操逼,他付钱,13万。
g*****g
发帖数: 1067
2
【 以下文字转载自 USANews 讨论区 】
发信人: ggggggg (星光小妹), 信区: USANews
标 题: FOXNEWS:川普被起诉了(版主您别删了)
发信站: BBS 未名空间站 (Wed Mar 7 20:44:12 2018, 美东)
http://www.foxnews.com/politics/2018/03/06/stormy-daniels-sues-trump-says-hush-agreement-is-invalid-because-didnt-sign-it.html
Stormy Daniels sues Trump, says 'hush agreement' is invalid because he
didn't sign it.
川普的律师是活雷锋,川普操逼,他付钱,13万。
s********n
发帖数: 4346
3
【 以下文字转载自 WaterWorld 讨论区 】
发信人: spinozafun (花脚猫), 信区: WaterWorld
标 题: The real reasons why people are against gay marriage
发信站: BBS 未名空间站 (Sat Jun 9 21:43:39 2012, 美东)
The real reasons people oppose gay marriage
So far, we've examined the reasons everyone give for opposing gay marriage.
Let's examine now the real reasons people oppose it, even fear it:
1. Just not comfortable with the idea. The fact the people aren't
comfortable with the idea stems primarily from the fact that for many years,
... 阅读全帖
L*********n
发帖数: 2203
4
来自主题: Love版 - 中国人在么美国怎么离婚?
if(agree(you) && agree(TA) && PaperWork(you, TA))
{
Divorce(you, TA);
}
void Divorce(Person P1, Person P2)
{
P1.marriage.invalidate(P2);
P2.marriage.invalidate(P1);
P1.single=true;
P2.single=true;
}
n*********0
发帖数: 925
5
http://www.glorypress.com/devotional/FaithAndLifeOneYearBook.asp?bid=1
忍耐奔跑
经文: 「……存心忍耐,奔……」(来十二1)
「…..存心忍耐,奔……」是一件非常困难的事情。 「奔」的时候,常是缺
乏「忍耐」的时候;因为「奔」的时候,常是急急想达到目的的时候。我们平常说起「
忍耐」,立刻就会联想到「静止」──一幕天使守护病榻的图画。然而我以为静止的忍
耐,并不是最难做到的忍耐。
我相信有一种忍耐,更难做到--就是那同时能「奔」的忍耐。固然,在悲伤
的时候不动,在不幸的时候不言,需要极大的忍耐;可是我知道一件事,需要更大的忍
耐:就是在袭击之下继续工作──心中负着重压,仍不停止往前「奔」;灵里深感痛苦
,仍然勉力尽职。这才是基督的忍耐!
许多时候,上帝要我们学习忍耐,不是在床上,乃是在街上。上帝要我们埋葬
我们的悲哀,不是在寂静中,乃是在活动中──在贸易中、在工场中、在交际的时候、
在帮助别人的时候。没有一种埋葬比这种埋葬更难;可是这就是所谓「…..存心忍耐,
奔……」... 阅读全帖
s********b
发帖数: 3
6
来自主题: TrustInJesus版 - 再来提问一个信奉的问题

回应:
一、注意“长老”不是“老年人”可能是年轻人或中年人。请长老抹油祷告是很正常的
,任何相信圣经的教会都会有人相信并实践的。
二、我不清楚怎样解释‘“圣经”“新约”明确要求女人在教会要“闭口不言”’。
我不知道这个教导是不是绝对的,或“明确”。
例如,哥林多前书十一章,
4 凡男人祷告或是讲道(讲道或作说预言下同),若蒙着头,就羞辱自己的头。 5 凡
女人祷告或是讲道,若不蒙着头,就羞辱自己的头。因为这就如同剃了头发一样。 6
女人若不蒙着头,就该剪了头发。女人若以剪发剃发为羞愧,就该蒙着头。
这些经文意为,女人可以讲道(先知预言)只有蒙头(要不就剪头发)就可以了。与哥
林多前书十四章34-35节的教导有异。我没时间具体查原文希腊文怎么写的。
在网上找到一篇有关文章。(比较长)
http://www.ntrf.org/articles/article_detail.php?PRKey=16
Correctly Interpreting 1 Corinthians 14:33b-35 (Part 1&Part 2)
by Steve Atkerson
If you ever wis... 阅读全帖
j*******7
发帖数: 6300
7
来自主题: TrustInJesus版 - Jesus vs the Horus Mythology
Is Jesus Simply a Retelling of the Horus Mythology?
What if I told you there was once an ancient religion whose God was
conceived by a virgin named Meri and had a stepfather named Seb (Joseph)?
What if I told you this God was born in a cave and his birth was announced
by an angel, heralded by a star and attended by shepherds? He attended a
special rite of passage at the age of twelve (although the ancient texts
describing this God are silent about His life from the age of 12 to 30). At
30 years ... 阅读全帖
p*******y
发帖数: 18288
8
来自主题: PKU版 - 玩过xml file的进来看一眼
我在公司做了点东西,拿移动硬盘拿回来想接着做,发现所有file都变成.xml了,程序
,data,excel表,全xml了,悲催的是啥都打不开,这xml不是text based的么,按说
wordpad啥的该就能打开,结果连xml editor都打不开,说,
A name was started with an invalid character. Error processing resource
比如说这个吧,
'file:///J:/pp_Apr2011/Results/lgep_lwr2/rbym.xls...
(IE address 栏里显示 J:\pp_Apr2011\Results\lgep_lwr2\rbym.xls.XML)
这个哪儿就invalid了呢
简单google下,solutions看起来无边无际,有人明白咋回事么
c*********n
发帖数: 2120
9
来自主题: Apple版 - problems with my iphone's signal?
Sorry I can not type in Chinese now!
I bought my iphone 4s about 1 week ago and it has been working very good in
TX. I am in Charleston these days, and it had several problems since this
morning.
Somehow it stared to show "Invalid SIM" this morning. I did not pay too much
attention as I thought it might be weak signal. However, I think I can
still check my Emails at that time. In the afternoon, I took a ferry to an
inland and it has no signal at all. All my other friends's phones had signal
, a... 阅读全帖
y*******d
发帖数: 1440
10
求助,求助。万能的果版啊,再问一个问题,困扰着我。
最近二手版买了个用了3个月的att iphone 4, 卖家说gevey卡贴解锁的。
可是,我自从第一次把t-mobile sim card剪掉,放进去,按照哪些步骤,112,air
mode on/off等,有t-mobile信号,正常。过了一两天,电耗完了,机器自动关机了。
就充电。
之后再重启,继续出现那些卡贴解锁的步骤,同样再做,就完全不行了,一直提示" no
service"或者不断air mode on/off后,换成"invalid sim". 剪掉了3张t-mobile sim
card,有一张刚激活,肯定是好的sim, 都一样症状。中间,自从第一次失败,我就把
3g, location service等off, 后来还reset all content and settings几次。
最新激活这张,本来信号能出来,过了不到一分钟,信号缩成一格,自动又searching,
就变成"invalid sim"
现在怎么办啊?怎么能找出来t-mobile的信号啊???
不知道以前ios版本多少,现在的ios版本是5.0.1,... 阅读全帖
m**********r
发帖数: 507
11
来自主题: Apple版 - A版6s 不能 用S家的sim 卡
今天看到local 苹果店里有iphone 6s 64G 玫瑰金 ATT现货,就匆忙赶去local店里买
了。全价机,没开封就拿回来了
取消了网上订的tmobile 版(estimated shipping 10/9-10/14)
拿到手后用S家卡激活,左上角有S家3G信号,有LTE信号,看着一切正常,并且iTunes
上也显示 your iPhone has been unlocked (开心!)
但是还没有登录完Apple ID, 就显示 sim card has been locked ,左上角也变成了
invalid sim card. 让重启~
重启之后前5min 还是能搜到S家3G,LTE, 过5分钟又显示invalid sim card....
不!开!森!
Sprint 是不是不光自己家机器上锁,同时sim卡也上锁!??
真流氓~!
好在马上我的tmobile sim卡就要寄到了,赶紧踹了S家吧~~!
这个A版的用tmobile应该没问题吧
w******i
发帖数: 1476
12
error message: invalid operation
我做了一个简单query, 数据是based on以前两个queries(subqueries)的results. 格式
很简单, 大概是:
SELECT SUBQUERYTABLE1.*, SUBQUERYTABLE2.*
FROM SUBQUERYTABLE1 LEFT JOIN SUBQUERYTABLE2
ON SUBQUERYTABLE1.PERSON_ID=SUBQUERYTABLE1.PERSON_ID;
前两天这个query一直都run得好好的, 今天在其中一个subquery里加了一个field,
subqueries都正常运行, 可是最后一个query却出现"Invalid Operation"
VB有check过,都有必需的references...
希望我把事情说清楚了. 到底是什么原因? 有没有人知道? 万分感谢!
w******i
发帖数: 1476
13
来自主题: Database版 - Codes Re: 求教: Join 两个query (data)
i tried it and it could NOT work fine as b4...
the invalid operation msg shows as
"Invalid operation. (Error 3219)
Possible causes:
1. You tried to write to a read-only property. See the Help topic for the
property to determine whether it is read/write.
2. You tried to use a method or property on a type of Recordset object that
the method or property does not apply to. See the Recordset object summary
topic to determine which methods and properties apply to a given type of
Recordset object.
3. Y
P********R
发帖数: 1691
14
来自主题: Database版 - 求教:
SELECT Partid, Description, Price
FROM INVENTORY
WHERE  Price = (SELECT MAX (Price) FROM INVENTORY);
出错,错误码是:
ORA-00911: invalid character
00911. 00000 - "invalid character"
*Cause: identifiers may not start with any ASCII character other than
letters and numbers. $#_ are also allowed after the first
character. Identifiers enclosed by doublequotes may contain
any character other than a doublequote. Alternative quotes
(q'#...#'... 阅读全帖
w**2
发帖数: 724
15
请问@6是什么意思?
我用ssms打开database看了,一切正常。
求救,大谢!
Unhandled Exception: System.Data.Entity.Infrastructure.DbUpdateException: An
error occurred while up
dating the entries. See the inner exception for details. ---> System.Data.
UpdateException: An error
occurred while updating the entries. See the inner exception for details. --
-> System.Data.SqlClient
.SqlException: The incoming tabular data stream (TDS) remote procedure call
(RPC) protocol stream is
incorrect. Parameter 9 ("@6"): The supplied value is... 阅读全帖
l***r
发帖数: 459
16
来自主题: DotNet版 - [转载] .Net Question
【 以下文字转载自 Programming 讨论区,原文如下 】
发信人: macintosh (麦克老狼), 信区: Programming
标 题: .Net Question
发信站: Unknown Space - 未名空间 (Thu Apr 1 11:36:41 2004), 转信
I tried to build a .Net project.
It gave me an error :
Error creating ALink Win32 resources: Error reading icon 'C:\My Project\
SGU\MS\src\GUI\081b.ico' -- The data is invalid.
The interesting thing is that this icon file is in the directory, and I
could open it with no probem. Why it is still invalid?
//bow
d*****s
发帖数: 173
17
来自主题: EmergingNetworking版 - 请教ASA5510 配置
T1给了5个ip 50.20.38.106-50.20.38.110
asa5510 0/0口绑定了地址50.20.38.110,0/1接内部网络
想要从外部通过50.20.38.106访问内部web server 192.168.1.110
我参考cisco文档配置了static nat,但是还是无法访问,请问哪里出了问题,谢谢!
http://www.cisco.com/en/US/docs/security/asa/asa83/configuration/guide/nat_objects.html#wp1119793
asa版本是8.3
附上我的配置
ASA Version 8.3(1)
!
hostname ciscoasa
domain-name default.domain.invalid
enable password b4RZzua6LpNOeJCF encrypted
passwd 2KFQnbNIdI.2KYOU encrypted
names
dns-guard
!
interface Ethernet0/0
nameif outside
security-... 阅读全帖
a***n
发帖数: 262
18
来自主题: EmergingNetworking版 - 请教ASA5510 配置
I did not see the static nat.
apply access-group 100 in outside
then try to use packet-tracer utility

T1给了5个ip 50.20.38.106-50.20.38.110
asa5510 0/0口绑定了地址50.20.38.110,0/1接内部网络
想要从外部通过50.20.38.106访问内部web server 192.168.1.110
我参考cisco文档配置了static nat,但是还是无法访问,请问哪里出了问题,谢谢!
http://www.cisco.com/en/US/docs/security/asa/asa83/configuration/guide/nat_objects.html#wp1119793
asa版本是8.3
附上我的配置
ASA Version 8.3(1)
!
hostname ciscoasa
domain-name default.domain.invalid
enable password b4RZzua6LpNOeJCF encry... 阅读全帖
m**t
发帖数: 1292
19
来自主题: EmergingNetworking版 - 被client的一个项目经理骂了。
on the fast retransmission:
its cause can be from lost/triplicated/invalid acks;
the re-transmission may be seen as duplicated/invalid ack on the peer,
depend on where the packet loss was.
in some MITM attacks, people play with this.
anyhow, re-transmission can be an indication of a problem, it is related to
the problematic acks, slow network/misaligned timer or packet loss etc

architect
t*m
发帖数: 1044
20
一下是我的iptables。端口6500和8443上的服务没法从外网访问。那位高人看下?
Chain INPUT (policy DROP)
target prot opt source destination
DROP all -- anywhere anywhere state INVALID
ACCEPT all -- anywhere anywhere state RELATED,
ESTABLISHED
shlimit tcp -- anywhere anywhere tcp dpt:ssh
state NEW
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere ... 阅读全帖
s*****n
发帖数: 513
21
来自主题: Hardware版 - POGOPLUG安装squeeze出错
U盘已经格式化成以下两个分区:
Disk /dev/sda: 4004 MB, 4004511744 bytes
246 heads, 16 sectors/track, 1987 cylinders
Units = cylinders of 3936 * 512 = 2015232 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 509 1001704 83 Linux
/dev/sda2 510 1987 2908704 82 Linux swap
然后按照http://projects.doozan.com/debian/的步骤安装debian,
报错说:
# Starting debootstrap installation
E: unrecognized or invalid option --no-check-gpg
debootstrap failed.
See ... 阅读全帖
N***1
发帖数: 698
22
来自主题: Internet版 - 这是怎么回事?XP 系统
win xp 系统。
仅仅在上google.com 搜索的时候出现,比如说
输入:CENTRAL CONNECTICUT STATE UNIVERSITY
结果弹出一个小窗口:
Message from Webpage
Error: Invalid pointer
上其他任何网站没有出现这个问题。
请问这是怎么回事啊?
谢谢了!
-----------------看来很多人有类似问题
http://productforums.google.com/forum/m/#!topic/websearch/mGvRg
When I use Google Search, the search results come up and then I get a error
message saying 'Invalid Pointer'. When I try to close the dialog box, it won
't close, just keeps popping up. The only way to close it is to force quit
Internet Exp... 阅读全帖
c*****t
发帖数: 1879
23
I have a question regarding Jelly and other XUL or XAML tools on
error handling. Basically, how they do it.
1. how they handle parse errors. The errors are not syntactic ones
that XML parsers SAX/JDOM detect, but semantic ones like unknown
tags, invalid variables, invalid values, wrong attributes etc.
2. logging.
3. warning/debugging.
I am currently trying to come up a solution to improve CookXml
( cookxml.sourceforge.net )'s error handling, but it would be nice
to know how others doing
i****e
发帖数: 913
24
另外这是有关unchecked/checked exception的讨论
http://www.javapractices.com/topic/TopicAction.do?Id=129
unchecked ex = unrecoverable, for example NPE, IAE
checked ex = recoverable, representing invalid conditions in areas outside
the immediate control of the program (invalid user input, database problems,
network outages, absent files)
(here, database problem is considered as outside of main program logic)
所以Sun的人认为JDBC是side logic, JDBC layer出问题了, main Java program是
recoverable的, 所以就把JDBC搞成checked excepti... 阅读全帖
k****i
发帖数: 101
25
来自主题: Java版 - 今天碰到一个面试题

public static int solveDuplicateElement(Integer[] ar) {
int pos = 0, len = ar.length, bigO = 0;
while (pos < len) {
int slot = ar[pos];
if (slot == pos || slot == len) {
// being in place or invalidated
++pos;
} else {
int next = ar[slot];
if (next == slot) {... 阅读全帖

发帖数: 1
26
来自主题: Java版 - spring mvc 静态文件访问不了
found the following error in catalina log file:
SEVERE [localhost-startStop-1] org.apache.catalina.core.ContainerBase.
addChildInternal ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [
StandardEngine[Catalina].StandardHost[localhost].StandardContext[/wechatEE]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:158)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:724)
at org.apache.catali... 阅读全帖
L***a
发帖数: 108
27
来自主题: Linux版 - 连接到Novell network drive
请问如何从ubuntu里连接Novell network drive?
尝试了ncpmount, 好象总是不对
ndslib.c:1051: Invalid start: 1835008 00010000 00010000 00100006
ncpmount: Invalid server response (-330) in nds login
Login denied.
s********e
发帖数: 4064
28
1、postfix发信OK
可以用telnet发信,从其他计算机也可以,可以发到外部邮箱。
2、postfix本机收信OK
发给local用户的信都可以读,Maildir可用
3、imap OK
courier-imap装了,可以telnet到143端口,login, 可以用我手机的客户端收信。但是不能发,relay error 554
4、postfix不能收外部邮件
Errorcode:550 invalid address
Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the recipient
domain. We recommend contacting the other email provider for further
information about the cause of this error. The error that the other server
returned was: 550 550 阅读全帖
D**a
发帖数: 757
29
来自主题: Linux版 - 求助, XFS盘出问题了。
我的NAS突然之间就当机了, 好像是ROM或者FIRMWARE出了问题,HDD读不出了。 NAS是
个LINUX BASED的盒子,我把硬盘去了出来, 接到了我的VM上,现在是如下情况, 请
问该如何处理? HDD上是所有的照片和文档, 不能格式化。是下面那个1T的盘。
To run a command as administrator (user "root"), use "sudo ".
See "man sudo_root" for details.
lbblmm@lbblmm-VirtualBox:~$ xfs_repair
Usage: xfs_repair [options] device
Options:
-f The device is a file
-L Force log zeroing. Do this as a last resort.
-l logdev Specifies the device where the external log resides.
-m maxmem ... 阅读全帖
A******g
发帖数: 612
30
Lenovo ideapad的电脑,Geforce GTX 660M的显卡,装了bbswitch with lenovo hack,
bumblebee, nvidia官方驱动。
现在是可以用optirun运行CUDA非图形程序,可以用Intel CPU运行图形程序,比较
OpenGL。 但是optirun不能运行图形程序
比如
$ glxsphere没问题
$ optirun glxspheres
Polygons in scene: 62464
Visual ID of window: 0x21
Context is Direct
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 137 (NV-GLX)
Minor opcode of failed request: 4 ()
Resource id in failed request: 0x200002
Serial number of failed request... 阅读全帖
s*****n
发帖数: 513
31
来自主题: Linux版 - POGOPLUG安装squeeze出错 (转载)
【 以下文字转载自 Hardware 讨论区 】
发信人: slinson (slinson), 信区: Hardware
标 题: POGOPLUG安装squeeze出错
发信站: BBS 未名空间站 (Tue Jul 28 08:39:56 2015, 美东)
U盘已经格式化成以下两个分区:
Disk /dev/sda: 4004 MB, 4004511744 bytes
246 heads, 16 sectors/track, 1987 cylinders
Units = cylinders of 3936 * 512 = 2015232 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 509 1001704 83 Linux
/dev/sda2 510 1987 2908704 82 Linux swap
然后按照http://projects.doozan.com/... 阅读全帖
s****y
发帖数: 8
32
来自主题: Programming版 - 引用的几个基本问题,有点糊涂
void f(const int &a) {;}
void fpc(const int* &pa) {;}
void fp(int* &pa) {;}
int main()
{
int* pn, na[2], n = 1;
pn = &n;
f(n); // ok
fpc(pn); // error: invalid initialization of reference of type 'const int*&'
from expression of type 'int*'
fp(pn); // ok
fp(na); // error: invalid initialization of non-const reference of type 'int
*&' from a temporary of type 'int*'
}
请问上面这两个错的原因是什么?
f(n)和fpc(pn)之间有什么区别,除了改成传递指针变量之外
fp(pn)和fp(na)又有什么区别?
多谢指点
t*i
发帖数: 72
33
来自主题: Programming版 - a string define question (c++)
为啥第二个是invalid的
valid define:
const std::string hello = "Hello";
const std::string message = hello + ", world" + "!";
invalid define:
const std::string exclam = "!";
const std::string message = "Hello" + ", world" + exclam;
t****t
发帖数: 6806
34
来自主题: Programming版 - 关于inserter
for vector:
Reallocation invalidates all the references, pointers, and iterators
referring to the elements in the sequence. It is guaranteed that no
reallocation takes place during insertions that happen after a call
to reserve() until the time when an insertion would make the size of
the vector greater than the size specified in the most recent call
to reserve().
for deque:
An insert in the middle of the deque invalidates all the iterators
and references to
g*********s
发帖数: 1782
35
来自主题: Programming版 - purify和valgrind的比较
试了一下purify和valgrind,下面的code报告结果相同,都是两个越界读,两个越界写
,一个申请未释放。那purify的优势在哪里啊?license挺贵的。
另外那个comment掉的巨型静态数组两个都不报。有什么工具能处理这种情况吗?
trace一个memory crash的bug,搞不定啊。这个crash是在系统的new[]里,看上去是内
存分配表被搞乱了。
#include
#include
#include
int main()
{
long *x = (long*)malloc(10);
x[10] = 100; // invalid write.
long y = x[10]; // invalid read.
long z[10];
long w(10);
z[10] = 100; //static array allocated in stack. no boundary check.
y = z[10]; //no boundary check.
z****e
发帖数: 2024
36
class overb{
public:
virtual overb f(){}//invalide covariant type
};
class overd:public overb{
public:
virtual overd f(){}//invalide covariant type
};
再看:
class overb{
public:
virtual overb* f(){}//valide covariant type
};
class overd:public overb{
public:
virtual overd* f(){}//valide covariant type
};
难道overd 不是 overb吗? 这不正好满足type 的 <=关系吗?
1. overd 对应 overb
2. overd* 对应 overb*
请问1, 和 2 , 有什么不一样?为什么一个是Covariant Return Type,另一个不是呢
g*******y
发帖数: 1930
37
implement some kind of invalidation approach similar to the one used for
cache
coherence
a page could be in one of 3 states: shared, exclusive, invalid. state
transition would be stimulated by read/write operation.
r*******y
发帖数: 1081
38
来自主题: Programming版 - string operator +
string library defines these overloaded operator +
string operator+ (const string& lhs, const string& rhs);
string operator+ (const char* lhs, const string& rhs);
string operator+ (char lhs, const string& rhs);
string operator+ (const string& lhs, const char* rhs);
string operator+ (const string& lhs, char rhs);
We know
string s = "hi" + "ji";
is not OK
If compiling this using g++ , I get the error :
invalid operands of types ‘const char [3]’ and ‘const char [3]’ to
binary ‘operator+’
I am a lit... 阅读全帖
t****t
发帖数: 6806
39
来自主题: Programming版 - printf("%s\n", NULL)的结果
你有什么想不通的, 不是都说了the testcase is invalid吗?
invalid的东西你为什么要去想通它?
g*****g
发帖数: 34805
40
来自主题: Programming版 - 为什么java要用setter和getter
http://en.wikipedia.org/wiki/Encapsulation_(object-oriented_pro
Hiding the internals of the object protects its integrity by preventing
users from setting the internal data of the component into an invalid or
inconsistent state
invalid => you may add additional validation code in the method
inconsistent => updated related variables.
n****1
发帖数: 1136
41
来自主题: Programming版 - 支持我的JS OOP观点的文章来了
Closure is an expensive way to get real private variables, isn't it?
var person = function () {
var fullName = "Jason Shapiro";
var reg = new RegExp(/d+/);
return {
"setFullName" : function (newValue) {
if( reg.test(newValue) ) {
alert("Invalid Name");
}
else {
fullName = newValue;
}
},
"getFullName" : function () {
return fullName;
}
}; // end of the return
}(); // Note the '()', this means we're calling the function
// a... 阅读全帖
m**********r
发帖数: 122
42
【 以下文字转载自 DataSciences 讨论区 】
发信人: milkrootbeer (milkbeer), 信区: DataSciences
标 题: 有一个文件夹里有大概1000个文件。我有以下的Python语句调用后出现下面的错误。应该是涉及到特殊字符的问题,我试了其他的方法,都不能解决问题。
发信站: BBS 未名空间站 (Sat May 2 20:09:17 2015, 美东)
有一个文件夹里有大概1000个文件。我有以下的Python语句调用后出现下面的错误。应
该是涉及到特殊字符的问题,我试了其他的方法,都不能解决问题。
DIR = 'C:\Users\Desktop\data\rec.sport.hockey'
posts = [open(os.path.join(DIR,f)).read() for f in os.listdir(DIR)]
x_train = vectorizer.fit_transform(posts)
UnicodeDecodeError: 'utf8' codec can't decode byte 0x80 in positio... 阅读全帖
g*****g
发帖数: 34805
43
来自主题: Programming版 - HOW TO DELETE IN KEY-VALUE STORE
Every row/column has a flag, you mark it as invalid, that's a delete. All
write operations will also invalidate and/or update the cache for given row.

rewrite
and
B
首页 上页 1 2 3 4 5 6 7 8 9 10 (共10页)