sas 数据集的命令行工具

February 21st, 2010 admin No comments

越来越多的人对 SAS 系统本身感兴趣,想知道她的内部结构、如何运行等。今天,偶然发现一个读取 sas 数据集的命令行工具,小巧玲珑。与 Elvis SAS Log Analyser 是同一作者。

dsread

Version 1.0, 2010-02-19

dsread is a simple command-line utility for working with datasets in the SAS7BDAT file format, as produced by The SAS System, The World Programming System and others.

This version lets you:

* list the summary details of datasets
* list the contents (the variable names and other attributes) of datasets
* convert a dataset to CSV format for import into Excel and other software

Download the zip file and save dsread.exe anywhere in your path – C:\WINDOWS will do. To uninstall, just delete the file – dsread doesn’t leave any other files or registry entries on your machine.
Usage

To use dsread, start a Command Prompt and enter:

dsread [flags] [filename]

For example

dsread ..\sashelp\im*

might give output like:

Name Vars Obs Label
—————————————————————–
IMAGERW 13 21 Portable SAS/IMAGE format information
IMGMSG 6 112 Image NLS message file

Use the ‘-h’ flag for help, ‘-c’ flag to get a contents listings, and the ‘-v’ flag to get a CSV version of the dataset – you’ll probably want to redirect the output of a ‘dsread -v’ into another file, like this:

dsread -v shoes > shoes.csv

This will only work on uncompressed Windows-format SAS7BDAT files for now. More info will appear here in time. Programmers may also be interested in SaviDataSet which is a DLL for both reading and writing SAS7BDAT files.

Categories: SAS Tags:

想法四:做个更加 Web 2.0 的在线工具网站

December 18th, 2009 admin 1 comment

已有这样的网站,如中国人在线工具,但是不够 AJAX,最主要是不够全。

这是很早以来就有的想法,迟迟没有动手。如果我自己做的话,打算用 Java 语言,以 Google App Engine 为平台,用 GWT 开发界面。需要大量收集这样的网站,把它们展现在独立的 iframe 中。

Web 程序越来越多,集大成者得流量。

Categories: Java, Personal Tags:

想法三:开发一个将 Evernote 和 Supermemo 整合起来的网站或程序

December 18th, 2009 admin No comments

Evernote 帮助收集知识,Supermemo 帮助记忆知识。
尽管 Supermemo 也具有部分 Evernote 的功能,但是总觉着不如 Evernote 方便。如能将二者结合,善莫大焉。

用 Java 来做开发也许是个不错的选择。

Categories: Personal, Software Tags: ,

想法二:开发一个推广 OpenClinica 的中文网站

December 18th, 2009 admin No comments

OpenClinica, 简单说是一个开源的 EDC 系统,主要适用于临床试验。
我已注册域名:openclinica.org.cn

Categories: Personal Tags:

想法一:开发一个将 evernote 中的笔记发布到 wordpress 的插件

December 18th, 2009 admin No comments

有时想将 Evernote 中经过自己再加工、创作的笔记发布到 wordpress 博客上,但是还没有找到满意的解决方案。
解决方案:
一、Evernote 支持将笔记发送到电子信箱,Wordpress 支持从电子信箱发帖,所以我们可以将笔记发送到与 Wordpress 绑定的信箱。缺点较多,不一一列举。
二、Evernote 支持将笔记共享(其网页形式也非常喜人,但是不支持界面的定制和其他用户的评论),Wordpress 已有一款插件 EverPress, 可以将 Evernote 中共享的笔记发送到 Wordpress。问题是功能较弱,不能将 Evernote 中笔记的 Tag 等发布到 Wordpress,并且一旦发布后,如笔记再有改动,则不能体现到博客中。

期待着更好的插件。

Categories: Software, Wordpress Tags: ,

晒晒我的想法

December 18th, 2009 admin No comments

脑子里经常有一些想法,很多是坐公交车时为打发时间而构思的,有一些自己能实现出来,有一些就慢慢的淡忘了。我觉着与其让让那些想法慢慢被遗忘,不如和他人分享,也许真的有些人会有类似的想法,也许有些人能帮我把这些想法完善,也许有些人能帮我或和我一起把这些想法实现,也许通过这种方式能认识您。欢迎拍砖。

