Posts

c# - Iterating through a list of paths from a config file? -

i have console app few foreach loops iterate through paths , parses out email addresses csv files. however, need loop read config file instead of going through directory, call existing api endpoint each email address. have now: static void runtask(string[] args) { foreach (string folders in directory.enumeratedirectories("c:\\tests"))//looks @ every folder within main folder called tests --this needs read list of paths { foreach (string path in directory.enumeratefiles(folders, "*.csv"))//looks @ every file extension ".csv" in each folder { debug.write("\n" + path + "\n"); //writes out file names using (streamreader sr = new streamreader(path)) { string line; while ((line = sr.readline()) != null) { string[] ...

routing - 2 external IP address mapped to 1 internal -

is possible map same internal ip address 2 different external ip's on cisco firewall? in process of getting new circuit have them both mapped until ready cutover. with cisco firewall mean cisco asa guess. if so, never tried should possible static nat. asa version prior 8.3: (config)# static($internal_net, $public_net), $public_ip1 $private_ip netmask 255.255.255.255 (config)# static($internal_net, $public_net), $public_ip2 $private_ip netmask 255.255.255.255 with asa version 8.3 , later: (config)# object network $my_name1 (config-network-objct)# host $private_ip (config-network-objct)# nat($private_net, $public_net) static $public_ip1 (config)# object network $my_name2 (config-network-objct)# host $private_ip (config-network-objct)# nat($private_net, $public_net) static $public_ip2 then need proper acl of course.

javascript - large gap underneath floated columns? -

i have created typical 3 column layout. reason, middle column creating large , unwanted gap between top 3 , bottom three. there way make gap between of container same? jsfiddle * { margin: 0; padding: 0; box-sizing: border-box; } html, body { font-family: 'lato', sans-serif; } column-container { width: 100%; background: #eeeeee; } wrapper-container { width: 80%; margin: auto; } column-three { padding: 25px; } .container { background: #ffffff; border-radius: 2px; box-shadow: 0px 2px 1px 1px rgba(0,0,0,0.05); } .container h2 { padding: 25px; font-size: 18px; text-align: center; font-weight: bold; color: #22313f; } .container:hover h2 { color: #22313f; } .container .image { margin: auto; width: 150px; height: 150px; border-radius: 100%; background: #22313f; } .container .text { padding: 25px; font-weight: 400; line-height: 30px; } .buy-button { padding-left: 25px; paddi...

jquery - Prevent text from wrapping around input -

i have simple multi select drop down list i'm trying checkbox , label stay inline each other, without label text wrapping around checkbox. below code shows issue i'm having. in this fiddle tried wrapping checkbox , label each in own div , floating them, causes label break next line. $(document).ready(function() { var el = $(".msddl_selectitem"); el.find(".msddl_selectlisttoggle").on("click", function () { var container = $(this).parents(".msddl_selectitem"); var list = container.find("ul"); if (list.is(":visible")) { list.slideup("fast"); } else { list.slidedown("fast"); } }); }); body { background: #eee; } /*msddl*/ .msddlgroup { display: block; float: left; margin: 0 0 0 1.6%; width: 32.26%; } .msddlgroup:first-child { margin-left: 0; } @media screen , (max...

login - Java- Test for Word -

i using netbeans , code is private void passwordactionperformed(java.awt.event.actionevent evt) { // todo add handling code here: } how make java scan password, that, if wrong not work , if password correct works , performs action. you should have simple text/password input field awt, read input variable , compare if.

performance - Multiples INNER JOIN is too slow SQL SERVER -

i'm having performance problem. i created table receives data file, bulk insert . select multiple inner join s (11 inner joins) insert table right data. when run select , takes long (more hour) , stop it. solution break query 3, creating @temp tables. surprise, takes 3 minutes. that's i'm trying understand, why breaking query 3 faster 1 select statement. here query: select t1.returnint, t1.returnbit, t2.returnint, t3.returnint, t5.returnint, t1.returndatetime t1 inner join t2 on t2.my_column_varchar = t1.my_column_varchar inner join t3 on t3.my_column_number = t1.my_column_number , t2.my_column_id = t3.my_column_id inner join t4 on t4.my_column_varchar = t1.my_column_varchar inner join t5 on t5.my_column_int = t1.my_column_int , t5.my_column_int = t4.my_column_int , t2.my_column_int = t5.my_column_int inner join t6 on t6.my_column_int = t5.my_column_int , t6.my_column_int = t2.my_column_int inner join t7 on t7.my_column_int = t6.my_colum...

in line css is not working for HTML in email using java -

i trying apply, styles in html. positioning content etc. i can on lay text on image, using auto code generated bulletproof website. cannot apply styles on text. i have following snippet of html in email: here's server code creating email: mimemultipart mimemultipart = new mimemultipart("related"); mimebodypart textbodypart = new mimebodypart(); mimemultipart = new mimemultipart("related"); string cid = contentidgenerator.getcontentid(); textbodypart.settext(messagebody, "us-ascii", "html"); mimemultipart.addbodypart(textbodypart); imagepart.attachfile(file); imagepart.setcontentid("<" + cid + ">"); mimemultipart.addbodypart(imagepart); msg.setcontent(mimemultipart); transport.send(msg); <!doctype html public '-//w3c//dtd xhtml 1.0 transitional//en' 'http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd'> <html xmlns:v="urn:schemas-microsoft-com:vml"> ...