text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
both the binding files and other XML files (as you mentioned and even more if you have published services etc). Maybe it could be possible to wrap all these necessary changes in a build step (a MSBuild step or similar in other build frameworks) - that would be ***useful!***
[ 0.3919701874256134, -0.037180252373218536, 0.5931264162063599, 0.23512914776802063, -0.08873731642961502, -0.2983896732330322, 0.277860552072525, -0.2656242847442627, -0.26659318804740906, -0.8224098682403564, -0.1371082365512848, 0.4630120098590851, -0.08726561814546585, -0.09963164478540...
I'm trying to compile a project and I'm getting this error. The error occurs in a RemObjects source file, but I think it doesn't have anything to do with RemObjects. Anyway this error is too generic, and I don't quite get why it happens, so how can I solve it? The problem was that we translated the unit SysConsts and...
[ 0.25043925642967224, 0.1601112186908722, -0.016287298873066902, 0.1380237191915512, -0.09054043143987656, 0.018348705023527145, 0.4048558175563812, 0.26803499460220337, 0.18100091814994812, -0.522289514541626, 0.2666459083557129, 0.37835729122161865, -0.5480377674102783, 0.4213582873344421...
``` class C { T a; public: C(T a): a(a) {;} }; ``` Is it legal? Yes it is legal and works on all platforms. It will correctly initialize your member variable a, to the passed in value a. It is considered by some more clean to name them differently though, but not all. I personally actually use it a lot :) In...
[ 0.4123174250125885, 0.10614852607250214, 0.15990106761455536, -0.030144380405545235, -0.01571010611951351, -0.40711328387260437, 0.059656981378793716, -0.16227522492408752, -0.19260546565055847, -0.21737945079803467, -0.14590302109718323, 0.447996586561203, -0.39646458625793457, 0.27983778...
A(int a) : a(5)//<--- try to initialize a non member variable to 5 { } }; ``` You will get a compiling error something like: A does not have a field named 'a'. --- On a side note: One reason why you **may not want** to use the same member name as parameter name is that you would be more prone to the follo...
[ -0.14977405965328217, 0.12648825347423553, -0.04091230407357216, -0.2123938947916031, -0.1671007126569748, 0.1182485893368721, 0.3484193980693817, -0.23147116601467133, -0.23167544603347778, -0.25218823552131653, -0.25392985343933105, 0.37831389904022217, -0.397994726896286, 0.448666721582...
a side note(2): One reason why you **may want** to use the same member name as parameter name is that you would be less prone to the following: ``` class A { A(int myVariable_) { //<-- do something with _myVariable, oops _myVariable wasn't initialized yet ... _myVariable = myVariable_; } ...
[ 0.007165510673075914, -0.03175409883260727, -0.03612068295478821, -0.18943631649017334, -0.17653799057006836, -0.12032656371593475, 0.050453878939151764, -0.02360745333135128, -0.24083800613880157, -0.5731703639030457, -0.255783349275589, 0.3034525513648987, -0.16859206557273865, 0.3120224...
I am evaluating several Javascript UI toolkits for building web applications that have a desktop-like feel, mainly because of dialogs and window management. I looked at several options - here are my evaluations so far: * [ExtJS](http://extjs.com/) - Great widget library, great docs! Not so great license. * [jQuery UI...
[ 0.039004914462566376, 0.17824989557266235, 0.5389323830604553, 0.03710823133587837, -0.3242996037006378, -0.23637259006500244, 0.4579183757305145, -0.009095961228013039, -0.09704922884702682, -0.9118394255638123, -0.04384276270866394, 0.43624457716941833, 0.22462941706180573, -0.0544960014...
and dialog widgets. * [Cappuccino](http://cappuccino.org/) - Too weird and revolutionary. What's your take on these? Are my evaluations correct? In terms of a desktop look/feel the best of that bunch has to be ExtJS. In terms of the UI it really is leaps ahead of the rest. Of course there are licensing issues but they...
[ 0.46029308438301086, -0.1057291030883789, 0.3822276294231415, 0.29027876257896423, -0.07832906395196915, 0.014539540745317936, 0.030786484479904175, -0.0637480691075325, -0.3618716895580292, -0.7323837280273438, 0.10066554695367813, 0.35493624210357666, -0.3419678211212158, -0.335786670446...
A quick question: When declaring the DLLImport Attribute in .Net, where does the runtime look to resolve that DLL dependency? Would I have to dump the DLL and all of *its* dependencies in the bin folder? I think it is working like LoadLibrary. Maybe [Windows path searching in LoadLibrary with manifest](https://stackov...
[ 0.1894618421792984, -0.28420233726501465, 0.34115904569625854, 0.18309980630874634, -0.16388410329818726, -0.37974438071250916, 0.15535488724708557, 0.05440575256943703, -0.313068151473999, -0.750315248966217, -0.0021192659623920918, 0.7844479084014893, -0.18073569238185883, 0.195237547159...
I have this ListBox which is bound to an ObservableCollection. Each object in the list implements an interface called ISelectable ``` public interface ISelectable : INotifyPropertyChanged { event EventHandler IsSelected; bool Selected { get; set; } string DisplayText { get; } } ``` I want to keep track ...
[ 0.02577495202422142, -0.22395870089530945, 0.5125903487205505, -0.06623437255620956, -0.2523721158504486, -0.06042854115366936, -0.02057649753987789, -0.18589261174201965, -0.15371568500995636, -0.7458091974258423, 0.10423040390014648, 0.3111957907676697, -0.46189457178115845, 0.1491208374...
the selected item to an ISelectable and set the Selected property to true. ``` ISelectable selectable = (ISelectable)e.AddedItems[0]; selectable.Selected = true; ``` My problem is that when I select the object using code I can't get ListBox to change the selected item. I'm using a DataTemplate to show the selected o...
[ 0.037504833191633224, -0.15231852233409882, 0.41739702224731445, 0.07130029052495956, 0.0009192367433570325, -0.0818144828081131, 0.13729873299598694, -0.10101210325956345, -0.08488413691520691, -0.9194201231002808, -0.11150996387004852, 0.7255655527114868, -0.43806207180023193, 0.20542912...
want by writing some custom code to handle the Mouse and Keyboard events but I rather not. I have tried adding a SelectedItem property to the collection and bind it to the ListBox's SelectItemProperty but no luck. You could also accomplish this by data binding ListBoxItem.IsSelected to your Selected property. The idea ...
[ 0.3710438907146454, -0.24992568790912628, 0.4289107024669647, 0.19554491341114044, -0.13808833062648773, 0.00660262256860733, 0.07340333610773087, -0.29689982533454895, -0.18647094070911407, -0.7766172289848328, 0.2841036319732666, 0.4789358973503113, -0.18686005473136902, 0.20775814354419...
the Selected property in code will be reflected in the ListBox For this to work the Selected property must raise the PropertyChanged event. ``` <List.Resources> <Style TargetType="ListBoxItem"> <Setter Property="IsSelected" Value="{Binding Path=DataContex...
[ -0.053723666816949844, -0.15528668463230133, 0.4793086647987366, 0.03076654113829136, 0.09836915135383606, -0.0871945396065712, 0.014189695939421654, -0.5647793412208557, -0.13790884613990784, -0.7340881824493408, -0.4422082006931305, 0.4090859591960907, -0.10844138264656067, 0.22028821706...
RelativeSource={RelativeSource Self}}" /> </Style> </List.Resources> ```
[ -0.23602496087551117, 0.05076608806848526, 0.42499440908432007, -0.09512611478567123, 0.4497930407524109, 0.13252100348472595, 0.15845359861850739, 0.0808507427573204, -0.07356002926826477, -0.6870459318161011, -0.03536709025502205, 0.498202383518219, -0.07162458449602127, 0.25172135233879...
This is somewhat of a follow-up question to this [question](https://stackoverflow.com/questions/267045/is-there-a-benefit-to-having-both-an-abstract-class-and-an-interface). Suppose I have an inheritance tree as follows: ``` Car -> Ford -> Mustang -> MustangGT ``` Is there a benefit to defining interfaces for *each...
[ 0.2593742907047272, 0.2285831719636917, -0.21960365772247314, 0.44211748242378235, -0.20359337329864502, 0.03929116576910019, -0.15768802165985107, -0.11977791041135788, 0.06746363639831543, -0.5138728618621826, 0.3002999424934387, 0.591871976852417, 0.09406740963459015, 0.2201526612043380...
so as not to duplicate code. If that is a given, what is the benefit of also implementing `IFord`? In my experience, interfaces are best used when you have several classes which each need to respond to the same method or methods so that they can be used interchangeably by other code which will be written against those ...
[ 0.3274509310722351, -0.07993315160274506, -0.14999333024024963, 0.2842525839805603, -0.3427143096923828, -0.10047273337841034, 0.07358565926551819, -0.17095151543617249, -0.2262818068265915, -0.8396866321563721, 0.20715568959712982, 0.7215221524238586, -0.30324819684028625, -0.065033353865...
the first part of your question, I would recommend against creating an interface for each of your classes. This would unnecessarily clutter your class structure. If you find you need an interface you can always add it later. Hope this helps! Adam
[ 0.43240925669670105, 0.22685249149799347, -0.36401093006134033, 0.5308454632759094, 0.15262417495250702, -0.10252220183610916, 0.09842600673437119, 0.33967435359954834, -0.10073317587375641, -0.5876265168190002, 0.028526268899440765, 0.23805096745491028, 0.10025818645954132, 0.146493598818...
I am having an ASP.net Membership I need to verify the User Question and Answer. I dont need to use Password Because its Hashed we cannot validate it MembershipUser msUser = Membership.GetUser("Rasel"); thanks, Lalithambigai Ask the user a question and compare their answer with their previously provided answer? How...
[ 0.281141459941864, 0.11564555019140244, 0.40718749165534973, -0.08661457896232605, -0.2443581521511078, -0.11905749142169952, 0.42172324657440186, -0.3204698860645294, -0.18328119814395905, -0.2926914393901825, 0.09749022871255875, 0.1885368376970291, -0.08547551184892654, 0.05210188031196...
I have a JFrame with a menu bar and a canvas covering all the remaining surface. When I click on the menu bar, the menu opens **behind** the Canvas and I can't see it. Has anyone experienced this? Other than resizing the Canvas (which I am reluctant to do) is there any solution? Thanks, Vlad You're experiencing hea...
[ 0.5088948011398315, 0.12152596563100815, 0.4035869836807251, -0.35006144642829895, -0.14045102894306183, -0.06584051996469498, 0.24853456020355225, -0.4101565182209015, -0.3098376393318176, -0.8934284448623657, 0.2649243474006653, 0.36752849817276, -0.18811357021331787, 0.1966172456741333,...
I'm trying to add a very simple action to the context menu of Eclipse: clicking with right button over a folder object, this action should call an external tool (configured in the "External Tools") using the path of the folder as the only parameter. I've found a [tutorial on how to add a context menu](http://www.eclip...
[ 0.30350977182388306, -0.15426303446292877, 0.13861697912216187, -0.08351680636405945, -0.24033677577972412, 0.14279693365097046, -0.007133749779313803, -0.060819149017333984, -0.3400323987007141, -0.5706046223640442, 0.06050700321793556, 0.6391670107841492, -0.2906567454338074, -0.19776156...
Eclipse with functionality such as editing context menu's, the only way to go is by writing a plug-in. However, this can be very light-weight and targeted to your needs, so the tutorial you found might be a good way to do it.
[ 0.24481825530529022, -0.25031688809394836, -0.05472336709499359, 0.2885929346084595, -0.19548743963241577, -0.2573941648006439, 0.08378449827432632, 0.21330051124095917, 0.10482103377580643, -0.7598720788955688, -0.11712650209665298, 0.48527759313583374, 0.0067859822884202, -0.313015043735...
I have a class called EventConsumer which defines an event EventConsumed and a method OnEventConsumed as follows: ``` public event EventHandler EventConsumed; public virtual void OnEventConsumed(object sender, EventArgs e) { if (EventConsumed != null) EventConsumed(this, e); } ``` I need to add attribut...
[ -0.28674647212028503, -0.1542048156261444, 0.2363239973783493, -0.26912152767181396, 0.18613797426223755, -0.17851372063159943, 0.24162082374095917, -0.4152238965034485, -0.03654623031616211, -0.6391568779945374, -0.09261418133974075, 0.7355121374130249, -0.33343052864074707, 0.12341663241...
baseMethod.Attributes, baseMethod.CallingConvention,
[ -0.05362549424171448, 0.055218759924173355, -0.06621447950601578, -0.06302421540021896, -0.3340347409248352, 0.3396490216255188, 0.11019478738307953, -0.3685876727104187, 0.3995697796344757, -0.29438909888267517, -0.13706301152706146, 0.7149948477745056, -0.2806459367275238, -0.08255318552...
typeof(void),
[ 0.1909978985786438, 0.14654609560966492, 0.14281059801578522, -0.0588400773704052, 0.21867932379245758, 0.018645990639925003, 0.2428324967622757, 0.05441814661026001, -0.14371567964553833, -0.32620230317115784, -0.3205789625644684, 0.47860103845596313, -0.6118528246879578, 0.27834108471870...
new Type[] {typeof(object), typeof(EventArgs)}); ILGenerator ilGenerator = methodBuilder.GetILGenerator(); // load the first two args onto the stack ilGenerator.Emit(OpCodes.Ldarg_1); ilGenerator.Emit(OpCodes.Ldarg_2); // call the base method ilGener...
[ 0.03614767640829086, -0.2049298733472824, 0.6379488706588745, -0.41452455520629883, 0.005357453599572182, 0.23744338750839233, 0.34320834279060364, -1.0906457901000977, -0.10011181980371475, -0.6327510476112366, -0.11710628122091293, 0.44470763206481934, -0.810300350189209, 0.0542467832565...
the type, create an instance of the type, and call its OnEventConsumed function, and I get: ``` Common Language Runtime detected an invalid program. ``` ...which is not exactly helpful. What am I doing wrong? What's the correct MSIL to call the base class's event handler? Here's the IL from a sample app: ``` .meth...
[ 0.06325317174196243, -0.3649877905845642, 0.16220304369926453, -0.04766715690493584, -0.008120057173073292, -0.18151170015335083, 0.22078557312488556, -0.019072897732257843, -0.0607222244143486, -0.5805186033248901, -0.1014607772231102, 0.6808940172195435, -0.656805694103241, 0.04563756287...
L_0002: ldarg.1 L_0003: ldarg.2 L_0004: call instance void SubclassSpike.BaseClass::OnEventConsumed(object, class [mscorlib]System.EventArgs) L_0009: nop L_000a: ret } ``` So I think you aren't loading the instance because you aren't doing a ldarg.0
[ -0.4427244961261749, -0.03865203261375427, 0.38390541076660156, -0.23159784078598022, 0.06450749188661575, 0.043344855308532715, 0.39690080285072327, -0.11723459511995316, -0.2692472040653229, -0.5206969976425171, -0.16033793985843658, 0.6662859916687012, -0.6575258374214172, 0.02472334168...
I have a class `isSearching` with a single boolean property in a 'functions' file in my webapp. On my search page, I have a variable `oSearchHandler` declared as a `Public Shared` variable. How can I access the contents of `oSearchHandler` on other pages in my webapp? Code with Session.... ``` 'search.aspx Public Fun...
[ -0.17157143354415894, 0.2680622637271881, 0.6220071911811829, -0.09969102591276169, 0.13656313717365265, 0.26810580492019653, 0.08584831655025482, -0.0952654629945755, -0.1854342818260193, -0.673523485660553, -0.0928509384393692, 0.6010928750038147, -0.27649837732315063, 0.2802912890911102...
Request.Form(oKey)) Return Request.Form(oKey) End If Next Return "" End Function 'theMaster.master <% If Session("searching") Then %><ul style="float: right;"> <li> <div class="gsSearch"> <asp:TextBox ID="searchbox" runat="server"></asp:TextBox> </div> </...
[ -0.4442027807235718, -0.0978856310248375, 0.9441583752632141, -0.08205588161945343, -0.24071599543094635, 0.24889926612377167, 0.34502077102661133, -0.6570828557014465, -0.2792462110519409, -0.45492181181907654, -0.4055408537387848, 0.38309794664382935, -0.3755444586277008, 0.2467470616102...
<asp:Button ID="searchbutton" runat="server" Text="search" UseSubmitBehavior="true" PostBackUrl="search.aspx" CssClass="searchBtn" /> </div> </li> </ul> <% End If %> ``` I think that the session will work just fine. sorry for the late answer, I've been struck with a serious case of weekenditis. As for ut...
[ 0.04534298926591873, -0.028039831668138504, 0.75719153881073, -0.24110925197601318, -0.12006077915430069, -0.16510574519634247, 0.5604552030563354, -0.05517968535423279, -0.5175502300262451, -0.6367992162704468, -0.12560304999351501, 0.6260074377059937, 0.1284555345773697, 0.03522535413503...
it doesn't matter. Having the tables separated basically means I need to have two columns, a ClientItemID and a SystemItemID, each having a constraint for each of their tables with nullability - rather ugly. I ended up choosing a different solution. The whole issue was with easily synchronizing new system items into t...
[ -0.1471615731716156, -0.14567624032497406, 0.4250149726867676, 0.427152544260025, -0.1013149693608284, 0.5328336954116821, -0.16389745473861694, -0.11789733171463013, -0.42914581298828125, -0.688200056552887, 0.08698195219039917, -0.12206976115703583, -0.23333679139614105, 0.33431670069694...
has been created in the client database, the identity key is changed to (-1,-1). That means client items go in the negative while system items go in the positive. For synchronizations I basically ignore anything with (SystemItem = 1) while synchronizing the rest using IDENTITY INSERT ON. Thus I'm able to synchronize w...
[ -0.29251986742019653, -0.06842774152755737, 0.7859542965888977, 0.15039858222007751, 0.08413025736808777, 0.1797383427619934, 0.11595455557107925, 0.004525408148765564, -0.4722227156162262, -0.7306002974510193, -0.05463966354727745, 0.3253614604473114, -0.25436267256736755, 0.3866151273250...
the client inserts new items (client updates vs system updates is like 99%/1%).
[ 0.026835951954126358, -0.06254394352436066, 0.6193371415138245, 0.274154931306839, 0.18373024463653564, 0.23214413225650787, 0.039896078407764435, 0.021098755300045013, -0.2537403702735901, -0.5847137570381165, -0.4559839069843292, 0.5051556825637817, -0.07756579667329788, 0.04975477978587...
Someone left the organisation but before leaving, he locked all the files for an unknown reason. How do you unlock them all so that the other developers can work? For the following operation, you will need to be either a project administrator for the project you want to undo the check-in on or a Team Foundation Admin...
[ 0.32760488986968994, -0.1042177826166153, 0.1806473284959793, -0.07464074343442917, -0.09377530217170715, -0.38557934761047363, 0.27892476320266724, -0.038429856300354004, -0.3345737159252167, -0.6018051505088806, -0.5195552706718445, 0.5660732388496399, 0.043708041310310364, 0.08865924179...
Studio 200X Command Prompt) * Run the following command: > tf lock /lock:none > /workspace:WorkspaceName;USERNAME > /recursive $/ To get the list of workspaces for a user, just run the following command from the same prompt: > tf workspaces /owner:username For more commands, check **tf /?**
[ 0.6627740263938904, -0.09489099681377411, 0.169083371758461, -0.2601950466632843, 0.2657117545604706, -0.19755330681800842, 0.2765215039253235, -0.46856290102005005, -0.12938998639583588, -0.6704937815666199, -0.10853730887174606, 0.7761033773422241, -0.13535559177398682, -0.20149271190166...
I've got this python dictionary "mydict", containing arrays, here's what it looks like : ``` mydict = dict( one=['foo', 'bar', 'foobar', 'barfoo', 'example'], two=['bar', 'example', 'foobar'], three=['foo', 'example']) ``` i'd like to replace all the occurrences of "example" by "someotherword". While...
[ 0.17074285447597504, 0.6338292956352234, 0.22989901900291443, -0.30523940920829773, -0.15227073431015015, 0.061749596148729324, 0.31255480647087097, -0.03882865607738495, 0.004951441194862127, -0.4086679518222809, 0.08538979291915894, 0.5606223940849304, -0.397352933883667, -0.033128045499...
arr[i] = 'someotherword' ```
[ 0.0057287150993943214, 0.5915724039077759, 0.3340522050857544, -0.5543574690818787, -0.31412091851234436, -0.049751996994018555, 0.290596067905426, 0.1637372225522995, -0.16594378650188446, -0.2603382170200348, -0.28115662932395935, 0.36149850487709045, -0.19583585858345032, 0.111243404448...
I have a few links that should all open in the same window or tab. To accomplish this I've given the window a name like in this example code: ``` <a href="#" onClick='window.open("http://somesite.com", "mywindow", "");'>link 1</a> <a href="#" onClick='window.open("http://someothersite.com", "mywindow", "");'>link 2</a...
[ 0.3551090359687805, 0.19661495089530945, 0.4566136598587036, -0.13786014914512634, -0.058277811855077744, -0.28677430748939514, 0.2938457131385803, 0.13514350354671478, -0.2333993911743164, -0.9548018574714661, -0.13283486664295197, 0.4160037934780121, -0.13916610181331635, 0.1832500547170...
at the [location.replace()](http://www.w3schools.com/HTMLDOM/met_loc_replace.asp) function. Generally speaking I would recommend that you develop for Firefox and then fix for IE. Not only does Firefox offer better development tools but its implementation of W3C standards tends to be more correct.
[ 0.2514387369155884, 0.0077470592223107815, 0.4397844672203064, -0.17926578223705292, 0.5147560238838196, -0.3507659435272217, 0.1636240929365158, -0.2778232991695404, -0.02330673672258854, -0.7488160133361816, -0.4379609525203705, 0.6875213384628296, -0.35320737957954407, -0.32420441508293...
I have two Java classes: B, which extends another class A, as follows : ``` class A { public void myMethod() { /* ... */ } } class B extends A { public void myMethod() { /* Another code */ } } ``` I would like to call the `A.myMethod()` from `B.myMethod()`. I am coming from the [C++ world](https://stackover...
[ 0.3945704996585846, 0.05689048394560814, 0.052732210606336594, -0.392718106508255, -0.16956551373004913, 0.03047141805291176, 0.2306644320487976, -0.08009269088506699, -0.10224948823451996, -0.5324893593788147, -0.013322185724973679, 0.46053019165992737, -0.2387121170759201, 0.224765583872...
I've been researching modules for Nginx (my preferred webserver) to serve a Lisp webapp, but I haven't been able to find anything. Is there modules for Nginx, or is there better ways to serve Lisp webapps? If so, what are they? If Nginx support proxying, you could always proxy to a Hunchentoot server running on localh...
[ -0.008789514191448689, -0.1415133774280548, 0.07763366401195526, 0.11603984981775284, -0.12087050080299377, -0.089899942278862, 0.0644228532910347, 0.5904634594917297, -0.4085010588169098, -0.6879359483718872, 0.1528960019350052, 0.4231424331665039, -0.1991337388753891, -0.0517953969538211...
How can I document a member inline in .Net? Let me explain. Most tools that extract documentation from comments support some kind of inline documentation where you can add a brief after the member declaration. Something like: ``` public static string MyField; /// <summary>Information about MyField.</summary> ``` Is ...
[ 0.6027279496192932, 0.24643169343471527, 0.2609442174434662, 0.03507150337100029, -0.4767324924468994, -0.3669532835483551, 0.15842026472091675, -0.0025731173809617758, -0.10965563356876373, -0.6407356858253479, 0.1740703284740448, 0.5040896534919739, -0.2558848559856415, 0.192159757018089...
If you need this ability you will need to write your own parser.
[ -0.14464856684207916, 0.3018893003463745, -0.024608509615063667, 0.18762309849262238, -0.13660812377929688, -0.05495467409491539, 0.34493428468704224, 0.059450287371873856, 0.03119971975684166, -0.6771357655525208, 0.06788381189107895, 0.5487713813781738, 0.02358260005712509, -0.3890258669...
**Background:** I have an HTML page which lets you expand certain content. As only small portions of the page need to be loaded for such an expansion, it's done via JavaScript, and not by directing to a new URL/ HTML page. However, as a bonus the user is able to permalink to such expanded sections, i.e. send someone el...
[ 0.3809768557548523, 0.22173242270946503, 0.4984462857246399, -0.3402245044708252, -0.03442177176475525, -0.04175504297018051, 0.06345795840024948, 0.2573985755443573, -0.47342362999916077, -0.48822957277297974, -0.21002750098705292, 0.19880463182926178, -0.044777706265449524, 0.31985771656...
the URL fragment again, i.e. turn <http://example.com/#foobar> into <http://example.com/> to update the permalink display. However, doing so using `parent.location.hash = ''` causes a reload of the whole page (in Firefox 3, for instance), which I'd like to avoid. Using `window.location.href = '/#'` won't trigger a page...
[ -0.0834428071975708, 0.025212038308382034, 0.5099039077758789, -0.10950912535190582, -0.26360487937927246, -0.37367627024650574, 0.36104610562324524, -0.009349517524242401, -0.3139001131057739, -0.5208277106285095, -0.6288567185401917, 0.29193955659866333, -0.2453712522983551, 0.5206218361...
as it can go without adding an entry in browser history: window.location.replace("#"); // slice off the remaining '#' in HTML5: if (typeof window.history.replaceState == 'function') { history.replaceState({}, '', window.location.href.slice(0, -1)); } ```
[ 0.16269204020500183, -0.43600884079933167, 0.6827503442764282, -0.3825087249279022, 0.3542538285255432, -0.041576649993658066, 0.24311652779579163, -0.0030741365626454353, -0.08228133618831635, -0.8647018671035767, -0.5368437170982361, 0.2595284581184387, -0.21804744005203247, 0.3156770467...
I have an MFC legacy app that I help to maintain. I'm not quite sure how to identify the version of MFC and I don't think it would make a difference anyway. The app can take some parameters on the command line; I would like to be able to set an errorlevel on exiting the app to allow a bat/cmd file to check for failur...
[ 0.24649390578269958, 0.1380213052034378, 0.43728509545326233, -0.009958690963685513, 0.21608418226242065, -0.011564329266548157, 0.4018239974975586, -0.14663879573345184, -0.386085569858551, -0.4064827263355255, 0.06377510726451874, 0.42036789655685425, -0.2710522711277008, 0.2341617494821...
by an MFC app? Can I just use exit()? I can't take credit for this so please don't up this reply. CWinApp::ExitInstance(); return myExitCode; This will return the errorlevel to the calling batch file for you to then evaluate and act upon.
[ 0.15562474727630615, 0.0649639442563057, 0.30115699768066406, 0.05581623688340187, 0.16394354403018951, 0.1326514333486557, 0.7169625759124756, 0.14754118025302887, 0.08899512141942978, -0.503113865852356, -0.11311961710453033, 0.34982168674468994, -0.5295483469963074, 0.2703160345554352, ...
I want to use LabVIEW's Call Library Function Node to access a DLL function, and have this function return a string to displayed on my VI. How would I go about doing this? I am quite happy returning numbers from my DLL, but am really struggling to find any examples of how to return a string. I assume from your question...
[ 0.4524453580379486, 0.018640223890542984, 0.26543349027633667, -0.12262555211782455, 0.005809221416711807, -0.01448771357536316, 0.23466011881828308, -0.2624707520008087, 0.18548572063446045, -0.5974846482276917, 0.14289040863513947, 0.45304661989212036, -0.3527766764163971, 0.339827954769...
aString, 12); } ``` In Labview I then use the Call Library Function Node and configure it as follows ``` Library Name or Path: c:\path\to\my\custom.dll Function Name: returnString Calling Convention: C Parameters: Parameter: return type type: void ...
[ 0.05514707416296005, -0.19071808457374573, 0.598478376865387, -0.19606931507587433, 0.24016571044921875, 0.21615827083587646, -0.03222331777215004, -0.36275747418403625, 0.05153737962245941, -0.5605318546295166, -0.18712060153484344, 0.7312223315238953, -0.4750898778438568, 0.1421958655118...
type: String string format: C String Pointer Function prototype: void returnString(CStr arg1); ``` After connect the arg1 output in the block diagram to a string indicator and run. The string "test string" should appear in the front panel. I tried to have the returnString function be of...
[ -0.05576363205909729, 0.20784546434879303, 0.20453019440174103, -0.358367383480072, -0.14515239000320435, 0.2261362224817276, 0.04466484114527702, -0.06643416732549667, 0.09373372048139572, -0.33155471086502075, -0.19884543120861053, 0.29131537675857544, -0.6050211787223816, 0.165648728609...
@bk1e comment don't forget to pre-allocate space in Labview for the string.
[ 0.6798633933067322, 0.08320776373147964, -0.04651870205998421, 0.2635405957698822, 0.146166130900383, 0.04101269692182541, 0.22985607385635376, 0.5500290393829346, -0.08162089437246323, -0.4164506793022156, 0.08292760699987411, 0.03546714782714844, -0.11010000109672546, -0.0547101087868213...
After moving a project from .NET 1.1 to .NET 2.0, MsBuild emits lots of warnings for some COM objects. Sample code for test (actual code doesn't matter, just used to create the warnings): ``` using System; using System.DirectoryServices; using ActiveDs; namespace Test { public class Class1 { public st...
[ 0.0962291806936264, -0.1979125291109085, 0.48367559909820557, -0.49226224422454834, 0.08530902117490768, -0.19780120253562927, 0.5835853815078735, -0.038414593786001205, -0.09732796251773834, -0.6562197208404541, -0.2050824612379074, 0.4251100420951843, -0.8044654726982117, 0.2608396410942...
IADsUser pUser = (IADsUser) localuser.NativeObject; Console.WriteLine("User = {0}", pUser.ADsPath); } } } ``` Warning messages look like *C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets : warning : At least one of the arguments for 'ITypeLib.RemoteGetLibAttr' cannot be ...
[ 0.12721148133277893, 0.19033391773700714, 0.38166165351867676, -0.259911447763443, 0.2299824208021164, -0.09283437579870224, 0.6304047107696533, -0.16209998726844788, -0.1516718715429306, -0.7079989910125732, -0.06008405610918999, 0.38433173298835754, -0.6200533509254456, 0.123098798096179...
contains attribute `WrapperTool = "tlbimp"` * Despite of all warnings, no problems have been observed in the running system. Any idea how to get rid of the warnings? According to a comment in the [MDSN article about TLBIMP for 2.0](http://msdn.microsoft.com/en-us/library/tt0cf3sx(VS.80).aspx), you can't fix this probl...
[ 0.053604017943143845, 0.16725459694862366, 0.5650278925895691, -0.057174280285835266, 0.13705193996429443, -0.09615938365459442, 0.4465813934803009, -0.24594910442829132, -0.30374982953071594, -0.6033124327659607, -0.14659368991851807, 0.600627601146698, -0.6143667697906494, 0.297508180141...
reference to the interop assembly you built yourself. I'm not a VS expert, but I made this work by adding a prebuild to project of: ``` "$(DevEnvDir)\..\..\SDK\v2.0\bin\tlbimp" c:\WINNT\system32\activeds.tlb /namespace:ActiveDs /silent /out:"$(ProjectDir)interop.activeds.dll" ``` Built it once so I'...
[ 0.3689442276954651, -0.10723742097616196, 0.23944130539894104, 0.08004823327064514, -0.15624460577964783, 0.17310334742069244, 0.053058695048093796, 0.2121938019990921, -0.29361116886138916, -0.9552147388458252, 0.16731929779052734, 0.47274050116539, -0.5592460632324219, 0.1383841335773468...
in MSBUILD vs VS, $(DevEnvDir) has a trailing backslash but MSBUILD does not.
[ -0.0023645267356187105, -0.40228167176246643, 0.48940032720565796, -0.04082172363996506, -0.2472534477710724, -0.09820609539747238, 0.44129183888435364, 0.1511586457490921, -0.12225091457366943, -0.2876970171928406, -0.16798017919063568, 0.4017924666404724, -0.477790892124176, 0.3330881595...
I'm trying to register an atl service using ExeName.exe /service as described here: <http://msdn.microsoft.com/en-us/library/74y2334x(VS.80).aspx> After doing so though, it's not appearing in my services control panel (the one that I get to by typing Services in the start box on vista). I've tried to dig through th...
[ 0.13489089906215668, -0.22839874029159546, 0.34844475984573364, -0.13473504781723022, -0.2308921217918396, 0.17335133254528046, 0.6440848112106323, 0.29142501950263977, -0.28226110339164734, -0.9495347142219543, 0.042589254677295685, 0.24426977336406708, -0.07645837962627411, 0.46767243742...
a Local Server if I do a /RegServer first, but I want it installed as a service. Am I missing something, and do you know where the handling of the /service switch is done? Check that you haven't accidentally typed some characters in the name of the function ParseCommandLine in class CAtlServiceModuleT defined in atlba...
[ -0.16404232382774353, -0.23476113379001617, 0.2829603850841522, 0.11636029928922653, -0.018052004277706146, -0.18241317570209503, 0.8834708333015442, 0.2537226676940918, -0.16584759950637817, -0.862643301486969, -0.1293608695268631, 0.5442508459091187, -0.3148762285709381, 0.05038971081376...
[1] In JDBC, why should we first load drivers using Class.forName("some driver name"). Why SUN didnt take care of loading driver within the getConnection() method itself.If I pass driver name as a parameter to the getConnection() method. [2] I want to understand JBDC internals.Any pointers towards it are appreciated....
[ 0.10883177816867828, 0.25133928656578064, 0.17599792778491974, -0.16383913159370422, -0.6370667219161987, -0.05185800418257713, 0.058602988719940186, -0.19972532987594604, -0.10741205513477325, -0.4882711172103882, 0.12732264399528503, 0.722499668598175, -0.3877629339694977, 0.247962519526...
name of the class implementing the JDBC Driver interface. The DriverManager class later offered a more flexible means of managing JDBC drivers in a client application. For a driver to become available, DriverManager's registerDriver() had to be invoked with the driver's class name. Alternatively, you could specify the ...
[ 0.03235151246190071, 0.009928491897881031, 0.09524340182542801, -0.34840723872184753, -0.5959916710853577, 0.08759168535470963, 0.06596489250659943, -0.21834836900234222, 0.017958732321858406, -0.5335608124732971, -0.02211177721619606, 0.4759444296360016, -0.3092629015445709, 0.49469166994...
must contain a single line with the name of the JDBC driver's implementation of the Driver interface. Invoking getConnection() on DriverManager will load a driver so packaged, if needed. Upon loading the driver, an instance of the driver is created, and then registerDriver() is invoked to make that driver available to ...
[ 0.2484894096851349, 0.35411593317985535, 0.25662481784820557, -0.21204537153244019, -0.33639585971832275, -0.2808000147342682, -0.054937366396188736, -0.33389079570770264, 0.06867925077676773, -0.4884524941444397, -0.4259948432445526, 0.5725482702255249, -0.1799335777759552, 0.093038134276...
I am trying to access the Cache in the Application\_Start method of Global.asax. I am trying to accdess Context.Cache. When I run the code from visual studio it works just fine but when I run it on the server from IIS I get: Session state is not available in this context. I want to seed some values in the cache when th...
[ 0.154957115650177, -0.1169753223657608, 0.12474903464317322, -0.16522541642189026, -0.21194127202033997, -0.009884473867714405, 0.5745632648468018, 0.06833864003419876, -0.1353742927312851, -0.9897059798240662, 0.14122357964515686, 0.702833354473114, -0.2327844649553299, 0.1079828217625618...
We use Tomcat to host our WAR based applications. We are servlet container compliant J2EE applications with the exception of org.apache.catalina.authenticator.SingleSignOn. We are being asked to move to a commercial Java EE application server. 1. The first downside to changing that I see is the cost. No matter what t...
[ 0.2559812664985657, -0.045127030462026596, 0.44562599062919617, 0.11926297098398209, 0.025925258174538612, -0.16453097760677338, -0.05294175446033478, -0.11767520755529404, -0.2683938443660736, -0.2503643035888672, -0.09800524264574051, 0.693814218044281, -0.32724690437316895, 0.1176507025...
- Java Persistence API - We use JDBC and again stored procedures to persist. 3. JMS - Java Message Service - We use XML over HTTP for messaging. This is good, please more! Unless you want EJB proper, you don't need a full stack J2EE server (commercial or not). You can have most J2EE features (such as JTA, JPA, JMS, ...
[ -0.026982737705111504, 0.06811056286096573, 0.5988121628761292, -0.008882648311555386, -0.3803313076496124, -0.3710244297981262, 0.19375815987586975, 0.06506424397230148, -0.4554441571235657, -0.5246995091438293, -0.2512221336364746, 0.3812389075756073, -0.3743625283241272, 0.0693820640444...
have no cost full stack server such as Glasfish, Geronimo or JBoss. You can also run embedded j2ee container managed services with embedded Glasfish for example, right inside Tomcat. You may want an EJB container if you want to use session beans, message beans, timer beans nicely managed for you, even with clustering...
[ 0.5149320363998413, -0.35526153445243835, 0.18650171160697937, 0.44745153188705444, -0.17928220331668854, -0.21623152494430542, 0.20317760109901428, 0.3096083104610443, -0.1415078341960907, -1.0276873111724854, -0.12229525297880173, 0.48564112186431885, -0.1867365539073944, 0.0043415594846...
go for BEA.
[ 0.13438864052295685, -0.42099666595458984, -0.03838624805212021, 0.08489900827407837, -0.0012389364419505, 0.31271040439605713, 0.27138859033584595, -0.26722192764282227, -0.07015419006347656, 0.13844987750053406, 0.12812043726444244, 0.479962021112442, -0.5651234984397888, -0.122000195086...
I have implemented a SAX parser in Java by extending the default handler. The XML has a ñ in its content. When it hits this character it breaks. I print out the char array in the character method and it simply ends with the character before the ñ. The parser seems to stop after this as no other methods are called even ...
[ 0.02122369036078453, 0.2283637374639511, 0.3935256004333496, -0.14969590306282043, -0.06739091873168945, -0.2761838138103485, 0.2583242654800415, -0.06483994424343109, -0.13181722164154053, -0.45813390612602234, -0.10605571419000626, 0.5186092853546143, -0.4429037272930145, 0.0158807691186...
sure the file's encoding decloration matches it. Your parser may be defaulting to ascii or ISO-8859-1. You can set the encoding like so ``` <?xml version="1.0" encoding="UTF-8"?> ``` UTF-8 will cover that character, just make sure that's what the file actually is in.
[ 0.1902366280555725, 0.2856013774871826, 0.2927841246128082, 0.10848834365606308, 0.36238884925842285, -0.13132457435131073, 0.14133583009243011, 0.10544144362211227, -0.07910226285457611, -0.6188221573829651, -0.3274056911468506, 0.6123068928718567, -0.2330407202243805, -0.2725295424461365...
We have an Java application running on Weblogic server that picks up XML messages from a JMS or MQ queue and writes it into another JMS queue. The application doesn't modify the XML content in any way. We use BEA's XMLObject to read and write the messages into queues. The XML messages contain the encoding type declara...
[ 0.32671648263931274, 0.033553335815668106, 0.22392399609088898, 0.04131036996841431, -0.18112964928150177, -0.07465030252933502, 0.006265176925808191, -0.19991129636764526, -0.047137919813394547, -0.5552161335945129, 0.07094615697860718, 0.16058021783828735, -0.1289747804403305, 0.06001742...
it to the destination queue, the £ symbol is lost and is replaced with £ instead. I have checked the OS level settings (locale settings) and everything seems to be fine. What else should I be checking to make sure that this doesn't happen? > once we write it to the destination queue, the £ symbol is lost and is repla...
[ 0.0029657508712261915, -0.03442341834306717, 0.7638379335403442, -0.277381032705307, 0.05963134765625, 0.08169537782669067, 0.4184029698371887, 0.10753552615642548, -0.1458398401737213, -0.6511135101318359, -0.27699750661849976, 0.37836501002311707, 0.0201445072889328, 0.23335996270179749,...
it as ISO-8859-1, you end up with the two-character sequence **`ÃX`**, where **`X`** is the original character.) I would look at the encoding settings of the receiving JMS queue.
[ 0.145883709192276, -0.023006828501820564, 0.24162650108337402, -0.08595530688762665, -0.0899164229631424, 0.061849646270275116, 0.022282538935542107, 0.10812416672706604, -0.039556343108415604, -0.48019710183143616, -0.22859999537467957, 0.437860369682312, -0.2896134555339813, 0.0690373629...
What are good ways of achieving this DB agnosticism without actually coding two DAL's? I've heard that the Data Access Application Block is suitable for this. You could also look at the various ORM libraries like NHibernate. When you are targeting multiple databases, it is best to look for a tool that can create your d...
[ 0.4758358895778656, -0.0524534210562706, -0.22702163457870483, 0.26844099164009094, -0.3742353022098541, -0.029204746708273888, -0.35858866572380066, -0.027242621406912804, 0.01847320795059204, -0.6276015043258667, 0.48018041253089905, 0.5245567560195923, -0.4810841977596283, 0.28143626451...
I have a not-so-small class under development (that it changes often) and I need not to provide a public copy constructor and copy assignment. The class has objects with value semantics, so default copy and assignment work. the class is in a hierarchy, with virtual methods, so I provide a virtual Clone() to avoid slic...
[ 0.11340219527482986, 0.10679531842470169, 0.11924179643392563, 0.010090659372508526, -0.10434988886117935, 0.03755306079983711, 0.17972542345523834, -0.011057293973863125, -0.12712636590003967, -0.7464102506637573, -0.0983097106218338, 0.3389369547367096, -0.13796009123325348, 0.3048988282...
? Something is wrong here. If you really do need your class to have a value semantics, have a look at J.Coplien's Envelop-Letter Idiom, or at this article about Regular Objects [1]. [1] Sean Parent. “Beyond Objects”. Understanding The Software We Write. <http://stlab.adobe.com/wiki/index.php/Papers_and_Presentations>...
[ 0.2494041472673416, 0.35023951530456543, -0.33875736594200134, 0.00802071113139391, -0.19015397131443024, -0.052104704082012177, 0.32396116852760315, -0.0763273686170578, -0.5270599126815796, -0.1993415653705597, -0.4266071915626526, 0.42776408791542053, -0.09448092430830002, -0.1913618743...
I'd like to implement a big int class in C++ as a programming exercise—a class that can handle numbers bigger than a long int. I know that there are several open source implementations out there already, but I'd like to write my own. I'm trying to get a feel for what the right approach is. I understand that the genera...
[ 0.1774442344903946, 0.06146923825144768, -0.18141324818134308, -0.14480946958065033, -0.2254883199930191, 0.20244351029396057, -0.0776873305439949, -0.1937825232744217, -0.2072373926639557, -0.5189307332038879, 0.14514616131782532, 0.41855549812316895, -0.31446152925491333, -0.029203839600...
main concern is how I would implement things like addition and multiplication. I'm looking for a general approach and advice as opposed to actual working code. Things to consider for a big int class: 1. Mathematical operators: +, -, /, \*, % Don't forget that your class may be on either side of the operator, that the...
[ 0.09259819984436035, -0.10687007755041122, -0.18086302280426025, -0.08152972161769867, -0.17822903394699097, 0.2546214759349823, 0.09998307377099991, -0.36554744839668274, 0.09763099253177643, -0.8232077956199646, 0.09802143275737762, 0.5425023436546326, -0.18395157158374786, -0.2399350404...
be convertible to, and how to properly handle the conversion. A quick list would include double and float, and may include int (with proper bounds checking) and complex (assuming it can handle the range).
[ 0.15724870562553406, 0.011838414706289768, -0.16655147075653076, 0.040338482707738876, -0.07171816378831863, -0.09723226726055145, -0.05403575301170349, -0.548579752445221, 0.2262677103281021, -0.4758984446525574, -0.2782372534275055, 0.6017534732818604, -0.27483469247817993, -0.5901267528...
I have a web API that returns python dictionaries or lists as a response that I eval() in python scripts that use the API, for completness I wanted to set a proper content-type but not sure what would be best to use "text/x-python" or maybe "application/python", or something else? [edit] I'm also outputting JSON, I'm...
[ 0.4400561451911926, 0.2834721505641937, 0.3879408836364746, 0.08042123168706894, -0.30828800797462463, -0.2347496598958969, 0.14886677265167236, -0.07367236167192459, -0.21517468988895416, -0.6147599816322327, -0.12051443755626678, 0.6203525066375732, -0.24655134975910187, -0.0010176011128...
mime-support package on my Debian).
[ 0.049528151750564575, -0.2472214251756668, -0.08349950611591339, 0.09289225190877914, 0.14904236793518066, -0.11509348452091217, 0.6148951053619385, 0.18313224613666534, 0.09303788840770721, -0.5113338232040405, -0.35808196663856506, 0.6151955127716064, -0.4648832082748413, -0.459573745727...
I have a list of items that I am displaying in a floated list, with each item in the list at a fixed width so that there's two per row. What is the best practice to prevent this horrible thing from happening: [alt text http://x01.co.uk/floated\_items.gif](http://x01.co.uk/floated_items.gif) Possibilites: * Trim to a...
[ 0.48870593309402466, -0.017527436837553978, 0.45312565565109253, -0.05030019208788872, -0.05658847838640213, 0.08263075351715088, 0.34782862663269043, -0.07545843720436096, -0.3651881814002991, -0.6379267573356628, -0.006470256019383669, 0.09582391381263733, -0.03692080080509186, 0.2019548...
the container. It's not guaranteed that there's always an equal number of items so this option is out. Any help on this irritating issue appreciated! Are you using a fixed font size, i.e. specified in px? If not you also need to consider the various text size options of each browser which is probably going to make the...
[ 0.4428114891052246, -0.052923016250133514, 0.28270384669303894, 0.2235688865184784, -0.11576022952795029, 0.1600174605846405, 0.08452197909355164, 0.2292703539133072, -0.4582591950893402, -0.4703347384929657, 0.04228230193257332, 0.5243628621101379, -0.34430626034736633, 0.1050426587462425...
use overflow:hidden as that covers all eventualities and ensures that it'll always keep your layout consistent. I guess the last option would be to keep a tight control over what can be added to the list and prevent the problem occuring in the first place. Prevention better than cure as they say, although probably unh...
[ 0.38793379068374634, 0.15008486807346344, 0.12872985005378723, 0.19292886555194855, 0.07399701327085495, -0.12955725193023682, 0.4030974209308624, 0.020793013274669647, -0.06016454100608826, -0.7873559594154358, 0.290215402841568, 0.6730090975761414, -0.32073524594306946, 0.009229450486600...
I have the following autorun.inf ``` [Autorun] action="Blah, Inc." open=marketing.exe icon=blah.ico label="Blah, Inc." ``` On Vista, the autorun dialog shows "Publisher not specified". How do I specify a publisher? Bogdan is right: You need to sign your executable. You can use *SignTool* from Microsoft for this. Tak...
[ 0.8622023463249207, 0.10022861510515213, 0.7421258091926575, -0.13173913955688477, 0.06123622506856918, -0.3087190091609955, 0.2804619371891022, -0.24089103937149048, -0.030398696660995483, -0.7648927569389343, -0.03135712444782257, 0.7086180448532104, -0.3483043909072876, -0.3333234190940...
2008 and .NET Framework 3.5.*
[ -0.2808281183242798, -0.07413768023252487, -0.0393054336309433, 0.043948326259851456, -0.4918093681335449, -0.04480348527431488, 0.396808385848999, -0.07946426421403885, -0.14630717039108276, -0.3849092423915863, -0.16801030933856964, 0.3485444188117981, -0.08120075613260269, -0.2116020023...
I am just beginning to write an application. Part of what it needs to do is to run queries on a database of nutritional information. What I have is the USDA's [SR21 Datasets](http://www.ars.usda.gov/Services/docs.htm?docid=17478) in the form of flat delimited ASCII files. What I need is advice. I am looking for the be...
[ 0.7560644149780273, 0.16034956276416779, -0.05506101995706558, -0.02174796536564827, 0.1013234555721283, 0.40307116508483887, -0.29148387908935547, 0.04398941621184349, -0.24872970581054688, -0.7988176941871643, 0.26281774044036865, 0.30067193508148193, 0.023800918832421303, -0.13507588207...
be a commercial app, so hopefully that opens up the possibilities. I am fine with .Net Framework 3.5 so Linq is a possibility when accessing the data (just don't know if it would be the best solution or not). So, what are some suggestions for persistent storage in this scenario? What sort of gotchas should I be watchin...
[ 0.5155695080757141, 0.020873015746474266, 0.26515352725982666, 0.30366507172584534, 0.2894980013370514, -0.16071513295173645, 0.08819524198770523, 0.29196035861968994, -0.38489559292793274, -0.45138970017433167, 0.2272506207227707, 0.5555309057235718, -0.15565846860408783, -0.0852181613445...
"persistent storage" - aren't you just reading the data? Don't you already have that in the text files? I'm not sure why you'd want to introduce anything else.
[ 0.18888506293296814, 0.07757207751274109, 0.16560621559619904, 0.4774625897407532, 0.13746212422847748, -0.3904378414154053, -0.118632011115551, 0.5433629751205444, -0.5013702511787415, -0.06493305414915085, 0.14351236820220947, 0.2553028464317322, -0.07477231323719025, 0.5492118000984192,...
When you are somewhere between version 1 and version 2, what do you do to maintain your software? The terms Patch, Hotfix, Maintenance Release, Service Pack, and others are all blurry from my point of view, with different definitions depending on who you talk to. What do you call your incremental maintenance efforts ...
[ 0.6489310264587402, 0.15925581753253937, 0.32076817750930786, -0.04466967284679413, 0.3991873264312744, -0.3612460494041443, 0.3142273426055908, -0.04717088118195534, -0.39183008670806885, -0.5696704387664795, -0.4887893497943878, 0.7061819434165955, -0.1387447565793991, -0.031888883560895...
Update that fixes many outstanding issues, normally includes all Patches, Hotfixes, Maintenance releases that predate the service pack That being said that isn't how we do updates at all. We just increment the version and/or build number (which is based on the date) and just call it an "Update". For most software I fi...
[ 0.3194432854652405, 0.15334561467170715, 0.46539825201034546, 0.06935659795999527, 0.06107252091169357, -0.3694125711917877, 0.20893417298793793, 0.16556744277477264, -0.086009182035923, -0.6375168561935425, -0.2321358025074005, 0.6112599968910217, -0.1441018134355545, 0.011738745495676994...
At the moment I have setup a custom ok cancel dialog with a drop down in c#. The ok and cancel buttons use the DialogResult property so no code behind it. What I now need to do is validate the drop down to check it isn't left empty before posting back a dialogresult. Is this possible? From [here](http://www.functionx....
[ 0.1451490968465805, -0.00942206010222435, 0.6835930943489075, -0.19783014059066772, 0.22803625464439392, 0.01930873468518257, 0.2450273633003235, -0.1414107233285904, -0.02248290367424488, -0.4139106273651123, -0.30970585346221924, 0.7427156567573547, -0.30854496359825134, 0.16353128850460...
I have been reading about the differences between Table Variables and Temp Tables and stumbled upon the following issue with the Table Variable. I did not see this issue mentioned in the articles I pursued. I pass in a series of PKs via a XML data type and successfully create the records in both temp table structures...
[ 0.5219923853874207, 0.23669031262397766, 0.4471779465675354, 0.3709217309951782, -0.18616266548633575, -0.1805773377418518, 0.03591766580939293, -0.16375066339969635, -0.31854382157325745, -0.5075782537460327, 0.2673335373401642, 0.4555516242980957, -0.09489426761865616, 0.2905347347259521...
Table Variables promise… Here are the SP snippets and Results: ``` CREATE PROCEDURE ExpenseReport_AssignApprover ( @ExpenseReportIDs XML ) AS DECLARE @ERTableVariable TABLE ( ExpenseReportID INT,
[ 0.0217127688229084, -0.047924939543008804, 0.5542040467262268, 0.11135820299386978, 0.05558896064758301, 0.13768702745437622, -0.298703134059906, -0.38765236735343933, -0.14565224945545197, -0.2788364291191101, 0.22499980032444, 0.6627994179725647, -0.18305052816867828, -0.1501590162515640...
ExpenseReportProjectID INT, ApproverID INT) CREATE TABLE #ERTempTable ( ExpenseReportID INT, ExpenseReportProjectID
[ 0.06102870777249336, 0.1653849482536316, 0.442046582698822, -0.03223346173763275, 0.2624202072620392, 0.06034117937088013, -0.32479551434516907, -0.3116171956062317, 0.04180523380637169, -0.7576384544372559, -0.042226340621709824, 0.7407024502754211, -0.16707827150821686, -0.27400624752044...
INT, ApproverID INT ) INSERT INTO @ERTableVariable (ExpenseReportID) SELECT ParamValues.ID.value('.','VARCHAR(20)') FROM @ExpenseReportIDs.nodes('/Root/ExpenseReportID') as ParamValues(ID) INSERT INTO #ERTempTable (ExpenseReportID) SELECT ParamValues.ID.value('.','VARCHAR(20)') FROM @ExpenseRepor...
[ 0.04404084011912346, 0.003474249504506588, 0.5344036221504211, 0.11041674017906189, -0.03532901033759117, 0.5387259125709534, -0.0805392786860466, -0.6417625546455383, -0.20918887853622437, -0.6329985857009888, -0.14470838010311127, 0.7722570896148682, -0.19852489233016968, -0.181985467672...
FROM ExpenseReportItem WHERE(ExpenseReportID = #ERTempTable.ExpenseReportID)) UPDATE @ERTableVariable SET ExpenseReportProjectID = ( SELECT TOP 1 ExpenseReportProjectID
[ 0.0310489684343338, -0.051517825573682785, 0.5222018957138062, 0.05667589604854584, 0.16115392744541168, -0.0170382559299469, -0.16393020749092102, -0.33705902099609375, -0.0790533646941185, -0.6807283759117126, -0.13127994537353516, 0.7899085283279419, -0.19434158504009247, -0.30932962894...
FROM ExpenseReportItem WHERE(ExpenseReportID =
[ -0.00433229049667716, 0.013245238922536373, 0.3330289125442505, -0.12974399328231812, 0.20681986212730408, -0.17180867493152618, -0.4216455817222595, -0.23071086406707764, -0.23960627615451813, -0.5306193828582764, -0.09217477589845657, 0.7485618591308594, 0.051726944744586945, -0.11174038...
@ERTableVariable.ExpenseReportID)) ``` Error when last update statement in there : Must declare the scalar variable "@ERTableVariable". ExpenseReportProjectID is updated in #ERTempTable when the last update is commented out: A quick test works when I literalize the table var reference in the last update: ``` UPDATE...
[ 0.07241147756576538, 0.22835533320903778, 0.7634355425834656, -0.11011804640293121, -0.05333133041858673, 0.08601648360490799, -0.07793741673231125, -0.5334412455558777, -0.09249469637870789, -0.5823034644126892, -0.07848195731639862, 1.2149239778518677, -0.2680943012237549, -0.19142496585...
ExpenseReportProjectID = ExpenseReportItem.ExpenseReportProjectID FROM @ERTableVariable er INNER JOIN ExpenseReportItem ON ExpenseReportItem.ExpenseReportID = er.ExpenseReportID ``` The join might return multiple rows but only one will 'stick'. Kind of a non-deterministic update like 'TOP 1'.
[ 0.031150640919804573, 0.12328050285577774, 0.6320664882659912, -0.014413892291486263, 0.09194016456604004, 0.15715976059436798, -0.20986393094062805, -0.21406295895576477, -0.26296576857566833, -0.5939754843711853, 0.12252894043922424, 0.7281001806259155, 0.003754617413505912, -0.183106511...
**Is there a tool to generate WiX XML given a .reg file?** --- In 2.0, you were supposed to be able to run tallow to generate registry XML: ``` tallow -r my.reg ``` For what it's worth, the version of tallow I have is producing empty XML. In 3.0, tallow has been replaced with heat, but I can't figure out how to ...
[ 0.18622489273548126, -0.058001939207315445, 0.6406528949737549, -0.05609985068440437, -0.06835557520389557, -0.07626156508922577, 0.10468007624149323, -0.30929237604141235, -0.25943392515182495, -0.6700958609580994, -0.11569550633430481, 0.19293621182441711, -0.16112083196640015, 0.2237694...
class Program { static void PrintUsage() { Console.WriteLine("reg2wix <input file> <output file>"); } /// <summary> /// Parse the hive out of a registry key /// </summary> /// <param name="keyWithHive"></param>
[ 0.2045077085494995, -0.21194058656692505, 0.02969520166516304, -0.019398799166083336, 0.18475563824176788, 0.23296797275543213, 0.3825039863586426, -0.3847389221191406, -0.13289234042167664, -0.5773757100105286, -0.1566014438867569, 0.15362226963043213, -0.7648406028747559, 0.3441595733165...