Avatar

帮同学宣传一下http://shop57644665.taobao.com/

01. Sowing Season
02. Millstone
03. Jesus
04. Degausser
05. Limousine (MS Rebridge)
06. You Won’t Know
07. Welcome To Bangkok
08. Not The Sun
09. Luca
10. Untitled
11. The Archers Bows Have Broken
12. Handcuffs
13. Luca (Reprise) (UK Bonus Track)

认识 Brand New是从蘑菇镇镇长 Read the rest of this post »

Tagged with: , .
Avatar

帮同学宣传一下http://shop57644665.taobao.com/

偶然看到这张图片,嗯,不错,有此就不再为鲜花的凋零而凄凉。
一台生机盎然的台灯,浪漫的礼物.
哪里能买到呢? Read the rest of this post »

Tagged with: .
Avatar

帮同学宣传一下http://shop57644665.taobao.com/

01.Chinese Democracy
02.Shackler’s Revenge
03.Better
04.Street Of Dreams
05.If The World
06.There Was A Time
07.Catcher In The Rye
08.Scraped
09.Riad N’ The Bedouins
10.Sorry
11.I.R.S.
12.Madagascar
13.This I Love
14.Prostitute

关于Guns N’ Roses我还停留在November Rain和Don’t Cry,这张专辑就不多说了。。

Tagged with: , .
Avatar

帮同学宣传一下http://shop57644665.taobao.com/

在年初尚未消歇的《 集结号 》还在流光深处召唤那些没有名字的英雄,在年末盘点 两点五三亿网民在搜索引擎上不经意留下的足迹- -把数以亿计的点击勾勒下来,他们每天用鼠标在沉默中就已然完成了对2 0 0 8年的全部总结。一张年度搜索 关键词列表比文字更诚恳,比画面更真实,手指的瞬动之后是燃烧着的关切之情,当它冷凝下来就是一部民众自己的历史。

2008年,我们在搜”汶川地震“。每个人都清楚地知道2008年8月8日会发生什么,但是在2008年5月 12日之前没有人知道会有一次地震。我们一起经历了许多第一次,第一次因为地震而降半旗,第一次经历全国哀悼日,第一次处在生死边缘的人们。对于死者来 说,一切都已经结束。而对于生者而言,目睹这自然力最酷烈的一面,面对突如其来的死亡,让所有人重新发现了生命的价值。因为日复一日生活而麻木了的脸上, 终于有了泪水的温暖。地图上消失了一座叫北川的小城,但是那一天之后中国人的数量达到了前所未有的程度—

“汶川”一词在5月12日后搜索量提升了20万倍。仅仅13日上午,有关”地震”的搜索就达到了2710万次,有关”汶川”的搜索达到了495万 次,而组合词”四川地震”的搜索量已达到382万次。各大门户网站和各大社区的首页贴满了寻亲救援帖,这一次,人们不是为了求索知识而来,他们是在搜索一 个个音信全无的亲人,确认一个个悬而未决的幸福家庭,以及生命本身。 Read the rest of this post »

Tagged with: .
Avatar

帮同学宣传一下http://shop57644665.taobao.com/

序章

野兽们的战争把世界末日带来之时
女神飞舞 从天降临
展开光与暗的羽翼
携同致福之赠物

一章

深渊之底
寻找女神赠物的三个男人
然而 战争拆散了他们
其一成为英雄
其一成为流浪者
剩下的一人 成为被捕的俘虏
即使如此
三人的心志仍纠结在一起
约定好再度一起破解谜团
Read the rest of this post »

Tagged with: , .
Avatar

帮同学宣传一下http://shop57644665.taobao.com/

最近有打算在php下实现一个gtalk的机器人,google了一下发现在Google的code站中已经有一个比较成熟的脚本了-XMPPHP

使用非常简单

<?php

// activate full error reporting
//error_reporting(E_ALL & E_STRICT);

include ‘XMPPHP/XMPP.php’;

#Use XMPPHP_Log::LEVEL_VERBOSE to get more logging for error reports
#If this doesn’t work, are you running 64-bit PHP with < 5.2.6?
$conn = new XMPPHP_XMPP(’talk.google.com’, 5222, ‘username’, ‘password’, ‘xmpphp’, ‘gmail.com’, $printlog=false, $loglevel=XMPPHP_Log::LEVEL_INFO);

