Categories
不学无术

组合 递归

荒废计算机太久了,以至于这么简单一个问题想了我大半天,其实就是数组求组合输出的方法,写下此日志提醒自己不能忘了老本!
题目的话大概可以这样表述

给出一个数据A={a_0,a_1,a_2…a_n}(其中n可变),打印出该数值元素的所有组合

需要使用递归的方法解决比较好,分而治之

给一大团数据{a0,a1, a2, …, an}:
1. 如果就剩一个元素的话,我就输出它,结束;
2.不输出a0,把除了我之外的余下一团交由递归处理;
3.要输出a0自己,然后余下一团交由递归处理;

其中case 3里面需要注意下一个递归要记住a0是要输出的,所以实践起来就是带了个前缀一样的东西记住。感觉这种排列组合的问题应该也可以用栈来解决,但归根结底还是分治。
用Python随意写了一个:

# coding:utf-8
def foo(inary, appendix=''):
    if len(inary) == 0:
        return
    #Case 0
    print appendix + str(inary[0])
    if len(inary) < 2:
        return
    #Case 1
    foo(inary[1:], appendix)
    #Case 2
    #print str(inary[0]),
    foo(inary[1:], appendix+str(inary[0]))

测试输出:

>>> foo([1, 2, 3, 4])
1
2
3
4
34
23
24
234
12
13
14
134
123
124
1234

 

Categories
木有技术

[Updated on Aug.29] ThinkPad X220/X230 Full HD IPS modification

[CHINESE] Reference of the detail/ Source of this article: http://forum.51nb.com/viewthread.php?tid=1548345&extra=&highlight=&page=1
[CHINESE] Forum page to buy this modification suite: http://forum.51nb.com/viewthread.php?tid=1548947&extra=&highlight=&page=1
[CHINESE] FHD modification for T420/430 series are also available via a customed LVDS to eDP board: http://forum.51nb.com/thread-1552978-1-1.html In plain terms, the EDID information must be coded on the external LVDS to eDP board so that no BIOS modification are needed.
Firstly, I am NOT the inventor of this method, he who achieved this modification did not give details about his modification in some way. I am only a customer who bought his modified adapter.
I’m just trying to guess what he did to my motherboard and some of my descriptions below might be totally wrong and yes I will mark them specially.


 
Here are the main(brief) ideas of the following modification:

  • Renounce the video signals produced by original LVDP lane because it cannot support a screen resolution higher than 1440×900
  • Use the signal output on dock station to transfer data because it supports DisplayPort
  • (I’m not quite sure about this part)’Hijack’ the signal of original LVDS lane (33 PANEL_BKLT_CTRL and 33 BACKLIGHT_ON ) input so as to control the backlight of the new screen panel

An Overview of LVDS/eDP Adapter

x230 edp

Modifications on Motherboard(Video Signals, w/o backlight control)

IMG_0724.jpg.thumb


 

 Yes, there is an applicable solution to modify(replace) the built-in LCD screen to Full HD resolution (1920 * 1080). Yes, it still supports one other external screen either analogical(VGA) or digital(DisplayPort).

Firstly I must declare that I am not the inventor of this solution, and I personally hold no responsibility to any thing that might happen on your laptop.
kingkonglue in forum.51nb.com is the one who invented this solution, I take no credit for the solution introduced below.
IMG_2507

Background Info

As almost everyone knows, the X220/X230 series uses a one-lane(single channel) LVDP lane to transmit video signal to the build-in screen panel, which only supports a screen resolution  lower than 1440*900. This is the main obstacle to install a FHD panel on the laptop.
There are at least 3 solutions available to deal with this problem.
Leokim is the first person to achieve this goal, he successfully modified his X220 with a Full HD panel (which seems to be a touchable screen toke apart from a Dell XPS 12” series, LP125WF1). His solution is not quite clearly explained, what we know till now is the modified BIOS and signal wire and the BIOS modification is hard for X230 series due to the encryption of UEFI BIOS.
The second trial of such modification is done by 东大师(Dong Da-shi). Presumably he used a self-made  LVDS–>EDP adapter to fit the screen panel , and added some signal wires to the original LVDP signal wire in order to support higher resolution. This solution has a chance to encounter signal interference because of the modified analogue signal wire(LVDS).
And I myself heard somehow there is another `shortcut` toward such modification through the interface of  dock. As we know there are two digital video output available through the external dock and hence we can make use of one of them. However, problem remains on the backlight control of the panel.

Screen Panel

In 2014 there are more high resolution panels available for the 12.5″ X series. After Dell XPS, ThinkPad X24o starts to use eDP video lane instead of LVDS for the sake of  FHD support. As is written above, filling the gap between LVDS and eDP is the key to our modification task and there exist at least two main problem on the way of achievement.
BTW the model of screen panel that I used is LP125WF2 SPB1 (I guess that all `LP125WF2` series are compatible).

FHD Signal

WIP

Backlight Control

WIP

Problems Remained

(Updated on Aug 29 2015)
Although we have successfully connected the FHD panel onto the mainboard, small problems still exists in everyday use. The following problems might occur:

  • A Higher Temperature on GPU/CPU, especially when you attach a external screen.  This is because that the original output is still alive, actually the system will recognize TWO screen panels with the original one disabled partially. The same video signal will still be outputted to the original port. When you attach a 2nd screen (like a external monitor) the system will have to maintain the screen output of 3 panels actually.
  • Bugs on the Driver –> 16-bit-like color depth (on X230 series; the X220 series are exempted). I was encountered with this trouble as many other people who holds the x230 laptop.  However, x220 series will not be affected if it uses a modified driver provided by the inventor of the adapter. This bug will cause a 16-bit-like color output on  the screen panel, such that the gradual change of one color will not be so smooth as it was. If anyone remember the 16-bit color depth on the earlier LCD panels, that’s the feel. The root of this bug lies in the display driver, but no solutions has been ever given till now.
  • Black Screen on the First Attach of External  Screen. The earlier version of adapter (like what I owned) will encounter this bug, but it is reported solved by an upgrade to the chip on the adapter (on the hardware I mean).

