<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>银河星尘 &#187; Galaxy_Original</title>
	<atom:link href="http://galaxy.ourkernel.com/blog/tag/galaxy_original/feed" rel="self" type="application/rss+xml" />
	<link>http://galaxy.ourkernel.com/blog</link>
	<description>Galaxy's World</description>
	<lastBuildDate>Thu, 02 Sep 2010 06:22:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>[整理]在C中操作int的连续某几位</title>
		<link>http://galaxy.ourkernel.com/blog/201007/855</link>
		<comments>http://galaxy.ourkernel.com/blog/201007/855#comments</comments>
		<pubDate>Mon, 12 Jul 2010 14:44:01 +0000</pubDate>
		<dc:creator>Galaxy</dc:creator>
				<category><![CDATA[C_CPP_CS]]></category>
		<category><![CDATA[C/C++]]></category>
		<category><![CDATA[Galaxy_Original]]></category>

		<guid isPermaLink="false">http://galaxy.ourkernel.com/blog/?p=855</guid>
		<description><![CDATA[翻同事的The C Programming Language 2th（C程序设计语言）和对应的习题解答The C Answer Book看到的。 实体书看得爽，但写文章还是得找电子版，英文的chm有，可惜习题解答没文字版…… The shift operators perform left and right shifts of their left operand by the number of bit positions given by the right operand, which must be non-negative. Thus x]]></description>
		<wfw:commentRss>http://galaxy.ourkernel.com/blog/201007/855/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>[Tip]awk笔记</title>
		<link>http://galaxy.ourkernel.com/blog/201005/803</link>
		<comments>http://galaxy.ourkernel.com/blog/201005/803#comments</comments>
		<pubDate>Wed, 19 May 2010 08:49:07 +0000</pubDate>
		<dc:creator>Galaxy</dc:creator>
				<category><![CDATA[Written]]></category>
		<category><![CDATA[Galaxy_Original]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://galaxy.ourkernel.com/blog/201005/803</guid>
		<description><![CDATA[指定输出的域分隔符： awk -vOFS=&#34;\t&#34; '{print $1,$2,$3,$4,$6}' awk 'BEGIN { OFS = &#34;\t&#34; } {print $1,$2,$3,$4,$6}' Built-in Variables that Control awk CONVFMT This string controls conversion of numbers to strings (see section Conversion of Strings and Numbers). It works by being passed, in effect, as the first argument to the sprintf function (see section Built-in Functions for [...]]]></description>
		<wfw:commentRss>http://galaxy.ourkernel.com/blog/201005/803/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[原创]通过路由表调教Linux下载机</title>
		<link>http://galaxy.ourkernel.com/blog/201005/795</link>
		<comments>http://galaxy.ourkernel.com/blog/201005/795#comments</comments>
		<pubDate>Sun, 09 May 2010 11:15:11 +0000</pubDate>
		<dc:creator>Galaxy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Galaxy_Original]]></category>
		<category><![CDATA[Route]]></category>
		<category><![CDATA[TCP]]></category>

		<guid isPermaLink="false">http://galaxy.ourkernel.com/blog/201005/795</guid>
		<description><![CDATA[新Linux服务器配好了，WD的4k扇区带来的分区问题也解决了，旧下载机上用rtorrent拖的文件也该拷过来了。 直接走sftp拷的话，虽然网络层是通过SSL校验的，但磁盘那块没；再加上下载机身loongson2E的，走sftp太费CPU。所以，还是走BT。问题是，rtorrent老去连ADSL外面的机子，留给LAN的网速就10M不到。 Galaxy现在的网络结构是： ADSL->Linksys&#160;WRT110-+->Server0->Notebook &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#124; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;+->Bt_box WRT110在172段，本本在192段。 如果不改路由表，BT盒子会先连缺省网关（WRT110），然后被告知去192要连Server0，再去连Server0，最后才到本本。当然，上外网就直接找WRT110，NAPT出去。 # route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 172.28.33.0 * 255.255.255.0 U 0 0 0 eth0 default 172.28.33.254 0.0.0.0 UG 0 0 0 eth0 首先，连本本要加速： route add -net 192.168.66.0/25 gateway 172.28.33.25 然后，断外网： route del default gw 172.28.33.254 注意，不能直接换缺省路由route add default gw [...]]]></description>
		<wfw:commentRss>http://galaxy.ourkernel.com/blog/201005/795/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[原创]用Linux做网关</title>
		<link>http://galaxy.ourkernel.com/blog/201005/790</link>
		<comments>http://galaxy.ourkernel.com/blog/201005/790#comments</comments>
		<pubDate>Tue, 04 May 2010 14:47:31 +0000</pubDate>
		<dc:creator>Galaxy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Galaxy_Original]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Route]]></category>
		<category><![CDATA[TCP]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://galaxy.ourkernel.com/blog/201005/790</guid>
		<description><![CDATA[Galaxy现在的网络结构是： ADSL->Linksys WRT110->PC->Notebook （万幸当年没接着用TP-LINK的路由，换了这个可以自己加路由表的，虽然在Linksys中还是算低端…… PC是装Gentoo的个人文件服务器（兼BT、ED）。 WRT110带的是100M交换机，虽然可以冲到上下各10M字节的满速，但离硬盘的速度还是差出好远。 而笔记本就一个RJ45，虽然走无线也可解决上网问题，但一来辐射不爽，二来，5100那卡挂一晚BT，第二天在单位竟然会隔着塑料板烫手。 所以，PC到NB连1G网线势在必行。 iproute2搞NAPT也行，但一想到上公网要经过两次NAT，心里就不爽。还是走经典途径，配路由表。 Notebook装WinNT，按单位的DHCP结果配成192.168.66.33/25, default via 192.168.66.126. 值得庆幸的是某人没绑ARP。 PC是： config_eth0=&#40; &#34;192.168.66.{25,126}/25 brd 192.168.66.255&#34; &#41; #routes_eth0=( &#34;192.168.66.0/25 via 192.168.66.126&#34; ) &#160; config_eth1=&#40; &#34;172.28.33.25/24 brd 172.28.33.255&#34; &#41; routes_eth1=&#40; &#34;default via 172.28.33.254&#34; &#41; mtu_eth1=1492 metric_eth1=50 看到mtu就该知道eth1是连路由的，eth0是连本本的。 192段的设两个IP，目的是网关单独用一个126，业务用25的。毕竟万一在单位点错了putty记录，SSH到单位路由上就不好了。 其实，Linux下唯一需要额外做的就是： echo 1 > /proc/sys/net/ipv4/ip_forward 也就是配置/etc/sysctl.conf： net.ipv4.ip_forward = 1 net.ipv4.ip_dynaddr = 1 # 这个顺手加了，万一那天本本改DHCP估计会用到。 最关键的就是在出口路由器上加一条： [...]]]></description>
		<wfw:commentRss>http://galaxy.ourkernel.com/blog/201005/790/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>从Git树中取出某个文件</title>
		<link>http://galaxy.ourkernel.com/blog/201002/775</link>
		<comments>http://galaxy.ourkernel.com/blog/201002/775#comments</comments>
		<pubDate>Mon, 22 Feb 2010 07:05:28 +0000</pubDate>
		<dc:creator>Galaxy</dc:creator>
				<category><![CDATA[Other Softs]]></category>
		<category><![CDATA[Galaxy_Original]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://galaxy.ourkernel.com/blog/201002/775</guid>
		<description><![CDATA[Galaxy现在是Win和Linux双机都用来写程序，两边用git同步（当然目的是版本管理）。 现在的问题是，Linux下改完了可以在Win下pull，但Win下改了却只能原地push上去，好吧，我没装好SFU+GentooPrefix，也没好好配git。 push只会改远程的树(./.git/*)，不会改树下的文件。跑过去git status就会告诉你有“Changed but not updated”。问题是，咋把这边改动后的文件提出来？ g了下git extract single file from tree，找到篇“RCS vs. Git for quick versioning”才看到（竟然还是黑git的文……）。 ;看有啥改变 $ git diff tools/veentypes/vnstat.pl &#160; ;看最新版的hash $ git log tools/veentypes/vnstat.pl &#160; ;看这个hash对应的diff结果 $ git show 6fb4acc1f29d8dbf921020b2015779b097647587 &#160; ;取出这个版本的完整文件 $ git show 6fb4acc1f29d8dbf921020b2015779b097647587:tools/veentypes/vnstat.pl &#160; ;这个就不解释了…… $ git show 6fb4acc1f29d8dbf921020b2015779b097647587:tools/veentypes/vnstat.pl &#62; tools/veentypes/vnstat.pl 任务完成！ 原文摘录（格式就算了……）： Wednesday, December 2, 2009 [...]]]></description>
		<wfw:commentRss>http://galaxy.ourkernel.com/blog/201002/775/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>[整理]发现个比RoboForm方便的密码管理软件LastPass</title>
		<link>http://galaxy.ourkernel.com/blog/201002/770</link>
		<comments>http://galaxy.ourkernel.com/blog/201002/770#comments</comments>
		<pubDate>Fri, 12 Feb 2010 16:05:51 +0000</pubDate>
		<dc:creator>Galaxy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Galaxy_Original]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://galaxy.ourkernel.com/blog/201002/770</guid>
		<description><![CDATA[以前一直用Roboform来管理密码，有Keygen也就不在乎是否需要交米。后来，打算用Linux，却被这个问题困扰了——Roboform没有Linux版。 KeePass是Open Source的，但在浏览器整合上没Roboform方便。KeeForm和KeePass Toolbar也不支持Linux。 刚刚上wiki看到KeePassX（其实Gentoo装的就是这个…），但还是没自动填表，非要drag’n’drop fields。(确实有Auto-Type，不过，是SendKey之类的东东。) 偶然间，看到LastPass，虽然是在线的，但国外的在线服务总比国内的可信，比如Gmail。看完privacy，感觉还行。至于是否保存三次元的密码（就素那些银行帐号啥的），Galaxy还没想好。 相关下载在 https://lastpass.com/misc_download.php 转两个介绍： http://en.wikipedia.org/wiki/LastPass LastPass is a freeware password management program developed by LastPass. It is available as a plugin for Internet Explorer, Mozilla Firefox, Google Chrome and Safari. There is also a LastPass bookmarklet for other browsers. LastPass is PC Magazine&#8217;s Editors choice for password management, has [...]]]></description>
		<wfw:commentRss>http://galaxy.ourkernel.com/blog/201002/770/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[原创]用Perl写的归并排序(Merge sort)</title>
		<link>http://galaxy.ourkernel.com/blog/201002/768</link>
		<comments>http://galaxy.ourkernel.com/blog/201002/768#comments</comments>
		<pubDate>Wed, 10 Feb 2010 17:05:43 +0000</pubDate>
		<dc:creator>Galaxy</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Galaxy_Original]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[Sort]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://galaxy.ourkernel.com/blog/201002/768</guid>
		<description><![CDATA[说是排序，其实大家用的时候往往都是来合并其他方法排序的局部结果的。 英文wiki直接写具体到排序方法最后才谈大家咋用，中文wiki就上来就谈合并，后面才讲咋排序。老外从小到大，咱从大到小，倒也是常态。 Utility in online sorting Merge sort&#8217;s merge operation is useful in online sorting, where the list to be sorted is received a piece at a time, instead of all at the beginning. In this application, we sort each new piece that is received using any sorting algorithm, and then merge it into our [...]]]></description>
		<wfw:commentRss>http://galaxy.ourkernel.com/blog/201002/768/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[发现]被断章取义的“相濡以沫”</title>
		<link>http://galaxy.ourkernel.com/blog/201002/760</link>
		<comments>http://galaxy.ourkernel.com/blog/201002/760#comments</comments>
		<pubDate>Sat, 06 Feb 2010 16:42:19 +0000</pubDate>
		<dc:creator>Galaxy</dc:creator>
				<category><![CDATA[Stories]]></category>
		<category><![CDATA[Galaxy_Original]]></category>
		<category><![CDATA[History]]></category>

		<guid isPermaLink="false">http://galaxy.ourkernel.com/blog/201002/760</guid>
		<description><![CDATA[本来是查其他东西的，不想某微薄写了：我今天才知道，相濡以沫后半句是不如相忘于江湖。吃惊之余，G之，消息属实。 鉴于Galaxy也是今天才知道，特作文以记之。 嘛，人类嘛，断章取义什么的，估计是难以避免的吧…… 是百折不饶，还是及时放弃另辟蹊径？这，是个问题。 嘛，只要自己考虑清楚了，日后不要后悔就行了。不管怎么说，自己都得为自己做出的选择负责。 Galaxy一向不大量服用酒精等麻醉剂，就是不想对迷糊的选择负责。哪怕因此没作成酒肉交易，那，也是我的选择！（反正Galaxy不是政客不是商人不是陪酒的……） http://wx.ccut.edu.cn/index/%B9%C5%B5%E4%CE%C4%D1%A7/%D7%AF%D7%D3/06.htm 泉涸，鱼相与处于陆，相呴以湿，相濡以沫，不如相忘于江湖。与其誉尧而非桀也，不如两忘而化其道。 ——《庄子·内篇·大宗师 第六》 http://www.epochtimes.com/b5/1/9/12/c5692.htm 泉 涸 ， 魚 相 與 處 於 陸 ， 相 呴 以 濕 ， 相 濡 以 沫 ， 不 如 相 忘 於 江 湖 。 與 其 譽 堯 而 非 桀 也 ， 不 如 兩 忘 而 化 其 [...]]]></description>
		<wfw:commentRss>http://galaxy.ourkernel.com/blog/201002/760/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>[日记]当了回面试官……</title>
		<link>http://galaxy.ourkernel.com/blog/201001/753</link>
		<comments>http://galaxy.ourkernel.com/blog/201001/753#comments</comments>
		<pubDate>Tue, 26 Jan 2010 08:21:16 +0000</pubDate>
		<dc:creator>Galaxy</dc:creator>
				<category><![CDATA[diary]]></category>
		<category><![CDATA[Galaxy_Original]]></category>

		<guid isPermaLink="false">http://galaxy.ourkernel.com/blog/201001/753</guid>
		<description><![CDATA[今天, 20100126, 上午： 本来想去听数理统计的课，结果组长临时有事，要我代他电话面试。 嘛，好玩的东西，还是try try比较好，再说是上级委托，就做吧…… 时间不够，就边电话对方边看简历（每人预约时间间隔20min）： 预约时间第一个是0930的生信的硕士，中花联邦的就不期待Linux了，一问，果然是Win下的。好在会Matlab，前阵子Galaxy看到片review说对应的算法都有Matlab实现，正好可以抓来用用。统计知道用SAS，虽然还只是GUI级别，但，总比Excel和SPSS强点。看来生物专业用SAS从文件读数据分析的，没几个吧…… 你说R？Galaxy当然用过R，而且还比较喜欢R，但，玩SAS有错吗？ 生物嘛，基本就是比白丁强点，和专家比差远了（想到砖家的别起哄）。算了，反正基本概念就那几个，稍稍调教下就是了。 数学和统计，Galaxy个人经验是，做QTL的，统计都差不到哪去。 基本没啥问题，好不好就得和后面的比了。 （结果是后面的没几个比他好的…… 嘛，某人手气不错？） 0950，偏医的硕士，电话通了1min多点就断线了，原因不知道是哪边，换无绳电话回拨也不通。 本来看到围棋爱好者，作为《棋魂》观众，还想向他学学，结果没机会了。 （嘛，估计他也没这次机会了，损失是双方的嘛…… 反正我写了建议安排其他部门，该做的都做了） 1010，生工硕士，感觉平平，谈创新时提到本科捣鼓了下苯环取代后电子云的改变，问她是否有验证或尝试预测，她说是统计现有资料，没做实验，本身也只是有机化学结业作业，没咋深入。也就是说，压根没具体数学描述，大致拟了几个代数式而已，说不定连代数式都没。 最后，她也表示了倾向实验平台。 OK，那就不怪我了。在评语上写“建议转实验平台面试”，然后pass。 1030.北京理工自动控制系检测硕士班，这个最囧，“熟悉”嵌入式开发，结果只会IDE，不知道GCC是啥。不过说熟练“protel”，倒是知道这属于EDA。Matlab会用，看来一般工科都会这个。 本科是“精通BP神经网络结构和BP算法”，我问她BP的原理和使用过程，答案是“忘了”…… 硕士是“主要包括：……，视频图像的采集、音频信号的A/D采集；”，有用到GPS模块和无线传输。 我问无线通信的频率，她问是否为带宽，强调是载波频率，才答七百五十多兆，好，这算细节，咱不追究。 问GPS的定位原理，说模块包装了，不知道。好，想说黑箱就黑箱吧。 问视频是否处理，说导师讲压缩太麻烦，不压。再问视频采样规格，不知道，问测试时用的规格，还是不知道，问了半天，才说刚开始做。 好，我问你音频的采样规格，这该知道吧。结果还是不知道。等我把PCM和DTS大致描述下后（我没说这两词，不过DTS那个标志性的1bit我还是说了），她才说，上半年忙着找工作。 我说：“我没有问错吧……”她倒是老实回答没有。 一个专业学这个专业的人，知道的还没我这个“业余人士”多…… 嘛，貌似我知道的太多了。 既然这样，pass。忘了评语写啥的了，反正我没写坏话。但前面的学习情况啥的，我是具体写了这些项目不是忘了就是不知道。没办法，作为观察者，重在客观。 （刚才部门行政来回收简历和面试考核表，我只好意思留下选中的，这份还没记录完…… >_< ） 1050，西安交大生化与分子（基础医学）硕士。本科是陕西科技大药物制剂的。 打电话过去时两次没接，后来回电说是在为妹妹挂号。（Galaxy现在才想起来，面试期间一直是她打过来的……）。 基本生物没啥问题，编程没碰过，统计也没啥可说的，用的当然也是SPSS（还好不是Excel）。典型的生化与分子专业学生水平。 做的课题是哮喘发病与过氧化酶类的关系，用E3大鼠哮喘模式系，腺病毒表达人的5个过氧化酶，以期基因治疗。 后来用大鼠建了个哮喘模型，即用OVA（过氧化agent？）、铝佐剂致敏。目的是从氧化应激角度研究。 好，提问： 为什么选“OVA铝佐剂”？ Galaxy是想问为啥选这种佐剂的，因为免疫的话，佐剂也很重要。 可听了答案才知道，是她没加标点，OVA是抗原，铝才是佐剂。但具体免疫方法是实验室已经成熟的protocol，自己没开发。那，就没必要接着问了。 为什么选腺病毒？ 不整合入基因组，没有遗传毒性。（原来这是叫作“遗传毒性”，嘛，挺贴切的说） 对基因治疗的预期和看法？ 目前没靶向性。 预期好像没说啥有特色的，应该是不明朗之类吧…… 整合入基因组，有遗传毒性是好事还是坏事？ 两方面都有。 没有靶向性，整合会影响生殖细胞。 一般都是超表达的，整合后药效就不好控制回去了。 （这个回答不错。不过，作为本科毕业生，知道事物的辩证性是起码的吧？不是吗？） 如何才能影响生殖细胞的？ [...]]]></description>
		<wfw:commentRss>http://galaxy.ourkernel.com/blog/201001/753/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[整理]Synergy+的配置</title>
		<link>http://galaxy.ourkernel.com/blog/201001/752</link>
		<comments>http://galaxy.ourkernel.com/blog/201001/752#comments</comments>
		<pubDate>Sun, 24 Jan 2010 07:42:24 +0000</pubDate>
		<dc:creator>Galaxy</dc:creator>
				<category><![CDATA[Other Softs]]></category>
		<category><![CDATA[Galaxy_Original]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://galaxy.ourkernel.com/blog/201001/752</guid>
		<description><![CDATA[在“Synergy+ 多机共享键盘鼠标的开源软件”中已经介绍了这软件，现在新电脑到手，开配。 http://code.google.com/p/synergy-plus/wiki/Setup http://synergy2.sourceforge.net/autostart.html http://synergy2.sourceforge.net/security.html …… 首先是服务端， 这里以Win下为例，Linux下其实更简单。 配置文件 launcher.exe生成的配置文件在“我的文档”下：synergy.sgc，Win7下是： C:\Users\galaxy\Documents\synergy.sgc 文件内容为： section: screens My_Linux_Client: switchCorners = none switchCornerSize = 0 My_Win_Server: end section: links My_Linux_Client: right = My_Win_Server My_Win_Server: left = My_Linux_Client end section: options screenSaverSync = false keystroke&#40;Alt+Grave&#41; = lockCursorToScreen&#40;toggle&#41; end 注意left和right都要写，否则就只能从一边移到另一边却不能移回来。Galaxy最开始还以为是Win7比较特殊的关系…… switchCorners那两个不是必须的，如果用GUI生成就会有，官网的synergy.conf就没有。 命令行格式 &#34;C:\Program Files (x86)\Synergy+\bin\synergys.exe&#34; --no-daemon --debug WARNING --name My_Win_Server --address [...]]]></description>
		<wfw:commentRss>http://galaxy.ourkernel.com/blog/201001/752/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
