Posts

tfs sdk - TFS API - how to make sure Workspace.OwnerIdentifier is not null? -

Image
i have following code var ws = vcs.getworkspace(wsname, vcs.authorizeduser); however, ws.owneridentifier null @ point. next value is: ws.update(new updateworkspaceparameters { computer = ws.computer }); and ws.owneridentifier no longer null. there must better way obtain ws.owneridentifier in scenario. ideas? our back-end tfs 2017. i can ws.owneridentifier value correctly nuget package microsoft.teamfoundationserver.extendedclient installed. tried version 15.xxx , 14.xx, both worked. you need specify wsname quotes: ( see versioncontrolserver.getworkspace method (string, string) ) var ws = vcs.getworkspace("wsname", vcs.authorizeduser); below sample reference: using system; using microsoft.teamfoundation.versioncontrol.client; using microsoft.teamfoundation.client; namespace _0912_getworkspaceidentifier { class program { static void main(string[] args) { string collection = @"http://server:8080/tfs...

How to Declare Modules in java 9 -

i want use java 9 modules in project. want put data , service classes (in package named com.test.base ) in 1 module named (base), , put other things main class , gui (in package named com.test.main ) in module named (main). how declare simple module (base)? how declare module (main) dependency of (base) module? i want use (base) module reflection. assume root package com.test directory structure should use these modules? the jigsaw quick-start nice place start off out. answer specific questions: how declare simple module (base)? create class named module-info.java within com.test.base directory definition as: module base { exports com.test.base; } this exports com.test.base package. how declare module (main) dependency of (base) module? same other module base class named module-info.java within com.test.main directory definition as: module main { requires com.test.base; } makes use of exported package. i want use (ba...

eclipse - how to treat file extension as C-file -

how force eclipse treat file-type c/c++ file it'll index them? my makefiles create .pp files pre-processor output , want view c/c++ files. you can define mapping .pp extension c++ source file file type in preferences | c/c++ | file types .

amazon web services - Athena Write Performance to AWS S3 -

so i'm executing query in aws athena , writing results s3. seems taking long time (way long in fact) file available when tell query execute lambda script. i'm scanning 70mb of data, , file returned 12mb. execute lambda script so: athena_client = boto3.client('athena') athena_client.start_query_execution( querystring=query_string, resultconfiguration={ 'outputlocation': 'location_on_s3', 'encryptionconfiguration': 'sse_s3', } ) if run query directly in athena takes 2.97 seconds run. looks file available after 2 minutes if run query lambda script. does know write performance of aws athena aws s3? know if normal. docs don't state how write occurs.

gcc -M how to print full path for dependencies -

my gcc command gcc <other-stuff> -c -md -o build/main.o main.c , outputs .p file make dependency rules. in .p file, files listed relative paths , absolute. how force output absolute paths files?

linux - MySQL how to recover data from an old disk? -

is possible can recover data mysql ubuntu server? needed change disk in server installed new ubuntu, in old disk still have files in /var/lib/mysql/ old databases are. possible recover database files? how it? copying database old disk /var/lib/mysql/ new server disk? work instantly or need create first empty databases in phpmyadmin? if data still here it´s promising recovery. 1/. need /var/lib/mysql directory sudo cp -r -p /var/lib/mysql /var/lib/mysql.back 2/. reinstall mysql (it erase mysql folder) sudo apt-get install mysql-server 3/. erase new data folder old one sudo cp -r -p /var/lib/mysql.bask /var/lib/mysql if you´re using same directories should work that.

r - Shiny renderPlotly with two conditions -

i developing app in shiny. want render plot using submit button. want print labels if user check inputcheckbox. able render plot via button. doesnt work when checkbox checked. here code: library(shiny) library(plotly) ui <- fluidpage( actionbutton('run', 'run'), checkboxinput('printlab', 'label', false), plotlyoutput("plot1") ) server = function(input, output) { output$plot1 <- renderplotly({ req(input$run) isolate({ ggplotly(ggplot(data = mtcars, aes(wt, hp)) + geom_point(size=1, colour = "grey")) }) req(input$printlab) isolate({ ggplotly(ggplot(data = mtcars, aes(wt, hp)) + geom_point(size=1, colour = "grey") + geom_text(aes(label=wt), size=3, colour = "black")) }) }) } runapp(shinyapp(ui, server)) i'm no shiny expert, req(input$printlab) doesn't right me. accomplish going for? server <- function(input, outp...