首页 文章 精选 留言 我的

精选列表

搜索[设置],共10027篇文章
优秀的个人博客,低调大师

android——为View设置动画效果

导入jar包:nineoldandroids-2.4.0(开源动画库); 实例化View view; 创建动画集: 1 2 3 4 5 6 7 8 9 10 11 12 13 //1.创建动画集 AnimatorSetset= new AnimatorSet(); //2.添加动画 set.playTogether( ObjectAnimator.ofFloat(view, "scaleX" , 2 , 1 .5f, 1 ).setDuration( mDuration), ObjectAnimator.ofFloat(view, "scaleY" , 2 , 1 .5f, 1 ).setDuration( mDuration), ObjectAnimator.ofFloat(view, "alpha" , 0 , 1 ) .setDuration(mDuration* 3 / 2 ) ); //3.开启动画 set.start(); 本文转自wauoen51CTO博客,原文链接:http://blog.51cto.com/7183397/1604844 ,如需转载请自行联系原作者

优秀的个人博客,低调大师

android 设置默认启动network mode

network mode常见类型 WCDMA preferred : 0 GSM only : 1 WCDMA only : 2 GSM UMTS : 3 CDMA : 4 ... (参考RILConstants.java) 是透过AT+ERAT把mode的值丢给modem,让modem设定相应的mode。 假设是TDD手机。那么其network mode的值和WCDMA是相应的。 WCDMA preferred -- TD-SCDMA preferred WCDMA only -- TD-SCDMA only 这个network mode在第一次开机时会有一个參数来记录默认值,这个參数就是PREFERRED_NETOK_MODE,该參数定义在在RILConstants.java中。 在SettingProvider loading的时候,这个參数的值就写到Settings.Global.PREFERRED_NETWOK_MODE其中(參考SettingsProvider中的DatabasHelper.java)。然后在make default phone的时候就依据Settings.Global.PREFERRED_NETWOK_MODE取出来的值来使用。 注:由于network mode是End user能够通过操作setting菜单切换的,所以本FAQ仅仅是改动download完第一次开机的network mode默认值 AP端改动例如以下: 有了上述的描写叙述,设定默认的network mode比較简单,就是把PREFERRED_NETWORK_MODE的默认取值改动掉就可以。眼下PREFERRED_NETOK_MODE默认值是NETWORK_MODE_WCDMA_PREF。 比如默认设成GSM only: RILConstants.java 路径: alps/framework/base/telephony/java/com/android/internal/telephony/ Modem端改动例如以下: modem端改动preferred rat相应的nvram 是NVRAM_EF_RAC_PREFERENCE_LID 请帮忙依据须要改动相关default数组COMMON_NVRAM_EF_RAC_PREFERENCE_DEFAULT的IR preferred RAT(红色highlight部分): /* 4th byte is IR preferred RAT and MM preferred RAT */ // MM preferred RAT 0x00 : RAT_NONE 0x01 : RAT_GSM 0x02 : RAT_UMTS 0x00 + // IR preferred RAT 0x00 : RAT_NONE 0x10 : RAT_GSM 0x20 : RAT_UMTS 0x20 // 本文转自mfrbuaa博客园博客,原文链接:http://www.cnblogs.com/mfrbuaa/p/5038165.html,如需转载请自行联系原作者

优秀的个人博客,低调大师

ES 相似度算法设置(续)

