Posts

coldfusion 10 - Mura 6 and jquery validations 1.13.1 - Invalid form gets submitted -

i using jquery 1.8.3 , jquery validation plugin 1.13.1 latest validation version. form looks this, <form method="post" class="contact-form" id="frmb5b976ffd59e885191da4d572f6f773a" action="?nocache=1#frmb5b976ffd59e885191da4d572f6f773a" novalidate="novalidate"><input type="hidden" value="true" name="useprotect"> <input type="hidden" value="0" class="cffp_mm" name="formfield1234567891" id="fp6939f8d3-f46a-c008-37330d6aa1b0bed2"> <input type="hidden" value="" class="cffp_kp" name="formfield1234567892" id="fp6939f8d4-fe37-ff6d-ad27dc356205a886"> <input type="hidden" value="39890522,19894825" name="formfield1234567893" id="fp6939f8d6-f82f-92b8-a4b0ba6a966190fa"> <label style="display:none">leave field empty <inp...

javascript - Function shows `undefined` in console -

this question has answer here: how return response asynchronous call? 24 answers my code: function geocodeaddress(address){ var geocoder = new google.maps.geocoder(); geocoder.geocode( { 'address':address }, function(results,status){ if(status===google.maps.geocoderstatus.ok){ var resultsobj = results[0].geometry; var resultslocationobj = resultsobj['location']; var lat = resultslocationobj['k']; var lon = resultslocationobj['d']; var coordinatesobj = { address : address, latitude : lat, longitude : lon }; return coordinatesobj; ...

r - Insert a comma to separate in paste function -

i want display vector this: (using paste function) ("label 1", "label 2", ..., "label 7") however, when use paste function paste("label", 1:7) it cames this: [1] "label 1" "label 2" "label 3" "label 4" "label 5" "label 6" "label 7" #without "comma" between characters. or, trying way paste("label", 1:7, ",") [1] "label 1 ," "label 2 ," "label 3 ," "label 4 ," "label 5 ," "label 6 ," [7] "label 7 ," # "comma" came inside quotation marks what missing in paste function? dput(paste("label", 1:7)) gives c("label 1", "label 2", "label 3", "label 4", "label 5", "label 6", "label 7")

alignment - IPython/Jupyter Align Widgets -

i've been woking jupyter widgets , i'm having problems alignment, example, have next widgets: from ipython.html import widgets wdg #two sliders s1 = wdg.intslider(min=0,max=100,value=25,description='xo') s2 = wdg.intslider(min=0,max=100,value=25,description='yo') #three float text c1 = wdg.boundedfloattext(min=0,max=100,value=5,description='c1 ') c2 = wdg.boundedfloattext(min=0,max=100,value=5,description='c2 ') c3 = wdg.boundedfloattext(min=0,max=100,value=5,description='c3 ') #two checkbox ch1 = wdg.checkbox(description='check me 1') ch2 = wdg.checkbox(description='check me 2') #containers con1 = wdg.hbox(children=[s1,s2]) con2 = wdg.hbox(children=[c1,c2,c3]) con3 = wdg.hbox(children=[ch1,ch2]) con5 = wdg.box(children=[con1,con2,con3]) in output of con5 , c1 , c2 , c3 no space between float boxes descriptions overlaped, how can center them, or @ least increase space between them? i confirmed '...

Docker Compose to CoreOS -

i'm learning docker, , have made nice , simple docker compose setup. 3 containers, own dockerfile setup. how go converting work on coreos can setup cluster later on? web: build: ./app ports: - "3030:3000" links: - "redis" newrelic: build: ./newrelic links: - "redis" redis: build: ./redis ports: - "6379:6379" volumes: - /data/redis:/data taken https://docs.docker.com/compose/install/ the thing /usr read only, /opt/bin writable , in path, so: sd-xx~ # mkdir /opt/ sd-xx~ # mkdir /opt/bin sd-xx~ # curl -l https://github.com/docker/compose/releases/download/1.3.3/docker-compose-`uname -s`-`uname -m` > /opt/bin/docker-compose % total % received % xferd average speed time time time current dload upload total spent left speed 100 403 0 403 0 0 1076 0 --:--:-- --:--:-- --:--:-- 1080 100 7990k 100 7990k 0 0...

sql server - How to create hierarchical table in SQL? -

Image
if there 3 managers , employees shown in photo, how design hierarchical in sql. i add managerid field not required. if field not set person 1 of highest managers else works employee person specific id.

c# - Requests POI from a location using Xamarin (Android) -

im trying create android app xamarin.i want user able input address/location , receive poi (points of interest) near (within radius). i know google places api can this, xamarin have built in capability this? can somehow interface google places api? or there don't know about? help! use httpwebrequest class create request google api, code snippet: private void button1_click(object sender, eventargs e) { httpwebrequest webrequest = webrequest.create(@"https://maps.googleapis.com/maps/api/place/search/json?location=-33.8670522,151.1957362&radius=7500&types=library&sensor=false&key=aizasyd3jfemzk1swfrfdgmfxn_zrgrsje7s8vg") httpwebrequest; webrequest.timeout = 20000; webrequest.method = "get"; webrequest.begingetresponse(new asynccallback(requestcompleted), webrequest); } private void requestcompleted(iasyncresult result) { var request = (httpwebrequest)result.asyncstate; var response = (httpwebresponse)request.endgetre...