修改android手机的wifi主机名

本文亦适用于其他android设备。

当你的android打开wifi连上网络时,在无线路由器的DHCP客户端列表上,
你的android设备的网络名称是形如“androidxxxxxxx”的无意义字符串。
给你的android设备设置一个有意义的名字,可以便于识别你自己的设备,并通过网络名来连接和操作你的设备。

android系统中并没有提供设置wifi网络名的地方,本文提供的方法虽然过程比较简单,
但是一些前提条件可能比较麻烦:
你的android设备需要已经root过(关于如何root请自行Google/Baidu);
有一台电脑,上边安装了Android SDK(需要adb命令和你的设备驱动)。

  • 在手机设置中,开启【开发者选项】中的【USB调试】

android_dev_usb_debug

  • 将你的手机使用USB数据线连上电脑

  • 在电脑上打开命令行窗口,执行以下命令

1
2
3
4
5
6
7
8
9
E:\> adb devices
List of devices attached
HT13WTJ47928 device

E:\> adb connect 127.0.0.1:5037
connected to 127.0.0.1:5037

E:\> adb pull /system/build.prop
450 KB/s (5996 bytes in 0.013s)
  • 在当前路径(本示例中是 E:\)下找到build.prop,打开进行编辑,在文件的最末尾加上一行
1
2
#net.hostname=[你的机器名],例如
net.hostname=my-HTC_G12
  • 启动 adb shell 执行如下命令,将修改后的build.prop替换/system/build.prop
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
E:\> adb shell
root@android:/ # su
su
root@android:/ # mount -o remount,rw /system
mount -o remount,rw /system
root@android:/ # exit
exit
root@android:/ # exit
exit

E:\> adb push build.prop /system
585 KB/s (5996 bytes in 0.010s)

E:\> adb shell
root@android:/ # su
su
root@android:/ # mount -o remount,ro /system
mount -o remount,ro /system
root@android:/ # exit
exit
root@android:/ # exit
exit
  • 重启你的android手机,大功告成

参考文章:[How to Change Wifi Host Name of Your Android Device][ref]
[ref]: http://nileshgr.com/2012/10/13/how-to-change-wifi-host-name-of-your-android-device

读书笔记:《震荡市场的投资策略》

《震荡市场的投资策略》

作者: [美] 彼得•希夫

用经济刺激措施对抗经济衰退意味着拿更多钱去买供应量一定的商品。
这正是通货膨胀的含义,它除了会推高物价之外,对改善经济基础没有任何帮助。


在流动性不足的情况下,经济刺激措施对恢复系统的流动性是有好处的,但是注入的流动性应有退出机制。
如果注入流动性之后,经济规模得到了实际的增长,那么注入的流动性就被自然消解了。
否则注入的流动性就将成为通胀之源。

评估经济规模是否实际增长的一种方法:
经济刺激前的GDP×(经济刺激前的M1+注入的流动性规模)/经济刺激前的M1
如果经济刺措施完成后的GDP小于上述值,则经济规模可能未实际增长。

我会将闲置资金投资于非美元货币市场基金以及外国证券投资组合上获利,
同时我会立即抛空债券(以及通货膨胀保值债券),尽管债券价格在人为的低利率下仍然虚高。


债券无法在通胀中实现真正的保值,尤其是恶性通胀的情况下。
所以在经济不景气时,如果政府开始实施经济刺激计划,那么卖空债券是理智的选择。

人们必须明白,通货膨胀是价格上涨的原因而不是结果。

通货膨胀的概念仍然难以捉摸:既然实际通货膨胀是无法量化的,
我们只能将名义价格变化与某种商品如黄金的价格变化相比较,
因为黄金是一种较好的价值储备,是更客观的衡量价格的标准。

华尔街投资银行的基本工作目标,亦即它们的存在理由,就是销售股票并取悦企业客户。
请记住这一点,然后相应调低它们公开预测的价值。


作为股民不要完全相信机构对股票的评级,
你得根据自己的判断调低(机构做多)或调高(机构做空)他们公开预测的值。

共同基金:它们的目标和你的目标可能存在一定的差异。
你需要绝对的长期业绩,而它们下的是短期赌注,目的是获取短期收益。


此结论适用于国内的各种投资基金公司。
在诚信匮乏的国度,管理者自己都不投入资本的基金,你能相信他们会尽职么?

商品是投资组合的关键组成部分,没有商品的投资组合是缺乏多元化的投资组合。
适时的商品投资能一举两得:久经考验的通货膨胀对冲,以及超级长期牛市。

白银投资的潜力:白银可能比其他贵金属(包括黄金)有更好的上升势头,
因为它既能从美元下跌中获利,又能从商品板块的上涨周期中获利,与此同时还存在供应短缺。

日识新语学投资:独资企业

翻译来自 InvestorWords.com 的 Term of the day(2012/12/04)

sole proprietorship

A business structure in which an individual and his/her company are considered a single entity for tax and liability purposes.
A sole proprietorship is a company which is not registered with the state as a limited liability company or corporation.
The owner does not pay income tax separately for the company,
but he/she reports business income or losses on his/her individual income tax return.
The owner is inseparable from the sole proprietorship, so he/she is liable for any business debts.

独资企业