Tuning BM25 One of the nice features of BM25 is that, unlike TF/IDF, it has two parameters that allow it to be tuned: k1 This parameter controls how quickly an increase in term frequency results in term-frequency saturation. The default value is 1.2. Lower values result in quicker saturation, and higher values in slower saturation. b This parameter controls how much effect field-length normalization should have.A value of 0.0disables normalization completely, and a value of 1.0normalizes fully. The default is 0.75. The practicalities of tuning BM25 are another matter. The default values fork1andbshould be suitable for most document collections, but the optimal values really depend on the collection. Finding good values for your collection is a matter of adjusting, checking, and adjusting again. The similarity algorithm can be set on a per-field basis.It’s just a matter of specifying the chosen algorithmin the field’s mapping: PUT /my_index { "mappings": { "doc": { "properties": { "title": { "type": "string", "similarity": "BM25" }, "body": { "type": "string", "similarity": "default" } } } } Thetitlefield uses BM25 similarity. Thebodyfield uses the default similarity (seeLucene’s Practical Scoring Function). Currently, it is not possible to change thesimilaritymapping for an existing field. You would need to reindex your data in order to do that. Configuring BM25 Configuring a similarity is muchlike configuring an analyzer. Custom similarities can be specified when creating an index. For instance: PUT /my_index { "settings": { "similarity": { "my_bm25": { "type": "BM25", "b": 0 } } }, "mappings": { "doc": { "properties": { "title": { "type": "string", "similarity": "my_bm25" }, "body": { "type": "string", "similarity": "BM25" } } } } } 参考:https://www.elastic.co/guide/en/elasticsearch/guide/current/changing-similarities.html 本文转自张昺华-sky博客园博客,原文链接:http://www.cnblogs.com/bonelee/p/6472828.html,如需转载请自行联系原作者

优秀的个人博客,低调大师

Android 中横竖屏的设置

将android:screenOrientation="portrait",转换横屏竖屏无效,始终显示竖屏。 <application android:allowBackup= "true" android:icon= "@drawable/ic_launcher" android:label= "@string/app_name" android:theme= "@style/AppTheme" > <activity android:screenOrientation= "portrait" android:name= "com.example.expandablelistdemo.ExpandableList3" android:label= "@string/app_name" > <intent-filter> <action android:name= "android.intent.action.MAIN" /> <category android:name= "android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> 本文转自Work Hard Work Smart博客园博客,原文链接:http://www.cnblogs.com/linlf03/archive/2013/03/28/2981074.html,如需转载请自行联系原作者

优秀的个人博客,低调大师

linux设置命令行启动

做spark,内存大的话运行很快,否则运行很慢,主节点用界面,其他用命令行,然后scp,或者ssh 去其他主机最访问 1, 关闭图形界面: [root@bogon ~]# init 3 // 关闭图形界面(XServer服务也会关闭) 2. 开启图形界面: [root@bogon ~]# init 5 或 这个需要root [root@bogon ~]# startx //进入第一个图形界面(如果有多个的话) 普通用户就行 3. 开机时,默认不进入 X Window: [root@bogon ~]# vim/etc/inittab 找到 id:5:initdefault: 改成id:3:initdefault: 重启就ok了

资源下载

更多资源
Mario

Mario

马里奥是站在游戏界顶峰的超人气多面角色。马里奥靠吃蘑菇成长,特征是大鼻子、头戴帽子、身穿背带裤,还留着胡子。与他的双胞胎兄弟路易基一起,长年担任任天堂的招牌角色。

腾讯云软件源

腾讯云软件源

为解决软件依赖安装时官方源访问速度慢的问题,腾讯云为一些软件搭建了缓存服务。您可以通过使用腾讯云软件源站来提升依赖包的安装速度。为了方便用户自由搭建服务架构,目前腾讯云软件源站支持公网访问和内网访问。

Spring

Spring

Spring框架(Spring Framework)是由Rod Johnson于2002年提出的开源Java企业级应用框架,旨在通过使用JavaBean替代传统EJB实现方式降低企业级编程开发的复杂性。该框架基于简单性、可测试性和松耦合性设计理念,提供核心容器、应用上下文、数据访问集成等模块,支持整合Hibernate、Struts等第三方框架,其适用范围不仅限于服务器端开发,绝大多数Java应用均可从中受益。

WebStorm

WebStorm

WebStorm 是jetbrains公司旗下一款JavaScript 开发工具。目前已经被广大中国JS开发者誉为“Web前端开发神器”、“最强大的HTML5编辑器”、“最智能的JavaScript IDE”等。与IntelliJ IDEA同源,继承了IntelliJ IDEA强大的JS部分的功能。

用户登录
用户注册