setting

Android SDK setting proxy with ubuntu

大兔子大兔子 提交于 2019-12-10 16:25:16
问题 Where can I find android SDK proxy setting? I am working with ubuntu, thanks in advance. All what I have is in below screen 回答1: I can only check this on my mac at the moment. The settings are stored in ~/.android/androidtool.cfg My settings currently look like: ### Settings for Android Tool #Thu Dec 08 12:22:00 GMT 2011 http.proxyPort=8080 http.proxyHost=127.0.0.1 sdkman.show.update.only=true sdkman.ask.adb.restart=false sdkman.force.http=false So try manually editing that file (assuming it

Sublime Text 菜单文件格式说明+修改心得(赵亮-碧海情天theforever)

ぐ巨炮叔叔 提交于 2019-12-10 14:02:10
作者 赵亮-碧海情天 imzl # live.com 前言 接触ST好一阵子,一直只是一般性地使用,和有时对菜单的CAPTION进行汉化。但随着安装的插件增多,有的下拉菜单已经太长了,势必需要对菜单进行重组了。按照菜单默认的内容进行观察,不难明白重组的方式。 在重组过程中,忽然想到,平时使用时好像有一些不太方便的地方,比如“编辑”菜单里面项目很多,而且那么多项目还都有子菜单,很多还都没有键盘加速键,只能依靠鼠标访问,效率较差。还有一些感觉不太合适的地方,比如“编辑”菜单中的“软换行”并没有改变文档的实际内容,只是改变一下显示方式,按意义来讲应该放在“视图”菜单里才对。 于是打定主意要对默认菜单进行大手术。这时就发现有些疑惑等待解决了,于是在网上查找,却都没有比较详尽的说明,在ST官方网站列出的官方和非官方的文档里面也都没有介绍——这方面的内容是空白页。 经过自己的一些摸索尝试,终于基本弄清了菜单文件的所有含义。修改的结果可以查看我这两篇文章里的介绍和图片: (附图)Sublime Text 3056 赵亮(碧海情天)汉化定制(双12)版 http://my.oschina.net/theforever/blog/185251 (附图)Sublime Text 3059 汉化增强版(赵亮-碧海情天) http://my.oschina.net/theforever/blog

MySQL query returns 0 rows when searching for value with dot (.) in string

为君一笑 提交于 2019-12-08 12:49:33
If I try to search for a value in mysql database and the string value contains dot in it, query returns 0 rows. Example: SELECT * FROM table WHERE `username`='marco.polo' --> 0 rows SELECT * FROM table WHERE `username` LIKE '%.polo%' --> 0 rows SELECT * FROM table WHERE `username` LIKE 'polo' --> Success This appeared after moving server and database to another place. I know that dot is a set of extended regular expressions, but it should not apply to equal nor LIKE operator, simply because I don't use REGEXP in query. I've tested the same query on my local database and it works fine. Could

MySQL query returns 0 rows when searching for value with dot (.) in string

萝らか妹 提交于 2019-12-08 06:17:21
问题 If I try to search for a value in mysql database and the string value contains dot in it, query returns 0 rows. Example: SELECT * FROM table WHERE `username`='marco.polo' --> 0 rows SELECT * FROM table WHERE `username` LIKE '%.polo%' --> 0 rows SELECT * FROM table WHERE `username` LIKE 'polo' --> Success This appeared after moving server and database to another place. I know that dot is a set of extended regular expressions, but it should not apply to equal nor LIKE operator, simply because I

bash 启动时候每次一条tips

若如初见. 提交于 2019-12-06 00:39:51
test -s ~/.alias && . ~/.alias || true echo "Did you know that:" ;whatis $(ls /bin | shuf -n 1) 把这段代码第二行添加到你的home目录下的 .bashrc 文件中,我自己使用的 opensuse13.1 还有,改变登陆之后指定使用bash 在/etc/passwd中修改最后的/bin/bash为你想要的bash就行了 yourname:x:1000:100:youremail@domain.com:/home/yourname:/bin/bash 来源: oschina 链接: https://my.oschina.net/u/736179/blog/215667