Categories: Personal Tags:

Google Wave 邀请

November 6th, 2009 admin 12 comments

目前手里还有10个google wave 邀请,需要的请 email 给我或者留言。先到先得。

Categories: Google Tags:

Evernote 的 android 版本

September 22nd, 2009 admin No comments

尽管 Evernote 的正式版尚未发布,不过可以在 Evernote 的官方网站上下载测试版,网址为:http://s.evernote.com/androidbeta
我试用后,感觉还不错。登录后,可见四个大的图标,Snapshot, Upload File, Text Note 和 Audio Note. 也就是说可以拍照、上传文件、添加文本和录音。界面底部有一个搜索框。
另外,Menu 菜单中两个较为重要的按钮是 Recent notes 和 Pending notes。当点击 Recent notes 时,自动调用浏览器,访问 web 页面。看来该版本不支持数据的本地存储,也许是开发者出于对手机存储容量的考虑吧。不过我认为,将特定类型(比如说,只包含文本的)的、特定时间段的数据保存到 SD 卡也许会更方便一点。毕竟现在还是测试版,新的功能可能还在开发过程中。

当点击 Snapshot 图标,拍照,输入标题,点击保存,一个新的 note 就添加成功了。该便签的状态为 Pending (可以通过 Menu 菜单 –> Pending notes 查看到),并自动上传到服务器。

感觉很不错。

PS: 最近几天内,我的 G1 手机分别安装了 Remember the milk(正式) 和 Evernote(测试),真是如虎添翼呀。

Categories: Cell phone Tags:

我 G1 上的软件列表,更新中

September 18th, 2009 admin No comments

使用 G1 也有七八个月的时间了,尝试使用了很多小软件,如今留下的有:

Advanced Task Manager
AK Notepad
AndFTP
AnyCut
Apps Installer
ASTRO
Barcode Scanner (是不是默认安装的,记不清楚了)
Download Crutch
Google Voice
HereIm! Map Helper
LianYun
LunaCal
Metal Detector
Mind Map Memo
Multilang Dictionary
MyBackup Pro (慎用,遇到 contacts 不能同步的问题)
MyCloset (曾经想开发过类似的软件,别人捷足先登了)
NewsRob
Palringo
Panda Reader
Remember The Milk
Root Booter
RTM Tasks
Skype
Solitaire
Spare Parts (是不是默认安装的,记不清楚了)
Sudoku
Superuser Whitelist
Terminal Emulator
同花顺高端版
World

Categories: Cell phone Tags:

软件封锁

September 18th, 2009 admin No comments

公司又开始对非授权软件进行封锁了。虽然我在办公室用的都是开源软件或者共享软件(非破解),但大部分还是被禁掉了,幸活的有 total commander, evernote. (幸好 evernote 没有被禁掉,因为最近用它做笔记越来越多。)
公司的做法也是为了电脑安全和免于“使用盗版软件”的起诉,本无可厚非。但这种做法还是让像我这种对特定软件(Emacs, AutoHotkey 等)非常依赖的人感觉很不舒服。于是有时候就琢磨如何突破这种封锁?不是与公司做对,只是一种尝试罢了,请别误解。想到的最简单的办法就是全部改用基于 java 的软件,因为总不至于连 java 命令都禁掉吧。不过,虽然基本上常用软件都有相应的基于 java 开发的替代软件,但对这些软件不熟悉是最大的问题,也懒得去试用。另外一种想法是,利用 java 开发一种软件,实现先将第三方软件加载到内存,然后在内存里执行。Google 了一下,没有找到类似软件或文章。尝试过程中遇到的问题,略记如下:

利用 Java RunTime 类进行了对系统命令或软件调用的测试,注意到并感觉有意思的是不能调用 Framework .NET 编译的程序。不知道其他人是否遇到这样的问题?

网上有篇文章”Load an EXE file and run it from memory”,不过是用 C# 实现的。而且最大的缺点是加载的第三方软件必须是with Framework .NET compiled.

Categories: Software Tags:
-->