text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
I was wondering if there was a good way to monitor a document library on SharePoint for changes (new files added, files changed / checked-in, files deleted, etc.) Basically, what `System.IO.FileSystemWatcher` does on local / network directories. Are there events that get fired when documents are uploaded to document ...
[ 0.40354830026626587, -0.2305084764957428, 0.1930958330631256, 0.24909399449825287, 0.043634768575429916, -0.31195318698883057, 0.049810416996479034, 0.13972465693950653, -0.4288925528526306, -0.6476504802703857, -0.05389304831624031, 0.5469995141029358, 0.09106388688087463, 0.1233391612768...
a good start: <http://www.davehunter.co.uk/Blog/Lists/Posts/Post.aspx?List=f0e16a1a%2D6fa9%2D4130%2Dbcab%2Dbaeb97ccc4ff&ID=69>
[ 0.005048905964940786, 0.16800852119922638, 0.3935387432575226, -0.34319981932640076, 0.18970796465873718, -0.2356140911579132, 0.6121916174888611, 0.27508455514907837, -0.2657013535499573, -0.5159276127815247, -0.1677895486354828, 0.40124624967575073, 0.5906262397766113, -0.067296244204044...
I would like to know what is the difference between initializing a static member inline as in: ``` class Foo { private static Bar bar_ = new Bar(); } ``` or initializing it inside the static constructor as in: ``` class Foo { static Foo() { bar_ = new Bar(); } private static Bar bar_; } ...
[ 0.1674782633781433, 0.14664678275585175, 0.37817996740341187, -0.38605058193206787, -0.02804112620651722, 0.1991843283176422, 0.040290508419275284, -0.09362268447875977, -0.028299152851104736, -0.38206157088279724, 0.0021777593065053225, 0.47160884737968445, -0.34717443585395813, 0.1537770...
the static constructor. That's about it as far as I know though.
[ 0.37020519375801086, -0.005074407905340195, 0.2351977825164795, 0.06660080701112747, -0.3698359429836273, 0.07505760341882706, -0.09280285984277725, 0.6109587550163269, -0.240543395280838, -0.1292870193719864, 0.3195152282714844, 0.5520856976509094, -0.19756948947906494, 0.3536331057548523...
I have a home project that really needs to be in Source Control. I tried installing Subversion, which I have some experience with, but couldn't get it working. I don't particularly want to use SourceSafe. I'm a bit nervous about Git/Mercury as being somewhat cryptic, although this is only based on opinion rather than m...
[ 0.5587788820266724, 0.20904089510440826, 0.35173943638801575, 0.12385009974241257, -0.2080846130847931, -0.4337880611419678, 0.33489173650741577, 0.17165543138980865, 0.050922948867082596, -0.7755780816078186, 0.03422895073890686, 0.8003115653991699, -0.03111676685512066, 0.114684380590915...
had it working in no time. Thanks for the great advice. I know you mentioned you already tried Subversion and had some issues but you really can't beat the easy install & configuration of ### [VisualSVN Server](http://www.visualsvn.com/server/) Insanely easy to setup & maintain. --- Use VisualSVN for the back-end a...
[ 0.5224316716194153, -0.33797481656074524, 0.5715169310569763, 0.18182401359081268, -0.1945824921131134, -0.1109221950173378, 0.2900732457637787, 0.4951254725456238, -0.48801690340042114, -0.7339099645614624, 0.13649284839630127, 0.9305640459060669, -0.003571524051949382, 0.2320847064256668...
I have a database full of small HTML documents and I need to programmatically insert several into, say, a PDF document with *iText* or a Word document with *Aspose.Words*. I need to preserve any formatting within the HTML documents (within reason, honouring <b> tags is a must, CSS like <span style="blah"> is a nice-to-...
[ 0.4038788378238678, 0.13517265021800995, 0.685222327709198, -0.010508597828447819, -0.1325969099998474, -0.08275561779737473, 0.1633186638355255, -0.5196592211723328, -0.14732490479946136, -0.6450544595718384, -0.24051976203918457, 0.3467118442058563, -0.2113604098558426, -0.08624400943517...
styles to insert into my document. Can anybody suggest a good library or a sensible approach to this problem? Platform is Java [HTMLparser](http://htmlparser.sourceforge.net/) is a good HTML parser. I have used this to parse HTML on one of my projects. You can write your own filters to parse the HTML for what you wa...
[ 0.5305188298225403, -0.036273639649152756, 0.42248106002807617, -0.11707877367734909, -0.3578832745552063, -0.08610139042139053, 0.1114921048283577, -0.14318479597568512, -0.3191954493522644, -0.788145124912262, 0.22162652015686035, 0.5540210604667664, -0.37689581513404846, -0.300746560096...
I've seen some developers put instance variable declarations at the end of classes though I mostly see them placed at the top. The only reasons I can think of for doing this are stylistic preference or maybe it somehow makes them easier to work with in an IDE. Is there a more legitimate reason for choosing this style? ...
[ 0.3524274528026581, 0.28507599234580994, -0.38730719685554504, 0.15193647146224976, -0.5004520416259766, -0.0662570595741272, 0.37493976950645447, 0.009164967574179173, -0.320682555437088, -0.3943493366241455, -0.046125590801239014, 0.4571206569671631, -0.4138543903827667, 0.11859986931085...
do with the class(methods) as opposed to how something is done(variables). Placing the methods at the top of the class exposes them first to the user when they look at the code.
[ 0.3131680488586426, -0.12688776850700378, -0.30915284156799316, 0.08703651279211044, -0.020370783284306526, -0.3871794641017914, 0.26075321435928345, -0.37919723987579346, 0.09319159388542175, -0.5514722466468811, -0.275176078081131, 0.4665490984916687, -0.11475806683301926, 0.071375511586...
I get the warning "childNodes is null or not an object' with different line numbers, depending on which version of the library I reference (I've tried about three different versions of 1.2.6). Consequently, I get jack for jQuery intellisense. I can hack this to get it to work, but I'd rather not as I don't understand ...
[ 0.2510841190814972, -0.07380234450101852, 0.4257158935070038, 0.19546084105968475, 0.27564769983291626, 0.098382867872715, 0.2665569484233856, 0.0369466207921505, -0.08227726817131042, -0.654296875, -0.3431698977947235, 0.4319608211517334, -0.34415963292121887, 0.14200639724731445, -0.07...
Studio 2008](http://blogs.ipona.com/james/archive/2008/02/15/JQuery-IntelliSense-in-Visual-Studio-2008.aspx)
[ -0.16275987029075623, -0.11322200298309326, 0.15817740559577942, 0.07449102401733398, -0.007586452178657055, 0.05501699447631836, -0.08800598978996277, -0.1649499237537384, -0.3097936511039734, -0.5484510064125061, -0.19686202704906464, 0.47477176785469055, 0.2879439890384674, -0.338514745...
Given the Python function: ``` def a_method(arg1, arg2): pass ``` How can I extract the number and names of the arguments. I.e., given that I have a reference to `func`, I want the `func.[something]` to return `("arg1", "arg2")`. The usage scenario for this is that I have a decorator, and I wish to use the meth...
[ 0.031644802540540695, 0.1847417652606964, 0.36165979504585266, -0.05045098811388016, -0.0807727798819542, 0.051571909338235855, 0.09600909799337387, -0.4817099869251251, -0.22152802348136902, -0.3271327316761017, -0.1697826236486435, 0.5535380840301514, -0.3280527889728546, -0.094686187803...
properties for you. ``` >>> inspect.getfullargspec(a_method) (['arg1', 'arg2'], None, None, None) ``` The other results are the name of the \*args and \*\*kwargs variables, and the defaults provided. ie. ``` >>> def foo(a, b, c=4, *arglist, **keywords): pass >>> inspect.getfullargspec(foo) (['a', 'b', 'c'], 'arglis...
[ -0.17767035961151123, 0.2393973469734192, 0.49796533584594727, -0.05351856350898743, 0.07549762725830078, -0.07364927977323532, 0.16963982582092285, -0.1474420726299286, -0.19975000619888306, -0.4312014877796173, -0.3553236722946167, 0.7481202483177185, -0.37297582626342773, 0.025523316115...
*arglist, **keywords)> ```
[ 0.042358316481113434, 0.2367432862520218, 0.3836064338684082, -0.19341284036636353, -0.27015313506126404, 0.032432444393634796, 0.4351748526096344, -0.04046180099248886, 0.0029513922054320574, -0.6196080446243286, -0.5530943274497986, 0.4367293417453766, -0.25352734327316284, 0.24065899848...
The following code snippet illustrates a memory leak when opening XPS files. If you run it and watch the task manager, it will grow and not release memory until the app exits. '\*\*\*\*\*\* Console application BEGINS. ``` Module Main Const DefaultTestFilePath As String = "D:\Test.xps" Const DefaultLoopRuns A...
[ -0.0822388082742691, -0.20720389485359192, 0.8394838571548462, -0.08073160797357559, 0.3238276541233063, 0.04721073433756828, 0.4404107630252838, -0.2070523500442505, -0.3445577323436737, -0.44311627745628357, -0.26628875732421875, 0.7853333950042725, -0.31973856687545776, 0.05985262244939...
Then PathToTestXps = Args(0) If (Args.Count >= 2) Then NumberOfLoops = CInt(Args(1)) Console.Clear() Console.WriteLine("Start - {0}", GC.GetTotalMemory(True)) For LoopCount As Integer = 1 To NumberOfLoops Console.CursorLeft = 0 Console.Write("Loop {0:d5}", LoopC...
[ -0.08244217932224274, -0.2639274597167969, 1.0652848482131958, 0.009596963413059711, 0.11770402640104294, -0.13510137796401978, 0.34757983684539795, -0.36958539485931396, 0.09038915485143661, -0.6842429637908936, -0.23463913798332214, 0.6846999526023865, -0.1935815066099167, -0.11552353948...
the more loops, the more memory is lost. Using XPSItem As New Windows.Xps.Packaging.XpsDocument(PathToTestXps, System.IO.FileAccess.Read) Dim FixedDocSequence As Windows.Documents.FixedDocumentSequence ' This line leaks a chunk of memory each time, when commented out it does...
[ 0.3788094222545624, -0.11141388863325119, 0.44676434993743896, 0.05326417088508606, 0.16319647431373596, -0.029009925201535225, 0.5163226127624512, 0.1686418652534485, -0.178878515958786, -0.5463545918464661, -0.3868741989135742, 0.44787538051605225, -0.5718305706977844, 0.3143989145755768...
End Using Next Console.WriteLine() GC.Collect() ' This line has no effect, I think the memory that has leaked is unmanaged (C++ XPS internals). Console.WriteLine("Complete - {0}", GC.GetTotalMemory(True)) Console.WriteLine("Loop complete but memory not released, will release whe...
[ -0.29529377818107605, 0.011260280385613441, 1.0566389560699463, 0.04028663784265518, 0.4107706546783447, -0.11508394032716751, 0.5468655824661255, -0.22536562383174896, 0.0027080033905804157, -0.6372842192649841, -0.6957170367240906, 0.5295265316963196, -0.26425492763519287, 0.465837508440...
it loops a thousand times is because my code processes lots of files and leaks memory quickly forcing an OutOfMemoryException. Forcing Garbage Collection does not work (I suspect it is an unmanaged chunk of memory in the XPS internals). The code was originally in another thread and class but has been simplified to thi...
[ 0.3612981140613556, -0.04799302667379379, 0.09085691720247269, 0.16596738994121552, 0.08137266337871552, -0.19706833362579346, 0.60350102186203, 0.053551819175481796, -0.09279520809650421, -0.3474540114402771, 0.38194528222084045, 0.6069600582122803, -0.4962786138057709, 0.2128878980875015...
Windows.Xps.Packaging.XpsDocument(PathToTestXps, System.IO.FileAccess.Read) Dim FixedDocSequence As Windows.Documents.FixedDocumentSequence Dim DocPager As Windows.Documents.DocumentPaginator FixedDocSequence = XPSItem.GetFixedDocumentSequence DocPager = FixedDocSequence...
[ 0.02443251945078373, -0.1290789246559143, 0.9398426413536072, -0.05535135418176651, 0.08438481390476227, 0.044359348714351654, 0.006781693547964096, -0.13368980586528778, -0.4042433202266693, -0.6421784162521362, -0.45178911089897156, 0.566817045211792, -0.35090288519859314, 0.049637667834...
For PageIndex As Integer = 0 To DocPager.PageCount - 1 DirectCast(DocPager.GetPage(PageIndex).Visual, Windows.Documents.FixedPage).UpdateLayout() Next FixedDocSequence = Nothing End Using ```
[ -0.19300265610218048, -0.3350420594215393, 0.8827061057090759, 0.08538096398115158, 0.015083817765116692, -0.1616346538066864, 0.05824895575642586, 0.08767662942409515, -0.26518458127975464, -0.721717357635498, -0.19297873973846436, 0.521168053150177, -0.6510458588600159, 0.235240727663040...
**UPDATE** - A comprehensive comparison, updated as of February 2015, can be found here: [Alternatives to Ext JS](https://stackoverflow.com/questions/200284/what-are-alternatives-to-extjs/2144878#2144878) ==================================================================================================================...
[ -0.08963572233915329, 0.035696931183338165, 0.2168753743171692, 0.04536503925919533, -0.06762372702360153, -0.10330010950565338, 0.35594144463539124, 0.0612105168402195, -0.33530688285827637, -0.5529785752296448, -0.1670522838830948, 0.5206466913223267, -0.09265611320734024, -0.05295819416...
[Backbase](http://backbase.com/) Relatively less known. A curious mix of XML and Javascript that is reminiscent of XUL. However, it's already cross-browser *Advantages:* Looks [good](http://demo.backbase.com/explorer/index.html#%7Cexamples/welcome.xml), very extensible, allows easy incorporation of [some really neat...
[ 0.10883698612451553, -0.13471002876758575, 0.3646450638771057, -0.006042065564543009, -0.43161439895629883, -0.16981159150600433, -0.003370338585227728, -0.022336266934871674, 0.018218163400888443, -0.6883020997047424, -0.24874816834926605, 0.380635529756546, 0.1392955631017685, -0.1456336...
loading of classes *Disadvantages:* MIght feel bloated * [jQuery UI](http://ui.jquery.com/) *Advantages:* Widgets not dependent on each other *Disadvantages:* In an early stage of development, very few widgets *Possible tendency towards wider acception:* jQuery to be shipped with ASP.NET MVC --- What say ...
[ 0.1323356032371521, -0.126570925116539, -0.252368688583374, 0.2636182904243469, -0.3660699725151062, 0.1842995285987854, 0.21623912453651428, 0.06191467493772507, -0.12967807054519653, -0.5689365863800049, -0.2380862981081009, 0.23143449425697327, -0.509210467338562, 0.0857960432767868, ...
several choices, no less) > > > An interesting comment in another thread compares jQuery, Dojo, Prototype, Mootools, [Sproutcore](http://www.sproutcore.com/) and [Cappuccino](http://cappuccino.org/) *(the question was removed)*. When considering a JavaScript library/framework for usage you should first define on your...
[ 0.4305332601070404, -0.0845118910074234, 0.29360219836235046, 0.11894349008798599, -0.3036271631717682, 0.1696467399597168, 0.02725876122713089, 0.002145462902262807, -0.3689199984073639, -0.9280705451965332, 0.22310668230056763, 0.31238076090812683, -0.2716025710105896, -0.048944018781185...
libraries for coding my application logic. Go for JavaScript *post-library/pre-framework*. * [extjs](/questions/tagged/extjs "show questions tagged 'extjs'") * [kendo](/questions/tagged/kendo "show questions tagged 'kendo'") * DHTMLX * Dojo * YUI * Qooxdoo * jQuery UI * [Bindows](http://www.bindows.net/) - gen...
[ 0.3022018074989319, -0.16382382810115814, 0.21423795819282532, 0.20618173480033875, -0.4319588840007782, 0.03116900846362114, 0.10157935321331024, -0.41655391454696655, -0.12296067178249359, -0.8760735988616943, -0.0750608816742897, 0.42518675327301025, -0.4226067364215851, -0.155826732516...
In .NET, Windows Forms have an event that fires before the Form is loaded (Form.Load), but there is no corresponding event that is fired AFTER the form has loaded. I would like to execute some logic after the form has loaded. Can anyone advise on a solution? You could use the "Shown" event: [MSDN - Form.Shown](http://...
[ 0.30002138018608093, 0.03241640329360962, 0.4104858934879303, -0.10602860152721405, -0.12471988797187805, -0.32701316475868225, 0.3384210765361786, -0.22658786177635193, -0.23297984898090363, -0.6989011764526367, -0.3811587989330292, 0.6498748064041138, -0.1655661016702652, -0.195096731185...
Is it right to use a private constant in the following situation: Say I have a game with a lives variable and a startingLives variable. At the start of the game I set the lives variable to equal the startingLives variable. This is how I would normally do it: ``` private var lives:int = 0; private var startingLives:in...
[ -0.052010197192430496, -0.26920005679130554, 0.17191876471042633, -0.1639900505542755, 0.2620290219783783, -0.19761107861995697, -0.24370045959949493, -0.15966159105300903, -0.3492620885372162, -0.3626439571380615, 0.0020966927986592054, 0.5561767220497131, -0.4495777189731598, 0.027837079...
and change back to a variable if it turns out not to be constant? UPDATE: The consensus seems to be that this is a good use of a constant, but what about amdfan's suggestion that you may want to load the value in from a config file? Put it in a constant named `DEFAULT_STARTING_LIVES`, but also have a variable named s...
[ 0.23339243233203888, -0.5402494072914124, 0.29473093152046204, -0.026349885389208794, 0.34056180715560913, -0.16570419073104858, -0.03360246494412422, -0.19526760280132294, -0.4938572645187378, -0.5877347588539124, -0.30880287289619446, 0.7025458812713623, -0.3273997902870178, 0.0789803490...
on my original answer.)
[ 0.4058440625667572, -0.02686377242207527, 0.4777030348777771, 0.16167017817497253, 0.10320036858320236, 0.08360698819160461, 0.12820430099964142, -0.2674099802970886, 0.04345997795462608, 0.03178609907627106, -0.06504105031490326, 0.39248043298721313, -0.24504326283931732, -0.0465807579457...
I'm in the process of developing a social network site. And been thinking of scalability from day one of the project, I've fine tuned the site and queries to the best of my ability. However; Certain pages are very data heavy and I'm not quite sure if they are loading as fast as they could so I was thinking of impleme...
[ 0.3250283896923065, 0.02366945892572403, 0.1973852813243866, 0.1156272366642952, -0.05853886157274246, -0.011690322309732437, 0.4782659709453583, 0.08637826889753342, -0.6107310652732849, -0.679413378238678, 0.22556209564208984, 0.23011727631092072, 0.06545347720384598, 0.2790127098560333,...
anything related to them such as in this site's case their goals, blog type entries, encouragements, photos, status updates (like twitter), blog info (for crossposting their entries) etc etc. Anyhow, should I cache this info? And do you think 1 second page load times are reasonably fast? Some pages are less than a sec...
[ 0.19712264835834503, 0.08358485996723175, 0.25536611676216125, 0.4667458236217499, 0.00214906083419919, -0.08003515005111694, 0.4413623809814453, 0.17099729180335999, -0.20874711871147156, -0.7074262499809265, 0.013106522150337696, 0.2701233923435211, 0.0625094547867775, 0.0887904837727546...
level. In terms of WHAT you need to cache, any objects that will be repeadedly accessed should be cached, especially those which are unlikely to change very often. You can then reset that object's cache only when it is edited. ( Be cautious of caching objects which are frequently updated as a constant cycle of replaci...
[ 0.06330270320177078, -0.005979274399578571, 0.4763413369655609, 0.4113787114620209, -0.058596789836883545, -0.33777013421058655, 0.5034825205802917, 0.18992945551872253, -0.21612361073493958, -0.8433903455734253, -0.12800252437591553, 0.7152491211891174, 0.1215907484292984, -0.074097134172...
under pressure. Your user info page might not be the biggest caching target if it is rarely accessed for example. You should be focussing on the most heavily used pages.
[ 0.3394147753715515, 0.15482884645462036, 0.2623797655105591, 0.06993426382541656, -0.2385013997554779, -0.4335474669933319, 0.1081196516752243, 0.1475343108177185, -0.23236097395420074, -0.6138647198677063, -0.2582469880580902, 0.6362999081611633, -0.08580265194177628, 0.19896075129508972,...
I am wondering how the JBoss ExceptionSorter classes are able to check for database errors. The application (the EJB or persistence framework) is holding the reference to the database Connection, so SQLExceptions are caught by the application. How is JBoss able to see the contents of the exception? Does JBoss wrap th...
[ 0.3027656078338623, 0.20063717663288116, 0.10539387166500092, 0.3579438328742981, -0.018314365297555923, -0.4469112455844879, 0.21519537270069122, 0.23044361174106598, -0.6022433042526245, -0.32437607645988464, 0.055750276893377304, 0.19384147226810455, -0.36231037974357605, 0.238901823759...
this wrapper as a line in the stack trace when an exception is thrown by the database, such as a SQL syntax exception. See last line in example below: ``` java.sql.SQLException: ORA-00942: table or view does not exist at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112) at oracle.jdbc....
[ -0.19688299298286438, 0.1780838668346405, 0.3693646788597107, -0.3140568137168884, -0.25596481561660767, 0.3735160827636719, 0.29914161562919617, -0.5167856812477112, -0.2211083173751831, -0.3696109354496002, -0.1599690020084381, 0.14455260336399078, -0.32044070959091187, 0.085041821002960...
provide the exception-inspection you suggested.
[ 0.2653255760669708, 0.19814066588878632, -0.24006295204162598, 0.22935673594474792, 0.18971125781536102, -0.16587471961975098, -0.032599933445453644, -0.06171632185578346, -0.20132729411125183, -0.49808311462402344, 0.07066928595304489, 0.38173148036003113, -0.16625866293907166, -0.1342417...
I've got a `DateTime?` that I'm trying to insert into a field using a `DbParameter`. I'm creating the parameter like so: ``` DbParameter datePrm = updateStmt.CreateParameter(); datePrm.ParameterName = "@change_date"; ``` And then I want to put the value of the `DateTime?` into the `dataPrm.Value` while accounting fo...
[ 0.020279627293348312, -0.08159065246582031, 0.576356053352356, -0.1655253916978836, 0.18210598826408386, 0.08830302953720093, 0.2437330037355423, -0.06728728115558624, 0.02001439407467842, -0.41069453954696655, -0.027937324717640877, 0.3939022719860077, -0.3572339117527008, 0.4114898741245...
either: > Type of conditional expression cannot be determined because there is no implicit conversion between 'System.DateTime' and 'System.DBNull' But I don't want to convert between those types! So far the only thing I can get to work is: ``` if (nullableDate.HasValue) datePrm.Value = nullableDate.Value; else ...
[ 0.044015802443027496, -0.08356014639139175, 0.38185322284698486, -0.29195359349250793, 0.02796858735382557, -0.0151292122900486, 0.5678132176399231, 0.0066896467469632626, -0.0465133972465992, -0.5054976344108582, -0.12247750163078308, 0.4130058288574219, -0.24079112708568573, 0.2387777864...
what I want! **Update2:** Well it was kind of obvious in the end: ``` datePrm.Value = nullableDate ?? (object)DBNull.Value; ``` Ah ha! I found an even more efficient solution than @Trebz's! ``` datePrm.Value = nullableDate ?? (object)DBNull.Value; ```
[ 0.3243943452835083, -0.13728854060173035, 0.4851120114326477, -0.11810824275016785, 0.05341586470603943, 0.06810147315263748, 0.08154784142971039, 0.020537273958325386, 0.05603871867060661, -0.32301774621009827, -0.1746431440114975, 0.3140169680118561, -0.35220128297805786, 0.3466835916042...
I have a news site with articles tagged in categories. My Controller is called "Category" and this URL: > `http://mysite.com/Category/Sport` passes `Sport` to action `Index` in controller `Category`. I want to allow the following URLs: > `http://mysite.com/Sport/Hockey` > > `http://mysite.com/Sport/Football` ...
[ 0.13124172389507294, 0.11024302244186401, 0.22459320724010468, 0.054945364594459534, -0.510405957698822, -0.3214399814605713, 0.14780114591121674, -0.004202486481517553, -0.45751115679740906, -0.3899824321269989, 0.014343543909490108, 0.1506454050540924, -0.3594755530357361, 0.156578361988...
For example in C# or in JavaScript documents. If not, is there point in using [Javadoc](http://en.wikipedia.org/wiki/Javadoc) comments in ASP.NET programming? I'm pretty sure the answer to that is no, it won't. Why would you use Javadoc style comments rather than the XML comments? The XML comments will be automatica...
[ 0.4686775207519531, 0.12205382436513901, 0.062039297074079514, 0.1591757982969284, -0.24099114537239075, -0.32815319299697876, -0.12462138384580612, 0.22256390750408173, -0.2624509334564209, -0.7077170014381409, -0.22473037242889404, 0.6775060892105103, -0.25396764278411865, -0.15197627246...
I have data from MySQL showing all organisations a customer got, with all details of employess in each organisation. I want to list each organisation name only once i.e. in a single cell ( row span) and all employees in that organisation against this name like: ``` Org1 Emp1 Name, Emp1 Phone, Emp1 Address ...
[ 0.2960208058357239, 0.2710111141204834, 0.7466917634010315, -0.23650513589382172, 0.06648824363946915, 0.4162614047527313, 0.03851870819926262, -0.015978755429387093, -0.5155260562896729, -0.3709421157836914, -0.07861737906932831, 0.06202824041247368, -0.068936787545681, 0.1452486217021942...
the number of employess for each organisation is not known in advanced, so I do'nt about setting value of rowspan. Similarly how do I start a row for other organisation? Do I have to write two queries? Many Thanks. Classic. Workaround: only display the name if different than the previous one. You can even not bother ...
[ -0.1546078771352768, 0.08315389603376389, 0.761663019657135, -0.2800094187259674, -0.029807336628437042, 0.21810407936573029, 0.13393040001392365, -0.41618794202804565, -0.5061017274856567, -0.41610825061798096, -0.02507646381855011, 0.5666140913963318, -0.2945193648338318, 0.2286173552274...
I am using TortoiseSVN for my Subversion repository held on a USB drive. When I move from one PC to another, is there a way to automatically identify that files are out of date (without using the Check for Modifications menu). It would be nice just to be able to see that the folder on my hard drive did not match that o...
[ 0.5825392603874207, -0.014445544220507145, 0.36944422125816345, 0.019051238894462585, 0.13597038388252258, 0.30108562111854553, -0.012385254725813866, 0.2888313829898834, -0.4506571888923645, -0.3903922438621521, 0.15647664666175842, 0.924100399017334, -0.17756353318691254, 0.1036853566765...
that does an `svn status -u`.
[ 0.09805510938167572, 0.13152432441711426, 0.18824143707752228, -0.003074957989156246, -0.15223771333694458, -0.31042128801345825, 0.2054896056652069, 0.46198028326034546, -0.18752939999103546, -0.10102357715368271, -0.47375109791755676, 0.10142931342124939, 0.3161394000053406, 0.3463112115...
Is there a simple Model Checker tool. I am planning to implement a model checker tool which will analyze the code for some of the predefined properties. One important tool is [SPIN](http://spinroot.com), with the Promela language. If you use LaTeX, there is also [TLA+](http://research.microsoft.com/users/lamport/tla/tl...
[ 0.13358670473098755, -0.20648884773254395, -0.17724399268627167, 0.20033232867717743, 0.13587896525859833, 0.08760019391775131, -0.1758115142583847, -0.07553403079509735, -0.3670012950897217, -0.3476627767086029, 0.08718707412481308, 0.3030083477497101, -0.14046120643615723, 0.108424611389...
(commercial or otherwise); this has the advantage of actually analysing your source code. Just looking at your question, and the comments in your question again, it sounds like you really should read some of the literature first. Perhaps, [The Spin Model Checker](https://rads.stackoverflow.com/amzn/click/com/032122862...
[ 0.12325578927993774, 0.23058845102787018, 0.10761827230453491, 0.42378929257392883, 0.08195772767066956, -0.19893686473369598, -0.18169260025024414, -0.016937771812081337, -0.31852835416793823, -0.07602819055318832, -0.188949316740036, 0.5222066640853882, -0.1463119238615036, -0.1652285456...
We have inherited an ant build file but now need to deploy to both 32bit and 64bit systems. The non-Java bits are done with GNUMakefiles where we just call "uname" to get the info. Is there a similar or even easier way to mimic this with ant? you can get at the java system properties (<http://java.sun.com/javase/6/doc...
[ 0.03023342229425907, -0.047804057598114014, 0.21842730045318604, 0.248031347990036, 0.08932258188724518, 0.20727697014808655, -0.10385321825742722, 0.006298141088336706, -0.3622341752052307, -1.0525988340377808, 0.13167937099933624, 0.40455731749534607, -0.26183006167411804, 0.193009406328...
I'm trying to construct a query that will include a column indicating whether or not a user has downloaded a document. I have a table called HasDownloaded with the following columns: id, documentID, memberID. Finding out whether a user has downloaded a *specific* document is easy; but I need to generate a query where t...
[ 0.49181893467903137, 0.3602851331233978, 0.14462941884994507, -0.16219733655452728, -0.07145218551158905, -0.3765956461429596, -0.03768191486597061, 0.12467342615127563, -0.38581085205078125, -0.44155028462409973, 0.07264035195112228, 0.3610478639602661, -0.5967417359352112, 0.429423451423...
2 ccc 53 ddd NULL eee 13 ``` The ID isn't really important; what I'm interested in is whether the document has been downloaded (is it NULL or not). Here is my query: ``` SELECT Documents.name, HasDownloaded.id FROM Documents LEFT JOIN HasDownloaded ON HasDownloaded.document...
[ 0.060502443462610245, 0.3515731692314148, 0.28162190318107605, 0.04760012775659561, 0.07511011511087418, -0.6197035908699036, -0.024921340867877007, -0.38924193382263184, -0.2807577848434448, -0.49463436007499695, -0.20007547736167908, 0.31463247537612915, -0.2764052450656891, 0.2156479358...
in the HasDownloaded table. I'd like to keep this simple and only have entries in HasDownloaded for documents that *have* been downloaded. So if user 1 has downloaded abc, bbb, and ccc, I still want ddd and eee to show up in the resulting table, just with the id as NULL. But the WHERE clause only gives me values for wh...
[ 0.32913097739219666, 0.32688668370246887, 0.2628307640552521, -0.017204318195581436, 0.13465751707553864, -0.39850422739982605, -0.14801430702209473, 0.018772779032588005, -0.28196388483047485, -0.5082518458366394, -0.047707751393318176, 0.3620736002922058, -0.31253084540367126, 0.20045007...
the join condition. ``` SELECT Documents.name, HasDownloaded.id FROM Documents LEFT JOIN HasDownloaded ON HasDownloaded.documentID = Documents.id AND HasDownloaded.memberID = @memberID ``` This is necessary whenever you want to refer to a left join-ed table in what would otherwise be the WHERE clause.
[ -0.09403055906295776, 0.2601132094860077, 0.4660360813140869, -0.25965532660484314, 0.38971060514450073, -0.6260067224502563, -0.012142528779804707, -0.21319343149662018, -0.0064363726414740086, -0.6877438426017761, -0.5086917877197266, 0.3953249752521515, -0.23593935370445251, 0.129977405...
Our clients use a vb6 version of our software. We are upgrading them to a .NET application written in C#... Is there less bulk using .net 2.0 than .net 3.5? My definition of less bulk would be: Smaller size, smaller installation time, etc. Most of them probably already have 2.0 anyway. I only ask because I would l...
[ 0.5547989010810852, 0.15836280584335327, 0.43037161231040955, -0.23195438086986542, -0.20794132351875305, -0.06033293157815933, -0.0038163154385983944, -0.26737189292907715, -0.5260172486305237, -0.5544650554656982, 0.0836983397603035, 0.551563560962677, -0.19241467118263245, -0.2072491347...
the .NET Framework that are typically used for client application scenarios. For example: it includes Windows Forms, WPF, and WCF. It does not include ASP.NET and those libraries and components used primarily for server scenarios. We expect this setup package to be about **26MB** in size, and it can be downloaded and i...
[ 0.4211159348487854, -0.10338281095027924, 0.1826292723417282, 0.010202190838754177, -0.1307009607553482, -0.6014097332954407, 0.07579520344734192, -0.22345440089702606, -0.19294895231723785, -0.7427229881286621, -0.42062726616859436, 0.5428271293640137, -0.2954738140106201, -0.266095697879...
When my application opens too many windows the taskbar groups them into one button. Each window has its own icon, but the grouping icon is the default "unknown"-kind icon. How can I set the grouping icon? This [comment from Raymond Chen](http://blogs.msdn.com/oldnewthing/archive/2004/04/08/109775.aspx#124579) indicate...
[ 0.0076421950943768024, 0.05051437392830849, 0.33696308732032776, -0.13955147564411163, 0.14096006751060486, 0.07514521479606628, 0.24986380338668823, -0.21246135234832764, -0.27025678753852844, -0.8948705196380615, 0.07214965671300888, 0.40712273120880127, -0.42689049243927, 0.046146299690...
Obviously I could create a `Calendar` object with the date and use `get(DAY)` on it, but knowing Groovy, I would guess there is an easier, quicker way I just don't know about? **Answer** ``` (date1..date2).size() == 1 // true if two dates are on same calendar day ``` Quickly opened the Groovy In Action book and foun...
[ 0.3036220669746399, -0.17933820188045502, 0.31720173358917236, 0.07165500521659851, -0.012895680963993073, 0.022820204496383667, 0.10559098422527313, -0.14642834663391113, -0.30345162749290466, -0.4856065511703491, -0.07495082914829254, 0.828472375869751, -0.019656244665384293, -0.15882551...
I have a [Bluehost](http://en.wikipedia.org/wiki/Bluehost) account where I can run Python scripts as CGI. I guess it's the simplest CGI, because to run I have to define the following in `.htaccess`: ``` Options +ExecCGI AddType text/html py AddHandler cgi-script .py ``` Now, whenever I look up web programming with P...
[ 0.3140750825405121, 0.23767589032649994, 0.21154913306236267, 0.013953839428722858, -0.16884654760360718, -0.11942534893751144, 0.03389971703290939, 0.03941863030195236, -0.40894433856010437, -0.7324476838111877, -0.024049442261457443, 0.12212351709604263, -0.29899922013282776, -0.05368203...
I need to know, install, and do if I want to run a web framework (say [web.py](http://webpy.org/) or [CherryPy](http://en.wikipedia.org/wiki/CherryPy)) on my basic CGI configuration? How to install WSGI support? **How WSGI, CGI, and the frameworks are all connected?** Apache listens on port 80. It gets an HTTP request...
[ 0.6756521463394165, -0.02371344529092312, 0.379243940114975, 0.021910523995757103, -0.3963889181613922, -0.25566622614860535, 0.2596660554409027, -0.40039587020874023, 0.1979510635137558, -0.6426613926887512, -0.37910696864128113, 0.5952697992324829, -0.20114439725875854, -0.13801957666873...
the CGI protocol. This is a standard Unix Fork/Exec situation -- the CGI subprocess inherits an OS environment including the socket and stdout. The CGI subprocess writes a response, which goes back to Apache; Apache sends this response to the browser. CGI is primitive and annoying. Mostly because it forks a subprocess...
[ 0.01585359498858452, -0.12160149961709976, 0.4390953779220581, 0.05002124607563019, -0.4216774106025696, -0.09628564119338989, 0.11739491671323776, 0.15372434258460999, -0.11452477425336838, -0.5924742817878723, -0.2677706182003021, 0.2432589828968048, -0.5641849040985107, 0.28520849347114...
but it doesn't have to be. WSGI adds to the CGI design pattern in several important ways. It parses the HTTP Request Headers for you and adds these to the environment. It supplies any POST-oriented input as a file-like object in the environment. It also provides you a function that will formulate the response, saving ...
[ 0.5267955660820007, -0.22172212600708008, 0.31592026352882385, 0.045707009732723236, -0.27701398730278015, -0.33555588126182556, -0.11786100268363953, -0.14579498767852783, -0.18057911098003387, -0.6804875135421753, -0.04255570098757744, 0.4440193474292755, -0.22404812276363373, -0.1634558...
this. 1. **Embedded** `mod_wsgi` or `mod_python` embeds Python inside Apache; no process is forked. Apache runs the Django application directly. 2. **Daemon** `mod_wsgi` or `mod_fastcgi` allows Apache to interact with a separate daemon (or "long-running process"), using the WSGI protocol. You start your long-running D...
[ 0.13443277776241302, 0.003191887168213725, 0.2991163730621338, -0.20819512009620667, -0.5249081254005432, -0.3194238245487213, 0.1299835443496704, -0.13720360398292542, -0.21062913537025452, -0.7022415995597839, 0.020180564373731613, 0.4172464609146118, -0.5996799468994141, -0.072855286300...
(via WSGI protocol) ``` Django has several "django.core.handlers" for the various interfaces. For mod\_fastcgi, Django provides a `manage.py runfcgi` that integrates FLUP and the handler. For mod\_wsgi, there's a core handler for this. **How to install WSGI support?** Follow these instructions. <https://code.goo...
[ 0.06540783494710922, 0.1562611311674118, 0.12301419675350189, -0.2587294280529022, -0.07264958322048187, -0.17222893238067627, 0.22665835916996002, -0.17085343599319458, -0.30894309282302856, -0.6244933605194092, -0.09133508801460266, 0.43721330165863037, -0.5501459240913391, -0.2791472971...
Is it possible to to change a `<span>` tag (or `<div>`) to preformat its contents like a `<pre>` tag would using only CSS? Look at the [W3C CSS2.1 Default Style Sheet](https://www.w3.org/TR/CSS21/sample.html) or the [CSS2.2 Working Draft](https://www.w3.org/TR/CSS22/sample.html). Copy all the settings for PRE and put t...
[ 0.19683238863945007, -0.01535225659608841, 0.1383112519979477, -0.11675149202346802, 0.011059826239943504, 0.21904607117176056, 0.031110890209674835, -0.408328652381897, -0.1413329690694809, -0.828606903553009, -0.3555656671524048, 0.3236563205718994, -0.29553911089897156, 0.07281417399644...
Recently I have been studying recursion; how to write it, analyze it, etc. I have thought for a while that recurrence and recursion were the same thing, but some problems on recent homework assignments and quizzes have me thinking there are slight differences, that 'recurrence' is the way to describe a recursive progra...
[ 0.06742795556783676, 0.1864205300807953, -0.14625537395477295, -0.011154472827911377, -0.3929249942302704, 0.009019830264151096, 0.26441702246665955, 0.2018917053937912, -0.19288936257362366, -0.6461695432662964, -0.21544015407562256, 0.45312124490737915, -0.11176931113004684, 0.0939084365...
way that I don't really understand what it's talking about. I learn much better with examples. So, a few questions: Lets say you are given this recurrence: > r(n) = 2\*r(n-2) + r(n-1); > > r(1) = r(2) > = 1 Is this, in fact, in the form of the master theorem? If so, in words, what is it saying? If you were to b...
[ 0.27237364649772644, 0.05800588056445122, 0.2712991535663605, -0.014271708205342293, -0.260284423828125, -0.14167122542858124, 0.4679620563983917, -0.09141816943883896, -0.3514862358570099, -0.3610464334487915, -0.11098230630159378, 0.540924072265625, -0.389440655708313, 0.2761740088462829...
that pattern, or, since this may be in the form of the master theorem, is there a more straightforward, mathematical approach? Now, lets say you were asked to find the recurrence, T(n), for the number of additions performed by the program created from the previous recurrence. I can see that the base case would probabl...
[ 0.18326663970947266, 0.04791513457894325, 0.02790161781013012, -0.09562624990940094, -0.08103024959564209, 0.035192668437957764, 0.04416365548968315, -0.24090880155563354, -0.36572757363319397, -0.5102999806404114, -0.028737947344779968, 0.42242079973220825, -0.5322036743164062, 0.21485847...
way of going about it. EDIT: Okay, I've looked through some of my past assignments to find another example of where I'm asked, 'to find the recurrence', which is the part of this question I'm having the post trouble with. > Recurrence that describes in the best > way the number of addition operations > in the follo...
[ -0.079633928835392, 0.23101425170898438, -0.3367329239845276, -0.18951784074306488, -0.12133324146270752, 0.2010168731212616, -0.0068675447255373, -0.4336176812648773, -0.21442894637584686, -0.3946109414100647, -0.219938725233078, 0.4356513023376465, -0.3028933107852936, 0.0236956067383289...
proved a result that generalizes the Master method -- it's almost always better. You really shouldn't be using the Master Theorem anymore... See, for example, this writeup: <http://courses.csail.mit.edu/6.046/spring04/handouts/akrabazzi.pdf> Basically, get your recurrence to look like equation 1 in the paper, pick of...
[ -0.270363986492157, 0.016584759578108788, -0.0836663618683815, -0.039550818502902985, -0.07222113758325577, 0.0015323417028412223, 0.14246200025081635, -0.29630935192108154, -0.1051933616399765, -0.07919328659772873, -0.22442404925823212, 0.48367270827293396, -0.25806868076324463, 0.318187...
Here is a stripped down version of what I use to authenticate users, it works fine on my PHP v5.0.2/MySQL 4.0.21 server, but fails on my PHP v5.1.6/MySQL v5.0.45 server. In the code below, should I be aware of anything that might not be supported by the newer version of PHP & MySQL? Global variables have been enabled....
[ -0.3310849070549011, 0.1780432015657425, 0.39105620980262756, -0.13465064764022827, 0.019251253455877304, -0.29121971130371094, 0.8980717062950134, -0.07185449451208115, -0.12427455931901932, -0.6109075546264648, -0.06869366019964218, 0.30948442220687866, -0.33528247475624084, 0.2627244889...
<tr> <th> Username </th> <td> <input type="text" name="username"> </td> </tr> <tr> <th> Password </th> <td> <input type="password" name="password"> </td> </tr> <tr> <td colspan="2" align="center"> <input type="submit" value="Log In"> </td> </tr> </tabl...
[ -0.501512348651886, -0.09478415548801422, 0.6264206767082214, 0.17197804152965546, 0.07263723015785217, -0.02428552135825157, -0.19427239894866943, -0.38705259561538696, -0.07302040606737137, -0.6446842551231384, -0.4719616174697876, 0.5790964961051941, -0.30137935280799866, -0.13924376666...
// connect to mysql include('../cgi-bin/db.php'); $username = $HTTP_POST_VARS['username']; $password = md5($HTTP_POST_VARS['password']); if(!$db) { echo 'Cannot connect to database.'; exit; } // select the appropriate database $mysql = mysql_select_db('quickwebcms'); if...
[ 0.08975992351770401, 0.05274327099323273, -0.10367560386657715, -0.2931635081768036, 0.12696169316768646, 0.05234481394290924, 0.6514339447021484, -0.6054089665412903, -0.12814904749393463, -0.3172246217727661, -0.2900410592556, 0.25111305713653564, -0.7695764899253845, 0.35212045907974243...
is a record which matches $query = "select count(*) from auth where username = '$username' and password = '$password'"; $result = mysql_query( $query ); if(!$result) { echo 'Cannot run query.'; exit; } $count = mysql_result( $result, 0, 0 ); if ( $c...
[ 0.009048803709447384, 0.1201125755906105, 0.2547219693660736, -0.3400503695011139, 0.1392117738723755, 0.05966947227716446, 0.431302011013031, -0.5124689340591431, -0.1663879156112671, 0.07849249243736267, -0.1601828932762146, 0.2616913318634033, -0.49178212881088257, 0.4279617369174957, ...
0 ) { // visitor's name and password combination are correct echo '<h1>Here it is!</h1>'; echo 'I bet you are glad you can see this secret page.'; } else { // visitor's name and password combination are not correct echo '<h1>Go Away!</h1>'; echo 'You are not authorize...
[ -0.24216152727603912, -0.014285925775766373, 0.4293845593929291, -0.17544692754745483, 0.2322399616241455, -0.43430110812187195, 0.48249390721321106, 0.08529620617628098, -0.11482930183410645, -0.4334743916988373, -0.7581730484962463, 0.08988331258296967, -0.5466417074203491, 0.59406018257...
it might be because of `$HTTP_POST_VARS`. Try replacing that with `$_POST`. If it still doesn't work, try putting the following snippet right after `<?php`: ``` // Enable displaying errors error_reporting(E_ALL); ini_set('display_errors', '1'); ```
[ 0.2217073142528534, 0.12586639821529388, 0.23004303872585297, -0.011355200782418251, 0.015199645422399044, 0.011930054053664207, 0.5743271112442017, 0.26235711574554443, -0.1381741762161255, -0.8618680238723755, -0.16708329319953918, 0.5024065375328064, -0.43721142411231995, 0.149385958909...
I've got a unfinished project that a developer just didn't finish and didn't leave any documentation about the installation process. I've downloaded the production directory to my windows machine (running InstantRails 2), I created the databases as required in the `database.yml` and I tried to run the `rake:db:migrate ...
[ 0.02759414166212082, 0.2201080173254013, 0.45076507329940796, 0.03484085202217102, 0.242533877491951, 0.2622964680194855, 0.5548986792564392, -0.5198801755905151, -0.3207264244556427, -0.4903112053871155, -0.22109374403953552, 0.6067678928375244, -0.4237455725669861, 0.07449956983327866, ...
`standard_exception_handling' D:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1967:in `run' D:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/bin/rake:31 D:/InstantRails-2.0-win/ruby/bin/rake:19:in `load' D:/InstantRails-2.0-win/ruby/bin/rake:19 ``` I'm a regular Rails develope...
[ -0.34320783615112305, 0.029907606542110443, 0.18872012197971344, 0.03447848558425903, -0.07058148831129074, -0.025506319478154182, 0.4179549217224121, -0.32764750719070435, -0.45985254645347595, -0.3099821209907532, -0.17227651178836823, 0.4129311740398407, -0.6943183541297913, 0.099710278...
I want to display some WPF elements near to the selected item of a ListView. How can I obtain the coordinates (screen or relative) of the selected ListViewItem? ``` <ListView x:Name="TechSchoolListView" ClipToBounds="False" Width="Auto" Height="Auto" HorizontalContentAlignment="Stretch" Vertica...
[ 0.40365666151046753, -0.45849812030792236, 1.0473501682281494, 0.1242559403181076, 0.28023484349250793, -0.05453816428780556, -0.04444727301597595, -0.582535982131958, -0.01551372092217207, -0.7640992403030396, -0.17225950956344604, 0.616710901260376, -0.14990073442459106, -0.0561785548925...
<ListView.Background> <SolidColorBrush Color="{DynamicResource PanelBackgroundColor}"/> </ListView.Background> </ListView> ``` You should use [ContainerFromElement](http://msdn.microsoft.com/en-us/library/aa346420.aspx) to get the item's container, which is a visual and from there you can get the coordinat...
[ 0.10734915733337402, -0.375522643327713, 0.6413093209266663, 0.014986587688326836, -0.03999758139252663, -0.13965635001659393, -0.035044774413108826, -0.32193535566329956, -0.5422358512878418, -0.7664322853088379, -0.22957704961299896, 0.1358965039253235, -0.3286173343658447, 0.01407021284...
WPF in a while, so that might have changed)
[ 0.36130237579345703, -0.3025727868080139, 0.44309699535369873, -0.09532976895570755, -0.058859698474407196, -0.025691714137792587, 0.16872663795948029, -0.14473438262939453, -0.4702768623828888, -0.14681245386600494, 0.2700599431991577, 0.3526534140110016, 0.040742598474025726, 0.100572533...
I've recently inherited a fairly large web site. The project is set up as a web site in Visual studio, and not a Web Application. For a number of reasons, I would like to convert it to a web application. I started converting the application using these directions from Scott Gu: [Migrating a VS 2005 Web Site Project to...
[ 0.5530136823654175, 0.17337553203105927, 0.042737096548080444, 0.023970844224095345, 0.03763212263584137, -0.08218101412057877, 0.17722243070602417, -0.32475143671035767, -0.2878236472606659, -0.662505030632019, 0.02946857549250126, 0.247539222240448, -0.3263894319534302, 0.113711446523666...
the pages it is including. This behavior seems to be allowed by the way that the compiler dynamically creates the .designer files in memory at compile time. The problem is that since I'm converting the application to a Web Application, I'm creating physical versions of the .designer files. Now the same call to contr...
[ 0.37374719977378845, -0.07460203766822815, 0.24049101769924164, 0.0972890555858612, -0.06738672405481339, -0.2384031116962433, 0.3863610327243805, -0.06645084917545319, -0.30288276076316833, -0.5818645358085632, -0.1874047964811325, 0.5691853165626526, -0.7858169078826904, 0.04352814704179...
had multiple @page directives. Second, I tried to just rename the included .aspx files to .inc, but I still have the same problem of the main page no longer being able to access the controls as they could before. Anyone ever done this before and have any thoughts on how to proceed without changing the entire structur...
[ 0.434147447347641, -0.22919686138629913, 0.08230158686637878, 0.39485326409339905, -0.23035095632076263, -0.03972252085804939, 0.46697336435317993, 0.3356989920139313, -0.23064745962619781, -0.7325439453125, 0.07131552696228027, 0.23786310851573944, -0.11837906390428543, 0.2123620361089706...
in the old situation * You should convert aspx files, which contain html, server- and/or HTML-controls to usercontrols (ascx files) This should be a good starter for now. Later on you could refactor to your own taste. Hope it helps.
[ 0.1687624156475067, -0.13318473100662231, 0.4700111448764801, 0.2664129137992859, -0.11104156821966171, -0.4133329689502716, 0.2140844315290451, 0.04377446323633194, -0.46357932686805725, -0.9684808850288391, -0.1895325779914856, 0.37332916259765625, -0.2137099802494049, -0.125891044735908...
I'm in the process of refactoring a project. I've got an entire subfolder which is known to be broken. Is there any declarative way to exclude that folder from the compile temporarily while I test the refactoring thus far? I realize I could delete the folder, but I'd like to do this through configuration if possible. ...
[ 0.7188078165054321, 0.38815048336982727, 0.02388828434050083, -0.035129424184560776, 0.21857382357120514, -0.2517986297607422, 0.6084043979644775, -0.10864559561014175, -0.2601325809955597, -0.518822193145752, 0.002237247535958886, 0.46538591384887695, -0.05454457178711891, 0.3254169225692...
I have a stored procedure currently executing a complicated fetch that is frequently timing out when used. The proposed solution in my department has been to simply increase the timeout time length; which I don't really want to do. I'd like to refactor this sproc, but because it's so complicated and undocumented (yay l...
[ -0.01381401252001524, 0.22119472920894623, 0.24771514534950256, -0.021152619272470474, 0.0583210214972496, -0.10402653366327286, 0.2561945617198944, -0.16101644933223724, -0.28402194380760193, -0.4052679240703583, 0.2133810669183731, 0.46907949447631836, -0.2965231239795685, 0.197440177202...
been faced with this situation in the past. The best thing to do is create a simple C# or VB .Net application. When you refactor the sp, give it a new name. Use the application to call both the old and new sp's. Then compare the output of the two sp's to ensure they return the exact same values in the same order. You ...
[ 0.6705305576324463, 0.1100543886423111, 0.19654227793216705, -0.03531702980399132, -0.3195595443248749, -0.18163348734378815, 0.05847618356347084, -0.22541138529777527, -0.15215684473514557, -0.4545458257198334, 0.09660957008600235, 0.6532565355300903, -0.18167902529239655, 0.2411603778600...
given a database that had to be modified for a new schema. It required changing over 100 sp's. Using the application I've described, I was able to be reasonably sure that one of my modifications did not break the business rules. You're right, just increasing the timeout is the wrong first answer. Improve the sp as bes...
[ 0.41214147210121155, 0.09828396141529083, 0.28622037172317505, 0.013680102303624153, 0.2223033308982849, 0.2250211387872696, 0.4135224521160126, -0.44723203778266907, -0.34260958433151245, -0.5539407730102539, 0.3948875367641449, 0.6357424855232239, -0.3096684217453003, -0.1095072701573371...
I've developed an application (C#) that currently sits on a a number of workstations. Each workstation accesses the same database (MS-SQL). I've been asked to port this to Citrix. Can anyone offer insight into documentation or suggestion of where someone would start with this? Is the application installed on the Citrix...
[ 0.45655182003974915, 0.16717781126499176, 0.45144519209861755, 0.16541855037212372, 0.18715642392635345, 0.14443142712116241, -0.10544547438621521, 0.1326438933610916, -0.3492574393749237, -0.605620801448822, -0.17264755070209503, 0.31262171268463135, -0.22015812993049622, 0.22205133736133...
date or currency formatting? There are Citrix settings that can do many things in this area. The users computer settings can be "projected" into Citrix or they could be overridden in Citrix. Also do you use the machine name for anything? That will be the server name and not the users local machine name. You can get a...
[ 0.6738634705543518, -0.26271507143974304, 0.018993036821484566, 0.5282929539680481, 0.21456778049468994, -0.14769139885902405, -0.20909905433654785, 0.271482914686203, -0.5178506374359131, -0.48273396492004395, 0.47996124625205994, 0.4678731858730316, -0.21214677393436432, 0.24376633763313...
during beta testing we discovered connection pooling error messages . Therefore I have been going through the code and closing down the SqlDataReader objects wherever they have been left unclosed. What I need to know is how to close a datareader (or if there is a need at all to close) that is specified in the SelectSta...
[ 0.3348968029022217, -0.03205312415957451, 0.14678168296813965, 0.15660487115383148, 0.08346095681190491, -0.44570809602737427, 0.37632468342781067, 0.22499826550483704, -0.12756691873073578, -0.4377588927745819, -0.1363343447446823, 0.5938646197319031, -0.05290154367685318, 0.2564097344875...
Dispose pattern - [here](http://msdn.microsoft.com/en-us/library/yh598w02(VS.80).aspx) is a link to the MSDN writeup, and [here](http://davidhayden.com/blog/dave/archive/2005/11/04/2555.aspx) is a link to a useful blog entry with an overview.
[ 0.333042174577713, -0.2656298875808716, -0.2595788836479187, 0.027848558500409126, 0.07535404711961746, -0.2642335891723633, 0.2802875339984894, -0.17009271681308746, -0.1518172323703766, -0.6805025935173035, -0.06324249505996704, 0.2766953110694885, -0.3008287847042084, 0.0524342730641365...
What query can return the names of all the stored procedures in a SQL Server database If the query could exclude system stored procedures, that would be even more helpful. As Mike stated, the best way is to use `information_schema`. As long as you're not in the master database, system stored procedures won't be return...
[ -0.010772149078547955, 0.0874166414141655, 0.01925601437687874, 0.121136374771595, 0.12444309890270233, -0.05135359242558479, 0.1393948495388031, -0.15357328951358795, -0.3457513153553009, -0.5187721252441406, 0.021022994071245193, 0.5655765533447266, -0.31769320368766785, 0.20191754400730...
LEFT(ROUTINE_NAME, 3) NOT IN ('sp_', 'xp_', 'ms_') ```
[ -0.013776223175227642, 0.3108099400997162, 0.3667577803134918, -0.3471667468547821, 0.42356541752815247, -0.030108483508229256, 0.03128887340426445, -0.0023564461153000593, -0.21269208192825317, -0.3690336048603058, -0.24213169515132904, 0.5139861702919006, -0.24612689018249512, -0.0413717...
I have a repeater control on an ASP.NET 2.0 web form. As I understanding it, all of the page's data-bound controls fire their binding events somewhere in between the `Page_Load` and the `Page_PreRender` events. However, my repeater's `ItemDataBound` event appears to be happening AFTER the `PreRender` event. How i...
[ -0.006388782523572445, -0.10092559456825256, 0.7868360280990601, 0.10946977138519287, -0.13395722210407257, -0.1689528226852417, 0.5493232011795044, -0.20818936824798584, -0.15485471487045288, -0.6368855237960815, 0.03900536149740219, 0.3902721405029297, -0.28625935316085815, 0.37742656469...
via the DataSourceID property) occurs later than the PreRender event. The behavior you are observing is by design. If this is not what you need you should explicitly databind your control - just call its DataBind method.
[ 0.08403291553258896, -0.5062792301177979, 0.2707541584968567, 0.33966580033302307, 0.1507975459098816, -0.5669683814048767, 0.3852979242801666, -0.14182433485984802, -0.15293742716312408, -0.5878779292106628, 0.12137056142091751, 0.3065994083881378, -0.32054638862609863, 0.3711930513381958...
> **Possible Duplicate:** > > [History of changes to a particular line of code in Subversion?](https://stackoverflow.com/questions/53629/history-of-changes-to-a-particular-line-of-code-in-subversion) Using SVN and/or Tortoise SVN (or any other SVN tool, really), is it possible to view the history for a specific lin...
[ 0.5225040316581726, -0.13269782066345215, 0.39199140667915344, -0.09204471856355667, 0.12211534380912781, 0.009484820999205112, 0.1750948578119278, 0.06564223766326904, -0.719109833240509, -0.5844482779502869, -0.019275732338428497, 0.47739073634147644, 0.09620111435651779, 0.1985649317502...
back a ways, and see if the line in question is present. If it is, I go back further. If it isn't, I go look at a more recent revision. Repeat until the revision where the change was made is found. Needless to say, this process is awkward at best, especially for particularly old files. Does anyone know of an automated...
[ 0.3751566410064697, 0.33146658539772034, 0.35756856203079224, 0.055402230471372604, 0.2486758977174759, -0.07199706137180328, 0.26888611912727356, 0.20064960420131683, -0.37567007541656494, -0.4717671871185303, -0.3237413763999939, 0.24813306331634521, 0.012678999453783035, 0.2916826903820...
I've recently taken over development on a SQL Server 2000 database that needs some help. We're planning on upgrading it to SQL Server 2005 soon. This database has no audit fields on the tables (CreatedBy, CreatedDate, etc.), no foreign keys, and terrible overall design. There are half a dozen programs that directly acc...
[ 0.5472730398178101, 0.33364665508270264, 0.18472251296043396, 0.05119720846414566, 0.19188107550144196, -0.436879426240921, 0.013195810839533806, 0.2916986346244812, -0.2459648847579956, -0.6345710754394531, 0.30000433325767517, 0.6032150387763977, -0.289009690284729, 0.203197181224823, ...