text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
said that you don't care about that. I'd recommend hash maps particularly if the keys are integers or pointers, because these hash very quickly.
[ 0.2933270037174225, 0.20636846125125885, 0.061874210834503174, 0.1430685669183731, 0.06557740271091461, -0.24575155973434448, 0.052284590899944305, 0.40933936834335327, -0.22359590232372284, -0.3160926103591919, 0.13296279311180115, 0.18891797959804535, 0.0663612112402916, -0.0559657812118...
Solution to original problem (below) may have been discovered. I commented out ``` <identity> ... </identity> ``` tag in the app.config file for the client. But I'm not sure if this is going to cause other problems, if it does, could someone let me know? --- I've been following the [Getting Started tutorial](...
[ 0.0350506454706192, 0.17740978300571442, 0.37982574105262756, -0.009078795090317726, 0.0306813046336174, 0.2815333306789398, 0.5196340084075928, -0.33861276507377625, -0.22548553347587585, -0.7391170263290405, -0.020383182913064957, 0.9687598943710327, -0.04595544561743736, -0.340344637632...
exception for more details. The inner exception message says: > "The Security Support Provider Interface (SSPI) negotiation failed." My code is pretty much exactly the same as the example's. I've never really done anything with web services or WCF or anything similar. Anyone know how I could go about fixing this? Th...
[ -0.14697666466236115, 0.20831170678138733, 0.625942587852478, -0.0034802714362740517, -0.013041432946920395, 0.0835195779800415, 0.4051351249217987, -0.0721258819103241, -0.43885278701782227, -0.5001647472381592, -0.00011529609764693305, 0.7282682657241821, -0.4152206480503082, 0.008866156...
problems too and that helped him, but when I do that the same exception is thrown on the new line. SSPI failing is a Kerberos-related security negotiation failure. Are you on a domain, and you might have trouble communicating with the domain controller right now? Or is there another reason that you'd be unable to authe...
[ 0.1560530960559845, -0.12854647636413574, 0.4580228328704834, 0.29500988125801086, 0.22203612327575684, -0.22742179036140442, 0.6167879700660706, 0.10220521688461304, -0.410616010427475, -0.391358345746994, 0.0025567945558577776, 0.18018729984760284, -0.2229704111814499, 0.3337134718894958...
I know this is a darn simple question, but I'm very used to using Borland and wrappers, so this is a bit of a new approach for me. Can someone simply tell me how I Can open an OpenDialog that only gets .obj files from a visual studio c++ console app? It's very much appreciated! There isn't really any difference betwe...
[ 0.1591642200946808, 0.19643884897232056, 0.4193880558013916, 0.22714893519878387, 0.006170485634356737, -0.18992668390274048, 0.24030153453350067, -0.01764732040464878, 0.0025622653774917126, -0.7392680644989014, -0.03126906603574753, 0.7878223061561584, -0.052582982927560806, 0.1704301983...
so you need to use the [GetOpenFileName](http://msdn.microsoft.com/en-us/library/ms646927.aspx) call, as follows: #define DEFAULT\_EXTENSION L".obj" ``` OPENFILENAME ofn; wchar_t *FilterSpec =L"Object Files(*.obj)\0*.obj\0Text Files(*.txt)\0*.txt\0All Files(*.*)\0*.*\0"; wchar_t *Title =L"Open...."; wchar_t szFile...
[ 0.03316302224993706, -0.6735332608222961, 0.90389484167099, -0.31147751212120056, 0.3495613932609558, -0.07544122636318207, 0.18055452406406403, -0.5168831944465637, -0.33997514843940735, -0.6504611968994141, -0.3673883080482483, 0.7437894940376282, -0.31841105222702026, -0.132877036929130...
= szFileName; ofn.nMaxFile = MAX_PATH; ofn.lpstrInitialDir = L"."; // Initial directory. ofn.lpstrFileTitle = szFileTitle; ofn.nMaxFileTitle = MAX_PATH; ofn.lpstrTitle = Title; ofn.lpstrDefExt = DEFAULT_EXTENSION; ofn.Flags = OFN_FILEMUSTEXIST|OFN_HIDEREADONLY; if (!GetOpenF...
[ 0.011587092652916908, -0.5246762037277222, 0.9664913415908813, -0.26578488945961, 0.6141180396080017, 0.07738326489925385, 0.1710745245218277, -0.4127812683582306, -0.28592202067375183, -0.4967736601829529, -0.5756292939186096, 1.0256224870681763, -0.05828715115785599, 0.29711198806762695,...
A WCF service exposing multiple elements in DataContract as DataMember ``` [DataMember(IsRequired = true, EmitDefaultValue = false)] public string Source; [DataMember(IsRequired = true, EmitDefaultValue = false)] public string Target; ``` In generated proxy (through add service reference in VS 2008) at client, the ...
[ 0.10113900899887085, -0.17796045541763306, 0.4390178918838501, -0.19344748556613922, -0.3575010895729065, -0.24841944873332977, 0.3917720913887024, -0.4384908080101013, -0.08362893015146255, -0.7099277377128601, -0.0814577043056488, 0.4837924838066101, -0.30596664547920227, 0.4447128176689...
try putting some code in the setter to throw an exception for invalid values? Alternatively (for more complex cases), I believe that data-contracts support deserialization callbacks, which should allow you to validate... For example, you can add (in a partial class, if necessary, at the client): ``` [OnDeserialized]...
[ 0.21115748584270477, -0.1689268946647644, 0.2621358633041382, -0.08931620419025421, 0.28225427865982056, -0.03359401971101761, 0.29789605736732483, -0.21216565370559692, -0.1649683117866516, -0.5473311543464661, -0.1774308681488037, 0.5749340057373047, -0.5620973706245422, 0.09930887818336...
{ throw new InvalidOperationException("No Bar!"); } } ``` However, the server **must** also validate this - you can't assume that it is *your* client code that has sent the message.
[ 0.20465461909770966, 0.3595089912414551, 0.32975590229034424, -0.27752432227134705, -0.05190715938806534, -0.33579906821250916, 0.6034833192825317, 0.2115233689546585, -0.09653903543949127, -0.4647974371910095, -0.40231290459632874, 0.4668906033039093, -0.3634442985057831, 0.27278682589530...
Commonly when I look around the Internet, I find that people are generally using CSS hacks to make their website look the same in all browsers. Personally, I have found this to be quite time consuming to find all of these hacks and test them; each change you make you have to test in 4+ browsers to make sure it didn't b...
[ 0.9407000541687012, 0.30820101499557495, -0.12290725111961365, -0.13335253298282623, -0.21965153515338898, -0.3144755959510803, 0.45510223507881165, 0.41984695196151733, -0.584804892539978, -0.7206687331199646, -0.030333541333675385, 0.26667076349258423, -0.1667860597372055, 0.307511389255...
server based). I have started doing this as well. On almost all of the sites I have worked on recently, I use jQuery, so I use the built in browser detection. Is there a reason you use or don't use either of these? The problem is that you only really get one shot at the css (since it is pretty much static content at t...
[ 0.2874374985694885, 0.03419215604662895, 0.11072593182325363, 0.03604437783360481, -0.3496432900428772, -0.35041218996047974, 0.29661810398101807, 0.40878865122795105, -0.29114389419555664, -0.7815854549407959, 0.000855068676173687, 0.587533175945282, -0.3286879062652588, -0.14075833559036...
changing very soon. With javascript, you can often avoid much of this pain through libraries like (as you state) jQuery - and checking for *functionality* support rather than identifying the specific browser (most of the time). There are some cases you need to know exactly (the box model, for example).
[ 0.31732651591300964, -0.061920929700136185, 0.31789812445640564, -0.07305659353733063, -0.018012477084994316, -0.0832928791642189, 0.19963569939136505, 0.4828145205974579, -0.4049037992954254, -1.179634928703308, -0.06697886437177658, 0.40722471475601196, -0.23943693935871124, 0.0703790262...
In the MVVM pattern for WPF, handling dialogs is one of the more complex operations. As your view model does not know anything about the view, dialog communication can be interesting. I can expose an `ICommand` that when the view invokes it, a dialog can appear. Does anyone know of a good way to handle results from di...
[ 0.14960627257823944, -0.0505698136985302, 0.47289854288101196, -0.06573645770549774, -0.24921992421150208, -0.2810215353965759, 0.25075820088386536, 0.035039350390434265, -0.43608590960502625, -0.6345678567886353, -0.09518278390169144, 0.732019305229187, -0.24593201279640198, 0.07298234105...
view requires code which is something I would like to stay away from. I suggest forgoing the 1990's modal dialogs and instead implementing a control as an overlay (canvas+absolute positioning) with visibility tied to a boolean back in the VM. Closer to an ajax type control. This is very useful: ``` <BooleanToVisibili...
[ -0.0965207889676094, -0.09531445801258087, 0.4789852201938629, -0.04740237444639206, -0.31810104846954346, -0.09158902615308762, 0.13034693896770477, -0.08429698646068573, -0.10814899951219559, -0.7076546549797058, 0.13353507220745087, 0.8759452104568481, -0.23191198706626892, -0.037986576...
about code that manipulates UI.) ![Wpf dialog](https://i.stack.imgur.com/VFHAA.png)
[ 0.7097938656806946, -0.1395156979560852, 0.5193005204200745, 0.16881297528743744, 0.07957200706005096, -0.49609896540641785, 0.5710926651954651, -0.23108430206775665, -0.39564839005470276, -0.33204853534698486, -0.14237909018993378, 0.5178554654121399, -0.11331317573785782, 0.1453024446964...
I'm specifically interested in solution load times & build times - does fewer solutions mean better performance? Note that I'm *not* referring to the performance of the built application. Are load times and build times more efficient when working with a smaller number of projects? As a guide, we have 50-60 projects ...
[ 0.5847379565238953, 0.023001138120889664, -0.004638375714421272, 0.18332387506961823, -0.12999597191810608, 0.2631331980228424, 0.19100181758403778, -0.3685397505760193, -0.26517972350120544, -0.9968852400779724, -0.0813988670706749, 0.3475313186645508, 0.28933197259902954, -0.186875611543...
would separate into 3-4 other projects. I would also have NUnit test projects as well.
[ 0.6299058198928833, 0.10618309676647186, 0.062039975076913834, 0.31129300594329834, -0.22084291279315948, 0.06291776895523071, 0.07005292922258377, -0.05016713589429855, 0.024369418621063232, -0.41546034812927246, 0.0828390121459961, 0.24790139496326447, 0.21144451200962067, 0.059835303574...
I have some old images of old Linux filesystems in flat file format. they can be used by [Bochs](http://bochs.sourceforge.net/), but I need to run them with [Virtual Box](https://www.virtualbox.org/). Virtual Box cannot use images in this format, so I need to convert these images from flat file to .vmdk file format. Is...
[ 0.46299055218696594, 0.27469706535339355, 0.2709965109825134, -0.24969303607940674, -0.16783510148525238, -0.0871526375412941, 0.32133951783180237, -0.3379031717777252, -0.11773853003978729, -1.2452054023742676, -0.22183296084403992, 0.856773853302002, -0.39749136567115784, 0.3124864697456...
command, see the output of ```sh $ qemu-img -h ```
[ -0.15070727467536926, 0.2364903837442398, -0.09605658054351807, -0.26681360602378845, -0.08216754347085953, 0.00015655158495064825, 0.36139920353889465, 0.021479709073901176, 0.07124782353639603, -0.6661678552627563, -0.5219390392303467, 0.5587999224662781, -0.22214888036251068, 0.23242482...
Given a table-valued function such as `dbo.Split()` from ["T-SQL: Opposite to string concatenation - how to split string into multiple records"](https://stackoverflow.com/questions/314824/t-sql-opposite-to-string-concatenation-how-to-split-string-into-multiple-recor), how do I pass multiple rows as arguments? This wor...
[ -0.13584312796592712, -0.06284163147211075, 0.39254409074783325, -0.025706104934215546, -0.021267248317599297, 0.12201536446809769, -0.23641012609004974, -0.2869258224964142, -0.372795045375824, -0.38110610842704773, -0.10551857203245163, 0.12383606284856796, -0.3770717680454254, 0.2116911...
22357 5 22360 ``` But this does not: ``` SELECT * FROM dbo.Split (',', (SELECT myColumn FROM Stuff)) WHERE ISNULL(s,'') <> '' ``` Nor does this: ``` SELECT * FROM dbo.Split_temp(',', myColumn), Stuff ``` [The docs](http://msdn.microsoft.com/en-us/library/ms175562.aspx) say: > When a user-defined fu...
[ 0.22393104434013367, 0.2629586458206177, 0.32335683703422546, 0.016007695347070694, -0.016317740082740784, -0.02227235771715641, 0.13600142300128937, -0.4448661506175995, -0.27398765087127686, -0.16297556459903717, -0.11918079853057861, 0.06870655715465546, -0.26997682452201843, 0.34999817...
1 22351 22268 2 22354 22268 3 22356 22268 4 22357 22268 5 22360 24104 1
[ 0.23574067652225494, 0.27699053287506104, -0.17547108232975006, 0.2221231609582901, -0.5388392210006714, 0.12634868919849396, 0.2898423969745636, -0.6233819127082825, -0.42266854643821716, 0.14135371148586273, 0.22822405397891998, -0.02198890410363674, -0.0396520234644413, 0.64481735229492...
22353 24104 2 22355 24104 3 22356 24104 4 22358 24104 5 22360 24104 6 22362 24104
[ -0.08718954026699066, 0.7439573407173157, -0.03966808691620827, -0.039233364164829254, -0.4930451214313507, 0.4058241546154022, 0.3937568962574005, -0.6121915578842163, -0.7823803424835205, 0.22813159227371216, 0.14835862815380096, -0.21943211555480957, 0.11060507595539093, 0.5317763090133...
7 22364 . . . ``` Is there any way at all (aside from, of course, a cursor) to accomplish this? (edit) As requested by MarlonRibunal, a sample table to produce the above result looks like: ``` id myColumn ----------- ------------------------------------------- 22268 22351,22354,22356,22357...
[ -0.09877331554889679, 0.26768890023231506, 0.8056453466415405, 0.0000184535892913118, 0.3108215630054474, -0.046421077102422714, 0.0056511773727834225, -0.14120793342590332, -0.2818945646286011, -0.3439249098300934, -0.326596736907959, 0.2501583695411682, -0.11371459066867828, 0.1059953570...
Is there any way to access the collection of current sessions in ASP.NET globally from the application? Thanks. No, sessions are sandboxed, they are totally separate from each other. What you could do is managing a psueudo-session collection in the shared Application object and implement the Session\_Start method to p...
[ 0.24460920691490173, -0.309886634349823, 0.008774319663643837, 0.4803069233894348, -0.05432998761534691, -0.26688888669013977, 0.1384028047323227, 0.24372586607933044, -0.46600210666656494, -0.5430213212966919, -0.1600772887468338, 0.37983524799346924, -0.07641242444515228, 0.1045398339629...
I have a dll that's registered for com interop, so under HKLM\Software\Classes\CLSID[my guid]\InprocServer32[my version no]\Codebase it has the path of the registered dll. However, I've rearranged my folder structure so that path is no longer correct. Is there a way of unregistering that dll without putting it back, th...
[ 0.35025835037231445, 0.2088261842727661, 0.6105151772499084, -0.06440047174692154, 0.015398144721984863, -0.3344629108905792, 0.254377543926239, -0.0004880150663666427, -0.33711960911750793, -0.584488034248352, -0.19716523587703705, 0.5272698998451233, -0.17317354679107666, 0.4024949967861...
(using the new one with regasm,exe). And of course, reregistering the assembly for COM interop will properly relocate necessary registry keys.
[ -0.15119312703609467, -0.044928647577762604, 0.3454921543598175, 0.07442322373390198, 0.6380966901779175, -0.02565860003232956, 0.20351968705654144, -0.15858833491802216, -0.20152004063129425, -0.6291128396987915, -0.5107249617576599, 0.6211747527122498, -0.10703258961439133, 0.05250079929...
Notepad++ automatically adds a shell shortcut so that when you're in Windows Explorer, you can right-click on a file and select "edit with Notepad++". How can I do the same with emacs? I am using GNU Emacs 22.3 for Windows. Here's what I have - similar to some other answer. Create a new text file somewhere called emacs...
[ -0.341356486082077, 0.04034405201673508, 0.7923287749290466, -0.2273710072040558, 0.1434207558631897, 0.103987917304039, 0.18395563960075378, 0.024698805063962936, -0.098160021007061, -1.003568410873413, -0.12654030323028564, 0.8020371198654175, -0.31146204471588135, -0.18387672305107117, ...
to do is double-click this \*.reg file in the explorer and you shall have a context menu entry for emacs for any file and any directory (if you are a dired fan!). Note that for this to work, emacs has to be started and emacs-server also has to be started (M-x server-start). I would suggest starting emacs with Windows ...
[ -0.05171152204275131, 0.21659386157989502, 0.4166034162044525, 0.05837602913379669, -0.01883867010474205, 0.1119113489985466, 0.21906965970993042, 0.2818548381328583, -0.3363398611545563, -0.7387643456459045, -0.304360568523407, 0.6905962824821472, -0.21532075107097626, 0.15885423123836517...
emacs but does not necessarily want to navigate to the file in emacs itself. ``` #IfWinActive ahk_class CabinetWClass ^+Enter:: GetText(tmpvar) If (tmpvar != "") Run, d:/path/to/your/emacs/bin/dir/emacsclientw.exe -n "%tmpvar%" Return Return ```
[ -0.13106563687324524, 0.1805291324853897, 0.8035567402839661, -0.004947554785758257, 0.44616833329200745, 0.06899994611740112, 0.4099396765232086, -0.2480616718530655, -0.3478524386882782, -0.5414777398109436, -0.4582189619541168, 0.6507009267807007, -0.45965448021888733, 0.137314364314079...
I tried this experiment on my Linux desktop: ``` int main() { while(1) fork(); return 0; } ``` I ran this program as normal user(not root), i was surprised to find that it brought down my system, it has become unresponsive. I had hoped that due to resource limit exhaustion my process would have been killed,...
[ 0.28188610076904297, 0.25810152292251587, 0.13943254947662354, -0.0598318874835968, 0.11224643886089325, -0.10416138917207718, 0.36178186535835266, 0.14172518253326416, -0.2309475839138031, -0.6945117115974426, 0.39849039912223816, 0.3307247757911682, -0.46229830384254456, 0.43398040533065...
resource limits by default. You can configure them of course, but you probably haven't. The machine will be fine after a reboot - unless the CPU usage has caused over-heating problems. To prevent an ordinary user from spawning too many processes you need to add configuration to [/etc/security/limits.conf](http://linu...
[ 0.2676953673362732, -0.4614471197128296, 0.3233317732810974, 0.20063619315624237, -0.011418252252042294, -0.23311397433280945, -0.04429101571440697, 0.06881455332040787, -0.4628790616989136, -0.6701095700263977, -0.11993803083896637, 0.8229585886001587, -0.20444059371948242, 0.175645247101...
I'm developing a web application that will need to be localized to English and Portuguese (and possible more languages later). I'm aware that the .NET Framework offers full support for UI localization, however, I'm not so sure what's the best approach to implement it. What do you consider the best practices for a web ...
[ 0.06911790370941162, -0.13396091759204865, 0.4183815121650696, -0.016542816534638405, 0.07451305538415909, -0.22191309928894043, 0.15555502474308014, 0.386709988117218, -0.2736244201660156, -0.7640279531478882, -0.19308437407016754, 0.3566876947879791, 0.08853480964899063, -0.0458068661391...
I'm currently designing a Java application where a Rule engine could be useful. Where is a good place I can learn about how to use them, how they work, how to implement them, see samples, etc.? The Drools [documentation](http://www.drools.org/learn/documentation.html) includes a lot of useful, general purpose informati...
[ 0.385718435049057, 0.19081994891166687, 0.05256655439734459, 0.21860724687576294, 0.050645213574171066, -0.15855693817138672, 0.19267286360263824, -0.42658042907714844, -0.15317317843437195, -0.7274099588394165, -0.0624387189745903, 0.6006741523742676, -0.16062740981578827, -0.043284405022...
[Doorenbos](http://reports-archive.adm.cs.cmu.edu/anon/1995/CMU-CS-95-113.pdf) paper referenced in the Wikipedia article to be the clearest technical explanation. Also, [here](http://java-source.net/open-source/rule-engines) is a list of open source rule engines in Java.
[ -0.2052760273218155, 0.33664748072624207, 0.017465345561504364, -0.17649707198143005, 0.010631716810166836, -0.15159869194030762, 0.1801058053970337, -0.5112125873565674, -0.4102693498134613, -0.24970008432865143, -0.15785910189151764, 0.3946972191333771, -0.3356727063655853, -0.1900781095...
I've got a string array in C# and I want to pop the top element off the array (ie. remove the first element, and move all the others up one). Is there a simple way to do this in C#? I can't find an Array.Pop method. Would I need to use something like an ArrayList? The order of the items in my array is important. Use a...
[ 0.08538493514060974, 0.09129291027784348, 0.4344978928565979, -0.02908140793442726, -0.04753872752189636, -0.01847994141280651, 0.12079238146543503, -0.28916600346565247, -0.4808608591556549, -0.4668906629085541, -0.23976334929466248, 0.3673337399959564, -0.3352476954460144, 0.007012073416...
I'm using the datepicker control for jquery and all is well except that I cannot get it to highlight the currently selected input value (or the current date for that matter). Even though I have s valid date value in my text input and can get the datepicker to return the correct month / year, I cannot get it to highligh...
[ -0.009121961891651154, -0.09758777171373367, 0.8782781958580017, -0.1516314446926117, 0.07754307985305786, -0.017925217747688293, -0.061399124562740326, 0.05749545991420746, -0.12565699219703674, -0.6051305532455444, -0.19086192548274994, 0.4327992796897888, 0.04580892622470856, 0.11773857...
border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; font-family: Verdana, Arial, sans-serif; background: #ffffff url(images/ffffff_40x100_textures_01_flat_0.png) 0 0 repeat-x; font-size: 0.80em; border: 4px solid #dddddd; width: 15.5em; padding: 2.5...
[ -0.47760358452796936, -0.12136869877576828, 1.186387538909912, 0.10590334981679916, -0.10173434764146805, 0.42335858941078186, 0.2603779435157776, -0.24789904057979584, -0.09144102782011032, -0.5368065237998962, -0.5235923528671265, 0.08606626838445663, -0.0267567690461874, 0.2090607881546...
position: absolute; left: .5em; top: .5em; background: #e6e6e6 url(images/e6e6e6_40x100_textures_02_glass_75.png) 0 50% repeat-x; } .ui-datepicker-next { left: 14.6em; } .ui-datepicker-next:hover, .ui-datepicker-prev:hover { background: #dadada url(images/dadada_40x100_textures_02_glass_75.png) 0 50...
[ -0.8956820964813232, -0.08471561968326569, 1.1666674613952637, -0.05078011378645897, 0.16875392198562622, 0.337917685508728, 0.1590029001235962, -0.021813860163092613, -0.14192736148834229, -0.44812914729118347, -0.3855277895927429, 0.43104806542396545, 0.15709981322288513, 0.2461411654949...
background: url(images/454545_7x7_arrow_left.gif) 50% 50% no-repeat; } .ui-datepicker-next a:hover { background: url(images/454545_7x7_arrow_right.gif) 50% 50% no-repeat; } .ui-datepicker-prev a:active { background: url(images/222222_7x7_arrow_left.gif) 50% 50% no-repeat; } .ui-datepicker-next a:active { ba...
[ -0.6250489950180054, -0.075066938996315, 0.9564030170440674, -0.21528662741184235, 0.18282946944236755, 0.39736780524253845, 0.2648039758205414, 0.13611024618148804, -0.2605586647987366, -0.5364557504653931, -0.735466480255127, 0.19234123826026917, 0.03825535997748375, 0.0997207835316658, ...
left: 2.2em; } .ui-datepicker-header select.ui-datepicker-new-year { width: 5em; left: 9.4em; } table.ui-datepicker { width: 15.5em; text-align: right; } table.ui-datepicker td a { padding: .1em .3em .1em 0; display: block; color: #555555; background: #e6e6e6 url(images/e6e6e6_40x100_tex...
[ -0.45876410603523254, -0.21288622915744781, 1.0827453136444092, -0.1725669801235199, -0.10607407242059708, 0.1481132060289383, 0.29665279388427734, -0.2513965368270874, -0.1631520390510559, -0.3667086362838745, -0.29140323400497437, 0.27058443427085876, 0.016403263434767723, 0.246666774153...
solid #dddddd; color: #222222; background: #ffffff url(images/ffffff_40x100_textures_02_glass_65.png) 0 50% repeat-x; } table.ui-datepicker .ui-datepicker-title-row td { padding: .3em 0; text-align: center; font-size: .9em; color: #222222; text-transform: uppercase; } table.ui-datepicker .ui...
[ -0.4547797739505768, 0.04829501733183861, 1.1495442390441895, -0.11949042230844498, -0.062088605016469955, 0.11640094965696335, 0.3680724799633026, -0.3086361587047577, -0.3460032343864441, -0.3473780155181885, -0.5739529728889465, 0.30039989948272705, -0.08378720283508301, 0.3153204619884...
using IE7 to test, but I see the same behaviour in Firefox. Any ideas as to the problem? First of all, which browser(s) are you viewing the datepicker in? I have noticed that some colouring of dates/sections within the datepicker look different in **IE6** compared to later browsers (**Firefox 3, Chrome, IE7**). For ...
[ 0.16153526306152344, -0.2892923951148987, 0.6695978045463562, -0.2757030725479126, 0.04961236193776131, -0.27038395404815674, 0.015714049339294434, 0.31566256284713745, -0.25739121437072754, -0.5856042504310608, -0.45961639285087585, 0.3108598291873932, -0.166241854429245, -0.0258806552737...
the datepicker](http://ui.jquery.com/demos/datepicker) (I haven't had a proper read yet, I believe it may be a new version) on the [jQuery](http://jquery.com/) site this week. The relevant default names of the classes within the stylesheet that you would need to change the background colours for are - ``` /* curren...
[ 0.0035721648018807173, -0.28498467803001404, 0.7463062405586243, -0.07080693542957306, 0.27318575978279114, 0.007774047087877989, -0.21633410453796387, 0.2181653082370758, -0.287526398897171, -0.683915913105011, -0.28058695793151855, 0.332450807094574, -0.09618120640516281, 0.1391866654157...
' ui-datepicker-today' : '')) + '"' + ... // highlight today (if different) ``` Therefore, you will either * need these CSS classes in your CSS stylesheet to highlight today and currently selected date or * you will need to change the names in the plugin js file and use the same names for classes in your CSS...
[ 0.21127642691135406, -0.24902012944221497, 0.34706825017929077, -0.02985142543911934, -0.19584132730960846, -0.054831866174936295, -0.20459139347076416, 0.17772437632083893, -0.37188324332237244, -0.8070813417434692, -0.40074440836906433, 0.050325941294431686, -0.008403550833463669, 0.2875...
new version styles the anchor (*a*) element inside the cell. Using [Firebug](http://getfirebug.com/) in Firefox 3 (highly recommended), the CSS to colour today appears to be ``` .ui-state-highlight, .ui-widget-content .ui-state-highlight { background:#FFE45C url(../images/?new=ffe45c&w=1&h=100&f=png&q=100&fltr[]...
[ -0.2586182653903961, -0.06422752887010574, 1.1536147594451904, -0.44330692291259766, 0.11499945819377899, -0.05919121578335762, 0.14852374792099, -0.3254879415035248, -0.42815354466438293, -0.6668278574943542, -0.30039680004119873, 0.20204858481884003, -0.20296314358711243, 0.0945148319005...
CSS Framework](http://ui.jquery.com/applications/themeroller/css/parseTheme.css.php?ctl=themeroller&tr=&ffDefault=Trebuchet+MS,+Tahoma,+Verdana,+Arial,+sans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=f6a828&bgTextureHeader=12_gloss_wave.png&bgImgOpacityHeader=35&borderColorHeader=e78f08&fcHeade...
[ -0.316001296043396, 0.1633586585521698, 1.079023003578186, 0.2152460813522339, -0.2279546856880188, 0.3817874491214752, 0.27990907430648804, -0.5620361566543579, -0.2911160886287689, -0.49414968490600586, -0.027613021433353424, 0.17209213972091675, 0.00795005727559328, 0.07879823446273804,...
I'm looking for a C++ container class, that's a lot like a multimap, but slightly different. The container would store pairs of strings. But when I retrieve items from the container using key K, I want to find all the items where K begins with the item's own key. E.G. If I use key "abcde" I want to find items with key...
[ -0.07967199385166168, 0.005405439529567957, 0.3825891315937042, -0.1413107067346573, -0.11431122571229935, 0.03346625342965126, 0.1446690708398819, -0.5686139464378357, -0.006664003245532513, -0.6421723365783691, -0.21185021102428436, 0.23710639774799347, -0.5525007247924805, 0.37102147936...
<< myMultiMap.everything_which_matches("abc") << endl; // prints "goodbye" cout << myMultiMap.everything_which_matches("abcqz") << endl; ``` Insertion time is unimportant, but I need fast access to the items. Is it possible to do this with a normal Multimap by creating a special < operator? My hunch is that I would ...
[ -0.2313866913318634, 0.051449961960315704, 0.3512929677963257, -0.03764783963561058, 0.09759216010570526, 0.06846832484006882, 0.31751975417137146, -0.2066638022661209, -0.23932288587093353, -0.8485515713691711, -0.3186183273792267, 0.21691526472568512, -0.4057038128376007, 0.2553540170192...
would have the following trie: ``` a | b | c (c holds data of hi) / \ d q | | e z (z holds data of goodbye) (e holds data of hello) ``` To do a lookup you simply
[ -0.49752652645111084, -0.09229995310306549, 0.42567241191864014, 0.02531435154378414, 0.1991896778345108, 0.14883388578891754, -0.07232456654310226, -0.29016974568367004, 0.21053583920001984, -0.347877562046051, -0.1873999834060669, 0.45610833168029785, -0.04253882169723511, 0.247588604688...
start at the root node (root node not shown above), and follow the next char in your input string. Each time you reach a node that has a data result, you will include that as one of your output strings. So a search for abcde would give you: "hi", "hello" as you wanted. It would not give you "goodbye" because you did ...
[ -0.042391493916511536, -0.22708432376384735, 0.2766226828098297, -0.14681945741176605, -0.07813940197229385, 0.01770557090640068, 0.44305020570755005, -0.0218895822763443, -0.0939813181757927, -0.714684784412384, -0.15893089771270752, 0.08465524762868881, -0.23731562495231628, 0.5379667282...
I just finished a little 5000-line PHP application and are now going into testing and debugging. A short while before the end I stumbled upon PHPLint. I really liked the idea - with some special comments I can specify variable types and the tool then checks my code for all kinds of mistakes. Neat. I thought that at the...
[ 0.4867399334907532, 0.28032833337783813, 0.2163701057434082, -0.04021601006388664, -0.2569197416305542, -0.3131098747253418, 0.38469812273979187, 0.1914033591747284, -0.12853479385375977, -0.5735064148902893, 0.4854476749897003, 0.5257063508033752, -0.19345176219940186, 0.20851829648017883...
again. Nor do I want to get a virtual machine with Linux or something. Of course, I will, if there will be no other choices, but first I'd like to explore other options. So - are there any alternatives for PHPLint that run under Windows? I mean in the sense of code-checking. I don't care about the documentation-genera...
[ 0.17057019472122192, -0.11616864800453186, 0.3684805929660797, 0.36681392788887024, 0.056303251534700394, -0.22530345618724823, 0.16805051267147064, 0.44827595353126526, -0.44341588020324707, -0.5627991557121277, 0.2307780534029007, 0.6421250700950623, -0.05083045735955238, 0.3171347677707...
Is it absolutely necessary to use "arrows" to show association between an actor and a use case in a use case diagram? I recently had to draw one for my Software Engineering assignment. But after doing a bit of research online on many articles, papers, online books and lecture notes from numerous other universities, it...
[ -0.07042206078767776, -0.008491963148117065, -0.1203656792640686, 0.11446598917245865, 0.0021150605753064156, 0.4078894853591919, 0.09372378140687943, -0.08219960331916809, -0.15206755697727203, -0.2508845627307892, 0.25330060720443726, 0.41941845417022705, -0.37807074189186096, -0.1912902...
have told me I shouldn't have arrows between my actor and use case and even his Requirements Engineering lecturer taught students not to use arrows. So I made a conscious decision not to use arrows and used solid lines instead to show my use case associations. Here is my diagram- [click](http://i41.tinypic.com/2ccuo90...
[ 0.21601009368896484, -0.047675445675849915, 0.14761817455291748, 0.09222771227359772, -0.22030039131641388, 0.1403491199016571, 0.24569405615329742, -0.10705957561731339, -0.162052184343338, -0.2874479591846466, 0.3915097415447235, 0.28107479214668274, -0.15492096543312073, -0.296244204044...
I receive at least some marks for it? Obviously I asked for an explanation from my lecturer who I will see next week to discuss this point, but if she tells me I should have used arrows, what argument can I make against it? I would be grateful if someone can kindly give me good advice with appropriate references to so...
[ 0.579493522644043, 0.18562953174114227, 0.0969851091504097, 0.5506505966186523, -0.3582366108894348, -0.12584084272384644, 0.21350295841693878, 0.050443779677152634, -0.12661270797252655, -0.4790664613246918, 0.08944099396467209, 0.13151739537715912, 0.21064378321170807, -0.044396016746759...
simple example of library use case diagram in one of the lecture notes, which had arrows. But it was not made very clear that it was the definitive notation. Another reason I didn't think it was mandatory is because when it came to explaining notations for drawing a data-flow diagram, she made it abundantly clear to us...
[ 0.006287786178290844, 0.12448360025882721, 0.05608779937028885, 0.32534119486808777, -0.22238917648792267, -0.1783515363931656, -0.12730218470096588, -0.19817423820495605, -0.2651228904724121, -0.5255306363105774, 0.1396750807762146, -0.02601447142660618, 0.004755954258143902, -0.023930838...
remember asking one of the tutors (not the lecturer) during a tutorial session what's the difference between having and arrowed line and a solid line and he said there is none and I could use both. Obviously for that I only have my word and from what you guys have said, I doubt anyone in an academic position would admi...
[ 0.6316511034965515, -0.09086714684963226, 0.07568813115358353, 0.04445217549800873, -0.1487530767917633, -0.01757325604557991, 0.5020926594734192, 0.28127703070640564, -0.20855087041854858, -0.15246325731277466, 0.30723920464515686, 0.3734414279460907, 0.08841630816459656, 0.01493788603693...
her to take this "honest mistake" into consideration. It's also not just the use case diagram but a couple of other questions that I lost an unusual amount of marks on, especially when my answers are almost identical to the model answers she provided. I also know a lot of other students who have requested their assignm...
[ 0.5837488770484924, 0.09701328724622726, -0.06450892984867096, 0.24870644509792328, -0.23515911400318146, -0.04944152757525444, 0.34421053528785706, 0.11649679392576218, -0.10413867235183716, -0.5353373885154724, 0.23264770209789276, 0.5041931867599487, 0.36553600430488586, 0.0522647984325...
is the scenario that was given in the assignment to draw the use case diagram. > CONTHETICKET is a ticket agency > dealing in Concert and Theatre > tickets. **Concert and theatre venues > provide CONTHETICKET with a constant > stream of information on forthcoming > events**, which is then used by the > Manager to comp...
[ 0.4313293397426605, -0.16616256535053253, 0.7004163861274719, 0.24520476162433624, -0.06749951094388962, -0.09481056034564972, -0.11312437802553177, 0.10243584215641022, -0.16320383548736572, -0.35230427980422974, -0.160469189286232, 0.5574920773506165, -0.013571909628808498, 0.23525746166...
the agreed > payments to the venues, and once > tickets are received, he files them in > the ticket File. > > > When customers ring the sales team, > their ticket requests are checked > against the ticket file. If > pre-purchased tickets are available > they are put in an envelope marked > with the customer's name an...
[ 0.369138240814209, -0.09991864860057831, 0.9515711665153503, 0.2391279935836792, 0.15093044936656952, -0.16454556584358215, -0.10244682431221008, -0.2058144062757492, 0.016503196209669113, -0.6881995797157288, -0.2822106182575226, 0.4382685124874115, -0.11389763653278351, 0.068132475018501...
customer and > await payment. A copy of the invoice > is kept on file. When a payment is > received, the payments section match > the payment with the appropriate > invoice, and if satisfied place > another copy of the invoice in a > despatch file with instructions to > despatch the tickets. > > > The post clerks che...
[ 0.2611859142780304, -0.12596569955348969, 0.6806724071502686, -0.046585384756326675, 0.2798673212528229, 0.33685338497161865, -0.07764673233032227, -0.08536618947982788, -0.3069952428340912, -0.4125089943408966, -0.08218308538198471, 0.5781077742576599, -0.0237199105322361, -0.016133593395...
actor is a person, organization, or external system that plays a role in one or more interactions with your system (actors are typically drawn as stick figures on UML Use Case diagrams)." However, on my marked assignment, the lecturer commented that it should not be an actor. Can you please tell me whether or not you ...
[ -0.060649462044239044, -0.36554309725761414, 0.4668188691139221, 0.22160062193870544, 0.0031229835003614426, 0.1390988826751709, 0.11409986019134521, 0.2739231586456299, -0.1761411726474762, -0.5772555470466614, -0.09363220632076263, 0.4035119414329529, -0.16240549087524414, -0.18535262346...
arrows are inappropriate in use-case associations because they are binary associations * arrows are required for Extends, Includes, and Uses relationships - see [this diagram](http://www.visual-paradigm.com/VPGallery/diagrams/UseCase.html) for an example of all three the [UML specification v1.4.2](http://www.omg.org/d...
[ -0.24517719447612762, -0.03892355412244797, 0.16910549998283386, -0.03584125265479088, -0.34153857827186584, -0.006618315353989601, 0.7132390141487122, -0.4907459318637848, -0.03878368064761162, -0.40171149373054504, -0.11715055257081985, 0.3291962146759033, -0.3950541317462921, -0.3193259...
may have no recourse - that's one of the drawbacks of academia: some professors expect students to merely regurgitate what they are told, even if it is wrong. You can appeal to the Dean of the department, arguing that the professor is instructing the students contrary to the established standard, but that will most lik...
[ 0.46980389952659607, 0.2846519351005554, -0.17452722787857056, 0.33015021681785583, -0.2480696141719818, -0.3471311032772064, 0.6576221585273743, 0.004790032282471657, 0.09057135134935379, -0.2667103111743927, -0.1356496512889862, 0.31509509682655334, -0.04224447160959244, 0.19417582452297...
when they were clearly wrong. Most, however, are reasonable/logical people who are happy to correct misinformation appropriately. Caution: Tread lightly ====================== Assume it's an honest mistake, and ask the professor to explain why he expected arrows when the official OMG UML spec says not to use them (an...
[ 0.43050137162208557, 0.1902632862329483, 0.17547906935214996, 0.20052406191825867, -0.2224663496017456, -0.5780986547470093, 0.5634406805038452, -0.024148020893335342, -0.1305425465106964, -0.3040405511856079, -0.14466509222984314, 0.7363629937171936, 0.15636439621448517, -0.39299425482749...
and standards used single arrowheads (not triangles or filled, just 'wings') on use-case diagrams, but this is no longer done. Perhaps the professor's standards - or software - is just out of date ;-)
[ 0.15151220560073853, 0.25117436051368713, -0.01883097179234028, 0.010762680321931839, -0.26087191700935364, 0.1647099405527115, 0.26328614354133606, -0.23432917892932892, -0.47141826152801514, -0.3715672791004181, 0.07846029847860336, -0.26077190041542053, -0.04349535331130028, -0.01431392...
I have a object in a presenter connected to a view. Inside my XAMTL I have the following: ``` <Label Content="{Binding ElementName=PSV, Path=Presenter.Portfolio.Name}"/> ``` Now when the control is created, Portfolio is null, then i run another method which sets Portfolio. I've implemented INotifyPropertyChanged but...
[ 0.38992759585380554, 0.019954059273004532, 0.7980673313140869, 0.027856964617967606, -0.2137364000082016, -0.20507486164569855, -0.08910070359706879, -0.33122518658638, -0.17806494235992432, -0.7207175493240356, 0.37450557947158813, 0.5052289366722107, -0.38706812262535095, 0.3272001147270...
Presenter(); ``` Your binding would then change to: ``` <Label Content="{Binding ElementName=PSV, Path=Portfolio.Name}"/> ``` The Presenter part of your former path is implicit in the DataContext. This way the DataContext is watching for the NotifyChanged events and will update the view properly when Portfolio ch...
[ 0.11800947040319443, -0.1310972422361374, 0.7576138377189636, -0.005628788843750954, -0.2278399020433426, -0.17301274836063385, -0.11274218559265137, -0.2786436975002289, -0.21089209616184235, -0.487605482339859, -0.13600699603557587, 0.571366548538208, -0.35914042592048645, 0.236090272665...
What are some good desktop application projects I could code up that would be good practice? I have gone through the .NET Framework namespace structure pinpointing some of the namespaces and classes I have not used, so that I could come up with a project or two to create using them. However, I am having trouble think...
[ 0.5702807903289795, 0.10742603987455368, -0.13216125965118408, 0.22065363824367523, 0.12529496848583221, -0.27888184785842896, 0.4350089728832245, -0.056456975638866425, -0.05234920233488083, -0.541873037815094, -0.005827914457768202, 0.6849450469017029, -0.2744103968143463, -0.21107219159...
It would be ideal if the sum of all submitted projects covered literally every namespace that is relevant to desktop applications (I aim high) The aim here is to expose myself to much of the .NET framework for the purpose of growing as a developer. Thank you. A couple from the top of my head: RSS aggregator that loa...
[ 0.5836367011070251, 0.034509092569351196, 0.5483434796333313, 0.2814958691596985, -0.13101279735565186, -0.03881549835205078, -0.1563594788312912, 0.08878054469823837, -0.4312075674533844, -0.7203008532524109, -0.005612321197986603, 0.45789170265197754, -0.10420925915241241, -0.05712558701...
System.Printing. A project I've spent some time on is a IDictionary-based object that is a configuration tool I can use to store configuration settings to a database. Every time I get to the "halfway" mark I end up discovering more functionality that I need and add to it. Pretty limited in it's namespace usage, but it...
[ 0.5849312543869019, -0.13095690310001373, 0.19123433530330658, 0.29276689887046814, 0.22527539730072021, 0.14279775321483612, -0.23456743359565735, 0.24654892086982727, -0.39512550830841064, -0.9999708533287048, 0.21460983157157898, 0.18554489314556122, -0.13294099271297455, 0.108009673655...
Is there a way to do the opposite of `String.Split` in .Net? That is, to combine all the elements of an array with a given separator. Taking `["a", "b", "c"]` and giving `"a b c"` (with a separator of `" "`). **UPDATE:** I found the answer myself. It is the `String.Join` method. Found the answer. It's called [String....
[ 0.0940871611237526, -0.16659575700759888, 0.3714468479156494, -0.059728916734457016, 0.06067546457052231, -0.15489248931407928, 0.1959415227174759, -0.43268266320228577, -0.3669114410877228, -0.37327060103416443, -0.20103392004966736, 0.06839515268802643, -0.43358907103538513, 0.0009032026...
I've this sample program of a step that I want to implement on my application. I want to push\_back the int elements on the string separately, into a vector. How can I? ``` #include <iostream> #include <sstream> #include <vector> using namespace std; int main(){ string line = "1 2 3 4 5"; //includes spaces ...
[ -0.19924724102020264, -0.2774982750415802, 0.560574471950531, -0.22187106311321259, 0.05536607652902603, 0.3364398777484894, 0.10322205722332001, -0.5203148126602173, -0.443375825881958, -0.6946244239807129, -0.17721912264823914, 0.35877665877342224, -0.41230547428131104, 0.002335622673854...
My Mac becomes slow over time. The reason is the huge amount of my shells, such as Bashes and Fishes. Each shell has different PID. Killing shells one by one is too cumbersome. How can I kill them at once? Try 'killall bash' or 'killall -9 bash' if they resist that.
[ 0.1512419581413269, 0.3236185908317566, 0.035731859505176544, 0.012071629986166954, 0.027946539223194122, 0.3355042338371277, 0.27884137630462646, 0.07103917747735977, -0.06366938352584839, -0.6903382539749146, 0.14443370699882507, 0.8984931111335754, 0.04987998679280281, 0.172640919685363...
I'm still fumbling my way around WPF at the moment, and can not figure out why this context menu item is disabled: ``` <Window x:Class="DisabledMenuItemProblem.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns...
[ -0.19217747449874878, 0.3121524453163147, 0.592806875705719, -0.07742594182491302, 0.10090168565511703, 0.1323796659708023, 0.19819284975528717, -0.15306229889392853, -0.2743081748485565, -0.06660638004541397, -0.49870815873146057, 0.7204186916351318, -0.05865689739584923, 0.13653534650802...
local:MyCommands.FooBar}" /> </ContextMenu> </TextBlock.ContextMenu> </TextBlock> </Window> using System.Windows; using System.Windows.Input; namespace DisabledMenuItemProblem { public partial class Window1 : Window { public Window1() { InitializeComponent()...
[ -0.3444139361381531, -0.10957596451044083, 0.6176112294197083, -0.24358615279197693, 0.3898407220840454, 0.2874584496021271, 0.2890719771385193, 0.05747232586145401, -0.04312105476856232, -0.7674413919448853, -0.6339273452758789, 0.7248941659927368, -0.4095230996608734, 0.23556804656982422...
public void FooExecuted(object sender, ExecutedRoutedEventArgs e) { MessageBox.Show("Foo!"); } public void CanFooExecute(object sender, CanExecuteRoutedEventArgs e) { e.CanExecute = true; } } public static class MyCommands { public static RoutedCommand FooBar = new RoutedC...
[ 0.47012361884117126, 0.09123370796442032, 0.41856473684310913, -0.3281143009662628, 0.08461710065603256, -0.12688864767551422, 0.7304076552391052, -0.05674823001027107, -0.20254921913146973, -0.2779914438724518, -0.2015254646539688, 0.5407235622406006, -0.56195068359375, 0.3804628849029541...
works, and once its been executed, then the context menu gets enabled! Cheers guys, Chris. here is the general pattern that I use.... first, keep your commands in thier own static class, this promotes reuse,etc.... ``` public static class MyCommands { public static RoutedUICommand CmdFoo = new RoutedUICommand("C...
[ 0.44790253043174744, -0.017404986545443535, 0.7338066101074219, -0.17571386694908142, 0.18029457330703735, -0.17144127190113068, 0.4067108929157257, -0.12468066066503525, -0.4582814872264862, -0.8151101469993591, -0.260201632976532, 0.7785974740982056, -0.096877321600914, -0.29267388582229...
"CmdFoo", typeof(MyCommands)); } ``` second, register the command in the control/window/etc. you want to use it in, normally in the constructor ``` public MyControl { public MyControl() {
[ -0.23769086599349976, 0.16224712133407593, 0.691941499710083, 0.08902586251497269, 0.41734614968299866, -0.29257869720458984, 0.03321079909801483, 0.08921480923891068, -0.0019414424896240234, -0.7315710783004761, -0.5939768552780151, 0.4616614878177643, -0.12524627149105072, 0.171683982014...
CommandBindings.Add( new CommandBinding( MyCommands.CmdFoo, // this is the command object XCutFooCommand, // execute CanXCuteFooCommand));//
[ 0.24920469522476196, -0.05200415104627609, 0.5601680278778076, -0.06670119613409042, 0.2576351463794708, -0.14699283242225647, 0.1659274399280548, 0.05450589954853058, -0.2471923977136612, -0.5257063508033752, -0.23354093730449677, 0.6336575746536255, -0.45394444465637207, 0.16611959040164...
can execute? } ``` third, create your handlers in the control/window/etc..... ``` public void CanExecuteRerollCommand(object sender, CanExecuteRoutedEventArgs e) { e.CanExecute = true; // can this command be executed? e.Handled = true; // has this event been handled? } public v...
[ 0.45701074600219727, -0.05635298788547516, 0.38405242562294006, 0.09339486807584763, 0.2288442701101303, 0.01859307289123535, 0.50078946352005, -0.20380522310733795, -0.15175200998783112, -0.5300294756889343, -0.12950855493545532, 0.5775153040885925, -0.5455039143562317, -0.013812161050736...
<ContextMenu.CommandBindings> <CommandBinding Command="foo:MyCommands.CmdFoo" CanExecute="CanExecuteRerollCommand" Executed="ExecuteRerollCommand" /> </ContextMenu.CommandBindings> <MenuItem Header="Reroll" Command="foo:MyCommands.Cm...
[ -0.3947722911834717, 0.07268828898668289, 0.676583468914032, -0.36735740303993225, 0.0998867005109787, 0.4197583496570587, 0.22329208254814148, -0.2732315957546234, -0.4215514659881592, -0.4904038906097412, -0.36780667304992676, 0.6495347023010254, -0.13858485221862793, 0.10815060138702393...
</ContextMenu> ``` notice that there is no binding. Also, notice the `<CommandBinding>` in the `<ContextMenu>`. here is a reference.... <http://www.wiredprairie.us/journal/2007/04/commandtarget_menuitem_context.html> the command being disabled is addressed at [this site](http://www.wpftutorial.net/RoutedCommandsInC...
[ 0.10789469629526138, -0.32067033648490906, 0.28259021043777466, 0.14115504920482635, 0.2518918514251709, -0.47283247113227844, 0.3395843505859375, -0.2824211120605469, -0.29018378257751465, 0.18960852921009064, -0.6544110178947449, 0.8444545865058899, -0.35089311003685, 0.02376781962811947...
In my question "[How do I get `-[NSString sizeWithFont:forWidth:lineBreakMode:]` to work?](https://stackoverflow.com/questions/419222/how-do-i-get-nsstring-sizewithfontforwidthlinebreakmode-to-work)", I learned that `-[NSString sizeWithFont:constrainedToSize:lineBreakMode:]` was actually what I needed. The documentati...
[ 0.1507806032896042, -0.31739282608032227, 0.4310928285121918, -0.2632032334804535, 0.0477551706135273, 0.004810626152902842, 0.19326412677764893, -0.32690557837486267, -0.3569706976413727, -0.46500009298324585, -0.1001729890704155, 0.49451881647109985, -0.0526922233402729, -0.0966575294733...
default a UILabel will center the text vertically. To have the text top aligned you need to size the label to be only the height required by the string that's in it. I use this method to do this. And example of how I would use it to do that is as follows: ``` //Calculate the expected size based on the font and lineb...
[ -0.09166368842124939, -0.2542402446269989, 0.8561441898345947, -0.011003319174051285, 0.03870774060487747, -0.17928588390350342, 0.21117080748081207, -0.19583094120025635, -0.19003847241401672, -0.7782823443412781, -0.06790000945329666, 0.6868813633918762, 0.09222011268138885, -0.212692365...
lineBreakMode:yourLabel.lineBreakMode]; //adjust the label the the new height. CGRect newFrame = yourLabel.frame; newFrame.size.height = expectedLabelSize.height; yourLabel.frame = newFrame; ``` You specify how big of an area you have to put the text in, and then this method tells you how much space it will take up...
[ 0.14604982733726501, -0.3231970965862274, 0.7665785551071167, -0.30270281434059143, 0.17685934901237488, 0.05139764025807381, 0.4299713671207428, -0.5088165402412415, -0.4054293632507324, -0.5591790676116943, -0.3029259741306305, 0.22073465585708618, -0.06316603720188141, -0.05558739230036...
method doesn't actually do anything to the text. It just virtually lays it out and returns how big of an area it would need to really lay it out. its the responsibility of the label (or what ever container you are using for the text) to perform the wrapping/what ever else that needs to be done. Hope that helps. chri...
[ 0.39431044459342957, -0.027200952172279358, 0.3430691957473755, 0.31371715664863586, 0.05642637237906456, 0.11958160996437073, 0.025596151128411293, -0.1135588064789772, -0.5274064540863037, -0.3888683021068573, 0.18364217877388, 0.07808910310268402, 0.12842658162117004, -0.162733599543571...
I just came across the following sentence: > As the industry has moved from a three > tier model to n-tier models, the object relational impedance mismatch has become more prevalent. But I can't find a concise explanation of the difference between three tier and n-tier. I know what three tier is, and I assume n-tier...
[ 0.37999147176742554, 0.011937109753489494, 0.03627731278538704, -0.035306788980960846, -0.32436051964759827, -0.24990426003932953, 0.027046555653214455, 0.12386096268892288, -0.3350217938423157, -0.3839923143386841, 0.14041802287101746, 0.5638132691383362, 0.0027646818198263645, 0.43999624...
pretty good job of explaining n-tier to include things like web services, javascript, workflows, etc. All things that 3-tier models don't necessarily include.
[ -0.037194304168224335, -0.0976279005408287, 0.0698537677526474, 0.21780002117156982, -0.031772032380104065, -0.1502477526664734, 0.10473228245973587, 0.04282419756054878, -0.14560957252979279, -0.6739545464515686, -0.1514195203781128, 0.27506202459335327, -0.2277010828256607, -0.1681125909...
Can i get some good tutorials on XPand.. i need to get info on commands like LET. It would better if some one could post some samples on it. The problem i am facing is like.. i run a "for" loop and after checking some condition i need to increment a counter . but i am unable to do so. when i increment the counter, it ...
[ 0.4455161988735199, -0.11696489155292511, 0.05667368322610855, 0.056914594024419785, -0.21042408049106598, -0.22635921835899353, 0.5447396636009216, -0.45566526055336, -0.20868279039859772, -0.7796681523323059, 0.08250065892934799, 0.3656284213066101, -0.23833924531936646, -0.1312864273786...
"." + className AS fqn>> the fully qualified name is: <<fqn>>; <<ENDLET>> ``` Finally, from this post on [openArchitecureWare forum](http://www.openarchitectureware.org/forum/viewtopic.php?forum=2&showtopic=11468&highlight=xpand): > The LET statement is really simple: it creates a local constant with the specified...
[ 0.3482460379600525, -0.18376018106937408, 0.30092063546180725, -0.012136337347328663, -0.031575433909893036, -0.4325673282146454, 0.24948656558990479, -0.11149946600198746, 0.07177609950304031, -0.5809527039527893, -0.1429133415222168, 0.45057108998298645, -0.5151938199996948, 0.0096091125...
it's possible to find an alternative if you're willing to follow the functional programming-paradigm. Also, take note of the 'indexOf' method of oaw.List.
[ 0.44786664843559265, 0.07894519716501236, -0.16987033188343048, 0.17219337821006775, -0.032822947949171066, -0.21477225422859192, 0.12172242999076843, 0.1058475449681282, -0.3368498384952545, -0.562842607498169, 0.14627932012081146, 0.7036259770393372, 0.13192202150821686, -0.0899176597595...
I am sure a general routine, or library must exists to do this, but I need to be able to show the user a "before" and "after" comparison of two versions of a string/text file. For example the old visual source safe had a great tool where it show both files and highlighted the adds, deletes and changes. I don't want t...
[ 0.5285175442695618, 0.24867190420627594, 0.11204752326011658, 0.1302345097064972, -0.11913036555051804, 0.11050985753536224, 0.08228059858083725, -0.20069058239459991, -0.3080645203590393, -0.6045952439308167, 0.29751113057136536, 0.663978099822998, -0.17803822457790375, 0.1010097339749336...
for one myself...not sure what to call it, so have had a hard time google-ing it... BTW: These will be rendered as HTML in an asp.net app. -Thanks. I guess you are looking for a diff algorithm I would read [diff](http://en.wikipedia.org/wiki/Diff) and its algorithms. There was [another discussion](http://discuss.joel...
[ 0.08696411550045013, -0.3123721480369568, 0.2785507142543793, 0.16256842017173767, -0.23379215598106384, 0.26575276255607605, -0.024329818785190582, 0.1138559877872467, -0.06894329190254211, -0.4765186309814453, 0.07044269889593124, 0.37269672751426697, 0.043990809470415115, -0.08749557286...
I am confused about the approach for application that am writing. I have developed the application jar and will be distributing via java webstart. Now i need to putup a website supporting my app. doubts i have 1)Can i pass this username and password to the jar that i will be launching? 2)Can the webcomponent calcul...
[ 0.5848156809806824, 0.37194302678108215, 0.27161267399787903, 0.07976977527141571, -0.16542592644691467, 0.07266250252723694, 0.17345374822616577, 0.08956186473369598, -0.22023546695709229, -0.6174052357673645, 0.22521287202835083, 0.3654074966907501, 0.24755798280239105, 0.130542680621147...
to pass arguments like username to the JNLP and then want to pass it to the main class. Is there any direct way to do so rather than use database? since JNLP is just an xml file. I could not find a direct way to do so. Can i anybody refer me some working code example. Database is probably your best bet for sharing d...
[ 0.37675708532333374, 0.08333995193243027, -0.046179432421922684, 0.16987350583076477, -0.14795368909835815, -0.032622333616018295, -0.042661719024181366, 0.1518358290195465, -0.16206437349319458, -0.7038818597793579, 0.05538845807313919, 0.45999228954315186, -0.1572319120168686, -0.1024266...
The environment: I am working in a proprietary scripting language where there is no such thing as a user-defined function. I have various loops and local variables of primitive types that I can create and use. I have two related arrays, "times" and "values". They both contain floating point values. I want to numerical...
[ 0.4925978183746338, 0.24143770337104797, -0.019420290365815163, 0.1689126044511795, 0.23895443975925446, -0.03665921092033386, 0.15969431400299072, 0.10890918225049973, -0.1259402483701706, -0.6906343698501587, 0.08302709460258484, 0.5829256772994995, -0.5060092210769653, -0.16363590955734...
you will not have to worry about times and values being consistent. And whenever you need a sorted value, you can lookup on the sorted index. And if in the future you decided there was going to be a third value, the sorting code will not need any changes. Here's a sample in C#, but it shouldn't be hard to adapt to y...
[ 0.05339142680168152, -0.2800121307373047, 0.1186794713139534, -0.06422924250364304, 0.03585800901055336, 0.08747602999210358, -0.1264127492904663, -0.06471709907054901, -0.39702561497688293, -0.4480603337287903, 0.0824815109372139, 0.2952411472797394, -0.4982047975063324, 0.239380732178688...