February 2013 Archives

这一年半来烧的东西

| No Comments
作为上篇的后续,再来做个流水账:

iPhone4S 32G Black 5888 HK$
2011.11.20 IFC购入,当时AppleStore软件新上架,用iPad2抢到的,当时还帮亲戚也弄了一台iPhone4

iPhone4 CDMA 8G 二手9新 1950RMB

The New iPad WIFI+Cellular 4000RMB 及相关配件:
Logitech-超薄键盘盖 399RMB
Apple iPad Camera Connection Kit 数码相机套件 219RMB
Apple 30 针至 VGA 转接器 219RMB
Apple 30 针 Digital AV Adapter 298RMB

Netcore 磊科 NW360 300M无线USB网卡  45RMB

Netgear 网件 WNDR3700-100AUS 11N 300M 无线宽带路由器  479RMB


Waterpik 洁碧WP-70EC 标准型水牙线+标准喷头 460RMB

WD 西部数据 My Book Essential 3.5英寸 2TB移动硬盘 USB3.0 999RMB

Microsoft 微软 银光鲨IE3.0复刻版 178RMB

AKG 爱科技 K420 头戴式耳机 238RMB

Toshiba 东芝 32GB+16GB SDHC 存储卡 CLASS10 白卡+黑卡16G 239+108RMB+59RMB

Raspberry PI  300RMB

插座+读卡器+键盘+线材若干 xxxRMB

Intel mSata 80G  1050RMB

X220 分摊部分成本 1450RMB

--EOF--

中信信用卡的积分和自动还款

| No Comments
中信信用卡因为有9元看电影的活动,所以一直以来我都用他家的卡来消费,2013年积分规则如下:
https://creditcard.ecitic.com/eshop/publish/1472/index.html
月份因为没太关注,有一笔在医院的消费因为不记积分,导致没达到看电影的资格,很不爽!

对于绑定他行账户还款,中信信用卡也是做的非常的搓。
他家官网上网上银行就有2个版本,能绑定他行账号还款的必须使用快捷版:
https://creditcard.ecitic.com/citiccard/online/
参考:http://cards.ecitic.com/huankuan/fangshi/tahangjiejikahuankuan.shtml

他行借记卡自动转账还款

他行借记卡自动转账还款,是指通过将您的他行借记卡与您的中信信用卡进行关联,从而在中信信用卡到期还款日由中信银行系统自动对您指定的他行借记卡进行扣账,以完成对您关联中信信用卡账户的还款。

如您持有以下银行的借记卡,可申请开通他行借记卡自动转账还款业务:

中国农业银行、中国建设银行, 招商银行也是可以的!

开通方式:

1.客服电话开通:致电40088-95558,通过自动语音服务申请开通,签约后服务次日正式生效。
2.中信e网行(中信信用卡快捷版网银)开通:登录中信e网行,点击主页的"还款助手",选择"跨行关联还款",点击"卡片详情"后,按照操作指引开通服务,签约后服务次日正式生效。

注意事项:

  • 目前该业务仅支持签约人民币自动转账还款,不支持签约外币自动转账还款业务,如您需要偿还外币欠款,请开通自动购汇还款业务,在到期还款日我行将自动将您外币欠款折算成人民币,并和人民币欠款一起,从您的签约扣款账户中进行转帐还款,而无需您自行向信用卡存款购汇;
  • 您可自由选择"全额"或"最低还款额"两种自动还款方式;
  • 若您在还款日当日申请此项服务,当期还款我行将不进行自动扣款,您仍需自行还款,从下期账单开始进行自动扣款还款;
  • 关联的个人借记卡账户的户名、证件种类及号码必须与信用卡主卡持卡人的姓名、证件种类及号码保持一致;
  • 如您之前已设置了其他自动还款方式,现需开通本服务,您需解约原签约服务,再重新签约开通他行借记卡自动转账还款服务;
  • 为确保成功扣款,请您于到期还款日前一日即保证您已关联的借记卡账户中有足够的余额,由于余额不足扣款失败,我行不另外补扣,您需通过其它还款方式自行还款;
  • 如您需提前还款,请于到期还款日前一个工作日进行还款交易,以免引起重复扣款;如您已提前自行还款,我行将根据您的还款入账情况,按您已设置的自动还款金额类型(全额还款或最低还款额),扣除您的剩余未还款项。

通过网上银行V6.0是无法绑定的,会一直提示失败:
https://e.bank.ecitic.com/perbank5/signInCredit.do

