手机浏览 RSS 2.0 订阅 膘叔的简单人生 , 腾讯云RDS购买 | 超便宜的Vultr , 注册 | 登陆
浏览模式: 标准 | 列表分类:Software

wps二次开发文档

WPS的二次开发?我不需要,但是一些接口文档我还是需要的。
比如[2008-09-16] - 闲着无聊,用WPS生成文档,在这篇博客里我写了用wps生成doc文档的例子,但事实上文章末尾介绍的两个网址都打不开了。

新的开发文档:
wps office二次开发帮助文档.rar
新的介绍地址:http://bbs.wps.cn/thread-22004642-1-1.html

Tags: wps

如何禁用flash

本来是不想禁用的,但发现机器的风扇就一直没停过,CPU消耗的最大的就是firefox下的flash插件 .没辙了.我还是禁用它吧.
嗯flashblock即可,但其实我是想从软件的底层就直接禁用它.可惜没有好的办法....只能用插件了.网上类似的教程还有很多,比如这个:

内容来源:http://orzl.com/weblog/disable-the-flash-on-mac

在Mac下禁用Flash的原因众所周知,这次实在是忍无可忍了。

  1. Firefox禁用Flash
    可以使用插件如 - Flashblock:
    下载地址: https://addons.mozilla.org/en-US/firefox/addon/flashblock/
    安装之后网页所有的Flash位置都会显示一个"Play"的占位图标,只有点击图标才会播放对应的资源。
    另:除了Flash以外,它也可以阻止Silverlight,且支持域名白名单。
    Flashblock的官方网站: http://flashblock.mozdev.org/
  2. Chrome禁用Flash:
    方法一: 使用和Flashblock一样的插件:https://chrome.google.com/webstore/detail/flashblock/gofhjkjmkpinhpoiabj...
    方法二:还有一种办法是针对Dev版本启用自带的插件:"Click to Play"。
    "Preferences" - "Privacy" - "Content settings" - "Plugin-in" - "Click to Play"。
    支持域名白名单。
  3. Safari禁用Flash:
    方法一:修改浏览器代理:
    修改浏览器代理为iPad,访问支持HTML5的网站如优酷土豆等会切换到HTML5版本。
    Step 1: 在菜单栏中显示"Develop"选项: "Preferences" - "Advanced" - "Show Develop menu in menu bar"
    Step 2: 在菜单中选择"Develop"选项,进入"User Agent",选择:“Sarafi iOS 5.1 - iPad” 。

    方法二:使用Safari插件:ClickToPlugin & ClickToFlash Safari extensions
    http://hoyois.github.com/safariextensions/clicktoplugin/

    推荐的这个插件分两个版本,一种仅针对Flash,另外一种支持屏蔽的插件包括:Flash、Java、Silverlight、Quicktime、Shockwave等。

    且均支持白名单。

于是乎,世界清静了.嗯,我没有那么急的需求要看flash....而且开了之后,耗电量也大增,何必呢.

Tags: flash

phpstorm 中对filetemplate的优化

在使用phpstorm创建文件的时候,如果是在filetemplate中出现过的。都会调用默认的模版,这时候,可以在其中调整自己的信息,还是比较方便的,比如我现在就是这样设置的:

XML/HTML代码
  1. <?php  
  2. /**  
  3.  * ${FILE_NAME}  
  4.  *  
  5.  * @category   
  6.  * @package    
  7.  * @author   gouki <gouki.xiao@gmail.com>  
  8.  * @version $Id$   
  9.  * @created ${DATE} ${TIME}  
  10.  */   
  11. Yii::import("application.controllers.${DIR_NAME}.*");  
  12. class ${NAME} extends Controller{  
  13.     public function actions(){  
  14.         return array(  
  15.             'index'=>'IndexAction',  
  16.         );  
  17.     }  
  18. }  

嗯,上面的这是标准的代码,不过,如果有命名空间的话。那怎么办呢?因为在官方的模版里,并没有提到这个。。它只提到了这些:

XML/HTML代码
  1. This is a built-in template. It contains a code fragment that can be included into file templates (Templates tab) with the help of the #parse directive. The template is editable. Along with the static text, code and comments, you can also use the predefined variables that will be then expanded like macros into the corresponding values.   
  2. Predefined variables will take the following values:  
  3. ${FILE_NAME}  
  4.    
  5. current file name  
  6. ${USER}  
  7.    
  8. current user system login name  
  9. ${DATE}  
  10.    
  11. current system date  
  12. ${TIME}  
  13.    
  14. current system time  
  15. ${YEAR}  
  16.    
  17. current year  
  18. ${MONTH}  
  19.    
  20. current month  
  21. ${DAY}  
  22.    
  23. current day of the month  
  24. ${HOUR}  
  25.    
  26. current hour  
  27. ${MINUTE}  
  28.    
  29. current minute  
  30. ${PRODUCT_NAME}  
  31.    
  32. current IDE name  

