月归档:四月 2007

如何在淘宝网上买东西 (防上当等心得)

最近一年来我在淘宝网上买了好些东西。 总得感觉很不错。
1.方便。 网上东西比较方便。也不用出门,快递送货上门。
2.齐全。 网上东西比本地市场全面。 很多东西深圳上海有,重庆找不到。
3.便宜。网上价格透明,竞争激烈,所以便宜比市面便宜。 特别是水货数码产品。
当然也有不好的地方,如不能把实物拿上手上端详。 东西送到家里发现跟现有东西不兼容等。 不过跟卖家说好的话,是可以退货的。
说正题, 怎样防止上当:

1.找个注册早的卖家。 骗子大多在昨天或一个月前注册的。 找个注册一段时间的卖家,比较可靠。
2.找一个星级比较高的卖家。星级高说明卖家卖的东西多。 成交数为0的最好不要。 成交数太少的也比较可疑。 最好找个成交数50以上。 还要看看成交的都是什么东西。不上1元的Q币成交几十个后要以超低价卖给你热门手机,你也要当心。如果卖家在短期内达到很高的星级,有可能是作弊实现的,你可以查看一下给他/她评价过的买家情况。(正常情况下买家星级渗杂不齐,有的高星级的,有的低星级的,而作弊卖家的买家大多是统一的,并且是重复的一心用户,并且基本上所有买家都是在成交后短时内给卖家好评的,没有或基本没有在默认45天后系统给出好评的。)
3.找一个信用高的卖家。 星级高只说明卖家做个很多交易,不能说明服务质量。 信用百分比则说明卖家的服务。 最好是100%,起码也要95%以上的。如果卖家信用不到100%, 查一下交易中评和差评的买家评论。看看他们是什么原因不给卖家好评的。
4.找一个和卖家同类产品交易成功过的买家交谈一下,问问他买到的商品质量如何。
5.购物前和卖家讲好服务事项和东西质量。 买二手的东西时一定要先问清楚东西有没有缺陷。
6.不要贪大便宜。 市价3000的热门手机新机500给你,说原因是水货, 千万不要相信。 上当也要上些实在点的。 说出去让人笑话。机子真有的话也一定有什么大问题。
7.使用支付宝。无论什么情况下也不要先直接给卖家打款。

发表在 其它 | 一条评论

Learning Javascript 3

with "Visual QuickStart Guide javascript and Ajax for the Web, Sixth Edition"

Chapter 3. Language Essentials

Arrays
var newCars = new Array("Toyota", "Honda", "Nissan");
newCars[2] returns "Nissan"

Loop
     for (var i=0; i<24; i++) {
        var newNum = Math.floor(Math.random() * 75) + 1;

        document.getElementById("square"  + i).innerHTML = newNum;
     }

var newNum;
     do {
        newNum = colBasis + getNewNum() + 1;
     }
     while (usedNums[newNum]);
remember that the do block of code always gets executed, whether the while check evaluates to true or false.

switch/case
function saySomething() {
     switch(this.value) {
        case "Lincoln":
           alert("Four score and seven years ago…");
           break;
        case "Kennedy":
           alert("Ask not what your country can do for you…");
           break;
        case "Nixon":
           alert("I am not a crook!");
           break;
        default:
     }
}
we've done everything we want to do, and so we want to get out of the switch. In order to do that, we need to break out. Otherwise, we'll execute all of the code below, too.
The default section is where we end up if our switch value didn't match any of the case values. The default block is optional, but it's always good coding practice to include it, just in case (so to speak).

Detecting Objects
if (document.getElementById) {
 xxxxxxxxxxxxx
}
 else {
        alert("Sorry, your browser doesn't support this script");
}

browser detect
Apple's Safari browser claims that it is a Mozilla browser, even though it is not. And some browsers, such as Safari and Opera, allow you to set which browser you want it to report itself as.
The same goes for attempting to detect which version of javascript a browser supports. We strongly suggest that you do not use these detection methods, and use object detection instead.

try/throw/catch
function initAll() {
     var ans = prompt("Enter a number","");
     try {
        if (!ans || isNaN(ans) || ans<0) {
            throw new Error("Not a valid number");
        }
        alert("The square root of " + ans + " is " + Math.sqrt(ans));
     }
     catch (errMsg) {
        alert(errMsg.message);
     }
}

Once an error is thrown, javascript jumps out of the TRy block and looks for a corresponding catch statement. Everything between here and there is skipped over.
If no error was thrown, the code inside the catch will never be executed.

This's the end of my learning javascript program.

发表在 站长文档 | 留下评论

寻重庆二胡家教老师

本人想学二胡,寻二胡家教老师一名。 有意者请回复本文,留下联系方式。

发表在 其它 | 3 条评论

三峡好人 2006

三峡好人 2006

http://www.imdb.com/title/tt0859765

这是电影? 上回《小武》我被贾樟柯用一个发郎妹骗了。 这回赵涛虽然漂亮, 但我实在受不了。
贾樟柯是在作弊。

6

