New Born

IT男的BLOG

俺家领导指示,暑假要出去旅游,顺便去SB会,也顺便把华东也游一下。所以,我就7月10号晚上出发了,和领导在厦门汇合。
晚上10点,在千钧一发之际,赶上了广州到厦门的班车,卧铺。第一次做大巴卧铺,有点不习惯。整个人就躺在小小的卧铺位置上面,几乎不能转动(要考虑到俺的身材)。不过我竟然也睡着了,醒来已经快到福建了,看到右边是海。终于在7月11号上午9点左右抵达厦门的湖滨汽车站。根据领导指示,我先去鼓浪屿订好的那间旅馆CHECK IN。出了汽车站,就是公交站,很方便的就到了轮渡。从厦门到鼓浪屿是免费的,早上已经是人潮胸涌。我就跟着一大群人,上了轮渡船。
厦门的海水还算比较干净,比深圳大梅沙的好多了,更别说珠江鸟。很快就靠了岸,上到岸,好几个提供导游服务的人围上来招揽生意,俺是做先头部队探情况的,让你们浪费口水了,不好意思。
电话旅馆,照着指示,寻到目的地。环境一般般,领导不甚满意,暂且住下吧。东西放好了,赶紧电话领导汇报情况。俺家领导安排俺在鼓浪屿这边码头等她,领导要亲自寻轮渡过江,不敢抗旨,只好照办。岛内的路都比较窄,弯弯曲曲,幸好路牌指示清晰,迷路是不至于的。在码头附近寻了阴凉处,坐等领导来。
未几,领导电话来了,说已到厦门。一会,领导就到了,领导见到我,狂赞俺变白了,汗。估计是太宅了,加上阳光下的特效。晕。
放下行李,就出去觅食。之前做过功课,就去了林记鱼丸,鱼丸果然好吃,五香也不错。嗯,不过岛上好多鱼丸店,要吃正宗的,还要找对地方。
买了手绘地图,就按图索骥了。鼓浪屿是个好地方,人虽多,却不乱。

看到好几个人对着它照相,我们也未能免俗。但是,其实我们都没进去吃。

日光岩风景。日光岩其实不高,但是不知道为什么把阶梯修得这么陡。

日光岩往厦门岛望过去

缆车和百鸟园。

异国风情

菽庄花园一角,这里是旧主人中秋赏月之地

从菽庄花园望海。真正的无敌大海景。秒杀国内任何楼盘广告。

海边,人,礁石

郑成功像的背面

某处别墅,估计没怎么修理

风琴博物馆外观

南普陀山上望厦大

评论: 0 | 引用: 0 | 浏览: | Tags: 旅游  厦门  
地址在这里.
原文:
i have managed to have two different android flashes on the hero, tested using VillainROM5.5.0 and SlideVillain1.1.0. it is designed to work with every rom you throw at it. it uses the /system partition for the first rom, the /data partition for the second rom, and two ext partitions for the userdata of each rom.
简单翻译:
我已经用VillainRom5.550和Slidevillain1.1.0测试过了,我可以同时把这两个ROM刷到hero里面。从设计上来说,可以刷任何hero的ROM。它使用system分区保存第一ROM,data分区保存第二个ROM,然后使用SD卡上的两个ext分区来保存用户数据。

评论: 0 | 引用: 0 | 浏览: | Tags: htc  hero  dual boot  
GoogleHelper.zip
需要ROOT权限。只在国内有用,用于对付这个恶劣的网络环境。hosts地址的来源我偷懒了,使用了hiapk的一个服务。


评论: 0 | 引用: 0 | 浏览: | Tags: google  htc  hero  
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[fGetPy]') and xtype in (N'FN', N'IF', N'TF'))
drop function [dbo].[fGetPy]
GO
--创建取拼音函数
create function fGetPy(@Str varchar(500)='')
returns varchar(500)
as
begin
declare @strlen int,@return varchar(500),@ii int
declare @n int,@c char(1),@chn nchar(1)

select @strlen=len(@str),@return='',@ii=0
set @ii=0
while @ii<@strlen
begin
select @ii=@ii+1,@n=63,@chn=substring(@str,@ii,1)
if @chn>'z'
select @n = @n +1
,@c = case chn when @chn then char(@n) else @c end
from(
select top 27 * from (
select chn = '吖'
union all select '八'
union all select '嚓'
union all select '咑'
union all select '妸'
union all select '发'
union all select '旮'
union all select '铪'
union all select '丌' --because have no 'i'
union all select '丌'
union all select '咔'
union all select '垃'
union all select '嘸'
union all select '拏'
union all select '噢'
union all select '妑'
union all select '七'
union all select '呥'
union all select '仨'
union all select '他'
union all select '屲' --no 'u'
union all select '屲' --no 'v'
union all select '屲'
union all select '夕'
union all select '丫'
union all select '帀'
union all select @chn) as a
order by chn COLLATE Chinese_PRC_CI_AS
) as b
else set @c=@chn
set @return=@return+@c
end
return(@return)
end