因为之前没有绑定,有2次罚息的经历,非常惨痛,那两次恰好消费金额都比较高,电话争取后还每次罚息超过100。




--EOF--

iPhone手机行情软件

| No Comments
首选:自选股(腾讯出品)
无广告,A股港股美股均有实时行情,配色很好,支持腾讯自选股PC端的同步,新闻资讯信息也还不错。
缺点:图表功能有待增强。

E*Trade
免费串流美股行情,图表功能也还不错。

TD Ameritrade
免费串流美股行情,图表功能更赞,且有盘前盘后信息。

IB
行情收费,图表功能不错,支持港股!

大智慧:
免费港股实时行情。
缺点:有广告,部分港股代码无法查看,如2823。

AAStocks:
图表功能丰富,但非动态生成,属于拉取的定制图片,略显不爽。
最大的问题:广告太多太多。

Wind资讯Pro
腾讯操盘手

比较而言,图表部分略有不足,行情部分也不够好。

--EOF--

iPad的视频播放

| No Comments
前一阵下载了一个电影,兴冲冲的使用高清播放器播放时发现mkv封装不认,无法播放,然后用PI进行播放,但看一会播放器就死掉,没辙了,但LP急于要看,所以临时用iPad播放HDMI输出到电视。

本来以为New iPad播放720p应该完全没有问题,因为之前看1080p的视频也看过不少,觉得还行,但HDMI输出到电视后,发现卡顿现象很严重,所以又开始了一番学习。

当晚就折腾了好几个播放器,当然必须支持AC3,但后来网上看到第三方播放器因为无法使用GPU硬解功能,所以播放高码率的骗子肯定会有问题的,推荐的还是越狱后的xbmc,立马安装测试。

弄好之后又开始想以后如何播放呢?每次从电脑copy到iPad上实在太麻烦,所以必须得网络播放啊,这时候新入的WNDR3700派上用场了,最好用的当然是samba,不过xmbc的smb服务的添加需要小心:不要自己浏览添加,手工输入,并且要到共享目录的下一层(血泪教训),不然没法添加播放的。

具体怎么说呢?

我的WNRR3700共享目录: \\10.0.0.1\USB_Storage
这样添加后没法访问的,需要到下一级目录,在SD卡上建立一个Movie目录,这样共享就是:\\10.0.0.1\USB_Storage\Movie

这个小小的问题折腾我几个小时,中途我还删除一次XBMC,家里的网络重新安装一次竟然要1个多小时(才50M,再次诅咒垃圾天威的网络,还升级到4M呢,艹你大爷,慢的要死),还不如我使用移动的TD网络下载快。

已经添加的目录怎么删除呢?。。。
双指双击,就会弹出对话框了。
参考:
http://bbs.weiphone.com/read-htm-tid-2645013.html
http://bbs.weiphone.com/read-htm-tid-2542996.html

配置文件删除:/var/mobile/Library/Preferences/xbmc


smb问题:
http://forum.xbmc.org/showthread.php?tid=127041

When you're adding the source, choose "Add network location" from the list in the Browse dialog, then manually type in the server and share name. This will create a network location called something like smb://server/share/. Select this location from the list to create your source.

Try adding your pc name(for ex. //Office-pc/ or //Johns-pc) and not the IP. That's what I did and it worked.


http://forum.xbmc.org/showthread.php?tid=109936

Try adding the source in a different way. When you click the Browse button choose "Add network location" instead of "SMB" (you need to scroll the list down to see this option). Enter the server and share name and user details if you need them, then when you click OK the source should appear in the list as smb://server/share. Select this source, click OK and that should work.

2011-09-13 09:47 Post: #4
When you try and view the members of a SMB workgroup a protocol called "browsing" is used. This has been used since the early days of Microsoft Networking back in the Windows for Workgroups days (actually I think MS Lan Manager used it too). It was unreliable then and hasn't got any better since.

That's a bit unfair, since browsing generally works fine, but there are many cases where it can stop working and you get the sort of symptoms you see. Adding the network location by hand bypasses browsing, though of course you need to know the server and share names.

--EOF--

netgear WNDR3700小玩记

| No Comments

原厂信号可以达到300M,刷过dd-wrt,open-wrt,无线信号均比较差,并且还有其它问题没搞定,故最后还是使用官方固件。

折腾点:
1)刷DD-WRT,WIFI信号很差,刷回官方固件。
2)刷到Open-WRT,信号一般,且上网的设置有异常,我没法搞定,概念比较蒙,刷回原厂固件。
3)原厂固件折腾samba:使用fiddler修改JS搞定NAT和DMZ到路由器本身(10.0.0.1),上联路由器局域网还是无法通过上联局域网IP(192.168.1.142)进行samba访问,PI安装无线网卡后,在10.0.0.x网段mount smb共享目录成功。
4)5G信号还行。



