Posts

How can you run Xamarin Android Player from Visual Studio 2015? -

Image
so have visual studio 2015 installed along xamarin , android sdk, etc... after being frustrated slowness of default avd(android virtual device) took advice xamarin android player. i went through installation process , can run virtual device instance cannot open visual studio such when compile android app's code opens in xamarin android player instead of slow default avd opening. see image below: i had same issue. did open xamarin android player , downloaded of devices , restarted vs 2015. came up.

javascript - Set custom store marker on storeLocator.Store in Google -

i'm trying set custom marker each of stores. using google storelocator , there storelocator.store .setmarker option. i tried lot var store = new storelocator.store(store_id, position, storefeatureset, storeprops); var markerpin = new google.maps.marker( icon: 'http://url-to-marker.png' }); store.setmarker(markerpin); i've been trying find on google there isn't out there on storelocator project. i managed find out git repository of store locator project . in repository there sample examples , files demonstrates placement of markers. if dig examples directory , check out file places.js . can find code of how places populate markers. adding small code snippet, detailed overview can see whole project. google.maps.event.adddomlistener(window, 'load', function() { var map = new google.maps.map(document.getelementbyid('map-canvas'), { center: new google.maps.latlng(-28, 135), zoom: 4, maptypeid: google.maps.maptypeid.ro...

rest - Golang: Json from URL as map -

what best way extract json url i.e. rest service go? seems rest client libraries in go force use of json.marshall needs struct used it. this doesn't work in case of unstructured data don't know coming in. there way have come in map[string:string]? why not parse map[string]string code have do var d map[string]interface{} data, err := json.unmarshal(apiresponse, &d) you can traverse data in struct too. if suspect, api response can not singular object, collection of objects, interface{} works arrays.

java - How to retrieve and display images from a database in a JSP page? -

how can retrieve , display images database in jsp page? let's see in steps should happen: jsp view technology supposed generate html output. to display image in html, need html <img> element. to let locate image, need specify src attribute. the src attribute needs point valid http:// url , not local disk file system path file:// never work when server , client run @ physically different machines. the image url needs have image identifier in either request path (e.g. http://example.com/context/images/foo.png ) or request parameter (e.g. http://example.com/context/images?id=1 ). in jsp/servlet world, can let servlet listen on url pattern /images/* , can execute java code on specific url's. images binary data , obtained either byte[] or inputstream db, jdbc api offers resultset#getbytes() , resultset#getbinarystream() this, , jpa api offers @lob this. in servlet can write byte[] or inputstream outputstream of response usual java io way...

html - Bootstrap carousel navigation controls too tall -

Image
i have bootstrap carousel left , right navigation control overflow @ bottom of carousel after bottom of image. any way rid of overflow of navigation arrows? <div id="carousel" class="carousel slide" data-ride="carousel"> <ol class="carousel-indicators"> <li data-target="#carousel" data-slide-to="0" class="active"></li> <li data-target="#carousel" data-slide-to="1"></li> </ol> <div class="carousel-inner" role="listbox"> <div class="item active"> <a href="/freshers2015"> <img src="/files/2015/06/journosoc-prefreshers-web.png" alt="first slide"/> </a> </div> <div class="item"> <img src="/files/2015/06/whatjourno.png" alt="second slide"/> </div> </div> <a class=...

ios - double Tap a UITableView -

i try open uialertview 2 textfield text cell selected. use code: -(void)tableview:(uitableview *)tableview didselectrowatindexpath:(nsindexpath *)indexpath { uitapgesturerecognizer *taprecognizer = [[uitapgesturerecognizer alloc] initwithtarget:self action:@selector(edit:)]; taprecognizer.numberoftapsrequired = 2; [self.view addgesturerecognizer:taprecognizer]; [taprecognizer requiregesturerecognizertofail:taprecognizer]; cardtableviewcell *cell = [tableview dequeuereusablecellwithidentifier:@"editcell" forindexpath:indexpath]; nsstring *cellfirsttext = cell.cellfirsttext.text; nsstring *cellsecondtext = cell.cellsecondtext.text; [[nsuserdefaults standarduserdefaults] setobject:cellfirsttext forkey:@"cellfirsttoedit"]; [[nsuserdefaults standarduserdefaults] setobject:cellsecondtext forkey:@"cellsecondtoedit"]; } -(void)edit: (uitapgesturerecognizer *)sender { uialertview *alert = [[uialertview alloc...

javascript - Truncating Y-Axis Title in Highcharts v4.1.5 -

i'm having issue charts smaller in height have long y-axis titles start clipping @ edges (top , bottom). jsfiddle demo i've tried using style option try , enforce ellipsis overflow. yaxis : { title: { text:"really long title text go off chart haha haha , on , on", style: { textoverflow:'ellipsis', overflow:'hidden' } } }, however, these sorts of things not work without maximum width of sort, tried adding width: '100%' (see demo) stops short. i'm guessing has fact it's rotated. is there way have title dynamically adjust height of chart , truncate rather slide off oblivion? i haven't found helpful in documentation . google-jitsu hasn't been able locate helpful or relevant topics. you should try using absolute width, not percent: width: $('#container')[0].clientheight*0.85, o...