Posts

command - How do I get the appcmd? Windows 10 -

how appcmd write commands? using windows 10. getting error: 'appcmd' not recognized internal or external command, operable program or batch file. also, if have used command: appcmd delete site "default web site" if opposite - use add instead of delete ? thanks in advance! malin appcmd.exe located @ path %windir%\system32\inetsrv , default not listed in path variable. in order use command have navigate folder first , can update iis configuration using appcmd utility. by way appcmd.exe available administrator account or users members of administrators group on computer. and second question, yes opposite verb delete add . more information can found @ documentation: https://technet.microsoft.com/en-us/library/jj635852(v=ws.11).aspx#bkmk_start

angularjs - how to fix mobile portable devices elements are not working touch? -

i using bootstrap framework, angular js, node js develop application trying apply css on hover(on touch on mobile). not working in real device. how solve 1 me use :focus pseudo class well, on elements using :hover on. .class:hover, .class:focus { /* insert hover style rules here */ } this should give desired effect on mobile.

unix - How can I omit a specific comma from my output? -

i wanted format output using awk/sed, can't understand how it. using following command: uptime | awk '{print $1" " $2" " $3$4" " $6" " $10$11$12}' 15:36:17 177days, 7 0.39,0.43,0.36 my desired output 15:36:17 177days 7 0.39,0.43,0.36 i wanted omit first comma, i.e. 1 after "177days". use either sub (substitute comma empty string) or substr (make substring last character): uptime | awk '{sub(",","",$4); print $1" " $2" " $3$4" " $6" " $10$11$12}' uptime | awk '{print $1" " $2" " $3 substr($4,1,length($4)-1) " " $6" " $10$11$12}'

coffeescript - Coffescript show alert when clicking on element? -

i have code $ -> $('h1').click -> alert "i knew it!" init() what's wrong it?nothing happens. not sure probablt code formatted inproperly (what important in coffeescript). callback click event must nested (otherwise passed callback empty function) $ -> $('h1').click -> alert("i knew it!") init()

java - FileTransfer DWR and input file MULTIPLE. Uploading files -

my problem: use dwr3 (filetransfer) upload files jsp without problem, want use file in multiple mode, is: input type="file" multiple="multiple" name="... (html5) this avoid typical dialog searching files select more 1 file of client system. but, how catch them in server? i attempt without success: public string catchmultiplefiles(filetransfer[] files, httpservletrequest req) throws exception{ ...} public string catchmultiplefiles(arraylist<filetransfer> files, httpservletrequest req) throws exception{ ...} always older version catch 1 works perfectly, simply: public string catchonefile(filetransfer file, httpservletrequest req) throws exception{ ...} anyone have problem? thanks lot in advance.

NPGSQL CURSOR MOVE ALL getting affected rows (or row count) -

i trying "rows affected" count following query using npgsql: declare cursor scroll cursor select * public."table"; move in cursor; using pgadmin's sql editor, running query gives: "query returned successfully: 5736 rows affected, 31 msec execution time." using npgsql: var transaction = conn.begintransaction(); npgsqlcommand command = new npgsqlcommand("declare cursor scroll cursor select * public.\"partij\"; move in cursor", conn); var count = command.executenonquery(); // valided here cursor did move end of result -- cursor working. transaction.commit(); i expecting 5736, count equals -1. can same rows affected count pgadmin using npgsql? this happening because you're trying affected row count of multistatement command - first statement creates cursor, , second 1 moves (although i'm not sure "rows affected" mean when moving cursor, opposed fetching). try send statements in 2 different comman...

processing - Java, how to store multiple integers, separated by comma, into one variable -

in java, want setup variable can store multiple integers (rgb values) , integers separated comma. example, current code like background(255,255,0); // changes gui background color yellow. the code want is type yellow = (here goes yellow's rgb value 255,255,0) background(yellow); my question how setup variable yellow can replace actual rgb values. thank you. all answers got far somehow solve problem described. problem is: not helpful. never put information strings , rely on parsing them. if want that; not need overhead of statically compiled language java. better of using languages python, ruby ... allow handle "stringified" information easier. what want is: learn object orientation. so, want represent colors. model class represents color. somehow like: public class color { private final int r, g, b; public color(int r, ... { this.r = r and on. can write down color color yellow = new color(255,255,0) heck; start , declare constan...