Posts

vb.net 2010 - how to get all the words that start with a letter in a datatable? -

i'm using visual studio 2010 in spanish. have this: private sub filter(byval letter char) dim arrayrows() datarow arrayrows = table.select("desc_ art '" + letter + "%'") end sub so when parameter "letter" "a" rows desc_art starts "a". problem when parameter "letter" "c" don´t words second letter "h". it's program thinks "ch" letter. how can words who's first letter "c"? the "letter" parameters declared char, have tried declaring string?

c++ - Find all linesegments=edges within a certain distance to a point in a graph, how to combine boost-graph with boost-geometry? -

i have set of user paths (2 dim) in game setup modelled set of lines (arcs) , waypoints = vertices. whole set of paths can seen graph edges line segments have additional properties length, probability, etc. now have identify set of (straight) line segments = edges within distance user's current position in order find user's position in graph. how implement possible without reinventing wheel? how implement search efficiently? i thought of using boost-graph handling graph , combine boost-geometry. e.g. see trajgraph uses bundled properties in boost-graph: struct tvertex { float x, y; //vertex=waypoint position }; struct tarc_segment { float len, curvature, prob; //line segment=edge properties }; typedef adjacency_list<vecs, vecs, directeds, tvertex, tarc_segment> trajgraph; now in order store line segment edge property 1 add boost geometry's model::linestring , use boost-geometry's nearest neighbour query find line segments. afaik boost-geome...

d3.js - CSS override isn't working (d3 object) -

i'm trying apply learned in css foundation course (codeschool) style d3 objects , far i'm not getting right. i have bunch of css classes style charts. have 2 types of charts, second type need override 1 color. main css (i didn't create myself) .horizon { border-bottom: solid 1px #000; overflow: hidden; position: relative; } .horizon { border-top: solid 1px #000; border-bottom: solid 1px #000; } .horizon + .horizon { border-top: none; } .horizon canvas { display: block; } .horizon .title, .horizon .value { bottom: 0; line-height: 30px; margin: 0 6px; position: absolute; text-shadow: 0 1px 0 rgba(255,255,255,.5); white-space: nowrap; } .horizon .title { left: 0; } .horizon .value { right: 0; } override css (for second type needed different color) (this used first file changing horizons horizon_small bad know.) .horizon .horizon_small { border-top: solid 1px #bdbdbd; border-bottom: solid 1px #bdbdbd; } applying here: d...

jquery - clear div float css property -

i using jquery ui dialog component dialog button aligned right. reason because of following property gets set automatically. .ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { float: right; } if clear float: right property, alignment looks fine. tried through firebug. how clear css property css file? override property. should work. .ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { float: none !important; } to avoid !important can try add css (your custom css file) after css of jquery ui. load order relevant.

JSON Result of a FHIR search -

in spec. documnent, http://www.hl7.org/implement/standards/fhir/query.htm#base the server returns results in http response bundle (in xml, atom feed) includes resources results of query in json, format required results ? it seems no json format defined atom feed. examples on servers on http://hl7connect.healthintersections.com.au/svc/fhir use straightforward conversion (xml -> json). confirmed ? imho, precision on expected format should explicitly defined. the json format bundles documented here: http://hl7.org/implement/standards/fhir/json.htm#json-bundles

php - Can't connect to localhost -

i learning php , working on script connects db , pulls data. the website have running on localhost php driven cms. a segment of script here define ('db_user','myname'); define ('db_password','somepass123'); define ('db_host','localhost'); define ('db_name','sitename'); // make db connection $dbc = @mysqli_connect('db_host','db_user','db_password','db_name') or die ('could not connect mysql: ' . mysqli_connect_error()); when load page draws on php receive following error output data meant be: could not connect mysql: unknown mysql server host 'db_host' (1) i did research on , googling around. suspect issue db_host defined elsewhere. plausible? i'm not experienced enough know if right path. i did find in config/database.php file, i'm not sure if it's relevant: $config['default'] = array( 'benchmark' => true, ...

Setting Viewport on Google Maps when sending several addresses -

i have code send several addresses google maps. however, since i'm doing a series of geocodings, how can make viewport @ least center , zoom correctly on group? function dobatchgeocodeandsearch() { $('#loading').css('visibility', 'visible'); var lines = $('#styled').val().split('\n'); for(var = 0;i < lines.length;i++){ geocoder.geocode( { 'address': lines[i]}, function(results, status) { if (status == google.maps.geocoderstatus.ok) { map.fitbounds(results[0].geometry.viewport); // map.setcenter(bounds.getcenter(), // map.getboundszoomlevel(bounds)); map.setcenter(results[0].geometry.location); remove map.setcenter call. last call map.fitbounds show markers, if there 1 marker, zoom in close though, may want handle specially. var bounds = new google.maps.latlngbounds(); for(var = 0;i < lines.length;i++){ geocoder.geocode( { 'address': lines[i]}, function(result...