- 博客(16)
- 资源 (14)
- 收藏
- 关注
原创 cmake学习记录
注意点1.cmake指令不区分大小写2.变量使用${} 方式取值,但是在if控制语句中直接使用变量名3.指令(参数1 参数2 ...),参数使用括号起,参数之间使用空格或者分号隔开CMAKE_SOURCE_DIR工程源代码所在根目录,主工程CMakeLists.txt所在目录CMAK_BINARY_DIR主工程编译发生的目录include加载和运行指定CMake文件/模块格式:include(<file|module> [OPTIONAL.
2022-04-01 15:19:57
882
原创 iOS APP升级开屏图片不更新显示的问题
近期开发程序新版本的时候 更改了 LaunchScreen.xib中的图片。但是发现在旧版本的基础上覆盖安装新版本,程序仍然使用的是旧版本的开屏图片。把旧版本删除,再重启设备,再安装新版本,新的开屏图片才能显示出来。于是我猜测是不是手机对开屏图片有缓存。经过一翻搜索,找到了原因和解决方案。如下:A StackOverflow answer by @jaga provides the
2016-04-22 16:52:48
1907
原创 UITableViewCell 自动计算高度遇到的一些诡异问题
最近在开发过程中,碰到UITableViewCell高度的自动计算的一些很诡异的问题,特此记录一下。1. 在storyboard中,在UITableView里设置一个UITableViewCell, 将它的高度设置成 UITableViewAutomaticDimension. 如果同时设置 estimatedRowHeight, 在iOS8 和 iOS9中这个单元格的高度都能正确地被计算。
2016-03-10 18:53:54
3956
转载 国产手机在mac os中无法被adb识别的解决方法(转)
一些国产手机插入mac os 系统中无法被识别,在命令行输入 system_profiler SPUSBDataType在, 然后将魅蓝note的vendor id 添加至 ~/.android/adb_usb.ini文件中,然后依次执行adb kill-server adb start-server即可进入adb shell。 上述中的vendor id也可以到mac os中
2015-07-03 18:44:20
802
1
转载 解决Android加载图片时内存溢出的问题【转】
尽量不要使用setImageBitmap或setImageResource或BitmapFactory.decodeResource来设置一张大图,因为这些函数在完成decode后,最终都是通过java层的createBitmap来完成的,需要消耗更多内存。 因此,改用先通过BitmapFactory.decodeStream方法,创建出一个bitmap,再将其设为ImageView的so
2015-06-18 15:16:16
418
原创 GWT运行Junit时遇到的问题
<br />错误提示:Unable to find 'com/mycompany/project/ImageViewer.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?<br /> <br />解决方法: <br /> <br /> <br />public String getModuleName() {<br /> return
2010-07-05 13:40:00
774
1
原创 java 中 Collection, List, Map, Set的总结
<br />转自:http://bluefishyong.itpub.net/post/24555/278791<br />1.Collection List Set Map 区别记忆<br />这些都代表了Java中的集合,这里主要从其元素是否有序,是否可重复来进行区别记忆,以便恰当地使用,当然还存在同步方面的差异,见上一篇相关文章。<br /> <br />有序否<br />允许元素重复否<br />Collection<br />否<br />是<br />List<br />是<br />是<b
2010-06-17 11:19:00
334
原创 Delegate and Interface Contravariant and Covariant Generic Type Arguments
Invariant Meaning that that generic type parameter cannot be changed. Contravariant Meaning that the generic type parameter can change from a class to aclass derived from it. In C#, you indi
2010-05-18 18:18:00
424
原创 Parameters
Passing Parameters by Reference to a Method From the CLR’s perspective, out and ref are identical—that is, the same IL is produced egardless of which keyword you use, and the metadata is a
2010-05-07 18:08:00
425
原创 Constants and fields
Constants 1. when defining a constant symbol, its value must be determined at compile time. It means that you can define a constant only for types that your compiler considers primitive ty
2010-04-28 14:59:00
318
原创 Read notes for core java: Objects and classes
Due the data types in java are all referrence type,we must follows as bellows: 1. not to write accessor methods that return referrences to mutable objects.2. always use clone when
2010-04-28 14:53:00
284
转载 Primitive, referrence and Value Type
BoxingThe mechanism converting value type to referrence type. Three step follows:1.The value type’s fields are copied to the newly allocated heap memory.Memory is allocated from the mana
2010-04-26 14:34:00
565
转载 Shared Assemblies and strongly named Assemblies
1. public key token is the last 8 bytes of public key which has been hashed. 2.The public key field in AssemblyDef metadata table stores the full public key. The public key filed in Assembly
2010-04-22 11:02:00
420
原创 How does CLR locate Assembly
1. check GAC (only for strong-named assemblies)2. Application base, which is the root location where the application is being executed. 3. Culture, which is the culture attribute of the assembly b
2010-04-21 17:47:00
411
转载 回车和换行的区别
回车 /r 本义是光标重新回到本行开头,r的英文return,控制字符可以写成CR,即Carriage Return换行 /n 本义是光标往下一行(不一定到下一行行首),n的英文newline,控制字符可以写成LF,即Line Feed在不同的操作系统这几个字符表现不同,比如在WIN系统下,这两个字符就是表现的本义,在UNIX类系统,换行/n就表现为光标下一行并回到行首,在MAC上,/r就表现为回
2007-12-08 16:48:00
379
原创 [转].NET开发人员十大必备下载工具
.NET开发人员十大必备下载工具出处:.NET Tools:Ten Must-Have Tools Every Developer Should Download Now本文讨论的工具如下: NUnit:编写单元测试的工具 NDoc:创建代码文档的工具 NAnt:生成解决方案的工具 CodeSmith:代码生成工具 FxCop:用于监视代码的——代码警察 Snippet
2007-11-22 23:23:00
454
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人