2007年1月31日星期三

从UNIX/Linux访问Windows共享目录

        Windows网络共享的核心是SMB/CIFS,在linux下要挂接(mount)windows的磁盘共享,就必须安装和使用samba软件包。现在流行的linux发行版绝大多数已经包含了samba软件包,如果安装linux系统时未安装samba请首先安装samba。当然也可以到www.samba.org网站下载。
        当windows系统共享设置好以后,就可以在linux客户端挂接(mount)了,具体操作如下:  
# mkdir –p /mnt/win   
# mount -t smbfs -o username=administrator,password=test123 //192.168.0.66/c$ /mnt/win

阅读全文...

2007年1月30日星期二

看房记

        周日忍不住,去看了下即将竣工的房子。签合同后就再也没去看过,当时外墙还都被围着,保留一点神秘,现在都基本展现在我面前了。买上东一的同事四月一号就可以拿房了,而我还要熬到五月底。

        不说了,把胡乱拍的几张放出来纪念一下:

阅读全文...

2007年1月26日星期五

BORN TO TRY



同事手机上的一首歌,
很好听...





BORN TO TRY
Delta Goodrem

Doing everything that I believe in
做所有我相信的事
Going by the rules that I've been taught
按照我被教导的规则
More understanding of what's around me
更加了解我身边的事物
And protected from the walls of love
在爱的围栏中受到保护
All that you see is me
你所见到的所有都是我
And all I truly believe
我所真正相信的
That I was born to try
我生来为了尝试
I've learned to love
我已经学习去爱
Be understanding
去了解
And believe in life
相信生活
But you've got to make choices
但你不得不做出决定
Be wrong or right
对或错
Sometimes you've got to sacrifice the things you like
有时你不得不牺牲自己喜欢的事
But I was born to try
但我生来为了尝试
No point in talking what you should have been
说你原本应该成为什么,那没有意义
And regretting the things that went on
为已逝去的过去后悔
Life's full of mistakes, destinies and fate
生命充满了错误和命中注定
Remove the clouds look at the bigger picture
移开乌云,看向更大的画面
And all that you see is me
你看到的所有都是我
And all I truly believe
我所真正相信的
That I was born to try
我生来为了尝试
I've learned to love
我已经学习去爱
Be understanding
去了解
And believe in life
相信生活
But you've got to make choices
但你不得不做出决定
Be wrong or right
对或错
Sometimes you've got to sacrifice the things you like
有时你不得不牺牲自己喜欢的事
But I was born to try
但我生来为了尝试
All that you see is me
你看到的所有都是我
All I truly believe
我所真正相信的

阅读全文...

2007年1月24日星期三

胡乱改手机配置文件

        Moto E2从8月份到手到现在终于忍不住写点什么了,其间刷了3次机,还指导一朋友刷了一次。然后就是瞎改手机配置。自己写了方便自己用的几个小软件。Linux的系统就是一个好,可以乱改系统配置。
        看到Apple的iPhone上市,也想把我的E2改成iPhone的界面,试了一小时,重启N次手机,终于大功告成!
----------------------------------------------------------------
修改主题文件里面的phone_p.ini文件
主要修改以下地方:

[Idle]
Bg_Percent = 100
Padding_Top = -25 //待机状态高度
Padding_Bottom = 210 //数字时钟高度
Padding_Right = 75 //数字时钟位置(左右)
Padding_Left = 75 //待机状态位置(左右)
AnalogClockHands_Percent = 100
AnalogClockHands_Color = 16777215
AnalogClockHands_Stretch = 0
AnalogClockHands_Type = 1
AnalogClockHands_Width = 2
Spacing_H1 = 3
Spacing_V1 = 3
Spacing_V3 = 3
Spacing_S1 = 0
AnalogClockFace_Stretch = 0
AnalogClockFace_Percent = 100
Spacing_V2 = 1

[Font_DigitalClockStd]
Leading = 22
Size = 36 //数字时钟字体大小
Color = 16777215
Style = 1
Align = 2
OutlineColor = 0

[Font_IdleStatusStd]
Leading = 25
Size = 18 //待机状态字体大小(如“正在充电” “年/月/日” “键盘已锁定”等)
Color = 16777215
Style = 0
Align = 1
OutlineColor = 0

-------------------------------------------------------------------
和真正的iPhone PK下^_^ (左边为我的E2,右边是iPhone)

阅读全文...

2007年1月17日星期三

遍历查找并删除文件/文件夹

今天同事叫帮忙写个删除SVN下所有.svn的文件夹的脚本,一句话搞定:
#!/bin/bash
find /SVN -name ".svn" -depth -exec rm -rf {} \;

阅读全文...