Posts

javascript - Google Map not centring on marker -

the following code finding memberid on page , rendering map , placing marker not centring map on marker. map ending centred in presumably default location (somalia). what doing wrong? function initialize() { var memberid = $('#member-section').data("member-id"); if (typeof memberid === "undefined") { memberid = 0; } var latitude = $('#member-section').data("latitude"); if (typeof latitude === "undefined") { latitude = 51.21921589999999; } var longitude = $('#member-section').data("longitude"); if (typeof longitude === "undefined") { longitude = 4.402881799999932; } var mapcentrelatlng; mapcentrelatlng = new google.maps.latlng(latitude, longitude); buildmap(memberid, mapcentrelatlng); } function buildmap(memberid, mapcentrelatlng) { google.maps.visualrefresh = true; var infowindow = null; var mapoptions = {...

Where is Keras 2 's channels? -

i once used keras 1 (maybe 1.0.5) multi-category classification. , input in cnn (n, 1, 24, 113) , 113 channel numbers, , kernel size (1, 5). code like: x_train = x_train.reshape((-1, 1, sliding_window_length, num_sensor_channels)) x_test = x_test.reshape((-1, 1, sliding_window_length, num_sensor_channels)) # network inputs = input(shape=(1, sliding_window_length, num_sensor_channels)) conv1 = elu()(convolution2d(num_filters, filter_size, 1, border_mode='valid', init='normal', activation='relu')(inputs)) conv2 = elu()(convolution2d(num_filters, filter_size, 1, border_mode='valid', init='normal', activation='relu')(conv1)) conv3 = elu()(convolution2d(num_filters, filter_size, 1, border_mode='valid', init='normal', activation='relu')(conv2)) conv4 = elu()(convolution2d(num_filters, filter_size, 1, border_mode='valid', init='normal', activation='relu')(conv3)) reshape1 = reshape((8, num_f...

php - safari browser not displaying img src tag images -

my website working fine on chrome , firefox safari not showing normal images, showing background-images. here link of website - http://urcoach.staging.wpengine.com/ normal img src=""/> tag images not showing need help. in html:not(.mobile-true) #bottom-bar img, html:not(.mobile-true) #header img, html:not(.mobile-true) #main img:not(.animate-element,.ls-s-1) class: opacity set 0;

python - Tkinter: set method does not work in a function for toplevel window -

for reason, var.set(str) not update var when toplevel window created function. code below works when placed in mainloop (without function), though. when adding mainloop function works intended. intended behaviour? from tkinter import * tkinter import ttk root = tk() def function(): mainframe = ttk.frame(root) mainframe.grid(column =1, row =1) configurewindow = toplevel(mainframe) pathinfocontent = stringvar() graphpathframe = ttk.frame(root) graphpathframe.grid(column = 1, row =1) graphpathlabel = ttk.label(graphpathframe, text = 'graphviz installation path:') graphpathlabel.grid(column = 1, row =1) graphpathlabel3 = ttk.label(graphpathframe, textvariable = pathinfocontent) graphpathlabel3.grid(column = 2, row =1) pathinfocontent.set('something') function() mainloop()

user interface - Update GUI components after loading settings JAVA -

i have application gui sliders , comboboxes mainly. use sliders , combos change values , parameters in various classes in project. i'm trying implement possibility save , load parameters , have done using preferences api. can save , load parameters, when load them can see changes in values, works, gui not update reflect new values. there way tell gui so? for instance have frequency slider changes frequency value in oscillator. if change value slider, save it, change value of slider again , load saved value, can hear has changed slider didn't move.(makes sense haven't told too). can bind position of slider frequency value somehow? gui //osc1 slider jslider osc1freqslider = new jslider(swingconstants.horizontal, min_osc_freq, max_osc_freq, note_a_freq); osc1freqslider.setopaque(false); osc1freqslider.setmajortickspacing(50000); osc1freqslider.setminortickspacing(50); osc1freqslider.addchangelistener(new changelistener() { public void sta...

ascii - Printing characters to LCD - Verilog HDL -

i have question regarding printing character lcd screen. i using altera de1-soc 5csema5f31c6n , lt24 terasic lcd. i have question regarding printing letters in row on lcd. i relying on x , y counter raster across screen, starting @ (0,0) upper left corner of screen. incrementing x way end of row, , once reached end, reset x 0, increment y , continue counting x again until end of screen lcd pixels i creating arrays print character values (8x8 px) the long array concatenates 'each row of pixels' characters, , whilst counter rastered across screen pixels each character print lcd. eg. row0 - print first row of pixels characters. row1 - print second row of pixels characters. however, when try print 2 characters, order of characters being printed reversed [from origin (0,0)] e.g. if want print 'i' 'm'. 'm' , 'i' in order. when try print 3 characters, no characters show @ all! i struggling understand why case, counter values u...

php - <sup> and <sub> tags displaying in Webpage -

i working on project hosts online exams students, , few chemistry questions when trying display subscripts , superscripts formulas , displaying tags in webpage follows, using codeigniter framework this. //get exam question details including subjects (subjects quiz/exam) $quizrecords = $this->base_model->run_query( "select q.*,qq.*,s.subjectid,s.name subjectname " .$this->db->dbprefix('quiz')." q, ".$this->db->dbprefix('quizquestions') ." qq, ".$this->db->dbprefix('subjects')." s qq.quizid=q.quizid , qq.subjectid=s.subjectid , q.quizid=".$id ); $questarray = array(); foreach ($quizrecords $r) { $subjectwisequestions = $this->base_model->run_query( "select * ".$this->db->dbprefix('questions') ." subjectid=".$r->subjectid." , difficultylevel='" .$r->difficultylevel....