Category Archives: tech

A way to fix DD-WRT can not run on some Linksys EA2700 router

I have a Linksys EA2700 router, the original firmware functional very limited, I like to use this router as a wireless repeater and a giga switch for the computers near by it. So of course, DD-WRT is the best choice. … Continue reading

Posted in tech | Tagged , , , , | Leave a comment

How to Unpack/MOD/Repack A DD-WRT trx Firmware

DD-WRT firmware is packed as ‘.trx’. The purpose of document is to to show you how to MOD a DD-WRT package, without recompile it from source. All the tool need is a virtual-boxed ubuntu, DD-WRT svn source code, a hex … Continue reading

Posted in tech | Tagged , , , , , , | 1 Comment

Share:Wireless protocols showdown: Why not Wi-Fi?

Original link: https://blog.silvair.com/2015/10/01/wireless-protocols-showdown-3/   As promised, with this episode we’ll start reviewing each of the leading connectivity solutions one by one, sharing the lessons we’ve learned while exploring their capabilities and limitations. And what else could we start with but Wi-Fi, … Continue reading

Posted in tech | Tagged , , , , | Leave a comment

EPSON R270更换打印头 故障处理

最近由于R270一个颜色堵头严重,无法清理,并且由于清理过程中搞坏了打印头的墨针,只能报废了.淘宝买了一个打印头,更换过程发生两次错误,这两个错误现象在网上都无法找到相应的答案,所以解决以后决定还是放到这里. 墨车拆解的过程网上可以找到相应的教程以及视频,这里就不赘述. 安装碰到第一个问题是开机后几乎没有开始自检,立即出现换墨和进纸指示灯同时闪烁.EPSON的软件提示是可能有异物导致墨车无法正常运动,网上查询也基本上是这个结论.即使把打印头拆除,现象依旧.仔细排查后我认我是没有这个问题的,墨车活动基本正常.仔细观察后,发现在墨车皮带(虽然不是皮质的)上方,有一条几乎透明的,看起来像朔料带的东西,不知道是什么,似乎没有安装到位.用手电观察墨车背后(无法拆卸,背后指的是连接导轨的那一面),有一个T型槽,似乎正好能卡住这条透明的带子.于是尝试将透明条带设法卡入T型槽,居然自检就正常了.依然不知道这个T型槽有什么功能,估计是有传感器用于检测墨车位置.限于空间,难以拍照留念. 碰到的第二个问题,是测试页无法正常打印,打印的内容完全混乱,看起来像所有的喷头颜色同时不受控的喷墨,见下图: 连续拆解多次,依然如故.同样的状况,在网上无法搜索出结果,甚至似乎没有人碰到过.还有一个现象是当墨车到达导轨中央的时候,有明显的电流滋滋声,这个正常情况下肯定是没有的. 联系卖家,建议是拆下打印头,用电吹风干燥打印头的两个数据接口,排除电路短路问题.无奈中只好第四次拆下打印头,这个时候我已经是个超级熟练工了,拆装打印头早都不需要拆开打印机的机壳了.拿出打印头的瞬间才发现,打印头的两个数据线接口我只插了比较宽的那个,还有个窄的,贴合在墨车底部,我一直以为是直接就连接在墨车上的,没有接过.接上两个数据线后,测试页立即正常了,答应了几张照片,效果基本满意.打印头测试还是有几根断线,不过看起来影响不大,希望到后面能慢慢改善吧,清洗打印头现在也不是什么摸不着头脑的操作了. EPSON打印机的废墨槽设计看起来有很大的问题,这些天拆解打印机的过程中,才发现打印机底壳装满了废墨,稍微倾斜打印机就流的到处都是,几乎用了一卷卫生纸才慢慢把里面的墨水吸干,又凉了几天.在搜索拆机视频的时候,无意中看到有个视频将打印机内部的废墨引流管直接导到机身外部(原来是将废墨导入一些吸废墨的类似无纺棉布的材料里,但是从拆机结果看废墨实际上喷的到处都是),也就仿照这个过程在机身右边打个孔,将导管直接引出,废墨就可以接到机身外的容器里面,预计不会再在底壳留下大量的墨汁.从现在的情况看,每次清洗打印头,都会大概都会浪费5ml左右的墨水,有时候开机也会做类似清洗的操作. 总体来看,喷墨打印机会是一个很过时的产品,墨水打印本身就是个问题,只不过现在没有更合适的廉价方案替代罢了.  

Posted in personal, tech | Tagged , , , , , , , | Leave a comment

How to setup a personal proxy server inside the GFW

How the cross the fucking wall? VPN might be the best choose in the old time. But things are always changing. VPN provider banned by China gov one by one, or under attack, they are not that stable and available … Continue reading

Posted in personal, tech | Tagged | Leave a comment

HP laptop slowdown with AC adapter

I had been experienced for a long long time that my HP probook laptop keep running terribly slow from time to time, that I can’t event open the menu of Firefox, any operation will eat most CPU time and idle … Continue reading

Posted in tech | Tagged , , , , , , , , , , | Leave a comment

如何使用C++调用WMI实例的方法

WMI接口对于C++来说十分不友好,包括文档,对于实例对象,通常可以通过WQL查询获得查询对象的实例, 比如: hr = pSvc->ExecQuery(bstr_t(“WQL”), bstr_t(“SELECT * FROM Win32_Service”),                    WBEM_FLAG_FORWARD_ONLY | WBEM_FLAG_RETURN_IMMEDIATELY,                    NULL,&pEnumerator); 可以获取系统服务对象的集合,通过pEnumerator可以获得所有服务的实例,通过实例通过Get方法获得属性是容易的,对应的sample在网上也很多.但是涉及到通过某个具体的实例调用class的方法,却没有什么sample.看起来微软故意隐藏了这个方面的实现细节.最近终于找到一篇文章描述如何透过WMI实例调用class方法,最根本的地方是要通过实例对象,获取instance class名字,作为IWbemServices::ExecMethod 的第一个参数strOjbectPath.以下代码片段是设置service start type的sample, 一看就明白 pSvc->ExecQuery(bstr_t(“WQL”), bstr_t(“SELECT * FROM Win32_Service”), WBEM_FLAG_FORWARD_ONLY | WBEM_FLAG_RETURN_IMMEDIATELY, NULL, &pEnumerator); while(pEnumerator) { pEnumerator->Next(WBEM_INFINITE, … Continue reading

Posted in tech | Tagged , , , , | Leave a comment