Posts

Lightswitch: Stop Windows Service -

Lightswitch: Stop Windows Service - i have little desktop application built in lightswitch allows remote sales staff log , work client info locally on laptops client sites don't have internet/vpn access. such, each client application has local install of sql 2012 express. in command bar, have button labeled, "database backup" meant re-create .mdf file machine mapped network drive when office. works fine on test .mdf file isn't attached sql instance. problem when trying re-create .mdf file in production (with sql running), can't re-create since it's open in sql express. my question this: there reference can add together client allow me utilize system.serviceprocess.servicecontroller class? or best assembly utilize stop restart windows service? (stop service => re-create mdf file => restart service) first, want ensure understand topology. i'm assuming app configured silverlight desktop app deployed 2-tier environment app , ...

regex - htaccess - How to cut some text from url -

regex - htaccess - How to cut some text from url - i have simple question htaccess, can't solve it. part of links of website on google search has fragment of url , don't know how fragment appeared there? here examle: in google seach is: http://dobry-portal.pl/part1-/tranformers,main,film,0 real adres http://www.dobry-portal.pl/tranformers,main,film,0 sometimes adrress on google seach have more 1 part between slashes ex. http://dobry-portal.pl/part1-/part2-/part3-/tranformers,main,film,0 how can cutting of parts in htaccess redirect real adres http://www.dobry-portal.pl/tranformers,main,film,0 i've tried rewriterule (.)/part1-/(.) $1/$2 [l] but not work thanks help, adam this should remove "fake subdirectories" between slashes you: rewriterule ^.*/([^/,]*,.*) $1 [l,r=301] ^.*/ greedily matches path lastly forwards slash ([^/,]*,.*) captures grouping 1... [^/,]* characters not slashes or commas, ,.* comma , rest of ...

jquery - Javascript Send parameters from button to function -

jquery - Javascript Send parameters from button to function - $.getjson('/courthousemanagement/loadlawcourt/?cityid=' + id, function (result) { $('#justicecourttable').html(''); (var = 0; < result.length; i++) { var tablestring = '<tr>' + '<th>' + result[i].courtid + '</th>' + '<th><button type="button" class="btn btn-sm btn-primary" onclick="javascript:selectclaimant(' + result[i].courtid + ',\'' + result[i].name +');">update</button></th>'+ //problem here '<th><button type="button" class="btn btn-sm btn-primary" onclick="javascript:selectclaimant(' + result[i].courtid + ',\'' + result[i].name +');">delete</button></th>' //problem her...

c++ - performance.exe in opencv autoclose when finish -

c++ - performance.exe in opencv autoclose when finish - i'm new opencv,i have done haar-training , decent detection. however, when want check nail rate using performance.exe, run until finish , auto-close , cannot check nail rate, how solve this? thanks assuming, running performance on command prompt; go command line , run: c:\program files\opencv\bin> performance -data trainingsample.xml -info testingsample\testsample.txt -sf 1.2 -w 15 -h 20 > testresult.log you need place testingsample.txt in folder testingimages , if not set testingsample.txt testingimage performance programme execute not save , show result. > testresult.log used direct result of execution log file rather screen, can remove it. adjust opencv path. please post in details if see more problem. happy coding :) c++ opencv

javascript - WYSIHTML5 editor incorrecty parses text entered as HTML code -

javascript - WYSIHTML5 editor incorrecty parses text entered as HTML code - if seek paste html code in rich text editor mode parsed incorrectly e.g.: go here http://xing.github.io/wysihtml5/ and seek paste text: <a href="http://google.com"> the pasted text parsed , looks ugly, want see exacly entered javascript wysihtml5 bootstrap-wysihtml5

html - Display content after a full-screen background image,using CSS -

html - Display content after a full-screen background image,using CSS - i trying display content after(below image,as scroll down) full-screen background image.i have decided utilize css3 technique : body{ background: url('images/body-bg.jpg') no-repeat center center fixed; -moz-background-size: cover; -webkit-background-size: cover; -o-background-size: cover; background-size: cover; } here codepen : link what did in pen above : .content{ width:100%; background-color:#fff; position:absolute; top:100%; left:0; text-align: center; } here html : <html> <body> <header>my title</header> <div class="content">my content starts here</div> </body> </html> my question best way style content after(below image,as scroll down) background image ? use jquery var winh = $(window).height(); var winw = $(window).width(); $("body").css("background-size",winh ...

c# - unable to get correct ConnectionString from app.config -

c# - unable to get correct ConnectionString from app.config - let's have 2 folder > 1>original 2> copied. have copied total visual project folder1 folder2 , changed connectionstring path respect folder2. folder 1 > <?xml version="1.0" encoding="utf-8" ?> <configuration> <connectionstrings> <add name="mydata" connectionstring="data source=.\sqlexpress;attachdbfilename=e:\folder1\mydata.mdf;integrated security=true;user instance=true" /> </connectionstrings> </configuration> connection manager string connectionstring = configurationmanager.connectionstrings["mydata"].connectionstring; , after coping folder 2 chanaged path > <?xml version="1.0" encoding="utf-8" ?> <configuration> <connectionstrings> <add name="mydata" con...