try {
$conn->connect();
$conn->processUntil(’session_start’);
$conn->presence();
$conn->message(’someguy@someserver.net’, ‘This is a test message!’);
$conn->disconnect();
} catch(XMPPHP_Exception $e) {
die($e->getMessage());
}
?>

我需要的是能够接受我指令的代码,依然带了一个实例程序

修改了下,让他帮我去网站上查询一个城市当天的天气

<?php

// activate full error reporting
//error_reporting(E_ALL & E_STRICT);

include ‘XMPP.php’;

function get_url($city)
{
$url = ‘http://search.weather.com.cn/static/url_gb.php?CityInfo=’;
$url=$url.$city;
#$content = file_get_contents($url);
$ch = curl_init($url);
ob_start();
curl_exec($ch);
curl_close($ch);
$content = ob_get_contents();
ob_end_clean();
$con =htmlspecialchars($content);
$url = strstr($con,’URL’);
preg_match(”(\d+)”,$url,$matches);

$rrr = ‘http://www.weather.com.cn/html/weather/’.$matches[0].’.shtml’;
return $rrr;
}
function get_wether_info($url)
{
#$contents = file_get_contents($url);
$ch = curl_init($url);
ob_start();
curl_exec($ch);
curl_close($ch);
$contents = ob_get_contents();
ob_end_clean();
$w=strstr($contents,’box_contentwea’);
$ww = strstr($w,’strong’);
$sun = substr($ww,7,100);
$next_tag = stripos($sun,’</strong>’);
$wether = substr($sun,0,$next_tag);
$ww = strstr($w,’no_today’);
$ww = substr($ww,0,100);
$next_tag = stripos($ww,’</em>’);
$tem = substr($ww,10,$next_tag-10);
$win=substr($ww,$next_tag+8,60);
$next_tag = stripos($win,’<em>’);
$win = substr($win,$next_tag,60-$next_tag);
$next_tag = stripos($win,’</em>’);
$win = substr($win,4,$next_tag-4);
$info = $wether.’ ‘.$tem.’ ‘.$win;

return $info;
}

ignore_user_abort();
set_time_limit(0);
#Use XMPPHP_Log::LEVEL_VERBOSE to get more logging for error reports
#If this doesn’t work, are you running 64-bit PHP with < 5.2.6?

$conn = new XMPPHP_XMPP(’talk.google.com’, 5222, ‘nonewithme’, ‘×××××××’, ‘xmpphp’, ‘gmail.com’, $printlog=true, $loglevel=XMPPHP_Log::LEVEL_INFO);
$conn->autoSubscribe();

try {
$conn->connect();
while(!$conn->isDisconnected()) {
$payloads = $conn->processUntil(array(’message’, ‘presence’, ‘end_stream’, ’session_start’));
foreach($payloads as $event) {
$pl = $event[1];
switch($event[0]) {
case ‘message’:
print “———————————————————————————\n”;
print “Message from: {$pl['from']}\n”;
if($pl['subject']) print “Subject: {$pl['subject']}\n”;
print $pl['body'] . “\n”;
print “———————————————————————————\n”;
if($pl['body'] == ‘quit’) $conn->disconnect();
$key = “(\Aw )”;
if(preg_match($key,$pl['body']))
{
$len=strlen($pl['body']);
$city = substr($pl['body'],2,$len-2);
$url = get_url($city);
$info = get_wether_info($url);
$conn->message($pl['from'], $body=”\”{$info}\”.”, $type=$pl['type']);
}
else
{
$conn->message($pl['from'], $body=”Thanks for sending me \”{$pl['body']}\”.”, $type=$pl['type']);
}

if($pl['body'] == ‘break’) $conn->send(”</end>”);
break;
case ‘presence’:
print “Presence: {$pl['from']} [{$pl['show']}] {$pl['status']}\n”;
break;
case ’session_start’:
print “Session Start\n”;
$conn->getRoster();
$conn->presence($status=”Cheese!”);
break;
}
}
}
} catch(XMPPHP_Exception $e) {

die($e->getMessage());
}
?>

直接发送”w “+城市名(拼音)/城市zip

如“w shanghai”

Tagged with: , , , .
Page 8 of 8«12345678