Posts

java - Printing fields from another applet -

applet 1 a("www.domain.com/applet.jar"); applet 1 1 gets applet.jar website applet 2 starts ur server; now applet 2 how print fields of class applet 1 i know this: for (field f : getclass().getfields()) { system.out.println(f.getname()); } you need applet context (get calling getappletcontext() in applet) (see this answer). there, can call getapplets() enumeration of applets.

keyboard shortcuts - Emacs: how to swap ctrl and alt using configure file? -

before posting question, i've read so thread , have brief view on emacs wiki . however, guides above use system-wide keymapping or key binding software. emacs can configured, there way swap ctrl , alt key using ~/.emacs configure file? by default alt key not mapped emacs modifier. each os differently. will need os depended solution: on windows try use key binding functions of emacsw32 . on mac osx use built-in ns-command-modifier , ns-control-modifier , ns-option-modifier .

javascript - Modal bootstrap - keyboard ipad adds blank space under modal backdrop -

Image
i can't figure out causing problem. when scroll down modal window last input field , click on bring ipad keyboard works expected. but if don't scroll down (so bottom partially hidden because modal window bigger height of window) , click input field, result: i have googled many websites , possible fixes nothing seems work. able backdrop bottom when occured (just simple negative bottom) modal window still not behave properly. i use default bootstrap v3 modal. try adding: .modal-open { min-height: 100% !important; } to stylesheet.

java - WebDriver: input type=file - how to attach a file when filing the form -

i testing web application selenium, webdriver, jbehave, thucydides. when try choose file when filling form: webelementfacade wef = find(by.cssselector("#inputtypefileid")); wef.type("/data/file.txt"); i such exception: net.thucydides.core.webdriver.webdriverassertionerror: org.openqa.selenium.webdriverexception: element must user-editable in order clear it. i cannot find solution attaching files in jbehave tests. how should point file upload when testing web applications? kind regards, lukasz

cordova - Phonegap barcode scanner plugin -

i have used barcodescanner v 1.1.0 plugin application having problem scanning in device , not scanning fast need. can show me better plugin scans fast , scans without red-line can scan horizontally or vertically you can try using github. it's simple integrate (add plugin), scans fast , efficient. https://github.com/jonathannaguin/barcodescanner - red line, not sure how remove doesn't stop scanning barcode vertically or horizontally.

c# - Entity repsoitory/service pattern, where to put functionality that needs 2 or more services -

i have created generic repository entity types handles retrieving , adding , deleting data. each entity type has corresponding service class interacts generic repository handle data access. however many times need retrieve data based on more 1 service , never sure place code. example below code returns list of email addresses ("getemailtrackingaddressgroup" function) using 3 different service. have placed in "groupservice" go in "userservice" aswell. public class groupservice { irepository<group> grouprepository; public groupservice(irepository<group> grouprepository) { this.grouprepository = grouprepository; } public group getbyid(int id) { return grouprepository.getsingle(g => g.id == id); } public static list<string> getemailtrackingaddressesgroup(int instanceid, int groupid) { myentities entitycontext = new myentities(); usergroupservice usergroupse...

web services - Calling Soap webservice including WSS from javascript -

i wondering if there technical solution calling soap webservice using client authentication via certificates (xwss ; digital signatures on body, timestamp, binarysecuritytoken) javascript. means keystore should available , accessible, outgoing connection should allowed,... any library exists this? if needed browser extension used? thanks thoughts. cheers. there no such thing far know. chrome extensions limited in can do. the possible solution make extension requests web-services , call native messaging host xml digital signature verification in c++/c#/whatever. for extension need soap client in javascript. had write own implementation of soap client in javascript fulfill task there free libraries out there. see, example, this one .