月歸檔:四月 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

發表在 電影評論 | 留下評論