Category Archives: 文摘转贴

他山之石,可以攻玉。

How to get Serial Number, Mac, or ANDROID ID of an Android Device(ZZ)

Hi, I think many of you thought which is best to retrieve from the Android Device, so that you can be sure the device will not trick you and the identifier you asked is unique and unchangeable. For example we … Continue reading

Posted in Android, Mobile, 技术为本, 文摘转贴 | Leave a comment

关于waitForCondition导致死锁的问题(zz)

waitForCondition 基本都出现在继承了类 GLSurfaceView 的情况下 , 出现死锁的位置一般是引用 egl.eglCreateWindowSurface(…) 或者 mEgl.eglSwapBuffers(…) 这两个方法的时候 . 避免出现 waitForCondition 的方法总结 : 在绘制线程中必须先合法的获取Surface 才能开始绘制内容,在SurfaceHolder.Callback.surfaceCreated() 和SurfaceHolder.Callback.surfaceDestroyed() 之间的状态为合法的,另外在Surface 类型为 SURFACE_TYPE_PUSH_BUFFERS 时候是不合法的.

Posted in Android, Mobile, 技术为本, 文摘转贴 | Leave a comment

Java Bitwise Shift Operators

The bitwise shift operators are : >> , << , >>> >> the SHIFT RIGHT operator << the SHIFT LEFT operator >>> the UNSIGNED SHIFT RIGHT operator

Posted in Java, 技术为本, 文摘转贴 | Leave a comment

iPhone应用程序推荐 (ZZ)

本文将为大家推荐一些笔者非常喜欢的iPhone应用程序。 注意,并不怎么包括游戏,因为笔者不太喜欢玩游戏,要玩也只玩小游戏。这也有些遗憾,毕竟iPhone最大的卖点就是丰富的游戏了。本文主要是推荐实用的 软件和系统工具。对新手应该帮助比较大,老鸟们也可以参考一下。推荐的不算是很全。而且本文也不提供下载链接与安装方法。请自己在Cydia、App Store或者网络上搜索。下面进入正文。

Posted in Mobile, iPhone, 文摘转贴 | Leave a comment

一个女留学生在美国的七年(转载)

Received a message from a friend this morning: – it has been 7 years since the flight from shanghai to RDU! so I replied: – Yeah, isn’t time flying? 2003年8月12日,到今天正好来美7周年。对我来说,5年感觉挺短,10年就觉得很长,数字7么,不长不短的,写点东西好像正好。

Posted in 五味人生, 文摘转贴 | Leave a comment

Linux文件查找命令find, xargs详述 (zz)

总结:zhy2111314 来自:LinuxSir.Org 整理:北南南北 摘要: 本文是find 命令的详细说明,可贵的是针对参数举了很多的实例,大量的例证,让初学者更为容易理解;本文是zhyfly兄贴在论坛中;我对本文进行了再次整理,为方便大家阅读;

Posted in linux应用, 技术为本, 文摘转贴 | Tagged , , , | 1 Comment

LINUX在CLI下批量处理照片(转贴)

YJ在ubuntu: 批量处理照片的问题里介绍了他找到的在Ubuntu下批量处理照片的方法。他讲的两种方法都是基于GUI的。我到不是反对GUI,不过就像Andrew Tanenbaum (大牛阿,MINIX的作者,一堆经典CS教材的作者)的在他的FAQ (推荐读一下,挺有意思) 里说到的一条: Do you like WYSIWYG systems? Definitely not. I can type faster than I can point. And my mother told me that pointing is impolite. 没错,type faster than point,所以很多时候CLI会比GUI更高效便捷一点。我这一贴就说说我发现或找到的用CLI批量处理图片的方法。 这里都假设使用ImageMagick里的工具,YJ说的那个用Nautilus Image Scripts,最终调用的还是ImageMagick,相当一部分Linux(甚至Win下)的图像相关的自由软件都选择了调用ImageMagick提供的命令。 好了,假设在CLI下,resize一张照片A.JPG,用convert: convert -resize … Continue reading

Posted in linux应用, 技术为本, 文摘转贴 | Tagged , | Leave a comment