koolshare.github.io/shadowsocks at acelan

koolshare.github.io

####For koolshare.cn 小宝merlin改版固件 软件中心

shadowsocks文件夹下的内容,用于向路由器内shadowsocks功能推送更新
此项目仅用于merlin koolshare ARM架构改版固件

  • shadowsocks/ss 文件夹
    该文件夹用于存放shadowsocks相关脚本和规则文件:
  • shadowsocks/webs
    该文件夹用于存放shadowsocks的网页。
  • shadowsocks/res
    该文件夹用于存放shadowsocks网页元素。
  • shadowsocks/bin
    该文件夹用于存放shadowsocks的二进制文件。
  • shadowsocks/init.d
    该文件夹用于存放shadowsocks的开机启动文件,目前因为shadowsocks的启动依赖wan-start和nat-start两个启动文件,所以并没有用init.d的启动方式,而socks5使用了该方式
  • shadowsocks.tar.gz
    此文件为shadowsocks文件夹的打包,通过路由器访问 https://raw.githubusercontent.com/koolshare/koolshare.github.io/master/shadowsocks/shadowsocks.tar.gz 获取安装包更新。

如果你更新出现问题,请按照以下方式手动更新:

cd /tmp
wget --no-check-certificate --timeout=15 https://raw.githubusercontent.com/koolshare/koolshare.github.io/acelan_softcenter_ui/shadowsocks/shadowsocks.tar.gz
tar -zxvf /tmp/shadowsocks.tar.gz
chmod +x /tmp/shadowsocks/install.sh
sh /tmp/shadowsocks/install.sh

