`
yi_17328214
  • 浏览: 207120 次
  • 性别: Icon_minigender_1
  • 来自: 大连
社区版块
存档分类
最新评论
文章列表
Spark 连接 Mongodb 官方地址:https://www.mongodb.com/products/spark-connector 使用时候遇到一个问题,就是通过MongodbConnector 连接 Mongodb 时候,如果mongodb 是有密码验证的,一直不能通过验证: 一直报错:not authorized on admin to execute command 引用[WARN ] 2018-03-07 09:53:42,445 com.mongodb.spark.rdd.partitioner.MongoSamplePartitioner - Could not get ...
android actionbar menu 显示icon默认不显示 上网查看很多通过反射修改的,通过实验也是不好用的,可能是我用的方法不对??? 在Stack Overflow  找到了更简单的方法,直接修改XML文件就可以实现 <menu xmlns:android="http://schemas.android.com/apk/res/android"       xmlns:app="http://schemas.android.com/apk/res-auto"       xmlns:tools="http://schem ...
android studio build 比较大的工程时,出现如下错误: * What went wrong: Execution failed for task ':pandabusDriver:dexDebug'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/bin/java'' f ...
1.先安装item2,item2 市类似mac风格的终端      item2 下载地址,​​http://iterm2.com/downloads.html,下载后解压缩就能运行 2.Install Homebrew      ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 3.使用brew 安装lrzsz     sudo brew install lrzsz     安装完成后检查 ls -alh /usr/local/bin/sz 是否 ...
在ListView的item中有GridView,抢占焦点的情况,解决办法步骤如下:             (1)  现在ListView的Item的最外面的LinearLayout中设置:、                         android:descendantFocusability="blacksDescendants"              (2)  再在gridview的getView()方法中设置:                         gridview.setClickable(false);                     ...
List<Sensor> sensors = this.sm.getSensorList(Sensor.TYPE_ALL); StringBuffer str = new StringBuffer(); str.append("该手机有" + sensors.size() + "个传感器,分别是:\n"); Sensor s; for (int i = 0; i < sensors.size(); i++) { s = sensors.get(i); switch (s.getType()) { cas ...
[proguard] Error: Can't read [/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/rt.jar] (No such file or directory) Similarly, you can also get the following error: [proguard] Error: Can't read [/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/jsse.jar] (No su ...
public class ActionSheet implements OnClickListener { private Context context; private LinearLayout layout; private View actionsheetView; private TextView title; private Button deleteButton, cancelButton; private ActionSheetButtonClickListener aslistener; /** * This creates a ActionSheet ...
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:id="@android:id/background" android:drawable="@drawable/mybg"/> <item android:id="@android:id/secondaryProgress"> <clip> <shape> <corners an ...
更新android adt 版本17之后,程序不能build了,说是找不到aapt,在更是时候发现多了一个build tools,在以前的platform-tools 里面真的没有找到aapt 这个文件,于是上网搜索了下,最终找到了解决方法: cd $ANDROID_HOME/platform-tools ln -s ../build-tools/17.0.0/aapt aapt ln -s ../build-tools/17.0.0/lib lib ln -s ../build-tools/17.0.0/aidl aidl 我用的是苹果系统,上面build-tools下面的文件夹名 ...
CSS hacks take advantage of browser bugs for hiding CssRules from specific web browsers. Listed below are the hacks for major browsers like ie6, ie7, firefox2, firefox3, Google chrome, safari and opera. Inline Hack for IE * (star) can be used as the inline hack for both ie6 and ie7. For Example: Sy ...
由于程序中使用地图,最终选择了高德地图。但是高德地图中需要使用一个so 的动态库文件,我的android 工程又是用maven, 找了很久才发现解决办法。 1.使用maven 命令 将高德的jar 包和so库文件安装到本地资源库中 mvn install:install-file -DgroupId=com.autonavi -DartifactId=libamapv3 -Dversion=v3 -Dfile=/Users/wangqingyi/Downloads/AMapSDKV2Demo/libs/armeabi/libamapv3.so -Dpackaging=so -Dgenerate ...
大家都知道,java 代码很容易被反编译,同样android 也是如此,android中引入了proguard 代码混淆。下面就说下怎么样在android中加入代码混淆。 Note:开发环境是Mac 系统。采用maven 开发 在pom 中加入: <pluginManagement> <plugins> <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven bu ...
<select id="min"> <s:set name="number" value="59" /> <s:bean name="org.apache.struts2.util.Counter" id="counter"> <s:param name="first" value="00" /> <s:param name=&quo ...
This example show you how to draw movable marker on to map. You can darg and drop the marker to change its position. Can be used in any application where u want to take input from user for map location. Algorithm: 1.) Create a new project by File-> New -> Android Project name it MapMarkerExampl ...
Global site tag (gtag.js) - Google Analytics