电影介绍:
http://www.filmcenter.com.cn/ypjs_sxhr.htm

发表在 电影评论 | 留下评论

那小子真帅 (He Was Cool) 2004

那小子真帅 (He Was Cool) 2004

http://www.imdb.com/title/tt0415819/

不但韩国美女相像,今天发现韩国的帅哥我也是分不清名字了。

看的时候很有味, 但回头一想还是和普通的韩剧一样, 没有故事。 男女主角反复分分合合。。。
还好双方似乎都始终相爱, 看着让人感觉温馨。

6

发表在 电影评论 | 一条评论

Snakes On A Plane 2006

Snakes On A Plane 2006

http://www.imdb.com/title/tt0417148/

美国动作灾难片, 没什么说的,就看个刺激!

6

发表在 电影评论 | 留下评论

头师父一体(My Boss My Hero) 2001

头师父一体(My Boss My Hero) 2001

http://www.imdb.com/title/tt0301214/

韩国喜剧总感觉远离生活。 电影里的动作都那么做作。
讲一个黑帮老大为了应付知识时代到高中去取得高中文凭的故事。 算是韩片只比较有故事的了。 而且故事充满了韩式的创新元素。
要是借这个故事开发, 将它变成一部校园版的《Schindler's List》那就太酷了。
电影的打斗场面感觉很是不错。 海报上右边那个男子在打斗场面中动作很酷。 就是不太高大, 不然可以演关羽。
5

发表在 电影评论 | 留下评论

Learning JavaScript 2

with "Visual QuickStart Guide javascript and Ajax for the Web, Sixth Edition"

Chapter 2. Start Me Up!
Scripts can be put in one of two places on an HTML page: between the <head> and </head> tags (called a header script), or between the <body> and </body> tags (a body script).
        <script language="javascript" type="text/javascript">
          document.write("Hello, world!");
       </script>

internal scripts

external script, a separate file that just contains javascript.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
     <title>My second script</title>
     <script language="javascript" type="text/javascript" src="script02.js">
     </script>
</head>
<body bgcolor="#FFFFFF">
     <h1 id="helloMessage">
     </h1>
</body>
</html>

script02.js:
window.onload = writeMessage;
// Do this when page finishes loading
/*
a function shown with parentheses means that the function is being called, right then and there. When it's without parentheses, (as it is here) we're assigning it to the event handler, to be run later when that event happens.
*/
function writeMessage() {
     document.getElementById("helloMessage"). innerHTML = "Hello, world!";
}

<noscript>
<noscript>
     <h2>This page requires javascript.</h2>
</noscript>

On non-javascript browsers, a message appears saying that this page requires javascript.

confirm() & alert()
if (confirm("Are you sure you want to do that?")) {
     alert("You said yes");
}
else {
     alert("You said no");
}

condition
(condition) ? truePart : falsePart;
like:
myNewVariable = (condition) ?
truevalue : falsevalue;
or
if (condition) {
        truePart;
}
else {
        falsePart;
}

prompt()
var ans = prompt("Are you sure you want to do that?","");
if (ans) {
     alert("You said " + ans);
}
else {
     alert("You refused to answer");
}
 If a variable is created inside a function, other functions don't have access to it, as it's local to that function. If it's created outside any function, it's global, and everything has access to it.

redirect
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
     <title>Welcome to our site</title>
     <script src="script07.js" type="text/javascript" language="javascript">
     </script>
</head>
<body bgcolor="#FFFFFF">
     <h2 align="center">
         <a href="htmlpage.html" id="redirect"> Welcome to our site… c'mon in!</a>
     </h2>
</body>
</html>

window.onload = initAll;
function initAll() {
     document.getElementById("redirect"). onclick = initRedirect;
}
function initRedirect() {
     window.location = "jspage.html";
     return false; //The return false says to stop processing the user's click, so the href page doesn't get loaded.
}
On first glance, we might think that we could just set the onclick handler globallythat is, as the page is loadingbut we can't. There's a chance, particularly for a large and complex page, that the browser will not yet have come across that redirect id, and if that happens, javascript won't be able to assign the onclick handler. Instead, we have to wait until the page has completed loading, and that's done via onload.

action after the user clicks a link
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
      <title>Welcome to our site</title>
      <script src="script08.js" type="text/javascript" language="javascript">
      </script>
</head>
<body bgcolor="#FFFFFF">
      <h2 align="center">
        Hey, check out <a href="
http://www.pixel.mu/" id="redirect">my cat's Web site</a>.
      </h2>
</body>
</html>

window.onload = initAll;

function initAll() {
     document.getElementById("redirect"). onclick = initRedirect;
}

function initRedirect() {
     alert("We are not responsible for the content of pages outside our site");
     window.location = this; //THIS!!!
  /*The javascript keyword this allows the script to pass a value to a function, solely based on the context where the keyword is used.*/
     return false;
}

document.referrer
A referrer page is the page that the user was viewing before the current page, or, in other words, the page the user came from.
function writeMessage() {
     if (document.referrer != "") {
         document.getElementById("referrerMsg"). innerHTML = "I hope you like this page
better than " + document.referrer;
     }
}

