原来的Android项目中,鼠标移上系统api的函数什么的后会显示javadoc注释,很方便,后来换过一次sdk位置,结果发现系统api的注释都没了,其实只要修改一下项目属性中的Java Build Path中Libraries里对应SDK的jar的Javadoc location就可以了,更新路径后,这个属性没有对应修改。

如何修改Windows Mobile手机的Internet共享分配给PC端的IP地址段
今天在尝试修改双网卡的路由表时发现,WM的Internet共享分配给PC端的IP地址段居然是和内网网卡一样的192.168.0.*段,导致路由表修改起来容易造成混乱,想想这个PC端的IP应该是不能通过强制指定固定IP的方式设置的,于是寻找修改默认分配地址段的方法。
最后发现xda上提到的简单解决方案,无需修改注册表:
Settings -> Wifi -> Network Adapters -> Remote-NDIS Host
The default range is 192.168.0.0/24
I changed mine to 192.168.3.0/24 by keying IP address as 192.168.3.1 and 255.255.255.0 for netmask. the hermes will act as the DHCP server at address 192.168.3.1
就是修改设置中网络适配器部分的Remote-NDIS主机中的ip为指定值,虽然感觉这个方法有点莫名其妙,看似像是设置本机的ip地址的,但修改后试验了一下,确实是成功改变了ip地址!
Eclipse配合ADT为Android项目添加Proguard混淆的简单新方法
之前我曾经写过一篇如何为用ADT创建的Android项目添加Proguard混淆支持的文章(
为Eclipse ADT创建的android项目通过ant添加proguard混淆支持
),当时我就说过,相信随着Google Android的不断更新发展以及Eclipse ADT插件的不断改进,总有一天,做Android项目时能够和J2ME项目一样方便的一键打包混淆。现在新版的SDK和ADT就已经添加了这样的功能(SDK Tools中已经整合了Proguard的发行包,连这步配置都省了!),虽然还不是一键,但也就是小改一个配置文件的事,相对以前的手改ant xml build file的做法来说已经是极大的简化了添加混淆支持的难度了。
先说说我写这篇文章时用的开发环境:Eclipse 3.5.2+ADT 9.0.0+SDK Tools R9+SDK Platform-tools R2。
声明我不保证在其他版本的IDE ADT和SDK Tools下我的方法是否可行且不会产生问题!
The source file is different from when the module was built.
*******************************
Source file: D:\Projects\StereoMatch\stereomatcher.cpp
Module: D:\Projects\StereoMatch\Debug\StereoMatch.exe
Process: [4024] StereoMatch.exe
The source file is different from when the module was built. Would you like the debugger to use it anyway?
*******************************
***********************************
At StereoMatcher.cpp, line 166 (‘ComputeCorrespondence()’, line 128)
The breakpoint will not currently be hit. The source code is different from the original version.
关于stl vector调用erase后的Vector iterators incompatible!
出错代码如下(VS2010),使用vector迭代器遍历并对满足条件的元素进行删除,
vector::iterator it=m_vecDataUnits.begin();
for (;it!=m_vecDataUnits.end();)
{
if (it->m_bSelected)
{
m_vecDataUnits.erase(it);
}
else
it++;
}
正确方法如下,删除vector元素后的it应该使用erase返回的值
vector::iterator it=m_vecDataUnits.begin();
for (;it!=m_vecDataUnits.end();)
{
if (it->m_bSelected)
{
it = m_vecDataUnits.erase(it);
}
else
it++;
}
EMG主动拾音器tone电位器配电容的范围
在EMG User Forum上看到有人问道,记录官方回复:
by James K. on Tue Feb 17, 2009 3:34 pm
From our tech dept. — “0.033mf provides the most roll off, and the 0.22mf provides the least”
Hope that helped!
回来准备淘些电容换上试试看到底这个小东西对音色影响能有多大。

