text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
I am using ADO.Net DataServices to expose an Entity Data Model to Silverlight. The model has a stored procedure that returns void. I want to call this procedure from the Silverlight client. My understanding is that I should add a [WebInvoke] method to the DataService class and use [DbCommand](http://msdn.microsoft.com...
[ 0.32903438806533813, 0.46393832564353943, -0.026307471096515656, -0.13266544044017792, -0.2189420610666275, 0.093970388174057, 0.0248495414853096, -0.39948076009750366, -0.0498187392950058, -0.4743240475654602, 0.32428187131881714, 0.3789162337779999, -0.3476230502128601, 0.243951395153999...
config.SetEntitySetAccessRule("*", EntitySetRights.AllRead); config.UseVerboseErrors = true; } [WebInvoke] public void RunMyProcedure() { DbConnection conn = this.CurrentDataSource.Connection; DbCommand cmd = conn.CreateCommand(); // TODO:...
[ -0.05635443329811096, -0.3983342945575714, 0.6726769804954529, -0.03202463313937187, 0.5560032725334167, -0.20050181448459625, 0.42213842272758484, -0.12594851851463318, -0.17097574472427368, -0.5068645477294922, -0.3105974793434143, 0.5560237765312195, -0.4211047887802124, 0.5477952361106...
stored procedure in the EF Data Model. } } } ``` Can someone confirm that this is the right approach and show an example using DbCommand in this situation? The question I have is why you are running this in the Entity Framework, as you are returning nothing, which suggests to me you are not actually filli...
[ 0.13887201249599457, 0.0805765762925148, 0.08808240294456482, 0.03279790282249451, -0.12540869414806366, -0.1979566216468811, 0.2223765254020691, -0.16497905552387238, -0.21895547211170197, -0.5227483510971069, -0.11384442448616028, 0.6304650902748108, -0.3388826549053192, 0.16778282821178...
you are actually affecting EF objects, I would not be as concerned about storing the procedure there. If the procedure does not affect EF objects, I would have it separate from EF rather than see everything as a nail and EF as the hammer.
[ 0.6098077893257141, 0.0934806615114212, 0.07102366536855698, -0.30553045868873596, -0.33585959672927856, 0.12200288474559784, 0.2519901990890503, -0.416641503572464, -0.30373966693878174, -0.32813239097595215, 0.06556441634893417, 0.7426074147224426, -0.11324340850114822, 0.261506825685501...
If you can't use `Me.` in a non-instance method, how would you use properties/functions from a base class in a `Shared` method? For example, `ClassB` inherits from `ClassA` `ClassB` has a `Shared Method DoWork()`; `ClassA` has a `ReadOnly Property SecurityKey` How do I … ``` Public Sub DoWork() Dim test as Stri...
[ 0.011033098213374615, 0.007002225611358881, -0.21005283296108246, 0.0631105899810791, -0.03836778923869133, -0.21853037178516388, 0.208886981010437, -0.34615305066108704, 0.04284180700778961, -0.5007171034812927, -0.11870270222425461, 0.4378679096698761, -0.1925278902053833, 0.434351146221...
is [arguably](http://www.jwz.org/doc/java.html) a design flaw in the .NET system that was “inherited” from Java. Shared methods aren't actually object methods, rather they are global methods with a name scope. Additionally, and perhaps even more related to your problem, you always need an instance to access a non-shar...
[ -0.408815860748291, -0.05904760584235191, -0.1030559167265892, 0.12531374394893646, -0.047707825899124146, -0.2976188361644745, 0.35388264060020447, 0.29234209656715393, -0.3277411460876465, -0.46613919734954834, 0.1429738700389862, 0.20606772601604462, -0.32478392124176025, 0.231177940964...
As part of our database revision control (and auto-installation) procedures we need to be able run sqlcmd.exe on various .sql files from within an ASP page. The code I'm using to do this is: ``` Dim cmd : cmd = "sqlcmd -S " & DATABASE_SERVER & " -U " & DATABASE_UID & " -P " & DATABASE_PWD & " -d " & DATABASE_NAME & " ...
[ 0.39725491404533386, 0.10864538699388504, 0.9359947443008423, -0.18066750466823578, -0.042268168181180954, -0.12570738792419434, 0.1434108465909958, -0.4131922423839569, -0.05380472540855408, -0.5838890671730042, 0.15787801146507263, 0.6587820649147034, -0.20152366161346436, 0.072606675326...
our Windows 2003 server it's having problems. The problem being that the value for return is always 1. This also happens if I try to get it to run a batch file or anything else I can think of (if I change the value for cmd to an non-existing file it bombs out as I'd expect) I've tried adding I\_USR and I\_WAM to have ...
[ -0.277811735868454, 0.25529563426971436, 0.5764482021331787, -0.12931734323501587, -0.32444867491722107, -0.28799962997436523, 0.546019434928894, 0.1061495840549469, -0.11761247366666794, -0.5564306378364563, -0.05652972683310509, 0.7123836874961853, -0.4556363821029663, 0.0982627496123313...
doesn't work. Also, when running the .sql scripts manually everything runs smoothly so there's no problem with them. Are there any security settings on the server that I've forgotten to change within IIS or Windows generally to make it work? Thanks in advance the internet. The problem was solved by changing the firs...
[ 0.18501527607440948, 0.00375733501277864, 0.8500321507453918, 0.08509494364261627, 0.3411077857017517, -0.08552805334329605, 0.1437627673149109, 0.189301997423172, -0.23151151835918427, -0.3022046387195587, 0.055904362350702286, 0.9899159669876099, -0.2891636788845062, 0.07985363155603409,...
Before my pet projects become serious enough to deserve real version control (and its headaches) I like to just email myself the sources after I worked for a while. How can this be done easily with maven? You would use an [assembly using the `src` descriptor](http://maven.apache.org/plugins/maven-assembly-plugin/descri...
[ 0.5293986797332764, -0.13143561780452728, 0.1338626593351364, -0.04378831014037132, -0.1572691947221756, -0.09875359386205673, 0.0865527093410492, -0.08796818554401398, -0.2182377427816391, -0.5125128626823425, 0.138620525598526, 0.5197336673736572, -0.1865129917860031, -0.2314132899045944...
would be: ``` mvn assembly:assembly ``` The [assembly plugin usage page](http://maven.apache.org/plugins/maven-assembly-plugin/usage.html) gives some great detail on using this plugin to aggregate everything into a bundle (zip).
[ 0.5408945083618164, -0.23672355711460114, -0.06651628762483597, -0.11196600645780563, -0.09117259830236435, -0.28208935260772705, 0.026215551421046257, -0.3018094599246979, -0.2979540228843689, -0.2991415858268738, -0.46967437863349915, 0.06603052467107773, -0.3298141360282898, -0.07367315...
`lseek()` is supposed to return the position of the file descriptor. The [documentation](http://developer.apple.com/DOCUMENTATION/DARWIN/Reference/ManPages/man2/lseek.2.html#//apple_ref/doc/man/2/lseek) says: > Upon successful completion, lseek() > returns the resulting offset location > as measured in bytes from t...
[ -0.21989703178405762, 0.14772984385490417, 0.6384658217430115, -0.39176425337791443, 0.31466683745384216, 0.33241671323776245, -0.2614958882331848, -0.5744194388389587, -0.3407200872898102, -0.6318127512931824, -0.36854973435401917, 0.5108210444450378, -0.33614853024482727, -0.114710897207...
the raw I/O functions? (`read`, `open`, `lseek`, …) **Edit 1:** I tried to make the example simpler. Try adding #include <unistd.h> to the top. See: <http://forums.macosxhints.com/archive/index.php/t-35508.html> Basically, since you didn't `#include <unistd.h>`, the compiler is "guessing" that `lseek()` returns an ...
[ -0.1207190603017807, -0.06831417977809906, 0.1762876659631729, -0.22009049355983734, -0.021649107336997986, 0.23287105560302734, 0.12020256370306015, -0.061385881155729294, -0.06635536253452301, -0.5648300051689148, -0.23161716759204865, 0.574906587600708, -0.13575980067253113, -0.08091684...
I am trying to use Inno Setup to bootstrap a number of prerequisites to my windows installer installation package, and am having pretty good luck with this. **Now I am wondering if the Inno Setup package can be made so that it doesn't appear in the Add/Remove Programs (ARP) windows option?** I would like the separat...
[ 0.6784029006958008, 0.16808007657527924, 0.18801462650299072, -0.19471338391304016, 0.27454763650894165, -0.10993266850709915, 0.21068739891052246, -0.03383477032184601, -0.3007582426071167, -0.6710360050201416, -0.06730978190898895, 0.9612967371940613, -0.18392156064510345, -0.27855771780...
"Uninstallable=false"
[ -0.02847733162343502, 0.16274438798427582, 0.05726480111479759, -0.031536880880594254, -0.3708781898021698, -0.10052884370088577, 0.43526002764701843, 0.12719151377677917, -0.1819945126771927, -0.14043352007865906, -0.3936193883419037, 0.2520717978477478, -0.2776857018470764, 0.21270871162...
These are my questions: 1. I'm getting a couple of errors on the line "public static boolean validNumCheck(String num){" - "illegal start of expression", "';' expected", and "')' expected". 2. How can I give the user 3 tries in total for each number? I believe right now the programme asks the user for 3 numbers and gi...
[ 0.4179375469684601, 0.44923776388168335, 0.22275008261203766, -0.3600175678730011, -0.12261097878217697, 0.2449071705341339, 0.556348443031311, -0.5493007302284241, -0.2654302716255188, -0.37196165323257446, 0.016786811873316765, 0.5207796692848206, -0.42242541909217834, 0.0900896862149238...
final int MAX_TRIES = 3; int[] attempts= new int[2]; String[] getNumber= new String [2]; //Ask the user for 3 integers. while(attempts[0]<MAX_TRIES){ getNumber[0]= JOptionPane.showInputDialog(null,"Please enter an integer between 0-200."); //Pass the value to va...
[ -0.12885162234306335, -0.06395745277404785, 0.6846745610237122, -0.47993606328964233, 0.039125073701143265, 0.3069612681865692, 0.5557572841644287, -0.5045529007911682, -0.15586891770362854, -0.5903143882751465, -0.35720303654670715, 0.3163899779319763, -0.2109602391719818, -0.123391829431...
//If it is not a valid number give the user 3 more tries. if (getNumber== false){ while(attempts[1]<MAX_TRIES){ getNumber[1]= JOptionPane.showInputDialog(null,"Please enter an integer between 0-200."); attempts[1]++;}
[ 0.20681805908679962, -0.10877598822116852, 0.5466023087501526, -0.3502056896686554, 0.31518059968948364, 0.2900019586086273, 0.7307191491127014, -0.5057366490364075, -0.31360986828804016, -0.558112382888794, -0.17653495073318481, 0.4184454381465912, -0.09253965318202972, -0.183127850294113...
} attempts[0]++; } //Parse the string to an integer and check if it is a valid number. public static boolean validNumCheck(String num){ int number; try { number = Integer.parseInt(num);
[ -0.091461181640625, 0.21395502984523773, -0.030060837045311928, -0.2255679816007614, 0.028686806559562683, 0.009196780622005463, 0.4552673399448395, -0.5359702110290527, -0.041310038417577744, -0.20747628808021545, -0.3908732235431671, 0.3094157874584198, -0.24961304664611816, 0.1770346462...
return number >= 0 && number <= 200; }catch(NumberFormatException e){ //If it is not a valid number return false. return false; } } } ``` I think it is important to create a pseudo code or algorithm of the problem **first** and then if it
[ 0.2024877965450287, -0.11145294457674026, 0.2661747932434082, -0.0741267055273056, 0.2610664963722229, -0.08882397413253784, 0.28685128688812256, -0.25516143441200256, -0.16133032739162445, -0.40144082903862, -0.22513583302497864, 0.45970746874809265, -0.3885027766227722, 0.020644571632146...
works deal with the programming **later**. Otherwise you'll be solving two things at the same time 1. Problem logic and 2. Implementation details. This is how I would do it. ``` //The three numbers should be entered by a user in the main method. MAIN PROGRAM starts declare a , b , c as numbers //The numbers shoul...
[ 0.3632950186729431, 0.38646700978279114, 0.5755571126937866, 0.0507199764251709, 0.14522314071655273, 0.025562142953276634, 0.4209340214729309, -0.5986186265945435, -0.20761634409427643, -0.6279903054237366, 0.02481072023510933, 0.7453916668891907, 0.15536344051361084, 0.011752612888813019...
trials, the program displays an error message to the user and ends. // ok then read a number and validate it. attempts = 0; maxAttempts = 3; //part 2. three chances... . loop_while ( attemtps < maxAttempts ) do // or 3 directly. number = readUserInput(); // part 1. reenter the number... ...
[ 0.15736262500286102, 0.2206796109676361, 0.28225177526474, -0.19742801785469055, -0.2344433069229126, 0.2648593783378601, 1.0309386253356934, -0.9756414294242859, -0.28341227769851685, -0.421869695186615, 0.1800711750984192, 0.32555481791496277, -0.09936878085136414, -0.00880346167832613, ...
1; // one failure.. try again. else break the loop. end end // part 3:. out of the loop. // either because the attempts where exhausted // or because the user input was correct. if( attempts == maxAttemtps ) then displayError("The input is invalid due to ... ") ...
[ 0.0357777439057827, 0.00872719381004572, 0.5130362510681152, -0.19246214628219604, 0.07345251739025116, 0.16085092723369598, 0.5903435349464417, -0.5110521912574768, -0.19722889363765717, -0.35102081298828125, -0.34468919038772583, 0.32467150688171387, -0.3141448497772217, 0.27969112992286...
a = number end // Now I have to repeat this for the other two numbers, b and c. // see the notes below... MAIN PROGRAM ENDS ``` And this would be the function to "validNumCheck" ``` // You are encouraged to write a separate method for this part of program – for example: validNumCheck bool validNumCheck( num...
[ 0.19230055809020996, 0.07483357936143875, 0.4512522220611572, -0.48186638951301575, -0.028280165046453476, -0.34563788771629333, 0.3924401104450226, -0.6003792881965637, -0.051789820194244385, -0.10833801329135895, -0.1886792778968811, 0.4038003087043762, -0.00003391182326595299, 0.2967014...
else return true; end end ``` So, we have got to a point where a number "a" could be validated but we need to do the same for "b" and "c" Instead of "copy/paste" your code, and complicate your life trying to tweak the code to fit the needs you can create a function and delegate that work to the new f...
[ 0.34745293855667114, 0.3312698304653168, 0.3117070198059082, -0.08228247612714767, 0.061249274760484695, -0.11239350587129593, 0.3770773708820343, -0.29788485169410706, 0.014436302706599236, -0.3057648539543152, -0.2070922702550888, 0.655885636806488, -0.3954315185546875, 0.222596377134323...
giveMeValidUserInput(); b = giveMeValidUserInput(); c = giveMeValidUserInput(); print( a, b , c ) MAIN PROGRAM ENDS ``` And move the logic to the new function ( or method ) The function giveMeValidUserInput would be like this ( notice it is almost identical to the first pseudo code ) ``` functio...
[ -0.08543851226568222, -0.1659897267818451, 0.9410417079925537, -0.46874141693115234, 0.09409064799547195, 0.10479160398244858, 0.44764986634254456, -0.4107950031757355, 0.03077263943850994, -0.6267456412315369, -0.24142415821552277, 0.40914851427078247, -0.24771243333816528, 0.389683514833...
number = readUserInput(); if( numcheck( number ) == false ) then attempts = attempts + 1; // one failure.. try again. else return number end
[ -0.17080016434192657, -0.0048454394564032555, 0.3733918368816376, -0.26134902238845825, 0.06463201344013214, 0.42619553208351135, 0.7384471297264099, -0.4149487018585205, -0.442995548248291, -0.404231995344162, 0.05574217438697815, 0.37003156542778015, -0.03206360712647438, 0.2654467821121...
end // out of the loop. // if we reach this line is because the attempts were exhausted. displayError("The input is invalid due to ... ") function ends ``` The validNumCheck doesn't change. Passing from that do code will be somehow straightforward. Because you have already understand what you wa...
[ 0.09876973181962967, 0.09867479652166367, 0.38993099331855774, 0.11751718819141388, 0.14520426094532013, -0.3243268132209778, 0.3849591612815857, -0.3752548396587372, -0.22773078083992004, -0.5018218159675598, -0.3641674816608429, 0.3676404356956482, -0.10404584556818008, -0.01975443959236...
the problem and understand it ( of course ) . 2. Identify possible "functions" and variables. 3. Write how would I do it step by step ( algorithm ) 4. Translate it into code, if there is something you cannot do, create a function that does it for you and keep moving.
[ -0.017286432906985283, -0.0000014742436178494245, 0.06957826018333435, 0.06936462223529816, 0.23421530425548553, 0.21941782534122467, 0.30434978008270264, -0.34430181980133057, 0.17494094371795654, -0.7023435831069946, -0.05069958418607712, 0.3835930824279785, -0.15514330565929413, -0.2913...
I am having difficulty writing a Stored Procedure that will query a list of students with their associative marks. Retrieving a List of Students - trivial Retrieving the top five marks per student - trivial...SELECT TOP (5) \* WHERE StudentID = X Combining these two, I am a bit confused. I would like the Stored Proc...
[ -0.10687046498060226, 0.16286957263946533, 0.19878211617469788, 0.15014246106147766, -0.26801246404647827, 0.14369714260101318, 0.1560673713684082, -0.033379897475242615, -0.17314089834690094, -0.5671948790550232, -0.15677466988563538, 0.08148041367530823, 0.3787214159965515, 0.21751432120...
can limit it to top 5. I think it is important to create a pseudo code or algorithm of the problem **first** and then if it works deal with the programming **later**. Otherwise you'll be solving two things at the same time 1. Problem logic and 2. Implementation details. This is how I would do it. ``` //The three numb...
[ 0.20529262721538544, 0.30164819955825806, 0.6580300331115723, -0.012621200643479824, 0.20043644309043884, -0.09807783365249634, 0.20791146159172058, -0.5748513340950012, -0.2635335624217987, -0.41001853346824646, -0.09672313928604126, 0.7312976121902466, 0.06436101347208023, 0.183802902698...
2.The user will have three chances to enter a valid number for each number. //part 3. If the number is still invalid after the three trials, the program displays an error message to the user and ends. // ok then read a number and validate it. attempts = 0; maxAttempts = 3; //part 2. three chances... . ...
[ 0.016885491088032722, 0.25255951285362244, 0.5354727506637573, -0.29029759764671326, 0.11661506444215775, 0.14098802208900452, 1.0399948358535767, -0.8378946185112, -0.3247961401939392, -0.3617554008960724, -0.1336940973997116, 0.32452818751335144, -0.20334862172603607, -0.0905740261077880...
if( numcheck( number ) == false ) then attempts = attempts + 1; // one failure.. try again. else break the loop. end end // part 3:. out of the loop. // either because the attempts where exhausted // or because the user input was correct. if( attempts ==
[ -0.02155894972383976, 0.07602320611476898, 0.25631895661354065, -0.3465910851955414, 0.139581099152565, -0.015095207840204239, 0.8663036823272705, -0.6568477153778076, -0.19680610299110413, -0.21657566726207733, -0.20714901387691498, 0.34061336517333984, -0.13760964572429657, 0.11047760397...
maxAttemtps ) then displayError("The input is invalid due to ... ") die(); else a = number end // Now I have to repeat this for the other two numbers, b and c. // see the notes below... MAIN PROGRAM ENDS ``` And this would be the function to "validNumCheck" ``` // You are encouraged to wri...
[ 0.14115814864635468, -0.06896668672561646, 0.6757885217666626, -0.18108858168125153, 0.07229908555746078, -0.17141245305538177, 0.42953771352767944, -0.3865925669670105, -0.21263135969638824, -0.37099477648735046, -0.2867978811264038, 0.4782894551753998, 0.10546133667230606, 0.251146465539...
then // invalid number return false; else return true; end end ``` So, we have got to a point where a number "a" could be validated but we need to do the same for "b" and "c" Instead of "copy/paste" your code, and complicate your life trying to tweak the code to fit the needs...
[ 0.3809121251106262, 0.2427046298980713, 0.12450249493122101, 0.10571739822626114, 0.1271604746580124, -0.20907849073410034, 0.4367404580116272, -0.3550257384777069, 0.1086125522851944, -0.4749208092689514, -0.21496537327766418, 0.42981961369514465, -0.17514123022556305, 0.31192249059677124...
So the new pseudo code will be like this: ``` MAIN PROGRAM STARTS declare a , b , c as numbers a = giveMeValidUserInput(); b = giveMeValidUserInput(); c = giveMeValidUserInput(); print( a, b , c ) MAIN PROGRAM ENDS ``` And move the logic to the new function ( or method ) The function giveMe...
[ 0.036967888474464417, 0.11005949974060059, 0.9137467741966248, -0.34098702669143677, 0.0857711210846901, -0.008605609647929668, 0.27524515986442566, -0.42584577202796936, -0.16987845301628113, -0.4804438650608063, -0.24759222567081451, 0.49993786215782166, -0.35850995779037476, 0.442642569...
loop_while ( attemtps < maxAttempts ) do // or 3 directly. number = readUserInput(); if( numcheck( number ) == false ) then attempts = attempts + 1; // one failure.. try again. else
[ 0.30770015716552734, -0.1745186299085617, 0.13665588200092316, -0.2545238435268402, 0.16530047357082367, 0.20680522918701172, 1.0338910818099976, -0.543788731098175, -0.3882652223110199, -0.35258713364601135, 0.012807035818696022, 0.19605351984500885, -0.4539755880832672, 0.031729899346828...
return number end end // out of the loop. // if we reach this line is because the attempts were exhausted. displayError("The input is invalid due to ... ") function ends ``` The validNumCheck doesn't change. Passing from that do code will be somehow straightforward. Because you...
[ -0.0005296434392221272, 0.07781021296977997, 0.7359316945075989, -0.06317301094532013, 0.12194155156612396, -0.27638325095176697, 0.3592291474342346, -0.24773602187633514, 0.01447357703000307, -0.31739601492881775, -0.3548864722251892, 0.44132184982299805, -0.17859196662902832, 0.239882364...
want to do it ( design ). Of course, this would be easier with experience. Summary The [steps to pass from problem to code are](https://stackoverflow.com/questions/137375/process-to-pass-from-problem-to-code-how-did-you-learn): 1. Read the problem and understand it ( of course ) . 2. Identify possible "functions"...
[ 0.31305158138275146, -0.1326676607131958, 0.05392080545425415, 0.2548297941684723, 0.12754659354686737, 0.0037773374933749437, 0.32257091999053955, -0.32988739013671875, -0.07008634507656097, -0.7357600331306458, -0.08927527070045471, 0.4894859194755554, 0.06573919206857681, -0.44641152024...
I'm trying to build a simple multi-level UL Horizontal Accordion (or slide menu) in Jquery. Hunter Daley graciously provided the Jquery code, but I can't seem to figure out the css. I know this is newb, but I'm really stuck. When Ul li Ul slides out it creates a linebreak, I'd like to have everything display inline, w...
[ -0.06324201077222824, 0.20135663449764252, 0.5129140019416809, 0.10275178402662277, -0.1946934461593628, 0.47211214900016785, -0.18036578595638275, 0.1620141863822937, -0.22111111879348755, -0.7254266142845154, -0.10323433578014374, 0.45449525117874146, -0.5815226435661316, 0.0626304149627...
Floats:** Right, I was trying to do it without floats. I'm trying to stick with the animation function. Safari bugs out and flashes the sub ul during the animation. ``` <style type="text/css"> <!-- body { font-size: 1em; line-height: 1em; } ul { background-color: yellow; list-style: none; margin: 0; padd...
[ -0.44374024868011475, 0.11705534905195236, 0.6253155469894409, -0.07510486245155334, -0.37136897444725037, 0.433912456035614, -0.0016264552250504494, -0.05565221980214119, -0.5076141953468323, -0.6621227860450745, -0.44071701169013977, 0.3826977610588074, -0.5212246775627136, -0.1235030516...
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script> <title>untitled</title> <style type="text/css"> <!-- ul{ list-style: none; background-color: yellow; margin: 0; padding: 0; white-space: nowra...
[ -0.5114274024963379, -0.11326505243778229, 0.4549562931060791, -0.1058790385723114, -0.22576381266117096, 0.37246155738830566, -0.007247818633913994, -0.12734070420265198, -0.28080180287361145, -0.6459341645240784, -0.4989158809185028, 0.12662306427955627, -0.05531522259116173, -0.09109582...
background-color: aqua; display: inline; } ul li ul { background-color: blue; } ul li ul li { background-color: green; } a, a:link, a:hover, a:visited, a:active { color: black;
[ -0.5232785940170288, -0.11329320818185806, 0.4442373514175415, -0.13765159249305725, 0.023436324670910835, 0.6899087429046631, -0.030251022428274155, 0.2846982777118683, -0.22225944697856903, -0.47463321685791016, -0.6099503040313721, 0.5255452990531921, -0.7556177377700806, 0.045350674539...
text-decoration: none; } --> </style> <script type="text/javascript"> var $current = null; $(document).ready(function(){ $("ul li ul").hide(); // hide submenus by default on load $("ul li a").click(function(){ var $sub = $(this).next();
[ -0.13101249933242798, -0.29760798811912537, 0.8217946887016296, -0.23260419070720673, 0.17070256173610687, 0.24920664727687836, 0.3823373019695282, -0.4237828552722931, -0.2213696539402008, -0.38718390464782715, -0.5200724005699158, 0.630742609500885, -0.5265278816223145, 0.212641552090644...
if ($sub.css("display") == "none") { if ($current != null) $current.animate({ width: 'hide' }); // if you want to only show one sub at a time
[ 0.29247036576271057, -0.5119636058807373, 0.23008917272090912, -0.1658884435892105, 0.17137376964092255, 0.1704692244529724, 0.47287845611572266, -0.024265145882964134, -0.30938398838043213, -0.47219711542129517, -0.10732604563236237, 0.13727907836437225, -0.3749070465564728, 0.29377773404...
$sub.animate({ width: 'show' }); $current = $sub; } else { $sub.animate({ width: 'hide' });
[ -0.08832906186580658, -0.6283805966377258, 0.09861846268177032, -0.32462969422340393, 0.14549677073955536, 0.19336915016174316, 0.3963093161582947, -0.15221087634563446, 0.03603500872850418, -0.4371415078639984, -0.2094661146402359, 0.30049195885658264, -0.4386119842529297, 0.2928739786148...
$current = null; } }); }); </script> </head> <body> <ul> <li> <a href="#">Top-level 1</a> </li>
[ -0.4339693486690521, -0.25837957859039307, 0.6692696213722229, -0.21046164631843567, 0.11544568836688995, -0.10576743632555008, 0.11946304142475128, -0.37089040875434875, -0.14262500405311584, -0.3302602171897888, -0.5220060348510742, 0.4569079875946045, -0.34873998165130615, 0.03043380379...
<li> <a href="#">Top-level 2</a> <ul> <li><a href="#">Bottom Level A1</a></li>
[ -0.5952799916267395, 0.032878000289201736, 0.4441956579685211, -0.06411104649305344, -0.04072169214487076, 0.2682788074016571, -0.0036512345541268587, -0.3011031150817871, -0.28337517380714417, -0.4537460505962372, -0.6239120364189148, 0.3966977596282959, -0.17802420258522034, -0.241482064...
<li><a href="#">Bottom Level A2</a></li> <li><a href="#">Bottom Level A3</a></li> <li><a href="#">Bottom Level A4</a></li> </ul>
[ -0.6096976399421692, 0.02783363126218319, 0.39949584007263184, -0.05654347315430641, -0.08459055423736572, 0.4267704486846924, 0.14245356619358063, -0.3757258951663971, -0.42137739062309265, -0.5133582353591919, -0.41902685165405273, 0.4106806516647339, -0.1901371031999588, -0.231761500239...
</li> <li> <a href="#">Top-level 3</a> <ul> <li><a href="#">Bottom Level B1</a></li>
[ -0.5862624645233154, 0.16120535135269165, 0.3743697702884674, -0.04192676022648811, -0.1891847401857376, 0.34050002694129944, 0.12699657678604126, -0.35096174478530884, -0.24729010462760925, -0.4440211355686188, -0.5812485814094543, 0.2982446253299713, -0.1455158144235611, -0.1921299695968...
<li><a href="#">Bottom Level B2</a></li> </ul> </li> <li> <a href="#">Top-level 4</a> </li>
[ -0.6485485434532166, 0.14282183349132538, 0.4550057351589203, 0.0018507206114009023, -0.09643106907606125, 0.24656815826892853, 0.0753231942653656, -0.3390759825706482, -0.20879945158958435, -0.39840856194496155, -0.6762577891349792, 0.4776443839073181, -0.18586984276771545, -0.07653326541...
</ul> </body> </html> ``` If I understand you correctly you would like to have first and second menu level in one line (horizontal) ? Try this: ``` <style type="text/css"> ul{ list-style: none; background-color: yellow; margin: 0; padding: 0; float: left; } ul li ...
[ -0.31039851903915405, -0.3202470541000366, 0.7390117049217224, -0.2029954195022583, -0.33651119470596313, 0.563440203666687, -0.2212911993265152, 0.09182921051979065, -0.25271227955818176, -0.9976844191551208, -0.279452919960022, 0.5500603914260864, -0.4013122320175171, -0.1525359004735946...
} ul li ul { background-color: blue; } ul li ul li { background-color: green; } a, a:link, a:hover, a:visited, a:active { color: black; text-decoration: none; float: left; } </style> ```
[ -0.6692410707473755, 0.04651959612965584, 0.46927377581596375, -0.2666446268558502, -0.11839652061462402, 0.49842262268066406, 0.05245855078101158, 0.2908274531364441, -0.11326103657484055, -0.37182846665382385, -0.6659626960754395, 0.5788641571998596, -0.6705867052078247, 0.08000090718269...
I'm having a bit of trouble getting a Python regex to work when matching against text that spans multiple lines. The example text is ('\n' is a newline) ```none some Varying TEXT\n \n DSJFKDAFJKDAFJDSAKFJADSFLKDLAFKDSAF\n [more of the above, ending with a newline]\n [yep, there is a variable number of lines here]\n \n...
[ 0.08087905496358871, -0.30248066782951355, 0.5970650911331177, -0.15835943818092346, -0.20734192430973053, 0.2683544456958771, 0.1824382245540619, -0.19197572767734528, -0.43441954255104065, -0.6035758256912231, 0.09665141254663467, 0.6098678112030029, -0.39295071363449097, -0.165888771414...
textlines ``` and a lot of variations hereof with no luck. The last one seems to match the lines of text one by one, which is not what I really want. I can catch the first part, no problem, but I can't seem to catch the 4-5 lines of uppercase text. I'd like match.group(1) to be some\_Varying\_Text and group(2) to be ...
[ 0.1443627029657364, -0.15274956822395325, 0.6369349956512451, -0.031040148809552193, -0.12465839087963104, 0.17312516272068024, -0.04089329391717911, 0.075187548995018, -0.1755770593881607, -0.7939720749855042, -0.28483280539512634, 0.16572272777557373, -0.705319881439209, 0.02244131825864...
don't. In multiline mode, `^` matches the position immediately *following* a newline and `$` matches the position immediately *preceding* a newline. Be aware, too, that a newline can consist of a linefeed (`\n`), a carriage-return (`\r`), or a carriage-return+linefeed (`\r\n`). If you aren't certain that your target t...
[ 0.24460825324058533, -0.1427137851715088, 0.7174039483070374, -0.1723913550376892, -0.05898963660001755, 0.01747736893594265, 0.33102431893348694, -0.12208473682403564, -0.27077293395996094, -0.6762852072715759, -0.625279426574707, 0.6533972024917603, -0.6485283374786377, 0.122102454304695...
I've finally got Intellisense working for JQuery by applying patch KB958502 to Visual Studio 2008 and including this line: ``` /// <reference path="JQuery\jquery-1.3.2.js"/> ``` at the top of my .js files. Now I'm trying to figure out how to get JavaScript intellisense for the client proxies generated by the ScriptM...
[ -0.39412474632263184, -0.14992180466651917, 0.6101441979408264, -0.1729797124862671, -0.11744479089975357, -0.06090097874403, 0.3334566652774811, -0.12773390114307404, 0.07463521510362625, -0.9383413791656494, -0.12421659380197525, 0.7650439143180847, -0.10117296129465103, -0.6146034002304...
can make calls through them, but I'm getting no Intellisense. My service is defined with a .svc file: ``` <%@ ServiceHost Language="C#" Debug="true" Service="Documents.Services.DocLookups" CodeBehind="~/App_Code/DocLookups.cs" %> ``` The code behind file looks like: ``` [ServiceContract(Namespace = "Documents.Serv...
[ -0.13434679806232452, 0.09098485112190247, 0.740294337272644, -0.2390688955783844, 0.03211039677262306, 0.011009251698851585, 0.4872845709323883, -0.3403019905090332, -0.023668088018894196, -0.8641391396522522, -0.543448269367218, 0.5999630093574524, -0.1164453774690628, 0.2049240916967392...
Result = (from cat in repository.GetDocCategories() select new SelectOption(cat.Category_ID.ToString(), cat.CategoryName)).ToArray(); if (Result.Length > 0) Result[0].Selected = true; //Select first item return Result; } ``` and it uses a data contract defined like ...
[ -0.09710994362831116, -0.5981671214103699, 0.3850374221801758, 0.024842670187354088, 0.1065916046500206, 0.09365209937095642, -0.12182178348302841, -0.5497395396232605, -0.2358090579509735, -0.39204925298690796, -0.5365175008773804, 0.2749227285385132, -0.1717352420091629, 0.14212884008884...
options public SelectOption(string optionValue, string optionText) { OptionValue = optionValue; OptionText = optionText; Selected = false; } public SelectOption(string optionValue, string optionText, bool selected) { OptionValue = optionValue; OptionText = optionText;...
[ -0.48867446184158325, -0.8939272165298462, 0.01319541223347187, -0.05418156459927559, 0.5417909622192383, 0.24882371723651886, 0.0002360140933888033, 0.24116311967372894, -0.2333901971578598, -0.6921504139900208, -0.7230152487754822, 0.8612312078475952, -0.2540023922920227, -0.170106574892...
get; set; } [DataMember] public string OptionText { get; set; } [DataMember] public bool Selected { get; set; } } ``` } In my javascript files, a call to this service looks like: ``` Documents.Services.DocLookups.GetCategoriesForSelectList(... ``` but I get no Intellisense (for example, if I type ...
[ -0.0629902258515358, -0.10549139231443405, 0.4997697174549103, -0.03764248639345169, 0.053936995565891266, -0.17055927217006683, 0.457841694355011, -0.20645473897457123, -0.043337155133485794, -0.8913189768791199, -0.4831746220588684, 0.6354921460151672, -0.24659186601638794, 0.05549582839...
not work?
[ 0.6195422410964966, 0.09499609470367432, -0.15050169825553894, -0.07215754687786102, -0.012766148895025253, -0.04427536949515343, 0.10284727066755295, 0.1735752373933792, -0.4052722156047821, 0.10924161970615387, 0.017415916547179222, 0.28108707070350647, -0.2238614857196808, -0.0661256834...
I'm looking over Apple's sample application EditableDetailView, and noticed that in one of their controllers, they're setting an instance of NSString property with (nonatomic, copy). When would one use copy instead of retain? Is this so they can make a unique copy without affecting the existing data? Yes, it's so that ...
[ 0.4790628254413605, 0.25700750946998596, 0.3923356533050537, -0.23002253472805023, 0.37229040265083313, 0.0701257660984993, -0.07003199309110641, -0.29503345489501953, -0.1825767159461975, -0.2509559690952301, -0.06245853751897812, 0.7059768438339233, -0.34578049182891846, 0.21933843195438...
foo = theFoo; // assign new value } // For @synthesize(nonatomic, copy) foo: - (void) setFoo(NSFoo *theFoo) { NSFoo* newFoo = [theFoo copy]; // make copy [foo release]; // release old value, if any foo = newFoo; // assign new value } ``` Note the order of operations here is important - the new va...
[ 0.3381078243255615, 0.3190990388393402, 0.4328491687774658, -0.279670774936676, 0.3533913791179657, -0.2541346251964569, 0.020490987226366997, -0.4443916976451874, -0.2762755751609802, -0.08412888646125793, -0.357712984085083, 0.7655426859855652, -0.5208827257156372, 0.29570022225379944, ...
that if the old value is `nil`, sending it a `release` message is ok, since sending a message to a `nil` object is explicitly allowed and does nothing. The choice of retaining versus copying just determines whether or not the object's property shares the same value with what you're setting it to. Consider the followin...
[ 0.3843662142753601, 0.21802745759487152, 0.39186978340148926, -0.30562931299209595, 0.40701839327812195, -0.24073101580142975, 0.1038149818778038, -0.22811700403690338, -0.3860549330711365, -0.33793339133262634, -0.2307077944278717, 0.6707853674888611, -0.3809601664543152, 0.46024784445762...
copy ```
[ 0.42163142561912537, 0.6595403552055359, -0.03350896015763283, 0.1746092289686203, 0.45349791646003723, -0.48295387625694275, 0.03368346020579338, 0.2846538722515106, 0.014150927774608135, -0.5016535520553589, -0.19276072084903717, 0.3015713095664978, -0.28881627321243286, -0.1094860881567...
Situation: Classic ASP application, using a custom Application Pool. Default settings. On *some* IIS7 machines, IIS decides to serve only one page at a time. So if multiple load any pages from a site, each one has to load in succession. e.g. If I load <http://foo.com/default.asp> from one browser, and from another ma...
[ 0.05945466086268425, -0.49689367413520813, 0.38939234614372253, -0.17360463738441467, 0.046710122376680374, 0.09383407235145569, 0.5292155742645264, -0.14054113626480103, -0.6902891993522644, -0.7421787977218628, -0.18001340329647064, 0.1986774504184723, -0.3266165256500244, 0.175244331359...
is). This does NOT solve the problem because this spawns multiple processes with their own session state etc, and when you load <http://foo.com/default.asp> there's no way to guarantee you get assigned to the same process. The problem revealed itself because we have a diagnostic page which is written in ASP that creat...
[ 0.010859319940209389, -0.3370598256587982, 0.37744542956352234, 0.1945803165435791, -0.015235907398164272, -0.1154918447136879, 0.45836666226387024, -0.0015598927857354283, -0.18438215553760529, -0.7187060117721558, -0.15150770545005798, 0.4156278371810913, -0.42168793082237244, 0.11881595...
waiting for the diagnostics.asp page to finish before it serves the default.asp page. Deadlock! This works fine on every IIS6 machine out there, and I believe there are some IIS7 servers where it works fine too. I've verified it's not a result of our quirky diagnostic either. Loading multiple tabs from one machine, o...
[ 0.2564840614795685, -0.06551176309585571, 0.3034880459308624, -0.0920378789305687, 0.062151920050382614, -0.07242164760828018, 0.6529806852340698, 0.039517901837825775, -0.45124003291130066, -0.45645830035209656, -0.14974986016750336, 0.6277501583099365, -0.25830063223838806, 0.04899598285...
"Debugging Properties" Ensure both "Enable Client-side Debugging" and "Enable Server-side debugging" are set to false. When debugging is enabled ASP is limited to processing one request at a time in a single threaded manner.
[ 0.002807407872751355, -0.004976919386535883, 0.11897095292806625, -0.16711506247520447, -0.23370355367660522, 0.17594817280769348, 0.5993890166282654, -0.31868839263916016, -0.2724170386791229, -0.12533508241176605, -0.4462476074695587, 0.28130611777305603, -0.373049795627594, -0.105314761...
**Similar**: [Possible to assign a new IP address on every http request?](https://stackoverflow.com/questions/584272/possible-to-assign-a-new-ip-address-on-every-http-request) --- Is it possible to display a different/spoofed IP address using CURL when you make requests to a server? If not, is there any alternative w...
[ 0.22937658429145813, -0.11202078312635422, 0.38513827323913574, 0.1440923810005188, -0.5156407952308655, -0.1846151202917099, 0.24652324616909027, 0.16272303462028503, -0.49265578389167786, -0.43210774660110474, -0.03533177450299263, 0.1833934336900711, -0.4201962351799011, 0.3288875520229...
I need to undo the following ASP.Net processes in PHP so I can get at the username and expiration date in a ticket. I've decrypted the 3DES encryption (step 3 below) but I'm not sure what I need to do next. Is the string that results from decryption a byte array? Should I be able to convert it to ascii? (Because it doe...
[ 0.06864175945520401, 0.12196336686611176, 0.5322202444076538, 0.2864488959312439, -0.27428606152534485, -0.07046523690223694, 0.1537279635667801, -0.3912172317504883, -0.2124757468700409, -0.7507742047309875, 0.04244352877140045, 0.18398001790046692, -0.11047837138175964, 0.302344083786010...
(which I've unencrypted). I get back something that looks like this: > 6E 85 A4 39 71 31 46 BB A3 F6 BE 1A 07 EE A4 CE 5F 03 C8 D1 4C 97 5D 6A 52 D1 C4 82 75 5E 53 06 7B 1D D2 4D BF 22 40 F7 F4 B8 8D B0 C3 EC E5 BE F7 52 C2 DF 00 7A D1 CB BC 76 4B 10 33 2D 1A B4 15 A7 BB D6 9D BF 41 69 D2 C4 43 4A 26 95 01 F2 06 AA ...
[ 0.03954355791211128, 0.4975415766239166, 0.2569936215877533, -0.07347096502780914, -0.30024221539497375, 0.17230603098869324, 0.05330102890729904, -0.4714258313179016, -0.21039041876792908, -0.33167657256126404, 0.1426476091146469, 0.5084987878799438, 0.21868537366390228, 0.134527802467346...
59 C0 64 B6 EE 2C 5F CA ED 8B 92 1C 80 FD FF DC 61 67 28 59 CB E6 71 C6 C3 72 0E D0 32 69 22 57 4E 40 2B DA 67 BA 7F F1 C5 78 BC DF 80 8C D8 F2 8B 19 E2 A4 4F 7C 8C D9 97 37 BD B5 5B 0A 66 9B DD E7 DC 7B 78 F4 F8 It doesn't map to ascii, what do I do next? I have the SHA1 validation key. Thanks for any help! I've been...
[ -0.07451382279396057, 0.5726711750030518, 0.23917308449745178, -0.12641556560993195, -0.17915882170200348, 0.16730669140815735, 0.2901744246482849, -0.5310377478599548, -0.15028442442417145, -0.45640966296195984, 0.03331973776221275, 0.17070825397968292, 0.016663827002048492, 0.15622884035...
the forms authentication ticket contents in PHP. 1. Decrypt the ticket with the same key used to encrypt it on the .Net side. For this, I'm using <http://www.navioo.com/php/docs/function.mcrypt-encrypt.php>. 2. The decryption adds padding to the end of the string, I remove that. 3. I'm left with a string with a 20 byt...
[ 0.02297952212393284, -0.2211836576461792, 0.7007989287376404, 0.27986112236976624, -0.17360393702983856, -0.5437291860580444, 0.12163200974464417, -0.6213710904121399, -0.11430326849222183, -0.613231897354126, 0.05147681385278702, 0.18243218958377838, -0.3497477173805237, -0.11751826852560...
SHA1 hashed (so I can do the same on the PHP side). That's really all there is to it.
[ -0.32493826746940613, 0.16051973402500153, 0.1322072297334671, 0.06143786758184433, -0.5806111097335815, -0.3934786319732666, 0.3199303448200226, 0.1610739678144455, -0.10124755650758743, -0.3757071793079376, 0.20482181012630463, 0.13894601166248322, -0.09598148614168167, -0.10471566021442...
I have a windows form. It contains several datagridviews on it. At some point, the user can press a button which updates the datagridviews. When they do, they can usually sit and watch the datagridview redraw itself, one row at a time. I'd like for the control to not paint until its "done", that is, I'd like a way to t...
[ 0.45258697867393494, -0.0756501629948616, 0.8878642320632935, -0.010953818447887897, 0.12041354924440384, -0.14647839963436127, 0.013109679333865643, 0.01905207522213459, -0.12119988352060318, -0.6911905407905579, 0.1731095165014267, 0.6696889400482178, 0.08454767614603043, 0.1449031829833...
the DoubleBuffer property of the DataGridView to true. This is the property on the actual DataGridView instance, not the Form. It's a protected property, so you'll have to sub-class your grid to set it. ``` class CustomDataGridView: DataGridView { public CustomDataGridView() { DoubleBuffered = true; ...
[ 0.6319288015365601, -0.27193471789360046, 0.5365611910820007, -0.0204415675252676, -0.02910139039158821, -0.2520362138748169, 0.4218486547470093, -0.1910744607448578, -0.2151748538017273, -0.5077530741691589, 0.12079071998596191, 0.8532371520996094, -0.4314277470111847, 0.04396878182888031...
Win32 message WM\_SETREDRAW ``` // ... this would be defined in some reasonable location ... [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = false)] static extern IntPtr SendMessage(HandleRef hWnd, Int32 Msg, IntPtr wParam, IntPtr lParam); static void EnableRepaint(HandleRef handle, bool enable) { ...
[ -0.2031002789735794, -0.21979936957359314, 0.7399768829345703, -0.2537199556827545, 0.2237319052219391, 0.011701464653015137, 0.5536431074142456, -0.5485605001449585, 0.13350144028663635, -0.6268347501754761, -0.47953587770462036, 0.8400341272354126, -0.3752480447292328, -0.171313941478729...
An everyday debugging situation for Java developers is that in which an Exception is thrown and then you need to dig into the debugger to find out what threw it. Usually you would try to set up some breakpoints before the exception is thrown and hope that you are able to determine the situation that leads up to that ex...
[ 0.04530365765094757, -0.17506085336208344, -0.4970089793205261, 0.27985531091690063, -0.35668766498565674, -0.38055408000946045, 0.26249682903289795, 0.0453154481947422, -0.32311344146728516, -0.40507957339286804, -0.21544687449932098, 0.30882301926612854, -0.4358912408351898, -0.160482868...
it is caught by the debugger, allowing the programmer to inspect all variables immediately? Ideally you would not have hit the catch block yet, Eclipse would catch the exception being raised and stop execution without changing the stack contents. Is this possible or is it limited by the JVM? Another illustration: **[E...
[ 0.173933744430542, -0.22571951150894165, 0.4538404643535614, 0.1355287730693817, -0.10732793807983398, -0.31000033020973206, 0.005275969859212637, -0.18969318270683289, -0.38909047842025757, -0.07783193141222, -0.22033154964447021, 0.19609658420085907, -0.18356738984584808, -0.048200696706...
Uncaught Exception option is to suspend execution when an exception of the same type as the breakpoint is thrown in an uncaught location. * The Caught Exception option is to suspend execution when an exception of the same type as the breakpoint is thrown in a caught location. * do not forget the **[Exception Breakpoint...
[ 0.023874063044786453, -0.3012133538722992, 0.3251431882381439, 0.0890842005610466, -0.24420197308063507, -0.43794482946395874, 0.29695162177085876, 0.20669236779212952, -0.6271531581878662, 0.031220300123095512, -0.5632265210151672, 0.34209731221199036, -0.30609560012817383, 0.233306616544...
In our java project, We decided to use ORM object/relational mapping technique in objects' persisting. But we hesitate to use a specific framework to do this.So, what is the best framework for java can do this task? As [Chris](https://stackoverflow.com/questions/587634/object-relational-mapping/587640#587640) says, Hi...
[ -0.09365756064653397, -0.09011945128440857, 0.3214709460735321, -0.06554122269153595, -0.4848587214946747, -0.13740363717079163, 0.32861173152923584, -0.22959983348846436, -0.2847554385662079, -0.36408892273902893, -0.17367996275424957, 0.24957314133644104, -0.22083254158496857, 0.11554778...
Yay, first post on SO! (Good work Jeff et al.) We're trying to solve a bottleneck in one of our web-applications that was introduced when we started allowing users to generate reports on-demand. Our infrastructure is as follows: 1 server acting as a Webserver/DBServer (ColdFusion 7 and MSSQL 2005) It's serving a web...
[ 0.5507994294166565, 0.0923580750823021, 0.28282076120376587, -0.005887371953576803, -0.3409561812877655, -0.19238005578517914, 0.1904706507921219, 0.09066347777843475, -0.03894026577472687, -0.38673099875450134, 0.06975054740905762, 0.18893809616565704, -0.19771090149879456, -0.03763839974...
SQL Server using resources for the huge queries and afterward ColdFusion generating multi page PDFs. We're not exactly sure what the best practice would be to remove some load, but restricting access to the reports isn't an option at the moment. We've considered denormalizing data to other tables to simplify the mos...
[ 0.27925726771354675, -0.011496283113956451, 0.2961437404155731, 0.2668290436267853, -0.18729153275489807, -0.45131567120552063, -0.06605350971221924, -0.0550045371055603, -0.11072603613138199, -0.4988969564437866, 0.3474489450454712, 0.33512094616889954, -0.36809754371643066, 0.33516851067...
remains: generating PDFs is resource intensive. We would like to offload that task to the reporting server as well, but being in a secured web-application we can't just fire HTTP GET to create PDFs with the user logged in the web-application from server 1 and displaying it in the web-application but generating/fetchi...
[ 0.4722379744052887, 0.18776766955852509, 0.48363763093948364, 0.3057728707790375, -0.05242086201906204, -0.4876302480697632, -0.014163648709654808, -0.39681583642959595, -0.2858331799507141, -0.4843016564846039, -0.016435066238045692, 0.7704226970672607, 0.06540004163980484, -0.05540591478...
logged in the web-application from server 1 and displaying it in the web-application but generating/fetching it on server 2 without validating the user's credential..." why can't you? you're using the world's easiest language for writing webservices. here are my suggestions. first, move the database to it's own serve...
[ 0.9274698495864868, 0.0456426776945591, 0.4736359417438507, 0.3085319995880127, 0.2345980852842331, -0.4762912094593048, 0.13052314519882202, -0.11487743258476257, -0.3661850690841675, -0.7214247584342957, 0.08687586337327957, 0.4870360493659973, -0.04392174258828163, -0.09190238267183304,...
data. you should have a firewall in place between your cf and sql server to give you more security. last reason is for scalability. if you ever need to throw more resources or cluster your database, it's easier when it's on it's own server. now for the webservices. what you can do is install cf on another server and w...
[ 0.6971799731254578, 0.17684584856033325, 0.570602536201477, 0.4672669470310211, -0.020696120336651802, -0.5958133339881897, -0.05715666338801384, -0.056999191641807556, -0.48528215289115906, -0.5275037288665771, 0.1159227192401886, 0.4691319167613983, -0.32581108808517456, 0.13415963947772...
generate the report. now for the pdfs themselves. one of the methods i've done in the pass is generating a hash based on some parameters passed (user credentials and the generated sql to run the query) and then once the pdf is generated, you assign the hash to the name of the pdf and save it on disk. now you have a si...
[ 0.31132957339286804, 0.13266116380691528, 0.4617806077003479, 0.3683599829673767, -0.34818342328071594, -0.5139966011047363, -0.25746801495552063, -0.1998228281736374, -0.16637840867042542, -0.45390716195106506, -0.03269519284367561, 0.5545520782470703, -0.27160146832466125, 0.110390305519...
to do a little work and your application will magnitudes faster.
[ 0.5702881217002869, 0.0191300380975008, 0.017196081578731537, 0.1447543501853943, -0.17429086565971375, -0.050459686666727066, 0.46252724528312683, -0.1508084535598755, 0.003214005148038268, -0.8494889736175537, 0.28367704153060913, 0.5683038830757141, 0.3070198595523834, 0.084969356656074...
I will be deploying my first WCF service in the next few days on a Test server (MS Server 2003 O/S). This particular service will do nothing more than run some queries against a SQL Server 2005 (most likely on the same box) and return the values to the caller. My question is, unlike the "classic" web services, with W...
[ 0.2648635506629944, 0.1878783106803894, 0.7069772481918335, -0.03973038122057915, -0.23919294774532318, -0.2989540696144104, 0.29589709639549255, -0.30209892988204956, -0.17941692471504211, -0.7148439884185791, 0.26150229573249817, 0.5791260004043579, -0.29278403520584106, 0.09941715002059...
internal, on the intranet. Is there a difference if they use HTTP or TCP? Again, are there speed differences? Hopefully my question makes sense. I've been boning up on WCF services just the past few days. I'm happy to clarify if needed. If the callers are on the intranet, your best bet will be to host in a windows ser...
[ 0.1516760289669037, 0.06512747704982758, 0.48058053851127625, 0.01981895975768566, -0.15283243358135223, 0.19381368160247803, 0.33512914180755615, 0.08866440504789352, -0.4681187570095062, -0.9168580770492554, -0.030269363895058632, 0.7036305665969849, -0.009515431709587574, 0.179261282086...
I'm new to NAnt and have been able to create a `<target>` which 1) Deletes any code from the current folder 2) Exports fresh code from SVN 3) Builds the code in the default directory which is the PrecompiledWeb folder (its a web app) Here it is: ``` <target name="export" description="export code from svn"> <de...
[ 0.2440435141324997, -0.05234110727906227, 0.39502331614494324, -0.10494677722454071, -0.1626434475183487, 0.18326842784881592, 0.2645725607872009, -0.26483678817749023, -0.3846343159675598, -0.9408397078514099, -0.0051645925268530846, 0.46130770444869995, 0.03502756729722023, 0.24313446879...
the necessary tag/property? Thank you! **EDIT** Thanks to Scott and Si, I'm getting closer to a solution, but I still don't have anything that works. There comments led me to this article on [MSBuild's Output Path Property](http://www.markhneedham.com/blog/2008/08/14/msbuild-use-outputpath-instead-of-outdir/). Using...
[ 0.08198276907205582, -0.002968549495562911, 0.7545478940010071, -0.08270163834095001, 0.08443821221590042, -0.0642896369099617, 0.47182679176330566, -0.7378081679344177, -0.050586894154548645, -0.7036660313606262, 0.029270676895976067, 0.5794496536254883, -0.23160776495933533, -0.038294330...
contains a web site and a class library, it publishes the class library dll to the specified output path, but it *still* publishes the actual web site to the default PrecompiledWeb folder. Does anyone have any suggestions for how to change the PrecompiledWeb folder path from NAnt? Thanks again to everyone who's helpe...
[ -0.08053505420684814, -0.057968612760305405, 0.5771404504776001, 0.08033273369073868, -0.1552944779396057, -0.06427684426307678, 0.35668063163757324, -0.40212905406951904, -0.222963348031044, -0.8668908476829529, -0.13181181252002716, 0.3768813908100128, -0.15477587282657623, 0.03596617653...
<arg value="/p:WebProjectOutputDir=${Build.Output}" /> <arg value="/p:Configuration=Release" /> </exec> ``` One can specify and override some of properties for msbuild. In order to specify the output directory, override the **OutputDir** property. ``` <target name="export" description="export code from svn"> ...
[ -0.35579559206962585, 0.05124766379594803, 0.625323474407196, -0.41562893986701965, -0.2400636076927185, 0.16799460351467133, 0.29468992352485657, -0.6856043934822083, -0.23961889743804932, -0.597483217716217, -0.35704272985458374, 0.6772167682647705, -0.2764955163002014, 0.349676221609115...
</msbuild> </target> ```
[ -0.1318598985671997, 0.30763357877731323, 0.06416867673397064, -0.1813969910144806, -0.18673644959926605, -0.171735942363739, 0.13649789988994598, 0.37761762738227844, -0.03388749808073044, -0.8769851326942444, -0.5255804657936096, 0.19432473182678223, -0.3855929672718048, 0.21275579929351...
I have a problem with a large database I am working with which resides on a single drive - this Database contains around a dozen tables with the two main ones are around 1GB each which cannot be made smaller. My problem is the disk queue for the database drive is around 96% to 100% even when the website that uses the D...
[ 0.08591197431087494, 0.22457529604434967, 0.3520657420158386, 0.17257006466388702, -0.0633726641535759, 0.15385758876800537, 0.07748857140541077, -0.037744056433439255, -0.2978247404098511, -0.44512325525283813, 0.08886446803808212, 0.5892731547355652, -0.16845734417438507, 0.4462468624114...
details. What are the reasons why the disk queue is always high no matter the website traffic? What can be done to help improve performance on a database this size? Any suggestions would be appreciated! The database is an MS SQL 2000 Database running on Windows Server 2003 and as stated 16GB in size (Data File...
[ -0.05102638527750969, 0.20027785003185272, 0.4586063623428345, 0.27315106987953186, -0.26574069261550903, -0.23814508318901062, 0.002506592543795705, 0.08657724410295486, -0.38111573457717896, -0.4766848683357239, 0.15642768144607544, 0.5505223870277405, -0.009651749394834042, 0.3132772445...
<exec program="svn" commandline="export ${MySVN.Repos} ${MySVN.Dest}" /> <msbuild project="${Solution.Filename}"> <property name="Configuration" value="Release"/> <property name="OutputDir" value="${Output.Dir}"/> </msbuild> </target> ```
[ -0.04217169061303139, -0.22657646238803864, 0.5212083458900452, -0.04708514362573624, -0.024382775649428368, 0.03344462811946869, 0.10322751849889755, -0.3003992438316345, -0.19365805387496948, -0.5872162580490112, -0.4594637453556061, 0.5020622611045837, -0.10589128732681274, 0.3269284367...