ITeye博客

simplehappy的博客

simplehappy · 共 99 篇文章

Kotlin系列之let、with、run、apply、also函数的使用

https://blog.csdn.net/u013064109/article/details/78786646

2019-02-20 09:04 · kotlin · 评论(0)

Installation error: INSTALL_FAILED_UPDATE_INCOMPATIBLE

eclipse调试安装时报错: Installation error: INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package xxxxxxxxxxxxxxxxxxxxxxxx signatures do not match the previously installed version; ignoring! 原因签名不同了。 使用adb uninstall package

2017-04-05 22:27 · android · 评论(0)

grails-2.4.4 + java1.8.0_45 报错

grails-2.4.4 + java1.8.0_45 报错:Problems copying method. Incompatible JVM? 改用java1.7 OK groovy-grails-tool-suite-3.6.4.RELEASE-e4.4.2-win32

2017-03-16 14:15 · 评论(0)

windows load a DLL from memory

https://github.com/fancycode/MemoryModule https://github.com/fdiskyou/malware

2016-07-12 08:42 · 评论(0)

nodejs和java中的des/3des加密解密

http://mygo.iteye.com/blog/2018882

2016-07-07 12:34 · des 3des java nodejs · 评论(0)

vc++ capture exception

最简单的方法直接集成BugTrap: http://www.codeproject.com/Articles/14618/Catch-All-Bugs-with-BugTrap https://github.com/bchavez/BugTrap https://msdn.microsoft.com/en-us/library/windows/desktop/bb204633(v=vs.85).aspx http://www.codeproject.com/Articles/11132/Walking-the-callstack http://stackoverflow.com/questi…

2016-06-22 10:44 · 评论(0)

Interlocked Variable Access

Add , And , Or , Xor , BitTestAndComplement , BitTestAndReset , BitTestAndSet , CompareExchange , Exchange , ExchangeAdd , Increment , Decrement , https://msdn.microsoft.com/zh-cn/data/ms684122 https://msdn.microsoft.com/zh-cn/data/ms686360 http://blog.csdn.net/zhongguoren666/article/details/754297…

2016-06-13 10:48 · windows · 评论(0)

RxJava subscribeOn and observeOn

The SubscribeOn operator changes this behavior by specifying a different Scheduler on which the Observable should operate. The ObserveOn operator specifies a different Scheduler that the Observable will use to send notifications to its observers. The SubscribeOn operator designates which thread the…

2016-04-27 11:43 · RxJava Scheduler · 评论(0)

mesos + marathon + zookeeper in one vagrant

虚拟机使用 ubuntu/trusty64 镜像 vagrant init ubuntu/trusty64 vagrant up 启动后安装docker, 参见 https://docs.docker.com/engine/installation/linux/ubuntulinux/ # docker version Version: 1.10.3 拉取 mesoscloud 的docker image docker pull mesoscloud/mesos-master docker pull mesoscloud/mesos-slave docker pull mesoscloud/…

2016-04-20 11:55 · Docker · mesos · marathon · 评论(0)

java.security.NoSuchAlgorithmException: DES SecretKeyFactory not available

Eclipse Java EE IDE for Web Developers. Version: Juno Service Release 2 Build id: 20130225-0426 apache-tomcat-7.0.42 jdk1.6.0_38 调试一个web程序,SecretKeyFactory keyFactory = SecretKeyFactory.getInstance("DES");报异常 换成jdk1.6.0_27就OK了,这是怎么回事?

2016-04-15 12:42 · java · 评论(0)

cas自定义登录异常

cas版本4.0 定义异常类com.xxx.MyLoginException 在认证时根据实际情况抛出MyLoginException: public class MyDatabaseAuthenticationHandler extends AbstractJdbcUsernamePasswordAuthenticationHandler { /** {@inheritDoc} */ @Override protected final HandlerResult authenticateUsernamePasswordInternal(final UsernamePasswordCrede…

2016-03-23 11:18 · cas · 评论(0)

rust中的ownership, references-and-borrowing, ifetimes

We call the &T type a ‘reference’, and rather than owning the resource, it borrows ownership error: cannot borrow `v` as mutable more than once at a time [E0499] fn main() { let mut v = vec![1, 2, 3]; let v1 = &mut v; for i in &mut v { *i += 1; } } fn main() { let mut v = vec![1, 2, 3]; for i in &m…

2016-03-17 09:31 · rust · 评论(0)

android 当ListView滚动时自动调用 onCheckedChanged 导致CheckBox 状态不停变化

http://blog.sina.com.cn/s/blog_93bca7340102uzmq.html final CheckBox cb = (CheckBox)view.findViewById(R.id.checkBox1); cb.setOnCheckedChangeListener(null); cb.setChecked(mSelectedItems.getBoolean(id.toString(), false)); cb.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {....…

2016-02-24 09:53 · android · 评论(0)

Java Atomic Access

http://docs.oracle.com/javase/tutorial/essential/concurrency/atomic.html Reads and writes are atomic for reference variables and for most primitive variables (all types except long and double ). Reads and writes are atomic for all variables declared volatile ( including long and double variables).

2015-11-30 16:41 · java · 评论(0)

android ndk 找不到 getpwuid_r

需要android-21, 之前的版本有getpwuid

2015-08-20 09:25 · android · 评论(0)