八月
5
2010
5
2010
电脑报2009电子文库
无意中发现电脑报的合订本光盘中的电子版的内容以SQLite数据库储存。所以就打算提取出来,做个在线阅读网站程序。
经过一段时间的编码转换、文章内容解密以及程序编写等,终于完成了两个平台的阅读程序。分别为“PHP+sqlite”和“Google App Engine”,其中PHP的因为没有相应的网站空间而只在本地使用。GAE的已经上传并调试完成,网址为:http://pcbook2009.appspot.com/。因为图片总共有600多M,所以没有使用图片,只是文字版的。
不得不说一下是,在编码转换方面绕了不少弯路,使用过C#、和sqlitemanager,最后用php的PDO竟然可以很好的读取GB2312编码。还有就是文章内容的解密,开始以为是经过压缩的,试过几种的压缩工具,都没成功,后来认真查看了内容的字节码,竟然发现了规律,于是写了个小函数解密!成功解密!
欢迎阅读:http://pcbook2009.appspot.com/
七月
9
2010
9
2010
使用Micolog,不错!
在GAE上架设Blog,使用Micolog是不二之选,据说是最优秀的GAE的博客程序。
这里说一下本人在安装调试时出错的解决办法:
1:出现"no module named _multiprocessing",据说这是使用Python2.6版本会出现,因为官方的环境是2.5的。
解决办法:在程序根目录新建一个“_multiprocessing.py” ,里面内容就一行:import multiprocessing
2:当做了某些比较大的更改,会出现缓存出错,具体的提示信息忘了。
解决办法:直接进入管理页面,在地址栏输入如http://xxxxx.appspot.com/admin进入,清除缓存就OK啦!
七月
7
2010
7
2010
玩了一下Google App Engine
玩了一下Google App Engine,感觉不错!
Python编程感觉很好!
而且还绑定了域名:http://www.7home.net
等待灵感开发应用……
七月
6
2010
6
2010
[转]GIF图像格式详解
GIF是图像交换格式(Graphics Interchange Format)的简称,它是由美国CompuServe公司在1987年所提出的图像文件格式,它最初的目的是希望每个BBS的使用者能够通过GIF图像文件轻易存储并交换图像数据,这也就是它为什么被称为图像交换格式的原因了。
GIF文件格式采用了一种经过改进的LZW压缩算法,通常我们称之为GIF-LZW算法。这是一种无损的压缩算法,压缩效率也比较高,并且GIF支持在一幅GIF文件中存放多幅彩色图像,并且可以按照一定的顺序和时间间隔将多幅图像依次读出并显示在屏幕上,这样就可以形成一种简单的动画效果。尽管GIF最多只支持256色,但是由于它具有极佳的压缩效率并且可以做成动画而早已被广泛接纳采用。 (..更多内容)
七月
2
2010
2
2010
Django日期格式化字符参考
| Format character | Description | Example output |
|---|---|---|
| a | 'a.m.' or 'p.m.' (Note that this is slightly different than PHP's output, because this includes periods to match Associated Press style.) | 'a.m.' |
| A | 'AM' or 'PM'. | 'AM' |
| b | Month, textual, 3 letters, lowercase. | 'jan' |
| B | Not implemented. | |
| d | Day of the month, 2 digits with leading zeros. | '01' to '31' |
| D | Day of the week, textual, 3 letters. | 'Fri' |
| f | Time, in 12-hour hours and minutes, with minutes left off if they're zero. Proprietary extension. | '1', '1:30' |
| F | Month, textual, long. | 'January' |
| g | Hour, 12-hour format without leading zeros. | '1' to '12' |
| G | Hour, 24-hour format without leading zeros. | '0' to '23' |
| h | Hour, 12-hour format. | '01' to '12' |
| H | Hour, 24-hour format. | '00' to '23' |
| i | Minutes. | '00' to '59' |
| I | Not implemented. | |
| j | Day of the month without leading zeros. | '1' to '31' |
| l | Day of the week, textual, long. | 'Friday' |
| L | Boolean for whether it's a leap year. | True or False |
| m | Month, 2 digits with leading zeros. | '01' to '12' |
| M | Month, textual, 3 letters. | 'Jan' |
| n | Month without leading zeros. | '1' to '12' |
| N | Month abbreviation in Associated Press style. Proprietary extension. | 'Jan.', 'Feb.', 'March', 'May' |
| O | Difference to Greenwich time in hours. | '+0200' |
| P | Time, in 12-hour hours, minutes and 'a.m.'/'p.m.', with minutes left off if they're zero and the special-case strings 'midnight' and 'noon' if appropriate. Proprietary extension. | '1 a.m.', '1:30 p.m.', 'midnight', 'noon', '12:30 p.m.' |
| r | RFC 2822 formatted date. | 'Thu, 21 Dec 2000 16:01:07 +0200' |
| s | Seconds, 2 digits with leading zeros. | '00' to '59' |
| S | English ordinal suffix for day of the month, 2 characters. | 'st', 'nd', 'rd' or 'th' |
| t | Number of days in the given month. | 28 to 31 |
| T | Time zone of this machine. | 'EST', 'MDT' |
| U | Not implemented. | |
| w | Day of the week, digits without leading zeros. | '0' (Sunday) to '6' (Saturday) |
| W | ISO-8601 week number of year, with weeks starting on Monday. | 1, 53 |
| y | Year, 2 digits. | '99' |
| Y | Year, 4 digits. | '1999' |
| z | Day of the year. | 0 to 365 |
| Z | Time zone offset in seconds. The offset for timezones west of UTC is always negative, and for those east of UTC is always positive. | -43200 to 43200 |
二月
3
2010
3
2010
带图标的ComboBox控件_完整(C#)
/// **********************************************
/// 带图标的 ComboBox控件
///
/// ImageComboBox与相应的 ImageComboBoxItem
///
/// **********************************************
(..更多内容)
十月
9
2009
9
2009
Ubuntu操作系统安装使用教程
Ubuntu是一个流行的Linux操作系统,基于Debian发行版和GNOME桌面环境, 和其他Linux发行版相比,Ubuntu非常易用,和Windows相容性很好,非常适合Windows用户的迁移,预装了大量常用软件,中文版的功能 也较全,支持拼音输入法,预装了Firefox、Open Office、多媒体播放、图像处理等大多数常用软件,一般会自动安装网卡、音效卡等设备的驱动,对于不打游戏不用网银的用户来说,基本上能用的功能都有 了,在Windows操作系统下不用分区即可安装使用,就如同安装一个应用软件那么容易,整个Ubuntu操作系统在Windows下就如同一个大文件一 样,很容易卸载掉。…… (..更多内容)
热 门
- 使用Micolog,不错!(551)
- 我的第一个Chrome扩展 - 推箱子小游戏(467)
- 绑定域名可以访问了!!!(465)
- 玩了一下Google App Engine(457)
- 博客升级更新成功!!!(455)
- 图片(418)
- Django 模板语言(399)
- 电脑报2010文库在GAE发布完成!(399)

文章作者:aleaf.com