WORK IN PROGRESS.
THIS ARTICLE WILL BE WRITTEN UP IF I HAVE ANY SPARE TIME.

Categories
木有技术

UltraISO 启动盘 NTFS格式

UltraISO制作启动U盘默认格式化为FAT32,如何设置为NTFS

 
UltraISO界面有格式化选项,先选定NTFS进行格式化(之前自己用另外方式格式化成NTFS也可),注意,要选用UltraISO9.5.1以上版本,然后依次选择“启动”–“写入硬盘映像”–“便捷启动”–“便捷写入”,这样可以保持U盘NTFS。”便捷写入”功能类似于“写入”,可以保留原来的磁盘参数,从而可实现量产后的U盘制作启动盘不降速。

Categories
木有技术

【转载】利用shadowsocks实现OpenWRT路由器的自动翻墙

参考:http://www.tuicool.com/articles/3Q7V7z3
 
需要注意的一点是,我的路由器里面总提示“Shadowsocks未运行”
 
搜索了半天,第一次的话~貌似是要Enable后使用这个命令启动!

/etc/init.d/shadowsocks start

 

Categories
木有技术

DigitalOcean搭建ShadowSocks服务端

其实很简单,根据官网教程来!
https://github.com/shadowsocks/shadowsocks/wiki
建议安装Ubuntu系统,因为可以方便地优化一些参数~

大概步骤是这样:

按照使用说明,下载python以及python 的pip安装包,然后装shadowsocks:
https://github.com/shadowsocks/shadowsocks/wiki/Shadowsocks-%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E
 
使用方面,用配置文件配置比较好一些:
https://github.com/shadowsocks/shadowsocks/wiki/Configuration-via-Config-File
 
然后是TCP优化(记得在配置文件里把fast_open打开):
https://github.com/shadowsocks/shadowsocks/wiki/Optimizing-Shadowsocks
https://github.com/shadowsocks/shadowsocks/wiki/TCP-Fast-Open
 
还有是可选的多用户解决方案(这个不是管理后台,管理后台方案我不需要,也没找):
其实就是配置文件稍微改动一下~不过这种方案好像对某些加密模式不行。。
http://www.v2ex.com/t/151793
http://everet.org/shadowsocks.html
http://www.ahlinux.com/start/base/6724.html

Categories
默认分类

Google Hosts 20150119

