text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
shortcut to a small client app for your service in the global startup group. This app will then launch along with every user session, and can be used start other apps (if so desired) without any juggling of user credentials, sessions and/or desktops. Also, this shortcut can be moved/disabled by administrators as desir...
[ 0.24749812483787537, -0.2932274341583252, 0.20807580649852753, 0.17285634577274323, 0.030750764533877373, -0.1176551952958107, 0.2935410737991333, 0.3346310257911682, -0.33285418152809143, -0.49337446689605713, -0.24443566799163818, 0.4046246111392975, -0.2313801497220993, 0.17303243279457...
Can anyone please tell me if Certifying Authorities (CAs) are allowed to make modifications to the Certificate Signing Request (CSR) before actually signing the certificate with their own private key? Specifically, I'd like to know if it's valid for the CA to insert additional fields (such as EKUs) into the cert befo...
[ 0.88869708776474, 0.2864864468574524, 0.6267366409301758, 0.054556217044591904, 0.25412407517433167, -0.3302406966686249, 0.05204928293824196, -0.2266216278076172, -0.4087672829627991, 0.05969586223363876, -0.3814984858036041, 0.1454344242811203, 0.24776308238506317, 0.06234511360526085, ...
is up to the CA to enforce the type of certificates (and the associated uses) that it will issue. The CA is not actually modifying the request so much as issuing a cert of a permitted type.
[ 0.7036422491073608, 0.4411377012729645, 0.5886109471321106, 0.11795805394649506, 0.1800723671913147, -0.5199276804924011, -0.06479343771934509, -0.043324995785951614, -0.04175224527716637, -0.008113881573081017, -0.5105767250061035, 0.3047430217266083, 0.2059262990951538, -0.00264314794912...
I'm using SQLAlchemy 0.5rc, and I'd like to add an automatic filter to a relation, so that every time it tries to fetch records for that relation, it ignores the "remote" ones if they're flagged as "logically\_deleted" (a boolean field of the child table) For example, if an object "parent" has a "children" relation th...
[ 0.03658537194132805, 0.12398648262023926, 0.06685085594654083, 0.11260044574737549, 0.04918637499213219, 0.08869897574186325, -0.08136162906885147, -0.24748685956001282, -0.20638616383075714, -0.543769359588623, 0.23075664043426514, 0.4227519631385803, -0.23781216144561768, 0.5697205662727...
and Children.logically_deleted == False`", but is it correct to write "and" in this way?) **Edit:** I managed to do it in this way ``` children = relation("Children", primaryjoin=and_(id == Children.parent_id, Children.logically_deleted==False)) ``` but is there a way to use a string as primaryjoin instead? The ...
[ 0.20841678977012634, 0.19415952265262604, 0.17770510911941528, -0.04438460245728493, 0.07564328610897064, 0.24059046804904938, 0.1563282012939453, -0.23748351633548737, -0.1720821112394333, -0.15390554070472717, -0.17176491022109985, 0.5033445954322815, -0.3509792387485504, 0.0373033173382...
that comes with eagerloading and joins. For logical deletion, it might be better to map the whole class over a select that ignores deleted values: ``` mapper(Something, select([sometable], sometable.c.deleted == False)) ```
[ -0.17960891127586365, -0.5198588967323303, -0.04604713246226311, 0.03145148605108261, 0.10080957412719727, -0.04912919923663139, 0.19034406542778015, 0.15123815834522247, -0.20928896963596344, -0.5524837374687195, -0.2331525683403015, 0.35838738083839417, -0.3380502164363861, 0.01471058838...
Is there a way to customize Firebug's keyboard shortcuts? I love being able to step through JavaScript code using Firebug's *Script* panel, but it looks like I'm limited to either using the default keyboard shortcuts for stepping over/into/out of code or using the mouse to click the appropriate button. Am I missing s...
[ 0.4456630051136017, 0.0030430289916694164, 0.5573854446411133, -0.0029176475945860147, 0.014321918599307537, 0.08548453450202942, 0.1977282166481018, -0.10790286958217621, -0.5037184357643127, -0.5668961405754089, -0.12201379239559174, 0.6471967697143555, -0.4811461567878723, -0.0819250941...
``` Windows: ``` %APPDATA%\Mozilla\Firefox\Profiles\<profile>\extensions\firebug@software.joehewitt.com\ ``` Then modify this file (these are my remapping settings): **content/firebug/debugger/script/scriptPanel.js** (Firebug 2.0) ``` this.keyListeners = [ chrome.keyCodeListen("F5", Events.isShift...
[ -0.13982726633548737, 0.273351788520813, 0.7662227749824524, -0.3883213996887207, 0.15915074944496155, 0.15494093298912048, 0.5339266657829285, -0.3648298680782318, -0.062416303902864456, -0.7475644946098328, -0.7039974331855774, 0.7182790040969849, -0.5170378684997559, -0.1037007346749305...
chrome.keyCodeListen("F5", null, Obj.bind(this.resume, this, context), true), chrome.keyListen("/", Events.isControl, Obj.bind(this.resume, this, context)), chrome.keyCodeListen("F6", null, Obj.bind(this.stepOver, this, context), true), chrome.keyListen("'", Events.isControl, Obj.bind(this.stepO...
[ -0.13952697813510895, -0.04146677255630493, 0.4738887548446655, -0.404154509305954, -0.09947913140058517, 0.5056400895118713, 0.5413491129875183, -0.35017678141593933, -0.057112645357847214, -0.8329313397407532, -0.5655304789543152, 0.6731371283531189, -0.48602116107940674, -0.488926619291...
]; ``` In versions before 2.0 you should also change the localization file, so the tooltips should the correct keys: **locale/en-US/firebug.properties** ``` firebug.Continue=Continue (F5) firebug.StepOver=Step Over (F6) firebug.StepInto=Step Into (F7) firebug.StepOut=Step Out (F8) ``` And that is all. Unfortunate...
[ -0.33017995953559875, -0.1492718756198883, 1.0108110904693604, -0.3996073007583618, 0.40062153339385986, -0.2707898020744324, 0.6521894931793213, -0.3695911169052124, -0.43400752544403076, -0.412748783826828, -0.7084078788757324, 0.4870681166648865, -0.3163198232650757, 0.05040732771158218...
I'm making my way through the early [Data Access Tutorials](http://www.asp.net/learn/data-access/?lang=cs) on Microsoft's ASP.NET website and it occurred to me that this all seems awfully similar to what I have read about separating your logic and presentation code using the [MVC pattern](http://en.wikipedia.org/wiki/M...
[ 0.30312344431877136, -0.024113774299621582, 0.3921027183532715, -0.01762566901743412, -0.15162581205368042, -0.22692424058914185, 0.03621111065149307, -0.02667166106402874, -0.5172023177146912, -0.6976581811904907, 0.056745223701000214, 0.30508455634117126, -0.18972717225551605, 0.26686343...
concept, implementation can differ; you have this in ASP.NET whereas in Java there's one framework called [Struts](http://en.wikipedia.org/wiki/Apache_Struts), which is an implementation MVC. DAL & BLL patterns differ from the MVC pattern in terms of concepts; but NOT this specific implementation. MVC is actually achi...
[ 0.4729539752006531, -0.20457597076892853, 0.42517077922821045, 0.10352380573749542, -0.2954881489276886, -0.023269934579730034, 0.13673734664916992, -0.7462719678878784, -0.4903387427330017, -0.45579656958580017, -0.26496291160583496, 0.39702677726745605, -0.196487694978714, 0.007961371913...
Any suggestions on how to improve DataGridViewComboBoxColumn performace with large item sets? I've got a DataGridView with several columns of type DataGridViewComboBoxColumn. I'm databinding those combobox columns to a rather large collection (10k+ items). As a result it's very slow to display the items (when i click ...
[ 0.1342204362154007, -0.24146898090839386, 0.45977476239204407, 0.2472723424434662, -0.3889380693435669, 0.23785239458084106, 0.3015056550502777, -0.08917439728975296, -0.3368242383003235, -0.9389781355857849, 0.27505743503570557, 0.270581990480423, -0.22455859184265137, -0.0551366694271564...
Is there anyway to decompile java webstart application? Start the application, then fetch the JAR(s) from the webstart cache. Proceed to decompile like with any other Java application.
[ 0.2502734065055847, 0.045914702117443085, 0.3017043173313141, 0.12543527781963348, 0.1608748883008957, 0.003885468700900674, 0.3626972436904907, -0.36168980598449707, -0.17361772060394287, -0.2648580074310303, -0.10607495158910751, 0.5359535813331604, -0.16862204670906067, 0.00443573808297...
After I open something with emacsclient, when I kill that buffer (C-x k) I get a confirmation dialog: ``` Buffer `blah' still has clients; kill it? (yes or no) ``` But when I kill buffers opened directly from Emacs I don't. Is there a way not to get them when emacsclient opened them? This worked for me: ``` (remove...
[ 0.5160678029060364, 0.14253252744674683, 0.5087456703186035, -0.13732239603996277, -0.07235956192016602, -0.03270511329174042, 0.49975958466529846, 0.016794828698039055, -0.4005751609802246, -0.6237583756446838, -0.1738487035036087, 0.6748470067977905, -0.449981689453125, 0.224861919879913...
I'd like to create a webpage layout with the sidebar to the right and the main content flowing around the sidebar. Requirements: 1. Content below the sidebar should occupy all of the available width 2. Content below the sidebar should not wrap when it hits the left of the sidebar 3. Main content should *precede* the ...
[ 0.31151753664016724, 0.07890193909406662, 0.652646005153656, -0.0236283540725708, -0.212571382522583, -0.2116333693265915, 0.09869900345802307, -0.08731971681118011, -0.017298365011811256, -0.7655061483383179, -0.3025093674659729, 0.2188042849302292, -0.17470282316207886, -0.13664691150188...
A sidebar before the main content in the markup is not an option here. The sidebar will contain supplemental information and adverts. If this is before the main content in the markup it will be annoying to CSSless browsers and screenreader users (even with 'skip to ...' links). This could be achieved without the fourt...
[ 0.31204134225845337, 0.18430902063846588, 0.47581395506858826, 0.04777801036834717, -0.27512305974960327, -0.10625974833965302, 0.0159993264824152, 0.057454001158475876, -0.14906340837478638, -0.4593628942966461, -0.20434553921222687, 0.09514658153057098, -0.1633894443511963, -0.1238128542...
CSS, relevant bits only): ``` <body> <div id="content"> <p> Lorem ipsum .... </p> <p> Pellentesque .... </p> <div id="sidebar"> /* has some form of fixed width */ </div> </div> </body> ``` Example layout: [alt text http://webignition.net/images/layoutexample.png](http:/...
[ 0.13934993743896484, -0.06872143596410751, 0.34995001554489136, 0.011204925365746021, -0.41930127143859863, 0.07525315880775452, -0.15958206355571747, -0.05674944445490837, -0.4416489899158478, -0.7685754895210266, -0.3773494362831116, 0.18510080873966217, -0.20523016154766083, -0.07132782...
is much more valuable than just being told it can't. **Update**: I'm happy to see answers that don't meet all of the five requirements, so long as an answer states which requirement is being ignored plus the consequences (pros and cons) of ignoring the requirement. I can then make an informed compromise. **Update 2**...
[ 0.43567731976509094, -0.029724622145295143, 0.4712885022163391, 0.01585155911743641, -0.007679431699216366, -0.22042804956436157, 0.31124168634414673, -0.3612770438194275, 0.12136072665452957, -0.6813607811927795, -0.29607778787612915, 0.6777151226997375, -0.08827468752861023, -0.311683058...
<p>Lorem ipsum ....</p> <p>Pellentesque ....</p> <div id="sidebar">content</div> </div> ``` CSS: ``` #content {position:relative;} #sidebar {width:150px; position:absolute; top:0; right:0;} .noJs {padding-right:150px;} .noJs #floatSpace {display:none;} .js #floatSpace {float:right; width:150px;} ``` This satis...
[ -0.09000669419765472, -0.17395246028900146, 0.974642813205719, -0.050649117678403854, -0.13958971202373505, 0.2244308590888977, -0.03373230993747711, -0.3842541575431824, -0.3554084300994873, -0.6915356516838074, -0.15641510486602783, 0.4970397651195526, -0.058661919087171555, -0.209843218...
requirement of keeping the floatSpace height in sync with the sidebar height. If the sidebar is dynamic or has lazy-loading content, you must re-sync.
[ 0.31678929924964905, -0.04193853586912155, 0.6533597111701965, 0.22752787172794342, 0.12568949162960052, -0.05776204541325569, 0.13958142697811127, -0.30250832438468933, -0.22556501626968384, -0.4659215211868286, -0.03668608516454697, 0.6937401294708252, -0.04411010816693306, -0.3837826251...
I have the following code block in my xslt; ``` <xsl:when test="StatusData/Status/Temperature > 27"> <td bgcolor="#ffaaaa"> <xsl:value-of select="StatusData/Status/Temperature" /> </td> </xsl:when> ``` But as you might guess when the value is 34,5 ins...
[ 0.3414642810821533, 0.1422383189201355, 0.4116249084472656, -0.3740975558757782, -0.15638576447963715, -0.0038414765149354935, 0.552937388420105, -0.26286551356315613, 0.072272390127182, -0.2970618009567261, 0.004127100575715303, -0.09662465751171112, -0.11922076344490051, 0.42545780539512...
makes integer comparison not possible. I thought replacing , with . would be solution that needs a char replace. My question is how I can do this or It would be great to know more about string operations in XSLT... There is a `translate()` function in XPath: ``` test="translate(StatusData/Status/Temperature, ",", ".")...
[ 0.05952496826648712, 0.11412934958934784, -0.00273161381483078, -0.10898256301879883, -0.27497655153274536, 0.10683757811784744, 0.32881245017051697, -0.192657932639122, 0.03860723227262497, -0.5544151067733765, 0.008751233108341694, 0.48036783933639526, -0.19200897216796875, -0.0843115299...
I am having an string like this string str = "dfdsfdsf8fdfdfd9dfdfd4" I need to check whether the string contains number by looping through the array. What about a regular expression: ``` bool val = System.Text.RegularExpressions.Regex.IsMatch(str, @"\d"); ```
[ 0.1065821498632431, 0.15693266689777374, 0.37389063835144043, -0.3124794661998749, 0.05776861682534218, -0.1449611932039261, 0.4768236577510834, -0.16437600553035736, -0.2629286050796509, -0.5523895621299744, -0.15769542753696442, 0.5583146214485168, -0.25002092123031616, 0.060444470494985...
I have to deal with very large text files (2 GBs), it is mandatory to read/write them line by line. To write 23 millions of lines using ofstream is really slow so, at the beginning, I tried to speed up the process writing large chunks of lines in a memory buffer (for example 256 MB or 512 MB) and then write the buffer ...
[ 0.09963146597146988, 0.15679499506950378, 0.3520648181438446, -0.07860404253005981, -0.03546738252043724, 0.0810738056898117, 0.31370070576667786, -0.03318541496992111, -0.09616530686616898, -0.5941140651702881, 0.15081632137298584, 0.36769282817840576, -0.17386621236801147, -0.05132276564...
also depends on the disk scheduler policy (managed by the OS, in my case Linux). Any idea about how to improve the performance? PS: I have been thinking about using a background child process (or a thread) to read/write the data chunks while the program is processing data but I do not know (mainly in the case of the...
[ 0.5977926850318909, -0.07599639892578125, 0.19425489008426666, 0.20810376107692719, 0.1406911164522171, -0.10428392142057419, -0.3024881184101105, 0.20380271971225739, -0.22703410685062408, -0.9996857047080994, -0.15485580265522003, 0.4428449273109436, 0.03557555750012398, -0.0582593046128...
doing some measurements: * How long does your code take to read/write a 2GB file, * How fast can the '[dd](http://en.wikipedia.org/wiki/Dd_%28Unix%29#Benchmarking_drive_performance)' command read and write to disk? Example... `dd if=/dev/zero bs=1024 count=2000000 of=file_2GB` * How long does it take to write/read u...
[ 0.30027464032173157, 0.09114941209554672, 0.15553046762943268, 0.13212288916110992, 0.05861520394682884, 0.12598338723182678, 0.30434274673461914, -0.5251116752624512, -0.24303515255451202, -0.728745698928833, 0.22056318819522858, 0.6369948387145996, 0.18374693393707275, -0.048913791775703...
and it is the same > using fstream getline (line by line). > cp takes almost 2 minutes to copy the > file. In which case, your're hardware-bound. *cp* has to read and write, and will be seeking back and forth across the disk surface like mad when it does it. So it will (as you see) be more than twice as bad as the ...
[ 0.14734137058258057, 0.1429196149110794, 0.6268849968910217, 0.2887217104434967, -0.01201983354985714, -0.2159518301486969, 0.2091083973646164, 0.1680765450000763, -0.2596522867679596, -0.7943533658981323, -0.07847712934017181, 0.529660701751709, 0.011125131510198116, 0.08689161390066147, ...
this...) make sure the disk is physically on the same machine your code is running, otherwise you're network-bound...
[ 0.07130424678325653, 0.11455366015434265, 0.22764496505260468, 0.48420900106430054, 0.21622790396213531, -0.26001816987991333, 0.023273145779967308, 0.09928766638040543, -0.26159554719924927, -0.7063825726509094, -0.2028597891330719, 0.7876301407814026, -0.12180008739233017, -0.01026503648...
We currently have a web application loading a Spring application context which instantiates a stack of business objects, DAO objects and Hibernate. We would like to share this stack with another web application, to avoid having multiple instances of the same objects. We have looked into several approaches; exposing th...
[ 0.34041041135787964, 0.0019904791843146086, -0.12783335149288177, 0.10645872354507446, -0.42702212929725647, -0.10196404159069061, 0.08381945639848709, -0.050894346088171005, -0.5024473071098328, -0.2321714162826538, -0.025477077811956406, 0.10907714068889618, -0.2571042776107788, 0.027268...
we want to have only one instance of Hibernate. This is due to problems with invalidation of Hibernate's 2nd level cache when running several client applications working with the same datasource. Also, the business/DAO/Hibernate stack is growing rather large, so not duplicating it just makes more sense. First, we trie...
[ 0.33846724033355713, -0.1416264772415161, 0.07959030568599701, 0.44236037135124207, -0.22244472801685333, -0.12794536352157593, 0.37332913279533386, -0.20600250363349915, -0.22870709002017975, -0.1723247617483139, -0.0017477491637691855, 0.32311782240867615, -0.3209465444087982, -0.2250524...
apps. Then we tried binding the business layer directly to JNDI. Although Spring didn't offer any method for this, using JNDITemplate to bind them was also trivial. But this led to several new problems: 1) Security manager denies access to RMI classloader, so the client failed once we tried to invoke methods on the JN...
[ 0.3559621274471283, 0.10743428766727448, 0.2996503710746765, 0.17432901263237, -0.1049392819404602, 0.011163624934852123, 0.3422833979129791, -0.506787121295929, -0.1369110345840454, -0.3004723787307739, -0.06544561684131622, 0.5481806993484497, -0.639150857925415, -0.19021956622600555, ...
haven't looked too much into EJB yet, but after the first two tries I'm wondering if what we're trying to achieve is at all possible. To sum up what we're trying to achieve: One JBoss instance, several web apps utilizing one stack of business objects on top of DAO layer and Hibernate. Best regards, Nils Are the web...
[ 0.19867242872714996, 0.06692564487457275, 0.25863441824913025, 0.12392958998680115, -0.25479570031166077, -0.2031528800725937, 0.31079089641571045, -0.0257768202573061, -0.3571748733520508, -0.5369157791137695, 0.09401734918355942, 0.22812530398368835, 0.0643571987748146, -0.04500969871878...
within a single jar as an Java EE artifact with a ejb-jar.xml file (in EJB3, this will likely be practically empty). Then bundle you Entity classes in to a seperate jar file. Next, you will build each web app in to their own WAR file. Finally, all of the jars and the wars are bundled in to a Java EE EAR, with the as...
[ 0.45629167556762695, 0.5527552962303162, 0.21226313710212708, 0.0716046392917633, -0.246928870677948, 0.3972868323326111, 0.21954397857189178, -0.5270681977272034, -0.14883098006248474, -0.7605241537094116, -0.0678543746471405, 0.46728846430778503, -0.09311927109956741, 0.08479201793670654...
share the common EJB back end, so you have only a single 2nd level cache. You also use local references and calling semantic to talk to the EJBs since they're in the same server. No need for remote calls here. I think this solves quite well the issue you're having, and its is quite straightforward in Java EE 5 with E...
[ 0.13151182234287262, 0.13632023334503174, -0.016440827399492264, -0.0016620381502434611, -0.2502381205558777, -0.1404058337211609, 0.30236461758613586, 0.24906733632087708, -0.42757517099380493, -0.6266822218894958, 0.09693598747253418, 0.3340754210948944, 0.02042807638645172, -0.132028043...
When I ran [ReSharper](http://en.wikipedia.org/wiki/ReSharper) on my code, for example: ``` if (some condition) { Some code... } ``` ReSharper gave me the above warning (Invert "if" statement to reduce nesting), and suggested the following correction: ``` if (!some condition) retu...
[ 0.18029829859733582, -0.03977556154131889, -0.1166694164276123, -0.26313018798828125, -0.08070345968008041, -0.2745300829410553, 0.48119375109672546, -0.08502833545207977, 0.12405753135681152, -0.26156383752822876, -0.3508395850658417, 0.6097388863563538, -0.2145870327949524, 0.24093592166...
is not necessarily bad. It might be better to return immediately if it makes the intent of the code clearer. For example: ``` double getPayAmount() { double result; if (_isDead) result = deadAmount(); else { if (_isSeparated) result = separatedAmount(); else { if (_isRetired) re...
[ 0.19855700433254242, -0.40704426169395447, 0.37521010637283325, -0.38744959235191345, 0.35422974824905396, -0.029048679396510124, 0.4251402020454407, -0.11593738198280334, -0.14810723066329956, -0.2802567183971405, -0.42260000109672546, 0.612472653388977, -0.3103238642215729, 0.28359842300...
}; } return result; }; ``` In this case, if `_isDead` is true, we can immediately get out of the method. It might be better to structure it this way instead: ``` double getPayAmount() { if (_isDead) return deadAmount(); if (_isSeparated) return separatedAmount(); if (_isRetired) return re...
[ 0.13997142016887665, -0.15330593287944794, 0.1420469731092453, -0.3141564428806305, 0.10386313498020172, -0.19022716581821442, 0.4455283284187317, -0.423675537109375, -0.02646961621940136, -0.24795837700366974, -0.3272051215171814, 0.7147384881973267, -0.26947638392448425, 0.28047931194305...
Ok guys and gals, here is my problem: I've built a custom control that uses a textbox to present data to the user. When the user interacts with the control the **value of that textbox is altered with client side javascript**. I also have a button on my page. When the user clicks the button I want to take the value ...
[ 0.22933657467365265, 0.3033899664878845, 0.43536078929901123, -0.020809708163142204, -0.05147473141551018, -0.2206413894891739, -0.014995451085269451, 0.14137357473373413, -0.4656328856945038, -0.39307790994644165, 0.09060908854007721, 0.6454494595527649, -0.532995343208313, 0.096953310072...
custom control the textbox is empty. However, I can see the correct value in the Request.Form collection. Am I doing something wrong here? Or should I be reading from Request.Form?! Ah ha! I've solved my own problem! Because I had set Readonly="True" on the textbox control ASP.NET was not picking up it's value from t...
[ 0.07638946175575256, -0.11694832891225815, 0.568038284778595, 0.0329863503575325, -0.09498020261526108, 0.14505364000797272, 0.2703981101512909, -0.3191148340702057, -0.36296218633651733, -0.4831680655479431, 0.07518496364355087, 0.9955787658691406, -0.08461698144674301, 0.1093405783176422...
I have a Windows Service written in Delphi which runs a number of programs. On Stopping the service, I want to also close these programs. When the service was originally written, this worked fine, but I think I've updated the tProcess component and now - The subordinate programs are not being closed. in tProcess - ...
[ 0.34022554755210876, 0.14730775356292725, 0.4263157844543457, -0.21541135013103485, 0.34241175651550293, -0.028761854395270348, 0.0978597030043602, 0.1964392364025116, -0.17153488099575043, -0.5731914639472961, -0.27222201228141785, 0.6668633818626404, -0.30740121006965637, 0.3371746838092...
if FProcess.Wait then begin WaitForSingleObject( ProcessInfo.hProcess , Infinite ); GetExitCodeProcess( ProcessInfo.hProcess , ExitCode ); if Assigned( FProcess.FOnFinished ) then FProcess.FOnFinished( FProcess , ExitCode ); end; CloseHandle( ProcessInfo.h...
[ -0.2353416234254837, -0.035161182284355164, 1.0302276611328125, -0.15432217717170715, 0.6491689682006836, 0.21577048301696777, -0.14670732617378235, -0.25174781680107117, 0.03412873297929764, -0.4899459481239319, -0.5848287343978882, 0.29879239201545715, -0.3394724130630493, 0.412360042333...
end; ``` Each of the executables called by this are Windows GUI Programs (With a close button at the top). When I stop the service, I also want to stop (not kill) the programs I've started up via the createProcess procedure. How would you do this? You want to enumerate open windows that match your launched Proces...
[ 0.17015889286994934, 0.09351383149623871, 0.5585702061653137, -0.3081921339035034, 0.04835906997323036, 0.0421786792576313, 0.28364068269729614, -0.10022049397230148, 0.06581305712461472, -0.582497775554657, -0.5180294513702393, 0.6864358186721802, -0.622846782207489, 0.3060070276260376, ...
begin PostMessage(hHwnd, WM_CLOSE, 0, 0); //tell window to close gracefully Result := False; //can stop enumerating end else begin Result := TRUE; //keep enumerating until you find your id end; end; ``` Then you'll want to utilize this in your code when you want to shut down the la...
[ 0.061796724796295166, -0.07598721981048584, 0.9062977433204651, -0.2542271018028259, 0.30351829528808594, 0.04728104546666145, 0.5432038307189941, -0.27410706877708435, 0.030193140730261803, -0.6525944471359253, -0.6515506505966187, 0.5592129826545715, -0.48349660634994507, 0.0366815701127...
//tell it to close EnumWindows(@MyTerminateAppEnum, YourSavedProcessInfo.dwProcessId); if WaitForSingleObject(YourSavedProcessInfo.hProcess, TIMEOUT_VAL) <> WAIT_OBJECT_0 then begin if not TerminateProcess(YourSavedProcessInfo.hProcess, 0) then //didn't close, try to terminate begin /...
[ -0.04249753803014755, 0.1700347512960434, 1.0878442525863647, -0.16222307085990906, 0.5186900496482849, 0.03150172531604767, 0.41363435983657837, 0.1108156219124794, 0.28900641202926636, -0.3467525243759155, -0.5534698963165283, 0.5279330015182495, -0.15363113582134247, 0.5645046830177307,...
I am wondering what to include when building my project. I have a library I need to reference for my project to build but that library has 10 dependencies itself. Should I reference those dependencies as well or should I copy them to the output directory using a post build event? What is the best practice? I find it ...
[ 0.49329423904418945, 0.46098971366882324, 0.3018549382686615, 0.21315090358257294, 0.18453487753868103, 0.021135516464710236, 0.21222300827503204, -0.05232023820281029, -0.23384098708629608, -0.7130167484283447, 0.05579783394932747, 0.36820513010025024, -0.13957087695598602, 0.370250046253...
Visual Studio. Can someone please give me some insight into how to do this right. Thanks. You only need to add references that are directly used by your project. For private assemblies (those not in the GAC) Visual Studio will, by default, copy referenced assemblies (and their dependencies) to your project's output ...
[ 0.6589877605438232, 0.34957998991012573, 0.015183503739535809, -0.011996661312878132, -0.30791449546813965, -0.2787627875804901, 0.2900824248790741, 0.07189439237117767, -0.3809739053249359, -0.5980622172355652, 0.07492413371801376, 0.7273308634757996, -0.41401219367980957, 0.0466825552284...
track of your dependencies' dependencies (usually through pre or post build events).
[ 0.5417020916938782, -0.17659220099449158, 0.6147250533103943, 0.399742066860199, 0.6609206199645996, -0.1613190919160843, 0.13662217557430267, 0.1282767355442047, -0.2780219316482544, -0.4467514455318451, -0.1987234354019165, 0.6628944873809814, -0.024683762341737747, -0.3482559323310852, ...
In IIS I can configure my custom error pages. For each HTTP Error code I can say where to go. Several codes have a number of "sub" codes available. For example 404 has a regular 404, 404;1, 404;2 and so on.. What are they for? When are they returned? Should I make custom pages for these errors? Can I somehow easely...
[ -0.18733100593090057, -0.008370600640773773, 0.1538795381784439, 0.23379147052764893, 0.13489274680614471, 0.19632746279239655, 0.5230894684791565, 0.02332351915538311, -0.4007120430469513, -0.7914376854896545, -0.042118966579437256, 0.2809246778488159, -0.37118154764175415, 0.203742474317...
not displayed in the IIS log: * 401.1 - Logon failed. * 401.2 - Logon failed due to server configuration. * 401.3 - Unauthorized due to ACL on resource. * 401.4 - Authorization failed by filter. * 401.5 - Authorization failed by ISAPI/CGI application. * 401.7 – Access denied by URL authorization policy on the Web serv...
[ 0.10079967230558395, 0.06179523840546608, 0.46591371297836304, -0.042718496173620224, 0.32124730944633484, -0.1259295493364334, 0.5980386137962341, 0.13128329813480377, -0.37160277366638184, -0.5766507983207703, -0.323824018239975, 0.4724721610546112, -0.3765985667705536, 0.158979386091232...
you needn't.
[ 0.5046272277832031, 0.39812007546424866, -0.6376600861549377, 0.08323412388563156, 0.00722136814147234, -0.01464668195694685, 0.30882224440574646, 0.027639564126729965, 0.07217026501893997, -0.5770591497421265, -0.13284321129322052, 0.44253915548324585, -0.3795933127403259, 0.5482235550880...
I'd like to hear what is the motivation behind the bulk of sealed classes in the .Net framework. What is the benefit of sealing a class? I cannot fathom how not allowing inheritance can be useful and most likely not the only one fighting these classes. So, why is the framework designed this way and wouldn't it be unbr...
[ 0.5491724610328674, 0.026227319613099098, -0.12109792977571487, 0.4746420383453369, -0.12108907848596573, -0.393105685710907, 0.4173257052898407, 0.04876618832349777, -0.020001297816634178, -0.6819513440132141, 0.09775188565254211, 0.38490909337997437, -0.08601388335227966, 0.5862952470779...
- Attributes are recommended to be sealed for lookup runtime speed. type.GetCustomAttributes(typeof(MyAttribute)) will perform significantly faster if MyAttribute is sealed. The MSDN article for this topic is [Limiting Extensibility by Sealing Classes](http://msdn.microsoft.com/en-us/library/ms229023(VS.80).aspx).
[ -0.06317883729934692, 0.00581887923181057, 0.47654861211776733, 0.3670465052127838, 0.09919252246618271, -0.2565634250640869, 0.358938992023468, -0.2833893597126007, -0.0821760892868042, -0.5721315741539001, -0.5508027672767639, 0.5062445998191833, -0.06327959150075912, 0.1385830193758011,...
I have a written a Visual C++ console application (i.e. subsystem:console) that prints useful diagnositic messages to the console. However, I would like to keep the application minimized most of the time, and instead of minimizing to the taskbar, appear as a nice icon on the system tray. I would also like to restore t...
[ 0.34431564807891846, 0.2819001078605652, 0.4118097424507141, 0.1008065864443779, 0.0024539928417652845, -0.10875300318002701, 0.33349835872650146, 0.07501114159822464, 0.0991702601313591, -0.831430971622467, -0.010326248593628407, 0.6158922910690308, -0.19900791347026825, 0.209287613630294...
a Guid with `CoCreateGuid()` * Convert it to a string * Set the title of the console window to this guid with `SetConsoleTitle()` * Find the `hWnd` of the your window with the Guid as the tile with `FindWindow()` * And you can do it from the usual way from this point. [See http://www.gidforums.com/t-9218.html for more ...
[ 0.2696697413921356, -0.0016444841166958213, 0.4103882312774658, 0.0011636903509497643, -0.0841250941157341, -0.5192710161209106, 0.28333768248558044, 0.2731812000274658, 0.15357606112957, -0.8754412531852722, -0.30629631876945496, 0.7730963230133057, -0.43665438890457153, 0.073256969451904...
something you are supposed to be able to do in the Windows API.**
[ 0.608784019947052, -0.16118574142456055, 0.21514543890953064, 0.2304961383342743, 0.19202806055545807, -0.42310646176338196, 0.5766788721084595, 0.19681638479232788, -0.24136018753051758, -0.5564135909080505, -0.1644783914089203, 0.39720314741134644, 0.14770178496837616, 0.0587010979652404...
I have a Nant build script which CruiseControl uses to build a solution on-demand. However, we only recently got CruiseControl so our official build number is different from what is listed in CruiseControl. I know CruiseControl injects some properties into build scripts so that I can access the CC build number in the...
[ 0.4710182547569275, 0.21559813618659973, 0.5293968915939331, 0.01709555834531784, -0.05589227378368378, -0.19123995304107666, -0.1253003478050232, 0.01785663142800331, -0.39551740884780884, -0.6441466808319092, 0.2958981394767761, 0.5477120876312256, 0.31992146372795105, 0.1818543374538421...
successful build number: 123, not 2, so how do I pass that value back up? A custom build labeler is required for this. Perforce is our source control provider and we derive our version number from it. The code is as follows: ``` /// <summary> /// Gets the latest change list number from perforce, for ccnet to consume a...
[ 0.3775605857372284, 0.10321187227964401, 0.9232960939407349, -0.21936951577663422, 0.009406485594809055, 0.31980621814727783, 0.020167933776974678, -0.5728699564933777, 0.06275463104248047, -0.6829075217247009, -0.23762628436088562, 0.7180820107460022, -0.08468442410230637, 0.0528034493327...
Required = false)] public string P4Port = String.Empty; // perforce user [ReflectorProperty("user", Required = false)] public string P4User = String.Empty; // perforce client [ReflectorProperty("client", Required = false)] public string P4Client = String.Empty; // perforce view (i.e....
[ 0.357830673456192, -0.26646074652671814, 0.9735078811645508, -0.029719943180680275, -0.036234840750694275, 0.3375648558139801, 0.3492357134819031, -0.5987982153892517, 0.10996353626251221, -0.6256837248802185, -0.2556403875350952, 0.8533616065979004, -0.3023483157157898, 0.2170675545930862...
return GetLatestChangelist(); } // Stores latest change list into a label public void Run( IIntegrationResult result ) { result.Label = GetLatestChangelist(); } // Gets the latest change list public string GetLatestChangelist() { // Build the arguments to pass to p4 to...
[ -0.08439036458730698, -0.45201653242111206, 0.9472097158432007, -0.10093719512224197, 0.15795588493347168, 0.24345381557941437, 0.1975724846124649, -0.6399437189102173, -0.38614505529403687, -0.4234338402748108, -0.34691768884658813, 0.47265908122062683, -0.328488290309906, -0.018875418230...
" + P4Port + " -u " + P4User + " -c " + P4Client + " changes -m 1 -s submitted " + P4View; Log.Info( string.Format( "Getting latest change from Perforce using --> " + theArgs ) ); // Execute p4 ProcessResult theProcessResult = new ProcessExecutor().Execute( new ProcessInfo( P4Executable, theArg...
[ 0.019012033939361572, -0.10881560295820236, 1.1030884981155396, -0.2051914632320404, 0.29302409291267395, 0.4013763666152954, 0.10036254674196243, -0.5961440205574036, -0.2929800748825073, -0.5433711409568787, -0.5376423001289368, 0.4006521999835968, -0.2597954273223877, 0.2434917539358139...
Regex( @"\s[0-9]+\s", RegexOptions.IgnoreCase ); Match theMatch = theRegex.Match( theProcessResult.StandardOutput ); return theMatch.Value.Trim(); } } ``` The method, **GetLatestChangelist**, is where you would probably insert your own logic to talk to your version control system. In Perforce ther...
[ 0.2859371304512024, -0.15380485355854034, 0.5221189260482788, 0.08471384644508362, 0.18940649926662445, -0.2248261570930481, 0.23877166211605072, -0.1255900263786316, -0.12794789671897888, -0.5069412589073181, -0.04099186137318611, 0.6375064253807068, -0.41223376989364624, 0.30477422475814...
ccnet.exe). Next you modify your ccnet project file to utilize this labeller. We did this with the [default labeller block](http://confluence.public.thoughtworks.org/display/CCNET/Default+Labeller). Something like the following: ``` <project> <labeller type="p4labeller"> <client>myclient</client> <executable...
[ 0.7872526049613953, -0.10915633291006088, 0.2476596087217331, 0.2574104368686676, -0.09106437116861343, -0.5057522654533386, -0.30064618587493896, -0.07329344004392624, -0.5622377991676331, -0.5584665536880493, 0.184230774641037, 0.30962488055229187, -0.22230392694473267, 0.238697022199630...
know if you have any questions by posting to the comments.
[ 0.5654352307319641, 0.36035534739494324, -0.26000919938087463, -0.018474584445357323, -0.30508342385292053, -0.6282134056091309, 0.30302631855010986, 0.9886594414710999, -0.12197193503379822, -0.36682432889938354, -0.1728842705488205, 0.009274246171116829, 0.33446040749549866, -0.019650714...
is there a way to have a mysql select statement return fully qualified column names like "table.field" without using AS for every single field? like so: ``` SELECT * FROM table1 LEFT JOIN table2 on table1.f_ID = table2.ID ``` and the result would be: "table1.ID", "table1.name", "table2.ID", "table2.name", ......
[ -0.06656818091869354, -0.0321965254843235, 0.3647526204586029, 0.13118824362754822, -0.2781842052936554, 0.026332912966609, -0.017849305644631386, -0.06400780379772186, -0.2618163526058197, -0.3344521224498749, 0.034601785242557526, 0.4622822403907776, -0.26831385493278503, -0.004399987868...
I've become very comfortable in the world of pointer-free, garbage-collected programming languages. Now I have to write a small Mac component. I've been learning Objective-C, but as I confront the possibility of dangling pointers and the need to manage retain counts, I feel disheartened. I know that Objective-C now ha...
[ 0.000056627588492119685, 0.288870632648468, -0.00995793379843235, -0.03213556483387947, -0.04365210235118866, -0.006075252778828144, 0.17234377562999725, -0.12292762100696564, -0.27737846970558167, -0.3159574568271637, -0.016674844548106194, 0.830917239189148, -0.30440977215766907, -0.0719...
Do you mean a chunk of code or a library you are going to hand to other people to link into their apps? If so then it is not realistic to use any of the bridged languages at this time. While a lot of the bridges are very nice, they almost always have complications and issues that most app developers will not be willing...
[ 0.4246411919593811, 0.4445262849330902, -0.03568587452173233, 0.48136106133461, -0.005797963123768568, 0.13919322192668915, 0.05809106305241585, 0.008195258677005768, -0.2619642913341522, -0.5694577693939209, 0.06002701446413994, 0.5092251300811768, -0.27245768904685974, -0.149414047598838...
complete apps using them, doing so often requires a better understanding of Objective C than simply writing an Objective C application, since you need to understand and cope with the language, object model, threading, and memory allocation impedance mismatches that occur. This is also why many people argue that even ...
[ 0.2218170315027237, 0.2833315134048462, 0.1390720158815384, 0.13995246589183807, -0.1874636709690094, -0.0358060821890831, 0.32729846239089966, -0.06657227128744125, -0.3804551362991333, -0.6281789541244507, -0.34120267629623413, 0.5828385949134827, -0.5331730246543884, -0.4210997819900512...
that have been migrating towards, sometimes in such a way that using the bridged language on Tiger and Leopard can have substantial differences. Also, there is currently no bridge support for iPhone, and most bridged languages will not work on it, if that is an issue. Ultimately, if you are writing a library that is g...
[ 0.3203505873680115, 0.30662107467651367, 0.10938622802495956, 0.038992930203676224, 0.03906453773379326, 0.21105711162090302, 0.10301041603088379, 0.012667669914662838, -0.347270667552948, -0.6403763890266418, 0.004472104366868734, 0.5478724241256714, -0.6290347576141357, -0.08753773570060...
I am looking for a generic, bidirectional 1 to 1 Dictionary class in C# (2), ie. a `BiDictionaryOneToOne<T, S>` which is guaranteed to only contain one of each value and key (up to RefEquals anyway), and which can be searched using either key or value. Anyone know of one, or should I just implement it myself? I can't b...
[ 0.10255954414606094, -0.13717520236968994, 0.2939862608909607, -0.10469523072242737, -0.09585820138454437, -0.19288110733032227, 0.39369073510169983, -0.48290932178497314, -0.028673319146037102, -0.27264833450317383, -0.011436790227890015, 0.49010980129241943, -0.3384268283843994, 0.093763...
Jon's - thanks), archived here and open for improvement : ``` /// <summary> /// This is a dictionary guaranteed to have only one of each value and key. /// It may be searched either by TFirst or by TSecond, giving a unique answer because it is 1 to 1. /// </summary> /// <typeparam name="TFirst">The type of the "key"<...
[ -0.24888157844543457, -0.1860925853252411, 0.8538437485694885, -0.09390175342559814, -0.015377088449895382, 0.1322481334209442, 0.4472882151603699, -0.286530464887619, -0.2471511960029602, -0.5779759287834167, -0.37584438920021057, 0.13845744729042053, -0.20005616545677185, -0.104544684290...
add the pair to the dictionary. /// Throws an exception if either element is already in the dictionary /// </summary> /// <param name="first"></param> /// <param name="second"></param> public void Add(TFirst first, TSecond second) { if (firstToSecond.ContainsKey(first) || secondToFirst.C...
[ -0.19016271829605103, -0.22324295341968536, 0.1835334300994873, -0.24215905368328094, -0.21320563554763794, 0.29059863090515137, 0.21537385880947113, -0.5373150110244751, -0.010150330141186714, -0.551899790763855, -0.4980463683605194, 0.13760341703891754, -0.46061521768569946, -0.062116801...
} /// <summary> /// Find the TSecond corresponding to the TFirst first /// Throws an exception if first is not in the dictionary. /// </summary> /// <param name="first">the key to search for</param> /// <returns>the value corresponding to first</returns> public TSecond GetByFirst(TFirst fir...
[ -0.18108585476875305, -0.46935003995895386, 0.11494576185941696, -0.1928263008594513, -0.31067416071891785, 0.10545728355646133, 0.4041592478752136, -0.3590066432952881, -0.24273277819156647, -0.6391809582710266, -0.5554254055023193, 0.03193821758031845, -0.26775023341178894, -0.0721541419...
ArgumentException("first"); return second; } /// <summary> /// Find the TFirst corresponing to the Second second. /// Throws an exception if second is not in the dictionary. /// </summary> /// <param name="second">the key to search for</param> /// <returns>the value corresponding ...
[ -0.44628003239631653, -0.3918784558773041, 0.2903931140899658, -0.15675228834152222, -0.1682947874069214, 0.2379167228937149, 0.3399202823638916, -0.19787822663784027, -0.011801113374531269, -0.6496084928512573, -0.378493070602417, 0.29911696910858154, -0.27283018827438354, 0.0937661901116...
first)) throw new ArgumentException("second"); return first; } /// <summary> /// Remove the record containing first. /// If first is not in the dictionary, throws an Exception. /// </summary> /// <param name="first">the key of the record to delete</param> public void R...
[ -0.23520177602767944, -0.31323084235191345, 0.1182493045926094, -0.35066649317741394, -0.24008671939373016, 0.03088662400841713, 0.23052836954593658, -0.40337905287742615, -0.030077964067459106, -0.4172847270965576, -0.571312427520752, 0.2038573920726776, -0.4899275004863739, 0.29404631257...
if (!firstToSecond.TryGetValue(first, out second)) throw new ArgumentException("first"); firstToSecond.Remove(first); secondToFirst.Remove(second); } /// <summary> /// Remove the record containing second. /// If second is not in the dictionary, throws an Exception. /// ...
[ -0.3732133209705353, -0.4646967351436615, -0.0973627120256424, -0.214936763048172, -0.14301717281341553, 0.1213715448975563, 0.4017165005207062, -0.20388075709342957, -0.11497513949871063, -0.7638393640518188, -0.4090695381164551, 0.02292981557548046, -0.3267814517021179, 0.323370546102523...
TFirst first; if (!secondToFirst.TryGetValue(second, out first)) throw new ArgumentException("second"); secondToFirst.Remove(second); firstToSecond.Remove(first); } #endregion #region Try methods /// <summary> /// Tries to add the pair to the dictionary. /...
[ -0.2852191627025604, -0.6231586933135986, 0.4720088243484497, -0.2736310064792633, 0.05282755568623543, 0.19833366572856903, 0.5408573150634766, -0.05716288834810257, 0.10233055800199509, -0.8994875550270081, -0.5111876130104065, 0.2465599626302719, -0.11720923334360123, 0.2943620383739471...
/// </summary> /// <param name="first"></param> /// <param name="second"></param> /// <returns>true if successfully added, false if either element are already in the dictionary</returns> public Boolean TryAdd(TFirst first, TSecond second) { if (firstToSecond.ContainsKey(first) || secondToFir...
[ -0.165094256401062, -0.30712059140205383, 0.1641804575920105, -0.19241438806056976, -0.09155730158090591, 0.325258731842041, 0.47650671005249023, -0.5187146067619324, -0.05918460711836815, -0.5549681782722473, -0.5609564185142517, 0.016913384199142456, -0.28018617630004883, -0.000400041608...
/// <summary> /// Find the TSecond corresponding to the TFirst first. /// Returns false if first is not in the dictionary. /// </summary> /// <param name="first">the key to search for</param> /// <param name="second">the corresponding value</param> /// <returns>true if first is in the dictionary...
[ -0.0438680537045002, -0.33763712644577026, 0.07197615504264832, -0.14166758954524994, -0.362085223197937, 0.46639344096183777, 0.20255905389785767, -0.4138038754463196, -0.30380019545555115, -0.5665590763092041, -0.4823720455169678, 0.020788678899407387, -0.33983370661735535, -0.0334721617...
/// Find the TFirst corresponding to the TSecond second. /// Returns false if second is not in the dictionary. /// </summary> /// <param name="second">the key to search for</param> /// <param name="first">the corresponding value</param> /// <returns>true if second is in the dictionary, false otherwi...
[ -0.20465894043445587, -0.2832567095756531, 0.10909898579120636, -0.0853772982954979, -0.12052271515130997, 0.28510335087776184, 0.2823595702648163, -0.39784008264541626, -0.23173941671848297, -0.5614210367202759, -0.34727394580841064, 0.07003702223300934, -0.3051452338695526, 0.00638673873...
the record containing first, if there is one. /// </summary> /// <param name="first"></param> /// <returns> If first is not in the dictionary, returns false, otherwise true</returns> public Boolean TryRemoveByFirst(TFirst first) { TSecond second; if (!firstToSecond.TryGetValue(first,...
[ -0.1103496178984642, -0.4230312407016754, 0.05815603956580162, -0.17556704580783844, -0.110441192984581, 0.1876833289861679, 0.38540732860565186, -0.16635499894618988, 0.014848875813186169, -0.570846438407898, -0.5083703398704529, 0.137693852186203, -0.3059602379798889, 0.14709694683551788...
return true; } /// <summary> /// Remove the record containing second, if there is one. /// </summary> /// <param name="second"></param> /// <returns> If second is not in the dictionary, returns false, otherwise true</returns> public Boolean TryRemoveBySecond(TSecond second) { TF...
[ -0.13719907402992249, -0.4680343568325043, -0.07958032935857773, -0.17276282608509064, 0.03395966812968254, 0.09587763994932175, 0.4683340787887573, -0.20038171112537384, 0.14752055704593658, -0.5710718035697937, -0.2643439471721649, 0.21561852097511292, -0.28752338886260986, 0.19980415701...
secondToFirst.Remove(second); firstToSecond.Remove(first); return true; } #endregion /// <summary> /// The number of pairs stored in the dictionary /// </summary> public Int32 Count { get { return firstToSecond.Count; } } /// <summary> /// Remov...
[ -0.2933872640132904, -0.6230326890945435, 0.21723757684230804, -0.24739398062229156, -0.19175469875335693, 0.14032615721225739, 0.3435117304325104, -0.06580215692520142, -0.0681920275092125, -0.9532644748687744, -0.29926666617393494, -0.05471476539969444, -0.612899661064148, 0.112443670630...
dictionary. /// </summary> public void Clear() { firstToSecond.Clear(); secondToFirst.Clear(); } } ```
[ -0.1445731222629547, -0.128778338432312, 0.26895031332969666, -0.1826385259628296, 0.1116584911942482, -0.10740390419960022, 0.3662675619125366, 0.40613484382629395, 0.04472486674785614, -0.7558918595314026, -0.5578432679176331, 0.32734447717666626, -0.2997201085090637, 0.08249226212501526...
Im trying to craft a regex that only returns `<link>` tag hrefs Why does this regex return all hrefs including <a hrefs? ``` (?&lt;=&lt;link\s+.*?)href\s*=\s*[\'\"][^\'\"]+ ``` ```html <link rel="stylesheet" rev="stylesheet" href="idlecore-tidied.css?T_2_5_0_228" media="screen"> <a href="anotherurl">Slash Boxes&lt;...
[ -0.04003618657588959, -0.19638711214065552, 0.8029881715774536, -0.021532617509365082, -0.03459090739488602, -0.0038983565755188465, 0.2440112978219986, -0.5687496066093445, -0.011002756655216217, -0.6742376089096069, -0.12026306986808777, 0.4971446692943573, -0.7117288112640381, 0.1192561...
I am trying to make a copy of a database to a new database on the same server. The server is my local computer running SQL 2008 Express under Windows XP. Doing this should be quite easy using the SMO.Transfer class and it almost works! My code is as follows (somewhat simplified): ``` Server server = new Server("serv...
[ 0.023830045014619827, 0.16162674129009247, 0.6366615295410156, -0.08534282445907593, 0.0896473377943039, -0.08538155257701874, 0.42388269305229187, -0.34788382053375244, 0.05092284455895424, -0.8723392486572266, 0.009706948883831501, 0.28925183415412903, -0.30527105927467346, 0.33174985647...
" + newDatbase.Name, conn)) { switchDatabase.ExecuteNonQuery(); } foreach (string scriptLine in transferScript) { using (SqlCommand scriptCmd = new SqlCommand(scriptLine, conn, transaction)) { int res = scriptCmd.ExecuteNonQuery(); } } } ``` What I do h...
[ 0.3159487545490265, -0.1245662197470665, 0.7598299980163574, -0.02943187952041626, 0.2508685290813446, -0.19156533479690552, 0.15511275827884674, -0.5217678546905518, -0.1501600444316864, -0.7889073491096497, -0.007255829870700836, 0.49547839164733887, -0.15957124531269073, 0.3941391408443...
class and finally running the script in the new database. This works fine for copying the structure, but the `CopyData` option doesn't work! Are there any undocumented limits to the `CopyData` option? The documentation only says that the option specifies whether data is copied. I tried using the `TransferData()` m...
[ 0.1127854511141777, -0.20364496111869812, 0.1827893704175949, 0.3397841453552246, 0.14332079887390137, -0.3407898545265198, 0.359123557806015, -0.060866616666316986, -0.1534898430109024, -0.5148538947105408, 0.04122478887438774, 0.7944023609161377, -0.13646866381168365, 0.20761637389659882...
the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)" I also tried to enable Named Pipes on the server, but that doesn't help. Edit: I found a solution that works by making a backup and then...
[ -0.20216314494609833, 0.22407266497612, 0.19880887866020203, 0.17464444041252136, 0.16951175034046173, -0.13777145743370056, 0.5043995380401611, 0.0954393744468689, -0.4082249402999878, -0.6869747042655945, 0.14942225813865662, 0.42739978432655334, -0.24607929587364197, 0.37680596113204956...
and then a restore is much faster and I will be using it as long as the new copy should live on the same server as the original. The working code is as follows: ``` ServerConnection conn = new ServerConnection("rune\\sql2008"); Server server = new Server(conn); Database newdb = new Database(server, "new database");...
[ 0.01263714674860239, 0.015452113933861256, 0.9595059752464294, -0.03874671831727028, 0.3169915974140167, -0.11802590638399124, 0.3274231553077698, -0.16452504694461823, -0.1769101768732071, -0.6761618852615356, -0.3614278733730316, 0.6943224668502808, -0.11867821961641312, 0.25538238883018...
server as a named instance instead of using the other connection options.
[ -0.24655871093273163, -0.11425154656171799, 0.05702368915081024, 0.3063129186630249, -0.24752655625343323, 0.1006091758608818, 0.32262280583381653, 0.44307741522789, -0.49701127409935, -0.6758003830909729, -0.19041697680950165, -0.17514333128929138, -0.2894321084022522, 0.8310896158218384,...
Why does the PRINT statement in T-SQL seem to only sometimes work? What are the constraints on using it? It seems sometimes if a result set is generated, it becomes a null function, I assumed to prevent corrupting the resultset, but could it's output not go out in another result set, such as the row count? So, if you h...
[ 0.3660142719745636, -0.07189472019672394, -0.16949044167995453, 0.008386753499507904, -0.24845047295093536, -0.03334345668554306, -0.024515725672245026, 0.044664233922958374, -0.21787863969802856, -0.3153563439846039, -0.1531759798526764, 0.4666351079940796, -0.4894208312034607, 0.22336791...
is "Messages" and that's where the 'print' statements will show up. If you're concerned about the *timing* of seeing the print statements, you may want to try using something like ``` raiserror ('My Print Statement', 10,1) with nowait ``` This will give you the message immediately as the statement is reached, rath...
[ 0.058031003922224045, 0.12415287643671036, 0.2839066982269287, -0.20984798669815063, -0.43383175134658813, -0.18923935294151306, 0.05422963574528694, -0.011123276315629482, -0.08595553040504456, -0.22260940074920654, -0.1941344290971756, 0.48009705543518066, -0.24696968495845795, -0.046665...
We're using Microsoft.Practices.CompositeUI.EventBroker to handle event subscription and publication in our application. The way that works is that you add an attribute to your event, specifying a topic name, like this: ``` [EventPublication("example", PublicationScope.Global)] public event EventHandler Example; ``` ...
[ 0.06779409199953079, -0.0819682776927948, 0.14058765769004822, 0.09480443596839905, -0.03957264497876167, -0.19375061988830566, -0.21063874661922455, 0.09573207795619965, -0.2901076078414917, -0.5658057332038879, -0.023708466440439224, 0.43558111786842346, -0.42880550026893616, 0.218999087...
at runtime. So I need to be able to add attributes to a method at runtime, before we pass our debug object to the EventInspector. How do I add attributes to a method at runtime? What you are trying to achieve is quite complicated, so I will try to provide something just to get you started. This is what I think you wou...
[ -0.021432889625430107, -0.1552661657333374, -0.009514136239886284, 0.1854918897151947, -0.08426907658576965, -0.24708116054534912, -0.2128140926361084, -0.17972247302532196, -0.011403915472328663, -0.6618492603302002, 0.19644539058208466, 0.602897047996521, -0.20758435130119324, -0.0181303...
to identify the event that has called it (this depends on you - what parameters will have, etc.). 2. Define a `dynamic type` using `TypeBuilder` (as described [here](http://msdn.microsoft.com/en-us/library/system.reflection.emit.typebuilder.aspx)), that inherits from your class. This class would be the class of your `d...
[ -0.04943173751235008, -0.30067580938339233, -0.04204348102211952, 0.10044804215431213, -0.2623661160469055, -0.2424701601266861, 0.1890813559293747, -0.5047740936279297, -0.06552734971046448, -0.28551700711250305, -0.05701219290494919, 0.4043510854244232, -0.44108322262763977, 0.1513684242...
method that calls something (Actually it's the classic "Hello world"). You will need to do a lot of tweaking in order to get it done well, but you will learn a lot about reflection. Good luck!
[ 0.23971761763095856, 0.02988368086516857, 0.49509918689727783, 0.27195075154304504, -0.15923365950584412, -0.26846426725387573, 0.5312264561653137, -0.0005410611047409475, -0.11259761452674866, -0.341419517993927, 0.11387304961681366, 0.32364821434020996, 0.08514552563428879, 0.01627309434...
In all of my other .net apps my build process (a mixture of nant and custom tasks) automatically updates the [AssemblyVersionAttribute] AssemblyInfo.cs with the current build number before the call to msbuild, stamping in the build number in the version number. I'm now working on my first BizTalk project and I'd like ...
[ 0.6102837324142456, 0.29746049642562866, 0.2825617790222168, -0.4295993745326996, -0.25009885430336, 0.111643947660923, 0.5696160197257996, 0.1305290311574936, -0.4029022455215454, -0.7084592580795288, 0.06366612762212753, 0.4529722332954407, -0.47691065073013306, 0.06753196567296982, -0...
a deeper problem! I have a project for my schemas and another for my pipelines, the pipelines project references my schemas project as I have a flat file dis/assemblers. The problem comes when I update the version numbers, as updating them even from within visual studio does not update the pipeline components referenc...
[ 0.15220250189304352, 0.18857957422733307, 0.2433404177427292, 0.07742282748222351, -0.10989414155483246, 0.05323603376746178, 0.5216425657272339, -0.08567143976688385, -0.0840098187327385, -0.7752030491828918, 0.25697362422943115, 0.9085240960121155, -0.14993172883987427, 0.290314406156539...
updating the version numbers of the BizTalk projects in the property pages, then building the projects and manually updating the references to them in the properties of all the pipeline components that reference them? This means that I can't have my build process control the build number part of my version numbers! O...
[ 0.8886142373085022, 0.3637595772743225, -0.002746145473793149, -0.11289849132299423, -0.08463189750909805, -0.034367576241493225, 0.4963979125022888, 0.041438184678554535, -0.15583883225917816, -0.44976699352264404, 0.34983932971954346, 0.6128579378128052, -0.12124749273061752, 0.126710489...