go

评论: 0 | 引用: 0 | 浏览: | Tags: sqlserver  拼音  
更新历史:
V1.1
修改获取peep程序目录的方法,应该能适应不同的ROM。除非peep程序包名字改了。
自动判断输入的API地址是否包含http://和末尾是否有 /
V1.0
初始版本。

由于众所周知的原因,我们无法直接上Twitter.需要修改peep的配置才能在hero上用。
今天写了个小程序,当做是练手,可自动写入peep的配置程序。PeepHelper_V1.1.zip

PS.暂时只在BeHero+上面测试过。以后再完善吧。
PPS.需要 rooted rom

评论: 0 | 引用: 0 | 浏览: | Tags: htc  hero  peep  
整理一下自己刷过的部分2.1 Rom。而1.5的ROM,我觉得最好使的是Modaco3.2

一.With Sense
1.VillainRom 5.x
移植自Sprint Hero(CDMA),优点是功能全面,速度快。缺点是:只有英文。中文包可在这里找。
2.SlideVillain
移植自MyTouch Slide。也是只有英文。中文包可在这里找。
3.Flzyup@INNOVATIVE ROM 2.3
目前正在使用,移植自BenocharmBeAsia1.1。速度还可以,功能也全。

二.Without Sense
AOSP的ROM,中文支持完美,界面清爽。我也挺喜欢用的。
1.VanillaRom
2.VanillaEclair
3.aHero
几个链接:hero@XDA hero@Modaco HTCPedia VillainRom

评论: 0 | 引用: 0 | 浏览: | Tags: android  htc  hero  eclair  rom  
为什么我会说"又"呢?哎,已经找不到形容词来说它了,一推再推,这次是六月,能在年底出来就算不错了。
近期一直都没时间去研究HERO源码的编译,不过网上也挺多民间ROM可供选择,不过就是会有这样那样的小BUG,HTC不出官方2.1的ROM,民间人士就无法获取HERO的一些硬件驱动。为了卖多一点LEGEND,DESIRE,也没必要这样折磨我们这些老用户吧。
还要吃Eclair,还得等等了。


评论: 0 | 引用: 0 | 浏览: | Tags: htc  hero  eclair  android  


劲歌金曲2010歌词:
iPhone 选了中国联通 十万多个应用 但要上YOUTUBE却连不通
买了房就别紧张 房价会跟着涨 国家要富强 全靠开发商
360 杀毒有360 后台自动运行 多功能全绑定
谷歌受够了审查 网友非法献花 一边有人去喝茶 一边有人吃老妈蹄花
关闭了BTCHINA 美剧还是可以下 我最爱的动画 当属south park
到处都山寨 网站拼命模仿国外
早上六点爬起来 在偷菜 比谁更眼疾手快
备案要 先拍照 前方两百米就到朝鲜半岛
淘宝又不贵 应该多消费 努力工作努力多交税
新闻里体会 和谐社会 看CCAV 幸福感加倍
OH八心八箭 九九八的真钻项链 数量有限三十几件 快拨打订购专线
魔兽选哪家代理 选网易进团就当MT 国服的茶几 摆满了杯具
阿凡达 赢了票房却输了奥斯卡 三国杀 桌游也可以成流行的文化
草泥马 谁给我电脑装 绿坝
国足反赌还没停 赢了韩国三比零
世界杯在临近 小贝却突然伤病 多可惜
Eason去年好忙 跑个不停巡回开个唱 专辑两张 到了年底又是横扫颁奖
看世博 喔 上海人都看周立波 矿难死的又不多 先感谢祖国
汶川海地智利 全球地震在继续
2012要躲到哪里 船票告急 自己学开飞机
六十周年 敏感门前 女兵最养眼 敏感词都笑开颜
春晚王菲 最最美 人气不敌小虎队 韩寒刘谦 博客斗嘴 央视赚够广告费
以上纯属 电脑中毒 谢绝一切形式跨省追捕
想回成都 吃喝嫖赌 八零后要跟得上时代脚步
不要疯狂迷恋我 哥是传说
歌里唱的全都是寂寞

 


评论: 0 | 引用: 0 | 浏览: | Tags:

从网上找到的,在这里记录一下。来源在这里
1.生成插入存储过程