#google hosts 2015 by 360kb.com
#base services
64.233.169.97    google.com
64.233.169.97    www.google.com
64.233.169.97    m.google.com
64.233.169.97    scholar.google.com
64.233.169.97    translate.google.com
64.233.169.97    books.google.com
64.233.169.97    appengine.google.com
64.233.169.97    maps.google.com
64.233.169.97    news.google.com
64.233.169.97    images.google.com
64.233.169.97    finance.google.com
64.233.169.97    history.google.com
64.233.169.97    drive.google.com
64.233.169.97    docs.google.com
64.233.169.97    plus.google.com
64.233.169.97    play.google.com
64.233.169.97    calendar.google.com
64.233.169.97    domains.google.com
64.233.169.97    code.google.com
64.233.169.97    cloud.google.com
64.233.169.97    earth.google.com
64.233.169.97    places.google.com
64.233.169.97    adwords.google.com
64.233.169.97    sites.google.com
64.233.169.97    keep.google.com
64.233.169.97    support.google.com
64.233.169.97    developers.google.com
64.233.169.97    spreadsheets.google.com
64.233.169.97    video.google.com
64.233.169.97    photos.google.com
64.233.169.97    wallet.google.com
216.58.211.73     trends.google.com
64.233.169.97    groups.google.com
203.208.46.132    accounts.google.com
#base services
#google mail begin
203.208.46.132    mail.google.com
64.233.169.97    gmail.com
64.233.169.97    www.gmail.com
64.233.169.97    m.gmail.com
64.233.169.97    m.googlemail.com
64.233.169.97  chatenabled.mail.google.com
64.233.169.97    mail-attachment.googleusercontent.com
#google mail end
#google software begin
64.233.169.97    www.chrome.com
64.233.169.97    developer.chrome.com
64.233.169.97    chrome.google.com
64.233.169.97    picasa.google.com
64.233.169.97    talkgadget.google.com
64.233.169.97    toolbar.google.com
64.233.169.97    tools.google.com
64.233.169.97    inbox.google.com
#google software end
#apis begin
64.233.169.97    apis.google.com
64.233.169.97    www.googleapis.com
64.233.169.97    android.googleapis.com
64.233.169.97    play.googleapis.com
64.233.169.97    plus.googleapis.com
64.233.169.97    ajax.googleapis.com
64.233.169.97    chart.googleapis.com
64.233.169.97    fonts.googleapis.com
64.233.169.97    redirector-bigcache.googleapis.com
64.233.169.97    translate.googleapis.com
64.233.169.97    maps.googleapis.com
64.233.169.97    content.googleapis.com
64.233.169.97    storage.googleapis.com
64.233.169.97    commondatastorage.googleapis.com
64.233.169.97    static.panoramio.com.storage.googleapis.com
#apis end
#static begin
64.233.169.97    www.gstatic.com
64.233.169.97    ssl.gstatic.com
64.233.169.97    csi.gstatic.com
64.233.169.97    maps.gstatic.com
64.233.169.97    fonts.gstatic.com
64.233.169.97    encrypted-tbn0.gstatic.com
64.233.169.97    encrypted-tbn1.gstatic.com
64.233.169.97    encrypted-tbn2.gstatic.com
64.233.169.97    encrypted-tbn3.gstatic.com
64.233.169.97    encrypted-tbn4.gstatic.com
64.233.169.97    encrypted-tbn5.gstatic.com
64.233.169.97    encrypted-tbn6.gstatic.com
64.233.169.97    g0.gstatic.com
64.233.169.97    g1.gstatic.com
64.233.169.97    g2.gstatic.com
64.233.169.97    g3.gstatic.com
64.233.169.97    g4.gstatic.com
64.233.169.97    g5.gstatic.com
64.233.169.97    g6.gstatic.com
64.233.169.97    g7.gstatic.com
64.233.169.97    mt0.gstatic.com
64.233.169.97    mt1.gstatic.com
64.233.169.97    mt2.gstatic.com
64.233.169.97    mt3.gstatic.com
64.233.169.97    mt4.gstatic.com
64.233.169.97    mt5.gstatic.com
64.233.169.97    mt6.gstatic.com
64.233.169.97    mt7.gstatic.com
64.233.169.97    t0.gstatic.com
64.233.169.97    t1.gstatic.com
64.233.169.97    t2.gstatic.com
64.233.169.97    t3.gstatic.com
64.233.169.97    t4.gstatic.com
64.233.169.97    t5.gstatic.com
64.233.169.97    t6.gstatic.com
64.233.169.97    t7.gstatic.com
#static end
#usercontent begin
64.233.169.97    1-ps.googleusercontent.com
64.233.169.97    2-ps.googleusercontent.com
64.233.169.97    3-ps.googleusercontent.com
64.233.169.97    4-ps.googleusercontent.com
64.233.169.97    www.googleusercontent.com
64.233.169.97    oauth.googleusercontent.com
64.233.169.97    feedback.googleusercontent.com
64.233.169.97    translate.googleusercontent.com
64.233.169.97    themes.googleusercontent.com
64.233.169.97    webcache.googleusercontent.com
64.233.169.97    books.googleusercontent.com
64.233.169.97    video.googleusercontent.com
64.233.169.97    music-onebox.googleusercontent.com
64.233.169.97    music.googleusercontent.com
64.233.169.97    blogger.googleusercontent.com
64.233.169.97    newsstand.googleusercontent.com
64.233.169.97    producer.googleusercontent.com
64.233.169.97    code-opensocial.googleusercontent.com
64.233.169.97    spreadsheets-opensocial.googleusercontent.com
64.233.169.97    www-calENDar-opensocial.googleusercontent.com
64.233.169.97    www-fc-opensocial.googleusercontent.com
64.233.169.97    www-focus-opensocial.googleusercontent.com
64.233.169.97    www-gm-opensocial.googleusercontent.com
64.233.169.97    www-kix-opensocial.googleusercontent.com
64.233.169.97    www-open-opensocial.googleusercontent.com
64.233.169.97    www-opensocial.googleusercontent.com
64.233.169.97    www-opensocial-sandbox.googleusercontent.com
64.233.169.97    www-oz-opensocial.googleusercontent.com
64.233.169.97    a-oz-opensocial.googleusercontent.com
64.233.169.97    0-open-opensocial.googleusercontent.com
64.233.169.97    1-open-opensocial.googleusercontent.com
64.233.169.97    2-open-opensocial.googleusercontent.com
64.233.169.97    3-open-opensocial.googleusercontent.com
64.233.169.97    0-focus-opensocial.googleusercontent.com
64.233.169.97    1-focus-opensocial.googleusercontent.com
64.233.169.97    2-focus-opensocial.googleusercontent.com
64.233.169.97    3-focus-opensocial.googleusercontent.com
64.233.169.97    doc-00-7o-docs.googleusercontent.com
64.233.169.97    doc-01-7o-docs.googleusercontent.com
64.233.169.97    doc-02-7o-docs.googleusercontent.com
64.233.169.97    doc-03-7o-docs.googleusercontent.com
64.233.169.97    doc-04-7o-docs.googleusercontent.com
64.233.169.97    doc-05-7o-docs.googleusercontent.com
64.233.169.97    doc-06-7o-docs.googleusercontent.com
64.233.169.97    doc-07-7o-docs.googleusercontent.com
64.233.169.97    doc-08-7o-docs.googleusercontent.com
64.233.169.97    doc-09-7o-docs.googleusercontent.com
64.233.169.97    doc-10-7o-docs.googleusercontent.com
64.233.169.97    doc-0a-7o-docs.googleusercontent.com
64.233.169.97    doc-0b-7o-docs.googleusercontent.com
64.233.169.97    doc-0c-7o-docs.googleusercontent.com
64.233.169.97    doc-0d-7o-docs.googleusercontent.com
64.233.169.97    doc-0e-7o-docs.googleusercontent.com
64.233.169.97    doc-0f-7o-docs.googleusercontent.com
64.233.169.97    doc-0g-7o-docs.googleusercontent.com
64.233.169.97    doc-0h-7o-docs.googleusercontent.com
64.233.169.97    doc-0i-7o-docs.googleusercontent.com
64.233.169.97    doc-0j-7o-docs.googleusercontent.com
64.233.169.97    doc-0k-7o-docs.googleusercontent.com
64.233.169.97    doc-0l-7o-docs.googleusercontent.com
64.233.169.97    doc-0m-7o-docs.googleusercontent.com
64.233.169.97    doc-0n-7o-docs.googleusercontent.com
64.233.169.97    doc-0o-7o-docs.googleusercontent.com
64.233.169.97    doc-0p-7o-docs.googleusercontent.com
64.233.169.97    doc-0q-7o-docs.googleusercontent.com
64.233.169.97    doc-0r-7o-docs.googleusercontent.com
64.233.169.97    doc-0s-7o-docs.googleusercontent.com
64.233.169.97    doc-0t-7o-docs.googleusercontent.com
64.233.169.97    doc-00-bc-docs.googleusercontent.com
64.233.169.97    doc-01-bc-docs.googleusercontent.com
64.233.169.97    doc-02-bc-docs.googleusercontent.com
64.233.169.97    doc-03-bc-docs.googleusercontent.com
64.233.169.97    doc-04-bc-docs.googleusercontent.com
64.233.169.97    doc-05-bc-docs.googleusercontent.com
64.233.169.97    doc-06-bc-docs.googleusercontent.com
64.233.169.97    doc-07-bc-docs.googleusercontent.com
64.233.169.97    doc-08-bc-docs.googleusercontent.com
64.233.169.97    doc-09-bc-docs.googleusercontent.com
64.233.169.97    doc-10-bc-docs.googleusercontent.com
64.233.169.97    doc-0a-bc-docs.googleusercontent.com
64.233.169.97    doc-0b-bc-docs.googleusercontent.com
64.233.169.97    doc-0c-bc-docs.googleusercontent.com
64.233.169.97    doc-0d-bc-docs.googleusercontent.com
64.233.169.97    doc-0e-bc-docs.googleusercontent.com
64.233.169.97    doc-0f-bc-docs.googleusercontent.com
64.233.169.97    doc-0g-bc-docs.googleusercontent.com
64.233.169.97    doc-0h-bc-docs.googleusercontent.com
64.233.169.97    doc-0i-bc-docs.googleusercontent.com
64.233.169.97    doc-0j-bc-docs.googleusercontent.com
64.233.169.97    doc-0k-bc-docs.googleusercontent.com
64.233.169.97    doc-0l-bc-docs.googleusercontent.com
64.233.169.97    doc-0m-bc-docs.googleusercontent.com
64.233.169.97    doc-0n-bc-docs.googleusercontent.com
64.233.169.97    doc-0o-bc-docs.googleusercontent.com
64.233.169.97    doc-0p-bc-docs.googleusercontent.com
64.233.169.97    doc-0q-bc-docs.googleusercontent.com
64.233.169.97    doc-0r-bc-docs.googleusercontent.com
64.233.169.97    doc-0s-bc-docs.googleusercontent.com
64.233.169.97    doc-0t-bc-docs.googleusercontent.com
64.233.169.97    doc-00-1s-docs.googleusercontent.com
64.233.169.97    doc-01-1s-docs.googleusercontent.com
64.233.169.97    doc-02-1s-docs.googleusercontent.com
64.233.169.97    doc-03-1s-docs.googleusercontent.com
64.233.169.97    doc-04-1s-docs.googleusercontent.com
64.233.169.97    doc-05-1s-docs.googleusercontent.com
64.233.169.97    doc-06-1s-docs.googleusercontent.com
64.233.169.97    doc-07-1s-docs.googleusercontent.com
64.233.169.97    doc-08-1s-docs.googleusercontent.com
64.233.169.97    doc-09-1s-docs.googleusercontent.com
64.233.169.97    doc-10-1s-docs.googleusercontent.com
64.233.169.97    doc-0a-1s-docs.googleusercontent.com
64.233.169.97    doc-0b-1s-docs.googleusercontent.com
64.233.169.97    doc-0c-1s-docs.googleusercontent.com
64.233.169.97    doc-0d-1s-docs.googleusercontent.com
64.233.169.97    doc-0e-1s-docs.googleusercontent.com
64.233.169.97    doc-0f-1s-docs.googleusercontent.com
64.233.169.97    doc-0g-1s-docs.googleusercontent.com
64.233.169.97    doc-0h-1s-docs.googleusercontent.com
64.233.169.97    doc-0i-1s-docs.googleusercontent.com
64.233.169.97    doc-0j-1s-docs.googleusercontent.com
64.233.169.97    doc-0k-1s-docs.googleusercontent.com
64.233.169.97    doc-0l-1s-docs.googleusercontent.com
64.233.169.97    doc-0m-1s-docs.googleusercontent.com
64.233.169.97    doc-0n-1s-docs.googleusercontent.com
64.233.169.97    doc-0o-1s-docs.googleusercontent.com
64.233.169.97    doc-0p-1s-docs.googleusercontent.com
64.233.169.97    doc-0q-1s-docs.googleusercontent.com
64.233.169.97    doc-0r-1s-docs.googleusercontent.com
64.233.169.97    doc-0s-1s-docs.googleusercontent.com
64.233.169.97    doc-0t-1s-docs.googleusercontent.com
64.233.169.97    doc-04-80-docs.googleusercontent.com
64.233.169.97    doc-08-6g-docs.googleusercontent.com
64.233.169.97    doc-0k-bk-docs.googleusercontent.com
64.233.169.97    doc-10-6g-docs.googleusercontent.com
64.233.169.97    doc-10-00-docs.googleusercontent.com
64.233.169.97    images1-focus-opensocial.googleusercontent.com
64.233.169.97    images2-focus-opensocial.googleusercontent.com
64.233.169.97    images3-focus-opensocial.googleusercontent.com
64.233.169.97    images4-focus-opensocial.googleusercontent.com
64.233.169.97    images5-focus-opensocial.googleusercontent.com
64.233.169.97    images6-focus-opensocial.googleusercontent.com
64.233.169.97    images7-focus-opensocial.googleusercontent.com
64.233.169.97    images8-focus-opensocial.googleusercontent.com
64.233.169.97    images9-focus-opensocial.googleusercontent.com
64.233.169.97    images1-esmobile-opensocial.googleusercontent.com
64.233.169.97    images2-esmobile-opensocial.googleusercontent.com
64.233.169.97    images3-esmobile-opensocial.googleusercontent.com
64.233.169.97    images4-esmobile-opensocial.googleusercontent.com
64.233.169.97    images5-esmobile-opensocial.googleusercontent.com
64.233.169.97    images6-esmobile-opensocial.googleusercontent.com
64.233.169.97    images7-esmobile-opensocial.googleusercontent.com
64.233.169.97    images8-esmobile-opensocial.googleusercontent.com
64.233.169.97    images9-esmobile-opensocial.googleusercontent.com
64.233.169.97    images-docs-opensocial.googleusercontent.com
64.233.169.97    images-oz-opensocial.googleusercontent.com
64.233.169.97    images-lso-opensocial.googleusercontent.com
64.233.169.97    images-blogger-opensocial.googleusercontent.com
64.233.169.97    images-pos-opensocial.googleusercontent.com
64.233.169.97    lh0.googleusercontent.com
64.233.169.97    lh1.googleusercontent.com
64.233.169.97    lh2.googleusercontent.com
64.233.169.97    lh3.googleusercontent.com
64.233.169.97    lh4.googleusercontent.com
64.233.169.97    lh5.googleusercontent.com
64.233.169.97    lh6.googleusercontent.com
64.233.169.97    gp1.googleusercontent.com
64.233.169.97    gp2.googleusercontent.com
64.233.169.97    gp3.googleusercontent.com
64.233.169.97    gp4.googleusercontent.com
64.233.169.97    gp5.googleusercontent.com
64.233.169.97    gp6.googleusercontent.com
64.233.169.97    ci1.googleusercontent.com
64.233.169.97    ci2.googleusercontent.com
64.233.169.97    ci3.googleusercontent.com
64.233.169.97    ci4.googleusercontent.com
64.233.169.97    ci5.googleusercontent.com
64.233.169.97    ci6.googleusercontent.com
64.233.169.97    s1.googleusercontent.com
64.233.169.97    s2.googleusercontent.com
64.233.169.97    s3.googleusercontent.com
64.233.169.97    s4.googleusercontent.com
64.233.169.97    s5.googleusercontent.com
64.233.169.97    s6.googleusercontent.com
64.233.169.97    sp0.googleusercontent.com
64.233.169.97    sp1.googleusercontent.com
64.233.169.97    sp2.googleusercontent.com
64.233.169.97    sp3.googleusercontent.com
64.233.169.97    sp4.googleusercontent.com
64.233.169.97    sp5.googleusercontent.com
64.233.169.97    sp6.googleusercontent.com
64.233.169.97    sp7.googleusercontent.com
64.233.169.97    sp8.googleusercontent.com
64.233.169.97    sp9.googleusercontent.com
64.233.169.97    clients1.googleusercontent.com
64.233.169.97    clients2.googleusercontent.com
64.233.169.97    clients3.googleusercontent.com
64.233.169.97    clients4.googleusercontent.com
64.233.169.97    clients5.googleusercontent.com
64.233.169.97    clients6.googleusercontent.com
64.233.169.97    clients7.googleusercontent.com
#usercontent end
#ggpht begin
64.233.169.97    lh0.ggpht.com
64.233.169.97    lh1.ggpht.com
64.233.169.97    lh2.ggpht.com
64.233.169.97    lh3.ggpht.com
64.233.169.97    lh4.ggpht.com
64.233.169.97    lh5.ggpht.com
64.233.169.97    lh6.ggpht.com
64.233.169.97    nt0.ggpht.com
64.233.169.97    nt1.ggpht.com
64.233.169.97    nt2.ggpht.com
64.233.169.97    nt3.ggpht.com
64.233.169.97    nt4.ggpht.com
64.233.169.97    nt5.ggpht.com
64.233.169.97    nt6.ggpht.com
64.233.169.97    yt0.ggpht.com
64.233.169.97    yt1.ggpht.com
64.233.169.97    yt2.ggpht.com
64.233.169.97    yt3.ggpht.com
64.233.169.97    yt4.ggpht.com
64.233.169.97    yt5.ggpht.com
64.233.169.97    yt6.ggpht.com
64.233.169.97    gm0.ggpht.com
64.233.169.97    gm1.ggpht.com
64.233.169.97    gm2.ggpht.com
64.233.169.97    gm3.ggpht.com
64.233.169.97    gm4.ggpht.com
64.233.169.97    gm5.ggpht.com
64.233.169.97    gm6.ggpht.com
64.233.169.97    geo0.ggpht.com
64.233.169.97    geo1.ggpht.com
64.233.169.97    geo2.ggpht.com
64.233.169.97    geo3.ggpht.com
64.233.169.97    geo4.ggpht.com
64.233.169.97    geo5.ggpht.com
64.233.169.97    geo6.ggpht.com
#ggpht end
#google client begin↓
64.233.169.97    clients1.google.com
64.233.169.97    clients2.google.com
64.233.169.97    clients3.google.com
64.233.169.97    clients4.google.com
64.233.169.97    clients5.google.com
64.233.169.97    clients6.google.com
64.233.169.97    0.client-channel.google.com
64.233.169.97    1.client-channel.google.com
64.233.169.97    2.client-channel.google.com
64.233.169.97    3.client-channel.google.com
64.233.169.97    4.client-channel.google.com
64.233.169.97    5.client-channel.google.com
64.233.169.97    6.client-channel.google.com
64.233.169.97    7.client-channel.google.com
64.233.169.97    8.client-channel.google.com
64.233.169.97    9.client-channel.google.com
64.233.169.97    10.client-channel.google.com
64.233.169.97    11.client-channel.google.com
64.233.169.97    12.client-channel.google.com
64.233.169.97    13.client-channel.google.com
64.233.169.97    14.client-channel.google.com
64.233.169.97    15.client-channel.google.com
64.233.169.97    16.client-channel.google.com
64.233.169.97    17.client-channel.google.com
64.233.169.97    18.client-channel.google.com
64.233.169.97    19.client-channel.google.com
64.233.169.97    20.client-channel.google.com
64.233.169.97    21.client-channel.google.com
64.233.169.97    22.client-channel.google.com
64.233.169.97    23.client-channel.google.com
64.233.169.97    24.client-channel.google.com
64.233.169.97    25.client-channel.google.com
64.233.169.97    26.client-channel.google.com
64.233.169.97    27.client-channel.google.com
64.233.169.97    28.client-channel.google.com
64.233.169.97    29.client-channel.google.com
64.233.169.97    uploads.clients.google.com
64.233.169.97    uploads.client.google.com
64.233.169.97    upload.clients.google.com
64.233.169.97    upload.client.google.com
64.233.169.97    upload.google.com
64.233.169.97    upload.docs.google.com
64.233.169.97    upload.photos.google.com
64.233.169.97    upload.drive.google.com
64.233.169.97    upload.video.google.com
64.233.169.97    uploads.code.google.com
64.233.169.97    uploads.clients.google.com
64.233.169.97    linkhelp.clients.google.com
#google client end
#google others
64.233.169.97    feedburner.google.com
64.233.169.97    feedproxy.google.com
64.233.169.97    0.talkgadget.google.com
64.233.169.97    chromoting-host.talkgadget.google.com
64.233.169.97    chromoting-oauth.talkgadget.google.com
64.233.169.97    chromoting-client.talkgadget.google.com
64.233.169.97    maps-api-ssl.google.com
64.233.169.97    mapsengine.google.com
64.233.169.97    bpui0.google.com
64.233.169.97    i18napis.appspot.com
64.233.169.97    safebrowsing.google.com
64.233.169.97    safebrowsing.clients.google.com
64.233.169.97    safebrowsing-cache.google.com
64.233.169.97    admin.google.com
64.233.169.97    appspot.l.google.com
64.233.169.97    browserchannel-docs.l.google.com
64.233.169.97    browserchannel-spreadsheets.l.google.com
64.233.169.97    browsersync.google.com
64.233.169.97    browsersync.l.google.com
64.233.169.97    cache.l.google.com
64.233.169.97    cache.pack.google.com
64.233.169.97    cbk0.google.com
64.233.169.97    cbk1.google.com
64.233.169.97    cbk2.google.com
64.233.169.97    cbk3.google.com
64.233.169.97    cbks0.google.com
64.233.169.97    cbks1.google.com
64.233.169.97    cbks2.google.com
64.233.169.97    cbks3.google.com
64.233.169.97    dl.google.com
64.233.169.97    dl.l.google.com
64.233.169.97    dl-ssl.google.com
64.233.169.97    encrypted.google.com
64.233.169.97    encrypted-tbn.l.google.com
64.233.169.97    encrypted-tbn0.google.com
64.233.169.97    encrypted-tbn1.google.com
64.233.169.97    encrypted-tbn2.google.com
64.233.169.97    encrypted-tbn3.google.com
64.233.169.97    gg.google.com
64.233.169.97    ghs.google.com
64.233.169.97    ghs.l.google.com
64.233.169.97    ghs46.google.com
64.233.169.97    ghs46.l.google.com
64.233.169.97    googlecode.l.google.com
64.233.169.97    google-public-dns-a.google.com
64.233.169.97    google-public-dns-b.google.com
64.233.169.97    groups.l.google.com
64.233.169.97    investor.google.com
64.233.169.97    kh.google.com
64.233.169.97    kh.l.google.com
64.233.169.97    khm.google.com
64.233.169.97    khm.l.google.com
64.233.169.97    khm0.google.com
64.233.169.97    khm1.google.com
64.233.169.97    khm2.google.com
64.233.169.97    khm3.google.com
64.233.169.97    khmdb.google.com
64.233.169.97    khms.google.com
64.233.169.97    khms.l.google.com
64.233.169.97    khms0.google.com
64.233.169.97    khms1.google.com
64.233.169.97    khms2.google.com
64.233.169.97    khms3.google.com
64.233.169.97    lh2.google.com
64.233.169.97    lh2.l.google.com
64.233.169.97    lh3.google.com
64.233.169.97    lh4.google.com
64.233.169.97    lh5.google.com
64.233.169.97    lh6.google.com
64.233.169.97    mars.google.com
64.233.169.97    mobilemaps.clients.google.com
64.233.169.97    mt.google.com
64.233.169.97    mt.l.google.com
64.233.169.97    mt0.google.com
64.233.169.97    mt1.google.com
64.233.169.97    mt2.google.com
64.233.169.97    mt3.google.com
64.233.169.97    mts.google.com
64.233.169.97    mts.l.google.com
64.233.169.97    mts0.google.com
64.233.169.97    mts1.google.com
64.233.169.97    mts2.google.com
64.233.169.97    mts3.google.com
64.233.169.97    music.google.com
64.233.169.97    mw1.google.com
64.233.169.97    mw2.google.com
64.233.169.97    picasaweb.google.com
64.233.169.97    picasaweb.l.google.com
64.233.169.97    services.google.com
64.233.169.97    sandbox.google.com
64.233.169.97    pack.google.com
64.233.169.97    sb.google.com
64.233.169.97    sb-ssl.google.com
64.233.169.97    script.google.com
64.233.169.97    security.google.com
64.233.169.97    id.google.com
64.233.169.97    id.l.google.com
64.233.169.97    tbn0.google.com
64.233.169.97    tbn1.google.com
64.233.169.97    tbn2.google.com
64.233.169.97    tbn3.google.com
64.233.169.97    voice.google.com
64.233.169.97    wifi.google.com
64.233.169.97    g.co
64.233.169.97    goo.gl
64.233.169.97    goto.google.com
#google others
#google storage begin
64.233.169.97    0.docs.google.com
64.233.169.97    1.docs.google.com
64.233.169.97    2.docs.google.com
64.233.169.97    3.docs.google.com
64.233.169.97    4.docs.google.com
64.233.169.97    5.docs.google.com
64.233.169.97    6.docs.google.com
64.233.169.97    7.docs.google.com
64.233.169.97    8.docs.google.com
64.233.169.97    9.docs.google.com
64.233.169.97    10.docs.google.com
64.233.169.97    0.drive.google.com
64.233.169.97    1.drive.google.com
64.233.169.97    2.drive.google.com
64.233.169.97    3.drive.google.com
64.233.169.97    4.drive.google.com
64.233.169.97    5.drive.google.com
64.233.169.97    6.drive.google.com
64.233.169.97    7.drive.google.com
64.233.169.97    8.drive.google.com
64.233.169.97    9.drive.google.com
64.233.169.97    10.drive.google.com
64.233.169.97    bks0.books.google.com
64.233.169.97    bks1.books.google.com
64.233.169.97    bks2.books.google.com
64.233.169.97    bks3.books.google.com
64.233.169.97    bks4.books.google.com
64.233.169.97    bks5.books.google.com
64.233.169.97    bks6.books.google.com
64.233.169.97    bks7.books.google.com
64.233.169.97    bks8.books.google.com
64.233.169.97    bks9.books.google.com
64.233.169.97    bks10.books.google.com
64.233.169.97    spreadsheets0.google.com
64.233.169.97    spreadsheets1.google.com
64.233.169.97    spreadsheets2.google.com
64.233.169.97    spreadsheets3.google.com
64.233.169.97    spreadsheets4.google.com
64.233.169.97    spreadsheets5.google.com
64.233.169.97    spreadsheets6.google.com
64.233.169.97    spreadsheets7.google.com
64.233.169.97    spreadsheets8.google.com
64.233.169.97    spreadsheets9.google.com
#google storage end
#google.com.hk begin
64.233.169.97    news.google.com.hk
64.233.169.97    books.google.com.hk
64.233.169.97    accounts.google.com.hk
64.233.169.97    clients1.google.com.hk
64.233.169.97    encrypted.google.com.hk
64.233.169.97    groups.google.com.hk
64.233.169.97    id.google.com.hk
64.233.169.97    images.google.com.hk
64.233.169.97    m.google.com.hk
64.233.169.97    maps.google.com.hk
64.233.169.97    picasaweb.google.com.hk
64.233.169.97    scholar.google.com.hk
64.233.169.97    toolbar.google.com.hk
64.233.169.97    translate.google.com.hk
64.233.169.97    wenda.google.com.hk
64.233.169.97    www.google.com.hk
#google.com.hk end
#google.com.tw begin
64.233.169.97    www.google.com.tw
64.233.169.97    accounts.google.com.tw
64.233.169.97    maps.google.com.tw
64.233.169.97    news.google.com.tw
64.233.169.97    books.google.com.tw
64.233.169.97    clients1.google.com.tw
64.233.169.97    encrypted.google.com.tw
64.233.169.97    groups.google.com.tw
64.233.169.97    id.google.com.tw
64.233.169.97    images.google.com.tw
64.233.169.97    m.google.com.tw
64.233.169.97    picasaweb.google.com.tw
64.233.169.97    scholar.google.com.tw
64.233.169.97    toolbar.google.com.tw
64.233.169.97    toolbarqueries.google.com.tw
64.233.169.97    translate.google.com.tw
#google.com.tw end
#google.cn begin
64.233.169.97    g.cn
64.233.169.97    www.g.cn
64.233.169.97    www.gstatic.cn
64.233.169.97    ditu.google.cn
64.233.169.97    maps.google.cn
64.233.169.97    gg.google.cn
64.233.169.97    id.google.cn
64.233.169.97    maps.gstatic.cn
64.233.169.97    m.google.cn
64.233.169.97    mt.google.cn
64.233.169.97    mt0.google.cn
64.233.169.97    mt1.google.cn
64.233.169.97    mt2.google.cn
64.233.169.97    mt3.google.cn
64.233.169.97    news.google.cn
64.233.169.97    scholar.google.cn
64.233.169.97    translate.google.cn
64.233.169.97    www.google.cn
#google.cn end
#begin
203.208.46.132    accounts.l.google.com
64.233.169.97    csi.l.google.com
64.233.169.97    googleapis.l.google.com
64.233.169.97    maps.l.google.com
64.233.169.97    code.l.google.com
64.233.169.97    news.l.google.com
64.233.169.97    images.l.google.com
64.233.169.97    mobile.l.google.com
64.233.169.97    talkx.l.google.com
64.233.169.97    talk.l.google.com
64.233.169.97    large-uploads.l.google.com
64.233.169.97    writely.l.google.com
64.233.169.97    writely-china.l.google.com
64.233.169.97    writely-com.l.google.com
64.233.169.97    www.l.google.com
64.233.169.97    www2.l.google.com
64.233.169.97    www3.l.google.com
64.233.169.97    www4.l.google.com
64.233.169.97    ytstatic.l.google.com
64.233.169.97    wildcard-talkgadget.l.google.com
64.233.169.97    mobile-gtalk.l.google.com
64.233.169.97    safebrowsing.cache.l.google.com
64.233.169.97    spreadsheets-china.l.google.com
64.233.169.97    spreadsheets.l.google.com
64.233.169.97    suggestqueries.l.google.com
64.233.169.97    video-stats.l.google.com
64.233.169.97    sb.l.google.com
64.233.169.97    sb-ssl.l.google.com
64.233.169.97    scholar.l.google.com
64.233.169.97    wifi.l.google.com
64.233.169.97    wire.l.google.com
64.233.169.97    tools.l.google.com
64.233.169.97    photos-ugc.l.google.com
64.233.169.97    music-streaming.l.google.com
64.233.169.97    googlehosted.l.googleusercontent.com
#end
#google alternative domains
64.233.169.97  suggestqueries.google.com
64.233.169.97    www.googledrive.com
64.233.169.97    map.google.com
64.233.169.97    mage.google.com
64.233.169.97    plusone.google.com
64.233.169.97    spreadsheet.google.com
64.233.169.97    ditu.google.com
64.233.169.97    local.google.com
64.233.169.97    answers.google.com
64.233.169.97    profiles.google.com
64.233.169.97    writely.google.com
64.233.169.97    buzz.google.com
64.233.169.97    ssl.google-analytics.com
64.233.169.97    www.google-analytics.com
64.233.169.97    plus.url.google.com
#google alternative domains
#google blogger begin
216.58.219.42    www.blogger.com
216.58.219.42     accounts.blogger.com
216.58.219.42     www.blogspot.com
216.58.219.42     google-opensource.blogspot.com
216.58.219.42     googleblog.blogspot.com
216.58.219.42     googlechinablog.blogspot.com
216.58.219.42     googlechromereleases.blogspot.com
216.58.219.42     1.bp.blogspot.com
216.58.219.42     2.bp.blogspot.com
216.58.219.42     3.bp.blogspot.com
216.58.219.42     4.bp.blogspot.com
#google blogger end
#google anroid begin(access via http)
208.117.255.232    android.com
208.117.255.232    www.android.com
208.117.255.232    developer.android.com
208.117.255.232    market.android.com
208.117.255.232    source.android.com
208.117.255.232   panoramio.com
208.117.255.232    www.panoramio.com
208.117.255.232    static.panoramio.com
208.117.255.232    www.webmproject.org
208.117.255.232    golang.org
208.117.255.232    play.golang.org
#google android end
#google source begin
64.233.169.97    googlesource.com
64.233.169.97    www.googlesource.com
64.233.169.97    android.googlesource.com
64.233.169.97    chromium.googlesource.com
64.233.169.97    gerrit.googlesource.com
64.233.169.97    kernel.googlesource.com
64.233.169.97    gwt.googlesource.com
#google source end
#google hosts 2015 end

 