一种企业结构,在这种企业结构中一个个人以及他/她的公司被当作是一个单一的税收和责任实体。
独资企业是未注册为有限责任公司或企业法人的公司。
(独资企业)所有者不为公司单独支付收入所得税,但他/她需要在他/她的所得税申报表中报告营业收入或营业亏损。
所有者与独资企业是不可分离的,所以他/她需要为(独资企业)的任何商业债务承担责任。

日识新语学投资:布什减税计划

翻译来自 InvestorWords.com 的 Term of the day(2012/12/03)

Bush Tax Cuts

A series of changes to the tax code enacted during George W. Bush’s years as the sitting President.
The tax cuts included a reduction in income and long-term capital gains tax rates,
a reduction of the marriage penalty, an expansion of the child tax credit,
and a lowered maximum for gift and estate tax exemptions.
Overall the highest marginal income tax rate dropped from 39.6% to 35%.

布什减税计划

乔治.W.布什 任职总统期间颁布的一系列免税修改法案。
减税计划包括减少所得税和长期资本利得税的税率,
减少婚姻惩罚税,提高儿童抵税额,以及降低 赠与税 和 房产税 最大免税额。
总体上最高边际所得税税率从 39.6% 降到 35%。

日识新语学投资:欧佩克

翻译来自 InvestorWords.com 的 Term of the day(2012/11/30)

OPEC

Organization of Petroleum Exporting Countries.
A collective of countries founded in 1960 that choose to collaborate
in order to manage the exportation of their crude oil to the rest of the world.
Because of their ability to adjust production levels,
they possess a great deal of influence on the price of oil.

欧佩克

石油输出国组织。
一个1960年建立的国家集团,选择通过(集团内国家间的)协作来管理对世界上其他(集团外)国家的原油出口。
由于他们有能力调整(石油)生产水平,所以他们对(世界)石油价格占有很大的影响力。

日识新语学投资:波动率

翻译来自 InvestorWords.com 的 Term of the day(2012/11/28)

Volatility

The relative rate at which the price of a security moves up and down.
Volatility is found by calculating the annualized standard deviation of daily change in price.
If the price of a stock moves up and down rapidly over short time periods,it has high volatility.
If the price almost never changes, it has low volatility.

波动率

证券价格上涨和下跌的相对比率。
波动率通过计算价格每日变化的年度标准差发现。
如果一只股票的价格在很短的时间周期内快速上涨和下跌,那么这只股票具有较高的波动率。
如果(一只股票的)价格几乎从不改变,那么这只股票具有较低的波动率。

日识新语学投资:信托

翻译来自 InvestorWords.com 的 Term of the day(2012/11/27)

Fiduciary

An individual, corporation or association holding assets for another party,
often with the legal authority and duty to make decisions regarding financial matters on behalf of the other party.

信托

一个个人、公司 或者 协会 代另一方持有资产,
经常还附带着 代表另一方处理财务事项决策 的法律权威和责任。

日识新语学投资:财政悬崖

翻译来自 InvestorWords.com 的 Term of the day(2012/11/29)

Fiscal Cliff

The name given to the series of tax and spending cuts that will expire on December 31, 2012.
Laws set to end include last year’s temporary payroll tax breaks,
the Bush tax cuts from 2001 and 2003, and specific tax cuts relating to businesses.
Also, certain taxes associated with President Obama’s health care reform and other spending cuts will go into effect.
While the fiscal cliff would greatly reduce the budget deficit,
it could very well push the United States back into recession.

财政悬崖(美国)

将于2012年12月31日到期的(美国)一系列税收和预算缩减案的别名。
将要到期的法案包括去年的临时工资税(个税)减免法案,2001年和2003年布什减税法案,以及商业特别减税法案。
同时,与奥巴马总统的医疗保险改革和其他预算缩减案相关的某些税收法案也将生效。
虽然财政悬崖将极大的减少(美国政府的)财政赤字,但它很有可能将美国推入经济衰退的境地。

日识新语学投资:一般公认会计原则

翻译来自 InvestorWords.com 的 Term of the day(2012/11/26)

GAAP

Generally Accepted Accounting Principles.
A widely accepted set of rules, conventions, standards,and procedures for reporting financial information,
as established by the Financial Accounting Standards Board.

一般公认会计原则

一般公认会计原则。
一组被广泛公认的,用于报告财务信息的条例、惯例、标准和规程,
由“财务会计标准委员会”制定。

日识新语学投资:资本利得

翻译来自 InvestorWords.com 的 Term of the day(2012/11/21)

capital gain

The amount by which an asset’s selling price exceeds its initial purchase price.
A realized capital gain is an investment that has been sold at a profit.
An unrealized capital gain is an investment that hasn’t been sold yet but would result in a profit if sold.
Capital gain is often used to mean realized capital gain.
For most investments sold at a profit, including mutual funds, bonds, options, collectibles, homes, and businesses,
the IRS is owed money called capital gains tax. opposite of capital loss.

资本利得

资产出售价格超过购入价格的部分。
已实现的资本利得,是一项已经出售并获得了收益的投资。
未实现的资本利得,是一项尚未出售但只要出售就能获得收益的投资。
资本利得惯于用来表示已实现的资本利得。
对于大多数出售获利的投资,包括共同基金、债券、期权、收藏品、房产和商业,
应给予美国国税局的那部分钱叫做资本利得税。资本损失 的反义词。