Results tagged “software”

Win7 IPV6 127.0.0.1异常的问题

9月份使用3年多的T60 Win7 旗舰版突然出现异常,无法使用GoAgent,检查后发现是127.0.0.1环回IP地址不可达。
当时折腾了2个晚上,最终以失败而告终,无奈之下重装了系统,暂时服务正常了。

上周发现QT突然又无法使用,死活登录不上,特意跑到EliteTrader论坛看了最近没啥异常,除了BigChart无法再使用。
还好上周5把X220带回家了,上面也安装了QT,结果一测试居然发现正常使用,那应该就不是QT系统的问题,而是T60的系统出现了异常。

尝试重装,尝试把X220上的软件整体打包过来均无法正常使用,无奈之下准备抓包看看情况。访问wireshark的时候才发现无法直接访问,准备启用GoAgent。一试不打紧,原来GoAgent又完蛋了,自然的想到了ping 127.0.0.1,居然又和9月份的情况一样了。

看看近期的软件安装记录和系统更新记录,先把Windows Defender彻底停止服务,再将公司VPN软件卸载,再卸载了CICSO的一款软件,测试后仍然异常。
再ipconfig查看,突然发现了IPv6的网卡:Teredo Tunneling Pseudo-interfac

在9月份的时候,用尽多个办法禁用Win7系统的IPv6均告失败,本次看到分外眼红,google一把,发现了几个有价值的信息:
http://blogs.msdn.com/b/richin/archive/2010/11/26/how-to-disable-teredo-tunneling-pseudo-interface-6to4-adapter.aspx

How to Disable Teredo Tunneling Pseudo-interface 6to4 Adapter

so sometimes this IPv4 to IPv6 shim can become a problem and in some cases it does not appear in the list of adapters where you can quickly disable it. Fortunately there is a way to quickly disable the Teredo Tunneling interface using the command line. Open an elevated command window and type the following command:
netsh interface teredo set state disabled

再测试依旧异常,尝试重启电脑,久违的ping 127.0.0.1正常了,开启QT,终于又可以使用了。

PS:查看设备的地方可以查看隐藏设备的。

比较有意思的一个问题是QT的正常使用难道必须依赖127.0.0.1正常么?奇怪的东西。


--EOF--

"VPN"神器:SoftEther


5年前就有同事介绍了这款软件,下载后一直没试过。最近几天,感觉有需要折腾一下,找了网上的一些文章,看了一下后折腾成功。
从家里能直接远程访问公司的PC了,爽歪歪!

参考信息:
http://en.wikipedia.org/wiki/SoftEther_Corporation


ttp://jssz.bokee.com/5771392.html
ttp://buyiban.blog.51cto.com/605706/132737
ttp://buyiban.blog.51cto.com/605706/132755



要点:
1)安装虚拟网卡HUB
2)安装虚拟网卡,指定内网IP,我使用的是192.168.10.x网段,这样和家里的路由器的192.168.1.x 10.0.0.x不冲突。
3)端口映射:443->7777,这样公司可以访问,注意开放win7的防火墙策略7777端口。
4)用户名和密码设定:softether:xxxx

--EOF--

Raspberry Pi 的环境梳理

1.tsinghua.edu.cn的apt package不完整(安装VIM失败),而且从速度来看,也没优势,用回了原来的库:

$ cat sources.list
deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi

2.系统中自带的VIM功能严重不足?从工作开发机拿来的配置基本没法用,所以重新更新安装了VIM
sudo apt-get install vim

3.下载上传不方便,安装了lrzsz
sudo apt-get install lrzsz

4.没有telnet开户端,测试网络端口不方便,需要安装:
sudo apt-get install telnet

5.安装go:
http://dave.cheney.net/2012/09/25/installing-go-on-the-raspberry-pi

Installing the prerequisites
Raspbian comes with almost all the tools you need to compile Go already installed, but to be sure you should install the following packages, described on the golang.org website.

