Posts

cmd - Exit code "lost" from child process in Windows XP, not in Windows Server 2003 -

edit 3 ok, seems might not installer issue after all. when make simple batch file: exit /b 12 and call as cmd /c test.cmd echo %errorlevel% i "12" on windows server 2003 r2, "0" on xp. thought had tested simple test case many times before apparently not. so, i've changed tags , title i'm leaving other information here there's lot of useful stuff here not directly related issue. thoughts? original below i have custom action written in vbscript in turn calling windows batch file (the custom action allowing user execute @ install time can run later running batch file - it's convenience). function below: function mainfunction strcustomactiondata = session.property("customactiondata") strsplit = split(strcustomactiondata, ";") strinstalldir = strsplit(0) strpostcopyaction = strsplit(1) strscriptlocation = strinstalldir & "\migrationmasterprocess.cmd" strfullcommand = ...

css - Why do I need an empty `content` property on an ::after pseudo-element? -

this question has answer here: why :before , :after pseudo-elements require 'content' property? 4 answers i got http://jsfiddle.net/8p2wx/2/ previous question asked , see these lines: .cf:before, .cf:after { content:""; display:table; } .cf:after { clear:both; } if take away content:"" , ruins effect, , don't understand why it's necessary. why needed add empty content :after , :before pseudo-elements? you cannot style generated content without defining content should be. if don’t need content, “invisible element” style, can set empty string ( content: '' ) , style that. it’s easy confirm yourself: http://jsfiddle.net/mathias/yrm5v/ by way, snippet posted micro clearfix hack, explained here: http://nicolasgallagher.com/micro-clearfix-hack/ as second question, you’ll need an html5 shiv (...

Is it possible for format a Excel Table adding data with Markers with SyncFusion XlsIO ASP.NET? -

i have excel file (that use template) 2 rows. first 1 table headers, , second 1 data markers (eg. %customer.name). 2 rows setted table in excel. when applymarkers, example 2 data rows created, first 1 part of table (with correct table formatting). excel table isn't "refreshed" include data rows added. this able extrememl doing : table.fill(reportdata, datasetname); is possible, without post processing after applying markers? thanks in advance, ricardo this feature not supported. to accomplish same result have fill data first , range want make table do: sheet.listobjects.create("table1", datarange);

asp.net - Update a child table in Entity Framework -

i have 2 tables in db: "competitions" , "competitionanswers". each competition have 3 answers. want able edit competition , competitionanswers same view. have managed view work using editor templates so editor template: @modeltype golfbug.answer <div class="editor-label left"> answer:<br /> </div> <div class="editor-field right"> @html.hiddenfor(function(model) model.competitionid) @html.hiddenfor(function(model) model.competitionanswersid) @html.editorfor(function(model) model.competitionanswer) </div> <div class="clear"></div> and view @modeltype golfbug.competition @code viewdata("title") = "edit" end code <h2>edit</h2> <script src="@url.content("~/scripts/jquery.validate.min.js")" type="text/javascript"> </script> <script src="@url.content("~/scripts/jquery.validate.unobtrusive.mi...

ios - Mobile Safari Web App - clicks and gestures are rather unresponsive -

i have developed html5 web app ipad devices (mobile safari). seems me html buttons , click-events within app unresponsive compared buttons , gestures on native ios apps. has else noticed phenomenon? have words of wisdom on why happening, , how such buttons made more responsive? thanks. enabling css active pseudo styles in mobile safari makes clickable elements more responsive. , google has document: "creating fast buttons mobile web applications" says "touchend events fired no delay faster click events, there few problems consider:" didn't realize speed difference between click or tap events on ios. also performance depends on device, ios versions , prensentation type of web app (in safari, home-screen web-app, or in uiwebview) , affect responsiveness too. see performance charts @ http://thetechjournal.com/electronics/iphone/report-ios-5-browser-performance-test.xhtml

php - ms sql row_number() function - won't let me use within the same statement -

i have following sql statement: $sql = "select siteid, row_number() on (order siteid) rownum nwsite rownum >= 4"; "rownum" works when use name outside of query (e.g. in foreach loop) when comes using clause never works. any ideas? thanks because clause evaluated before window function row_number computed, can't include column in clause. you can structure query this: select siteid, rownum (select siteid, row_number() on (order siteid) rownum nwsite) nw rownum >= 4 in case inner query computed in entirety , passed outer query rownum column can acted upon.

R reshape data from long to wide and vice versa -

i wrote 2 wrapper functions cast , melt bring data long wide form , vice versa. however, still struggle function reshape_wide brings data long form wide form. here example functions plus code run it. created dummy data.frame in wide format reshape long format using reshape_long function , transform original wide form using reshape_wide function. however, reshaping fails reason cannot figure it. seems formula used in dcast wrong. reshape_long <- function(data, identifiers) { data_long <- melt(data, id.vars = identifiers, variable.name="name", value.name="value") data_long$value <- as.numeric(data_long$value) data_long <- data_long[!is.na(data_long$value), ] return(data_long) } reshape_wide <- function(data, identifiers, name) { if(is.null(identifiers)) { formula_wide <- as.formula(paste(paste(identifiers,collapse="+"), "series ~ ...