参考信息:
http://www.dslreports.com/forum/r26428981-Best-alternative-firmware-for-WNDR3700-
所以最好的:还是原厂的

https://forum.openwrt.org/viewtopic.php?id=27722
Fully featured OpenWrt build for the WNDR3700

http://wiki.openwrt.org/toh/netgear/wndr3700

http://www.smallnetbuilder.com/wireless/wireless-reviews/30925-start-your-buying-netgear-wndr3700-reviewed
测评

http://club.netgear.com.cn/nebs/ShowPost.asp?ThreadID=1883

因为netgear最新的中文固件出了问题,无奈之下我的WNDR3700刷了最新的DDWRT,感觉有线连接好像强了,用nas下bt,emule,都好像快了,但是无线方面的设置不知何故总是出问题,无奈之下再利用tftp刷回到官方10468,现在回到正常的使用中。

刷ddwrt其实很简单(不需要做30/30/30这步),从ddwrt刷回官方也一样简单--
http://www.dd-wrt.com/wiki/index.php/Netgear_WNDR3700在这个页面里有刷dd的方法,在页面的最下部,有人问如何刷回官方的,

Q: Is it possible to restore the factory or stock firmware that came with my router? 

A: Yes. Refer to WNDR3700: Restore Factory Firmware in Five Easy Steps. 

这个是刷回官方的页面,与netgear自己介绍的tftp步骤大致一样--http://www.dd-wrt.com/phpBB2/viewtopic.php?t=79802

netgear 与ddwrt之间好像有了默契,估计dd不会有更新的固件了,还是用10468吧,目前最稳定的


http://www.dd-wrt.com/phpBB2/viewtopic.php?t=79802
刷回原厂固件

11n x220 130M
http://forum.51nb.com/thread-1218788-1-1.html


原厂固件中samba服务默认只在内网使用,经过特殊处理:DMZ,端口映射来进行测试:

http://forums.gentoo.org/viewtopic-p-7057508.html


sudo mount --verbose -t cifs -o username=admin   //192.168.1.142/725  /mnt/wndr3700/
sudo mount --verbose -t cifs -o username=admin   //10.0.0.1/USB_Storage  /mnt/wndr3700/


http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=14574
Having loads of trouble mounting a SAMBA share from a DNS-323 on the RPi. Used
CODE: SELECT ALL

sudo mount -t cifs //192.168.1.2 /mnt/box/

http://wangzhongwen.wordpress.com/2008/03/06/samba%E6%9C%8D%E5%8A%A1%E7%9A%84%E7%AB%AF%E5%8F%A3/

samba服务用到的端口是以下四个:
UDP 137
UDP 138
TCP 139
TCP 445

如果允许用户访问共享服务,防火墙需开放这四个端口

结论:失败

DMZ和NAT是直接使用fiddler修改JS文件,用路由器的管理界面进行设置,但WNDR3700上联的局域网机器(PI)还是无法对其进行访问。
不过PI上安装无线网卡后,就可以正常mount WNDR3700上的smb目录了(见下面)。




http://www.dd-wrt.com/phpBB2/viewtopic.php?t=142653#627358

NO, 30/30/30 need it! 

This NETGEAR WNDR3700 Router and maybe all NETGEAR Router have this function called " Reset Flash " or something like that. 

1. You turn off the Router. 

2. Hold reset button in, well turning on the Router. 

3. Countdown to 45 second or wait tell the power light blinks green to release the reset button. 

Next you'll need to change Computer's IP Address to 192.168.1.2 - 192.168.1.254 and SubnetMask 255.255.255.0 only. 


Then you will use a TFTP client: 

 Mac TFTP Client 

 Windows TFTP Client 
In Windows you need to turn TFTP Client on by going to Program & Features, Turn windows features on or off, check TFTP Client and click OK button. 

Linux you have to use Commands 
Info can be found  Here and  Here 

Server: 192.168.1.1 
password: don't need to use one 
file: firmware download here 

DD-WRT Download WNDR3700v1 
 r16454 
 r16785 
 r17201 


