2018-08-11 20:49:22.728 INFO 27619 --- [ main] c.a.eventbus.EventBusTestApplication : Started EventBusTestApplication in 1.476 seconds (JVM running for 1.848)
2018-08-11 20:49:24.724 INFO 27619 --- [pool-2-thread-1] com.acvrock.eventbus.ScheduledTasks : send msg - Sat Aug 11 20:49:24 CST 2018
2018-08-11 20:51:20.279 INFO 27674 --- [ main] c.a.eventbus.EventBusTestApplication : Started EventBusTestApplication in 1.062 seconds (JVM running for 1.442)
2018-08-11 20:51:22.271 INFO 27674 --- [pool-2-thread-1] com.acvrock.eventbus.ScheduledTasks : send msg - Sat Aug 11 20:51:22 CST 2018
Authentication realm: <https://192.168.1.251:8443> VisualSVN Server
Password for 'jinke.jiang':
Authentication realm: <https://192.168.1.251:8443> VisualSVN Server
Username: Use of uninitialized value in concatenation (.) or string at /Applications/SourceTree.app/Contents/Resources/git_local/lib/perl5/site_perl/Git/SVN/Prompt.pm line 20.
Password for '':
Authentication realm: <https://192.168.1.251:8443> VisualSVN Server
Username: Use of uninitialized value in concatenation (.) or string at /Applications/SourceTree.app/Contents/Resources/git_local/lib/perl5/site_perl/Git/SVN/Prompt.pm line 20.
Password for '':
Can't create session: Unable to connect to a repository at URL 'https://192.168.1.251:8443/svn/jinguanjia_ios': No more credentials or we tried too many times.
Authentication failed at /Applications/SourceTree.app/Contents/Resources/git_local/lib/perl5/site_perl/Git/SVN.pm line 143.
原因是在使用 git svn 时输入的密码也没有进行保存,解决方法:
打开 ~/.subversion/servers ,把最后的
store-passwords = no
store-ssl-client-cert-pp = no
store-plaintext-passwords = no
store-ssl-client-cert-pp-plaintext = no
Bar[] result = foos.stream().map(Bar::new).toArray(Bar[]::new);
Foo[] foos = x.toArray(new Foo[x.size()]);
int i = 0;
Bar[] bars = new Bar[fooCollection.size()];
for( Foo foo : fooCollection ) { // where fooCollection is Collection<Foo> bars[i++] = new Bar(foo);
}
Don't Live with Broken Windows
Be a Catalyst for Change
Remember the Big Picture
Make Quality a Requirements Issue
Invest Regularly in Your Knowledge Portfolio
每年至少学习一种新语言
每季度阅读一本技术书籍
也要阅读非技术书籍
上课
参加本地用户组织
实验不同的环境
跟上潮流
上网
Critically Analyze What You Read and Hear
WISDOM 离合诗
你想让他们学到什么?
他们对你讲的什么感兴趣?
他们有多富有经验?
他们想要什么细节?
你先要让谁拥有这些信息?
It's Both What You Say and the Way You Say It
DRY - Don't Repeat Yourself
重复是如何发生的
强加的重复
无意的重复
无耐性的重复
开发者之间的重复
把低级的知识放在代码中,把注释保留给其他的高级说明
Make it Easy to Reuse
Eliminate Effects Between Unrelated Things
There Are No Final Decisions
Use Tracer Bullets to Find the Target
用户能够及早看到能工作的东西
开发者构建里一个它们能在其中工作的结构
你有了一个集成平台
你有了可用于演示的东西
你见更能够感受到工作进度
语言的界限就是一个人的世界的界限
Program Close to the Problem domain
Estimate to Avoid Surprises
时长
报出估算的单位
1~15 天
天
3~8 周
周
8~30 周
月
30+ 周
在给出估算前努力思考一下
Iterate the Schedule with the Code
Keep Knowledge in Plain Text
Use the Power of Command Shells
Use a Single Editor Well
Always Use Source Code Control
Fix the Problem,Not the Blame
Don't Panic
"Select" Isn't Broken
Don't Assume it - Prove It
Learn a Text Manipulation Language
Write Code That Writes Code
You Can't Write Perfect Software
Design with Contracts
Crash Early
If it Can't Happen,Use Assertions to Ensure That it Won't
Use Exceptions for Exceptional Problems
Finish What You Start
Minimize Coupling Between Modules
Configure,Don't Integrate
Put Abstractions in Code,Details in Metadata
Analyze Workflow to Improve Concurrency
Design Using Services
Always Design for Concurrency
Separate Views from Models
Use Blackboards to Coordinate Workflow
Don't Program by Coincidence
怎样深思熟虑地编程
总是意识到你在做什么
不要盲目地编程
按照计划行事
依靠可靠的事物
为你的假定建立文档
不要只是测试你的代码,还要测试你的假定
为你的工作划分优先级
不要做历史的奴隶
Estimate the Order of Your Algorithms
Test Your Estimates
Refactor Early,Refactor Often
Design to Test
Test Your Software,or Your Users Will
Don't Use Wizard Code You Don't Understand
完美,不是在没有什么需要增加,而在没有什么需要去掉时达到的
Don't Gather Requirements - Dig for Them
Work with a User to Think Like a User
Abstractions Live Longer than Details
Use a Project Glossary
Don't Think Outside the Box - Find the Box
Listen to Nagging Doubts - Start When You're Ready
Some Things Are Better Done than Described
Don't Be a Slave to Format Methods
Expensive Tools Do Not Produce Better Designs
Organize Around Functionality,Not Job Functions
Test Early. Test Often. Test Automatically.
Coding Ain't Done Til All the Tests Run
Use Saboteurs to Test Your Testing
Find Bugs Once
Treat English as Just Another Programming Language
Build Documentation In,Don't Bolt It On
Gently Exceed Your Users' Expectaions
Sign Your Work
WARNING: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scheduledTaskService' defined in file [/Users/moon/spring/target/classes/taskscheduler/ScheduledTaskService.class]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.springframework.aop.support.AopUtils.selectInvocableMethod(Ljava/lang/reflect/Method;Ljava/lang/Class;)Ljava/lang/reflect/Method;
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scheduledTaskService' defined in file [/Users/moon/spring/target/classes/taskscheduler/ScheduledTaskService.class]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.springframework.aop.support.AopUtils.selectInvocableMethod(Ljava/lang/reflect/Method;Ljava/lang/Class;)Ljava/lang/reflect/Method;
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:751)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:861)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:541)
at org.springframework.context.annotation.AnnotationConfigApplicationContext.<init>(AnnotationConfigApplicationContext.java:84)
at taskscheduler.Main.main(Main.java:12)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
at org.springframework.scheduling.annotation.ScheduledAnnotationBeanPostProcessor.processScheduled(ScheduledAnnotationBeanPostProcessor.java:300)
at org.springframework.scheduling.annotation.ScheduledAnnotationBeanPostProcessor.postProcessAfterInitialization(ScheduledAnnotationBeanPostProcessor.java:283)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:422)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1588)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
This file is created by Marboohttp://marboo.io template file $MARBOO_HOME/.media/starts/default.md
本文件由 Marboohttp://marboo.io 模板文件 $MARBOO_HOME/.media/starts/default.md 创建
-->
还有来自[How to: Android – Spacing between CheckBox and text](http://sevennet.org/2014/12/21/how-to-android-spacing-between-checkbox-and-text/)的:
Answer: Android – Spacing between CheckBox and text
Given @DougW response, what I do to manage version is simpler, I add to my checkbox view:
android:paddingLeft="@dimen/padding_checkbox"
where the dimen is found in two values folders:
values
<resources> <dimen name="padding_checkbox">25dp</dimen> </resources>
values-v17 (4.2 JellyBean)
<resources> <dimen name="padding_checkbox">10dp</dimen> </resources>
I have a custom check, use the dps to your best choice.
最后使用[How to: Android – Spacing between CheckBox and text](http://sevennet.org/2014/12/21/how-to-android-spacing-between-checkbox-and-text/)的方法:
####在工程里建一个values-v17
![解决方案](/img/20150123_checkbox_theme_fix2_code.png)
在values-v17 建styles.xml,大于4.2的使用paddingLeft=12dip的配置:
![解决方案](/img/20150123_checkbox_theme_fix3_code.png)
在values的styles.xml中设置小于4.2的值 paddingLeft=25dip
![解决方案](/img/20150123_checkbox_theme_fix1_code.png)
解决。