Unobtrusive scripting: An approach to scripting Web pages using javascript, in which the behavior of the Web page is kept separate from its content, that is, the HTML is in one file, and the javascript is in another. Additionally, the term "unobtrusive scripting" is used when code is written such that visitors without javascript (or with less-capable browsers) get all the functionality of a site, just with a less-rich user experience.

And finally, this being the real world, we also know that sometimes the simplest way to hammer in a nail is to grab a rock and pound the nail into the wall. This, for instance, is why we used innerHTML back in Script 2.3, even though it's not part of the W3C DOM.

发表在 站长文档 | 留下评论

Learning Javascript

with "Visual QuickStart Guide javascript and Ajax for the Web, Sixth Edition"
By Tom Negrino, Dori Smith
target browsers:
Internet Explorer 6 or later; Firefox 1.0 or later; Netscape 7 or later; all versions of Safari; and Opera 7 or later.

Chapter 1. Getting Acquainted with javascript

What javascript Is
Despite the name, javascript and Java have almost nothing to do with one another.

With Java, a descendant of the C and C++ programming languages, programmers can create entire applications and control consumer electronic devices.
Microsoft dropped Sun's Java from Windows altogether, after creating its own Java-like language, C#.
If javascript isn't related to Java, then why do they have such similar names? It's another example of one of the computer industry's most annoying traits: the triumph of marketing over substance.
and ever since then, writers like us have made good money explaining that javascript and Java are very different things.
This Microsoft version of javascript is called JScript.

What javascript Can Do
 A rollover is an image that changes when you move the mouse pointer over it.
javascript has some limitations built-in, mostly for security reasons:
 1.javascript does not allow the reading or writing of files on client machines. The only exception is that javascript can write to the browser's cookie file.
 2.javascript does not allow the writing of files on server machines.
 3.javascript cannot close a window that it hasn't opened.
 4.javascript cannot read information from an opened Web page that came from another server.

What Is Ajax?
Ajax is shorthand for Asynchronous javascript and XML.
In the larger scheme of things, what's generally referred to as Ajax is the combination of these technologies:
 XHTML
 CSS (Cascading Style Sheets)
 The DOM (Document Object Model) accessed using javascript
 XML, the format of the data being transferred between the server and the client
 XMLHttpRequest to retrieve data from the server

javascript is an object-oriented language
Objects
Properties, Objects have properties.
Methods, The things that objects can do are called methods.
dot syntax
 document.images.name
 forms.elements.radio.click()

The representation of the objects within the document is called the Document Object Model (DOM).
Each of the objects on the tree is also called a node of the tree. If the node contains an HTML tag, it's referred to as an element node. Otherwise, it's referred to as a text node.
Events are actions that the user performs while visiting your page. javascript deals with events using commands called event handlers.
The 12 most common javascript event handlers :
 onabort
 onblur
 onchange
 onclick
 onerror
 onfocus
 onload
 onmouseover
 onmouseout
 onselect
 onsubmit
 onunload

value Types:
 Number
 String
 Boolean
 Null
 Object
 Function
value returned by a function
Variable names cannot contain spaces or other punctuation, or start with a digit. They also can't be one of the javascript reserved words.  javascript is case sensitive.
Operators:
 x + y (Numeric)
 x + y (String)
 x – y
 x * y
 x / y

 x % y Modulus of x and y (i.e., the remainder when x is divided by y)
 x++, ++ x
 (if x is 5, y=x++ results in y set to 5 and x set to 6, while y=++x results in both x and y set to 6. The operator – (minus sign) works similarly.)
 x–, –x
 -x

Assignments:
 x = y
 x += y

  Same as x = x + y
 x -= y
 x *= y
 x /= y
 x %= y

Comparisons:
 x == y
 x != y
 x > y

 If you are comparing strings, be aware that "a" is greater than "A" and that "abracadabra" is less than "be".
 x > = y
 x < y
 x <= y
 x && y
 x || y
 !x

Writing javascript-Friendly HTML
Structure, presentation, and behavior
When split up this way, your sites will contain three types of text files:
 XHTML: content and structure
 CSS: appearance and presentation
 javascript: behavior
CSS:
A <div> is a block-level element, that is, there's a physical break between it and the elements above and below it. A <span> isn't block-level; instead, it's inline, so you can apply it to, for instance, a single phrase within a sentence.
A class identifies an element that you may want to use more than once. An id identifies an element that is unique to that document.

发表在 站长文档 | 留下评论

一个都不能少 1999

一个都不能少 1999

http://www.imdb.com/title/tt0209189/

感觉太平淡了。 这也是这部电影的特色。 电影情节平淡如水。 没有电脑特效, 没有动作特技;再加上没有一个专业演员, 电影的画面平淡如水。说是电影,但更像是偷拍下来的记录片。
唯一让我不平的是那慢慢发现的平淡中夹着的些许让人感动的执着。
7

发表在 电影评论 | 留下评论