text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
bias. I've written about this a lot on my blog, especially [the architecture side](http://shelter.nu/blog/2007/01/soa-roa-woa-rest-soap-point-about-what.html) and the [impact of SOA vs. ROA](http://shelter.nu/blog/2006/05/knee-deep-in-soa.html). :) There's a great debate as to which is "better", to which I can only sa...
[ 0.5736885070800781, 0.16068777441978455, -0.04512273147702217, -0.09286899119615555, -0.6779868602752686, 0.10742069035768509, 0.28306159377098083, -0.05388301983475685, 0.010939051397144794, -0.6296164393424988, 0.18815816938877106, 0.6069554686546326, 0.13171671330928802, -0.022698720917...
envelope with a header and body, and if that sounds familiar, it is exactly how HTML was designed, a fact very few people tend to see. HTTP as just a protocol for shifting stuff around is well understood and extremely well supported, and SOAP uses it to shift their XML envelopes around. Is there a real difference betwe...
[ 0.3441886901855469, -0.16798800230026245, 0.33680084347724915, 0.012619463726878166, -0.4131319522857666, -0.3230072855949402, -0.2641392946243286, -0.3931989073753357, -0.13854694366455078, -0.5944516062736511, 0.12676115334033966, 0.15547624230384827, -0.24088071286678314, -0.24725601077...
deal with those niceities mentioned earlier. So, a lot of the goodness of HTTP is ignored and recreated in another layer (hence, you need a SOAP stack to deal with it), which to me seems wasteful, ignorant and adding complexity. Next up is what you want to do. For really complex things, there's lots in the webservices...
[ 0.5469281673431396, -0.02489856630563736, 0.32968011498451233, 0.19109556078910828, -0.2172219306230545, -0.14050786197185516, 0.5012924075126648, -0.1757660061120987, -0.21567928791046143, -0.8769130706787109, -0.0966886505484581, 0.39440035820007324, 0.01727403700351715, -0.1385327279567...
envelope back with results might be good enough. Results in HTTP is, as you probably know, HTTP content-type, so lots is already supported but you can create your own, for example application/xml+myformat (or more correctly, application/x-xml+myformat if I remember correctly). Get the request, if it's a response code 2...
[ 0.13227786123752594, 0.01058020256459713, 0.5689637064933777, 0.1702200025320053, -0.24029283225536346, -0.2245415300130844, -0.2661226987838745, -0.49459466338157654, -0.14271244406700134, -0.8563784956932068, 0.04001757875084877, 0.28248661756515503, -0.09439586102962494, -0.131912678480...
I have a web application that uses a number of WCF Services. I deploy my web application in various environments (dev, UAT, production etc). The URL of each WCF Service is different for each environment. I am using .NET 3.5 and`basicHttpBinding`s The web application uses a framework to support machine-specific setting...
[ 0.4510892927646637, 0.3285786211490631, 0.6400129199028015, -0.27467823028564453, -0.3265977203845978, -0.06070117652416229, 0.05687367916107178, -0.3923051655292511, -0.020674649626016617, -1.0374035835266113, -0.07075868546962738, 0.5442227125167847, -0.36993974447250366, 0.4758147299289...
well. However, I now have to enhance this approach to work with a WCF service that uses an X509 certificate. This means that I have to replicate the following additional settings in web.config in C# code: ``` <!-- inside the binding section --> <security mode="Message"> <transport clientCredentialType="None" proxyC...
[ -0.1591469794511795, 0.2234411984682083, 0.8343187570571899, -0.08921771496534348, 0.1588941067457199, -0.2699812054634094, 0.35106155276298523, -0.3975425958633423, -0.2918078899383545, -1.0977725982666016, -0.06743387132883072, 0.38505616784095764, 0.07032325863838196, 0.1709607839584350...
<defaultCertificate storeLocation="LocalMachine" storeName="My" x509FindType="FindByThumbprint" findValue="5678efgh" /> <authentication trustedStoreLocation="LocalMachine" certificateValidationMode="None" /> </serviceCertificate> </clientCredentials> </behavior> </e...
[ -0.19732017815113068, 0.11088863760232925, 0.440234899520874, -0.15967251360416412, -0.1038815900683403, -0.27149656414985657, 0.6655323505401611, -0.11583565175533295, -0.08746590465307236, -0.8060927987098694, -0.12135548144578934, 0.7376185655593872, -0.06672916561365128, 0.031684018671...
replicate the above web.config section in C# will be welcomed The following code replicates the configuration in my original question: ``` myClient.ClientCredentials.ClientCertificate.SetCertificate( StoreLocation.LocalMachine, StoreName.My, X509FindType.FindByThumbprint, "1234abcd"); myClient.ClientC...
[ 0.36790916323661804, 0.28436553478240967, 0.7958680391311646, 0.0020372269209474325, 0.3570714294910431, 0.012101787142455578, 0.41452038288116455, -0.4757051467895508, 0.06258740276098251, -0.811943769454956, -0.026290372014045715, 0.5622100830078125, -0.19360604882240295, -0.062715366482...
How can I get the username/login name in Java? This is the code I have tried... ``` try{ LoginContext lc = new LoginContext(appName,new TextCallbackHandler()); lc.login(); Subject subject = lc.getSubject(); Principal principals[] = (Principal[])subject.getPrincipals().toArray(new Principal[0]); f...
[ -0.20991139113903046, -0.14580754935741425, 0.5777385234832764, 0.1278952807188034, 0.4720733165740967, -0.29000958800315857, 0.5147265195846558, -0.3163585066795349, -0.3313849866390228, -0.6615690588951111, -0.4596346318721771, 0.3920530378818512, -0.13640005886554718, 0.3981087803840637...
" + se.getMessage()); } ``` I get a `SecurityException` when I try to run this code. Could someone please tell me whether I'm heading in the right direction, and help me to understand the problem. ``` System.getProperty("user.name"); ```
[ 0.06405028700828552, 0.05675536021590233, 0.3440019488334656, 0.040690790861845016, 0.641689121723175, -0.26109638810157776, 0.43894636631011963, 0.09323032945394516, -0.051452089101076126, -0.6021184921264648, -0.3883208632469177, 0.3687032461166382, -0.36479881405830383, 0.11315642297267...
I wanted to create search engine for my webpage, but during indexing on server it crashes with errors : ``` Warning: opendir(/admin/lucene/) [function.opendir]: failed to open dir: Too many open files in /admin/includes/Zend/Search/Lucene/Storage/Directory/Filesystem.php on line 159 Warning: readdir(): supplied ...
[ -0.3229037821292877, 0.2944963574409485, 0.561448335647583, -0.03384241461753845, -0.002271937904879451, 0.08698408305644989, 0.35795751214027405, -0.2536989152431488, 0.047127239406108856, -0.6798776984214783, -0.36674124002456665, 0.543623149394989, -0.37477537989616394, 0.24120138585567...
for such error - I run script on localhost and it works great. Thanks for any help. It seems the problem is in the large number of segments in the index. Could you check how much files does index folder contain? There are two ways to solve this problem: a) Optimize index more often. b) Use another MaxBufferedDocs/Me...
[ 0.014206305146217346, -0.14549802243709564, 0.07238087803125381, 0.27119180560112, -0.24715393781661987, -0.028952177613973618, 0.09855763614177704, 0.09813766926527023, -0.4024682343006134, -0.86241614818573, 0.054129812866449356, 0.5591861605644226, -0.011143703013658524, 0.2226698696613...
Using this code, the following execution yields strange results: ``` C 100 R W ``` The text file's first line defines the number of elements to read from it, and it contains a few values under 15, but every time I run this, the first value in my array is always printed out as 87 (the ASCII value for 'W'). If I chang...
[ 0.06601949036121368, 0.25017881393432617, 0.4046477675437927, -0.4294781982898712, 0.451763778924942, 0.28097113966941833, 0.39531901478767395, -0.3538497984409332, -0.18494011461734772, -0.4135572016239166, -0.13145765662193298, 0.4355337619781494, -0.4172106981277466, -0.1631718277931213...
int capacity; int size; ELEMENT H []; }; HEAP initialize(int n) { HEAP h; h.capacity = n; h.size = 0; return h; } void buildHeap(HEAP &h, ELEMENT *a) { h.size = arrayLength; for (int i = 1; i <= arrayLength; i++) { h.H[i] = a[i]; } for (int i = h.size/2; i ...
[ -0.20075619220733643, -0.1884411722421646, 0.20659758150577545, -0.3577441871166229, 0.0021943787578493357, 0.27751424908638, 0.4101329445838928, -0.6104176640510559, -0.3909723162651062, -0.4970576763153076, -0.38715916872024536, 0.4727717638015747, -0.11888787150382996, 0.116857431828975...
{ // HEAPIFY HERE } } void printHeap(HEAP &h) { cout << "Capacity:\t" << h.capacity << endl; cout << "Size:\t\t" << h.size << endl; cout << "|"; for (int i = 1; i <= h.size; i++) { cout << " "; cout << h.H[i].key << " |"; } cout << endl; } int main() {
[ -0.42818382382392883, -0.12070829421281815, 0.4104297161102295, -0.46186748147010803, 0.030531836673617363, 0.3450056314468384, 0.13751673698425293, -0.12229253351688385, -0.19730359315872192, -0.6098566651344299, -0.3801760673522949, 0.11889646202325821, -0.29008567333221436, 0.1658032238...
char c; int val; HEAP h; while (c != 'S') { cin >> c; switch (c) { case 'S': break; case 'C':
[ 0.06422720104455948, -0.30258023738861084, -0.0442676916718483, -0.20144742727279663, 0.3111439347267151, 0.0533607117831707, 0.3345385193824768, -0.3167567849159241, -0.15298660099506378, -0.25351133942604065, -0.6935158967971802, 0.3988203704357147, -0.15190115571022034, 0.11895538121461...
cin >> val; h = initialize(val); break; case 'W': printHeap(h); break;
[ -0.07163306325674057, -0.3858657479286194, 0.06462521851062775, -0.25515300035476685, 0.378078430891037, 0.10656718909740448, 0.15975847840309143, -0.2853814959526062, -0.04430338740348816, -0.5550079345703125, -0.728513240814209, 0.44975546002388, -0.15636351704597473, 0.23825828731060028...
case 'R': { ifstream infile; infile.open("HEAPinput.txt"); infile >> arrayLength;
[ -0.18174943327903748, -0.1960451900959015, 0.13737952709197998, -0.398901104927063, 0.10870563983917236, 0.34540119767189026, 0.4342069625854492, -0.4130855202674866, 0.042252857238054276, -0.4472939670085907, -0.2558003067970276, 0.5534142851829529, -0.4745863080024719, -0.123817443847656...
ELEMENT* a = new ELEMENT[arrayLength]; for (int i = 1; i <= arrayLength; i++) infile >> a[i].key; infile.close(); buildHeap(h, a);
[ -0.20910219848155975, -0.05959450080990791, 0.3699413239955902, -0.5643388628959656, 0.26306840777397156, 0.1757885217666626, 0.6194576025009155, -0.6947111487388611, 0.04259440675377846, -0.41318807005882263, -0.36731547117233276, 0.41555163264274597, -0.423357754945755, -0.01565715670585...
} break; } } return 0; } ``` It is being compiled using g++ on a Unix server. EDIT: To clarify: With a text file with the following contents (space = new line): ``` 12 9 10 11 12 8 7 6 5 4 3 2 1 ``` The output is: ``` Capacity: 100 Size: 12 | 87 | 10 | 11 | 12 | 8 | 7 | 6 |
[ -0.11249222606420517, 0.3198951780796051, 0.4636085629463196, -0.25719067454338074, -0.010414188727736473, 0.07819018512964249, 0.24450883269309998, -0.3639306426048279, -0.16845272481441498, -0.39653879404067993, -0.4592881500720978, 0.4417424201965332, -0.31761911511421204, -0.1160110533...
5 | 4 | 3 | 2 | 1 | ``` So it's working except for that first element. Whatever you think ``` ELEMENT H []; ``` is doing, it probably isn't. C++ does not support dynamic arrays - you need to use the std::vector class. And BTW, C++ by convention uses UPPERCASE to name pre-processor macros and constants. You shou...
[ 0.021402016282081604, -0.05472356826066971, 0.1269865334033966, -0.2323930859565735, -0.04806338623166084, 0.28867027163505554, -0.061355505138635635, 0.006474380847066641, -0.15879939496517181, -0.24836038053035736, -0.11677757650613785, 0.5893457531929016, -0.7433316707611084, -0.1193290...
Sometimes it works sometimes not: ``` template <class T> void f(T t) {} template <class T> class MyClass { public: MyClass(T t) {} }; void test () { f<int>(5); MyClass<int> mc(5); f(5); MyClass mc(5); // this doesn't work } ``` Is there a way to hack around the example above? I.e. force the compiler to ...
[ 0.4119988679885864, -0.23692266643047333, 0.16597974300384521, 0.1429322212934494, 0.1870635598897934, -0.19157348573207855, 0.4551466107368469, -0.20727375149726868, 0.011482471600174904, -0.7215524911880493, -0.09039203822612762, 0.7187381386756897, -0.2714848518371582, 0.115632422268390...
can be inferred here: ``` template <typename T> void f(T t); template <typename T> void f(std::vector<T> v); ``` but not here: ``` template <typename T> T f() { return T(); } ``` And not in *class templates*. So the usual solution to your problem is to create a wrapper function, similar to the standard librar...
[ 0.0691644698381424, -0.2877805531024933, 0.123725526034832, -0.11926285922527313, 0.0928989127278328, 0.11051352322101593, 0.019955338910222054, -0.17442184686660767, 0.0865756943821907, -0.7216712236404419, -0.1791846603155136, 0.5401323437690735, -0.5468717217445374, 0.17303258180618286,...
}; template <typename T> MyClass<T> MakeMyClass(T t) { return MyClass<T>(t); } ``` and then call `auto a = MakeMyClass(5);` to instantiate the class.
[ 0.17746460437774658, -0.44352343678474426, 0.01270911656320095, -0.3668847978115082, 0.261189341545105, -0.06222176179289818, 0.40235862135887146, -0.19412919878959656, 0.15965896844863892, -0.453310489654541, -0.4095664620399475, 0.7844716310501099, -0.3842208981513977, 0.2146453857421875...
I have two local data sources that I can push into the report. Works no problem. But how do I set up the report? One data source contains a list of employees, and info about them. The other contains a bunch of working hours for each employee. I would like to use a table for the list of employees, and then have another...
[ 0.5863769054412842, 0.18358036875724792, 0.4723014533519745, 0.3355252742767334, 0.2661336064338684, 0.2404893934726715, -0.09731713682413101, -0.08416029810905457, -0.2267172783613205, -0.6635975241661072, 0.30615341663360596, 0.3036991059780121, 0.015325723215937614, 0.14394623041152954,...
is impossible to nest one dataset inside of another one without using a subreport. This means you need to do one of two things: 1. Refactor your two datasources into a single datasource. For example, perform a join between the employees and the working hours for each employee. You can then use the grouping properties...
[ 0.3202804625034332, -0.10317180305719376, 0.25985556840896606, 0.4363395869731903, 0.2514564096927643, 0.06520146876573563, -0.0443587601184845, -0.4209270775318146, -0.4041535258293152, -0.6795958280563354, 0.14288727939128876, 0.2616160809993744, -0.5208149552345276, 0.2099589854478836, ...
current employee. Filter the working hours by this parameter. In your parent report, you can place the subreport in the list, and pass the employee ID for the current row as a parameter. Note that there are a few formatting quirks involved with using subreports. I've been able to work around them in most cases, but t...
[ 0.25329723954200745, -0.04391822963953018, 0.4749394953250885, 0.17846156656742096, 0.09968584030866623, 0.07489705830812454, -0.03973923623561859, 0.2643446624279022, -0.480644553899765, -0.6670450568199158, 0.07371874153614044, 0.2646571695804596, -0.10600803792476654, 0.2763164341449737...
This is probably a basic question, since I'm new to WPF.. I have a UserControl that contains a TextBox and a Button (code is simplified for this question) : ``` <UserControl x:Name="this"> <TextBox Text="{Binding ElementName=this, Path=MyProperty.Value}"/> <Button x:Name="MyButton" Click="Button_Click"/> </Us...
[ -0.18993185460567474, 0.02149956300854683, 0.7513903379440308, -0.17257677018642426, 0.2745911180973053, 0.16886693239212036, 0.021608971059322357, -0.08761060237884521, -0.13787642121315002, -0.6316736936569214, -0.2568987309932709, 0.7073449492454529, -0.34135907888412476, 0.270361989736...
expect that the above would work, since I've implemented INotifyPropertyChanged - but it doesn't.. Anyone knows how to do this? Are you calling the OnPropertyChanged event with the name of your property when it is updated? Eg, ``` public class MyProperty : INotifyPropertyChanged { private string _value; public s...
[ 0.16581988334655762, -0.29767629504203796, 0.42029598355293274, -0.014713712967932224, 0.3551579415798187, -0.17182868719100952, 0.254880428314209, -0.249464213848114, -0.3301381468772888, -0.4124164283275604, -0.29850366711616516, 0.8993569612503052, -0.3017628788948059, 0.265374302864074...
} } ``` It is important to make sure the PropertyChanged event is fired with the name of the property you want to update.
[ 0.10691861063241959, 0.28693687915802, 0.11327311396598816, 0.007566600572317839, 0.13144776225090027, -0.5523845553398132, 0.0670330822467804, 0.26290369033813477, -0.018573027104139328, -0.40487006306648254, -0.25904712080955505, 0.9169173836708069, -0.047918274998664856, 0.1757723242044...
I need to transfer some data from our CRM system into the [Microsoft Dynamics C5](http://en.wikipedia.org/wiki/Microsoft_Dynamics_C5) accountance system. Is this possible? Writing directly in a SQL database and such hacks will be fine for me as well. I am surprised no one had this need. Anyway after talking to a cons...
[ 0.35067546367645264, 0.002555655315518379, 0.2807805836200714, 0.12628106772899628, -0.03888742998242378, -0.1645999550819397, 0.07637502253055573, 0.003626832738518715, -0.14607267081737518, -0.5858097672462463, -0.11419590562582016, 0.6052584052085876, -0.11767751723527908, 0.08931592851...
I have this code: ``` <div id="body" style="height: 295px; width: 427px; position: absolute; top: 261px; left: 284px;"> <div id="header"> Some dynamic text<br/> Some dynamic text<br/> </div> <div id="Content"> <textarea id="text" style="width: 100%"> </textarea> <input typ...
[ 0.19283245503902435, 0.17853660881519318, 0.6446129679679871, -0.2739271819591522, -0.1265018880367279, -0.011078908108174801, 0.11523635685443878, -0.3434228003025055, 0.2360880970954895, -0.7621600031852722, -0.1798514425754547, 0.330133318901062, -0.10576029866933823, 0.3372052013874054...
height of the header to change. The output should look like this: file input should be at the bottom of the content with text input filling remaining of the Content. Content itself fills remaining of the Body, which height is influenced by dynamic text. I am interested only in CSS solution, as this is easy to do with...
[ 0.11658618599176407, -0.3035971224308014, 0.5829766392707825, 0.2715727984905243, -0.23307283222675323, -0.15534959733486176, -0.18876071274280548, -0.21676747500896454, -0.30452993512153625, -0.6359718441963196, -0.1765272319316864, 0.5551691651344299, -0.14888793230056763, -0.07185234129...
if possible, #Header could be limited to max half of the #Body with the rest cropped or scrollable. ============================================================================================================================================================================================================================...
[ 0.06680967658758163, -0.11676938831806183, 0.5081949234008789, 0.3856973648071289, -0.14207865297794342, -0.42016029357910156, -0.24276749789714813, -0.10492566227912903, -0.08130159974098206, -0.2673572301864624, -0.15773189067840576, 0.5858467221260071, -0.4867832362651825, 0.03347840160...
with [JQuery LayoutManager framework](http://www.rajeeshcv.com/projects/layoutmanager-jquery-plugin/) for now.
[ 0.30408525466918945, -0.2920588254928589, 0.6071860790252686, -0.19590626657009125, -0.29140356183052063, -0.18352830410003662, -0.05079512298107147, 0.04719659686088562, -0.40508487820625305, -0.702229380607605, -0.19643396139144897, 0.3878780007362366, 0.18782538175582886, 0.139754191040...
I'm currently finishing off my dissertation, and would like to be able to include some documents within my LaTeX document. The files I'd like to include are weekly reports done in LaTeX to my supervisor. Obviously all documents are page numbered seperately. I would like them to be included in the final document. I co...
[ 0.3260143995285034, 0.36362558603286743, 0.4453762471675873, 0.1935218870639801, 0.17916791141033173, -0.1764136701822281, -0.29093900322914124, -0.21779069304466248, -0.0627918466925621, -0.6989616751670837, -0.0842098519206047, 0.1420290172100067, 0.24024562537670135, 0.20786236226558685...
report takes a whole page... In summary, I'm looking for a way of including a number of 1 or 2 page self-complete LaTeX files in a large report, keeping their original layouts, but changing the page numbering. Maintaining the original formatting per document will be difficult if they're using different formats. For ex...
[ 0.12297526746988297, -0.11624740809202194, 0.3971167802810669, 0.16900260746479034, -0.38727042078971863, -0.36652636528015137, -0.016366396099328995, -0.4719925820827484, -0.30152428150177, -0.5297773480415344, -0.054161377251148224, 0.11233974993228912, -0.2614622116088867, -0.0140924146...
in the pdfjam Ubuntu package is one example), then you can do the following: * Compile the next document to PDF * Concatenate the latest PDF with the current full PDF * Find the page count of the full PDF * Use sed to pluck in a \setcounter{page}{N} command into the next latex file * Go back to the beginning If you n...
[ -0.12508773803710938, -0.3176923096179962, 0.5850287675857544, 0.16666065156459808, -0.26201868057250977, -0.2434801310300827, -0.021775301545858383, -0.09599066525697708, -0.07883448898792267, -0.9690444469451904, -0.41497766971588135, 0.44773489236831665, -0.22359055280685425, -0.0082911...
I am hoping I am wording this correctly to get across what I am looking for. I need to compare two pieces of text. If the two strings are alike I would like to get scores that are very alike if the strings are very different i need scores that are very different. If i take a md5 hash of an email and change one charac...
[ 0.5663885474205017, 0.06524903327226639, 0.11133715510368347, 0.09354326128959656, -0.10738781094551086, -0.08900269865989685, 0.2858019769191742, 0.14593873918056488, 0.017417291179299355, -0.9051756262779236, 0.2782307267189026, 0.3817485272884369, -0.10785116255283356, 0.009871821850538...
the various links people have provided. Ideally I would of liked a single input function to create my score so I am looking at using a reference string to always compare my input to. I am also looking at taking asci characters and suming these up. Still reading all the links provided. What you're looking for is a [LCS]...
[ -0.020416129380464554, -0.009944422170519829, 0.40348485112190247, 0.10423697531223297, 0.03420573100447655, -0.012151648290455341, -0.23376478254795074, -0.1279035061597824, -0.3030553162097931, -0.8110208511352539, -0.049181874841451645, 0.38911572098731995, -0.043425463140010834, 0.2407...
I have the following the query running dynamically ``` SELECT * FROM Vehicles WHERE (DKID IN (69954)) ORDER BY case when ImageName1 = 'na' then 0 else 1 end, Make , Model, Year DESC ``` This is returning the following error: > Error Executing Database Query. > [Macromedia][SQLServer JDBC > Driver][SQLServer]Inco...
[ -0.09862226992845535, 0.14712335169315338, 0.4367445409297943, -0.024860192090272903, -0.042527925223112106, 0.3490774631500244, 0.08949963003396988, -0.262713760137558, -0.317486971616745, -0.6587031483650208, 0.000169079503393732, 0.6332738995552063, -0.2544745206832886, 0.45126041769981...
We currently facing some stability issues with our develop web application product. This product was built in part by our partner contractor, and we want to have a good standard metric for stability. The issues we have been facing is constant crashing. The web application is unable to identify when there are more reque...
[ 0.13772594928741455, 0.408331036567688, 0.15373709797859192, 0.3765020966529846, 0.28745049238204956, -0.1557711809873581, 0.32691025733947754, 0.14074169099330902, -0.23368825018405914, -0.34277579188346863, 0.27858081459999084, 0.1383725255727768, -0.08628548681735992, 0.4289897084236145...
is able to identify high loads of request and serve server unavailable try again pages, until it recovers from the high load. * A set number of users concurrent or pageviews that will allow us to have a clear metric of when to use scalability options like Load Balancer and Caching. At this moment we have to use cachin...
[ 0.28405454754829407, 0.022052666172385216, 0.3198694586753845, 0.5532820224761963, -0.21557293832302094, -0.34555578231811523, 0.15789055824279785, 0.16667720675468445, -0.35280492901802063, -0.47824370861053467, 0.05953000858426094, 0.5432124733924866, -0.17776232957839966, 0.002345784101...
service levels are. 1. Minimum number of concurrent requests. 2. Maximum time to serve a request. 3. Minimum number of requests per hour. Simple service levels like that are easy to measure, easy to simulate and easy to write into a contract. Any lawyer or accountant can review the results of a load test and say the...
[ 0.32815656065940857, 0.06238909810781479, 0.5182206034660339, 0.14053529500961304, 0.09534864127635956, -0.08203265815973282, 0.42550891637802124, -0.21096546947956085, -0.3348842263221741, -0.7888908982276917, 0.030639151111245155, 0.5950077176094055, -0.12820836901664734, -0.226418107748...
minimums and maximums from your business model. How many do you need to keep people happy and productive? Asking for more is silly. Asking for fewer means unhappy or unproductive users.
[ 0.8724365234375, -0.1437474936246872, 0.006335043348371983, 0.31323567032814026, 0.06882396340370178, 0.16505734622478485, -0.17129427194595337, -0.0922115296125412, -0.26296111941337585, -0.2724429666996002, 0.2554974853992462, 0.9279547333717346, -0.42989468574523926, 0.05056105181574821...
Is there a shortcut in VS 2005 or resharper to close the current file. or "save and close" would be even better `Ctrl` + `F4` Save and close would `Ctrl` + `S` followed with `Ctrl` + `F4`
[ -0.2334645390510559, 0.0030421584378927946, 0.6978506445884705, -0.15025578439235687, -0.04789402335882187, -0.12044674158096313, 0.20189949870109558, 0.13437338173389435, -0.2337707132101059, -0.3493051826953888, -0.41099369525909424, 0.6162286996841431, -0.20218847692012787, 0.0940693691...
I have multiple storyboards that access the same property (not at the same time). After one storyboard changed the property, the other one seems to have no access to it and does not change anything.. What can I do against this? Sample: ``` <ListBox> <ListBox.ItemContainerStyle> <Style TargetType="ListBoxI...
[ 0.4961155951023102, -0.1862204223871231, 0.26329368352890015, 0.009600433520972729, 0.04875651374459267, -0.2024574726819992, 0.05357005447149277, -0.47381162643432617, -0.2834850251674652, -0.6423885226249695, 0.057492051273584366, 0.40056031942367554, -0.1542603224515915, 0.2121953964233...
<ControlTemplate TargetType="{x:Type ListBoxItem}"> <Border Name="Border" BorderBrush="DarkGray" BorderThickness="1" Margin="3"> <ContentPresenter /> <Border.Background>
[ -0.18719518184661865, -0.33412542939186096, 0.7073355913162231, 0.2654155492782593, 0.07242968678474426, -0.16142228245735168, 0.0690094605088234, -0.30237817764282227, -0.05217009782791138, -0.4905385375022888, 0.06529227644205093, 0.07427426427602768, -0.31404241919517517, 0.242552414536...
<SolidColorBrush /> </Border.Background> </Border> <ControlTemplate.Triggers>
[ -0.37325215339660645, -0.3757503926753998, 0.43927258253097534, 0.24434170126914978, -0.11166360229253769, -0.053229596465826035, 0.1922115683555603, -0.652274489402771, -0.1993151605129242, -0.35117223858833313, 0.10435959696769714, 0.10808778554201126, -0.49093857407569885, 0.08085437864...
<Trigger Property="IsSelected" Value="True"> <Trigger.EnterActions> <BeginStoryboard>
[ -0.059302445501089096, 0.06393545120954514, 0.3288657069206238, -0.21657603979110718, 0.26809296011924744, 0.06148650497198105, 0.09662586450576782, -0.5880784392356873, -0.11024916917085648, -0.2757340967655182, -0.20144984126091003, 0.2832101583480835, -0.10420617461204529, -0.1373891979...
<Storyboard> <ColorAnimation Storyboard.TargetName="Border" Storyboard.TargetProperty="Background.Color" To="#3e8bff" Duration="0:0:0.1" />
[ 0.14264987409114838, -0.4023865759372711, 0.34169936180114746, 0.11998093128204346, 0.3653021454811096, -0.016845686361193657, 0.11060858517885208, 0.02573389746248722, -0.3536342680454254, -0.567060649394989, -0.1299983263015747, 0.2836998403072357, -0.008908306248486042, 0.05694079399108...
</Storyboard> </BeginStoryboard> </Trigger.EnterActions>
[ 0.11833260953426361, -0.19445545971393585, 0.388184130191803, 0.03372935578227043, 0.2743534743785858, -0.21658456325531006, 0.1301913857460022, -0.2977621257305145, -0.3212297856807709, -0.5607549548149109, -0.34266307950019836, 0.023320725187659264, -0.08605954796075821, -0.2424790561199...
<Trigger.ExitActions> <BeginStoryboard>
[ -0.07023309171199799, 0.05424726754426956, 0.46052825450897217, -0.26892751455307007, 0.32385319471359253, -0.02405550517141819, 0.051082056015729904, -0.3143731951713562, -0.21700532734394073, -0.3425535261631012, -0.2567206621170044, -0.023525647819042206, -0.18167562782764435, 0.0627273...
<Storyboard> <ColorAnimation Storyboard.TargetName="Border" Storyboard.TargetProperty="Background.Color" To="White" Duration="0:0:0.1" /> </Storyboard>
[ 0.15673445165157318, -0.4359900951385498, 0.16387003660202026, 0.07996034622192383, 0.40562352538108826, 0.008311820216476917, 0.12994302809238434, 0.07496372610330582, -0.36473026871681213, -0.5998373627662659, -0.1384105533361435, 0.2027607411146164, -0.0009008892811834812, 0.01696843840...
</BeginStoryboard> </Trigger.ExitActions> </Trigger>
[ -0.2285696268081665, -0.020353857427835464, 0.48762306571006775, -0.26023080945014954, 0.34345439076423645, -0.009422505274415016, 0.11771154403686523, -0.3131325840950012, -0.14862322807312012, -0.4932900369167328, -0.45920246839523315, 0.054975081235170364, -0.1336691975593567, -0.072713...
<MultiTrigger> <MultiTrigger.Conditions> <Condition Property="IsMouseOver" Value="True" />
[ -0.3350957930088043, 0.0018609791295602918, 0.07331601530313492, -0.01919431984424591, -0.012993917800486088, -0.11657948791980743, 0.34999269247055054, -0.42733410000801086, -0.25511234998703003, -0.5958330035209656, -0.2317124605178833, 0.4972834289073944, -0.3483191132545471, 0.22844634...
<Condition Property="IsSelected" Value="False" /> </MultiTrigger.Conditions> <MultiTrigger.EnterActions>
[ -0.28239378333091736, 0.24211955070495605, -0.11646261811256409, -0.017665762454271317, 0.11958585679531097, 0.2451576441526413, 0.4023649990558624, -0.5216212272644043, -0.11481734365224838, -0.638780951499939, -0.35485634207725525, 0.31379854679107666, -0.3354797661304474, 0.061048429459...
<BeginStoryboard> <Storyboard>
[ 0.23208953440189362, 0.024579083546996117, 0.13932090997695923, 0.2238554209470749, 0.29616230726242065, -0.32562878727912903, 0.051984116435050964, 0.4462147653102875, -0.36129122972488403, -0.8705980777740479, -0.191264346241951, -0.2556605339050293, 0.5406181812286377, -0.09244522452354...
<ColorAnimation Storyboard.TargetName="Border" Storyboard.TargetProperty="Background.Color" To="Orange" Duration="0:0:0.1" /> </Storyboard> </BeginStoryboard>
[ 0.006914135534316301, -0.599624514579773, 0.27581924200057983, -0.12358804047107697, 0.43787673115730286, 0.09428122639656067, 0.07224529981613159, 0.13175997138023376, -0.2945592701435089, -0.6612779498100281, -0.2823522388935089, 0.3221760392189026, -0.014731474220752716, -0.044698849320...
</MultiTrigger.EnterActions> <MultiTrigger.ExitActions> <BeginStoryboard>
[ -0.544395923614502, 0.28614547848701477, 0.25814691185951233, -0.23077748715877533, 0.05838027969002724, 0.14556503295898438, 0.4928775727748871, -0.2934491038322449, -0.19370169937610626, -0.7423678040504456, -0.45491456985473633, -0.048012517392635345, -0.37963902950286865, 0.00255978270...
<Storyboard> <ColorAnimation Storyboard.TargetName="Border" Storyboard.TargetProperty="Background.Color" To="White" Duration="0:0:0.1" />
[ 0.15852943062782288, -0.45889124274253845, 0.20926642417907715, 0.13311222195625305, 0.3822396695613861, -0.015871500596404076, 0.16194936633110046, 0.05856155976653099, -0.2907794415950775, -0.6036216616630554, -0.11596380174160004, 0.22288291156291962, -0.024545133113861084, 0.0122415851...
</Storyboard> </BeginStoryboard> </MultiTrigger.ExitActions>
[ -0.12866628170013428, -0.12616534531116486, 0.09356661885976791, 0.23506765067577362, 0.3358447849750519, -0.11303017288446426, 0.2374739944934845, 0.017838994041085243, -0.3100881278514862, -0.7537800073623657, -0.4264315664768219, 0.018603069707751274, 0.05693211778998375, -0.13336181640...
</MultiTrigger> </ControlTemplate.Triggers> </ControlTemplate> </Setter.Value> </Setter> </Style> </ListBox.ItemContainerStyle>
[ 0.03218843415379524, -0.24306011199951172, 0.3478858768939972, 0.38590186834335327, -0.21928368508815765, 0.15943622589111328, -0.012550718151032925, -0.6452552676200867, -0.3643110692501068, -0.38617661595344543, -0.17229048907756805, 0.31091246008872986, -0.37505003809928894, 0.007273348...
<ListBox.Items> <sys:String>hey</sys:String> <sys:String>du</sys:String> <sys:String>dux</sys:String> <sys:String>duy</sys:String> <sys:String>dua</sys:String> </ListBox.Items> </ListBox> ``` This is the smallest sample code I could make. After you've hovered an item, it wo...
[ 0.23683127760887146, -0.17528024315834045, 0.28464797139167786, -0.07789577543735504, -0.08404489606618881, 0.4163818359375, -0.20030400156974792, -0.3486280143260956, -0.26543933153152466, -0.6048943400382996, 0.16469761729240417, 0.05963935703039169, -0.45375487208366394, 0.2277974784374...
more then one storyboard at the same time, just stop other. ``` <ControlTemplate.Triggers> <MultiTrigger> <MultiTrigger.Conditions> <Condition Property="IsMouseOver" Value="True"/> <Condition Property="Selector.IsSelected" Value="False" /> </MultiTrigger.Conditions> ...
[ -0.05431031435728073, -0.5253844261169434, 0.09929349273443222, 0.1768190711736679, 0.24757727980613708, -0.14374993741512299, 0.06066407263278961, -0.24284711480140686, -0.44621360301971436, -0.7570286989212036, -0.4515005052089691, 0.2881048321723938, 0.07862848043441772, 0.3223178982734...
<BeginStoryboard x:Name="EnterBegin" Storyboard="{StaticResource MouseEnterSb}"/> </MultiTrigger.EnterActions> <MultiTrigger.ExitActions> <BeginStoryboard x:Name="LeaveBegin" Storyboard="{StaticResource MouseLeaveSb}"/> </MultiTrigger.ExitActions> </MultiTrigger> <Trigger Pro...
[ -0.3022753894329071, -0.059554263949394226, 0.45218220353126526, -0.28843629360198975, 0.14222362637519836, 0.061352986842393875, 0.2000930905342102, -0.03754080459475517, -0.25550273060798645, -0.5227546095848083, -0.3739928901195526, 0.2611353397369385, -0.05081883445382118, 0.0396330133...
<BeginStoryboard x:Name="SelectedBegin" Storyboard="{StaticResource SelectedSb}"/> </Trigger.EnterActions> <Trigger.ExitActions> <BeginStoryboard x:Name="UnselectBegin" Storyboard="{StaticResource UnselectSb}"/> </Trigger.ExitActions> </Trigger> </ControlTemplate.Triggers> ```
[ -0.3217393457889557, -0.4489813446998596, 0.2106969803571701, 0.04558321833610535, 0.0627516657114029, 0.13709643483161926, -0.04581364244222641, 0.047535307705402374, -0.22518043220043182, -0.6024760007858276, -0.31716907024383545, 0.25491341948509216, -0.17129218578338623, 0.178617835044...
I am using resharper to do a big refactoring and i keep going from file to file and adding the same namespace over and over again in the "using" section is there anyway to add a "using" statement to every single file in a folder, namespace or project? Even though some files wont need the reference, most do, so it will...
[ 0.5462618470191956, 0.24808795750141144, 0.3784753084182739, -0.09071918576955795, 0.019458049908280373, 0.13234423100948334, 0.16497990489006042, -0.20500554144382477, -0.14276963472366333, -0.7396129965782166, 0.15741609036922455, 0.6307794451713562, -0.2929033935070038, 0.21344879269599...
all files in your solution(/folder) with the resharper. That will remove doubled usings. **Update**: Did you introduce new namespaces for existing types? There is a refactor function called "move". It will move your type to a new namespace and preserve the references.
[ 0.26287004351615906, -0.023104840889573097, 0.6363492608070374, 0.10786765813827515, 0.0878663882613182, 0.18305687606334686, 0.07764648646116257, -0.3019648790359497, -0.3374614119529724, -0.7107401490211487, 0.024518245831131935, 0.3721008598804474, -0.4480525255203247, 0.117526359856128...
How do I access a private attribute of a parent class from a subclass (without making it public)? My understanding of Python convention is * \_member is protected * \_\_member is private Options for if you control the parent class * Make it protected instead of private since that seems like what you really want * Us...
[ -0.0021423064172267914, -0.08885553479194641, -0.000668765977025032, 0.10634919255971909, -0.1373034119606018, -0.33670881390571594, 0.4408506155014038, -0.062050849199295044, -0.14934661984443665, -0.570589542388916, -0.00501979049295187, 0.7483533620834351, -0.24191533029079437, 0.351140...
I'm writing a static class for logging to be used across my developed solution. There are several components that will use it such as a console application, ASP.NET application, etc... For the logging to work, it needs to do some initial startup configuration before it can be used, and also some clean up when each app...
[ 0.5399782657623291, -0.02980080433189869, 0.26117947697639465, 0.16702288389205933, 0.22994093596935272, -0.2255948930978775, 0.08708306401968002, -0.0754174217581749, -0.3334006071090698, -0.4965880811214447, -0.06135963276028633, 0.5059559345245361, -0.1959712952375412, 0.068548448383808...
to check whether the logging class has been initialised, however the potential overhead both in performance and complexity scares me. You can use a type initializer (e.g. a static constructor) for the startup side of things - that will automatically be called when you first use the class. Detecting shutdown is harder....
[ 0.3156868815422058, -0.20880405604839325, 0.5350919961929321, 0.01220378652215004, 0.03327460587024689, -0.2952149212360382, 0.354716956615448, -0.27377140522003174, -0.36296573281288147, -0.604344367980957, -0.33565637469291687, 0.5437172651290894, -0.39923763275146484, -0.008017003536224...
I am using the latest version of inno that does the following during setup: 1. Perform dependency check to see what is installed 2. Installs dependencies that are not already installed (.net, sql server, directx etc) 3. Install the application and the files from the [Files] section (wpReady) 4. Checks SQL Server for p...
[ 0.5598562955856323, 0.22332550585269928, 0.671324610710144, -0.16194882988929749, 0.2782927453517914, -0.4739491641521454, 0.08035421371459961, -0.47039178013801575, 0.015490766614675522, -1.0648976564407349, -0.15419796109199524, 0.9257124662399292, -0.25130629539489746, -0.01732448115944...
containing the files required for steps [1,2 and 4] mentioned above. This works great but I would like to create a single exe only that includes all the dependencies and extracts the dependencies BEFORE `wpReady` and before Step [1] above. The dependencies are in the `[Files]` section but these files are not extract...
[ 0.38866469264030457, -0.1986534744501114, 0.5810269117355347, 0.010756433010101318, 0.1321924477815628, -0.09977845102548599, 0.20063278079032898, -0.6401793360710144, -0.09177126735448837, -0.665645182132721, -0.393575519323349, 0.8070321083068848, -0.373153418302536, -0.14152759313583374...
temp directory before `wpReady` or should I perform the actions of `wpReady` first then go about installing the Dependencies (not ideal though). You can use the `ExtractTemporaryFile()` function in the `PrepareToInstall` event function to extract any file from the `[Files]` section to `{tmp}` earlier, and it will be de...
[ 0.2720237672328949, -0.24640579521656036, 0.2610693573951721, 0.055644795298576355, 0.07824351638555527, -0.28070250153541565, 0.33960291743278503, -0.042168352752923965, 0.07881806045770645, -0.5914628505706787, -0.29483866691589355, 0.9974272847175598, -0.12879915535449982, -0.3073701858...
I'm writing a WPF desktop application and have a view that needs to look like a calendar. I only need to show four weeks (fixed). Each week will have a list of items (probably represented with a ListView). I'm debating between two approaches: 1. Using layout controls - a Grid control where each "cell" contains a ListV...
[ 0.5740464329719543, -0.2505682110786438, 0.8243245482444763, -0.10566036403179169, -0.1831209510564804, 0.06911928951740265, 0.12074921280145645, -0.47040072083473206, -0.5449926257133484, -0.7242929935455322, 0.32493406534194946, 0.1722722351551056, -0.07368919998407364, -0.02615766227245...
again, it would be simple. I'm thinking the ListView/GridView would be more elegant, but I still need to create a ListView for each cell and then I have to figure out how to style the control in such a way that it looks more like a calendar and less like a table. Thoughts? You could use a ListBox, with a UniformGrid....
[ 0.5171747207641602, -0.25172507762908936, 0.5337134003639221, 0.26231446862220764, -0.06146152317523956, 0.21448150277137756, -0.10173435509204865, -0.16839419305324554, -0.34986358880996704, -0.6494877338409424, 0.34968140721321106, 0.374804824590683, -0.14498265087604523, -0.126852825284...
part of its template, for displaying tasks/meetings/whatever. The whole thing would bind to a collection of objects that represents the "days" and their content. ListBox is usually a good bet for the base of an ItemsControl. You should also have a look at how the Calendar control is built in WPF, it might help give ...
[ 0.6191021800041199, -0.4088764190673828, 0.321996808052063, 0.501693069934845, -0.03636736795306206, -0.3506728708744049, -0.029566938057541847, 0.14425939321517944, -0.3558029234409332, -0.5358757376670837, 0.1961728185415268, 0.0892733484506607, -0.079037144780159, 0.1520911604166031, ...
I'm trying to select the first row where the cell value starts with the same keychar the user pressed. That's the part that is giving me trouble. Here's how I'm handling the event (**updated with working solution**): ``` private void dataGridView1_KeyPress(object sender, KeyPressEventArgs e) { if (Char.IsLetter(e...
[ 0.061213668435811996, -0.08108866214752197, 0.8009258508682251, -0.22838224470615387, 0.11495820432901382, 0.038820330053567886, 0.5717806220054626, -0.3563874065876007, -0.12806636095046997, -0.7017403244972229, -0.2565082609653473, 0.55730140209198, -0.25352850556373596, 0.11832091212272...
{ dataGridView1.Rows[i].Cells[0].Selected = true; return; // stop looping } } } } ``` I'm sure it's something simple that I'm overlooking, but for the life of me can't figure out what it is. EDIT ---- Updated the code with solution applied Might be a case issu...
[ 0.15258747339248657, 0.1335790604352951, 0.30740290880203247, -0.09399767220020294, 0.08939950168132782, -0.17569679021835327, 0.3953230082988739, -0.14070463180541992, -0.10713326930999756, -0.4951746463775635, -0.03404664993286133, 0.41414910554885864, -0.42018964886665344, 0.31270971894...
Try using ToUpper or ToLower on both; or you could try StartsWith(e.KeyChar, true) to ignoreCase. If you are trying to select the row, you'll want to do dataGridView1.Rows[i].Selected = true
[ -0.08189708739519119, -0.2816941440105438, 0.4784250855445862, -0.051250409334897995, 0.13659918308258057, 0.048564642667770386, 0.12232154607772827, -0.10829754173755646, -0.2533685863018036, -0.5905641913414001, -0.03943122178316116, 0.5228863954544067, -0.19717316329479218, 0.1395732313...
I would like to share an object between various instances of objects of the same class. Conceptually, while my program is running, all the objects of class A access the same object of class B. I've seen that `static` is system-wide and that its usage is discouraged. Does that mean that if I've got another program run...
[ 0.3845636546611786, 0.1057058572769165, -0.19803465902805328, 0.13886505365371704, -0.09111204743385315, -0.19760029017925262, 0.11878811568021774, 0.23997816443443298, -0.28438520431518555, -0.44797688722610474, 0.10115212202072144, 0.3996170461177826, -0.2781289219856262, 0.5368550419807...
of implementation)? Static doesn't quite mean "shared by all instances" - it means "not related to a particular instance at all". In other words, you could get at the static field in class A without ever creating *any* instances. As for running two programs within the same JVM - it really depends on exactly what you m...
[ 0.33949410915374756, -0.3181270956993103, -0.062353409826755524, 0.07591453194618225, -0.14458130300045013, -0.1632959544658661, 0.2598895728588104, 0.01676718331873417, -0.513329029083252, -0.5189581513404846, -0.055245183408260345, 0.3725220263004303, -0.4820009469985962, 0.2811889350414...
there'll only be one so they'll see each other's changes. As for an alternative - there are various options. One is to pass the reference to the "shared" object to the constructor of each object you create which needs it. It will then need to store that reference for later. This can be a bit of a pain and suck up a bi...
[ 0.5105087757110596, -0.08182669430971146, 0.30887413024902344, 0.42059168219566345, 0.11344631761312485, 0.30034589767456055, -0.13003534078598022, -0.2954103350639343, -0.09746493399143219, -0.6789882183074951, 0.1412445604801178, 0.5602619647979736, -0.21774689853191376, 0.26459664106369...
In WPF, when I right-click on a treeview item I would like it to be Selected/Activated before showing the context menu. This sounds pretty simple, but the inclusion of a hierachicalDataTemplate complicates things a little. I have the following treeview: ``` <TreeView x:Name="trv" ContextMenu...
[ -0.09245967119932175, -0.32964026927948, 0.6093328595161438, -0.17049607634544373, -0.09993915259838104, -0.13455496728420258, 0.029947534203529358, -0.4520379602909088, -0.17097072303295135, -0.7256059646606445, -0.12327490001916885, 0.6102133393287659, -0.20889446139335632, -0.0856655389...
<TreeView.ItemContainerStyle> <Style TargetType="{x:Type TreeViewItem}"> <EventSetter Event="TreeViewItem.PreviewMouseRightButtonDown" Handler="trv_PreviewMouseRightButtonDown"/> <Setter Property="IsExpanded" Value="True"></Setter> </Style> ...
[ -0.29179295897483826, -0.3814172148704529, 0.12556949257850647, 0.025304017588496208, -0.4293188452720642, -0.08409549295902252, 0.4357268810272217, -0.20718446373939514, -0.14141134917736053, -0.32699424028396606, -0.33628615736961365, 0.359414666891098, -0.053838785737752914, -0.19656927...
</TreeView> ``` And here is my event handler... ``` private void trv_PreviewMouseRightButtonDown(object sender, MouseButtonEventArgs e) { TreeViewItem item = sender as TreeViewItem; if (item != null) { item.Focus(); e.Handled = true; } } ``` Note how I add an EventSetter above. Thi...
[ -0.17578211426734924, -0.2579781115055084, 0.3505878746509552, -0.10115568339824677, -0.3123742640018463, 0.06834437698125839, 0.3405475914478302, 0.005197640508413315, -0.3054729700088501, -0.6542220711708069, -0.1588515192270279, 0.4342786967754364, -0.14727982878684998, 0.18382900953292...
TYPE. Here is my hierarchical data template... ``` <HierarchicalDataTemplate x:Key="treeHierarchicalDataTemplate" ItemsSource="{Binding Path=ChildMeetingItems}"> <HierarchicalDataTemplate.Triggers> <DataTrigger Binding="{Binding Path=Red}" Value="True"> <Setter Targe...
[ -0.13316591084003448, -0.10523393005132675, 0.575456440448761, 0.04578894004225731, -0.16260822117328644, -0.051854025572538376, 0.104696124792099, -0.5242190957069397, -0.1950474977493286, -0.7903647422790527, -0.06771226972341537, 0.20481166243553162, -0.3725129961967468, 0.0669084936380...
Orientation="Horizontal"> <Image Width="16" Height="16" x:Name="img" Margin="0,0,4,0" Source="pack://siteoforigin:,,,/images/bookGreen.png"></Image> <TextBlock Foreground="DarkGray" Text="{Binding DisplayIndex}" Margin="0,0,5,0"></TextBlock> <TextBlock Text="{Binding Summary}"></TextBlock> ...
[ -0.3621101379394531, -0.10083851963281631, 0.7246066927909851, 0.07413706928491592, -0.1604282259941101, 0.22610624134540558, 0.02957138977944851, -0.3893166184425354, -0.31600046157836914, -0.5812617540359497, -0.20441269874572754, 0.19235935807228088, -0.19566945731639862, -0.03370413184...
ItemsSource="{Binding Path=ChildMeetingItems}"> <HierarchicalDataTemplate.Triggers> <DataTrigger Binding="{Binding Path=Red}" Value="True"> <Setter TargetName="img" Property="Image.Source" Value="pack://siteoforigin:,,,/images/bookRed.png"></Setter> </DataTrigger> </HierarchicalDataT...
[ -0.3129189908504486, -0.09287149459123611, 0.7544928789138794, 0.09016681462526321, -0.1306244432926178, 0.2658948600292206, 0.017963899299502373, -0.4321071207523346, -0.586044192314148, -0.37953421473503113, -0.39216679334640503, -0.04273071140050888, -0.06911623477935791, 0.100121580064...
<TextBlock Foreground="DarkGray" Text="{Binding DisplayIndex}" Margin="0,0,5,0"></TextBlock> <TextBlock Text="{Binding Summary}"></TextBlock> </StackPanel> <HierarchicalDataTemplate.ItemContainerStyle> <Style TargetType="{x:Type TreeViewItem}"> <EventSetter Event="TreeVi...
[ -0.2659982740879059, -0.3369714617729187, 0.4038028419017792, 0.04388394206762314, -0.40602272748947144, -0.07657650113105774, 0.2987236976623535, -0.435557097196579, -0.2290816605091095, -0.3468511700630188, -0.2696695625782013, 0.1794758141040802, -0.08343018591403961, -0.171022534370422...
</HierarchicalDataTemplate.ItemContainerStyle> </HierarchicalDataTemplate> ```
[ -0.30125072598457336, -0.14670859277248383, 0.24204376339912415, 0.3315361440181732, -0.3660546839237213, 0.17220190167427063, 0.31421324610710144, -0.06923775374889374, -0.23255231976509094, -0.6162188053131104, -0.14948615431785583, 0.11332519352436066, -0.3678768575191498, 0.07113679498...
The code worked all along. Somehow I manage to get Visual C++ Express not hit the break point on the final return statement and it appeared to run for ever. In the example code bellow EnumWindows enumerates infinitely. How can one make it stop after all windows has been enumerated. ``` #include <Windows.h> BOOL CALL...
[ 0.2841346859931946, -0.03148283436894417, 0.655584454536438, -0.20042507350444794, 0.0261786300688982, 0.1329028606414795, 0.6177059412002563, -0.2294701635837555, -0.447708398103714, -0.18763388693332672, -0.1610250025987625, 0.8331167101860046, -0.31116577982902527, 0.20895017683506012, ...
EnumWindows(EnumWindowsProc, 0); return 0; } ``` Your code works for me, once I removed the wide-character stuff and added `#include <stdio.h>` to get the printf() declaration. What output does it produce on your system? The code that works for me is: ``` #include <windows.h> #include <stdio.h> BOOL CALLBACK En...
[ 0.24535708129405975, 0.1825661063194275, 0.5617988705635071, -0.43791109323501587, 0.1321268230676651, 0.14855806529521942, 0.2829943299293518, -0.3952504098415375, -0.2622004747390747, -0.38465094566345215, -0.44455647468566895, 0.7956302165985107, -0.3588118255138397, 0.21496659517288208...
return 0; } ```
[ -0.08943724632263184, 0.4295458495616913, -0.059937331825494766, -0.3494859039783478, 0.21046504378318787, -0.24239720404148102, 0.3369516432285309, 0.1903323382139206, 0.2826375663280487, -0.2215728461742401, -0.5472885370254517, 0.7560986280441284, -0.3351743519306183, 0.2546907663345337...
Take a look at this example function: ``` RuntimeConfiguration* conf_rt_conf() { RuntimeConfiguration *conf; conf = new RuntimeConfiguration(); conf->arch_path="./archive"; conf->err_log="./err_log"; conf->fail_log="./fail_log"; conf->msg_log="./msg_log"; conf->save="html, htm, php"; c...
[ -0.02055147849023342, -0.029486078768968582, 0.49295347929000854, -0.21438555419445038, 0.1989089697599411, -0.1814064234495163, 0.48258066177368164, -0.43677547574043274, -0.21613655984401703, -0.8937832117080688, -0.13280078768730164, 0.5774465799331665, -0.4786621928215027, 0.0420019179...
db_input[0]->prefix="/eng"; db_input[1]->full_name="Rzeczpospolita"; db_input[1]->alias="rp"; db_input[1]->prefix="/pol"; return db_input; } ``` I get segmentation fault on first assignment. It probably has something to do with the fixed memory block allocated for this struct. How do I get it to wor...
[ 0.08658234030008316, 0.13866391777992249, 0.3522953987121582, -0.1071435809135437, -0.15725892782211304, 0.19252264499664307, 0.257552832365036, -0.6776230931282043, -0.08913186937570572, -0.5921817421913147, 0.012369591742753983, 0.3577617108821869, -0.3513023555278778, 0.2420069128274917...
I have recently become aware that our code has several implementations of a version parser (that is code to create a Version object from a version string). Thinking this was one of those times when people could not be bothered to read the docs I figured I would jump into MSDN, find the "standard" method to do this and ...
[ 0.32118016481399536, 0.16589640080928802, 0.03129272162914276, -0.011876887641847134, -0.14351946115493774, -0.15285514295101166, 0.39818620681762695, 0.38889145851135254, -0.33682674169540405, -0.4861808121204376, 0.23511889576911926, 0.7411137819290161, -0.3063680827617645, 0.25866523385...
no method in the .Net API for converting a version string to a Version object. Please note I have the code to do it. In fact I have two different approaches that are being used in several different methods. What I am looking for is one in the standard library. This issue is that the Version string we get from our hardw...
[ 0.3806677758693695, 0.1834920048713684, 0.1486724466085434, -0.3225020468235016, -0.01124192401766777, -0.28563192486763, 0.35537397861480713, 0.23364409804344177, -0.2133074402809143, -0.7056264877319336, -0.11136046051979065, 0.704107403755188, -0.19606369733810425, 0.3662269711494446, ...
How do I find the 10 largest files in a directory structure? Try this script ``` Get-ChildItem -re -in * | ?{ -not $_.PSIsContainer } | sort Length -descending | select -first 10 ``` Breakdown: The filter block "`?{ -not $_.PSIsContainer }`" is meant to filter out directories. The sort command will sort all ...
[ -0.2942523956298828, -0.10427721589803696, 0.3938430845737457, 0.007564624305814505, 0.48968055844306946, 0.16180358827114105, 0.03163965791463852, -0.04149749130010605, -0.1561761051416397, -0.6034916043281555, -0.41115933656692505, 0.3195396661758423, -0.3317188024520874, -0.003054639790...