Posts

javascript - AJAX refreshing part of a page why is not working? -

i spent 2 days trying write allowed me upload file through ajax, close want do, can upload files through ajax, whole point of idea upload files without refreshing page, refreshing page , don´t know how solve it... current js $('#profilovka').validate({ submithandler: function (form) { var aformdata = new formdata(); aformdata.append("subor", $('#subor').get(0).files[0]); $.ajax({ type: "post", url: "upravit.php", processdata: false, contenttype: false, data: aformdata, success: function (data) { $('#nove').load(document.url + ' #nove'); } }) } }); and form <form class="profilovka" role="form" id="profilovka" method="post" enctype="multipart/form-data" > ...

sql - Data Agent - SELECT from one table and insert into another -

is there type of product can write sql statement select 1 table , insert database (the other database out in cloud). also, needs able check see if record exists , update row if has changed. need run every 10-30 minutes check see has changed or if new records have been added. the source database , ending database have different schema (if matters?) i've been looking, seams products out there ones copy 1 table , insert table same schema.

entity framework - Create a DbGeography Polygon from a collection of DbGeography Points -

can tell me how can create dbgeography object of type 'polygon' collection of dbgeography objects of type 'point' so far i've got creates polygon i'm missing how initial step. 1. dbgeography multipoint = dbgeography.multipointfromtext("multipoint(53.095124 -0.864716, 53.021255 -1.337128, 52.808019 -1.345367, 52.86153 -1.018524)", 4326) 2. dbgeometry temp_multipoint = dbgeometry.multipointfrombinary(multipoint.asbinary(), 4326) 3. dbgeography polygon = dbgeography.polygonfrombinary(temp_multipoint.convexhull.asbinary(), 4326); (result) the problem creating initial multipoint geography object list of dbgeography(points) create each point dbgeography object using wkt: dbgeography point1 = dbgeography.fromtext("point(53.095124 -0.864716)", 4326); dbgeography point2 = dbgeography.fromtext("point(53.021255 -1.337128)", 4326); dbgeography point3 = dbgeography.fromtext("point(52.808019 -1.345367)", 4326); .....

sql server - Combine Parent-Child Rows - TSQL -

li trying flatten/combine rows table parent-child hierarchy. i'm trying identify beginning , end of each 'link' - if a linked b , b linked c , , c linked d , want output link a d . i'm trying best avoid using procedure loops, advice appreciated! the original dataset , required output follows: personid | form | linkedform ---------|---------|--------- 1 | | b 1 | b | c 1 | c | d 1 | d | null 2 | e | f 2 | f | g 2 | g | null 2 | h | 2 | | null 3 | j | null 3 | k | l 3 | l | null desired output: personid | form | linkedform ---------|---------|--------- 1 | | d 2 | e | g 2 | h | 3 | j | null 3 | k | l each personid can have multiple links, , link can made of 1 or multiple forms. --...

php - Laravel 5.1 views not found and got error 404 on site navigation -

i'm trying write project framework. when upload site in shared host, got error 404 in of site links, except site home page. while site works fine in xampp. my code: html : <li> <a href="soon"> آرشیو مقاله </a> </li> <li> <a href="contact"> ارتباط با ما </a> </li> <li> <a href="about"> درباره ما </a> </li> routes.php : route::get('/', function () { return view('home'); }); route::get('/soon', 'navigationcontroller@soon'); route::get('/about', function () { return view::make('about'); }); route::get('/contact', function () { echo 'contact '; }); navigationcontroller.php : <?php namespace app\http\controllers; use illuminate\http\request; use a...

java - JLabels in a JScrollPane -

i have scrollpane in want add multiple jlabel . code.. jpanel paneleast = new jpanel(); paneleast.setborder(new titledborder(null, "notifiche", titledborder.leading, titledborder.top, null, null)); paneleast.setpreferredsize(new dimension(250,120)); paneleast.setlayout(null); jlabel lblnewlabel_3 = new jlabel("label1"); lblnewlabel_3.seticon(new imageicon(home.class.getresource("/it/polimi/icon/contact.png"))); lblnewlabel_3.setbounds(10, 81, 240, 52); paneleast.add(lblnewlabel_3); jlabel label_3 = new jlabel("label2"); label_3.seticon(new imageicon(home.class.getresource("/it/polimi/icon/verified.png"))); label_3.setbounds(new rectangle(4, 0, 0, 0)); label_3.setalignmenty(component.top_alignment); label_3.setbounds(10, 30, 240, 52); paneleast.add(label_3); jlabel label_4 = new jlabel("label3"); label_4.seticon(new imageicon(home.class.getresource("/it/p...

fuzzy logic - Takagi Sugeno system in R with frbs something wrong with rulebase -

i've been trying use r statistical software build takagi sugeno fuzzy system. using r package frbs i've managed set of components of fis following example in demo files. unfortunately, i've hit problem: error in rule[, (4 * i), drop = false] : subscript out of bounds in line: res <- predict(object, newdata)$predicted.val i have no idea wrong in script. rules should good, same use in matlab script , works. in documentation , examples in frbs library. #rm(list=ls()) library(frbs) varinp.mf <- matrix(c( 5, -1, 0.8493, na, na, 5, 1, 0.8493, na, na, 5, -1, 0.8493, na, na, 5, 1, 0.8493, na, na), nrow = 5, byrow = false) num.fvalinput <- matrix(c(2,2), nrow=1) x1 <- c("a1","a2") x2 <- c("b1","b2") names.varinput <- c(x1, x2) range.data <- matrix(c(-1.5,1.5, -1.5, 1.5, -1.5, 1.5), nrow=2) type.defuz <- "5" type.tnorm <- "min" type.sno...