box

Box.COM integration with an android app-OAuthActivity-Nullpointerexception?

為{幸葍}努か 提交于 2019-12-05 08:21:28
I am integrating BOX.COM with my android application.So I am using BoxAndroidLibraryV2 and BoxJavaLibraryV2 with my application. I could run the sample android application BoxSDKSample . So I copied necessary class and layouts from sample application.Now I am getting error message as follows. 07-23 15:51:02.230: E/AndroidRuntime(14857): Process: com.filenet.ecm, PID: 14857 07-23 15:51:02.230: E/AndroidRuntime(14857): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.filenet.ecm/com.box.boxandroidlibv2.activities.OAuthActivity} : java.lang.NullPointerException: Attempt to

win7环境下部署VirtualBox+Vagrant+CentOS,SSH登录问题

做~自己de王妃 提交于 2019-12-05 07:46:19
最近在空闲时间学习Go语言,参考谢大的 Go-in-Action 进行开发环境的配置,在Win7环境下部署Vagrant+CentOS虚拟环境, 按照步骤,安装配置完成,到vagrant ssh(利用SecureCRT5.0)的时候死活连接不上,百度+google还是没有解决,解压box直接启动里面的环境,ssh连接正常,但是使用vagrant配置信息127.0.0.1 2222 的时候就是连接不上,折腾了几天,还是不行。今天把CentOS利用vagrant命令销毁,移除box,重新添加,初始化,启动,连接,居然正常了,蛋疼的现象!!!原来链接不上的原因还是没找到,以后遇到了再好好研究研究吧 来源: oschina 链接: https://my.oschina.net/u/274333/blog/195590

九宫格图片制作

本秂侑毒 提交于 2019-12-05 05:03:08
1.原理及说明 九宫格图片就是将一张图片分成9份,再拼成一个完整的图片,如图: 原理:创建9个正方形容器,利用背景图定位,每个容器只显示其中的一部分,最终拼接成一张完整的图片 实现思路: (1)使用flex布局,让9个子元素以 3*3 的形式摆放 (2)因为图片有纵向和横向两种可能,所以要对图片的宽高比进行判断,以此来判断图片的方向,并根据图片的方向决定背景图定位信息。 (3)将图片的url放入文本框中,通过按钮点击事件将url对应的图片设置成容器的背景图 (4)使用FileReader()读取本地选中的图片时,会花费1-2s的时间,在此时间内显示一个蒙版遮罩,用来提示用户“加载中...” (5)为了美化按钮,使用了bootstrap 2.HTML代码 HTML代码分为3个部分: (1)操作区,包括文本输入框和按钮 (2)九宫格图片区,用于显示背景图 (3)蒙版遮罩 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <!-- 引入bootstrap -->

图片上传

半世苍凉 提交于 2019-12-05 04:22:24
略有瑕疵,凑合能用,先当个笔记了,以后有更好的再换。 css 1 <style> 2 /*外层div*/ 3 .input-file-box{ 4 border: 1px solid gray; 5 width: 5rem; 6 height: 5rem; 7 margin-left:.5rem; 8 position: relative; 9 text-align: center; 10 border-radius: 1rem; 11 } 12 /*文字描述*/ 13 .input-file-box > span{ 14 display: block; 15 width: 3rem; 16 height: 1rem; 17 position: absolute; 18 top: 1rem; 19 bottom: 0; 20 left: 1rem; 21 right: 0; 22 /* margin: auto; */ 23 color: gray; 24 } 25 /*input框*/ 26 .input-file-box #uploadfile{ 27 opacity: 0; 28 width: 5rem; 29 height: 5rem; 30 cursor: pointer; 31 } 32 33 .tu{ 34 /* background:yellow; */ 35 }

flex兼容性

