• 2006-12-30

    弹唱Yesterday完毕

    Views: 10174 | 1 Comment

    在级队的元旦晚会上用吉他弹唱Yesterday完了. 我有些紧张, 不过总算唱完了. 从头到尾没敢看人一下, 都是看着对面的墙. 因为吉他拾音的话筒声音太小, 所以演出基本算是失败, 不过, 我放开来唱了.

    过段时间看能不能找到一些照片和视频放上来吧. 从现在开始, 又要继续坚苦的学习当中了.

    Posted by ideawu at 2006-12-30 16:57:27
  • 2006-12-25

    6岁的 Heather Martin 唱她妈妈写的歌

    Views: 13348 | 2 Comments

    6 year old Heather Martin sings a song that her mother wrote for her Brother Shaun who is serving in Iraq. The song is written from Heather's point of view.

    6岁的 Heather Martin 唱她妈妈写给在伊拉克服役的她的哥哥 Shaun 的歌"Heather Martin - When Are You Coming Home". 唱得很可爱, 如果你见到太多的成人, 你可以看看这个视频. 如果你安装了 Firefox 浏览器VideoDownloader 插件, 你可以把视频保存下来.

    在Youtube的链接
    http://www.youtube.com/watch?v=eVFF98kNg8Q
    http://www.youtube.com/watch?v=igpEULCM3-E

    You were almost sixteen when I came into the world.
    Mom and Dad had you first then 3 more boys I'm the baby girl.
    I sure have a lot to look up to in you, you're really smart and funny with a big heart too.
    After one year of college you knew what you had to do.
    It's just like you wanting to help with the war.
    So you joined the army when I was only 4.
    This time of year we talk of big plans but you're over seas in some distant land.
    You can't be here for Christmas, I don't understand.
    Chorus:
    When are you coming home, Shaun?
    When are you coming home?!
    We lit up the house like we always do but it doesn't seem bright 'cause we can't have you.
    In my prayers I ask God to keep you safe.
    And I'm trying to be really brave.
    Tell me that the fighting's through.
    Come home!
    I really miss you.
    
    It's hard to enjoy the holidays without you.
    But we're so proud of you and all the red white and blue.
    Remember that Jesus is your best friend,
    And someday our families will be together again.
    Wow! You know we'll have a great big party then.
    
    Chorus
    
    I want to show you how tall I've grown and introduce you to my new friends at school.
    Maybe we could go and get some ice cream together but I really don't care what we do.
    
    Posted by ideawu at 2006-12-25 14:36:35
  • 2006-12-24

    用Javascript生成弹出窗口

    Views: 12305 | No Comments

    在Web开发中, 经常需要弹出一个窗口. 你可能想到使用alert, confirm 或者 window.open, 不过可以用自定义的窗口. 方法是建立一个绝对定位的层, 添加到body节点中. 需要关闭时就将它先移除.

    弹出一个窗口(在本文中, CSS未起作用)

    /*
     * 用来弹出一个窗口
     */
    function openPopWindow(title, content, top, left, width, height){
    	var pop = document.createElement('div');
    	popId = 'pop_' + (new Date()).getTime();
    	pop.setAttribute('id', popId);
    	pop.setAttribute('class','popwindow');
    	pop.setAttribute('className','popwindow');
    	if(height > 0){
    		pop.style.height = height + 'px';
    	}
    	pop.style.width = width + 'px';
    	pop.style.display = 'block';
    	pop.style.top = top + 'px';
    	pop.style.left = left + 'px';
    
    	document.getElementsByTagName('body')[0].appendChild(pop);
    	pop.innerHTML =
    		'<div class="closeButton"><a href="javascript: closePopWindow(\'' + popId + '\');">X</a></div>'
    		+ '<div class="head">' + title +  '</div>'
    		+ '<div class="content">' + content + '</div>';
    
    	return pop;
    }
    
    function closePopWindow(id){
    	var pop = document.getElementById(id);
    	document.getElementsByTagName('body')[0].removeChild(pop);
    }
    
    /*
     * 使用方法:
     */
    function popEditWindow(){
    	top = 100;
    	left = 100;
    	var text = '你好啊, 世界!';
    	openPopWindow('Hello world!', text, top, left, 220, -1);
    }
    

    配套的CSS样式表:

    .popwindow{
    	font-family: monospace;
    	position: absolute;
    	padding: 0;
    	border: 1px solid #369;
    	background: #def;
    }
    
    .popwindow .head{
    	text-align: center;
    	padding: 2px;
    	background: #6cf;
    	border-bottom:1px solid #369;
    }
    
    .popwindow .closeButton{
    	float: right;
    	margin: 2px 4px;
    	font-weight: bold;
    }
    
    Posted by ideawu at 2006-12-24 14:58:13
  • 2006-12-21

    手机铃声和集团彩铃的网站系统

    Views: 13027 | Comments Off

    最近做了个集团彩铃的网站系统, 集团彩铃就是为企业定做的彩铃. 包括铃声上传, 铃声在线试听等功能, 还有一个新闻发布系统. 功能与 cailing.bj.cn 相似. 我做的时候考虑了扩展性, 以后可以发展为一个手机彩铃系统或者音乐系统. 比如像 tom.com 的手机铃声系统.

    呵呵, 我以前在 tom.com, sohu.com 和 qq.com 买了几条手机铃声呢. 这种网站只要跟通信公司买个接口, 就卖每条铃声 1-4 元. 怪不得说彩铃救了 sohu.

    如需购买请联系.

    Posted by ideawu at 2006-12-21 19:46:59
  • 2006-12-19

    做了一个网站项目后的总结

    Views: 17657 | 2 Comments

    一个多月前, 经朋友介绍给一个公司做一个商业网站. 顾客先支付给我1/4的报酬. 网站的业务流程并不复杂, 所以很容易做. 大概两周我就把网站基本做好了. 对方的要求是我尽量使用图片, 他们会替换掉所有的图片.

    我把程序交付给他们, 并帮他们架上空间后, 他们再支付给我另外1/2的报酬. 所以我现在一共收到了3/4的报酬. 今天又帮他们更改了一下. 网站已经正式运行半个月了, 不过我并没有收到全部的报酬. 我认为他们会支付, 不过, 这种支付方式让我很劳累. 说真的, 让我再做10个这种类型的网站项目, 也没收钱那么累.

    我认为, 顾客采用这种支付的方式的原因是, 他需要确保网站程序不出错. 我们也知道, 有些顾客让人做网站, 他支付完所有的报酬之后一段时间, 发现又有了新需求, 于是感觉自己吃亏了. 或者顾客花钱买了有缺陷的产品, 确实是吃亏了.

    经过这次项目, 我总结出以下经验:

    1. 开发者要建立一套规范的业务流程, 用自己的权威抑制客户的提出更多额外的需求的欲望.
    2. 对产品的规范定义, 以免在双方交流时产生太多的歧义.
    3. 在开始开发后, 开发者尽量不要直接与客户联系.
    4. 如果有可能, 做产品, 不要做项目.
    5. 不要拖泥带水, 同时我也希望客户能够如此.
    6. 时常做代码, 开发方法, 商业运作等方面的总结.
    7. 真诚待人.

    当然, 不可能一步登天, 需要积累经验.

    这一次项目, 给我在技术的帮助有以下一些:

    • 在开始学习PHP两个月, 然后放弃去学习Java/Jsp, 一年后又重拾PHP, 我个项目让我能能够轻松的应付各种中小型的商业网站开发. 即使是大型的社区网站或者其它, 也能很好完成. PHP开发网站很方便, 同时学习Java让我更好的使用PHP. 所以, 要学习不同的语言, 不同的开发方式, 学习不同的学习和生活的思维, 学习不同的商业运作.

    思维有些混乱, 因为现实就是这么混乱.

    Posted by ideawu at 2006-12-19 19:41:33 Tags:
  • 2006-12-18

    用mplayer,toolame提取rmvb等视频文件中的音频为mp3

    Views: 19649 | 3 Comments
    mplayer source.rmvb -ao pcm:file=destination_sound.wav -vo null

    把source.rmvb中的音频保存为destination_sound.wav. 也能转换VCD的DAT文件, 当然还有avi, 几乎所有你能见到的视频格式.

    然后用toolame转换为mp3:

    toolame destination_sound.wav destination_sound.mp3

    如果你有很多文件, 把它们放到一个单独的文件夹下, 再用一条类似

    for file in `ls -1`; do echo $file; done

    的命令一次把它们全都搞定.

    我之所以写这篇文章, 是因为我竟然一时想不起来怎么提取视频文件中的音频的命令了, 只隐约记得"pcm:file", 于是到mplayer的html文档目录下运行

    grep 'pcm:file' *

    总算找到了. 在这里做个记录.

    Posted by ideawu at 2006-12-18 20:51:48
|<<<107108109110111112113114115>>>| 111/138 Pages, 825 Results.