Categories
木有技术

SVM的分类原理

  1. 2  线性不可分的情况

对于线性不可分的情况,可以把样本X 映射到一个高维特征空间H,并在此空间中运用原空间的函
数来实现内积运算,这样将非线性问题转换成另一空间的线性问题来获得一个样本的归属. 根据泛函的
有关理论,只要一种核函数满足Mercer 条件,它就对应某一空间中的内积,因此只要在最优分类面上采
用适当的内积函数就可以实现这种线性不可分的分类问题. 此时的目标函数为:
    (10)
其相应的分类函数为:                                       (11)

  1. 3   内积核函数

目前有三类用的较多的内积核函数:第一类是
     (12)
我们所能得到的是p阶多项式分类器,第二类是径向基函数(RBF),也称作高斯核函数:

 
第三类是Sigmoid函数:
这时SVM实现的就是包含一个隐层感知器,隐层结点数是由算法自动确定的。究竟用哪一种
核函数比较好了?这还是取决你对数据处理的要求,不过建议可以使用径向基函数。

Categories
不学无术

淘宝开放平台基本概念

1.应用权限

公开:应用接入时默认就开放;增值:需要额外申请的权限;

2.应用环境

沙箱环境APP调用量无限制,用于仿真DEBUG,使用另外一个API入口与给定的淘宝ID