不羁岁月 提交于 2019-12-05 02:27:52
原文 写在前面 flex布局早在2009年就有了,而现在是2015年6月8日,使用最新的flex语法会发现支持程度并不好,即使是在“高端”浏览器上也是如此,比如Chrome、Firefox、Safari、Android、IOS Safari下支持程度各不相同 网上现有的代码中充斥着各种版本,在Chrome下运行一般都没有问题,Firefox一般也还好,但Android与IOS Safari下就显得非常无力了。之所以会出现这样的局面,主要是历史原因,从2009年到2015年,期间W3C规范有了多次更新,浏览器支持程度也就有了差异 一.W3C各个版本的flex 2009 version 标志:display: box; or a property that is box-{*} (eg. box-pack) 2011 version 标志:display: flexbox; or the flex() function or flex-pack property 2012 version 标志:display: flex/inline-flex; and flex-{*} properties 2014 version 新增了对flex项z-index的规定 2015 W3C Editor’s Draft 没有大的改动 P.S.注意2015的是W3C Editor’s Draft

CSS3倒影效果

牧云@^-^@ 提交于 2019-12-04 17:48:36
比较简单的倒影效果 <pre> <div class="box-reflect"><img src="https://www.baidu.com/img/bd_logo1.png" alt="" height="200"/></div> .box-reflect { margin: 210px auto; width: 200px; } .box-reflect img { -wekbit-box-reflect: above; box-reflect: above; } </pre> 来源: https://www.cnblogs.com/newmiracle/p/11875983.html

jquery插件实现瀑布流

旧时模样 提交于 2019-12-04 16:11:25
jquery插件实现瀑布流 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <style> .container-fluid { padding: 20px; } .box { margin-bottom: 20px; float: left; width:400px; } .box img { width:100%; } </style> <body> <div id="masonry" class="container-fluid"> <div class="box"><img src="http://wxserver.knowway.cn/upload/yingjiatoupiao/chenliezhaopian/suoluetu/5840871504671934.jpg"></div> <div class="box"><img src="http://wxserver.knowway.cn/upload/yingjiatoupiao/chenliezhaopian/suoluetu/6829101504671934.jpg"></div> <div class="box"><img src="http://wxserver.knowway

Curl error 7 on vagrant using guzzle

一世执手 提交于 2019-12-04 15:02:57
I've get an Curl error 7: Failed to connect to site1.local port 8000: Connection refused , when i call it from another local site (site2.local). Both sites run on the same Vagrant box. When i replace the url to an url of an external site (eg. google.com), there is no problem in connecting. Why does vagrant refuse a call from his own? I searched the problem, but couldn't find any solution to this. Is there a way to call to another site on the same server using curl? edit: Vagrantfile: Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| Homestead.configure(config, YAML::load(File.read(path +

1.2 UiPath第一个案例Hello World!

最后都变了- 提交于 2019-12-04 08:27:40
1、弹出框Hello World image 在弹出的窗口中创建序列 image 在新建的序列中,在搜索框中输入“Message Box”,Studio自动搜索出结果。 image 选中“Message Box”,然后拖拽到界面带+号区域。 image 在文本框输入要弹出的提示信息,记得带引号。 image 输入提示信息以后,运行程序。 image 运行结果如下 image 文章来源: http://rpazj.com 作者:RPA之家 来源: https://www.cnblogs.com/rpa-/p/11848379.html

css之纯css实现流程导航效果

感情迁移 提交于 2019-12-04 07:52:52
:::tip 使用纯css线上 流程导航效果。 本文统一采取 flex 布局 ,你也可以采用其他布局实现,核心原理不变 ::: ## 方法一 利用裁剪 该方法IE下不支持 利用裁剪 clip-path: polygon(),直接画出一个三角 唯一一点需要算出大致百分比就可以画出来 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <style> .nav-box { display: flex; list-style: none; font-size: 14px; } .nav-box li { white-space: nowrap; color: #019fe9; background: #edf9ff; counter-increment: listCounter; clip-path: polygon(87% 0, 100% 50%, 87% 100%, 0 100%, 13% 50%, 0 0); line-height: 40px; padding: 0 25px; margin-right: -10px; } .nav-box li::before { content: counter(listCounter)