iOS开发之iOS程序偏好设置(Settings Bundle)的使用

不想你离开。 提交于 2019-12-05 13:16:23
在Android手机上, 在某个程序里,通过按Menu键,一般都会打开这个程序的设置,而在iOS里,系统提供了一个很好的保存程序设置的机制。就是使用 Settings Bundle。 在按了HOME键的情况下,在第一页的图标中找到设置,会看到程序的设置都在这里。那如何添加自己的程序的设置项呢? 1、添加设置项 默认情况下,新建的项目程序是没有设置项的。新建一个项目,命名为 SettingsBundleDemo,选择Single View App模版创建。项目创建完成,在项目里选择创建新文件, 选择Resource 中的Settings Bundle,创建。 再给程序添加一个icon。运行。按home键,打开设置,看到设置里多了一项,SettingsBundleDemo。这就为程序添加了一个设置。 2、设置的控件 默认的生成的设置项里有这个几个控件。 分别是: Group分组,文本框,Slider,开关控件几个控件。 设置想能使用的控件如下: 设置控件 类型 文本框 PSTextFieldSpecifier 文字 PSTitleValueSpecifier 开关控件 PSToggleSwitchSpecifier Slider PSSliderSpecifier Multivalue PSMultiValueSpecifier Group PSGroupSpecifier 子面板

changed wifi advanced option from code but it won't work?

孤者浪人 提交于 2019-12-04 19:34:02
I used this code to change wifi Ip setting (Ip Address and gateway) you can see the full code here : full class WifiConfiguration wifiConf = null; WifiManager manager = (WifiManager) getSystemService(MainActivity.WIFI_SERVICE); WifiInfo connectionInfo = manager.getConnectionInfo(); List<WifiConfiguration> configuredNetworks = manager .getConfiguredNetworks(); wifiConf = GetCurrentWifiConfiguration(manager); setIpAssignment("STATIC", wifiConf); setIpAddress(InetAddress.getByName("192.2.2.2"), 24, wifiConf); setGateway(InetAddress.getByName("192.2.2.22"), wifiConf); manager.updateNetwork

iOS: How to Get the Device Current Language Setting?

柔情痞子 提交于 2019-12-03 04:54:09
问题 There are some features within my application that are supposed to be based on the language settings of the device where it's running. I want to get the actual language and not some country settings. Foe example, if the language is English, I don't care if it's US, UK, Australia, etc... I'm familiar with the NSLocale object, but it seems to relate to the Region Format setting and not to the Language setting (see screen shot below) so when I try to retrieve the language out of it using [locale

iOS: How to Get the Device Current Language Setting?

夙愿已清 提交于 2019-12-02 19:16:55
There are some features within my application that are supposed to be based on the language settings of the device where it's running. I want to get the actual language and not some country settings. Foe example, if the language is English, I don't care if it's US, UK, Australia, etc... I'm familiar with the NSLocale object, but it seems to relate to the Region Format setting and not to the Language setting (see screen shot below) so when I try to retrieve the language out of it using [locale displayNameForKey:NSLocaleIdentifier value:[locale localeIdentifier] I get things like English (United

Wordpress plugin setting data

点点圈 提交于 2019-11-30 09:00:48
I want to know that where the plugins settings data saved in server? Means, when we change any plugin settings (e.g. For simple captcha, it is settings as-> use number, user alpha, captcha color etc), then in which file or database , these settings are saved. Sudar All settings of the Plugin will be saved in the db. Your Plugin can choose which table they wanted to store the setting into. Check the source code of your Plugin. If your Plugins uses get_options() , then it will stored in the wp_options table If your Plugins uses get_post_meta() , then it will be stored in the wp_postmeta table If