text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
document.getElementById(layer).innerHTML=xmlHttp.responseText; } else if (xmlHttp.readyState==1 || xmlHttp.readyState=="loading") { document.getElementById(layer).innerHTML="loading"; } //etc } xmlHttp.open("GET",url,true); xmlHttp.send(null); } function updateByPk(laye...
[ -0.028414590284228325, -0.430241197347641, 0.7727059125900269, 0.1378193348646164, -0.22992710769176483, -0.16850174963474274, 0.02537069283425808, -0.4934788644313812, -0.43187010288238525, -0.640906035900116, -0.6991634368896484, 0.5059456825256348, -0.35116520524024963, 0.02818729542195...
xmlHttp=new XMLHttpRequest(); }catch (e) { try { xmlHttp =new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {} } return xmlHttp; } function makewindows(){ child1 = window.open ("about:blank"); child1.document.write(<?php echo htmlspecialchars(json_encode(...
[ 0.27966681122779846, 0.060081757605075836, 0.4745326638221741, -0.16836141049861908, -0.07280831784009933, 0.18011873960494995, 0.2397647649049759, -0.5783158540725708, -0.09505891054868698, -0.46742212772369385, -0.26075252890586853, 0.12321532517671585, -0.3160548806190491, 0.18832573294...
'Ed Hardy');">Link 1</a><li>Link 2</li> ```
[ -0.09428777545690536, 0.13161464035511017, 0.29197588562965393, 0.033517155796289444, -0.07103545218706131, -0.04117552936077118, 0.37310054898262024, -0.11469583213329315, -0.00623216712847352, -0.5561617612838745, -0.45363396406173706, 0.331550657749176, -0.5972329378128052, 0.1610690653...
I'm curious as I begin to adopt more of the boost idioms and what appears to be best practices I wonder at what point does my c++ even remotely look like the c++ of yesteryear, often found in typical examples and in the minds of those who've not been introduced to "Modern C++"? Just a few off the top of my head: * Nav...
[ 0.34817957878112793, 0.06543458253145218, 0.20035284757614136, 0.0648166611790657, -0.022270100191235542, 0.01583157479763031, -0.027378952130675316, 0.19121451675891876, -0.6541804075241089, -0.5026630163192749, -0.057869803160429, 0.7319257855415344, 0.03701995685696602, -0.0110107976943...
Any time you use placement-new. The common thread here is "any situation in which you need to treat a piece of memory as something other than a resource over which you have allocation control".
[ 0.4126855432987213, -0.15528330206871033, -0.25252872705459595, -0.03496328741312027, 0.12892700731754303, 0.029022807255387306, -0.23220862448215485, 0.06508582085371017, -0.5235518217086792, -0.7435742020606995, -0.18581700325012207, 0.09987036883831024, 0.1515047699213028, 0.32540267705...
I have an application that has several objects (about 50 so far, but growing). There is only one instance of each of these objects in the app and these instances get shared among components. What I've done is derive all of the objects from a base BrokeredObject class: ``` class BrokeredObject { virtual int GetInter...
[ 0.3608897030353546, 0.21309858560562134, 0.3879844844341278, -0.15382662415504456, 0.044642917811870575, 0.2850611209869385, 0.26051512360572815, -0.18984611332416534, 0.018640991300344467, -0.8742700219154358, 0.2547481060028076, 0.47588226199150085, -0.09730906784534454, 0.28361082077026...
returns it. If not, it creates it, puts it in the list and returns it. All well and good. ``` BrokeredObject *GetObjectByID(int id) { BrokeredObject *pObject; ObjectMap::iterator = m_objectList.find(id); // etc. if(found) return pObject; // not found, so create switch(id) { case 0: pObject = new Typ...
[ -0.0066365646198391914, -0.11645711958408356, 0.43263211846351624, -0.19831638038158417, 0.05503546819090843, 0.13495610654354095, 0.18350276350975037, -0.3382279574871063, 0.06210661679506302, -0.8749142289161682, -0.06487338244915009, 0.6602884531021118, -0.07693441957235336, 0.036894552...
having to have each class implement it. I have at least made my consumer's lives slightly easier by having each type hold info about it's own ID like this: ``` class TypeA : public BrokeredObject { static int get_InterfaceID() { return IID_TYPEA; } int GetInterfaceID() { return get_InterfaceID(); } }; ``` So I c...
[ 0.2172066569328308, -0.08559126406908035, 0.3674197793006897, -0.15798427164554596, -0.25249844789505005, 0.0018113115802407265, 0.2993811368942261, -0.09135779738426208, 0.3460366725921631, -0.970251202583313, 0.17497733235359192, 0.5243144631385803, -0.34477463364601135, 0.27541476488113...
something like this in C#: ``` BrokeredObject GetOrCreateObject<T>() where T : BrokeredObject { return new T(); } ``` Where the ObjectBroker would create the object based on the *type* passed in. Has C# spoiled me and it's just a fact of life that C++ can't do this or is there a way to achieve this that I'm not s...
[ 0.16204515099525452, -0.2632112205028534, 0.10658258199691772, -0.07079207897186279, -0.30151236057281494, -0.18532750010490417, 0.02733846753835678, 0.19772137701511383, 0.018695838749408722, -0.8088924884796143, 0.30663156509399414, 0.47525960206985474, -0.322205126285553, 0.355287760496...
and ATL was where I was headed, but I didn't want to add the weight of COM to the OS (this is being done in CE). What I ended up going with was template-based (thanks [litb](https://stackoverflow.com/users/34509/litb) for putting me on track) and looks like this: ``` class INewTransModule { public: virtual bool...
[ -0.11080632358789444, -0.22648459672927856, 0.17665021121501923, 0.17879444360733032, -0.3322879672050476, 0.19348934292793274, 0.26560717821121216, -0.17716823518276215, 0.01841157115995884, -0.7080267667770386, -0.06311435997486115, 0.784975528717041, -0.25522783398628235, 0.080336093902...
INewTransModule* GetInstance() { static INewTransModule t; // do stuff after creation ASSERT(t.Init()); return &t; } }; class OBJECTBROKER_API ObjectBroker { public: // these calls do configuration-based creations static ITraceTool *GetTraceTool(); static IEeprom *GetEeprom(); ...
[ 0.21045422554016113, -0.08556637912988663, 0.21684668958187103, 0.23498620092868805, 0.17296820878982544, 0.2209656983613968, 0.1406756043434143, -0.21801471710205078, -0.1686636507511139, -0.7303124070167542, -0.17873500287532806, 0.39339759945869446, -0.3978283107280731, 0.28511524200439...
So I totally buy into the basic tenents of ASP.NET, testability, SoC, HTML control...it's awesome. However being new to it I have a huge hang up with the markup. I know it comes from my hatred of classic ASP, and I can't help but feel like I've entered the twilight zone when [I see this](http://www.flickr.com/photos/we...
[ 0.5318384170532227, 0.03895393759012222, 0.27087774872779846, 0.08847780525684357, -0.15793193876743317, -0.4058561325073242, 0.2931889295578003, 0.20939071476459503, -0.44437405467033386, -0.4161130487918854, 0.034837756305933, 0.3433777093887329, 0.03581242635846138, 0.2519645392894745, ...
extension methods, so you can hide away some of the if/else logic, iteration, etc * S[trongly type your views](https://stackoverflow.com/questions/302273/strongly-typed-views-in-asp-mvc) so you can do `ViewData.Model.myProperty` rather than `(MyClasst)ViewData["foo"].myProperty` For instance this is an extension I mad...
[ -0.056089699268341064, -0.29444897174835205, 0.745429277420044, -0.1984052211046219, -0.03234364464879036, 0.13028264045715332, 0.06322240829467773, -0.5305612683296204, -0.5521160960197449, -0.47638267278671265, -0.2083125114440918, 0.46515825390815735, -0.5134491920471191, 0.180710867047...
in rss) { result.Append("<item>").Append(item.GetRSSItem().InnerXml).Append("</item>"); } } return result.ToString(); } ``` So in my front end all I have is `<%=Html.RSSRepeater(mydata)%>` which is much nicer.
[ -0.23799733817577362, 0.047004953026771545, 0.8924106359481812, -0.40119487047195435, -0.11901465803384781, 0.07986125349998474, 0.39829665422439575, -0.3978421092033386, -0.168966606259346, -0.5025784969329834, -0.26944783329963684, 0.2077244520187378, -0.428669273853302, 0.14818158745765...
Yesterday I got a call from a Microsoft representative asking if we supply "hosted solutions", presumably as part of the big Windows Azure push. As soon as I got off that call, our marketing director came into my office and said the majority of our customers are demanding Active Directory integration in the next versio...
[ 0.562365710735321, 0.2062615156173706, 0.37261801958084106, 0.10134226828813553, 0.3071323037147522, 0.02171235904097557, -0.12259957939386368, -0.030209718272089958, -0.16097316145896912, -0.4891984760761261, -0.04755879193544388, 0.4212529957294464, -0.17943133413791656, 0.21718637645244...
Does it mean a user is signed into the app just by authenticating to Active Directory or does it mean the app gets its list of users from Active Directory or does the creation of new users or groups in the app create new users or groups in Active Directory? Am I just caught in the crossfire of a war of buzzwords? You'...
[ 0.7737104296684265, 0.1520092636346817, 0.28912076354026794, 0.11210545152425766, 0.15114326775074005, -0.26129573583602905, 0.5731350183486938, -0.26205065846443176, -0.2764318585395813, -0.13979320228099823, -0.11476339399814606, 0.6547330617904663, -0.3956852853298187, -0.11743666231632...
Directory to do the authentication and, after that, the user is simply logged in; you don't keep active credentials, etc, in your own database. However I would consider it smart to cache that information as well, and be prepared to authenticate against that cache in addition to the directory, in case the domain control...
[ 0.17028245329856873, 0.014322800561785698, 0.4312431812286377, 0.25881826877593994, 0.32039716839790344, -0.5325332880020142, 0.10293341428041458, 0.027370743453502655, -0.1632542908191681, -0.48459309339523315, -0.09839189052581787, 0.5141260027885437, -0.20234403014183044, 0.195213064551...
I have this PHP code ``` echo '<a href="#" onclick="updateByQuery(\'Layer3\', ' . json_encode($query) . ');">Link 1</a>'; ``` which generates a link like this: ``` <a href="#" onclick="updateByQuery('Layer3', "Ed Hardy");">Link 1</a><li>Link 2</li> ``` Causing the javascript to not be called. How would I make it ...
[ 0.41195306181907654, 0.28607508540153503, 0.3793337941169739, -0.1401175856590271, -0.4389820992946625, -0.15660333633422852, 0.2595406174659729, -0.20235750079154968, -0.005403799470514059, -0.45123183727264404, 0.3072129189968109, 0.09049973636865616, -0.46632179617881775, 0.152378633618...
In a method, I want to be able to insert a value into a div which is part of the html document I choose to parse. ``` public void AddToDiv(string div) { //Code to read the html document and look for the div //(name specified as the parameter of this method). } ``` Question is, I could specify a div called ...
[ 0.39814406633377075, -0.02162710763514042, 0.07743357867002487, -0.03657849505543709, -0.05638526752591133, -0.08223067224025726, 0.16429565846920013, -0.44398990273475647, 0.2085084617137909, -0.3661043345928192, -0.10069290548563004, 0.35403215885162354, -0.6253476142883301, -0.151779085...
wouldn't supress this catch block in production code, // just omitting body details for simplicity. } ``` OR ``` public void ParseDocument { //Logic here... if(!document.Contains(div) { throw new ArgumentException(); } } ``` In short, what is the difference between a catch block and sayin...
[ 0.3417324423789978, 0.2581918239593506, -0.19072262942790985, -0.010766858235001564, -0.20165158808231354, -0.2387688308954239, 0.22153204679489136, -0.18295341730117798, -0.16267739236354828, -0.3243226408958435, -0.24898825585842133, 0.4977940618991852, -0.3188221752643585, 0.01297507341...
code. See these questions and answers for a broader discussion [When to throw an exception](https://stackoverflow.com/questions/77127/when-to-throw-an-exception) [Is there any valid reason to ever ignore a caught exception](https://stackoverflow.com/questions/204814/is-there-any-valid-reason-to-ever-ignore-a-caught-...
[ 0.11302165687084198, -0.09458933025598526, 0.18263447284698486, 0.26670631766319275, 0.08350736647844315, -0.3016473948955536, 0.621216356754303, 0.04879671707749367, -0.37562206387519836, -0.4357312023639679, -0.21976669132709503, 0.5782068967819214, -0.2518981993198395, -0.16858138144016...
exception. **NB:** Don't optimise unless you need to.
[ 0.5018534064292908, 0.04953863099217415, -0.0730123519897461, -0.21334579586982727, 0.05248967185616493, -0.11686168611049652, 0.38885343074798584, 0.23048420250415802, -0.08030293136835098, -0.6335180997848511, -0.2517627477645874, 0.4333811104297638, -0.5022121667861938, -0.4434989094734...
``` $(document).ready(function(){ $(".txtDate").datepicker({ showOn: "both", buttonImage: "library/ui/datepicker/img/calendar2.gif", dateFormat: "yy/mm/dd", buttonImageOnly: true }); //added this checkbox click for something I given earlier $("#Table input").click(function() { if ($(this...
[ 0.33222144842147827, -0.03724776953458786, 0.5840913653373718, -0.2361600250005722, 0.13208885490894318, -0.017663313075900078, -0.09627630561590195, -0.15755508840084076, -0.0583539716899395, -0.6434277296066284, -0.2405303567647934, 0.44978997111320496, -0.36041781306266785, 0.1576914638...
$(this).parent().parent().removeClass("highlight"); } }); }); ``` I have a checkbox control for each row that I add dynamically in code behind ``` for( int i=0; i< data.count;i++){ HtmlTableCell CheckCell = new HtmlTableCell(); CheckBox Check = new CheckBox(); CheckCell.Controls.Add(Chec...
[ -0.17146185040473938, -0.0048408061265945435, 0.8267441391944885, -0.2846345603466034, -0.07042157649993896, 0.18308120965957642, 0.02146812155842781, -0.4222014248371124, -0.3007804751396179, -0.64910489320755, -0.26134952902793884, 0.05225824937224388, -0.3643130362033844, 0.082960747182...
<colgroup width="20%"></colgroup> <colgroup width="15%"></colgroup> <colgroup width="47%"></colgroup> <thead> <tr> <th id="CheckBox" runat="server"><input type="checkbox" id="CheckBox1" name="CheckBox" runat="server" /></th> <th id="Type" runat="server"></th> <th...
[ -0.27100521326065063, -0.16299985349178314, 0.5778979063034058, -0.20788900554180145, -0.1581815928220749, 0.031224774196743965, -0.12001189589500427, -0.12987037003040314, -0.3312029540538788, -0.5190584659576416, -0.2048875093460083, 0.19701552391052246, -0.225375235080719, -0.0331459045...
<th id="Description" runat="server"></th> </tr> </thead> <tbody> </tbody> </table> ``` Yea - my answer just got zapped too. Anyway, if you are using asp.net then the names get mangled ( to something like ctl100\_Table ) and you need to put this into the jquery instead of Table. Look at the actua...
[ 0.27069324254989624, 0.006828291807323694, 0.10073443502187729, 0.19211873412132263, -0.18359898030757904, -0.27587705850601196, 0.32980701327323914, 0.22109286487102509, -0.21705925464630127, -0.7649425268173218, -0.08103667199611664, 0.48324522376060486, -0.2084018737077713, 0.1570859104...
I am aware of the responses at [Prefer composition over inheritance](https://stackoverflow.com/questions/49002/prefer-composition-over-inheritance) and am aware of the merits of composition over inheritance. But there are cases where inheritance does have a good role to play. It's the incorrect use of inheritance hie...
[ -0.013962111435830593, 0.04062645137310028, -0.07967148721218109, 0.056293755769729614, -0.05344660207629204, 0.06014253944158554, 0.05976532772183418, -0.4328083395957947, -0.1536051332950592, -0.633182168006897, -0.21541401743888855, 0.4690423309803009, -0.39576995372772217, 0.0127043118...
.... } public class NumericTextBox: TextBox { .... } ``` NOTE: Both the UI and the functionlity is reusable. I may be wrong or partially correct. Your thoughts would only help me improve my understanding of this subject. How would you go about designing the control model/hierarchy without using inheritance, an...
[ 0.20294509828090668, 0.03286625072360039, 0.11820284277200699, 0.05515999346971512, -0.2181832641363144, -0.1999490112066269, 0.02834220603108406, -0.14599710702896118, -0.118229940533638, -0.6939427256584167, -0.1009787917137146, 0.5117579102516174, -0.3280998468399048, -0.065169408917427...
and .NET benefit from using an inheritance hierarchy for streams. I suggest you have a look at the inheritance tree for Windows Presentation Foundation though - that's a relatively modern UI toolkit designed for composition. That enables weird and wonderful things - like buttons which contain further buttons etc. Some...
[ 0.45412254333496094, 0.010560947470366955, 0.15516924858093262, 0.26789960265159607, -0.32058200240135193, -0.4697370231151581, 0.0073793064802885056, -0.11970280855894089, -0.16524435579776764, -0.8144539594650269, 0.11891261488199234, 0.5701122879981995, -0.20646320283412933, 0.091595984...
in quite the same way as in (say) WinForms.
[ -0.3044925928115845, -0.08642108738422394, 0.11497870087623596, 0.035676728934049606, -0.3249291181564331, -0.2909177839756012, 0.010094056837260723, 0.14326557517051697, 0.08036975562572479, -0.6284480690956116, -0.37447959184646606, 0.4826338589191437, 0.21593639254570007, -0.04406744614...
What is the best way to unit test a method that calls into multiple methods, for example: ``` modify(string value) { if(value.Length > 5) replaceit(value); else changeit(value); } ``` This pseudo code has a modify method that (currently) calls either `replaceit()` or `changeit()`. I have already wrote test...
[ 0.41369590163230896, 0.11841241270303726, 0.28076300024986267, -0.005121948663145304, 0.12798669934272766, 0.25409215688705444, 0.2239839732646942, -0.5385953783988953, 0.18027007579803467, -0.3997804820537567, 0.3048125207424164, 0.7063418626785278, -0.37179115414619446, 0.126257076859474...
ideas? I'm not sure of the best practice here. This is a classic state-based test vs. behavior-based test scenario. In this ridiculously simple example testing the output is fine. At some point though, you'll run into tests where inspecting the state after execution is complicated. Instead you want to check the behavi...
[ 0.41402667760849, 0.052705567330121994, -0.08145555108785629, 0.3558570146560669, 0.016730841249227524, 0.1273905336856842, 0.06772402673959732, -0.18708668649196625, -0.4630388021469116, -0.5311092138290405, 0.4359745979309082, 0.39927175641059875, -0.41915127635002136, 0.1185243204236030...
My designer handed me a design I'm not 100% sure how to do with jquery and css. I am basicly trying to allow a user to "slide" the footer up to reveal more conent. My html.. ``` <div id="footer"> <div id="expandingFooter"> hidden content</div> content that is always visible </div> ``` I have a toggle...
[ 0.037769630551338196, -0.383780300617218, 0.9762901067733765, -0.08854924887418747, -0.0004322401655372232, 0.2417096197605133, -0.23496514558792114, -0.20248553156852722, -0.3394802212715149, -0.5498090386390686, 0.5680830478668213, 0.34520936012268066, -0.028431404381990433, 0.1528189033...
effect for me. ``` $('#toggleButton').bind('click', function(e) { $('#expandingFooter').toggle( 'slide', { easing: 'easeOutQuint', direction: 'down' }, 1000 ); }); ``` Note: You may want to play with the easing parameter to get the desired smoothness of the effect. You'll need to h...
[ -0.2453690618276596, -0.3422345221042633, 0.9983648657798767, -0.1408117413520813, -0.2791914641857147, 0.0016901239287108183, -0.12982140481472015, -0.3995583653450012, -0.2231730818748474, -0.7052823901176453, -0.00247897463850677, 0.7130953669548035, -0.15462738275527954, -0.20402961969...
I have been investigating for some time now a way to prevent my user from accidently entering a data directory of my application. My application uses a folder to store a structured project. The folder internal structure is critic and should not be messed up. I would like my user to see this folder as a whole and not b...
[ 0.6202579736709595, 0.3065209686756134, 0.03747785836458206, 0.21350263059139252, 0.05731230229139328, -0.39482101798057556, 0.42656370997428894, 0.22834888100624084, -0.2759443521499634, -0.5800495743751526, 0.07684516161680222, 0.27203670144081116, -0.20473439991474152, 0.491975486278533...
So encryption or password protection are not needed. Thank you all for your .Net answers but unfortunately, this is mainly a C++ project without any dependency to the .Net framework. The data I am mentioning are not light, they are acquired images from an electronic microscope. These data can be huge (~100 MiB to ~1...
[ 0.38179123401641846, 0.1383540779352188, 0.21063196659088135, 0.3426595628261566, -0.06564071774482727, -0.3417411744594574, 0.0991552546620369, 0.06286083161830902, -0.34571123123168945, -0.789256751537323, -0.04071911424398422, 0.35652244091033936, -0.05731162056326866, 0.305858373641967...
some components we are not even responsible of. A solution that allows me to keep the current IO code is preferable. Shell Extension looks interesting, I will investigate the solution further. LarryF, can you elaborate on Filter Driver or DefineDOSDevice ? I am not familiar with these concepts. Looks like some [Windo...
[ 0.6215009689331055, -0.05288919061422348, -0.010548960417509079, 0.11985865980386734, 0.06811020523309708, -0.38195061683654785, -0.010503501631319523, -0.07275642454624176, -0.24806548655033112, -0.7424577474594116, 0.13053227961063385, 0.7016561031341553, -0.38272252678871155, 0.15206694...
I want my JTextPane to insert spaces whenever I press Tab. Currently it inserts the tab character (ASCII 9). Is there anyway to customize the tab policy of JTextPane (other than catching "tab-key" events and inserting the spaces myself seems an)? You can set a javax.swing.text.Document on your JTextPane. The followin...
[ 0.15490807592868805, -0.03958013653755188, 0.4440729022026062, -0.46252837777137756, 0.0043529970571398735, 0.2251286506652832, 0.39630159735679626, -0.3112146854400635, -0.040996622294187546, -0.6364719271659851, -0.09981352835893631, 0.37079188227653503, -0.6050556302070618, 0.1347853392...
JFrame frame = new JFrame(); frame.getContentPane().add(textpane); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setSize(new Dimension(200, 200)); frame.setVisible(true); } static class TabDocument extends DefaultStyledDocument { @Override public vo...
[ 0.31070977449417114, -0.16805991530418396, 0.7089285850524902, -0.37010127305984497, 0.10999325662851334, 0.27766603231430054, 0.4408400356769562, -0.6057244539260864, -0.1363922655582428, -0.40728759765625, -0.17131198942661285, 0.6325470805168152, -0.5492849946022034, 0.15141505002975464...
"); super.insertString(offs, str, a); } } } ``` Define a DefaultStyleDocument to do the work. Then set the Document to your JTextPane. Cheers Kai
[ 0.2447863072156906, 0.15291380882263184, 0.5526598691940308, -0.18671125173568726, -0.22731609642505646, -0.15363024175167084, 0.3904642164707184, -0.12914197146892548, 0.2564103901386261, -0.5152990221977234, -0.4137687087059021, 0.5326228737831116, 0.1260419636964798, -0.0375556610524654...
What happened to OCX's? Are they no longer possible to create with the latest tools? I need to create an ActiveX control that I can place in Word, PowerPoint and Excel documents. If I use VS.NET, I can only create a UserControl DLL with COM Interop, but I don't think I can add that using the "More Controls" toolbox of...
[ 0.39468851685523987, 0.23431944847106934, 0.3197435438632965, 0.199265256524086, 0.07327073067426682, -0.03897516429424286, -0.30433186888694763, 0.25834089517593384, -0.21034088730812073, -0.773767352104187, 0.08146389573812485, 0.48905569314956665, -0.5243039131164551, 0.3261472284793854...
just .NET objects that are invoked via CCW.
[ 0.7270640134811401, -0.6138665080070496, 0.06219106167554855, 0.42100194096565247, 0.0769706591963768, -0.5537879467010498, 0.007414947263896465, 0.3881332278251648, -0.1217242106795311, -0.60044926404953, -0.08251985907554626, 0.41166451573371887, -0.4191587269306183, 0.09746266901493073,...
My friend and I are having a disagreement over an application development issue. It's a simple production management application. According to my friend, the front-end stores data in XML, and a Java program will read the XML document, store it (at the back-end), and apply some business logic and again store the resul...
[ 0.17520050704479218, 0.3898463249206543, 0.2652985751628876, -0.040536899119615555, 0.17131437361240387, -0.1440405249595642, -0.07636397331953049, -0.06779621541500092, -0.008627770468592644, -0.4516431391239166, -0.13614395260810852, 0.4754956364631653, -0.11972974240779877, 0.0863776132...
application is standalone. It's not used over a network. Have any of you tried this? Please share your thoughts :) You're right and your friend gave a bad idea. In addition, from your question, I see there are several troubled issues, I don't know where to begin so I will just list them but not in any particular oder....
[ 0.22171847522258759, 0.16408799588680267, 0.197344109416008, -0.007681355811655521, -0.021588480100035667, -0.10825513303279877, 0.4368247389793396, -0.25638818740844727, -0.20106813311576843, -0.8835586309432983, -0.07756997644901276, 0.3673475980758667, -0.47596392035484314, 0.0228453185...
notion of front end and back end do not really apply to a desktop application. Rather, you want to use the MVC pattern for the separation of concerns. Wikipedia might be a good place to start learning or reviewing. 2. Why use of socket (which is totally unnecessary) if you don't have to. This is the first reason why it...
[ 0.18166665732860565, 0.12247782200574875, 0.05928922817111015, 0.19846676290035248, -0.36550623178482056, -0.12996868789196014, 0.08357281237840652, -0.037198010832071304, -0.13897377252578735, -0.5886585116386414, -0.17593353986740112, 0.48469308018684387, -0.2313828319311142, 0.187611445...
pass Java or C# objects around. With XML, first there is the signal to noise issue as tags are added to the true data. Then there is the time to parse, to construct the XML, additional libraries potentially, etc. Thid would be all that code which are introduced in your friend's approach. These are the most obvious rea...
[ 0.3301215171813965, 0.07560031861066818, 0.1445072889328003, 0.3472454249858856, -0.09646959602832794, -0.47189900279045105, 0.3172302544116974, -0.3025767207145691, -0.15080972015857697, -0.7235485315322876, -0.051167502999305725, 0.5264860391616821, -0.07051759213209152, -0.1406754553318...
of deployment, now you force your users to have both the JRE and the .NET framework installed just to be able to run your application. And either of those is not exactly a small footprint.
[ 0.25496286153793335, 0.0712464302778244, -0.04539192467927933, 0.130702942609787, 0.21677584946155548, -0.25196361541748047, 0.033321842551231384, 0.0220450758934021, -0.33345362544059753, -0.6917356252670288, -0.00943996012210846, 0.5048645734786987, -0.056351371109485626, -0.038504332304...
I'm writing a asp.net MVC site and I have written some extensions to the Html class to generate some html for me. From within the extension method is it better to write directly to the Response.Output stream or have the extension method return a string? What are the advantages / disadvantages of using the Reponse.Ou...
[ 0.19633878767490387, -0.2664458751678467, 0.801598310470581, -0.22329078614711761, -0.3187509775161743, 0.1745934635400772, 0.23328369855880737, -0.21815042197704315, -0.21022939682006836, -0.585120439529419, -0.19285225868225098, 0.5055642127990723, -0.28799375891685486, 0.100153475999832...
I have an element that is similar to a tag (because it has word-wrap: pre;) to display code on a website. The only problem is that the tab size is too large and causes the element to horizontally scroll often because it is of fixed width. Is it possible to change the tab size? You could replace tabs with spaces. Then ...
[ 0.48009905219078064, 0.04209146276116371, 0.4376295506954193, 0.08591589331626892, 0.012907962314784527, -0.0484829917550087, 0.03723335638642311, -0.14156436920166016, -0.05735417455434799, -0.8227899074554443, 0.14732682704925537, 0.17058350145816803, 0.022597670555114746, 0.340506821870...
Using NUnit 2.2 on .NET 3.5, the following test fails when using DateTime.Equals. Why? ``` [TestFixture] public class AttributeValueModelTest { public class HasDate { public DateTime? DateValue { get { DateTime value;
[ 0.2756401002407074, -0.5402656197547913, 0.43426433205604553, -0.17871345579624176, 0.14206115901470184, -0.25225383043289185, 0.4211747348308563, -0.21695607900619507, 0.07939635962247849, -0.48487988114356995, -0.08456619828939438, 0.573314368724823, -0.050331972539424896, 0.141197472810...
return DateTime.TryParse(ObjectValue.ToString(), out value) ? value : new DateTime?(); } } public object ObjectValue { get; set; } } [Test] public void TwoDates() { DateTime actual = DateTime.Now; var date = new HasDate {ObjectValue = actual}; Assert...
[ 0.419659823179245, -0.28366249799728394, 0.694722056388855, -0.21179454028606415, 0.3220159411430359, -0.014247388578951359, 0.104326993227005, -0.01187798660248518, -0.1915149837732315, -0.5896011590957642, -0.26590123772621155, 0.6202689409255981, -0.1776217520236969, 0.21985793113708496...
aren't equal. TryParse drops some ticks. Compare the Tick values. For one test run: ``` Console.WriteLine(date.DateValue.Value.Ticks); Console.WriteLine(actual.Ticks); ``` Yields: ``` 633646934930000000 633646934936763185 ```
[ 0.1466701328754425, 0.0579848475754261, 0.09077605605125427, -0.05260031297802925, 0.24260342121124268, 0.5082601308822632, 0.3647172451019287, -0.5011317729949951, 0.11533898860216141, -0.5170347094535828, 0.31659865379333496, 0.28359881043434143, -0.3610489070415497, 0.24536602199077606,...
I'm trying to use grep with -v for invert-match along with -e for regular expression. I'm having trouble getting the syntax right. I'm trying something like ``` tail -f logFile | grep -ve "string one|string two" ``` If I do it this way it doesn't filter If I change it to ``` tail -f logFile | grep -ev "string one...
[ 0.013680779375135899, 0.10049494355916977, 0.43218857049942017, 0.05707402154803276, -0.1557169258594513, 0.019303683191537857, 0.23123665153980255, 0.15878629684448242, -0.1272474229335785, -0.6499496698379517, -0.20771121978759766, 0.693869411945343, -0.5203678011894226, -0.0507052205502...
grep interprets "foo|bar" as matching the literal string "foo|bar" only, whereas the pattern "foo\|bar" (with an escaped |) matches either "foo" or "bar". To change this behavior, use the -E flag: ``` tail -f logFile | grep -vE 'string one|string two' ``` Alternatively, use egrep, which is equivalent to grep -E: `...
[ -0.4296075403690338, 0.07981839030981064, 0.5427960157394409, 0.012921832501888275, -0.0980987474322319, 0.17251341044902802, 0.2339148074388504, -0.1310979127883911, -0.14415666460990906, -0.41179946064949036, -0.8027126789093018, 0.46975550055503845, -0.6113899946212769, -0.4316960871219...
If I have, say, a table of films which amongs other things has a int FilmTypeId field and a table of film types, with the id and a meaningful description along the lines of: * 1 - horror * 2 - comedy * ... Whats the best way of using that information in a C# class? currently I would have them as Constants in a helpe...
[ 0.7748022675514221, 0.27325186133384705, 0.42010048031806946, 0.12410058081150055, -0.07108867168426514, -0.02370874211192131, -0.10936489701271057, -0.20901326835155487, -0.3573837876319885, -0.21521566808223724, -0.03163188695907593, 0.8642173409461975, -0.117182157933712, 0.615903139114...
a database call everytime I came to use the constant or an additional db call everytime I used either the helper or the main entity. Is the list of types fixed or does it change? If fixed, I would encapsulate it in an enum: ``` public enum FilmType { Horror = 1, Comedy = 2 } ``` Then just cast. You can use at...
[ 0.7094692587852478, 0.1503157913684845, 0.3335864841938019, 0.2914031744003296, -0.15109393000602722, 0.1360144168138504, -0.04112868383526802, -0.06782157719135284, -0.14220678806304932, -0.34866252541542053, 0.2164703905582428, 0.603594958782196, -0.32181650400161743, 0.33313634991645813...
perhaps in a specific cache). Then just do the lookups from the cached copy. You can take this further by adding properties that change between the two representations.
[ 0.13286660611629486, 0.0012768963351845741, -0.028745001181960106, 0.3672091066837311, 0.15995219349861145, 0.01587149314582348, 0.08711209893226624, -0.14902634918689728, -0.1433018147945404, -0.875082790851593, 0.15925690531730652, 0.4756578803062439, 0.018343910574913025, 0.067964151501...
A long while back I transitioned to doing all my web application development in Eclipse from BBEdit. But I miss one little feature from BBEdit. I used to be able to show invisible characters like tabs but not show other invisibles like spaces. I know that I can bulk turn all of these on in Eclipse, but I wonder if ther...
[ 0.5688087940216064, -0.056827250868082047, 0.14568567276000977, 0.02567506954073906, -0.3068307638168335, -0.006333678960800171, 0.19726461172103882, 0.45369285345077515, -0.22325173020362854, -0.7627646327018738, 0.3248894512653351, 0.6328285932540894, -0.1943209320306778, 0.0164252277463...
component in Eclipse is very complicated as it is and they are not keen on making them even worse. **[UPDATE]** This has been fixed in Eclipse 3.7: Go to Window > Preferences > General > Editors > Text Editors Click on the link "whitespace characters" to fine tune what should be shown. Kudos go to [John Isaacks](htt...
[ 0.17175985872745514, 0.08452904969453812, 0.07026658952236176, -0.04804404824972153, -0.340421199798584, 0.16151206195354462, 0.2247447818517685, -0.15131467580795288, -0.10355814546346664, -0.4326264560222626, -0.2820282280445099, 0.5236942172050476, -0.14518629014492035, -0.1543308347463...
I found an example on registering DLLs, *[Registering an Assembly for COM Interop in a MSI file with the Windows Installer XML toolset.](http://blogs.msdn.com/robmen/archive/2004/04/28/122491.aspx)*, and WiX complains about the "AssemblyRegisterComInterop" attribute. I removed that and changed the "Assembly" attribute...
[ 0.18416281044483185, 0.05826375260949135, -0.07015987485647202, -0.2045253962278366, 0.04795968532562256, -0.22845031321048737, 0.4806693196296692, -0.09513188153505325, -0.10970515757799149, -0.5607398152351379, -0.11469624191522598, 0.7527065277099609, -0.5528587102890015, 0.117736831307...
arbitrary code via DllRegisterServer. The theory being that a DLL should do nothing beyond putting the appropriate entries in the registry when DllRegisterServer is called. Unfortunately, a lot of of them do more than that, so self-registration might be the only way to get your install to work. It's also wrong, becaus...
[ 0.5553666949272156, -0.027202006429433823, 0.2993904650211334, 0.07228410243988037, -0.1743921935558319, -0.4840814173221588, 0.40668609738349915, -0.1543494462966919, 0.013706475496292114, -0.7177085280418396, -0.10741657018661499, 0.31277841329574585, -0.5956191420555115, 0.3763153553009...
output into your current WiX project. You'll get a variety of Class, ProgID, TypeLib, and Registry tags. You may need to manually edit that output to get it to compile. I hope that helps.
[ 0.7601502537727356, -0.06832969933748245, 0.16233423352241516, 0.12269030511379242, 0.20407894253730774, -0.38177159428596497, 0.05021121725440025, 0.30942633748054504, -0.21102812886238098, -1.0184016227722168, -0.07163918018341064, 0.24359671771526337, -0.3154448866844177, 0.087222114205...
Erm - what the question said. It's something I keep hearing about, but I've not got round to looking into it yet. --- (updated) I could look up the definition... but why not (as pointed out by @erikson) get insight into your real experiences and anecdotes. Community Wiki'd incase that helps folks vote up the most ins...
[ 0.07348083704710007, -0.12176352739334106, -0.10792876034975052, 0.32505127787590027, -0.2845384478569031, 0.1864502727985382, 0.14931745827198029, 0.06212077662348747, -0.3496772050857544, -0.477201372385025, -0.13241444528102875, 0.24362024664878845, -0.09889876842498779, 0.1007378697395...
simply a state machine, is a model of > behavior composed of a finite number > of states, transitions between those > states, and actions. A finite state > machine is an abstract model of a > machine with a primitive internal > memory. So, what does that mean to you? Put simply, it is an effective way to represe...
[ 0.19900482892990112, -0.1563877910375595, -0.0752919539809227, 0.37021368741989136, -0.03048679605126381, 0.004750489257276058, 0.244269460439682, -0.03571612760424614, -0.18623016774654388, -0.8126232624053955, -0.03599982336163521, 0.25099673867225647, -0.48338571190834045, 0.32583487033...
I would expect to this pattern to accept strings such as "ABC", "ABBC", "ABBBC", etc. A at the start, C at the end, some number of B's in the middle (greater than or equal to one). If you think about it, it's almost easier to think about this in terms of a picture. Faking it with text (and that my parentheses are a lo...
[ 0.23166221380233765, 0.19639217853546143, -0.01852480322122574, -0.40703830122947693, -0.2528360188007355, 0.033146824687719345, 0.33816492557525635, -0.10374727100133896, -0.20097531378269196, -0.36993318796157837, -0.35940954089164734, 0.13056665658950806, -0.5489568710327148, 0.45294678...
A --> B --> C ``` From FSAs, you can continue your journey into computational complexity by heading over to the land of [Turing Machines](http://en.wikipedia.org/wiki/Turing_machine). However, you can also use state machines to represent real behaviors and systems. In my world, we use them to model certain workflow ...
[ 0.5375075936317444, 0.13623294234275818, -0.03643842414021492, 0.3463423550128937, 0.20626284182071686, -0.00911977980285883, 0.4793003499507904, 0.2622140049934387, -0.341858834028244, -0.6988142728805542, -0.35867929458618164, -0.07422878593206406, -0.005972526501864195, 0.29067829251289...
We currently have an application that works with Outlook 2003. In order to get the owner of a shared contact folder, we simply call: Redemption.RDOSessionClass.GetFolderFromID() and then took that folder and got the RDOFolder.Store.Name property. However, when trying this with a shared contact folder in Outlook 2007, ...
[ 0.06977054476737976, 0.2596275210380554, 0.3189568519592285, -0.08066436648368835, 0.05319465324282646, -0.11796890944242477, 0.5928435325622559, -0.030772659927606583, -0.3295552432537079, -0.6109392642974854, 0.19202902913093567, 0.6283019781112671, -0.06444685161113739, 0.26321661472320...
and what I can do, if anything, to fix this from the server end. Short answer, it is a technique that you can use to express systems with concrete states (as opposed to quantum states / probability distributions). Quoting the [Wikipedia article](http://en.wikipedia.org/wiki/Finite_state_machine): > A finite state mac...
[ -0.04100120812654495, -0.1766037940979004, -0.21066570281982422, 0.28160718083381653, 0.2006881684064865, 0.2482781559228897, 0.016740795224905014, -0.05696316063404083, -0.384566068649292, -0.6798994541168213, -0.10958880931138992, 0.2742883861064911, -0.2501547038555145, 0.30672049522399...
that mean to you? Put simply, it is an effective way to represent the path(s) from a starting state to the end state(s) of the system that you care about. Using regular expressions as a fairly easy to understand example, let's look at the pattern AB+C (imagine that that plus is a superscript). I would expect to this pa...
[ 0.7062703967094421, -0.09850721061229706, 0.14970040321350098, -0.04949235916137695, -0.18714872002601624, -0.05030595883727074, 0.19258305430412292, -0.08497697114944458, -0.18376047909259796, -0.4901842176914215, -0.0621953122317791, 0.33318597078323364, -0.38745713233947754, 0.237774372...
in terms of a picture. Faking it with text (and that my parentheses are a loopback arc), you can see that A (on the left), is the starting state and C (on the right) is the end state on the right. ``` _ ( ) A --> B --> C ``` From FSAs, you can continue your journey into computational complexity by headin...
[ 0.46202340722084045, 0.19026239216327667, -0.03574848920106888, 0.3300008475780487, 0.2726190388202667, 0.10038377344608307, 0.38205355405807495, 0.13579313457012177, -0.45665666460990906, -0.7766468524932861, -0.4183357059955597, 0.04706079885363579, -0.1599724143743515, 0.461070388555526...
people working with components that are extremely intolerant of mistakes in state order. As in, "A had better happen before C or there will be a very serious problem. Make that be not possible right now."
[ 0.55561363697052, 0.14286594092845917, -0.2062734067440033, 0.13820095360279083, 0.30502626299858093, -0.11134032160043716, 0.5656351447105408, -0.20549330115318298, -0.3804033696651459, -0.43065881729125977, -0.12469197064638138, 0.3567410707473755, -0.12829387187957764, -0.18304656445980...
How do I Deserialize this XML document: ``` <?xml version="1.0" encoding="utf-8"?> <Cars> <Car> <StockNumber>1020</StockNumber> <Make>Nissan</Make> <Model>Sentra</Model> </Car> <Car> <StockNumber>1010</StockNumber> <Make>Toyota</Make> <Model>Corolla</Model> </Car> <Car> <StockNumb...
[ 0.5206183195114136, 0.05851343274116516, 0.2687068581581116, 0.13918402791023254, 0.009151767939329147, 0.43031227588653564, 0.07506176084280014, -0.9046039581298828, 0.11876118183135986, -0.33660492300987244, 0.11693335324525833, 0.6874725222587585, 0.06178344786167145, 0.3082761168479919...
Namespace = "", IsNullable = false)] public class Cars { [XmlArrayItem(typeof(Car))] public Car[] Car { get; set; } } ``` . ``` public class CarSerializer { public Cars Deserialize() { Cars[] cars = null; string path = HttpContext.Current.ApplicationInstance.Server.MapPath("~/App_Dat...
[ 0.015591546893119812, -0.1712731271982193, 0.5459985733032227, 0.1882706880569458, 0.01795108988881111, 0.6103159785270691, 0.04376767948269844, -0.14928080141544342, -0.111434705555439, -0.6945300698280334, -0.45923781394958496, 0.6006574630737305, -0.1986364722251892, 0.3536494970321655,...
reader.Close(); return cars; } } ``` that don't seem to work :-( Here's a working version. I changed the `XmlElementAttribute` labels to `XmlElement` because in the xml the StockNumber, Make and Model values are elements, not attributes. Also I removed the `reader.ReadToEnd();` (that [function](http://ms...
[ -0.06992005556821823, -0.023430388420820236, 0.4731314778327942, 0.04282460734248161, 0.044915564358234406, 0.3006211519241333, -0.24151644110679626, -0.11303355544805527, 0.02788533642888069, -0.5394726991653442, -0.15618494153022766, 0.41047224402427673, -0.15839484333992004, 0.412700772...
[System.Xml.Serialization.XmlElement("StockNumber")] public string StockNumber { get; set; } [System.Xml.Serialization.XmlElement("Make")] public string Make { get; set; } [System.Xml.Serialization.XmlElement("Model")] public string Model { get; set; } } [Serializable()] [System.Xml.Serialization...
[ 0.2002628594636917, 0.030994651839137077, 0.4070373773574829, 0.22034308314323425, 0.06789234280586243, 0.682735025882721, -0.14339029788970947, -0.21015219390392303, -0.2419867068529129, -0.33443090319633484, -0.19882452487945557, 0.6244457364082336, 0.08676299452781677, 0.582420170307159...
<Car> <StockNumber>1020</StockNumber> <Make>Nissan</Make> <Model>Sentra</Model> </Car> <Car> <StockNumber>1010</StockNumber> <Make>Toyota</Make> <Model>Corolla</Model> </Car> <Car> <StockNumber>1111</StockNumber> <Make>Honda</Make> <Model>Accord</Model> </Car> </Cars> </Car...
[ 0.125832661986351, 0.09790615737438202, 0.30620530247688293, 0.14544129371643066, -0.3133383095264435, 0.6399415135383606, -0.16263720393180847, -0.3916693925857544, -0.0554373562335968, 0.037059057503938675, 0.25727686285972595, 0.34342411160469055, 0.2116246074438095, 0.13150566816329956...
I am trying to get my continuous integration to create build the smart device cab project from within msbuild on the command line. Everything that I have found says to use the inf file (with cabwiz) created when you build the project from within visual studio. Is there a way to create the inf using the .vddproj file so...
[ 0.5076068639755249, -0.05837305635213852, 0.24907146394252777, 0.044906433671712875, -0.4462839961051941, -0.02961120568215847, 0.2723737359046936, -0.11720740795135498, -0.02725975215435028, -0.835929274559021, 0.3632688820362091, 0.8073221445083618, -0.46284058690071106, 0.04806557297706...
<http://social.microsoft.com/Forums/en-US/csharpide/thread/a3caae81-fd79-45a9-ac38-f471e30e5b2a> CabWiz.exe: <http://msdn.microsoft.com/en-us/library/aa924359.aspx> INF reference: <http://msdn.microsoft.com/en-us/library/aa924371.aspx> Examples: <http://blog.enterprisemobile.com/2008/07/automating-build-versioning-a...
[ -0.3933338224887848, 0.22044940292835236, 0.19479048252105713, -0.09812851250171661, -0.19785472750663757, 0.14631396532058716, 0.4281918406486511, -0.15961210429668427, -0.31593623757362366, -0.6004987359046936, -0.02308710664510727, 0.4613521993160248, -0.42088523507118225, 0.18475238978...
Routines, procedures, methods - whatever you call them, they are important building blocks for us developers. What single characteristic would you rate as the *most important* one? (By providing one characteristic per answer, it is possible to vote for them individually. I.e. the purpose of this question is not to dec...
[ 0.30579063296318054, 0.03126171603798866, -0.1968396157026291, 0.33114883303642273, -0.1813489943742752, 0.21307189762592316, 0.06574390083551407, -0.12066679447889328, -0.28090861439704895, -0.6715905666351318, -0.10045253485441208, 0.38148900866508484, -0.2786976397037506, 0.091708853840...
I want to get myself into programming some serious GUI based applications, but when I look at things like Swing/SWT from Java, I can't help but HATE programming a GUI interface by creating "widget" objects and populating them and calling methods on them. I think GUI design should be done in a separate text-based file...
[ 0.12916530668735504, 0.1657416671514511, 0.3076871633529663, -0.005073973443359137, -0.30899131298065186, -0.09530486166477203, 0.003144602756947279, 0.2129976600408554, -0.026557564735412598, -0.8385682702064514, 0.20639503002166748, 0.7878868579864502, -0.029494283720850945, -0.273029118...
looking for a python library (or even a WIP project) for doing markup-based gui. **UPDATE** The reason I can't accept QT's xml is the same reason I hate the programatic approach; you're assembling each widget separately, and specifying each property of it on a separate line. It doesn't provide any advantage over doin...
[ 0.4106020927429199, 0.2119036614894867, 0.4036281406879425, 0.05538061261177063, -0.4365788996219635, -0.24886874854564667, -0.056858938187360764, 0.20434929430484772, -0.03742507845163345, -0.8998164534568787, 0.14669722318649292, 0.44494274258613586, -0.42876583337783813, -0.031237481161...
using Python though.
[ 0.06382827460765839, 0.07017979770898819, -0.19339151680469513, 0.02073081210255623, -0.44536691904067993, -0.465608149766922, 0.20364028215408325, 0.39871835708618164, -0.16525773704051971, -0.3467518091201782, -0.1343751698732376, 0.45865362882614136, -0.4248234033584595, -0.416752398014...
In a previous life, I might have done something like this: ``` <a href="#" onclick="f(311);return false;">Click</a><br/> <a href="#" onclick="f(412);return false;">Click</a><br/> <a href="#" onclick="f(583);return false;">Click</a><br/> <a href="#" onclick="f(624);return false;">Click</a><br/> ``` Now with jQuery, I...
[ 0.05303587391972542, -0.11136069893836975, 0.3343392014503479, -0.0892619788646698, 0.10150402784347534, -0.1764814406633377, 0.32868891954421997, -0.3338022232055664, -0.2451097071170807, -0.6416018605232239, -0.11735782027244568, 0.5572215914726257, -0.15500271320343018, 0.04191693663597...
the DOM for jQuery to access? [JQuery.data](http://docs.jquery.com/Core/data#name) lets you associate a dictionary to a DOM element. This data can be set via jQuery: ``` <a class="clicker">Click</a><br/> <a class="clicker">Click</a><br/> <a class="clicker">Click</a><br/> <a class="clicker">Click</a><br/> <script lang...
[ -0.46682050824165344, 0.054705824702978134, 0.8363031148910522, -0.0806356891989708, -0.1504867672920227, 0.2147614061832428, -0.03186364099383354, -0.35260915756225586, -0.05305742099881172, -0.39592474699020386, -0.3429469168186188, 0.7892131209373474, -0.06201701611280441, -0.0917420685...
$(".clicker").click(function(e) { f($(this).data('value')); }); </script> ```
[ 0.023945948109030724, 0.032416678965091705, 0.43109822273254395, -0.3824854791164398, 0.4023456275463104, -0.03330526873469353, 0.2637408673763275, 0.09464839845895767, 0.12743066251277924, -0.44675981998443604, -0.570305347442627, 0.8361212015151978, -0.35781413316726685, 0.11055169254541...
The project I am working on were are trying to come up with a solution for having the database and code be agile and be able to be built and deployed together. Since the application is a combination of code plus the database schema, and database code tables, you can not truly have a full build of the application unles...
[ 0.41515931487083435, 0.3043860197067261, -0.0991164967417717, 0.1930764764547348, 0.2556013762950897, -0.13359521329402924, 0.008862131275236607, -0.0654032826423645, -0.1782778799533844, -0.6282810568809509, 0.14486414194107056, 0.625255286693573, -0.08216369897127151, -0.0874353572726249...
requirements: 1. I want to be able to have a svn revision # that corresponds to a complete build of the system. 2. I do not want to check in binary files into source control for the database. 3. Developers need to be able to commit code to the continuous integration server and build the entire system and database toge...
[ 0.37979599833488464, 0.1710466891527176, 0.38940444588661194, 0.08198755234479904, 0.37840092182159424, -0.2640455663204193, 0.31978678703308105, -0.3416013717651367, -0.23379090428352356, -0.5580954551696777, -0.45033711194992065, 0.7262314558029175, -0.12280149012804031, -0.0470076128840...
of code. I have read the agile database design information, and that process in isolation seems to work, but I am talking about combining it with active code development. Here are two scenario's 1. Developer checks in a code change, that requires a database change. The developer should be able to check in a database ...
[ 0.26855120062828064, 0.14915519952774048, -0.06144304946064949, 0.3396856486797333, 0.05574214458465576, 0.018054742366075516, 0.6146752238273621, -0.3755786120891571, -0.0014239089796319604, -0.5137037634849548, -0.08366246521472931, 0.7355117201805115, -0.6044773459434509, -0.02339854463...
database change". Right now the application of the DB changes is a manual process someone has to do, while code change are constantly being made. They need to be made together and checked together, the build system needs to be able to build the entire system. (Update 2) One more add here: You can't bring down product...
[ 0.48260068893432617, 0.22319838404655457, 0.3785574436187744, -0.03697584569454193, -0.013940980657935143, 0.03990687057375908, 0.13092973828315735, -0.3978402614593506, -0.20373637974262238, -0.6982800364494324, -0.0717553198337555, 0.7030166387557983, -0.3617035746574402, 0.2169176489114...
Whatever is not tool-generated, keep in scripts. For continuous integration, ideally a "build" should include a complete rebuild of the database and a reload of static testing data. I just saw that you have no ORM tool... here's what we had at a company I used to work for ``` db/ db/Makefile (run `make` to rebuild d...
[ 0.592429518699646, 0.19529810547828674, 0.07775447517633438, -0.057507939636707306, -0.060709040611982346, -0.10813643038272858, 0.09659388661384583, -0.1254173368215561, -0.08200635761022568, -0.5713534951210022, -0.14802247285842896, 0.4481011927127838, -0.22538943588733673, 0.1257620155...
already has a build process (Java, C, C++), this is second nature. If you're using scripts in such a way that there is no build process at all, this'll be a bit of extra work.
[ 0.4687843918800354, 0.0888480693101883, -0.1140197142958641, -0.03314030542969704, -0.07527319341897964, -0.2224859595298767, 0.12542814016342163, 0.11842043697834015, -0.1812140792608261, -0.6574084758758545, 0.0038769899401813745, 0.5538311004638672, -0.05366926267743111, -0.197117537260...
Does anyone know how to show a asp:TreeView always expanded to the leaves? So if I have a 2-level tree, I want it to be expanded at all times. Is there a property on TreeView that does this or could you show the code snippet on how to do this? Thank you very much! Ray. aspx.cs: ``` protected void Page_Load(object sen...
[ 0.1587030589580536, -0.055906377732753754, 0.5429105162620544, 0.02208959497511387, 0.14568164944648743, -0.27523544430732727, 0.31476449966430664, 0.07964573055505753, -0.5126445889472961, -0.8632762432098389, -0.24515430629253387, 0.45404934883117676, -0.20470280945301056, -0.09550762921...
So, i'm running emacs over a crappy ssh connection and I have it set up to use cscope. I can not use X because of this...hence I'm running emacs inside putty. However, when I search for something with cscope and it opens up the other buffer, I can not follow the links where cscope tells me which file and line number th...
[ 0.1763710230588913, 0.09319283068180084, 0.22059914469718933, 0.10766277462244034, -0.15981446206569672, 0.03387923166155815, 0.32097572088241577, 0.3797682225704193, -0.15323305130004883, -0.4985865354537964, 0.14539344608783722, 0.25160327553749084, -0.47412699460983276, 0.59505736827850...
follow those links? I don't know about cscope for sure - but you should be able to find out the appropriate key binding by doing a "Ctrl-h m" in the buffer with all the links. This should open another buffer showing you help/key bindings on all the active modes. E.g. if you do the same thing in a grep result buffer i...
[ 0.0976824015378952, -0.01855178363621235, 0.38591083884239197, 0.30005112290382385, 0.03334397077560425, -0.3165305256843567, 0.3452466130256653, -0.04968118667602539, -0.2666684091091156, -0.5006304979324341, -0.0892065167427063, 0.5161921381950378, -0.42289432883262634, 0.119826599955558...
``` <% using (Html.BeginForm() { %> <%=Html.DropDownList("TopItemsList", ViewData["ListData"], new { onchange="[???]" })%> <% } %> ``` In the above example, what value should you set onchange to? Or, how do you get the correct form? Is there any difference with Ajax.BeginFrom? try this: ``` <%=Html.DropDownList...
[ 0.03867858648300171, -0.07710468024015427, 0.8638219833374023, -0.03491301089525223, -0.24437664449214935, -0.050336338579654694, 0.08388479053974152, -0.4959428906440735, -0.01707310415804386, -0.7230924963951111, -0.2604644298553467, 0.6657381653785706, -0.37921419739723206, -0.287301063...
I know that -applicationWillResignActive gets called upon an incoming call, but is there a standard method that gets called if the user hits the "exit" button (the only button on the front of the iPhone)? `- (void)applicationWillTerminate:(UIApplication *)application`, in UIApplicationDelegate protocol.
[ -0.010784377343952656, 0.08490645885467529, 0.5610273480415344, -0.06351133435964584, 0.20403127372264862, -0.17639683187007904, 0.5594754219055176, 0.07195451110601425, -0.18982313573360443, -0.4976588785648346, -0.2709908187389374, 0.4173125624656677, -0.3692616820335388, 0.2833440303802...
There's an existing function that ends in the following, where `d` is a dictionary: ``` return d.iteritems() ``` that returns an unsorted iterator for a given dictionary. I would like to return an iterator that goes through the items sorted *by key*. How do I do that? Haven't tested this very extensively, but works ...
[ -0.33149877190589905, -0.011690054088830948, 0.2785504460334778, -0.035709500312805176, -0.08882217854261398, 0.25409090518951416, 0.0640479177236557, -0.5025847554206848, -0.08151698857545853, -0.5419625639915466, -0.3502294421195984, 0.5378542542457581, -0.0006483788602054119, 0.07158038...
print(key, value) ('a', 2222) ('h', 15) ('x', 2) >>> ``` With Python 3.x, use `d.items()` instead of `d.iteritems()` to return an iterator.
[ -0.17270195484161377, -0.10832343995571136, 0.1120341345667839, -0.11898093670606613, -0.08250118792057037, 0.3724367022514343, 0.15200550854206085, -0.5704358220100403, -0.04432643577456474, -0.20352241396903992, -0.5335012674331665, 0.591846764087677, -0.24182546138763428, -0.09847676008...
I am writing a Cocoa application with Mono embedded. I want to run and see my debug output in Terminal. On the Cocoa side I am using `NSLog()`, and on the Mono side I am using `Debug.Write()`. I can see my debug output in Xcode's console, but not in Terminal. This is what I tried: ``` $: open /path/build/Debug/MyPro...
[ 0.18024981021881104, 0.4384536147117615, 0.183859184384346, -0.16702672839164734, -0.1352178454399109, 0.24478694796562195, 0.23611599206924438, -0.17044302821159363, -0.08526969701051712, -0.7432541847229004, -0.15123596787452698, 0.5483830571174622, -0.5757420063018799, -0.08739714324474...
You can save me this hassle if you can get this [vi input manager](http://www.corsofamily.net/jcorso/vi/) to work with xcode. Chris gave a good overview of how the Console works, but to specifically answer your question: If you want to see the results directly in your Terminal, you need to run the built product as a ch...
[ 0.27545613050460815, 0.10234241932630539, 0.6219760179519653, 0.11106093227863312, 0.2079455852508545, 0.08092815428972244, -0.043206099420785904, 0.17529931664466858, 0.046500347554683685, -0.8013089895248413, 0.27523353695869446, 0.5770319104194641, -0.21284618973731995, 0.36641007661819...