% sudo apt-get install -y mercurial gcc libc6-dev
Cloning the source

% hg clone -u default https://code.google.com/p/go $HOME/go
warning: code.google.com certificate with fingerprint 9f:af:b9:ce:b5:10:97:c0:5d:16:90:11:63:78:fa:2f:37:f4:96:79 not verified (check hostfingerprints or web.cacerts config setting)
destination directory: go
requesting all changes
adding changesets
adding manifests
adding file changes
added 14430 changesets with 52478 changes to 7406 files (+5 heads)
updating to branch default
3520 files updated, 0 files merged, 0 files removed, 0 files unresolved

Building Go
% cd $HOME/go/src
% ./all.bash
If all goes well, after about 90 minutes you should see

ALL TESTS PASSED

---
Installed Go for linux/arm in /home/dfc/go
Installed commands in /home/dfc/go/bin
If there was an error relating to out of memory, or you couldn't configure an appropriate swap device, you can skip the test suite by executing

% cd $HOME/go
% ./make.bash
as an alternative to ./all.bash.

Adding the go command to your path
The go command should be added to your $PATH

% export PATH=$PATH:$HOME/go/bin
% go version
go version devel +cfbcf8176d26 Tue Sep 25 17:06:39 2012 +1000
Now, Go and make something awesome.


但直接更新出问题,该死的墙!需要走代理才行。
strace 进去发现网络死掉,接下载源代码,编译安装失败,看来必须翻了。

6.安装代理软件,最终我使用的是tsocks
sudo apt-get install tsocks
编辑/etc/tsosks.conf即可。
另外的privoxy安装了但没使用。

参考:
http://blog.creke.net/770.html
http://blog.ihipop.info/2011/01/1988.html
在终端下间接使用Socks5代理的几种方法(privoxy,tsocks,proxychains)

http://www.privoxy.org/
http://tsocks.sourceforge.net/faq.php

http://renyongjie668.blog.163.com/blog/static/16005312011824112410588/
http://www.51testing.com/?uid-225738-action-viewspace-itemid-246084

使用tsocks:
tsocks [application [applications arguments]]
tsocks [on|off]

举几个实例吧:
tsocks firefox  #之后再firefox上浏览网页就会默认使用tsocks配置的代理
tsocks git clone git://github.com/avikivity/kvm.git #使用proxy来git,这就是我用的原因

source tsocks on #设置当前shell的tsocks,该命令可能遇到一个小bug在下面有讲到
tsocks show    #查看当前Shell的tsocks设置,tsocks: This shell is socksified.
do_something   #这里就能默认使用tsocks的代理去do something了,前面已经设置了
source tsocks off #关闭当前shell的tsocks代理设置
tsocks show    #再次查看,tsocks: This shell is NOT socksified.
遇到的问题及解决方案:

13:01:17 libtsocks(2432): SOCKS server proxy-shz.intel.com (10.239.120.36) is not on a local subnet!
设置的代理没有与/etc/tsocks.conf文件中的local设置的网络在同一个子网中。
13:03:26 libtsocks(2451): The SOCKS server (proxy.ABCD.com) listed in the configuration file which needs to be used for this connection is invalid
配置文件的问题,我也忘了是啥时出现的错误了,但我碰到过的。
13:02:50 libtsocks(2441): Error 110 attempting to connect to SOCKS server (Connection timed out)
这个很明显了,就是你设置的proxy连接不上(可能是本来就连不上,或者没在同一个局域网内),请检查和确认配置。

ERROR: ld.so: object '/lib64/libtsocks.so' from LD_PRELOAD cannot be preloaded: ignored.
郁闷坏了,是因为有一次我在rhel5u5上安装了一个rhel6的tsock rpm包,解决办法是到http://pkgs.org/找到一个tsocks for rhel5的rpm包,安装即可。