怎么办呢?于是我就想啊想,最后变成了这样:

XML/HTML代码
  1. <?php  
  2. /**  
  3.  *   
  4.  *  
  5.  * PHP version 5.3.x  
  6.  *  
  7.  * @category   
  8.  * @package    
  9.  * @author   gouki <gouki.xiao@gmail.com>  
  10.  */  
  11. #if (${NAMESPACE})  
  12. namespace ${NAMESPACE};  
  13. #end  
  14.   
  15. /**  
  16.  * ${FILE_NAME}  
  17.  *  
  18.  * @category   
  19.  * @package    
  20.  * @author   gouki <gouki.xiao@gmail.com>  
  21.  * @version $Id$  
  22.  * @created ${DATE} ${TIME}  
  23.  */   
  24. class ${NAME} {  
  25.   
  26. }  

如果定义了namespace,那么就在上面写上namespace ${NAMESPACE};
世界清静了好多。关键代码也少写了很多。
当然,其实很多人都是在程序完成后,统一用脚本加上这些注释的。这样倒也是不错。
只是现在这样的方式,在生成API文档的时候会比较方便一点。黑黑

liteIDE更新了

其实,这篇博客应该发在昨天的。
昨天据说是liteide2周年,所以作者发布了一个新的版本。
再加上,昨天又是高伯伯的生日,两日 并一日。新版本就这样出来了
网址在:http://code.google.com/p/golangide/downloads/list
话说回来,liteide已经换过N多的LOGO了。一个是“易”的中文,一次是地球 ,这回换上了太极图了。据说太极图是用QT画出来的。。。

蛋疼的人总是很多。嗯其实是我很羡慕罢了。
这次好象没有什么太大的更新,好象基本上就是为了2周年,改了LOGO发布的。
当然也开始支持了tip版的go(http://code.google.com/p/golangide/wiki/changes)

  • GolangDoc:
    • support go tip version
    • show error output

不过还是要介绍一下这个软件:
如果你需要很好的使用markdown,以及预览,建议你下载内嵌webkit核心的那份。还能支持导出成PDF哦。

Introduction

LiteIDE is a simple, open source, cross-platform Go IDE.

Base Features

  • Mime type basis system
  • System environment manage
  • Build system manage
  • Debug system simple and open
  • Kate syntax and style scheme
  • WordApi complete helper

Golang Support

  • Package browser
  • Class view and outline
  • Document browser
  • Gocode(https://github.com/nsf/gocode) support
  • GOPATH api index
  • Jump to declaration
  • Code expression info
  • Go playground

Markdown suppor

  • Live preview and sync scroll
  • Custom css , css files from Mou(http://mouapp.com)
  • Export html and pdf
  • Markdown batch
    • separate to html or pdf
    • merge to html or pdf

System

  • Windows
  • Linux
  • MacOSX

Website

Log

  • 2013-1-10 Version X15.2

Tags: liteide

phpstorm的splash screen中换LOGO了

其实,这是一个EAP的splash screen,不知道新版是不是真的会变。所以我贴出来了

更新内容其实很正常,但LOGO就不正常了。。有兴趣就看看,并去下载吧,文中有链接。原文来自:http://blog.jetbrains.com/webide/2012/12/phpstorm-6-eap-build-124-295/

This holiday’s EAP brings a traditional set of improvements. Some highlights are:

  • PHP type inference for ’$var->prop’ and ‘$var['key']‘ expressions (assignments tracking, instanceof and ‘is_bool’-like functions)
  • Code folding in Twig templates for blocks and control structures
  • Textmate bundle support included
  • More details on PHP and Platform changes available in tracker

We are working on improved type inference, composer support and framework integration, although features will take some time to show up.

As usual, bear in mind that you are getting a snapshot of work in progress and product will undergo series of technical and cosmetic changes.

Download PhpStorm 6.0 EAP build 124.295 for your platform from project EAP page. Patch-update is also available.

This is a last build.. of 2012. We are closed for holidays and wish you a happy apocalypse.
Spent your time with pleasure!
-JetBrains Web IDE Team

LOGO在此:
大小: 118.81 K
尺寸: 500 x 375
浏览: 1500 次
点击打开新窗口浏览全图
看看评论里,好象也有人喜欢这个新的splash screen

Tags: phpstorm

Records:23412345678910»