yo2语法高亮(highlight)解决方案

1.启用插件WP-dp.SyntaxHighlighte(其实跟这个插件没有半点关系)

2.从codeplex下载Syntax Highlighter for Windows Live Writer插件,解压到live writer的plugins目录下,重启live writer

3.可以看到已经启用了syntax highlighted

image

4.插入代码,选择代码类型,类型支持的蛮多的,常见的基本上都有,可惜,对中文支持不好,乱码

image

- 阅读全文 -

模板更换回apple4us

上一个模板因为live writer的支持问题,另外那个颜色确实是越看越不怎么样,最后,决定换回apple theme,还是这个最合我心意。

不过,这次使用了2栏的版本,yo2上现成的只有3栏的,可惜,我不喜欢3栏的,因为经常有些文章,宽一些,比较好看。

安装方法:

1.从Apple Theme For WordPress下载2栏的最新版本2.6.1的zip包

2.在yo2的“外观”——“私有模板”,选择上传(之前上传会报错,现在不会了,真好)

3.修改显示页面,参考:更换模板为apple theme

header.php里面用到了headernavi的class,可惜,好像没有相关的css,不知道是否漏掉了。所以,之前的帖子里面的做法,还是需要的。

- 阅读全文 -

stringgrid 显示imagelist里面的图片

解决思路:

把imagelist里面的图片通过getbitmap,保存到一个TBItMap变量中,然后利用stringgrid的canvas属性,draw到相应的cell当中。当然,代码要在stringgrid的onDrawCell事件中处理。

代码:

procedure TFrmMain.RzStringGrid1DrawCell(Sender: TObject; ACol, ARow: 
Integer;
  Rect: TRect; State: TGridDrawState);
var
  bitmap: TBitmap;
begin
  bitmap := TBitmap.Create;
  try
    with RzStringGrid1 do
    begin  ////添加判断条件,获取不同的bitmap显示
ilImages.GetBitmap(267, bitmap); if not bitmap.Empty then Canvas.Draw(Rect.Left, Rect.Top, bitmap); end; finally bitmap.Free; end; end;


代码很简单,主要就是getbitmap和canvas.draw的使用,注意TBitMap的创建和释放。

- 阅读全文 -

sql server中利用备份建立数据库

经常的,从网站上备份了数据下来,想在本地查看数据,却总是无从下手,因为备份的数据库并不能直接在sql Server中使用。

使用方法:

1.建立一个空的数据库test

2.还原test数据库

选择备份的数据库文件test.bak

这时候,如果直接还原,会提示

标题: Microsoft SQL Server Management Studio
------------------------------

还原 对于 服务器“NEWMAPSERVER”失败。  (Microsoft.SqlServer.Smo)

有关帮助信息,请单击: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.3042.00&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=还原+Server&LinkId=20476

------------------------------
其他信息:

System.Data.SqlClient.SqlError: 备份集中的数据库备份与现有的 'test' 数据库不同。 (Microsoft.SqlServer.Smo)

有关帮助信息,请单击: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.3042.00&LinkId=20476

------------------------------

解决办法:选中还原选项“覆盖现有数据库”

image

再还原,就没有问题了。

3.查看还原完的数据库test,就可以看到备份下来的数据了。

- 阅读全文 -

UTD60的JAVA游戏和应用程序安装步骤(转)

1、从网络下载你想装的JAVA文件,一般是两个,一个JAD结尾,一个为JAR结尾的文件。
2、用数据线将手机和电脑相连,在手机上确认使用U盘。
3、将JAD和JAR文件都拷贝在手机存储卡上的JAVA文件夹,但两个文件要在同一个文件夹。
4、退出U盘,拨掉数据线,让手机回到原始状态。
5、点击手机右上角的(MY)标记,进入我的文挡里,选择百宝箱,进入进入应用列表。
6、在百宝箱界面左下脚点选项,然后选择安装本地文件
7、选择你要安装的JAD,JAR文件,点击右下角的继续,即可安装。
8、安装完毕后点击手机右上角的(MY)标记,进入我的文挡里,选择百宝箱,就可以看到你刚才装的程序名称了,点击接执行即可。
9、退出游戏或程序,可直接使用挂机键,或程序里菜单上的退出。

