Xydw Dot Com

Archive for April, 2008

PHP 正则匹配 特殊元字符

字符 描述
\
将下一个字符标记为一个特殊字符、或一个原义字符、或一个后向引用、或一个八进制转义符。例如,’n’ 匹配字符 “n”。’\n’ 匹配一个换行符。序列 ‘\’ 匹配 “” 而 “\(” 则匹配 “(“。
^
匹配输入字符串的开始位置。如果设置了 RegExp 对象的 Multiline 属性,^ 也匹配 ‘\n’ 或 ‘\r’ 之后的位置。
$
匹配输入字符串的结束位置。如果设置了RegExp 对象的 Multiline 属性,$ 也匹配 ‘\n’ 或 ‘\r’ 之前的位置。
*
匹配前面的子表达式零次或多次。例如,zo* 能匹配 “z” 以及 “zoo”。 * 等价于{0,}。
+ 匹配前面的子表达式一次或多次。例如,’zo+’ 能匹配 “zo” 以及 “zoo”,但不能匹配 “z”。+ 等价于 {1,}。
?
匹配前面的子表达式零次或一次。例如,”do(es)?” 可以匹配 “do” 或 “does” 中的”do” 。? 等价于 {0,1}。
{n}
n 是一个非负整数。匹配确定的 n 次。例如,’o{2}’ [...]

tow php code cost double memory

I got a error to use a 2M string in php code.But the php settings memory limit is 8M.
Fatal error: Allowed memory size of **** bytes exhausted (tried to allocate *** bytes)
Then I check the php code, I find there are some codes cost more memory.
$tmp = “string”.$tmp.”string”;
I change those codes to:
$tmp = “string”.$tmp;
$tmp .= [...]

PHP function to get google PR

<?php
// 3/20/2008 – Updated by Roger Collins (http://www.rogercollins.com/)
// to remove graphing step
//PageRank Lookup v1.1 by HM2K (update: 31/01/07)
//based on an alogoritham found here: http://pagerank.gamesaga.net/
//settings – host and user agent
$googlehost=‘toolbarqueries.google.com’;
$googleua=‘Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5′;
echo getpr(“http://www.xydw.com”);
//convert a string to a 32-bit integer
function StrToNum($Str, $Check, $Magic) {
$Int32Unit = 4294967296; // 2^32
$length = strlen($Str);
for [...]

“Unavailable After” META Tag used in Google

The “unavailable_after” tag will allow you to tell Google when Googlebot should no longer crawl that page. Jill explains that this tag comes in handy when you have a limited time offer promotional page, and on this page, the promotion will expire on a specific date. By using the “unavailable_after” tag, you can tell Google [...]

What is n google update

From: http://www.mattcutts.com/blog/whats-an-update/
(Normally I, you know, think before I post. I’m experimenting with the quick-post-with-very-little-thought technique here.)
What is an update? Google updates its index data, including backlinks and PageRank, continually and continuously. We only export new backlinks, PageRank, or directory data every three months or so though. (We started doing that last year when too many [...]

Google Page Rank Export List History – PageRank – Google PR

2008 Feb 26 TBPR Export: Toolbar Pagerank Export.
Estimated None Feb 26 TBPR & BL Export 47/47
2008 Jan 10 TBPR Export: Toolbar Pagerank Export.
Estimated None Jan 10 TBPR & BL Export 74/74
2007 Oct 28 TBPR Export: Toolbar Pagerank Export.
Estimated Jul 21/2007 Oct 28 TBPR & BL Export 181/181
2007 Apr 30 TBPR Export: Toolbar Pagerank Export.
Estimated Apr 15/2007 Apr 30 TBPR [...]

FIFA Street 3 Cheats Playstation 3

Unlockable: Hidden Teams

To unlock the hidden teams listed below, fulfill the requirement listed. (All are unlocked via the FIFA Street Challenge mode).
The Blasters
– Win Forty Games
The Champions
– Win the Champion Challenge
The Classics
– Win the Classic Challenge
The Predators
– Win the Adidas Challenge
The World Stars
– Win the All-Star Challenge

50 cent lyrics

Curtis (2007)
All Of Me
Amusement Park
AYO Technology
Come & Go
Curtis 187
Fire
Follow My Lead
Fully Loaded Clip
Hustler’s Ambition
I Get Money
I’ll Still Kill
Intro
Man Down
Movin’ On Up
My Gun Go Off
Peep Show
Smile (I’m Leavin’)
Straight To The Bank
Touch The Sky
[Reviews:View - Post] – [Top]
Get Rich Or Die Tryin’ (Soundtrack) (2005)
Best Friend
Born Alone, Die Alone
Don’t Need [...]

I updated Best lyrics new style(CSS Tab Style)

http://www.bestlowes.com/
http://jp.bestlowes.com/
The colors choosed is based on a TM design theme. I rebuild all the theme, and use more css, div replace tables and images. You see the menu style is it cool? The are only based on css, no images.
The code writed by me:
#nav {width: 900px;margin: 0 auto;height: 39px; line-height:normal;}
#nav ul {list-style:none;}
#nav li {display:inline; margin:0; [...]

Javascript scrollbar

http://www.n-son.com/scripts/jsScrolling/jsScrollbar.html
it is a very good and useful scripts.

Preparation
Before initializing the scrollbar, you must create a jsScroller object. So if you haven’t, follow the previous tutorial and find out how!
First thing is the HTML:
<div id=”Scrollbar-Container”>
<div class=”Scrollbar-Up”></div>
<div class=”Scrollbar-Down”></div>
<div class=”Scrollbar-Track”>
<div class=”Scrollbar-Handle”></div>
</div>
</div>
Again, “Scrollbar-Container” can be change to anything you want, you just need to be able reference this element [...]