[root@kvm-build ~]# source /usr/bin/tsocks on
basename: invalid option -- 'b'
Try `basename --help' for more information.
看到这样的错误,有可能是你的tsocks有点小bug,不过不影响使用的,接着你用tsocks show来看,一样可以看到提示说socks设置成功的,tsocks: This shell is socksified.

我的rhel5和rhel6中的tsocks都遇到这样的错误信息,你可以简单地修改一下/usr/bin/tsocks文件,将其中的basename的一行修改一下即可:

修改前:PRG="$(basename $0)"
修改为:PRG="$(basename -- $0)"

这是由于这个tsocks写后,coreutils工具做了些改动,其中basename工具需要用"--"来表示options的结束(为了保持新老版本的兼容)。这个问题在Bug-coreutils mailing list中讨论过了的,见:http://www.mail-archive.com/bug-coreutils@gnu.org/msg09912.html

替代工具机参考文档:
一个与tsocks有类似功能的工具: socat   (我暂时没怎么用)
见:http://freshmeat.net/projects/socat/
tsocks.conf配置文件:http://linux.die.net/man/5/tsocks.conf
tsocks的使用:http://www.21andy.com/blog/20100212/1678.html 
另外的人遇到的tsocks问题:http://notes.benv.junerules.com/socks-opera-and-brute-force/




--EOF--

R1 的transmission版本问题


今天抽空看了一下挂机2年多的R1的PT种子,有24个已损毁的,仔细查看,发现除14个"torrent not registered with this tracker"之外,另外的10个HD的种子居然是因为我的transmission版本2.0.3已经不被支持:
Transmission: Linux+Mac 1.92, 1.93, 2.13, 2.21, 2.22, 2.42, 2.52, 2.61, 2.71, 2,72, 2.73, 2.74, 2.75 

升级吧,2年多没折腾,都忘记怎么玩了,兴趣已过,也不想节外生枝,弄残了就又要搭进去好多时间。

找到之前玩弄时候的论坛,发现2个升降级的帖子:
http://www.hdpfans.com/thread-80-1-1.html
http://www.hdpfans.com/thread-158776-1-1.html
本来还想去看看是否支持最新版的,但到机器上一看:

/opt/bin # ls transmission* -l
-rwxrwxrwx    1 root     root       556828 Sep 18  2010 transmission-daemon
-rwxr-xr-x    1 root     root       616276 Sep 18  2010 transmission-daemon.1.92
-rwxrwxrwx    1 root     root       587016 Sep 18  2010 transmission-remote
-rwxr-xr-x    1 root     root       646464 Sep 18  2010 transmission-remote.1.92
-rwxrwxrwx    1 root     root       557240 Sep 18  2010 transmissioncli
-rwxr-xr-x    1 root     root       618884 Sep 18  2010 transmissioncli.1.92
-rwxr-xr-x    1 root     root         1745 Sep 12  2010 transmissionguard.sh

竟然发现之前的机器我备份过transmission-daemon.1.92这个版本,而且也是被支持的,这就省心了,直接修改
/opt/etc/init.d/S50transmission的启动程序:
#/opt/bin/transmission-daemon --paused -t -u root -v toor -g $CONFIGDIR -w $DOWNDIR
/opt/bin/transmission-daemon.1.92 --paused -t -u root -v toor -g $CONFIGDIR -w $DOWNDIR

重启程序,种子正常了~

--EOF--

最近碰到的一些小问题汇总

win7 自动播放的解决 
参考这里的说明和提供的修复工具:
http://support.microsoft.com/kb/967715


我的T43 R50p T60的CPU情况
http://ark.intel.com/products/27595/Intel-Pentium-M-Processor-760-(2M-Cache-2_00A-GHz-533-MHz-FSB)
http://ark.intel.com/products/27594/Intel-Pentium-M-Processor-755-(2M-Cache-2_00-GHz-400-MHz-FSB)
http://ark.intel.com/products/27256/Intel-Core2-Duo-Processor-T7400-(4M-Cache-2_16-GHz-667-MHz-FSB)

只有T60的 T7400 CPU支持64位指令集。
T60的945芯片组最大只支持3G内存。


Android手机不识别内存卡的解决方法 HPUSBFW
From http://www.iblog2008.cn/374.html

  前几天一哥们拿着他的本本来找游魂装系统,游魂有手头没有系统盘了,只好取出手机内存卡,然后做了一个U盘系统盘,然后很快的搞定了他的本本,然后游魂就杯具了,无论游魂怎么格式化这个SD卡,游魂的G2就是不识别它!手机一直显示"SD卡已移除,请插入新的SD卡",什么fat,fat32,不选快速格式化等等等等的方法游魂都一一试了一遍,可是游魂的G2还是不认内存卡。

  于是游魂是百度啊,Google啊,搜狗啊,soso啊,都搜了一遍,突然发现一哥们说把内存卡插入诺基亚的智能机里边,手机会提示格式化,然后拿出来用就行了,可是游魂手上没有诺基亚的智能机啊.

  于是游魂又搜啊搜搜啊搜,我滴神,还真让我找到了方法,很简单,去下载一个叫做惠普的格式化工具HPUSBFW的软件,然后用这个软件格式化一下就行了。

  下面是惠普的格式化工具HPUSBFW的使用教程,呵呵,说是教程,其实就三步:

第一步:插上SD卡,然后打开HPUSBFW(Win7要用管理员权限),在Device中选择你要格式化的盘,然后选择格式,卷标,和是否快速格式化(建议快速)



--EOF--

QuoteTracker新更新


信息来自:

Go to: http://myfreefilehosting.com/f/261b2f3fa7_3.78MB

Then about in the middle of the page look for Click Here To Download in blue letters. Click that to start the download.

Here is what's different after applying the patch:
1) Registration - This version is always registered for everyone, no matter what 
2) max # of days on intraday charts increased from 20 to 60 - it still defaults to 20, but you can go to preferences and increase to 60. NOTE: right now there are 2 sources that can backfill 60 - TDA and IQFeed. But for others, QT will still store the data so you will build it up over time.

更新后确实可用,3.9.8版本。

但今天突然发现安装的3.9.8版本本来对某些股票的backfill就存在问题:比如新股QIHU之类,相关信息类似之前碰到的,见文章 继续:QuoteTracker Backfill数据的问题,但直接替换到3.9.3a版本,backfill却正常,怪异了,难道是client的bug?

--EOF--

上个月曾写过一个QT使用Ameritrade Backfill的问题,今天登录后发现,Quote Server的选择列表中只有三个IP了,和之前自己指定的hosts对比一看,竟然刚好是hosts中指定的三个。马上清理了hosts文件中的设置,重新登录QT,依然如此。再次登录服务器,确认了一下最新的域名信息:
可以发现和上次的结果相比,有问题的4个IP已经去掉 ^_^http://www.guduo.net/2011/04/000371.html

$ nslookup ameritrade02.streamer.com
Server:         74.220.195.27
Address:        74.220.195.27#53

Non-authoritative answer:
Name:   ameritrade02.streamer.com
Address: 216.105.251.38
Name:   ameritrade02.streamer.com
Address: 216.105.251.39
Name:   ameritrade02.streamer.com
Address: 216.105.251.37


$ dig ameritrade02.streamer.com

; <<>> DiG 9.6.2-RedHat-9.6.2-0.BH <<>> ameritrade02.streamer.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 45673
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 6, ADDITIONAL: 7

;; QUESTION SECTION:
;ameritrade02.streamer.com.     IN      A

;; ANSWER SECTION:
ameritrade02.streamer.com. 600  IN      A       216.105.251.37
ameritrade02.streamer.com. 600  IN      A       216.105.251.38
ameritrade02.streamer.com. 600  IN      A       216.105.251.39

;; AUTHORITY SECTION:
streamer.com.           86400   IN      NS      pdns2.ultradns.net.
streamer.com.           86400   IN      NS      pdns3.ultradns.org.
streamer.com.           86400   IN      NS      pdns5.ultradns.info.
streamer.com.           86400   IN      NS      pdns1.ultradns.net.
streamer.com.           86400   IN      NS      pdns4.ultradns.org.
streamer.com.           86400   IN      NS      pdns6.ultradns.co.uk.

;; ADDITIONAL SECTION:
pdns1.ultradns.net.     78172   IN      A       204.74.108.1
pdns1.ultradns.net.     83795   IN      AAAA    2001:502:f3ff::1
pdns2.ultradns.net.     86264   IN      A       204.74.109.1
pdns3.ultradns.org.     86329   IN      A       199.7.68.1
pdns4.ultradns.org.     86350   IN      A       199.7.69.1
pdns5.ultradns.info.    86379   IN      A       204.74.114.1
pdns6.ultradns.co.uk.   86398   IN      A       204.74.115.1

;; Query time: 216 msec
;; SERVER: 74.220.195.27#53(74.220.195.27)
;; WHEN: Wed May  4 08:18:24 2011
;; MSG SIZE  rcvd: 386

--EOF--

transmission的配置和使用

/opt/etc/init.d/S50transmission
内容为
#!/bin/sh
/opt/bin/transmission-daemon --paused -t -u root -v toor -g /opt/etc/transmission
(-u root -v toor 这两个参数分别是设定账号和密码)
 
transmission-remote是windows下的客户端管理工具。

--EOF--

From EliteTrader:
http://www.elitetrader.com/vb/showthread.php?s=c2040046559471842bc68e8a293d6e7a&threadid=213476

昨天发现BigCharts的几个变更,导致QuoteTracker使用出现部分问题后,无意中去浏览EliteTrader,发现AMTD已经停止对QT的新特性支持,在2011年底可能就要将其废弃了?同时StrategyDesk也已经不再更新,难怪ThinkOrSwim三天两头更新,而QT和StrategyDesk却一年难得更新一次了。QT网站下面的版权信息还是到2009,StrategyDesk的最后一个更新是2010上半年,恰恰是我都很喜欢的2个软件呢,特别是QuoteTracker,最近越来越喜欢,速度快,小巧,快捷键方便,图形更是看的非常舒服。

现在我用的版本还是3.9.3a,使用AMTD的账号来看Intraday,使用BigCharts看History,当然估计马上得换Yahoo来看History Data了,不知道QT在2011结束后相关程序是否还能正常使用,尽管特性不再更新,但还是很想去入金2000$,使用最新版继续玩玩。

等下周工作日后决定电话Call In一下中文客服,详细的了解一下情况,毕竟AMTD用来交易垃圾股也是不错的选择哦,没有账户管理费等其它费用,看行情也还有一些其它的替代品。

接下来还要重新审视好好使用的可能就得是AmiBroker了,为啥好东西都不再更新,全部转移到Java平台去了?

--EOF--

GoodSync安装折腾

之前曾经在一篇日志中记录了一个好用的同步软件GoodSync,但新使用T60之后这个软件没有安装。一晃一年多过去了,这个软件的版本突飞猛进,已经到版本8.5.1.1了,体积也从之前的1M多膨胀到了5M多。

每次使用Google找GoodSync,居然都会被墙,本来想找最新版本的,但破解实在不好找,浪费了我2个小时也没能搞定。最后找出了以前下载的老版本7.2.2安装,这才算搞定。当然安装老版本之前,需要把之前的相关License文件删除,用Everything查找GoodSync就很方便的找到了,注册表信息不用清理。然后,再升级安装新版本,目前来看一切正常。

这个新的版本已经支持sftp,可以试试网络备份了。

--EOF--

2 3 4  

Pages

March 2025

Sun Mon Tue Wed Thu Fri Sat
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31