Posts

visual studio - Web Forms Project Consuming Web Api 2 Project in debug mode -

in solution, creating new web api 2 project migrate services in web forms project. my question is: is there way (best way) use new web api project in web forms project when debugging? actually have start web api (without debbuging), after, able start web forms , use web api. unproductive. i have tried make works pre-build event, not know if did wrong. ps.: not need both projects running in debug mode.

javascript - Use RequireJS to include a class defined using ES6 syntax -

i have existing project (which run in browser, no server-side component) uses requirejs manage dependencies. way i'd been defining "classes" (including inheritance) this: define([ 'jquery', 'classes/someparentclass', ], function($, someparentclass){ function thisclass(data){ someparentclass.call(this, data); this.init = function(data){ //do stuff } this.init(data); } thisclass.prototype = object.create(someparentclass.prototype); thisclass.prototype.constructor = thisclass; return thisclass; }); and when wanted include in other class i'd use standard requirejs define/require syntax: define(['classes/thisclass'], function(thisclass){ var fooinstance = new thisclass(foodata); }); i wanted try hand @ "class" syntax in es6, set converting 1 of existing classes (i started "static" class simplicity). looks this: define([ 'jquer...

android - MediaStore.Images.Media.insertImage() error -

i have 2 devices same android version (4.4.2). problem when call method insertimage(getcontentresolver(),bitmap, "", ""), on 1 have error , other works planned e/mediastore: failed insert image java.io.filenotfoundexception: no entry content://media/external/images/media/3865 @ android.database.databaseutils.readexceptionwithfilenotfoundexceptionfromparcel(databaseutils.java:189) @ android.content.contentproviderproxy.openassetfile(contentprovidernative.java:646) @ android.content.contentresolver.openassetfiledescriptor(contentresolver.java:939) @ android.content.contentresolver.openoutputstream(contentresolver.java:686) @ android.content.contentresolver.openou...

Struts2 Bean Validation -

i setting stuts2 app using hibernate bean validation validate form fields on login page. have added necessary plugins , dependencies , configured struts.xml include custom stack calls beanvalidation interceptor. /logon path excluded authinterceptor . unfortunately, when form fields email , password populated, return message blank. can see in debugger email , password being set in loginaction class it's if beanvalidation doesn't have information. if switch order of interceptors have beanvalidation last, never called. <?xml version="1.0" encoding="utf-8"?> <!doctype struts public "-//apache software foundation//dtd struts configuration 2.0//en" "http://struts.apache.org/dtds/struts-2.0.dtd"> <struts> <constant name="struts.devmode" value="false" /> <constant name="struts.action.extension" value="," /> <constant name="struts.custom.i18n....

excel - VBA: Trying to consolidate all worksheets into one new worksheet in single workbook -

i trying copy worksheets, 1 @ time, , pasting new worksheet. these files come multiple third parties worksheets can vary. i'm running problem below when trying determine last row lrow , last column lcol because error appears saying object doesn't support property or method . plan on submitting work error proofing or general macro tips appreciated. sub ws_copy() dim lrow long dim lcol long dim pasterow long dim wscount integer dim integer 'on error resume next 'application.displayalerts = false = application.inputbox(prompt:="enter place order of first tab copied.", title:="worksheet consolidation", type:=1) if isempty(i) = true exit sub else if isnumeric(i) = false msgbox "enter numeric value." else if isnumeric(i) = true worksheets.add(before:=sheets(1)).name = "upload" wscount = worksheets.count = + 1 wscount lrow = worksheets(...

android - signed apk Parse error when parsing manifest -

when try install signed apk parse error (see logcat). when install apk signed default debug key okay. this logcat output: 08-28 17:12:47.267 23828-23828/com.android.packageinstaller w/packageinstaller: parse error when parsing manifest. discontinuing installation 08-28 17:12:47.267 23828-23828/com.android.packageinstaller w/packageparser: skipping dir: /mnt/shell/emulated/0/vertretungsplan-2.0.0.apk 08-28 17:12:47.287 23828-23828/com.android.packageinstaller d/dalvikvm: gc_for_alloc freed 1414k, 62% free 4110k/10772k, paused 16ms, total 16ms 08-28 17:12:47.287 23828-23828/com.android.packageinstaller i/dalvikvm-heap: grow heap (frag case) 5.708mb 1127536-byte allocation as says parse error when parsing manifest here manifest: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="de.mayerhofersimon.vertretungsplan" android:versioncode=...

java - how to parse some specific nodes of xml using sax or dom based on given condition -

i new jaxp , stuck have parse xml using either sax or dom. have ask user enter empoyee code , display other nodes of particular employee for ex :if user enters 101 show ename:akshay ecode:101 dp no.:10 mgr code=201 i tried alot no results,can help. <employees> <employee> <ename>akshay</ename> <ecode>101</ecode> <empsal>2100.0</empsal> <department_code>10</department_code> <manager_code>201</manager_code> </employee> <employee> <ename>rahul</ename> <ecode>102</ecode> <empsal>21000.0</empsal> <department_code>20</department_code> <manager_code>202</manager_code> </employee> </employees> the code tried parse xml public class parseusingdom { public static void main(string[] args) { try { documentbui...