目录

我的学习分享

记录精彩的程序人生

存档: 2019 年 06 月 (4)

Fix Your Timestep!

http://gafferongames.com/game-physics/fix-your-timestep/ Introduction Hello, I’m Glenn Fiedler and welcome to the second article in my series on Game Physics. In the previous article we discussed how to integrate the equations of motion using an RK4 integrator. Integration sounds complicated but really it’s just a way to advance the your physics simulation forward by some small amount of time called “delta time” (or dt for short). But how to choose this delta time value? This may ....

Android studio 下载依赖时出现Unable to resolve dependency for ':app@debug/compileClasspath'错误。

https://blog.csdn.net/csdnfengli/article/details/80695769 我在依赖自己公司提供的库的时候出现了unable to resolve dependency for app@……  问题,有可能是网络设置出现问题,我的问题是studio的.gradle文件夹下出现了gradle.properties文本 同事文件夹后发先其他人并没有,里面配置了我的studio的全局设置导致我的网络一直走的代理,所以一直访问不到自己的库。解决方法是 注释掉所有内容,然后再设置studio中的设置便能生效。

mybatis xml中使用in的sql长度超过1000的解决办法

https://blog.csdn.net/qq_34169240/article/details/81331246 —————————————————————————————————————————————————————— Java开发中会出现一种情况,就是使用mybatis 的in语句的时候,in语句里面的数组大小不能大于1000. 可以通过以下方法解决: 对于一个List ids 大小大于1000的list而言,使用getSumArrayList方法,获取List<List> 对象 List<List<String>> idParams = shareEpdService.getSumArrayList(idParam); Map<String, Object> mapNew = new HashMap<>(); mapNew.put("ids", idParams ); settlementCostMapper.submitDataByCondition(mapNew) 调用mybatis的方法,做如下处理: &l....

Libgdx and Android application Lifecycle

http://bitiotic.com/blog/2013/05/23/libgdx-and-android-application-lifecycle/ Libgdx and Android application Lifecycle After running into some weird bugs in my latest Libgdx game caused by misunderstanding the Libgdx lifecycle on Android, I spent some time trying to pin down exactly what can happen, why, and how to reliably reproduce different paths through the lifecycle graph. I have not worked with the GWT, iOS or Desktop backends to see if/how they differ from the Android lifecycle. Libgdx Ap....