19 07年5月

eclipse tips

关键字:,

怎么修改eclipse启动的画面(Changing the Eclipse Splash Screen)

到eclipse\plugins\org.eclipse.platform_XXX目录
替换,编辑里面的
splash.bmp

指定eclipse使用的语言

eclipse -nl en_US

工作目录的指定

使用 -data 命令行自变量

让eclipse使用指定的java vm
如果有多个java vm可以用 -vm 设置使用那个 java VM
例如,-vm c:\jre\bin\javaw.exe

如何关闭闪屏(close the Eclipse Splash Screen)
-nosplash
在窗口标题栏中显示工作区的位置
-showlocation

设置虚拟机的自变量
-vmargs
-vmargs -Xms256m -Xmx512m
最小堆设置为 256MB,将最大 Java 堆大小设置为 1GB

上述设置可以设置在eclipse的config.ini里面,更详细的内容,请点击

http://help.eclipse.org/help32/topic/org.eclipse.platform.doc.isv/reference/misc/runtime-options.html

贝贝爸 发表在 技术文章 | 等您写评论

31 07年3月

UltraEdit使用入门(3)

关键字:,

UE的右键功能
去处行末的空格
选中要去空格的区域。点右键/format/menu../trim trailing spaces

删除整行
定位光标要删除的行。点右键/delete/delete line,(也可以用ctrl+e)
阅读全部»

贝贝爸 发表在 原创技术文章 | 1个评论

29 07年3月

电脑使用tips

关键字:,

  • ie打开一个页面后,一片空白的解决方法
  • 查看--编码
    看看是不是选成UTF-8了,如果是,换成gbk啥的,问题解决。

  • 运行qq后,usb键盘不能用
  • 把npkcrypt.sys改个名字

  • windows顽固的文件删除不掉
  • 下载这个看看softscape1tools.zip

  • ie打开网页特别慢
  • 慢的不正常,但是ping又没有问题,检查一下ie的工具,internet options/connnections/lan setting/automatically detect setting是否选上,去掉即可

  • 直接编辑hosts文件
  • notepad %SystemRoot%\system32\drivers\etc\hosts

    如何去除每跳转一页都出现“是否显示不安全内容”?

    IE设置 -> 安全 -> 自定义级别->显示混合内容 -> 启用
    Tools->Internet Option->Security->Custom Level->Display Mixed Content->Enable

    贝贝爸 发表在 原创技术文章 | 等您写评论

    26 07年3月

    java tips

    关键字:,

    取头信息中的Referer

    request.getHeader("Referer")

    贝贝爸 发表在 技术文章 | 等您写评论

    21 07年3月

    linux 命令备忘

    关键字:,

    查看当前目录下所有目录的大小

    find ./ -type d -maxdepth  1  -exec du -s '{}' \; |sort -nr

    linux下给其他终端发消息,wall

    NAME
           wall -- send a message to everybody's terminal.

    SYNOPSIS
           wall [-n] [ message ]

    修改系统的时区

    date
    cd /etc
    ln -sf /usr/share/zoneinfo/EST localtime
    date

    同步 Linux时间 (校時)

    同步

    [root@mail ~]# ntpdate time-a.nist.gov
    27 Apr 16:24:54 ntpdate[27204]: adjust time server 129.6.15.28 offset 0.168042 sec
    写入bios
    [root@mail ~]# hwclock -w

    查找某个目录,包括子目录里面的文件,进行字符串替换,这里是查找当年目录下一个叫test的目录,把里面含有”abc”的字符串替换成”def”,
    用到find和sed

    find ./test -type f -exec sed -i "s/\"abc\"/\"def\"/g" {} \;

    根据修改时间来查找文件,下述的例子是查找10分钟内修改过的文件。
    +10是超过10分钟,-10是十分钟内,10是正好是分钟,这里10!=+10哦

    find ./ -cmin -10

    解压缩bz2结尾的文件
    tar xjfv phpMyAdmin-2.10.0.2-all-languages.tar.bz2

    贝贝爸 发表在 原创技术文章 | 1个评论

    10 07年3月

    mysql tips

    关键字:,

    • 运行在文本文件里的sql语句

    shell> mysql db_name < text_file

    还可以用一个USE db_name语句启动文本文件。在这种情况下,不需要在命令行中指定数据库名:

    shell> mysql < text_file

    如果正运行mysql,可以使用source或\.命令执行SQL脚本文件:

    mysql> source filename

    mysql> \. filename

    贝贝爸 发表在 技术文章 | 等您写评论

    7 07年3月

    python tips

    关键字:,

    时间转换

    1. import time 
    2. print time.strftime('%Y年%m月%d日',time.localtime()) 
    3. 20070307日 
    4. time.strptime("2002年2月2","%Y年%m月%d") 
    5. (2002, 2, 2, 0, 0, 0, 5, 33, -1) 
    6. a=time.strptime("2002年2月2","%Y年%m月%d") 
    7. print time.strftime('%Y年%m月%d日',a) 
    8. 20020202

    让idle使用utf-8编码

    设定Options/General/Default Source Encoding/UTF-8 来支持
    python怎么copy文件

    >>> import shutil
    >>>
    dir(shutil)
    ['Error', '__all__', '__builtins__', '__doc__', '__file__', '__name__', '_samefi
    le
    ', 'abspath', 'copy', 'copy2', 'copyfile', 'copyfileobj', 'copymode', 'copysta
    t
    ', 'copytree', 'destinsrc', 'move', 'os', 'rmtree', 'stat', 'sys']
    >>>
    shutil.copyfile('d:/c.sql','d:/cc.sql')
    >>>

    python怎么copy目录

    >>> import shutil
    >>>
    shutil.copytree('d:/test','d:/testd')
    >>>

    贝贝爸 发表在 原创技术文章 | 等您写评论

    美体小铺急救棒 the bodyshop body shop 美体小铺茶树精油 美体小铺接骨木花眼胶 美体小铺VE眼霜
    美体小铺急救棒 the bodyshop body shop 美体小铺茶树精油 美体小铺接骨木花眼胶 美体小铺VE眼霜