text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
for many pools. However, depending on your pool management strategy, a [`ConcurrentLinkedQueue`](http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/ConcurrentLinkedQueue.html) may work too. In a pooling application, a blocking "put" is not appropriate. Controlling the maximum size of the queue is the job of ...
[ 0.12940803170204163, -0.42000988125801086, -0.06162136048078537, 0.18755410611629486, 0.12119356542825699, -0.1398058980703354, -0.10591989755630493, -0.07112842053174973, -0.6880971193313599, -0.4610377848148346, -0.05342068895697594, 0.3608371913433075, -0.4459334909915924, 0.42753663659...
applications want to wait until a resource is available. A "take" operation that blocks, at least temporarily, is much more efficient than a "busy wait"—repeatedly polling until a resource is available. The `LinkedBlockingQueue` is a good choice in this case. A borrower can block indefinitely with [`take`](http://java....
[ -0.08408689498901367, -0.23730231821537018, 0.279266893863678, 0.07316489517688751, 0.00018766305583994836, -0.006854155566543341, 0.07157804816961288, -0.11736488342285156, -0.45028164982795715, -0.472785621881485, -0.21274442970752716, 0.4065786302089691, -0.3416277766227722, 0.208563193...
a gray area where it would be nice to share a resource (e.g., memory) as much as possible, but speed is even more important. In the worse case, this degenerates to every thread having its own instance of the resource; then it would have been more efficient not to bother trying to share among threads. Both of these col...
[ 0.005815981887280941, -0.2736538350582123, 0.08261355757713318, 0.41031166911125183, 0.06065090000629425, -0.11434058099985123, -0.010064834728837013, -0.218842551112175, -0.5196758508682251, -0.8758904337882996, -0.12995697557926178, 0.27108678221702576, -0.27850237488746643, 0.3358564972...
memory-wise.
[ 0.06775970757007599, 0.22327318787574768, -0.08802758902311325, 0.17898190021514893, -0.03333887457847595, 0.10008247196674347, 0.26256263256073, 0.312363862991333, 0.10118500143289566, -0.2984597384929657, 0.12876813113689423, 0.4614298343658447, 0.20309317111968994, -0.14032688736915588,...
I want to select a blob col from one table, base64 encode it and insert it into another tables. Is there any way to do this without round tripping the data out of the DB and through my app? I was looking for the same thing and I've just seen that MySQL 5.6 has a couple of new string functions supporting this functional...
[ 0.07578175514936447, -0.06569693982601166, 0.37741342186927795, -0.1789846122264862, -0.05915967375040054, 0.23466968536376953, -0.03537275269627571, -0.2298714965581894, -0.009398763068020344, -0.5490893125534058, 0.024303918704390526, 0.4838109314441681, -0.5441130995750427, 0.1302875578...
I'm trying to add a custom font as a resource in my application. I have a "CustomFont" directory in the application and all the fonts inside of it are set to "Resource" ``` <Window.Resources> <Style x:Key="Gotham-XLight"> <Setter Property="TextElement.FontFamily" Value="/CustomFonts;Compon...
[ -0.08407482504844666, -0.06149713695049286, 0.6345064043998718, 0.011061265133321285, -0.2870406210422516, 0.45034706592559814, -0.017184004187583923, -0.4697886109352112, -0.085037000477314, -0.803014874458313, 0.1502404659986496, 0.5947234630584717, -0.02701864205300808, 0.04847762733697...
Foreground="White" Text="TextBlockTimer" Margin="105,242.974,0,226.975" HorizontalAlignment="Left" Width="221.919" /> ``` But I'm not seeing my font as people say. Am I doing something wrong? You may want to check the name of the font, you need to specify the name of the font not the name of t...
[ 0.3220747113227844, 0.41318538784980774, 0.4437585175037384, -0.14342187345027924, 0.09691303223371506, 0.3482357859611511, 0.14688757061958313, -0.14854136109352112, -0.23006241023540497, -0.8201249241828918, -0.016753574833273888, 0.556781530380249, 0.07323797792196274, -0.06056670472025...
I am supporting a system which sends an automatic populated email alert. I have rendered the page using a combination of CSS and html. The alert is sent from a system called Salesforce. My problem is, I have never owned a blackberry, and don't have access to one for testing purposes, but I know the alert looks like cra...
[ 0.19920282065868378, 0.23267246782779694, 0.40495672821998596, -0.21625369787216187, -0.12468152493238449, 0.09401136636734009, 0.3602907359600067, 0.2792384922504425, -0.1087363138794899, -0.7782672047615051, 0.04887094348669052, 0.502627968788147, -0.16332648694515228, -0.210269600152969...
the [BlackBerry emulators](http://na.blackberry.com/eng/developers/resources/simulators.jsp). Getting email on to them is quite tricky, but you can at least use the browser to test the rendering if you set the message up as a web page. I'm not convinced by joshperry's comment that the rendering is the same across bro...
[ -0.01299194060266018, 0.10702505707740784, 0.22887778282165527, 0.23637878894805908, 0.19736500084400177, 0.2066933959722519, 0.45257556438446045, 0.2456451654434204, 0.04723283275961876, -0.5328037738800049, 0.1424502283334732, 0.6712379455566406, -0.16390711069107056, -0.3917434513568878...
I am curious to learn [Boost](http://www.boost.org/). But I wanted to ask: * How important is it to make the effort to learn Boost? * What prerequisites should one have before jumping on Boost? Why I am curious to know about Boost is that many people are talking about Boost on IRC's channels and here in StackOverflow...
[ 0.5523168444633484, 0.11693311482667923, 0.010661084204912186, 0.11466100811958313, -0.13214601576328278, -0.43259117007255554, 0.007728259079158306, 0.4496060311794281, -0.13351653516292572, -0.2698594331741333, -0.04690120369195938, 0.8563030958175659, 0.1854429841041565, -0.315488368272...
but once you get into data crunching with large numbers, the math libraries especially will seem like a gift from above.
[ 0.2266167253255844, 0.056128717958927155, 0.014019984751939774, 0.6264057159423828, 0.03292552009224892, -0.28994929790496826, -0.10217943787574768, 0.5917708873748779, -0.4248099625110626, -0.5296970009803772, 0.09099414944648743, 0.4035240113735199, 0.41048678755760193, 0.059175930917263...
Have GHC 6.8.3 and wxHaskell-0.10.3 on a Windows XP computer. Installed both as binary distributions, not by building from sources. Built a sample with the following command: ghc --make Paint.hs It works on that same computer it was built on (with GHC and wxHaskell installed), but fails if transferred to another one ...
[ 0.6869376301765442, 0.21836818754673004, 0.43614116311073303, -0.2388702929019928, 0.05190085247159004, -0.37627536058425903, 0.4194006025791168, -0.25085747241973877, 0.23038385808467865, -0.6207407712936401, -0.009041421115398407, 0.6504307389259338, -0.501711368560791, 0.115634948015213...
in the manifests of DLL's (presumably the third-party ones with wxHaskell) that your system is expecting to find installed in places such as WinSxS and SoftwareDistribution in your Windows directory. I am guessing the wxHaskell installation puts the files there. You may be able to find what files the program is lookin...
[ -0.17809194326400757, -0.024592699483036995, 0.16588760912418365, -0.047657471150159836, 0.05351778864860535, -0.03843474015593529, 0.4113747179508209, -0.18180407583713531, -0.49403777718544006, -0.3825342059135437, -0.4155517518520355, 0.5657569766044617, -0.1758277267217636, -0.27785667...
1** redistributables: [<http://www.microsoft.com/downloads/details.aspx?FamilyID=200b2fd9-ae1a-4a14-984d-389c36f85647&DisplayLang=en>](http://www.microsoft.com/downloads/details.aspx?FamilyID=200b2fd9-ae1a-4a14-984d-389c36f85647&DisplayLang=en)
[ -0.40909266471862793, 0.07446947693824768, -0.05016051232814789, 0.3099682629108429, 0.1056300699710846, -0.29213500022888184, 0.05943255126476288, 0.18131373822689056, -0.5379199981689453, -0.7638146877288818, -0.6970184445381165, -0.24419139325618744, -0.6825165152549744, 0.3377926647663...
I have 3 projects in my VS solution. One of them is a Web app, the second one is a Windows Service and the last one a Setup project for my Web app. What I want is by the end of the installation of the web app in my setup project, within my custom action to try and install my windows service given that I have the loca...
[ 0.8255454301834106, -0.01840607449412346, 0.28953951597213745, 0.1535264402627945, -0.050598274916410446, 0.35225173830986023, 0.54833984375, -0.2051895707845688, -0.2477710247039795, -0.7977657318115234, 0.10945674031972885, 0.44565969705581665, 0.022881241515278816, 0.18106216192245483, ...
taken from [here](http://www.tech-archive.net/Archive/VB/microsoft.public.vb.winapi/2006-08/msg00238.html) so full credit goes to whoever wrote this piece of code. Once you add the dll or source file into your project make sure to add the ServiceTools namespace and then you have access to some very handy functionality...
[ 0.23059840500354767, 0.1691148430109024, 0.5950837135314941, 0.17426741123199463, 0.20024631917476654, -0.24165979027748108, 0.6719714403152466, -0.14823578298091888, -0.0028003130573779345, -0.6162039637565613, -0.6822866201400757, 0.5978273153305054, 0.05475977808237076, 0.24165257811546...
I am using ReSharper and love it! However I have one problem, when i hit Shift-Alt-L ReSharper only locates the file in solution explorer if the folder it is located in is open. If the folder is not open, ReSharper doesn't locate the file. Actually, for ReSharper 4.5 we found a way to workaround this problem of VS, so...
[ 0.1589241623878479, -0.12485504150390625, 0.6422139406204224, -0.1845272183418274, -0.056686460971832275, -0.1742464005947113, 0.31750014424324036, 0.2628931403160095, -0.0592559389770031, -1.2045435905456543, 0.07010296732187271, 0.8246740698814392, -0.1663661003112793, 0.2972067296504974...
I have a jsp page with two radio tags. The page contains a struts2 form. When I submit the form one of two radio must be automatically checked. Is it possible to do that? One of the features of a radio input is that an item in a radio set once selected cannot be deselected except by another member of the set being s...
[ 0.6187265515327454, 0.20329269766807556, 0.3059566020965576, 0.01438893936574459, -0.274634450674057, -0.43590617179870605, 0.23019662499427795, -0.6108751893043518, 0.18764525651931763, -0.49346014857292175, -0.03958512097597122, 0.7855591177940369, -0.43820756673812866, 0.048624109476804...
that item. Alternatively you'll just have to add another validation rule in JS and/or the server side.
[ 0.6222204566001892, 0.026804376393556595, 0.2622905969619751, 0.3761310577392578, -0.11059847474098206, -0.347547322511673, -0.06762505322694778, 0.021583914756774902, -0.2619873881340027, -0.19998566806316376, -0.06134043633937836, 0.4425056278705597, 0.05526706576347351, -0.0415252037346...
I have a method, which will accept a parameter of a JQuery Object and will calculate totals for a section. So if you give it a JQuery Object of a div containing the section it will calculate a total for it so you can do this: var $totalcompletion = CalculateSectionCompletion(jQuery("#Section1")); Now I have multiple...
[ -0.01810283772647381, -0.24069102108478546, 0.6723122596740723, -0.10554316639900208, -0.15025871992111206, 0.1371099203824997, -0.026242760941386223, -0.37637585401535034, -0.32372480630874634, -0.13675406575202942, 0.10502421855926514, 0.4264892041683197, -0.2410891056060791, 0.278370797...
can't pass this in to my method. Is there anyway I can loop through all JQuery Objects selected by a query, without writing some dirty code to extract the Id from the DOM object, and call JQuery(valueOfElement.id) and pass it in? You can wrap any DOM element in $(..), as you do with $(document). So I think you should...
[ 0.3859359622001648, -0.12328202277421951, 0.6042349338531494, -0.06699691712856293, 0.1987190842628479, -0.08267857879400253, 0.3248133063316345, -0.5781749486923218, -0.1251678764820099, -0.22236204147338867, -0.11521634459495544, 0.3684947192668915, -0.31280744075775146, 0.26061910390853...
I have a script which uses pexpect to start a CLI program. It works a bit like a shell where you get a prompt where you can enter some commands. The problem I have, I think, is that this program uses a coloured prompt. This is what I do ``` import pprint import pexpect 1 a = pexpect.spawn('program') 2 a.expect("pr...
[ -0.03894902393221855, -0.07279620319604874, 0.47654709219932556, -0.3333660066127777, -0.07542097568511963, -0.012877891771495342, 0.0906529575586319, -0.155479297041893, -0.2526495158672333, -0.5248604416847229, -0.00042234829743392766, 0.6104691624641418, -0.3700091540813446, -0.43019253...
is garbled, normal print does not work, even if I see that the command at line 5 actually produced a lot of output. Does someone know what the problem could be, or is it possible to set the terminal type in pexpect to avoid the colours? I am using tcsh shell Ok, I found the answer. csl's answer set me on the right pa...
[ 0.20703309774398804, 0.06519673764705658, 0.3709874749183655, -0.09092360734939575, -0.04173426330089569, -0.06638398766517639, 0.3467766046524048, 0.1973545104265213, -0.057926665991544724, -0.6262012720108032, 0.025651616975665092, 0.6647424697875977, -0.34328389167785645, 0.080170586705...
:/ But if I do this before spawning a shell: ``` import os os.environ["TERM"] = "dumb" ``` I change the current "TERM" and "dumb" does not support colours, which fixed my issue.
[ 0.2827949821949005, 0.10725616663694382, 0.19782434403896332, -0.4440288245677948, 0.06474967300891876, 0.14788435399532318, 0.41546398401260376, 0.2743706703186035, -0.0247061625123024, -0.4809667468070984, -0.32737496495246887, 0.6599939465522766, -0.3215184211730957, 0.15234655141830444...
I am working on an application where i need to transfer mails from a mailbox to anoter one.I can not send these mails using smtp because this willchange the header information .I am using C# and out look api to process mails . is thre any way i can transfer mails to other mail box without changing mail header. --- By...
[ 0.4407446086406708, 0.06750546395778656, 0.19645172357559204, 0.021878300234675407, -0.2452814131975174, -0.16476061940193176, 0.16300693154335022, 0.020723510533571243, -0.30678391456604004, -1.033348560333252, -0.11004914343357086, 0.0249948650598526, -0.34384509921073914, 0.581847369670...
can be moved from one mail box to another mail box. any pointers. If you cannot load all relevant mailboxes into a single Outlook profile, then this cannot be solved using the Outlook API. It should however be possible to run a standalone application from an administrative account that accesses the Exchange information...
[ 0.3344811201095581, -0.07477763295173645, 0.33805567026138306, 0.13308672606945038, -0.062073834240436554, 0.27194589376449585, 0.17346960306167603, -0.05238770321011543, -0.4456009566783905, -0.9820253252983093, 0.019465841352939606, 0.11286944895982742, -0.21141661703586578, 0.2904579639...
to move messages as they appear then maybe addressing this in a more decentralized fashion via Outlook addins installed on the source machines might be a more sensible approach after all. Maybe if you told us a little bit more about your motivation for moving those items we can come up with an even better solution. If...
[ 0.2734939754009247, 0.07782238721847534, 0.08217188715934753, 0.05441480502486229, -0.036732736974954605, 0.1692562848329544, 0.11584090441465378, -0.014504595659673214, -0.5758017301559448, -0.5868996977806091, -0.11846587806940079, 0.20825940370559692, 0.030882664024829865, -0.1474141627...
Objects) should be especially well suited to get you running ASAP.
[ 0.22651994228363037, -0.08274909853935242, 0.423714816570282, 0.3986307978630066, -0.21826644241809845, -0.03884755074977875, 0.5025295615196228, -0.15967778861522675, -0.5019010901451111, -0.17923787236213684, -0.2772720456123352, 0.6104640960693359, -0.18872615694999695, 0.12360899150371...
I've just started to use linq to sql and have run into a problem with inserting a record with an auto incrementing field. I have created a new instance of a company object defined by linq. it has initialised an auto incrementing field 'companyID' to 0. InsertOnSubmit() fails with the following invalidOperationExceptio...
[ 0.04818010330200195, 0.33360227942466736, 0.4879112243652344, -0.014349582605063915, 0.020122645422816277, -0.20625761151313782, 0.14495374262332916, -0.03628304600715637, -0.04821176454424858, -0.38289719820022583, 0.14678679406642914, 0.651622474193573, -0.3794950544834137, 0.23861205577...
It was to do with primary keys. In the linq designer the primary keys were setup as they should be. In the database the relevant fields were not set as primary keys. I fixed the keys in the databse and this resolved the problem.
[ -0.018069183453917503, 0.06728020310401917, 0.2374880462884903, 0.02601369097828865, -0.05816016346216202, 0.008745120838284492, -0.13153691589832306, -0.11805602163076401, -0.0069258552975952625, -0.17226320505142212, -0.07282412052154541, 0.783920168876648, -0.3777606189250946, -0.002401...
If I want to create a .NET object in the powershell I write something like the following: ``` [System.Reflection.Assembly]::LoadWithPartialName("System.Xml") | out-null" $doc = new-object -typename System.Xml.XmlDocument" ``` If I want to call a static .Net method I use a command similar to the following line: ``` ...
[ 0.2783098518848419, -0.22933049499988556, 0.34798380732536316, 0.11507902294397354, -0.11614377051591873, -0.2838863432407379, 0.1361749768257141, -0.28729766607284546, -0.0932208001613617, -0.6479766368865967, 0.11895673722028732, 0.5933837890625, -0.46224313974380493, 0.19990545511245728...
used to cast variables to a certain type ``` PS C:\> $i = [int]"1" PS C:\> $i.gettype().Name Int32 PS C:\> $j = "1" PS C:\> $j.gettype().Name String PS C:\> ```
[ -0.04073379933834076, -0.1737770438194275, 0.4244174063205719, 0.009509791620075703, -0.1899637132883072, 0.3051896393299103, 0.0009123357012867928, -0.35049968957901, 0.0002777791232801974, -0.5595875382423401, -0.33569014072418213, -0.034020692110061646, -0.6180168390274048, -0.198829323...
I'm currently adding verbose tooltips to our site, and I'd like (without having to resort to a whizz-bang jQuery plugin, I know there are many!) to use carriage returns to format the tooltip. To add the tip I'm using the `title` attribute. I've looked around the usual sites and using the basic template of: ``` <a tit...
[ 0.35303744673728943, 0.057353533804416656, 0.7816957831382751, 0.03606680408120155, -0.20242415368556976, -0.28801944851875305, 0.2587968111038208, -0.220388725399971, -0.07336784154176712, -0.5732757449150085, -0.05071217939257622, 0.7341024875640869, -0.007311289664357901, 0.017283972352...
I have a solution that contains a good deal of projects, I would like to remove the source control bindings completely, how can I do this? **Update:** What I really want to do is move one solution and its projects from TFS 2005 -> 2008. Thats why I am removing the bindings, is there a better way to do this? File -> ...
[ 0.04146633297204971, -0.018516914919018745, 0.4267304241657257, -0.11332511156797409, -0.11483848839998245, -0.2290380448102951, 0.2540089786052704, -0.306801438331604, -0.31941884756088257, -0.47254014015197754, -0.14742939174175262, 0.3812895119190216, -0.15027374029159546, 0.32005494832...
Source Control -> Plug-in Selection). The SCC specification prescribes that all SCC providers should implement this behavior. (I only tested it for VSS, TFS and AnkhSVN)
[ 0.12292831391096115, -0.2967683970928192, 0.38821059465408325, -0.05759621039032936, 0.32036080956459045, -0.2993938624858856, 0.04476434737443924, -0.08352304995059967, -0.07268541306257248, -0.3573167324066162, -0.39230287075042725, 0.6477112174034119, -0.38058191537857056, 0.04250081256...
This one is weird, [I have a page that consists of a html table in a div called 'rates-viewer'](http://www.pickledegg.orchardhostings6.co.uk/bug/wp-test.php). If you load this page in IE (6 or 7), you will notice that the contents of the table headers is misaligned over to the left. If you choose a country from the d...
[ 0.3836308419704437, -0.06630700826644897, 0.24926413595676422, 0.31418824195861816, -0.16557234525680542, -0.44956713914871216, -0.22885476052761078, 0.1458480805158615, -0.3992701470851898, -0.7962778806686401, 0.34600919485092163, -0.022836804389953613, -0.31600046157836914, 0.1463010460...
cause my table header content to be corrected like this? I assumed that my html differed slightly, I'm sure its the same. Can anyone plase help with this one please, its causing me to frown a lot :) I basically need the original html to be lined up correctly, but I'm intrigued as to why this is happening. The JS is ...
[ 0.32996445894241333, 0.139823317527771, 0.5697241425514221, 0.2179560363292694, -0.23425468802452087, -0.2211417257785797, 0.07221358269453049, -0.11351087689399719, -0.0818057432770729, -0.6746825575828552, 0.19987207651138306, 0.3787427842617035, -0.12016698718070984, 0.01644018292427063...
should remove all bindings from the solution and project files. (After this you can switch the SCC provider in Tools -> Options -> Source Control -> Plug-in Selection). The SCC specification prescribes that all SCC providers should implement this behavior. (I only tested it for VSS, TFS and AnkhSVN)
[ 0.32685744762420654, -0.17679142951965332, 0.5322535634040833, -0.10062115639448166, 0.06512218713760376, -0.4763967990875244, 0.26923513412475586, -0.2535988688468933, -0.2713944613933563, -0.456549733877182, -0.3019578158855438, 0.4100344777107239, -0.46790164709091187, 0.128086492419242...
How can I detect which request type was used (GET, POST, PUT or DELETE) in PHP? By using ``` $_SERVER['REQUEST_METHOD'] ``` ### Example ``` if ($_SERVER['REQUEST_METHOD'] === 'POST') { // The request is using the POST method } ``` For more details please see the [documentation for the $\_SERVER variable](htt...
[ 0.03422491252422333, -0.06310335546731949, 0.3911449909210205, -0.04098433256149292, -0.10167929530143738, -0.14154984056949615, 0.19354113936424255, -0.27514737844467163, 0.026403741911053658, -0.5476421117782593, 0.08884286880493164, 0.3286602795124054, -0.06202520802617073, 0.1316785812...
I need to send PUT and DELETE along with POST, GET to a REST API how can I do it? Delphi 7 comes with [Indy](http://www.indyproject.org/Sockets/index.EN.aspx). See the [TIdHTTP component](http://www.indyproject.org/docsite/html/frames.html?frmname=topic&frmfile=!!MEMBEROVERVIEW_TIdHTTP.html) and specificly the Get and ...
[ -0.03535695746541023, -0.23941311240196228, 0.522602379322052, 0.028530271723866463, -0.054639484733343124, -0.10814439505338669, 0.27398574352264404, 0.005741800181567669, -0.02373293973505497, -0.6533586382865906, -0.2677356004714966, 1.0925164222717285, -0.37105172872543335, -0.35457447...
This is a fairly basic question, which for some reason, a proper solution escapes me at the moment. I am dealing with a 3rd-party SDK which declares the following structure: ``` struct VstEvents { VstInt32 numEvents; ///< number of Events in array VstIntPtr reserved; ///< zero (Reserved for future use) V...
[ -0.011086073704063892, 0.08703934401273727, 0.17907410860061646, -0.09138794243335724, 0.16808286309242249, -0.20697979629039764, 0.32107776403427124, -0.2298155575990677, -0.20436225831508636, -0.42044880986213684, -0.09838258475065231, 0.6350703239440918, -0.2670138478279114, 0.388808220...
it's going to cause memory corruption. So how am I supposed to properly deal with a structure like this? Should I allocate my own VstEvent\* array and then point events[0] to it? If you know how many there are you can allocate it with ``` struct VstEvents *evnts; evnts = (struct VstEvents*)malloc(sizeof(struct VstEv...
[ 0.0814579650759697, 0.07622743397951126, 0.17818540334701538, 0.21555732190608978, 0.12135420739650726, 0.3136211633682251, 0.0784892588853836, -0.420655220746994, -0.25114205479621887, -0.5935943126678467, -0.0903472974896431, 0.6093353629112244, -0.05732300877571106, 0.06522052735090256,...
I'm using Crystal Reports 11 (and VB6) to open a report file, load the data from an Access database and either print the report to a printer or export the report to another .rpt file (for later printing without the database) Even for small amounts of data the process is somewhat slow. Profiling showed about 1.5 second...
[ 0.624088704586029, 0.13268081843852997, 0.617346465587616, 0.14933134615421295, -0.25182396173477173, -0.042045820504426956, 0.22401538491249084, -0.4694582223892212, -0.22731751203536987, -0.5910570025444031, 0.2178344875574112, 0.48507818579673767, -0.10539703816175461, 0.076623424887657...
(struct VstEvents*)malloc(sizeof(struct VstEvents) + numEvents*sizeof(VstEvent*)); ``` This will allocate 2 **extra** slots
[ -0.07227150350809097, 0.08958572894334793, 0.40929800271987915, 0.045356083661317825, 0.3642008602619171, 0.45699188113212585, -0.13426712155342102, -0.33856484293937683, -0.1895781010389328, -0.5571192502975464, -0.32782626152038574, 0.6675982475280762, 0.10971206426620483, -0.01565568149...
I need to compile a wmi vbscript to executable (to automate configuration in several computers). Any free vbscript compiler or any other suggestions? Try <http://www.xneat.com/application-builder/index.htm> looks trusted
[ 0.42620083689689636, 0.09992973506450653, 0.40621528029441833, 0.2102445363998413, -0.13192790746688843, -0.5905722379684448, 0.3604262173175812, -0.006605572532862425, 0.11045555770397186, -0.7733487486839294, 0.13956785202026367, 0.44461074471473694, -0.3018861711025238, 0.05442757532000...
On a Unix systems it's very easy to compile the CLASSPATH by using find: ``` LIBDIR=`find lib/ -name \*.jar` for DIR in $LIBDIR: do CLASSPATH="$CLASSPATH:$DIR" done java -classpath $CLASSPATH com.example.MyClass ``` What would be the aquivalent in a Windows batchfile? The same can be achieved from Windows XP on...
[ -0.18723511695861816, -0.17368003726005554, 0.44874122738838196, -0.2698621451854706, -0.20606040954589844, 0.006920378655195236, 0.2518230378627777, -0.01206124760210514, 0.014080758206546307, -0.6371937990188599, 0.17473509907722473, 0.7452444434165955, -0.47570282220840454, 0.0125001780...
I have a WPF ListView which repeats the data vertically. I cannot figure out how to make it repeat horizontally, like the slideshow view in Windows Explorer. My current ListView definition is: ``` <ListView ItemsSource="{StaticResource MyDataList}" ItemTemplate="{StaticResource ListViewTemplate}"> </ListView> ``` Th...
[ 0.21344223618507385, -0.3709717392921448, 1.1189534664154053, -0.39515167474746704, -0.19472230970859528, 0.050912339240312576, 0.09156302362680435, -0.44639620184898376, -0.6386409997940063, -0.7808167934417725, 0.08488595485687256, 0.3705030083656311, 0.05078338086605072, 0.1180520579218...
<VisualBrush Stretch="None" AlignmentX="Center" AlignmentY="Top" Visual="{Binding ElementName=imgPhoto}"> <VisualBrush.RelativeTransform> <TransformGroup>
[ -0.07990369200706482, -0.6504763960838318, 0.3442516624927521, -0.294462114572525, -0.3077095150947571, 0.3067464828491211, 0.23159509897232056, -0.5592173337936401, 0.25595298409461975, -0.7590645551681519, 0.1427759826183319, 0.5397164225578308, -0.2400617152452469, -0.24677413702011108,...
<MatrixTransform Matrix="1,0,0,-1,0,0" /> <TranslateTransform Y="1" /> </TransformGroup>
[ 0.029216010123491287, -0.44894808530807495, 0.5825049877166748, -0.20169928669929504, -0.2714580297470093, 0.2642700970172882, 0.17609484493732452, -0.3192066252231598, 0.49081894755363464, -0.5845344662666321, -0.22988063097000122, 0.4408264458179474, -0.19826312363147736, -0.114913038909...
</VisualBrush.RelativeTransform> </VisualBrush> </Rectangle.Fill> <Rectangle.OpacityMask> <RadialGradientBrush
[ -0.3628408908843994, -0.48369327187538147, 0.8872212171554565, 0.03214579075574875, -0.25797560811042786, 0.5478602647781372, -0.022078178822994232, -0.34679940342903137, -0.06708875298500061, -0.7848986983299255, 0.2190399020910263, 0.3527580201625824, -0.24553164839744568, 0.010524990037...
GradientOrigin="0.5,1.041"> <RadialGradientBrush.RelativeTransform> <TransformGroup> <ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="1.202"
[ -0.7964388728141785, -0.8602178692817688, 0.9500800967216492, -0.09811171889305115, -0.2677164673805237, 0.40106886625289917, 0.1557755321264267, -0.21992677450180054, 0.080959253013134, -0.5316107273101807, 0.3355650305747986, 0.2992629110813141, -0.05753941833972931, 0.1634746491909027, ...
ScaleY="2.865"/> <SkewTransform AngleX="0" AngleY="0" CenterX="0.5" CenterY="0.5"/> <RotateTransform Angle="0" CenterX="0.5" CenterY="0.5"/>
[ -0.6684973835945129, -0.32626593112945557, 0.7933000922203064, -0.07321300357580185, -0.4159306287765503, 0.4672528803348541, -0.015872666612267494, -0.14628784358501434, -0.29972878098487854, -0.7701653242111206, 0.34334802627563477, 0.4147363603115082, 0.4443308413028717, 0.6296636462211...
<TranslateTransform X="-0.002" Y="-0.491"/> </TransformGroup> </RadialGradientBrush.RelativeTransform>
[ -0.2791261672973633, -0.5406189560890198, 0.9033554196357727, 0.09107646346092224, -0.2574678957462311, 0.2596836984157562, 0.4044283330440521, -0.06513803452253342, 0.2460271269083023, -0.5978362560272217, -0.17683403193950653, 0.7219226360321045, 0.02660497836768627, -0.01446114294230938...
<GradientStop Color="#D9000000" Offset="0"/> <GradientStop Color="#01FFFFFF" Offset="0.8"/> </RadialGradientBrush> </Rectangle.OpacityMask> </Rectangle>
[ -0.5416404008865356, -0.713823676109314, 0.8287069201469421, 0.11740965396165848, 0.08334855735301971, 0.35449284315109253, -0.06559964269399643, -0.27765676379203796, -0.29984235763549805, -0.5650097727775574, 0.4088561534881592, 0.4536404013633728, -0.3217758536338806, -0.222511067986488...
</Grid> </Border> </DataTemplate> ``` Set the ItemsPanel of the ListView to a horizontal StackPanel. Like this: ``` <ListView.ItemsPanel> <ItemsPanelTemplate> <StackPanel Orientation="Horizontal"></StackPanel> </ItemsPanelTemplate> </ListView.ItemsPanel> ```
[ -0.2639644742012024, -0.3489804267883301, 0.8258259892463684, -0.17833562195301056, -0.17356464266777039, 0.3301628828048706, -0.36293983459472656, -0.20801934599876404, -0.5937103033065796, -0.852946937084198, -0.21382954716682434, -0.03732321411371231, 0.04197068512439728, -0.14289693534...
Hi i would to know how to se up a svn server? Now, i'm using VisualSVN a TortoiseSVN, but i don't know what are the directories "branch" "trunk" "tags". Can anyone explain me how it works? I read the svn book and many sites articles about it but i don't understand. How to setup a SVN server is a very different question...
[ 0.3469187319278717, -0.2349623143672943, 0.4766286313533783, 0.01647477224469185, -0.3053516149520874, -0.21179969608783722, 0.3231058716773987, -0.21647973358631134, -0.24167245626449585, -0.49745190143585205, 0.05018221586942673, 0.4402097761631012, 0.00964878685772419, 0.149180546402931...
you need more information on SVN in general, [the entire book](http://svnbook.red-bean.com/en/1.5/index.html) might be of use to you. To get a quick overview of SVN, branching and tagging, take a look at the following Wikipedia articles: * [Subversion](http://en.wikipedia.org/wiki/Subversion_(software)), with the sec...
[ 0.3257710635662079, -0.35487398505210876, 0.38143694400787354, -0.07137081027030945, -0.40350666642189026, -0.3834238648414612, 0.21343418955802917, 0.017741093412041664, -0.6420630216598511, -0.2863824963569641, -0.28213948011398315, 0.2422764003276825, -0.20673514902591705, 0.23065675795...
I have a multi-user eclipse (3.4) installation with a shared master configuration area. Users need to override `user.name` with their full name and the usual method (adding -Duser.name=... to eclipse.ini) is not suitable since the override must be per-user. I've tried setting user.name in config.ini (inside each user's...
[ 0.37256816029548645, 0.20926335453987122, 0.22478628158569336, -0.06459636986255646, -0.15294110774993896, -0.3435778319835663, 0.10745019465684891, 0.007258708588778973, -0.08974802494049072, -0.5927804708480835, -0.025897566229104996, 0.44604286551475525, -0.49218425154685974, 0.29801589...
call eclipse.exe ? That script could retrieve the full name with a comand like: ``` net user %username% /domain | find /i "full" ``` --- That way, in Windows, your custom launcher would run eclipse with: ``` eclipse.exe -clean --launcher.ini shared\eclipse.ini -vmargs -Duser.name=%FULL_NAME% ``` using the share...
[ 0.14518998563289642, 0.05211840942502022, 0.188181534409523, -0.17473086714744568, -0.34213006496429443, -0.2181532233953476, 0.16934137046337128, 0.03910265490412712, -0.04188483580946922, -0.46260198950767517, -0.20082838833332062, 0.7117157578468323, -0.3778538703918457, 0.1213723570108...
I'm trying to use the EntLib 3.1 within .net code for a dll which is registered for COM interop. Where do I put the config file? Alternatively, is there a way to specify within the dll code where it should get the entlib config from? Since my dll will be called from COM I don't always know what exe will be calling it...
[ 0.4928987920284271, -0.27393603324890137, 0.6990116238594055, 0.09422740340232849, -0.12002848088741302, -0.28190913796424866, 0.08256163448095322, -0.07280737906694412, -0.2019447535276413, -0.7660412192344666, 0.09696506708860397, 0.6181098818778992, -0.33785030245780945, 0.3100215494632...
of MyComThing from a vbs script, ie through COM, I get an error "The configuration section for Logging cannot be found in the configuration source". My COMThing.dll.config file is in the same folder as the registered COMThing.dll, ie in the bin\debug\ folder. thanks! The answer is that Enterprise Library by default us...
[ 0.509078323841095, 0.10980548709630966, 0.5369045734405518, -0.06554277241230011, 0.01443666685372591, -0.0056838104501366615, 0.18432676792144775, -0.13893437385559082, -0.27347996830940247, -0.7221975922584534, -0.03544515371322632, 0.637340247631073, -0.4448401629924774, 0.2729371786117...
where to get the configuration from. This isn't as scary as it seems and doesn't require recompiling entlib or anything like that. Instead of simply using Logger.Write() I did the following: a) Create the log writer, using the dll's config file: ``` string dllConfigFilename = Assembly.GetExecutingAssembly().L...
[ 0.10034329444169998, -0.09486839175224304, 0.5303628444671631, 0.10698845982551575, 0.3825969099998474, -0.06520713120698929, 0.2563559114933014, -0.43020302057266235, 0.039601728320121765, -1.093945026397705, -0.09391753375530243, 0.576409637928009, -0.41398024559020996, 0.080769129097461...
LogEntry log = new LogEntry(); log.Message = message; log.Categories = new string[] { "General" }; logWriter.Write(log); ``` Here's the full code for a sample object I created. The references were Microsoft.Practices.EnterpriseLibrary.Common, Microsoft.Practices.EnterpriseLibrary.Logging, Micr...
[ 0.3453647196292877, 0.1336439549922943, 0.6659188866615295, -0.08967029303312302, 0.09302963316440582, 0.20180806517601013, 0.2877718210220337, -0.4829324185848236, -0.10627862811088562, -0.23434504866600037, 0.1311182975769043, 0.28229472041130066, -0.32851487398147583, 0.2116928696632385...
public MyComThing() { string dllConfigFilename = Assembly.GetExecutingAssembly().Location + ".config"; FileConfigurationSource exceptionsSource = new FileConfigurationSource(dllConfigFilename); LogWriterFactory writerFactory = new LogWriterFactory(exceptionsSource); ...
[ 0.07181688398122787, 0.045875441282987595, 0.7441474795341492, -0.23089127242565155, 0.3378544747829437, 0.2609148919582367, 0.6506133079528809, -0.3556560277938843, -0.08049176633358002, -0.7378016114234924, -0.25630366802215576, 0.43272143602371216, -0.33860474824905396, 0.52232956886291...
{ LogEntry log = new LogEntry(); log.Message = message; log.Categories = new string[] { "General" }; logWriter.Write(log); MessageBox.Show(message); return true; } } } ``` The project included
[ 0.06361536681652069, -0.23263317346572876, 0.34782594442367554, -0.1269034445285797, -0.06920429319143295, -0.03983760625123978, 0.359366238117218, -0.27460727095603943, -0.32108402252197266, -0.18918301165103912, -0.3335723876953125, 0.3237873315811157, -0.3513370752334595, 0.268485724925...
a COMThing.dll.config file which i set 'Copy to Output Directory' to 'Copy always'. This is a trivial config that writes log information to the Application Event Log. The contents of the config file are: ``` <?xml version="1.0" encoding="utf-8"?> <configuration> <configSections> <section name="loggingConfigurat...
[ 0.1375940889120102, 0.07064475864171982, 0.7828481793403625, -0.08561677485704422, -0.1608681082725525, 0.2959724962711334, 0.21790383756160736, -0.5211439728736877, -0.24088256061077118, -0.4004133939743042, -0.014556197449564934, 0.6549668908119202, -0.45571672916412354, -0.0377403534948...
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" traceOutputOptions="None" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.FormattedEventLogTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" name="Formatted...
[ 0.21595220267772675, -0.001476169447414577, 0.7877635955810547, 0.07178813964128494, 0.09031834453344345, 0.10357487201690674, 0.4217274785041809, -0.440267950296402, -0.07103215903043747, -0.22972528636455536, -0.20556741952896118, 0.3870599865913391, -0.4070255160331726, 0.24203579127788...
name="General"> <listeners> <add name="Formatted EventLog TraceListener" /> </listeners> </add> </categorySources> <specialSources> <allEvents switchValue="All" name="All Events"> <listeners> <add name="Formatted EventLog TraceListener" /> </listen...
[ -0.043440960347652435, -0.1712438315153122, 0.24414671957492828, -0.13983426988124847, -0.5582224726676941, -0.322670578956604, 0.22249071300029755, -0.1800364851951599, -0.5228067636489868, -0.27502337098121643, -0.3621056079864502, 0.8113217949867249, -0.3898720443248749, -0.021736076101...
<errors switchValue="All" name="Logging Errors &amp; Warnings"> <listeners> <add name="Formatted EventLog TraceListener" /> </listeners> </errors> </specialSources> </loggingConfiguration> </configuration> ``` In the project properties under Build check 'Register for COM interop'...
[ 0.5149750113487244, 0.1446913778781891, 0.37174710631370544, -0.08332904428243637, -0.08487094938755035, 0.23314069211483002, 0.4461873471736908, -0.41675108671188354, -0.37106096744537354, -0.5927157998085022, -0.08156031370162964, 0.606673538684845, -0.3678482174873352, 0.195564359426498...
write an entry to your Application Event Log. This demonstrates that while the executing process is C:\WINDOWS\System32\WScript.exe (or similar), it's getting the config from your dll's config file. I based this on the information [here](http://blogs.msdn.com/tomholl/archive/2006/04/02/entlib2externalconfig.aspx) unde...
[ 0.12003321945667267, -0.028298767283558846, 0.3913736641407013, 0.1393565833568573, 0.07149028033018112, -0.2036188691854477, 0.1961509734392166, -0.195448100566864, -0.2633591592311859, -0.7650801539421082, -0.08655615150928497, 0.6345790028572083, -0.2929096221923828, 0.19287332892417908...
to most/all of them.
[ 0.2901778817176819, 0.30809152126312256, -0.15519863367080688, 0.11295374482870102, -0.15083041787147522, 0.1406729817390442, 0.15645469725131989, 0.10281219333410263, -0.11498653143644333, -0.24674300849437714, -0.284676194190979, 0.6697496771812439, -0.053874462842941284, 0.0420171990990...
I am familiar with standard practices to assess performance query or stored procedure using SQL server 2000/2005/2008. How is the best way to assess MDX performance? I assume its possible to write structurely correct but poor performance MDX queries as easily as you can with standard T-SQL? Any suggestions? FYI: I may...
[ 0.4654746651649475, 0.10696573555469513, 0.2733137905597687, 0.08559408783912659, -0.14110800623893738, -0.09195289760828018, 0.2944755554199219, -0.18123957514762878, -0.05693032965064049, -0.5423188805580139, 0.22845466434955597, 0.7099959850311279, -0.18671612441539764, 0.17494522035121...
engine are of a somewhat different nature. * Running usage based aggregation will pick up what slices actually get looked at in practice. * SSAS also supports the profiler, so you can get trace files to see what the server is actually getting up to. * The debugger in BIDS lets you trace the cube scripts. However, this...
[ 0.3931640088558197, -0.25458434224128723, 0.18786275386810303, 0.26359814405441284, -0.14985987544059753, -0.3630107343196869, 0.25212860107421875, -0.3600946068763733, -0.2694414258003235, -0.9563031196594238, 0.008582702837884426, 0.6474568247795105, 0.0035008827690035105, -0.12931174039...
I've got a list of links which have a click event attached to them, I need to get the ID from the child A link. So in the example below if I clicked the first list element I'd need google retuned. I've tried `'$this a'` but can't quite work out the syntax. ``` $("ul li").click(function(event){ $("input").val($(thi...
[ 0.20319516956806183, -0.013111969456076622, 0.22555969655513763, -0.08388146013021469, -0.25441616773605347, -0.08007260411977768, 0.11884218454360962, -0.4291260242462158, -0.10106225311756134, -0.35915428400039673, 0.015115725807845592, 0.6327869892120361, -0.4725528955459595, -0.0424148...
I have an ASP.Net web user control that contains a TextBox and a calendar from the Ajax Control Toolkit. When I include this user control on my page I would like it to participate in input validation (there is a required filed validator set on the TextBox inside the UC), ie. when the page is validated the content of t...
[ 0.16007953882217407, 0.2818262279033661, 0.6384571194648743, -0.09242729842662811, -0.2316567301750183, -0.16530150175094604, -0.1239004135131836, -0.12362128496170044, -0.12159550935029984, -0.6494211554527283, 0.1768653690814972, 0.5003557801246643, 0.053014159202575684, 0.03109273687005...
I can't since I'm already inheriting UserControl. There's got to be a way to deal with this common scenario. Create a property on your new user control that sets the validation group on the contained validator. Then from your markup, all you need to do is just set the ValidationGroup property on the control, and that'...
[ 0.4207979142665863, 0.22659486532211304, 0.23544734716415405, -0.013335973024368286, 0.2314586639404297, -0.29156050086021423, -0.025945698842406273, -0.14499041438102722, 0.004475106950849295, -0.46844181418418884, 0.04652540013194084, 0.5441941022872925, -0.1450645625591278, 0.2887277603...
set { MyRequiredFieldValidator.ValidationGroup = value; } } ```
[ 0.11305095255374908, -0.0643850788474083, 0.3550836443901062, -0.16225388646125793, 0.2119121253490448, -0.1972149759531021, 0.15579594671726227, -0.009826038964092731, -0.011666765436530113, -0.2432437539100647, -0.17991456389427185, 0.6502053141593933, -0.23291540145874023, 0.14863291382...
I am training in web developement and am learning about **JSP** & **Servlets**. I have some knowledge of `HttpSession` - I have used it in some of my sample projects. In browsers I have seen the option to "delete cookies". If I delete the cookies it deletes the `HttpSession` also. Are cookies and session the same? Wh...
[ 0.6917873024940491, 0.047810349613428116, 0.08588965982198715, -0.036892831325531006, -0.4095347821712494, -0.25595566630363464, 0.42987918853759766, 0.03893197700381279, -0.19628292322158813, -0.7688179612159729, -0.10350872576236725, 0.4069184958934784, -0.05247494950890541, -0.031552426...
cookie. Most modern sites use the second approach, saving the identifier in a Cookie instead of passing it in a URL (which poses a security risk). You are probably using this approach without knowing it, and by deleting the cookies you effectively erase their matching sessions as you remove the unique session identifi...
[ 0.3378535211086273, 0.1778506487607956, 0.036587320268154144, 0.25749102234840393, -0.10272760689258575, -0.5598620176315308, 0.7037595510482788, 0.11197199672460556, -0.35407859086990356, -0.7486990094184875, -0.25621119141578674, 0.2780674397945404, -0.10920340567827225, 0.25774893164634...
Given the schema: ``` MACHINE_TYPE { machine_type } MACHINE { machine, machine_type } SORT_PLAN { sort_plan, machine_type } SCHEDULE { day_of_week, machine, sort_plan } ``` and the business rule: > A sort plan can be assigned to any > machine of the same machine\_type. How do I enforce that, in SCHEDULE, the tup...
[ -0.0368843600153923, -0.10098124295473099, 0.33337679505348206, -0.030641568824648857, 0.23678766191005707, 0.3984909951686859, -0.13238327205181122, -0.28855863213539124, -0.40620312094688416, -0.8493292331695557, -0.060702450573444366, 0.3175268769264221, -0.44210293889045715, -0.0522118...
plan from this new table's parent machine table instead of from the plan table itself. Last, change the schedule table so that it's FK is back to this new MachinePlan table, instead of as you currently have it ``` MACHINE_TYPE { machine_type } MACHINE { machine, machine_type } SORT_PLAN { sort_plan} MACHINE_SORTPLAN...
[ 0.0824054405093193, -0.10072474181652069, 0.7006568908691406, 0.000004171333785052411, 0.11379154771566391, 0.3073546290397644, -0.1854989230632782, -0.3837261497974396, -0.671490490436554, -0.8773452639579773, -0.03542971611022949, 0.10981176793575287, -0.43414339423179626, 0.190648153424...
of more than one machine type...
[ 0.1516459584236145, 0.5769153237342834, -0.262602835893631, 0.41463130712509155, 0.32899463176727295, 0.15167413651943207, -0.14959697425365448, -0.1951323300600052, -0.1200903058052063, -0.6770873665809631, -0.055258676409721375, 0.0542583130300045, -0.23319575190544128, 0.327285349369049...
I'm using [JSLint](http://en.wikipedia.org/wiki/JSLint) to go through JavaScript, and it's returning many suggestions to replace `==` (two equals signs) with `===` (three equals signs) when doing things like comparing `idSele_UNVEHtype.value.length == 0` inside of an `if` statement. Is there a performance benefit to r...
[ 0.08552467077970505, 0.1960187703371048, 0.13891084492206573, -0.2683648467063904, -0.2304566353559494, -0.05397799611091614, 0.3447490334510803, -0.44014933705329895, 0.20468753576278687, -0.7547605037689209, 0.12063268572092056, 0.6741245985031128, -0.208063542842865, -0.1393063068389892...
Comparison Operators](http://www.c-point.com/javascript_tutorial/jsgrpComparison.htm) The `==` operator will compare for equality *after doing any necessary type conversions*. The `===` operator will **not** do the conversion, so if two values are not the same type `===` will simply return `false`. Both are equally qu...
[ -0.27314361929893494, 0.2848833501338959, 0.10349518060684204, -0.18772105872631073, -0.3402457535266876, 0.3058721125125885, 0.15976202487945557, -0.7093462347984314, 0.28896230459213257, -0.5833743214607239, 0.10828927159309387, 0.8241400122642517, -0.49302762746810913, -0.20706388354301...
the right thing when the operands are of the same type, but if they are of different types, they attempt to coerce the values. the rules by which they do that are complicated and unmemorable. These are some of the interesting cases: > > > > ``` > '' == '0' // false > 0 == '' // true > 0 == '0' ...
[ 0.019678330048918724, -0.09201019257307053, 0.10482173413038254, 0.11396889388561249, 0.4029800593852997, -0.31668663024902344, 0.253642201423645, -0.44836917519569397, 0.2121724635362625, -0.3050519824028015, -0.1636626124382019, 0.7528146505355835, -0.0688585564494133, -0.059135481715202...
// false > false == '0' // true > > false == undefined // false > false == null // false > null == undefined // true > > ' \t\r\n ' == 0 // true > > ``` [![Equality Comparison Table ](https://i.stack.imgur.com/yISob.png)](https://i.stack.imgur.com/yISob.png) > The lack of transitivity is alarmi...
[ -0.05675182119011879, 0.3125356435775757, 0.24276533722877502, 0.06066650152206421, -0.21606306731700897, 0.009855253621935844, 0.5784047842025757, -0.22934120893478394, -0.030113521963357925, -0.4740976393222809, 0.10982134193181992, 0.5984777808189392, -0.24209080636501312, 0.17090953886...
comments and in [@Phillipe Laybaert's](https://stackoverflow.com/users/113570/philippe-leybaert) [answer](https://stackoverflow.com/a/957602/1288) concerning objects. For objects, `==` and `===` act consistently with one another (except in a special case). ``` var a = [1,2,3]; var b = [1,2,3]; var c = { x: 1, y: 2 };...
[ -0.004070882685482502, 0.31174778938293457, 0.16158317029476166, 0.18377023935317993, -0.49539870023727417, 0.3053944408893585, 0.3095320463180542, -0.07392396032810211, -0.19443456828594208, -0.3852112591266632, -0.6753882169723511, 0.3932020366191864, -0.26960498094558716, -0.11965314298...
// false e == f // true e === f // true ``` The special case is when you compare a primitive with an object that evaluates to the same primitive, due to its `toString` or `valueOf` method. For example, consider the comparison of a string primitive with a string object created using the `String` ...
[ 0.09442418068647385, 0.33691707253456116, -0.28666064143180847, -0.11771011352539062, 0.04453381150960922, 0.08454562723636627, 0.24565720558166504, -0.6368475556373596, 0.1471184641122818, -0.5813102126121521, -0.040041301399469376, 0.8264736533164978, -0.31540802121162415, -0.00392455002...
is checking the values of the two objects and returning `true`, but the `===` is seeing that they're not the same type and returning `false`. Which one is correct? That really depends on what you're trying to compare. My advice is to bypass the question entirely and just don't use the `String` constructor to create str...
[ 0.22073669731616974, 0.17024095356464386, 0.03519483655691147, 0.14204227924346924, 0.08605168014764786, -0.34319838881492615, 0.34736382961273193, -0.16997849941253662, -0.10828389972448349, -0.26750314235687256, 0.030501119792461395, 0.5976294279098511, -0.3703853487968445, 0.14495880901...
How can I convert a RGB Color to HSV using C#? I've searched for a fast method without using any external library. Have you considered simply using System.Drawing namespace? For example: ``` System.Drawing.Color color = System.Drawing.Color.FromArgb(red, green, blue); float hue = color.GetHue(); float saturation = ...
[ 0.03631986305117607, -0.08139719814062119, 0.48449021577835083, -0.005994564853608608, -0.15397152304649353, -0.11019355803728104, -0.05781565606594086, -0.4977685213088989, -0.16844676434993744, -0.8155121207237244, -0.1666124314069748, 0.6700791120529175, -0.18291158974170685, 0.03320377...
Can you use a Spring-WS WebserviceTemplate for calling a webservice and avoid that it generates a SOAP-envelope? That is, the message already contains an SOAP-Envelope and I don't want that the WebserviceTemplate wraps another one around it. :-) The reason I want this is that I'd like to call a webservice that uses ws...
[ 0.14255139231681824, -0.07797425240278244, 0.33500558137893677, 0.01984473690390587, -0.14590123295783997, -0.2380639612674713, 0.20851483941078186, -0.7064148187637329, -0.20334795117378235, -0.46588587760925293, -0.017969317734241486, 0.37001392245292664, -0.17542140185832977, -0.0791090...
template wraps around another Soap-Envelope and thus destroys the message. You're using ws-security in a strange way... I guess that you're trying to avoid ws-security dependancy by using pre-generated messages - for simple client might make sense, although it's definitely not by-the-book. You can configure WebService...
[ 0.3330501616001129, 0.12171359360218048, 0.2985444962978363, -0.12886552512645721, -0.051814716309309006, -0.3301103413105011, 0.39161548018455505, -0.7029933333396912, -0.11562751233577728, -0.9099105596542358, 0.1732012778520584, 0.3091195225715637, -0.6807127594947815, 0.151735499501228...
Is it best practice to wrap a web service method/call into a try/catch block? I don't web service requests tend to be the reason why the .NET desktop applications crash? So I was thinking all calls should be wrapped in try/catch to prevent this. Good idea? Also, should it throw an exception or just have an empty cat...
[ 0.4656723439693451, -0.15346670150756836, -0.052723322063684464, 0.28910255432128906, -0.07561229914426804, -0.4805506765842438, 0.19610194861888885, -0.24077871441841125, -0.18088746070861816, -0.19225822389125824, 0.052959319204092026, 0.18755796551704407, -0.5621627569198608, -0.0459347...
your operation if there is any chance an exception could be generated by it. If you allow the raw excption to bubble, only two scenarios can result: If you have configured your service to allow exception details in faults, you will expose internals of your service opening up yourself for security breaches. Or you don't...
[ 0.1845971792936325, -0.07179014384746552, 0.14400836825370789, 0.09103178977966309, 0.20645184814929962, -0.34096968173980713, 0.6574146151542664, -0.06963761895895004, -0.4858344793319702, -0.38916313648223877, -0.315687894821167, 0.35695457458496094, -0.4153589904308319, 0.14078375697135...
the user to receive from your operation, decorate them as FaultContracts on your operation declaration. Then you can try...catch specific exceptions and throw specific Faults. You can also have a try...catch that catches exception and throw a very general Fault. The key here, is not revealing too much information of ...
[ 0.40610507130622864, -0.0847153291106224, 0.15548963844776154, 0.025405215099453926, 0.06986483186483383, -0.2642920911312103, 0.2488025426864624, -0.11536300927400589, -0.38687270879745483, -0.3343398869037628, -0.2788231372833252, 0.4935328960418701, -0.15417738258838654, 0.0495374761521...
being thrown from their code. Hope this helps. Joe.
[ 0.5299133658409119, 0.19378601014614105, -0.21395966410636902, 0.04611771181225777, -0.1919661909341812, -0.09448535740375519, 0.693632185459137, -0.005660566966980696, -0.5725064277648926, -0.5828177332878113, -0.2855905592441559, 0.08118672668933868, -0.11734246462583542, -0.042278707027...
I've use Moq to mock my [repositories](http://martinfowler.com/eaaCatalog/repository.html). However, someone recently said that they prefer to create hard-coded test implementations of their repository interfaces. What are the pros and cons of each approach? **Edit:** clarified meaning of repository with link to Fowl...
[ 0.38639169931411743, 0.17734074592590332, -0.0824304148554802, 0.12341030687093735, -0.09025072306394577, 0.14079561829566956, 0.5965306758880615, 0.08748910576105118, -0.25526994466781616, -0.5715751647949219, -0.053533121943473816, 0.5360574722290039, -0.1614539921283722, 0.1873022913932...
repository. And you also want to test that it handles the situation properly when you expect to get something back and don't, or aren't sure if you are going to get something back. Hard-coded test doubles are ok if you are doing integration testing. Say, you want to save an object, and then get it back. But this is te...
[ 0.35023775696754456, -0.04479861259460449, -0.415588915348053, 0.7943441271781921, 0.2456049621105194, -0.09757256507873535, -0.08978622406721115, -0.026252122595906258, -0.20938320457935333, -0.5380039215087891, -0.0708966851234436, 0.43127962946891785, 0.019973954185843468, 0.05691381916...
of your code on untested code. That's my opinion on Mocking vs. Test Doubles.
[ 0.9345873594284058, 0.3014828860759735, -0.5660488605499268, 0.4498883783817291, -0.009042131714522839, -0.051952775567770004, 0.49632421135902405, 0.05831943079829216, 0.01294289343059063, -0.3429549038410187, 0.42616304755210876, 0.5462024807929993, -0.2528470754623413, 0.047012835741043...
Is there a way other than looping through the Files in a SPFolder to determine if a give filename (string) exists? You can, if you know the URL also use the SPFile.Exists property as follows: ``` using (SPSite site = new SPSite("http://server/site")) using (SPWeb web = site.OpenWeb()) { SPFile file = web.GetFile("/s...
[ 0.24678227305412292, 0.08888695389032364, 0.6609411239624023, -0.0060928077436983585, -0.0015794787323102355, -0.5123926401138306, 0.28176239132881165, -0.14907772839069366, -0.3479638695716858, -0.6040398478507996, -0.24148494005203247, 0.14759661257266998, -0.3758700489997864, 0.31022194...