2013年2月1日

Python 代码

摘要: >>>import os>>>os.getcwd()>>>os.chdir(’..’)>>>os.listdir(’/home/sb/bioinfo/seqs’)>>>os.path.isfile(’/home/sb’)>>>os.path.isdir(’/home/sb’)>>>os.remove(’/home/sb/bioinfo/seqs/ms115.ab1’)>>>os.rename(’/home/sb/seqs/readme.txt’,’/h 阅读全文

posted @ 2013-02-01 12:52 testplay 阅读(336) 评论(0) 推荐(0)

2013年1月27日

Core concepts of GNU Radio 翻译

摘要: GNU Radio 核心概念本文提供了GNU Radio基础知识.在阅读其它文章之前必须先读本文.即使你曾经了解过,也有必要浏览一遍以确保是否有遗漏的地方。Flow graphs 和它的结构首先我们必须要理解的最基本的概念是:Flow graphs 和 blocksFlow graphs 表示了数据的流向.很多典型的GNU Radio 应用都包含一个 Flow graphs 。流程图的节点称为 blocks, 数据在blocks之间流动.待续...... 阅读全文

posted @ 2013-01-27 23:51 testplay 阅读(200) 评论(0) 推荐(0)

转载 A first working code example

摘要: 1 #!/usr/bin/env python 2 3 from gnuradio import gr 4 from gnuradio import audio 5 6 class my_top_block(gr.top_block): 7 def __init__(self): 8 gr.top_block.__init__(self) 9 10 sample_rate = 3200011 ampl = 0.112 13 src0 = gr.sig_source_f (sample_rate, gr.GR_SIN_... 阅读全文

posted @ 2013-01-27 23:24 testplay 阅读(238) 评论(0) 推荐(0)

转 gst-launch & gst-inspect 介绍

摘要: 用gstreamer架构做对媒体开发时,gst-inspect 和gst-launch是两个非常使用的小工具,前者是用于查询库中已经包含的所有element以及他们的详细信息,后者用于快速构建一条pipeline,这个命令最爽,因为只要一句话,你就可以感受到播放的快感。废话不多说,直接看示例:1 gst-inspect用法:首先进入命令行下,然后键入:gst-inspect, 所有element都显示;gst-inspect >d:/c.txt 将所有element都导出到d盘根目录下的c。txt文件中,这个命令在你想要查找某个element但有不确定其全名时很有用gst-inspect 阅读全文

posted @ 2013-01-27 20:32 testplay 阅读(6725) 评论(0) 推荐(1)

转载 Writing packages for homebrew on OS X

摘要: Writing packages for homebrew on OS XUpdate 2010-08-01: The format for Homebrew formulae has changed a bit since this was posted. Sincemgis now part of the official Homebrew repo, you can view its formula file as an example to compare what has changed.One of the things that I really like abouthomebr 阅读全文

posted @ 2013-01-27 15:27 testplay 阅读(254) 评论(0) 推荐(0)

转载 homebrew — Mac OS X 下新的软件包管理工具

摘要: 虽然 Mac OS X 自带了不少 Unix 下的开源软件,比如 vim, ruby, python, perl 等等,也自带了许多常用的库,包括 iconv, zlib 等等,但我们仍然有时会需要自己动手安装一些这样的软件或者库,要自动化这样的安装,现有最常见的选择是MacPorts和Fink,其中 MacPorts 是基于源代码的包管理,并不在自己的库里储存软件的实际内容,只有一个定义如何编译代码的Portfile和一些专门针对这个平台的 patch;而 Fink 则是Apt包管理系统在 Mac OS X 下的一个克隆,采用二进制分发,用户直接从 Fink 的仓库中下载安装软件。这两种方式 阅读全文

posted @ 2013-01-27 14:20 testplay 阅读(298) 评论(0) 推荐(0)

Homebrew 的使用

摘要: 编辑需要安装的库信息:brew edit libname编辑 libname配置文件, 手动配置安装信息 阅读全文

posted @ 2013-01-27 14:12 testplay 阅读(117) 评论(0) 推荐(0)

2013年1月26日

玩转 MAC OSX

摘要: 1、mac中快速切换至桌面mac中按组合fn+F11即可快速切换至桌面 阅读全文

posted @ 2013-01-26 20:39 testplay 阅读(187) 评论(0) 推荐(0)

导航