如果你需要更新历史版本,这里以 3.5.8版本为例:(需要更新其它版本,只需要自行更改版本号,所有历史版本存档目录:https://github.com/koolshare/koolshare.github.io/tree/acelan_softcenter_ui/shadowsocks/history)

cd /tmp
wget --no-check-certificate https://raw.githubusercontent.com/koolshare/koolshare.github.io/acelan_softcenter_ui/shadowsocks/history/shadowsocks_3.5.8.tar.gz
mv shadowsocks_3.5.8.tar.gz shadowsocks.tar.gz
tar -zxvf /tmp/shadowsocks.tar.gz
chmod +x /tmp/shadowsocks/install.sh
sh /tmp/shadowsocks/install.sh
  • history文件夹
    该文件夹用于存放shadowsocks历史安装包,需要回滚历史版本的,可以下载对应版本,然后手动安装。
  • version
    在线版本号和shadowsocks.tar.gz的md5校验值,用于判断更新。

怎样提交修改 需要再次说明的是,ss的在线更新是通过请求shadowsocks.tar.gz文件进行的,如果你有发现bug,并希望提交你的更改,需要做以下几点:

  1. 发现bug,修改需要修改的文件;
  2. 更新shadowsocks/ss/version,更新版本号;
  3. 修改Changelog.txt文件,添加更新日志;
  4. 运行build.sh文件,这样会自动打包shadowsocks文件夹,并且更新versionn内的版本号和md5值,同时会把就版本丢进history中;
  5. 运行git status,查看被修改的文件,然后添加,评论,提交;
发表在 未分类 | 留下评论

How to Fix Slow and Non-Loading Webpages in Safari

  1. Computer Skills
  2. OS X
Computers

How to Fix Slow and Non-Loading Webpages in Safari

by
Difficulty:BeginnerLength:ShortLanguages:

There is little that is more frustrating than a webpage that takes a long time to load, or never loads at all.

It’s even more frustrating when you’ve got one of the latest, fast Macs that is connected to a superfast broadband (or normal broadband, for that matter) connection. You can be close to tearing your hair out wondering why webpages are slow to load. If this is your experience then this tutorial may have the answer.

 


Safari, from version 5.0.1 onwards, employs a technique known as DNS prefetching. This is designed to ensure that webpages load faster. On occasion it can, unfortunately, have the opposite effect meaning that webpages can take a long time to load. Or simply not load at all.


The problem of slow, or non-loading, webpages is often caused by DNS prefetching. First, let’s examine the DNS bit and then the prefetching aspect.

DNS is the Domain Name Server (or system) that associates IP (Internet Protocol) addresses with domain names.

IP addresses are strings of numbers such as 212.58.244.69. Entering that number into a web browser will take you to the BBC website, as would entering bbc.co.uk. Being human, we find the latter easier to remember.

The analogy that is often used is that DNS works like a telephone directory for the internet in that it translates names (domain names) into numbers (IP addresses).

Prefetching, in the context of DNS, is an attempt to resolve domain names before the web browser user attempts to follow a link.

The reason that this is done is that DNS resolution time – the time taken to look up and translate a domain name to an IP address (remember the phone directory analogy and how long it might take you to look up someone’s number) – can lead to a variable delays that contribute to user-percieved latency. That’s to say, how long you think the delay is in the webpage, from a new website, downloading.


There are two main solutions to the DNS prefetching problem. They are to first try an alternate DNS service. Using our telephone directory analogy, once more, it’s akin to using a Thomson Local, rather than Yellow Pages, to look up the required information.

The second is to disable DNS prefetching altogether.

The purpose of trying a different DNS service is to rule out any issues with the DNS service used by your ISP (Internet Service Provider).

Two of the main DNS service providers are OpenDNS and Google DNS. Alternatively, you can search the internet for third party DNS services for more options.

You can change your DNS service settings either on each Mac that you own or, if you use all your Macs in one place such as a home or office network, you can update the DNS service settings on your router or Apple Time Capsule.

OpenDNS may prove more reliable than your ISPs DNS
OpenDNS may prove more reliable than your ISP’s DNS

If the issue of slow, or non-loading, webpages persists, the next step is to disable DNS prefetching using a command in terminal.

Tip: Terminal is not for those who do not understand what they are doing. It is possible to compromise the smooth operation of OS X if you enter the wrong command. That said, you can copy the command from this article and paste it into terminal to ensure that it is entered correctly.

First, ensure that you have quit the Safari app. Then open up the Terminal app which is located in /Applications/Utilities.

When you see the command prompt, enter the following command. The command that you are entering will disable DNS prefetching.

Now relaunch Safari and test for the slow, or non-loading, webpage issue on any websites where you were having the problem.

If disabling DNS Prefetching, with the terminal command, has solved your issue, then the root cause of the problem may lie with your router.

Check your router AirPort Extreme or TimeCapsule
Check your router, AirPort Extreme or TimeCapsule

In order to determine if this is the case, check to see if your router’s manufacturer has issued a firmware upgrade in the time since you acquired your router. It may be that they have issued an upgrade that is intended to fix a number of issues and/or introduce new functionality to the device.

Visit the website for the manufacturer of your router to determine if firmware updates are available and, if they are, be sure to follow the installation instructions very carefully so as not to compromise the functionality of the router itself.

If your router is particularly old, it may be wise to upgrade to a more modern and robust device.

Having checked for the latest firmware on your existing router, or having replaced an old router with a new one, the next step would be to re-enable DNS prefetching.

Quit Safari and open the Terminal app, located in /Applications/Utilities.

When you see the command prompt, enter the following command. The command that you are entering will re-enable DNS prefetching.

Relaunch Safari and test by visiting any website with which you were previously experiencing problems with slow, or non-loading, webpages.

Advertisement

After having upgraded your existing router’s firmware, or upgraded to a modern router, and re-enabling DNS prefetching you are still experiencing slow, or non-loading, webpages then the final solution would be to disable DNS prefetching once more.

Simply follow the earlier instruction for the Terminal command to disable DNS prefetching in Safari and leave it at that.


Having followed the instructions in this tutorial, you should now be viewing previously problematic websites without any slow, or non-loading, webpages.

If the solution for your was to disable DNS prefetching then your browser will not be looking up links to other websites before you click through to them. On occasion, and depending upon the DNS system, it may take a little while for the domain name to resolve to an IP address before the website loads in the browser.

Normally speaking, you will not notice any delay in domain name resolution except for in exceptional circumstances. Either way, the webpage performance should now have improved on the sites with which you were previously experiencing problems.

发表在 未分类 | 留下评论

How to Fix Slow and Non-Loading Webpages in Safari

来源: How to Fix Slow and Non-Loading Webpages in Safari

发表在 未分类 | 留下评论

Vitamins ‘effective in treating ADHD symptoms’

 

Vitamin pills
Image caption Could micronutrients such as zinc, calcium and vitamins improve brain functioning?

Vitamins and minerals could be useful for treating ADHD, research suggests.

Adults with ADHD given supplements for eight weeks had a “modest” improvement in concentration span, hyperactivity, and other symptoms, a small-scale study found.

A wide range of nutrients, including vitamin D, iron and calcium, may improve brain functioning, said psychologists in New Zealand.

Another study found medication reduced road accidents in men with ADHD.

As many as one in 20 adults has ADHD (attention-deficit hyperactivity disorder), marked by symptoms such as lack of attention, concentration difficulties and impulsiveness.

ADHD can be treated with medications, such as central nervous system stimulants, which affect the brain and improve symptoms.

According to the research, published in The British Journal of Psychiatry, taking a broad range of vitamins and minerals may also help reduce ADHD symptoms.

In the study, 80 adults with ADHD were given either supplements containing vitamin D, vitamin B12, folate, magnesium, ferritin, iron, calcium, zinc and copper, or a dummy pill.

 

After eight weeks of treatment those on supplements reported greater improvements in both their inattention and hyperactivity/impulsivity compared with those taking the placebo.

Psychologists from the University of Canterbury, in Christchurch, say the effects of vitamins and minerals (micronutrients) are more modest than medication but may be useful for some people, particularly those seeking alternative treatments.

“Our study provides preliminary evidence of the effectiveness for micronutrients in the treatment of ADHD symptoms in adults,” said Prof Julia Rucklidge, who led the study.

“This could open up treatment options for people with ADHD who may not tolerate medications, or do not respond to first-line treatments.”

Philip Asherson, professor in molecular psychiatry at the Institute of Psychiatry in London, said the suggestion that vitamins and minerals improved brain metabolism was intriguing but needed further investigation.

“It’s a good study, which is very interesting, but really needs replicating,” he told the BBC. “The mechanisms behind it remain unclear.”

Road accidents

Meanwhile, a separate study on ADHD in Sweden suggests medication could save lives on the road.

Research indicated almost half of transport accidents involving men with ADHD could be avoided if they were taking medication for their condition.

Scientists from the Karolinska Institute studied 17,000 individuals with ADHD over a period of four years using data from health registers.

They found individuals with ADHD had a higher risk of being involved in serious transport accidents, such as car or motorcycle crashes, compared with those without ADHD.

Transport accidents were lower among men with ADHD who were on medication than among men with ADHD who did not take medication.

Calculations showed 41% of transport accidents involving men with ADHD could have been avoided if they had received medication and carried on taking it during the course of the study.

A similar effect was not found in women.

“Even though many people with ADHD are doing well, our results indicate that the disorder may have very serious consequences,” said Henrik Larsson, associate professor at the Department of Medical Epidemiology and Biostatistics.

“Our study also demonstrates in several different ways that the risk of transport accidents in adult men with ADHD decreases markedly if their condition is treated with medication.”

The research is published in the journal JAMA Psychiatry.

 

发表在 未分类 | 留下评论

Netflix或将入华 美剧党不用再“翻墙” 视频,美剧,纸牌屋 iPhone6

 

“美剧党”有福了!最近,Netflix CEO Reed Hastings在慕尼黑DLD大会上表示,Netflix目前与中国监管部门的谈判很顺利,或许会很快获得牌照。这意味着,Netflix苦盼多年的“中国梦”终于有机会实现了。

Netflix成立于1997年, 原本是一家DVD租赁服务商,2011年起Hastings分拆了公司业务,Netflix开始主营流媒体服务。2013年,Netflix进入原创内容领域,主打高端自制美剧,先后推出《纸牌屋》、《铁杉树丛》、《女子监狱》等多部热门剧集。

也正是凭借《纸牌屋》一炮打响之后,Netflix漂洋过海吸引了不少中国观众。在最新的一项调查中显示,尽管Netflix表示屏蔽了VPN服务,但中国仍有超过2000万用户通过VPN“翻墙”使用Netflix收看视频。也就是说,Netflix的在华市场需求还是相当可观的。

反观美国市场,Netflix正面临着用户增长放缓的问题。自2012年以来,Netflix美国本土用户同比增长率就已经开始下降,而且情况越来越糟糕。仅2014年第3季度,Netflix美国本土用户增长量就远远落后于海外市场。Netflix逐渐意识到海外市场对于自身发展的重要性。而中国作为新兴市场的代表,市场潜力毋庸置疑,然而因为监管问题,Netflix迟迟无法进入中国。

这也是目前美国主流媒体对Netflix入华并不看好的原因。在他们看来,中国对影视中暴力、性、裸露这些敏感话题都普遍采取了屏蔽措施,类似《杰西卡·琼斯》这样的美剧在华过审几乎是不可能的事。

退一步说,即使Netflix真的能够顺利拿到牌照进入中国市场,前景也并非一片光明。

去年9月,万达集团曾向Netflix抛出橄榄枝。当时,万达文化产业集团副总裁叶宁表示,公司愿意与Netflix就进入中国市场一事进行合作。他认为,Netflix进入中国将面临强大的竞争对手,比如百度、阿里巴巴和腾讯。因此,Netflix需要找到一个合适的合作伙伴。不过后来双方并未商讨出实质性的结果。

事实上,尽管进军海外市场多年,Netflix公司走的路线仍然是好莱坞特色。而在“好莱坞”特色上,腾讯视频早已在2013年初就已经和华纳兄弟、环球、米拉麦克斯、狮门等好莱坞知名电影公司达成合作协议,在好莱坞影院中推出付费会员服务。姗姗来迟的Netflix在这一方面并没有太大优势。

此外,在中国,Netflix引以为傲的付费观看模式恐怕会遭遇“水土不服”。众所周知,Netflix一直采用付费观看模式,用户可享受无广告服务,其收费标准根据可用设备数量和清晰度上下浮动,价格在7.99美元至11.99美元之间。虽然随着国内自制剧的热度升温,越来越多的中国视频平台也相继推出“付费抢先看”、“付费免广告”服务,但相比于整体大环境来说,会员付费还不太能让国内多数消费者接受。

更为关键的是,Netflix还要解决内容本地化的问题。此前,Netflix也意识到了这个问题,在进军日本时,这家公司与富士传媒控股合作,后者为其提供日语节目,吉本兴业株式会社也专门为Netflix制作原创本土内容。而在欧洲,Netflix采用原版英文内容混合本土内容的模式,目前法国和意大利都有自己的本土原创剧集在Netflix平台上。但在中国,激烈竞争下视频版权的费用绝不是一笔小数目,巨大的文化差异也让Netflix自制剧步履维艰。

尽管进入中国市场困难重重,但Netflix仍然信心满满。Hastings总喜欢用NBA或是迪士尼的例子证明Netflix有能力“征服”中国观众。不过他似乎忘了一点,NBA或迪士尼的受众是极为广泛且低门槛的——家庭、运动和健康,这些放在任何一个国家或文化中都更容易被接受,而Netflix显然走的并不是这个路线。

一直以来,国内视频网站都宣称要做“中国版Netflix”,如今Netflix真的要入华,双方恶战在所难免。而国内网站占据了本土化优势,无疑会令Netflix这个外来的“和尚”难念经。

发表在 未分类 | 留下评论

寒假里,给学生家长的10个建议

一、如果你家孩子写字不端正,寒假的第一要务是练字。不要怀疑我的建议,写字不好,你孩子将来的成绩将会吃大亏。如果连孩子的写字训练都管不住,请你放弃对孩子的管理,认命吧。练字没什么很好的方法,找个不错的字帖,临帖就是了。注意,是临帖,不是垫一张薄纸描着写。

 

二、管住电脑,管住电视。要有这么一种决心,如果孩子玩电脑着迷了,宁可砸掉电脑,也要制止住孩子电脑上瘾。建议在电脑上设置开机密码,完不成作业,或者练字不到一定的数量,誓死也不能开机。记住,如果孩子这时候你还管不住,等他叛逆心理上来,就去泡网吧了。

 

三、先做作业,在固定时间内必须完成。绝对不能拖到正月十四十五,孩子被迫赶写作业。争取在春节前完成作业,至少也要到初五前完成。如果你对孩子的作业管理不够,到了快开学时,你才催促孩子写作业,那显然是家长的失职。爹娘的职责不是喂养样子,而是管教孩子。不要埋怨孩子的拖沓,任何一个拖沓的孩子,都有一对拖沓的家长。

 

四、给孩子制定一个计划。寒假很快就过,孩子一玩就容易玩疯。此时,孩子先做什么,后做什么。什么时候完成作业,什么时候练字,什么时候读课外书,什么时候玩电脑,必须有个计划,最好精确到小时。孩子的生活和学习自己有个掌控,至少,无论是玩,还是出门,都不会处于失控状态。

 

五、读几本名著课外书。找几本经典的名著,让孩子读。三周的时间,至少要读两三本。记住,对名著的阅读,其实是从小学起步的。一些名著的阅读,如果拖到初中高中乃至大学,阅读的效果就不怎么明显了。

 

六、不要怂恿孩子收过多的压岁钱,压岁钱要管理好。压岁钱的使用,只能买书,买本等学校用品。不许买别的。家长要对压岁钱严格管理。说一不二,不得怂恿孩子随便花钱。记住,让孩子炫耀收到了多少压岁钱,其实对孩子的品德修养,是一种伤害。在这个年龄,孩子惟一值得炫耀的除了成绩,还是成绩。

 

七、男孩子放鞭炮、出去玩,一定要注意安全。家里买了鞭炮等,就要警告孩子在家里不要玩火。

 

八、带着孩子给父母拜年,让孩子受到熏陶。该磕头就磕头,这是民族的传统美德,不是什么见不得人的事情。我大大方方地给爹妈磕头拜年,将来孩子也会大大方方地给你磕头拜年。讲礼节,是让孩子懂得尊重你,明白你是爹,得服从爹妈的管理。

 

九、如果你的孩子时间宽裕,爱学习,预习好下学期的课程也未尝不可。至少,有一周时间,就能把半册的数学题都预习得差不多。

 

十、如果孩子学习累了,给孩子挑选一些能拓展知识面的电影去欣赏,也是不错的。孩子知道成龙、李连杰等其他国内外的明星,知道好莱坞大片,无形中会拓宽孩子的知识面。

 

(内容来源:网络 版权归原作者所有)

发表在 未分类 | 留下评论

Chrome扩展:一键转发到我的WordPress

 

 

 

最近微博大行其道,比如新浪微博就开发了各种浏览器下的“选中文字,右键转发扩展插件”,我的wordpress能不能也有这种功能呢:在看到好的文字时,就右键转发至自己的wordpress,免去登陆,后台,发文一系列麻烦。抱着强烈的好奇心,在chorme扩展中心输入了“wordpress”,竟然真的给找到了。废话不多说先上图:

 

 

 

 

具体用法非常简单,大家一看就明白。好了,上插件地址,快去体验一下吧。

 

 

 

https://chrome.google.com/webstore/detail/hmjbjgbkknoihokghhbaopjjgiojjmjd

 

请订阅本站 RSS feed 订阅到信箱 ,欢迎 Donate 或者 上面的广告内容 支持三十岁

本文链接:Chrome扩展:一键转发到我的Wordpress

转载声明:本站文章若无特别说明,皆为原创,转载请注明来源:三十岁,谢谢!^^

 

分享到:           

 

 

发表在 未分类 | 留下评论

aria2

http://h-notes.com/notes/RxtJB1lJ5tNVhdpp/20160112/h9pZ1dZddpJJ1dZhhpZ555ptZt9dZtRZ9hhlJFVBlRV9t9FJtJ59J5h55p9d95lx/index.html

发表在 未分类 | 留下评论

test

test

发表在 未分类 | 留下评论

Top 10: Phuket’s best ultra luxury hotels (Thailand)

Monday newsletters always feature top 10 travel lists to inspire

http://theluxurytravelexpert.com/2015/12/14/top-10-phukets-best-ultra-luxury-hotels-thailand/

发表在 未分类 | 标签为 , , , , , , , , , , , , , , , , , , , , | 留下评论