UTD60的JAVA游戏和应用程序安装步骤(转) - UT斯达康 - 3个苹果 3G资源站 3G|TDSCDMA|WCDMA|APPLE|IPHONE|3GIPHONE|3G无线网卡| - Powered by Discuz!

- 阅读全文 -

GNU Gettext for Borland Delphi, C++ Builder and Kylix

使Delphi支持多语言的一种途径
使用方法:
http://dybdahl.dk/dxgettext/docs/howto.php

Tools

  • GNU gettext for Delphi and C++ Builder toolkit: dxgettext-1.2.2.exe
  • GNU gettext for Kylix toolkit: dxgettext-1.1.1.tar.gz
  • poedit to edit translations (a must-have)
  • UniRed - a free unicode plain-text editor for Windows, good for converting text files between character sets etc.

Other stuff

[转自]GNU Gettext for Borland Delphi, C++ Builder and Kylix

- 阅读全文 -

DDevExtensions 1.9发布——支持Delphi2009

更新:

  • Added: Support for Delphi 2009
  • Added: Compiler-Dialog: AutoSave after successful compile (default: off)
  • Added: OldPalette: AlphaSort option for the palette popup menu
  • Added: OldPalette supports "Small Fonts" for the tab font
  • Added: "Close all and terminate" by keeping the CTRL key pressed while closing the IDE (from DelphiSpeedUp)
  • Added: Disable package cache option (from DelphiSpeedUp)
  • Added: Shows waiting cursor while loading designtime package (from DelphiSpeedUp)
  • Added: Option to enable the IDE's "User can cancel kibitzing" feature [CodeCompletion and HelpInsight can be aborted by ESC/mouse move]
  • Added: The "Add to implementation" checkbox in the "Use Unit" Dialog can be switch by pressing the SHIFT-key
  • Renabled: Editor Focus bugfix (bug still exists)
  • Removed: Delphi 5-2007 support
  • Removed: ComponentSelector (superseded by Delphi's ToolPalette search edit)
  • Removed: CompilerEnhancements (superseded by the new project warning options)
  • Removed: FormDesigner Alt key disables guide lines (superseded by Delphi 2009's implementation)

 

下载地址:http://andy.jgknet.de/dspeedup/index.php?page=download

- 阅读全文 -

Delphi IDE插件之:DDevExtensions

DDevExtensions adds new productivty features to the Delphi/C++Builder IDE.
Download page
特色:

  • 在多项目的项目组添加版本信息设置
  • 在编译或者执行一个项目时,添加一个备份系统用于备份没有保存的文件
  • 增强View Units, View Forms and Use Units 对话框
  • 扩展Use Units 对话框
  • 编译对话框添加进度条
  • 添加成功编译后自动保存的选项
  • 扩展HOME和TAB、shift-TAB快捷键
  • Ctrl+Left/Right 在VisualStudio和其他编辑器中的类似功能
  • 运行删除.ddp文件,空model和空__history目录
  • 能取消Source modified. Rebuild?对话框
  • 恢复Delphi7类似的组件栏
  • 运行取消包缓存

 

其中粗体的是最主要的功能

【转自】DelphiSpeedUp Delphi/BCB/BDS IDE plugin

- 阅读全文 -

热门文章

最新文章

最近回复

  • wfzlxvvgte: 你的文章让我感受到了不一样的风景,谢谢分享。 http://ww...
  • sfiutfecff: 你的文章内容非常用心,让人感动。 http://www.55ba...
  • dyqoaaqpdc: 你的文章内容非常卖力,让人点赞。 http://www.55ba...
  • vrfedcneqp: 你的文章内容非常卖力,让人点赞。 http://www.55ba...
  • wmhoubuazg: 你的文章内容非常用心,让人感动。 http://www.55ba...
  • khhhttrppu: 你的文章内容非常卖力,让人点赞。 http://www.55ba...
  • atjzyxiutr: 你的文章内容非常用心,让人感动。 http://www.55ba...
  • dlamzmkwwi: 你的文章内容非常卖力,让人点赞。 http://www.55ba...
  • predcxvhsz: 《蛋黄人》国产剧高清在线免费观看:https://www.jgz...
  • qmffcradmz: 《逃狱者》剧情片高清在线免费观看:https://www.jgz...

分类

标签

其它