http://blog.jqian.net/post/14295026342/netgear-wndr3700

wndr3700刷dd-wrt固件
家里的netgear wndr3700已经平稳工作大半年了,但是最近突然很想把它刷到dd-wrt。主要是stock firmware虽然稳定,但是功能还是弱不少,实在不符合它高端无线路由器的定位。最近很想路由器有这俩功能,还是GFW惹的祸......

定时重启路由器,或者重新连接PPPoE,因为家里是使用ADSL,定时重启路由器可以重新获取新的IP。
安装openvpn,由于dd-wrt就是一个嵌入式linux,很容易配置。
在网络上搜了一遍,发觉刷dd-wrt还是很简单的,直接按照wiki来就可以了。不幸的是,虽然我明确按照步骤,但是第2步就出问题了。当页面的刷机进度到达100%之后,等待了2分钟----结果wireless灯没有闪烁,反而是power灯变黄了----继续过了10秒后,所有的LAN灯变黄闪烁,然后,WPS灯变绿闪烁,如此反复。

继续尝试了hard reset(就是持续按住RESET键,通电30秒,断电30秒,再通电30秒),依然没有什么反应。

设置电脑eth0为192.168.1.x,尝试ping路由器默认地址192.168.1.1,发觉会返回 ...ttl=64(truncated);但有时候会直接失败,此时发觉eth0地址又空了。所以,初步判断,路由器其实在不停的重启。

目前还不太清楚,为什么这么简单的刷机步骤会导致失败,猜测原因可能有两点:

由于我的路由器设置了自动更新固件,可能最新的stock firmware更新后,已经不能从web页面刷dd-wrt固件了。
在网上某处看到需要用IE浏览器刷固件,而我用的是linux系统和chrome浏览器,不过我觉得这不至于吧。
不过很凑巧,当天就有人给出了解答,才知道原来netgear路由器有个"Reset Flash"功能,可以让路由器进入recovery mode,此时就可以用tftp来刷机了(包括刷原厂固件)。

进入recovery mode的步骤是这样的:

关闭路由器
按住Reset键,打开路由器
直到power灯开始闪绿色,松开reset键(大约45秒)
现在就能开始刷机了,把电脑连上某个LAN口,设置eth0地址到192.168.1.2~192.168.1.254,比如:

sudo ifconfig eth0 192.168.1.2
此时,发觉已经可以ping通 192.168.1.1 了,运行tftp导入你要刷的固件:

$ tftp 192.168.1.1
tftp> binary
tftp> rexmt 1
tftp> timeout 60
tftp> put wndr3700-factory.img
Sent 7229569 bytes in 5.0 seconds
看到发送成功的消息后,等待片刻后,路由器开始重启----成功!

没有再需要hard reset,已经可以成功访问192.168.1.1看到dd-wrt的管理页面。

http://blog.sina.com.cn/s/blog_592060b501015654.html
Netgear WNDR3700刷DD-WRT--Samba乱码问题 (2012-07-28 11:23:08)转载▼
标签: 杂谈
Netgear WNDR3700刷DD-WRT真是太简单了。
1、下载(这里是WNDR3700 v2版),直接去DD-WRT的Router Database,输入3700,找到合适的文件下载。
    wndr3700v2-factory.img 是国际版;
    wndr3700v2-factory_NA.img 是北美版;我还真没搞清北美版和国际版有啥区别,反正我刷的是国际版。
2、直接利用Netgear的"路由器升级"选项就可以刷成DD-WRT了。(见下图)

3、由于WNDR3700的固件有16M之多,DD-WRT也就不像过去针对2M、4M固件的路由器做出不同的版本,这里就一次把所有功能全部搞定。简单截几个图,看看吧
    VPN功能:

    USB挂载功能:

    FTP以及Samba(网上邻居)功能

    下面简单说说,如何解决Samba乱码的问题:
    DD-WRT的Samba乱码的原因其实很简单:就是/tmp/smb.conf中的unix charset设置不对,只要改成utf-8即可。再用
    #smbd restart
    重启samba服务即可。
    但是由于每一次插拔USB,DD-WRT都会重新生成/tmp/smb.conf文件配置文件,因此每次都需要手动修改一下,比较麻烦。
    另一个办法,就是把smb.conf文件直接粘贴到启用Use Custom Configuration后的文本框中,如下图。
    我懒的写smb.conf配置文件,因此先把Use Custom Configuration禁用,这样系统会自动为你生成一个/tmp/smb.conf文件。用telnet或在ssh登录到路由器上,打开此文件,并且把内容复制下来,粘贴到启用Use Custom Configuration后的文本框中,再修改一下unix charset=utf-8即可。


