Posts

mesos - apache marathon: my docker image keeps failing -

im following steps on here i've created json file such: { "id": "/myjavabuild-2", "cmd": null, "cpus": 1, "mem": 1024, "disk": 0, "instances": 1, "container": { "type": "docker", "volumes": [], "docker": { "image": "hub.docker.com/eugenepark3/myjavabuild", "network": "host", "privileged": false, "parameters": [], "forcepullimage": false } }, "portdefinitions": [ { "port": 10001, "protocol": "tcp", "labels": {} } ], "uris": [ "file:///etc/docker.tar.gz" ], "fetch": [ { "uri": "file:///etc/docker.tar.gz", "extract": true, "executable": false, ...

Add an android library to the default list of libraries in Studio/SDK -

Image
so first of all, clear doubts, know how add library android project. question here that, want add library list of default libraries in android studio. let me explain example. let's want add glide library project. firstly, have go glide github page , then, there copy compile 'com.github.bumptech.glide:glide:3.7.0' text , paste in in build.gradle file . android studio download library on internet. every time want use glide library in of project, have this. want , that, want include specific libary glide in default list of libraries available me so here, want include library project, can use it, in of projects. in advance, reading. there way add library every new project/module automatically. there folder templates in android studio directory. for: ..\android studio\plugins\android\lib\templates\gradle-projects\newandroidmodule\root in directory there file: build.gradle.tfl modify according needs. example: dependencies { <#if dependencylist...

Python 3.5: Web-scraping with Stripping html codes -

i scraping web content stuck problem. after series of processing strip scope want, cannot strip html code make plain text in list. have tried using function of replace, re.compile , join (try change list text stripping). doesn't work designed string or pops out errors when running. could give me hint how that. example, want output following code change from <p class="course-d-title">instructor</p> to instructor . import tkinter tk import re def test(): bs4 import beautifulsoup import urllib.request urllib.parse import urljoin '''for layer 0''' url_text = 'http://www.scs.cuhk.edu.hk/en/part-time/accounting-and-finance/accounting-and-finance/fundamental-accounting/162-610441-01' resp = urllib.request.urlopen(url_text) soup = beautifulsoup(resp, from_encoding=resp.info().get_param('charset')) = soup.find_all('p') k=0 item in a[:]: if 'instruc...

xml - Spring : java.lang.NoSuchMethodError: javax.persistence.Table.indexes()[Ljavax/persistence/Index; -

i'm developing spring my pom.xml <properties> <spring.version>4.0.2.release</spring.version> <hibernate.version>4.3.4.final</hibernate.version> <jdk.version>1.8</jdk.version> <version.servlet-api>3.0.1</version.servlet-api> <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir> <project.build.sourceencoding>utf-8</project.build.sourceencoding> </properties> <name>springdev</name> <dependencies> <dependency> <groupid>javax.servlet</groupid> <artifactid>servlet-api</artifactid> <version>2.5</version> <scope>compile</scope> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-web</artifactid> <version>${spring.version}</version> </depen...

python 2.7 - TypeError in Countvectorizer scikit-learn: Expected string or buffer -

i trying solve classification problem. when feed text countvectorizer gives error: expected string or buffer. is wrong dataset contains message mixture of number , word special character in message. sample how message following: 0 have not received gifts ordered ok 1 hth wells idyll mcgill kooky bbc.co 2 test test test 1 test 3 test 4 hello reward points 5 hi, can koovs coupons or vouchers here... here code used classification: import pandas pd sklearn.feature_extraction.text import countvectorizer df = pd.read_excel('training_data.xlsx') x_train = df.message print x_train.shape map_class_label = {'checkin':0, 'greeting':1,'more reward options':2,'noclass':3, 'other':4,'points':5, 'referral points':6,'snapbill':7, 'thanks':8...

docusignapi - Sender View Generated Lock -

we have following scenario: 1. user first accesses envelope through sender view generated api. 2. user accesses envelope through sender view again within short period of time. we receive following error: edit_lock_not_lock_owner is there way can release lock through api? if you're seeing " lockedbyapp ", believe you'll need wait lock expire ( lockeduntildatetime ) -- lock cannot deleted. for more detailed information, see answer here: how remove lock created 'sender view'?

Camel Spring cxf restful web service issue -

hi trying consume cxf spring based web service using camel. getting below error on server start severe: context initialization failed org.apache.camel.runtimecamelexception: org.apache.cxf.service.factory.serviceconstructionexception @ org.apache.camel.util.objecthelper.wrapruntimecamelexception(objecthelper.java:1680) @ org.apache.camel.spring.springcamelcontext.onapplicationevent(springcamelcontext.java:138) @ org.apache.camel.spring.camelcontextfactorybean.onapplicationevent(camelcontextfactorybean.java:340) @ org.springframework.context.event.simpleapplicationeventmulticaster.invokelistener(simpleapplicationeventmulticaster.java:163) @ org.springframework.context.event.simpleapplicationeventmulticaster.multicastevent(simpleapplicationeventmulticaster.java:136) @ org.springframework.context.support.abstractapplicationcontext.publishevent(abstractapplicationcontext.java:381) @ org.springframework.context.support.abstractapplicationcontext.publisheven...