一

{"type":"编程笔记"}


  • Home

  • Archives
  • Search

convert ^m to newline character in text files

Posted on 2009-08-11   |   In vim

If the ^M character is showing up in files while opening the file concerned, then follow these steps to convert it to a new line. In vi use the following:

Read more »

todo list app on ubuntu

Posted on 2009-08-06   |   In linux

使用之后觉得devtodo最为好用,tudu也不错,有vi类似的操作快捷键,用起来很顺手。

awn todo list applet结合awn一起用,做为桌面工具可以即时看到任务数量,操作也非常简单。

  1. devtodo
  2. tudu
  3. remind
  4. todo.txt
  5. awn todo list applet

linux环境变量显示和设置

Posted on 2009-07-31   |   In linux

export命令不带参数可以将系统的环境变量全部列出来,如果需要设置环境变量,可以在/etc/profile,~/.bash_profile,~/.bashrc文件中设置。

Read more »

ie中将tr appendchild到table的问题及解决方法

Posted on 2009-07-31   |   In javascript

将一个TableRow对象appendChild到Table,在firefox3/safari4中测试都正常,在ie6中则不能正常显示。

Table无论是否有写TBODY,生成的DOM中都会自动生成,在IE中,TR对象被appendChild到了Table中,而非TBODY中,所以无法显示,所以可以将TR对象appendChild到TBODY中。

还有就是可以使用Table.insertRow()方法添加一个新行。

在excel中转换unix timestamp

Posted on 2009-07-27   |   In linux

在excel中没有直接的函数可以将一个unix时间截,转换为一个可阅读的时间格式,
这个公式可以用来转换显示时间,转换出来的还是一个数字,需要调整其显示格式,选择一个日期格式。

如单元格A1的值为1248255194,那么B1可以使用此公式转换出普通的日期格式。

Read more »
1…545556…99
yuweijun

yuweijun

492 posts
12 categories
RSS
GitHub Twitter
© 2021 yuweijun
Powered by Hexo
Theme - NexT.Mist.KISS