http://www.raspberrypi.org/phpBB3/viewtopic.php?f=45&t=18575

by Olaf_Ramge ? Sat Sep 29, 2012 9:39 am
Hi,
iwconfig works only with wep encryption.
If you use WPA/WPA2 then iwconfig will not work.

My /etc/network/interfaces looks just like this:
auto wlan0
iface wlan0 inet dhcp
wpa-ssid "secret-wiki-net"
wpa-psk "verysecret-wpa-psk"

I can shut wlan0 up/down with:
ifup wlan0
ifdown wlan0

I can look with:
root@raspberrypi:/etc/default# iwconfig 
lo no wireless extensions.

eth0 no wireless extensions.

wlan0 IEEE 802.11bgn ESSID:"secret-wifi-net" 
Mode:Managed Frequency:2.472 GHz Access Point: 74:EA:3A:FD:07:6F 
Bit Rate=52 Mb/s Tx-Power=20 dBm 
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on
Link Quality=35/70 Signal level=-75 dBm 
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:9 Missed beacon:0

And get a dynamic ip with:
dhclient wlan0


http://www.raspberrypi-tutorials.co.uk/set-raspberry-pi-wireless-network/

Learn how to set up a wireless network using your Raspberry Pi and learn how to manage and use the various networking options that are available.

NOTE:  ** These instructions can now be bypassed by using the following wireless instructions on this page.**

Plug in your wireless device into your Raspberry Pi or a USB hub.  I prefer to plug my devices into a USB hub to save the Raspberry Pi from wear and tear.

Before we can use the wireless device, we must first find out the name of our device so we can find the necessary drivers.  Enter the following command:

$ lsusb

This will list all the usb devices attached to our Raspberry Pi.  You will be looking for something that resembles your wireless device.  Search through the list of USB devices for a wireless adapter.

The result may differ depending on the devices you have attached.

Bus 001 Device 005: ID 0bda:8189 Realtek Semiconductor Corp. RTL8187B Wireless 802.11g Network adapter.

The key information listed above has been bolded.  This ID is what we will be searching for when looking for the drivers needed to use the adapter.

Before we continue, you will need to update your package information.  Be sure that you're network cable is plugged in as we need to get some udpates from Debian.   Just enter:

$ apt-get update

When the updates have finished downloading, enter:

$ apt-cache search RTL818

Remember your device may be different, so you will be entering your device ID for your device.  You may have noticed that I only entered RTL818 instead of the whole ID.  This is because it didn't find the adapter when using the apt-cache command.  You may need to shorten your description.

The result returned for my device was:

Firmware-realtek - Binary firmware for Realtek wired and wireless network adapters

Enter

$ sudo apt-get install firmware-realtek

After a few minutes of updating you will be back at your $ prompt.  Enter the following command to see if your adapter is listed.

$ lsmod

You will see the same ID of your device listed.

Module                                Size        Used by

rtl8187                  44897    0

You can ignore the above details.  All we need to know is that the ID of your device is mentioned when you typed lsmod.

Now we just need to create a configuration file for the wireless adapter.  We are going to do this by create a file.  Enter the following command:

$ sudo nano /etc/wpa.config

Now enter the following, save the file and exit back to the $ prompt

network={

ssid="YOUR_SSID"

proto=RSN

key_mgmt=WPA-PSK

pairwise=CCMP TKIP

group=CCMP TKIP

psk="WPA-PASSWORD"

}

The last part of this configuration is to add a reference to the interfaces.   Issue the command:

$ sudo nano /etc/network/interfaces

Add the following

auto wlan0

iface wlan0 inet dhcp

wpa-conf /etc/wpa.config

Save this file and exit.

The final stage of this process is to unplug your network cable as we want to test that the wireless device is actually working, so restart the network by entering:

$ sudo /etc/init.d/networking restart

 

--- footnote

Thanks to L.R for correcting the typo.  You have been awarded 10 bonus points.

Thanks also to Paul for spotting the wpa.config typo


--EOF--

Pages

May 2016

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        

About this Archive

This page is an archive of entries from February 2013 listed from newest to oldest.

January 2013 is the previous archive.

November 2013 is the next archive.

Find recent content on the main index or look in the archives to find all content.