set ANSI_NULLS ON

set QUOTED_IDENTIFIER ON
go
 
 
Create procedure [dbo].[sp_GenInsert]
@TableName varchar(130),
@ProcedureName varchar(130)
as
set nocount on
 
declare @maxcol int,
@TableID int
 
set @TableID = object_id(@TableName)
 
select @MaxCol = max(colorder)
from syscolumns
where id = @TableID
 
select 'Create Procedure ' + rtrim(@ProcedureName) as type,0 as colorder into #TempProc
union
select convert(char(35),'@' + syscolumns.name)
+ rtrim(systypes.name)
+ case when rtrim(systypes.name) in ('binary','char','nchar','nvarchar','varbinary','varchar') then '(' + rtrim(convert(char(4),syscolumns.length)) + ')'
when rtrim(systypes.name) not in ('binary','char','nchar','nvarchar','varbinary','varchar') then ' '
end
+ case when colorder < @maxcol then ','
when colorder = @maxcol then ' '
end
as type,
colorder
from syscolumns
join systypes on syscolumns.xtype = systypes.xtype
where id = @TableID and systypes.name <> 'sysname'
union
select 'AS',@maxcol + 1 as colorder
union
select 'INSERT INTO ' + @TableName,@maxcol + 2 as colorder
union
select '(',@maxcol + 3 as colorder
union
select syscolumns.name
+ case when colorder < @maxcol then ','
when colorder = @maxcol then ' '
end
as type,
colorder + @maxcol + 3 as colorder
from syscolumns
join systypes on syscolumns.xtype = systypes.xtype
where id = @TableID and systypes.name <> 'sysname'
union
select ')',(2 * @maxcol) + 4 as colorder
union
select 'VALUES',(2 * @maxcol) + 5 as colorder
union
select '(',(2 * @maxcol) + 6 as colorder
union
select '@' + syscolumns.name
+ case when colorder < @maxcol then ','
when colorder = @maxcol then ' '
end
as type,
colorder + (2 * @maxcol + 6) as colorder
from syscolumns
join systypes on syscolumns.xtype = systypes.xtype
where id = @TableID and systypes.name <> 'sysname'
union
select ')',(3 * @maxcol) + 7 as colorder
order by colorder
 
 
select type from #tempproc order by colorder
 
drop table #tempproc
 
2.生成更新的存储过程
CREATE procedure sp_GenUpdate
@TableName varchar(130),
@PrimaryKey varchar(130),
@ProcedureName varchar(130)
as
set nocount on
 
declare @maxcol int,
@TableID int
 
set @TableID = object_id(@TableName)
 
select @MaxCol = max(colorder)
from syscolumns
where id = @TableID
 
select 'Create Procedure ' + rtrim(@ProcedureName) as type,0 as colorder into #TempProc
union
select convert(char(35),'@' + syscolumns.name)
+ rtrim(systypes.name)
+ case when rtrim(systypes.name) in ('binary','char','nchar','nvarchar','varbinary','varchar') then '(' + rtrim(convert(char(4),syscolumns.length)) + ')'
when rtrim(systypes.name) not in ('binary','char','nchar','nvarchar','varbinary','varchar') then ' '
end
+ case when colorder < @maxcol then ','
when colorder = @maxcol then ' '
end
as type,
colorder
from syscolumns
join systypes on syscolumns.xtype = systypes.xtype
where id = @TableID and systypes.name <> 'sysname'
union
select 'AS',@maxcol + 1 as colorder
union
select 'UPDATE ' + @TableName,@maxcol + 2 as colorder
union
select 'SET',@maxcol + 3 as colorder
union
select syscolumns.name + ' = @' + syscolumns.name
+ case when colorder < @maxcol then ','
when colorder = @maxcol then ' '
end
as type,
colorder + @maxcol + 3 as colorder
from syscolumns
join systypes on syscolumns.xtype = systypes.xtype
where id = @TableID and syscolumns.name <> @PrimaryKey and systypes.name <> 'sysname'
union
select 'WHERE ' + @PrimaryKey + ' = @' + @PrimaryKey,(2 * @maxcol) + 4 as colorder
order by colorder
 
select type from #tempproc order by colorder
 
drop table #tempproc

评论: 0 | 引用: 0 | 浏览: | Tags: ms  sql  server  存储  过程  

来源:这里
 


评论: 0 | 引用: 0 | 浏览: | Tags:   
分页:[«]1[2][»]

Copyright blog.zouxm.com. All Rights Reserved.    Powered By Z-Blog 1.8 Arwen Build 81206    Skin by Xiaoyi