收藏到CSDN网摘
准备找个Firefox扩展来实现保存整个网页为图片的功能,在StackOverflow上无意间看到一个帖子,原来Firefox内置就有这个功能.具体方法如下:
20 Nov 2015
17 Sept 2015
8 Jul 2015
6 Jul 2015
8 May 2015
28 Apr 2015
NX二次开发异常处理
收藏到CSDN网摘
NX的二次开发功能非常强大,提供有.Net,C/C++与Java版本的API供开发者调用.具体使用大同小异.不过就使用情况来看,C/C++版本的document有时候描述的功能/返回参数并不是很一致(或许是调用方法有误),这时就需要处理异常,免得程序停在那里,也不知道错误信息.NXOpen C++ API提供了NXException类来支持异常处理,在C/C++二次开发时,可以方便的打印出错误信息来调试程序.具体使用方法如下:
NX的二次开发功能非常强大,提供有.Net,C/C++与Java版本的API供开发者调用.具体使用大同小异.不过就使用情况来看,C/C++版本的document有时候描述的功能/返回参数并不是很一致(或许是调用方法有误),这时就需要处理异常,免得程序停在那里,也不知道错误信息.NXOpen C++ API提供了NXException类来支持异常处理,在C/C++二次开发时,可以方便的打印出错误信息来调试程序.具体使用方法如下:
30 Mar 2015
ICEM转换UG几何体再探
25 Mar 2015
Add Property to class dynamically in Python
收藏到CSDN网摘
开源社区有一个网友问了个问题,如何动态给类添加一个属性?这在c++中几乎是不可能的,据说.Net和Java这种支持反射机制的语言可以.在Python中,这(相对)非常容易实现,需要正确设置get和set函数就能为一个类动态添加一个属性.具体看代码:
开源社区有一个网友问了个问题,如何动态给类添加一个属性?这在c++中几乎是不可能的,据说.Net和Java这种支持反射机制的语言可以.在Python中,这(相对)非常容易实现,需要正确设置get和set函数就能为一个类动态添加一个属性.具体看代码:
10 Mar 2015
ROOT MOTO G running Lollipop
收藏到CSDN网摘
Just got back to 4.4.4 stock rom and then update through OTA to lollipop. There's a couple of improvements as well. The bad side is that I lost root on my device. Due to last imperfect rooting process, I am not going to do this again. Fortunately, I found this page and root my Moto G (Lollipop 5) successfully. This method seems work without any problem.
Just got back to 4.4.4 stock rom and then update through OTA to lollipop. There's a couple of improvements as well. The bad side is that I lost root on my device. Due to last imperfect rooting process, I am not going to do this again. Fortunately, I found this page and root my Moto G (Lollipop 5) successfully. This method seems work without any problem.
MOTO G flash back to stock rom
收藏到CSDN网摘
I got OTA for Lollipop 5.0 this morning. Unfortunately, it requires restart to install the updates. My moto g has this cannot-restart problem for long time since root. I have to use the "fastboot mode->normal start" technique to get it start properly. No luck at all, it stuck while it was restarting. Surprisingly, after using the old method, it would power-off again automatically. I assume the OTA may write something to the system to force the updates.
It seems that there's no other way to get the phone working. I HAVE TO flash the stock rom to make it right. Here we go!
I got OTA for Lollipop 5.0 this morning. Unfortunately, it requires restart to install the updates. My moto g has this cannot-restart problem for long time since root. I have to use the "fastboot mode->normal start" technique to get it start properly. No luck at all, it stuck while it was restarting. Surprisingly, after using the old method, it would power-off again automatically. I assume the OTA may write something to the system to force the updates.
It seems that there's no other way to get the phone working. I HAVE TO flash the stock rom to make it right. Here we go!
1 Jan 2015
Subscribe to:
Posts
(
Atom
)