真实环境APP调用量、权限有一定限制,使用证实淘宝ID与API入口

3.用户授权

OAuth2授权(令牌token),接入时默认采用;

TOP协议:应用程序可通过API获取到淘宝上的用户、交易情况等数据,因为涉及隐私,在使用前必须通过淘宝获得淘宝用户的授权方可调用API(公开数据除外);

安全等级问题(貌似不大会涉及):用户普通信息的写;敏感信息的读、写;

4.API调用流程

淘宝开放平台流程

5.开发环境、SDK

JAVA 1.5+(Android不行)
.net 2+
php 5+
python 2.7+ (起步阶段)
Categories
软件

Acrobat XI (11.x) amtlib.dll 破解文件

覆盖到安装程序的目录即可。
链接:
http://pan.baidu.com/s/1kTqp5Oz
密码:

yjr2

 

Categories
木有技术

VPN 错误789解决办法

Windows配置VPN,选择使用IPsec的第2层隧道协议(L2TP/IPSec)时,在进行连接时,Win XP系统肯定会报错,Win7系统正常,Win8系统大部分情况报错,有时正常。
提示的错误信息为:

错误789:l2tp 连接尝试失败,因为安全层在初始化与远程计算机的协商时遇到一个处理错误
 


解决方法
修改注册表来实现

  • 单击“开始”,单击“运行”,键入“regedit”,然后单击“确定”;
  • 找到下面的注册表子项,然后单击它: HKEY_LOCAL_MACHINE\ System\CurrentControlSet\Services\Rasman\Parameters ;
  • 在“编辑”菜单上,单击“新建”->“DWORD值” ;
  • 在“名称”框中,键入“ProhibitIpSec” ;
  • 在“数值数据”框中,键入“1”,然后单击“确定” ;
  • 退出注册表编辑器,然后重新启动计算机。

 
本文转载自http://loosky.net/2982.html