Posts

Command Line to open ReadMe file when opening project in Visual Studio -

i want open readme.html file located in project/solution visual studio opened. there command line switch open readme.html file of project? for example, devenv myproj.csproj /f:readme.html note: want automate through program, not looking manual solution open visual studio , click on readme file :) please help! found it!!! i able open readme html file in browser window inside vs solution/project opened. below command: devenv.exe webapplication1.sln /command "navigate [filepath]\project_readme.html" fyi, visual studio has number of command line switches, 1 useful here " /command " switch. starts vs ide , executes command specified after /command switch. the commands in question not dos commands, visual studio commands can execute inside vs. here reference visual studio commands arguments . hope helps else too!

java - Swing start simulation from Swing interface and write from thread. How? -

the problem lost myself in code. first of all, project supposed simulate shop queue. now, made swing interface data. when simulate button pressed, want start simulation. trick i'm not sure how write in fields without creating new interface. my interface code (i left thought important): public class interfata extends jframe { public void updatetextfield(string name, int i) { switch(i){ case 0: this.txtfield8.settext(name); break; case 1: this.txtfield9.settext(name); break; case 2: this.txtfield10.settext(name); break; case 3: this.txtfield11.settext(name); break; case 4: this.txtfield12.settext(name); break; case 5: this.txtfield7.settext(name); break; default : this.txtfield7.settext(name); break; } } private interfata() { mybutton = new jbutton("simulate"); mybutton.addactionlistener(new actionlistener() { public void actionperformed(actionevent e) { magazin shop =...

Getting Errors when I tried to import Facebook SDK 4.0 for Android into Eclipse IDE -

i have downloaded , unzipped facebook latest sdk-4.0. have imported eclipse workspace but, there it's showing error in project packages. you haven't added additional information errors, facing. but, if have understood right, same problem, many other users facing too, include me. wrote short instruction, how have fixed in eclipse. can find here .

robotframework - How to write a variable into a file? -

i store ${username} value in output file: e.g. if ${username} equals 0401190926729000 , value stored in file. here proposal: *** settings *** library operatingsystem library string *** test cases *** write_variable_in_file ${username} = generate random string 1 abc log console ${username} run keyword if '${username}' == 'a' write_variable_in_file ${username} *** keywords *** write_variable_in_file [arguments] ${variable} create file ${execdir}/file_with_variable.txt ${variable}

html - Styling issue with Datalist formatted as Div Table -

Image
i creating datalist formatted table using divs formatting. problem header of table not lining rest of table. if remove headertemplate, lines properly. suggestions on how can fix this? my datalist aspx <asp:datalist id="table1" runat="server" repeatcolumns="1" cellspacing="1" repeatlayout="table"> <headertemplate> <div class="table"> <div class="heading"> <div class="cell"> <p>heading 1</p> </div> <div class="cell"> <p>heading 2</p> </div> <div class="cell"> <p>heading 3</p> </div> <div class="cell"> <p>heading 4</p> </div> <div class="cell"> <p>heading 5</p>...

java - Failed having default tenant to connect to a Multi-tenant application -

i want migrate existing single-tenant application multi-tenant application. first step create default tenant , connect application, code following: the model : @entity @multitenant(multitenanttype.table_per_tenant) @tenanttablediscriminator(type = schema, contextproperty = multitenant_property_default) @table(name = "utilisateur") public class user implements serializable { @sequencegenerator(name = "user_seq", sequencename = "user_seq", allocationsize = 1) @generatedvalue(strategy = generationtype.sequence, generator = "user_seq") @column(name = "id", nullable = false) private integer id; private string username; private string password; @manytomany @jointable(name = "user_roles", joincolumns = { @joincolumn(name = "user_userid")}, inversejoincolumns = { @joincolumn(name = "role_roleid")}) private lis...

When should one use the Javascript conditional operator? -

righto, have come across in lot of code have read , understand functional role of conditional operator in javascript; not understand when 1 should use it. i have read ecmascript specification 5.1 on it, doesn't me great deal in deciding when impliment it. for example, can quite see benefit of replacing code: if (istrue == true) { dosomething(); } else { dosomethingelse(); } with next: istrue ? dosomething() : dosomethingelse() where fall down when either code inside if... else... statement lengthy or conditional operator nested inside (an)other conditional operator(s). obvious candidate deciding when use version of conditional statement "does replacing conditional operator make code easier follow?". unfortunately rather inexperienced writing code , unsure of when , i'm biased understanding own code well, no matter how poorly written may be. can more experience me give me less subjective test when you use it, can attempt follow suit? related:...