text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
I have the occasion to produce Drupal web sites using development, staging, and production environments. Keeping the code in sync between the sites is a simple task using subversion. What is not so simple is propagating changes to the database data (not just the schema) between installations. The reason for this will ...
[ 0.6981273293495178, 0.18323950469493866, 0.33847156167030334, 0.09357808530330658, 0.001236897544004023, -0.18914955854415894, 0.11062558740377426, 0.09726273268461227, -0.08212222903966904, -0.49576491117477417, 0.008668877184391022, 0.4839019179344177, -0.5239944458007812, 0.125991061329...
looking for is a way to sync these database changes so that if one developer makes CCK field changes on the staging server, they can be propagated down to local development environments for more work, and eventually up to the production environment. Is there a tool that will do this? What is your process for handling ...
[ 0.5135670900344849, -0.09859643131494522, -0.050151925534009933, 0.2761395573616028, 0.315900593996048, 0.19788576662540436, -0.19500041007995605, 0.03601222485303879, -0.21926693618297577, -0.6186326146125793, 0.26176923513412476, 0.5483852028846741, -0.293337881565094, -0.028843564912676...
which you can try to keep things in sync but, in short, unless it's in a file or gives you an option to export to one, you're going to be hurting. ( As an added bonus, exporting your views to a file is going to be a little faster than pulling it out of the DB every time its used. ) You mention Dev, Staging & Live serv...
[ 0.7913111448287964, -0.06349774450063705, 0.2594830393791199, 0.3185933232307434, 0.3530811369419098, -0.18857504427433014, 0.03029938042163849, -0.07674705237150192, -0.2664247453212738, -0.4936006963253021, -0.024980129674077034, 0.5948290228843689, -0.2880397439002991, -0.03201555460691...
are things that have been worked out in Dev & are being tested before moved to Live, you might have more success.
[ 0.9429367780685425, 0.07761829346418381, 0.14302730560302734, 0.4172968566417694, 0.08226469904184341, -0.19767166674137115, 0.5387976765632629, 0.10673237591981888, -0.2884884774684906, -0.5557442307472229, 0.20281676948070526, 0.4047922194004059, 0.2135663628578186, -0.01551898568868637,...
I've never forked a project before so I'm a little stumped as to how to proceed. I have a project that I use on my own that I release as a BSD licensed project (Project A). At work I want to use that code but with modifications specific to our company (Project B) but I want to be able to still update with features that...
[ 0.9688641428947449, 0.21643707156181335, -0.024747462943196297, -0.10802687704563141, -0.0725511685013771, -0.14413025975227356, -0.09144610166549683, 0.09231806546449661, -0.14355391263961792, -0.3601043224334717, 0.39725643396377563, 0.3054512143135071, -0.08180807530879974, 0.5272104144...
B? --- It is being split into two entities with my main repo on Google Code and then the company version in our own internal repo. My question is keeping everything sane as it comes time to upgrade from release to release but keeping custom modifications. See the section in previously mentioned [The Subversion Book d...
[ 0.7738417387008667, -0.05859455466270447, 0.21762250363826752, -0.2279599905014038, -0.22510237991809845, 0.07505463808774948, 0.04922837018966675, -0.261873334646225, -0.12833337485790253, -0.025429831817746162, -0.13977394998073578, 0.534902811050415, -0.33469751477241516, 0.210060596466...
Google Code) as the extenal dependency in your companie's code.
[ 0.23982307314872742, -0.10086488723754883, 0.4859888255596161, 0.2630156874656677, 0.11225053668022156, 0.15504063665866852, 0.2984878718852997, 0.24771994352340698, 0.008724634535610676, -0.7328024506568909, -0.3706226944923401, 0.4551578462123871, -0.29924148321151733, 0.0858917236328125...
I need to open a password protected shared folder on a network to gain access to an Access 97 database. How do I open the folder and pass in the password? found here <http://www.mredkj.com/vbnet/vbnetmapdrive.html> ``` Public Declare Function WNetAddConnection2 Lib "mpr.dll" Alias "WNetAddConnection2A" _ ( ByRef lpNet...
[ 0.04944351315498352, 0.08633220195770264, 0.4947015643119812, -0.14281508326530457, 0.08742546290159225, -0.05739544332027435, 0.34817567467689514, -0.41874170303344727, -0.09141847491264343, -0.7493428587913513, -0.19372738897800446, 0.5219182968139648, -0.26803791522979736, 0.24719360470...
Public dwScope As Integer Public dwType As Integer Public dwDisplayType As Integer Public dwUsage As Integer Public lpLocalName As String Public lpRemoteName As String Public lpComment As String Public lpProvider As String End Structure Public Const ForceDisc...
[ 0.11869996041059494, -0.15112796425819397, 0.5134854912757874, -0.013439701870083809, 0.1831343173980713, 0.16535374522209167, -0.09204775840044022, 0.09065505117177963, -0.20472733676433563, -0.5189968347549438, -0.27545368671417236, 0.8232628703117371, -0.2373705506324768, 0.281127482652...
&H1 Public Function MapDrive(ByVal DriveLetter As String, ByVal UNCPath As String) As Boolean Dim nr As NETRESOURCE Dim strUsername As String Dim strPassword As String nr = New NETRESOURCE nr.lpRemoteName = UNCPath nr.lpLocalName = DriveLetter & ":" strUsername...
[ -0.10632976144552231, -0.07836281508207321, 0.6102848649024963, -0.28090909123420715, 0.0017001155065372586, -0.19973880052566528, 0.10328851640224457, -0.21614056825637817, -0.1827857494354248, -0.41691961884498596, -0.560405433177948, 0.7519157528877258, -0.3509105443954468, -0.063997559...
strPassword = Nothing '(add parameters to pass this if necessary) nr.dwType = RESOURCETYPE_DISK Dim result As Integer result = WNetAddConnection2(nr, strPassword, strUsername, 0) If result = 0 Then Return True Else Return False End
[ -0.003878043033182621, -0.362583726644516, 0.5741472244262695, -0.2502719461917877, -0.04789745807647705, 0.10024583339691162, 0.4894368350505829, -0.5225824117660522, -0.3396703600883484, -0.3741190433502197, -0.36267706751823425, 0.5189052820205688, -0.06075412034988403, 0.29409688711166...
If End Function Public Function UnMapDrive(ByVal DriveLetter As String) As Boolean Dim rc As Integer rc = WNetCancelConnection2(DriveLetter & ":", 0, ForceDisconnect) If rc = 0 Then Return True Else Return False End If End Function ```
[ 0.07804211974143982, -0.27965787053108215, 0.5763788819313049, -0.2360246628522873, 0.14772231876850128, -0.03220631927251816, 0.3543960452079773, -0.37832027673721313, -0.11756474524736404, -0.12568062543869019, -0.1921490579843521, 0.7902421355247498, -0.32361936569213867, 0.525366902351...
**Problem** I've got a number of Dojo components on a page. When the user tries to tab from an input like component to a grid like component, I get a JavaScript "Can't move focus to control" error. The user base uses IE6. **Solution** The first element in the DojoX Grid layout cannot be hidden. If it is hidden,...
[ -0.12713569402694702, 0.006410104222595692, 0.3674405813217163, -0.10245309770107269, -0.09024398773908615, 0.023769056424498558, 0.379649817943573, -0.34024205803871155, -0.20516493916511536, -0.7127783894538879, 0.03628171235322952, 0.49796441197395325, -0.5916441679000854, -0.0646070539...
width: 2, > styles: "text-align: right;" >
[ -0.4070369601249695, -0.210080087184906, 0.10827577859163284, -0.28278470039367676, 0.16003736853599548, 0.2854606807231903, 0.045145049691200256, 0.41735056042671204, 0.04262244328856468, -0.5681602358818054, -0.14168499410152435, 0.7641976475715637, 0.18322692811489105, -0.24464680254459...
}), > { > field: "ele_id", > name: "Element ID", > styles: "text-align:right;", > width:5, > hidden:"true" > }, > { > field: "ele_nm", > name: "Element Name", >
[ -0.51789391040802, -0.07094566524028778, 0.36641472578048706, -0.08642103523015976, 0.5017646551132202, -0.05508140102028847, 0.11898241937160492, -0.6716609001159668, 0.12329921871423721, -0.4394753575325012, -0.32885733246803284, 0.5652694702148438, -0.24588944017887115, 0.02778970450162...
styles: "text-align:left;", > width:8 > } > ]; > > ``` **Solution** The first element in the DojoX Grid layout cannot be hidden. If it is hidden, you get a a JavaScript "Can't move focus to control" error. To fix this, I added a row # that displays. See below. > ``` > var gridLayout = [ > ...
[ 0.04564153030514717, -0.281170129776001, 0.45793381333351135, -0.06902851164340973, -0.019688917323946953, -0.23608125746250153, 0.24197828769683838, -0.42468684911727905, -0.15021835267543793, -0.7919507026672363, -0.09125024080276489, 0.4791029393672943, -0.4157085418701172, -0.081881597...
width: 2, > styles: "text-align: right;" > }), >
[ -0.31011083722114563, -0.2084476500749588, 0.44186246395111084, -0.1291358917951584, 0.11491367220878601, 0.22415120899677277, 0.05265038087964058, -0.09775696694850922, -0.04679698497056961, -0.656220018863678, -0.19879864156246185, 0.8211992979049683, 0.08945780247449875, -0.037360239773...
{ > field: "ele_id", > name: "Element ID", > styles: "text-align:right;", > width:5, > hidden:"true" > }, > { > field: "ele_nm", > name: "Element Name", > styles: "text-align:left;", > width:8
[ -0.5221104621887207, -0.07998122274875641, 0.13992436230182648, 0.007097998168319464, 0.2815932035446167, -0.022444985806941986, 0.07647838443517685, -0.6591470241546631, 0.06694934517145157, -0.4443284273147583, -0.19723768532276154, 0.5364432334899902, -0.2083272486925125, -0.10451435297...
> } > ]; > > ```
[ -0.027591701596975327, 0.23013333976268768, 0.038660403341054916, -0.2091386318206787, 0.28263193368911743, -0.011670481413602829, 0.3612772822380066, 0.0927586778998375, 0.22405774891376495, -0.621374785900116, -0.3173002600669861, 0.6915873885154724, -0.35586386919021606, 0.0829944387078...
I am looking for a Visual Studio add-in that would analyze the text around the cursor position and navigate to the corresponding class definition. For example I have this XML file that is currently open: ``` <object id="abc" type="MyProject.Foo.Bar, MyProject"/> ``` If I put the cursor somewhere between the double ...
[ 0.21419134736061096, 0.2663200795650482, 0.34013140201568604, -0.16697287559509277, 0.20361682772636414, 0.029336165636777878, 0.07894526422023773, -0.12223181873559952, 0.04927317425608635, -0.7402260303497314, -0.026698097586631775, 0.4403967559337616, -0.2056688815355301, 0.073890522122...
add-in doesn't exist I would greatly appreciate some pointers that could help me writing one. Well you could use the '**[Code Definition Window](http://msdn.microsoft.com/en-us/library/f5yx24a6(VS.80).aspx)**' that comes with the VS2008 IDE. When you place your cursor, the Code Def window dynamically updates with the s...
[ -0.1745971292257309, -0.34325212240219116, 0.2773553431034088, 0.14905565977096558, -0.18848586082458496, -0.1104709655046463, 0.42396652698516846, -0.416659414768219, -0.016554689034819603, -0.5362052917480469, -0.050843894481658936, 0.6272769570350647, -0.2599320113658905, -0.26255702972...
I am working on an ASP.Net application and I want users to be able to take a picture with their local webcam and then upload it to the server. I can, of course, rely on users doing this manually via their locally installed software, save the image as a file and do a normal file upload. However, what I really want to do...
[ 0.8109751343727112, -0.06253189593553543, 0.4106577932834625, 0.05366673320531845, 0.019008545204997063, -0.1512560397386551, 0.021383361890912056, 0.06481517851352692, -0.25104567408561707, -0.7421762347221375, 0.32668572664260864, 0.38376256823539734, -0.22714874148368835, -0.09802947193...
initially intended for an Intranet app so I can have control of the client's environemnt, including stipulating the browser etc, which means I *can* use an ActiveX control if I have to. However, it would be nice if I could write this in a generic way so it could be used in an internet app generally (happy to stipulate ...
[ 0.19921818375587463, -0.16389167308807373, 0.44065389037132263, -0.04011547937989235, -0.1607673168182373, -0.2712283134460449, -0.10776893049478531, 0.036095086485147476, -0.26567214727401733, -0.6580790877342224, 0.005554286763072014, 0.77032870054245, -0.6826336979866028, -0.08662381768...
all of them has such capability.
[ 0.3843894600868225, 0.2682041525840759, 0.026189684867858887, 0.3141840100288391, 0.010031758807599545, 0.0063983420841395855, 0.43218302726745605, 0.008642790839076042, -0.23413634300231934, -0.4621562659740448, -0.049474429339170456, 0.4459575414657593, 0.003182792803272605, 0.1609833687...
For some school groupwork, I'm making a Generic Pizza Delivery Everything Management System, and got stumped on a problem during data modelling that I can't figure out without using at least several layers of ugly. The restaurant keeps stock of ingredients and beverages/snacks/etc. (I'll refer to these as "drinks"). D...
[ 0.867695689201355, 0.4413246512413025, 0.020032785832881927, -0.08076203614473343, 0.16268260776996613, 0.5426155924797058, 0.29550647735595703, 0.32593420147895813, -0.10189998149871826, -0.4469594359397888, 0.3736414313316345, 0.39142364263534546, 0.2934136390686035, -0.20586058497428894...
have the need for both a "stockable" generalisation between ingredients and drinks, and a "sellable" (or "menu item") generalisation between drinks and recipes; and I can't really recall ERD modelling allowing for multiple generalisations. (Currently I just went with the menu item one and decided to let the stockable ...
[ 0.3643128573894501, 0.3702968955039978, 0.2258453667163849, -0.1633336991071701, 0.015506481751799583, 0.16037189960479736, 0.008204837329685688, 0.06294883042573929, -0.19484922289848328, -0.3152652084827423, -0.096499502658844, 0.4518074095249176, -0.15274569392204285, -0.031002048403024...
(or as little as possible) in application code? For more fun if someone likes to do this kind of thing as a mental exercise / puzzle, dropped features involve: * drinks coming in categories with different tax rates - think soft drinks and liquor being taxed differently; dishes also have a tax rate, but don't belong i...
[ 0.8949372172355652, 0.17976094782352448, -0.010275986045598984, 0.3534259796142578, 0.028909599408507347, 0.19763906300067902, 0.020226746797561646, 0.008423957042396069, -0.27110984921455383, -0.17957964539527893, 0.07804950326681137, 0.37382468581199646, -0.006823426578193903, -0.1748137...
you have a table of ingredients or stockable items, which includes drinks and other ingredients that might be listed in their own right. None of these can be ordered directly. You then have a table of menu items which are all a collection of ingredients / stockable items. A menu item collection may have only a single ...
[ 0.45259734988212585, 0.08870396763086319, 0.09329487383365631, 0.30428528785705566, 0.08033768832683563, 0.27464988827705383, -0.13953852653503418, 0.13222704827785492, -0.43944093585014343, -0.5630024075508118, -0.4093662202358246, 0.30380138754844666, -0.057084862142801285, 0.02877064794...
I have a structure which I create a custom constructor to initialize the members to 0's. I've seen in older compilers that when in release mode, without doing a memset to 0, the values are not initialized. I now want to use this structure in a union, but get errors because it has a non-trivial constructor. So, questi...
[ 0.2822808027267456, 0.1596226841211319, -0.30407196283340454, 0.089458167552948, -0.1412612348794937, -0.1753777712583542, 0.4327760934829712, -0.3708891272544861, -0.20759785175323486, -0.41002610325813293, -0.08913157880306244, 0.19231949746608734, -0.521739661693573, 0.2628421485424042,...
the base structure, how can a union be implemented to contain that element and ensure a 0 initialized base element? Question 1: Default constructors do initialize POD members to 0 according to the C++ standard. See the quoted text below. Question 2: If a constructor must be specified in a base class, then that class c...
[ -0.04297478869557381, 0.04516927897930145, -0.10441923886537552, -0.09429778158664703, 0.22544395923614502, 0.18652668595314026, 0.0388137586414814, -0.32433000206947327, 0.035410165786743164, -0.4168502688407898, -0.34191685914993286, 0.326846718788147, -0.4729727506637573, 0.013915129937...
set of initializations of the class that would be performed by a user-written default constructor for that class with an empty mem-initializer-list (12.6.2) and an empty function body. From C++03, 8.5 Initializers, pg 145 To default-initialize an object of type T means: * if T is a non-POD class type (clause 9), t...
[ -0.22436723113059998, -0.2818381190299988, -0.015411879867315292, -0.3016270101070404, 0.1363736242055893, 0.3657541573047638, 0.12849675118923187, -0.19203513860702515, -0.008547167293727398, -0.373382568359375, -0.4799875319004059, 0.44834744930267334, -0.5258545875549316, -0.04359318688...
of 0 (zero) converted to T; * *if T is a non-union class type, each non static data member and each base-class subobject is zero-initialized*; * ***if T is a union type, the object’s first named data member is zero-initialized;*** * if T is an array type, each element is zero-initialized; * if T is a reference type, no...
[ -0.49589550495147705, -0.31770533323287964, 0.05350782349705696, -0.06017317250370979, 0.03234745189547539, 0.054456111043691635, 0.14526425302028656, -0.14338327944278717, 0.05612332373857498, -0.2618882358074188, -0.5128738880157471, 0.5127554535865784, -0.5620208382606506, 0.04632762074...
constructors, and * for all the nonstatic data members of its class that are of class type (or array thereof), each such class has a trivial constructor From C++03, 9.5 Unions, pg 162 A union can have member functions (including constructors and destructors), but not virtual (10.3) functions. A union shall not have ...
[ 0.061077747493982315, 0.16388846933841705, 0.22540943324565887, 0.3256475031375885, 0.006361729931086302, 0.16163042187690735, 0.06217784807085991, -0.17393146455287933, -0.13184338808059692, -0.08698835968971252, -0.2759120464324951, 0.42754051089286804, -0.5030878186225891, 0.42742201685...
such objects
[ 0.2912173867225647, 0.4581126868724823, -0.05601666122674942, 0.39238643646240234, -0.17342804372310638, 0.027119621634483337, 0.2090517282485962, 0.17338915169239044, -0.1981072574853897, -0.3342137336730957, -0.3505919575691223, 0.010069701820611954, -0.20796431601047516, 0.3306799232959...
How would I set the "overwrite as needed" setting on Event logs other than Application/Security/System? Specifically I'd like to apply this to the Powershell and Windows Powershell Logs, in addition to any other future logs that may be added. This needs to be applied to both server 2003 & 2008. I don't believe their is...
[ 0.09115865081548691, 0.18270480632781982, 0.3946886360645294, -0.09836861491203308, 0.13484162092208862, -0.23040391504764557, 0.23544740676879883, -0.12390050292015076, -0.21808817982673645, -0.6476253271102905, -0.054143521934747696, 0.93820720911026, -0.321142315864563, 0.07569544762372...
in the event log GUI, and set all your other systems to be the same. You may need to restart the system for the changes to go into effect.
[ 0.24576173722743988, -0.3777264952659607, 0.3964225947856903, 0.17572663724422455, 0.39443716406822205, -0.3570665717124939, 0.28450140357017517, 0.14723026752471924, -0.2894405424594879, -0.7329866290092468, -0.3419734239578247, 0.9850398898124695, -0.19325916469097137, -0.199764907360076...
I'm adding some lazy initialization logic to a const method, which makes the method in fact not const. Is there a way for me to do this without having to remove the "const" from the public interface? ``` int MyClass::GetSomeInt() const { // lazy logic if (m_bFirstTime) { m_bFirstTime = false; ...
[ -0.27191683650016785, -0.1817617267370224, 0.3086231052875519, -0.05296963080763817, 0.0972280278801918, -0.10219793021678925, 0.484347939491272, -0.29096168279647827, -0.051191188395023346, -0.6716771125793457, -0.11594966053962708, 0.8461396098136902, -0.42203453183174133, 0.310689717531...
bool m_bFirstTime; }; ``` ...but this is also very often an indication of a design flaw. So beware.
[ 0.24509917199611664, 0.2423373907804489, 0.08778766542673111, -0.2985638678073883, 0.11573634296655655, -0.646414577960968, 0.7650737762451172, 0.2966988980770111, -0.06906576454639435, -0.5132220387458801, -0.3148593604564667, 0.7303398847579956, -0.46938902139663696, 0.22384527325630188,...
I am using cocos2d-iphone to place Sprites onto a Layer to setup a game playfield. At certain points in the game, certain Sprites need to be removed based upon game conditions. What I would like to do is setup an array of Sprite pointers, but I have two questions: What's the best way to place Sprite pointers in an arr...
[ 0.08375619351863861, 0.1564013659954071, 0.3034060299396515, 0.11038653552532196, 0.20367681980133057, 0.07251441478729248, 0.23185427486896515, -0.12261272221803665, -0.26208263635635376, -0.3580574095249176, -0.08135312795639038, 0.3914480209350586, -0.24568048119544983, 0.05733297765254...
from `CocosNode`, so you should be able to call `spritePointer.parent.remove(spritePointer)`
[ 0.14341987669467926, -0.13128885626792908, -0.007427961565554142, 0.18233826756477356, -0.17288437485694885, -0.4627167880535126, 0.1599249392747879, 0.18794558942317963, -0.25806790590286255, -0.1308831423521042, -0.21083271503448486, -0.03627973049879074, -0.4486505389213562, 0.354011118...
I have a huge number of mail archives that I want to de-duplicate and sort out. The archives are either in mbox format or contain a single mail message. To add a bit of complication, some of the files have windows EOL sequences, and some have the unix EOL. Using C#. how do I read an archive and split it into its ind...
[ 0.6417174935340881, 0.3343185484409332, -0.10063735395669937, -0.0016719757113605738, 0.07225334644317627, -0.049307502806186676, -0.055899251252412796, 0.08620550483465195, -0.4359312355518341, -0.6915056109428406, 0.013149899430572987, 0.26328256726264954, -0.34828150272369385, 0.1400465...
that file for C# - there aren't that many Unix users who also use C#. What I would do would be either to: 1. Read the Python code, and then port it to C# 2. Find the description of the mbox format online. As it is a Unix system, chances are that the format is just a plain text file, which should be easy enough to par...
[ 0.3979927897453308, 0.2403491586446762, 0.016925545409321785, 0.13635489344596863, 0.0740947276353836, -0.26201528310775757, -0.09504298865795135, 0.4835067689418793, -0.47026222944259644, -0.3465932607650757, -0.005854721646755934, 0.7146959900856018, -0.4105954170227051, -0.0859534963965...
Are there any libraries or guides for how to read and parse binary data in C? I am looking at some functionality that will receive TCP packets on a network socket and then parse that binary data according to a specification, turning the information into a more useable form by the code. Are there any libraries out the...
[ 0.6387246251106262, 0.17423665523529053, -0.06579926609992981, 0.3499467968940735, -0.1250704526901245, -0.16545060276985168, -0.056256942451000214, 0.1684408336877823, -0.2052474319934845, -0.635586142539978, 0.2002130001783371, 0.6687758564949036, -0.33039942383766174, -0.034516096115112...
expected, as in his/her example, **then** you test that struct for validity. You have to test for max/min values, termination sequences, etc. What ever platform you are on you must read [Unix Network Programming, Volume 1: The Sockets Networking API](https://rads.stackoverflow.com/amzn/click/com/0131411551). Buy it, b...
[ 0.5676727890968323, -0.23274415731430054, -0.13722345232963562, 0.23449184000492096, 0.2560424506664276, -0.009542152285575867, -0.23532618582248688, 0.14612199366092682, -0.16923698782920837, -0.3193323314189911, 0.07612239569425583, 0.950050413608551, 0.2523910403251648, 0.06668670475482...
In my WPF app, I call a WCF service to retrieve my business object. I take that business object and bind it to a grid. I want to now apply the INotifyPropertyChanged attribute, but am unsure if it would work from WCF. My ultimate goal is to be able to edit items in a grid, click update and push those back through a WCF...
[ 0.19345296919345856, -0.2890917956829071, 0.867365300655365, -0.0024242920335382223, -0.10383794456720352, 0.028751956298947334, 0.004554619546979666, -0.41048917174339294, -0.2069152295589447, -0.8462100625038147, -0.12416519969701767, 0.4763512909412384, -0.29999905824661255, 0.116872109...
(Short Form: /edb)
[ -0.03142952546477318, 0.26153242588043213, -0.09599544107913971, -0.4532927870750427, -0.45202502608299255, 0.9763588905334473, 0.5841801762580872, 0.4201450049877167, -0.08698005229234695, -0.5466873049736023, -0.1287764459848404, 0.05700571462512016, 0.15504559874534607, -0.2845907509326...
I was reading about refactoring a large slow SQL Query over [here](https://stackoverflow.com/questions/320919/refactoring-extreme-sql-queries), and the current highest response is from Mitch Wheat, who wants to make sure the query uses indexes for the major selects, and mentions: > First thing I would do is check to m...
[ 0.16191792488098145, 0.19822105765342712, 0.12137116491794586, 0.0771300345659256, -0.25438424944877625, -0.1329396814107895, 0.21599620580673218, 0.10861193388700485, -0.29044535756111145, -0.6109561324119568, -0.057364095002412796, 0.216040700674057, 0.08210860937833786, 0.23518449068069...
I know to create an index on the columns that will be queried by, there's a varchar CaseID and a varchar CustName. However, I set this system up months ago and left the client operating it, and I believe the indexes should grow as data is entered and I believe everything is still working nicely. I'm worried though tha...
[ 0.23252248764038086, 0.1853007823228836, 0.7791547179222107, 0.14794664084911346, 0.1663113385438919, 0.09316201508045197, 0.3330659568309784, 0.11825330555438995, -0.41127827763557434, -0.4894942343235016, 0.42958611249923706, 0.5621182918548584, -0.10422070324420929, 0.15973296761512756,...
database might require. Is it neccessary to rebuild indexes? Can I trust the MySQL backend to keep going so long as no one messes with it and the data stays under a few gigabytes? There is no need to 'rebuild' an index. They are always kept up-to-date. Maybe he was referring to rebuilding the table. Depending on your u...
[ 0.25507330894470215, 0.18666590750217438, -0.008515700697898865, 0.445222944021225, 0.019843028858304024, -0.21374189853668213, 0.36430615186691284, -0.08287370949983597, -0.5920237898826599, -0.7417780160903931, 0.20996364951133728, 0.6078540682792664, -0.06296141445636749, 0.194485113024...
is recommended to run 'OPTIMIZE TABLE' with certain usage patterns. See the MySQL docs on [OPTIMIZE TABLE](http://dev.mysql.com/doc/refman/5.1/en/optimize-table.html) for some good info on both MyISAM and InnoDB. I'm not as familiar with MyISAM intricacies, but with InnoDB it is true that statistics can get out of dat...
[ -0.11344756931066513, -0.109586700797081, 0.45379772782325745, 0.2828565537929535, 0.17092223465442657, 0.024795331060886383, -0.05926947668194771, 0.2022726982831955, -0.3606100380420685, -0.7903962135314941, 0.13644073903560638, 0.48853105306625366, -0.061959512531757355, -0.431607842445...
don't need to actively do anything to keep your indexes performing well. I'm not as sure with MyISAM, I think it's more common to need to optimize those tables regularly.
[ 0.39166396856307983, 0.10261130332946777, 0.39901793003082275, 0.2657219469547272, 0.021211571991443634, -0.07009068131446838, -0.05710257217288017, 0.2620559334754944, -0.45508432388305664, -0.6830570697784424, 0.5082037448883057, 0.5052089095115662, 0.21686024963855743, -0.30032420158386...
I have created a console application that calls a method on a webservice. I have accessed the webservice and get the response back from the console application that I expect. When I create a separate test assembly and create some nunit tests which call the same method in the same way i get the following exception:- Sy...
[ 0.2678653597831726, 0.19576720893383026, 0.28190162777900696, -0.05864761397242546, -0.08593268692493439, -0.052294373512268066, 0.3780768811702728, -0.2390030324459076, -0.09931225329637527, -0.5739854574203491, -0.07850483804941177, 0.48172616958618164, -0.21005171537399292, 0.2748459577...
make sure you add an app.config file to the unit test project and add the same settings you have in the console application's config file to it. Good luck!
[ 0.31239134073257446, 0.06206100806593895, 0.2829427719116211, 0.32782620191574097, 0.30528584122657776, -0.18757401406764984, 0.2661178410053253, 0.27060890197753906, -0.10229305177927017, -0.8676496148109436, -0.12623851001262665, 0.9197162389755249, 0.13408157229423523, -0.20811580121517...
Is there any way to configure SQL Server 2000 Standard Edition (32 bit) to use more than 2Gb of memory on a server running Windows 2003 (64 bit)? Thanks for any help. 32 bit versions of SQL Server with Advanced Windowing Extensions (AWE) disabled can only access 2 GB of memory, (or 3 GB if the /3gb switch is used in b...
[ -0.37527066469192505, 0.20964907109737396, 0.11282330006361008, 0.4301430284976959, -0.14948931336402893, -0.20531883835792542, 0.18255160748958588, 0.13567966222763062, -0.35120972990989685, -0.5456975102424622, 0.13850408792495728, 0.7231945395469666, -0.3051989674568176, -0.159951120615...
cannot turn AWE on (it's an Enterprise-only feature), so you're restricted to the 2 GB limit. Your best bet is to see about upgrading to SQL Server 2005 Standard (32 or 64 bit - 32 bit Standard can use AWE), or the much pricier SQL Server 2000 Enterprise Edition. As SQL Server 2000 has reached End of Life, my suggesti...
[ -0.055752597749233246, 0.17554782330989838, 0.47195732593536377, 0.16605840623378754, -0.03232043236494064, -0.39062538743019104, 0.3286477029323578, 0.035479314625263214, 0.1521822065114975, -0.27724602818489075, 0.20025955140590668, 0.5696626305580139, 0.03667488321661949, 0.127746179699...
I would like to setup a portal for my development team to share the ideas, reports, documents, images, etc. Something similar to MS SharePoint but free/open source. Can you please share what do you guys use for the same? There is a lot of excellent material available on the web once you get in the groove, but the link...
[ 0.18233008682727814, 0.02058146707713604, -0.15087659657001495, 0.4585822820663452, 0.08265188336372375, -0.20146407186985016, 0.11574030667543411, -0.13374048471450806, -0.4425566494464874, -0.622373640537262, 0.013281178660690784, 0.5173630118370056, -0.06359729915857315, -0.165527030825...
my company started recently to use Git for source version control, and due to the incompetence of the coders - that's me and my boss :-P - we have a really nice spaghetti of files being overwritten here and there. Is there a way to mark certain files as 'untouchable' so if when updating a branch from another either ...
[ 0.5988890528678894, 0.25043413043022156, 0.2007957249879837, 0.2173442840576172, 0.24528105556964874, -0.37781399488449097, 0.36816301941871643, 0.2651800215244293, -0.3043586015701294, -0.34539180994033813, -0.05449531227350235, 0.4914970099925995, -0.15325647592544556, 0.3448047637939453...
files getting munged, that's easy: Never pull/merge/rebase with uncommitted changes. Always commit before bringing in any other code.
[ 0.09190213680267334, -0.14051958918571472, 0.12656186521053314, 0.2827540338039398, 0.19501608610153198, -0.07906121015548706, 0.2497854232788086, 0.08661551028490067, -0.6102395057678223, -0.5010207891464233, -0.19612684845924377, 0.9859375357627869, -0.2750711143016815, 0.029780521988868...
This is probably a simple question, and I'm slightly embarrassed to ask it, but I've been working with this chunk of JavaScript ad code for a while and it's bothered me that it's never really made sense to me and is probably out dated now with modern browsers. My question is, do we need to check for browser types still...
[ 0.4597402811050415, 0.19959037005901337, 0.5133877396583557, -0.11162226647138596, -0.04464567080140114, -0.25934702157974243, 0.35569682717323303, -0.23088470101356506, -0.17198003828525543, -0.722295880317688, -0.2083931863307953, 0.3540424108505249, -0.47190824151039124, 0.0947042629122...
src="" border="0" alt="" /></a>'); } </script> ``` I'd like to clarify that I'm actually calling someone some ad code, so while I could check for browser types, that would really be the responsibility of the keeper of the code. I'd love it if I could get this into jQuery - but I'm having trouble with the call (see ...
[ 0.5153961181640625, 0.5277048349380493, 0.587130069732666, -0.12494919449090958, -0.10796552151441574, -0.43809592723846436, 0.19761568307876587, -0.09740956872701645, -0.35792648792266846, -0.32771265506744385, -0.21824447810649872, 0.7600142955780029, -0.06740012764930725, 0.004061313811...
document contains any images, and the browser's UserAgent string (an identifier) contains "Mozilla/2.", * OR that the UserAgent string contains "WebTV" in those cases, it outputs an empty link and image tag.
[ 0.35793837904930115, 0.028351182118058205, 0.7718604207038879, 0.27423951029777527, 0.1514045000076294, -0.5453871488571167, 0.05154181271791458, 0.2907963693141937, -0.39660099148750305, -0.6381140351295471, -0.6979458928108215, 0.3072189688682556, -0.4076369106769562, 0.24897833168506622...
I am trying to debug an asp.net web form that requires a value from the querystring. I just want to debug that page without having to go through the entire process to create the querystring value and sending the request. Any suggestions on how to attach a querystring value in VS2008 when I start the debugging process....
[ 0.35419878363609314, 0.09037882089614868, 0.279899537563324, -0.02628367766737938, -0.3435367941856384, -0.2811534106731415, 0.32687443494796753, 0.18546611070632935, -0.2339504361152649, -0.810060441493988, -0.0709565207362175, 0.46638715267181396, -0.1674792468547821, 0.16920875012874603...
I'm running an xcopy command in a batch script which copies a file to a shared drive on another workstation; however the workstation requires a login before connecting to the share. Is there a way to script the login/connect into the batch file? thanks in advance You can use the "net use x:\servername\sharename /u:us...
[ 0.6764564514160156, 0.19258040189743042, 0.25363293290138245, 0.10413827002048492, 0.2674333155155182, -0.27145135402679443, 0.04717094823718071, 0.4509897828102112, 0.11303909868001938, -1.1216256618499756, 0.07481617480516434, 0.43743181228637695, -0.26052743196487427, 0.3212738633155823...
Anyone know of a free xls to text converter that can be run from the unix command line? There is also the package [catdoc](http://packages.ubuntu.com/intrepid/catdoc) (Ubuntu link) that includes a xls2csv utility.
[ 0.2742686867713928, -0.24556998908519745, 0.04213396832346916, 0.04565059021115303, -0.25014394521713257, -0.22247852385044098, 0.23434263467788696, 0.546444833278656, -0.1259145885705948, -0.5178120732307434, -0.31036946177482605, 0.6927388310432434, -0.386393278837204, -0.050987280905246...
I'm building a distributed C++ application that needs to do lots of serialization and deserialization of simple data structures that's being passed between different processes and computers. I'm not interested in serializing complex class hierarchies, but more of sending structures with a few simple members such as nu...
[ 0.2468920350074768, 0.22715653479099274, 0.029096106067299843, 0.1452891230583191, -0.0703829750418663, -0.10295460373163223, -0.05061110854148865, 0.16128654778003693, -0.2528170049190521, -0.692111611366272, 0.0597396083176136, 0.06520730257034302, -0.4890552759170532, 0.3606463074684143...
looking a bit at protocol buffers and boost.serialize. According to the documents protocol buffers seems to care much about performance. Boost seems somewhat more lightweight in the sense that you don't have an external language for specifying the data format which I find quite convenient for this particular project. ...
[ 0.11015789210796356, 0.12285954505205154, 0.1433313935995102, 0.3114417493343353, -0.24176307022571564, -0.20370346307754517, 0.0021802238188683987, 0.03894533962011337, -0.30117252469062805, -0.5112651586532593, 0.1468673199415207, 0.6794791221618652, 0.027880368754267693, -0.349765330553...
great performance, and take care of issues like endianness and backwards compatibility. To make it even more attractive, serialized data is language-independent thanks to numerous language implementations.
[ -0.3039873540401459, 0.039548613131046295, 0.08651141077280045, 0.41528192162513733, 0.015507077798247337, -0.29977938532829285, -0.07284963876008987, -0.0530281625688076, -0.14003397524356842, -0.78838050365448, -0.45743775367736816, 0.49672260880470276, 0.1487460881471634, -0.29667031764...
I am dynamically creating a table which I want to have clickable rows. When the user clicks on one of the rows I want to redirect to a page specific to the item of that row. My question is how on the server side can I wire the "onclick" event to a routine that will then allow me to build a url based on some of the data...
[ 0.14127422869205475, -0.16341084241867065, 0.5726574063301086, -0.02701513282954693, -0.18747596442699432, -0.02304881438612938, 0.10755107551813126, 0.04529748484492302, -0.3636030852794647, -0.63504558801651, -0.026118755340576172, 0.5119034051895142, -0.3478703498840332, 0.3658509254455...
sounds like your actual goal is simply to display/edit the row on another page. If this is the case, you could simply add a javascript event handler to the table row when you create it. ``` <tr onclick="window.location='DetailPage.aspx?id=<%= IdFromDb %>'"> <!-- etc......--> </tr> ``` If you use a GridView to cr...
[ -0.01735394261777401, -0.08998941630125046, 0.6290006041526794, -0.1668197363615036, 0.1153717190027237, 0.14473500847816467, 0.0022361362352967262, -0.3679642975330353, -0.21644717454910278, -0.9413291811943054, -0.3521328270435333, 0.6042340993881226, -0.33213359117507935, 0.076887711882...
e.Row.Attributes.Add("onclick", OnClickCmd); } } ``` Unless you need to do something in the postback, there is no need to redirect. Further, you could just create a hyperlink when you create the row eliminating the need for javascript, you don't need the full row clicking experience.
[ -0.08792173117399216, 0.11040306091308594, 0.44544151425361633, -0.15302254259586334, -0.12691718339920044, -0.21477381885051727, -0.0023994154762476683, 0.1746848225593567, -0.0736694410443306, -0.8325609564781189, -0.06951849907636642, 0.6694512963294983, -0.466478168964386, 0.2259025424...
Whenever I try to access a NTLM authenticated intranet site, Safari takes forever to process and then comes back with "The sever is unavailable" or if allowed by the site, loads with out authenticating. I can access these same sites with no problems in both Firefox and Internet Explorer. The sites are hosted on IIS6 an...
[ 0.11560142040252686, 0.070876345038414, 0.5673381686210632, 0.09346958994865417, -0.20141370594501495, -0.46136951446533203, 0.5417373776435852, -0.07248833030462265, -0.3320913314819336, -0.6455461978912354, -0.3360213339328766, 0.5740704536437988, -0.2856675982475281, 0.1508534997701645,...
page loading reasonably fast) if I am using the FQDN for the site (i.e. <http://mysite> doesn't work, but <http://mysite.domain.prv> will work). Unfortunately, this will not work due to other constraints on the project. Does anyone know why the FQDN would work but the shorter name will not? Is this something that can ...
[ -0.15661664307117462, -0.08099966496229172, 0.6509990096092224, 0.29263490438461304, -0.2979470491409302, -0.13288868963718414, 0.41424626111984253, 0.002547308336943388, -0.5491048097610474, -0.7076564431190491, -0.27783268690109253, 0.24303358793258667, -0.6707667112350464, 0.14998704195...
and the sever. When attempting to access the intranet site by FQDN these three packets were the same but were then followed by a HTTP GET request, which then successfully loaded the page. Because Safari is connecting to the correct IP address, I find it hard to believe that Safari just doesn't support NetBIOS/WINS na...
[ 0.10370945185422897, -0.0006826170720160007, 0.505258321762085, 0.2222023904323578, -0.3268197476863861, -0.30875977873802185, 0.3959777355194092, -0.12366960197687149, -0.498713880777359, -0.43168649077415466, -0.1373862624168396, 0.4069673717021942, -0.16778410971164703, 0.05119063705205...
accessible through JMX. See the JavaDoc for: [javax.management.j2ee.statistics.EJBStats](http://java.sun.com/j2ee/1.4/docs/api/javax/management/j2ee/statistics/EJBStats.html "javax.management.j2ee.statistics.EJBStats") The stats will include the number of invocations and total elapsed execution time, and average execut...
[ 0.2745809555053711, -0.3374774158000946, 0.1215883269906044, 0.38592788577079773, -0.17732428014278412, -0.12014184147119522, 0.42379191517829895, -0.07934903353452682, -0.393274188041687, -0.5605458617210388, -0.09828421473503113, 0.4217727780342102, -0.09984425455331802, -0.7608765959739...
Is there a good equivalent implementation of `strptime()` available for Windows? Unfortunately, this POSIX function does not appear to be available. [Open Group description of strptime](http://www.opengroup.org/onlinepubs/009695399/functions/strptime.html) - summary: it converts a text string such as `"MM-DD-YYYY HH:M...
[ 0.20193861424922943, -0.17477406561374664, 0.8220197558403015, -0.024752210825681686, 0.13666526973247528, -0.1462734490633011, 0.09713765978813171, -0.3134509027004242, -0.30395737290382385, -0.5432203412055969, -0.34037545323371887, 0.5710762739181519, -0.41571107506752014, -0.0987851843...
I can't seem to get a custom action working. I might be doing this wrong. Here's what I'm trying to do: I'd like to run a custom action in my application install (Visual Studio Installer project) that runs an executable. The executable simply does some system.io filecopy tasks, and I've confirmed that the executable w...
[ 0.5930505394935608, -0.23967163264751434, 0.24548237025737762, -0.13783901929855347, -0.12124701589345932, 0.01641172729432583, 0.46127334237098694, -0.3689572215080261, -0.37959444522857666, -0.5408443212509155, -0.03898349031805992, 0.8462877869606018, -0.4694695770740509, -0.22196842730...
I added a line to write to the windows log. Looked in the Windows log after running the installer again and it looked like it didn't run. Added a debug.break to the exe code Unisntalled/reinstalled my installer and nothing happened. I finally sat and watched the processes and confirmed the exe never gets executed. Any...
[ 0.5651723742485046, -0.07685425132513046, 0.4494859576225281, -0.13225160539150238, -0.31951281428337097, 0.03690109774470329, 0.6658537983894348, 0.1769174486398697, -0.2329855114221573, -0.43313995003700256, -0.16238640248775482, 0.6639086008071899, -0.3730749189853668, -0.10084651410579...
you posted but I don't know what. (by the way this is a console application) I added a reference to the System.Configuration.Install.dll and here is my code: ``` Imports System.ComponentModel Imports System.Configuration.Install _ Public Class ApplicationInstaller Inherits Installer Public Overl...
[ 0.3222065567970276, -0.10967551171779633, 0.2462979555130005, -0.059993255883455276, -0.14688383042812347, -0.06341426074504852, 0.4508959650993347, -0.06422968208789825, -0.3224479854106903, -0.6448789834976196, 0.06007017195224762, 0.515998899936676, -0.5199406147003174, 0.35949483513832...
Public Overloads Overrides Sub Install(ByVal stateSaver As IDictionary) ' Do some work on install End Sub Public Overloads Overrides Sub Uninstall(ByVal savedState As IDictionary) ' Do some work on uninstall End Sub End Class ``` --- I did not call that. I've never...
[ 0.113139308989048, 0.004299350082874298, 0.15595170855522156, -0.21410365402698517, -0.05757344514131546, -0.19179779291152954, 0.6599389910697937, -0.14999079704284668, -0.16667400300502777, -0.4420236647129059, -0.36329203844070435, 0.5446387529373169, -0.5054494738578796, 0.296921908855...
something very rookie here. Per your instructions, I've added the code that I have pasted below in the exe I want to run during my install. I added the exe to my application folder, then added it to the Commit custom action. Now here is the code I now have in the source of my exe that I'm trying to run: ``` _ P...
[ 0.14849625527858734, 0.03776521980762482, 0.2504841983318329, -0.04580555483698845, 0.2311355322599411, -0.0987115204334259, 0.3574153780937195, -0.05734137073159218, -0.09353221207857132, -0.6889672875404358, -0.21814274787902832, 0.7552935481071472, -0.26387226581573486, 0.10826253145933...
' Do some work on commit The_Sub_I_Have_my_codein() MyBase.Commit(savedState) End Sub Public Overloads Overrides Sub Install(ByVal stateSaver As IDictionary) ' Do some work on install End Sub Public Overloads Overrides Sub Uninstall(ByVal savedState A...
[ 0.2295897752046585, 0.09908517450094223, 0.2565286457538605, -0.30444440245628357, 0.1265915036201477, -0.0033092498779296875, 0.7923652529716492, -0.4706821143627167, -0.11051321774721146, -0.677023708820343, -0.47234275937080383, 0.39266592264175415, -0.3771068751811981, 0.26638254523277...
' Do some work on uninstall End Sub End Class ``` --- Hmmm... In the exe's Project Properties I clicked "Sign the assembly" and the error has gone away. However, looks like the exe doesn't run the code I want it to. The exe or library you are adding to the Commit step should contain a class deriving from...
[ 0.2171632945537567, 0.06170849874615669, 0.37863123416900635, -0.2628384828567505, 0.17043599486351013, -0.12932966649532318, 0.6046857237815857, -0.40812402963638306, -0.041824351996183395, -0.6337031722068787, -0.5038095712661743, 0.6427308917045593, -0.4587286114692688, 0.14067506790161...
// Do some work on commit } public override void Install(IDictionary stateSaver) { // Do some work on install } public override void Uninstall(IDictionary savedState) { // Do some work on uninstall } } ``` Hope this helps.
[ 0.523117184638977, -0.11223569512367249, 0.056828923523426056, -0.3623482882976532, 0.4288856089115143, -0.2026611715555191, 0.5015802383422852, -0.118184395134449, -0.18782620131969452, -0.8019426465034485, -0.27510133385658264, 0.8207002878189087, -0.4014964997768402, 0.01969559304416179...
Does anyone know how to move the "Solution Explorer" tab in Visual Studio 2005? It's on the left, and I can't move it to the right. Thanks, Alan Click on the title bar, and drag it to the right portion of the screen. Eventually you'll see a compas like structure popup. Make sure you hover over the right area and let ...
[ -0.10038663446903229, 0.06462016701698303, 0.4733029901981354, -0.06292533129453659, 0.2806800305843353, -0.031536005437374115, -0.096247099339962, 0.28185170888900757, -0.19230090081691742, -0.7752249240875244, 0.10992402583360672, 0.5163646340370178, -0.03428252413868904, 0.1149423122406...
I have the following in a program (written in VB.NET): ``` Imports Microsoft.Office.Interop.Excel Public Class Form1 Dim eApp As New Excel.Application Dim w As Excel.Workbook w = eApp.Workbooks.Open( "path.xls", ReadOnly:=True) .. Processing Code .. //Attempts at killing the excel application ...
[ 0.715822160243988, 0.24708688259124756, 0.3897918164730072, -0.17221853137016296, -0.12067566812038422, 0.016180558130145073, 0.1588675081729889, -0.5131685733795166, -0.23987777531147003, -0.5816639065742493, 0.09055520594120026, 0.6919438242912292, -0.5797209143638611, 0.1544940620660781...
tried and did not work. I had to do this a while back in NET 1.1, so please forgive the rust. On the eApp, there was a Hwind (a win32 window handle - <http://msdn.microsoft.com/en-us/library/bb255823.aspx> ) or similar object. I had to use that and a pInvoke (<http://www.pinvoke.net/default.aspx/user32.GetWindowThrea...
[ 0.13336604833602905, 0.006672291550785303, 0.3422327935695648, -0.052206333726644516, -0.2547617554664612, 0.04759548231959343, 0.16868460178375244, -0.21269570291042328, -0.38556578755378723, -0.7977334260940552, 0.4576725661754608, 0.48985975980758667, -0.41155537962913513, 0.28375598788...
Exactly as the question states: How can you check if a variable in PHP contains a file pointer? Some like `is_string()` or `is_object()`. You can use `get_resource_type()` - <http://us3.php.net/manual/en/function.get-resource-type.php>. The function will return FALSE if its not a resource at all. ``` $fp = fopen("foo"...
[ 0.18851052224636078, 0.015042970888316631, 0.2698215842247009, -0.10990310460329056, -0.03810860216617584, -0.09631077945232391, 0.3284575045108795, -0.22192689776420593, -0.12299386411905289, -0.3959157466888428, -0.03735053539276123, 0.5905987620353699, -0.3423194885253906, -0.0690918713...
Having a strange issue with some C# code - the Getter method for a property is showing up as virtual when not explicitly marked. The problem exhibits with the DbKey property on this class (code in full): ``` public class ProcessingContextKey : BusinessEntityKey, IProcessingContextKey { public ProcessingContextKey...
[ -0.3369649052619934, -0.10824137926101685, 0.3438997268676758, 0.116876520216465, 0.05764780566096306, -0.06488353759050369, 0.04254090413451195, -0.13639622926712036, -0.32305076718330383, -0.5854398608207703, -0.2012171447277069, 0.5907917618751526, -0.4044077694416046, 0.472595095634460...
get { return this.mDbKey; } set { this.mDbKey = value; } } private int mDbKey; public override Type GetEntityType() { return typeof(IProcessingContextEntity); } } ``` When I use reflection to inspect the DbKey property, I get the following (unexpected) result: ``` Type t = typeof...
[ -0.11175764352083206, -0.34124457836151123, 0.48962751030921936, -0.06605283915996552, 0.1727026104927063, 0.23004461824893951, 0.3973539173603058, -0.5274494886398315, -0.23490099608898163, -0.38973990082740784, -0.43835943937301636, 0.7865380048751831, -0.24683503806591034, 0.04075302556...
neither **abstract** nor **virtual**. For completeness - and for the remote possibilty they are relevant, here are the declarations for BusinessEntityKey, IProcessingContextKey, and IBusinessEntityKey: ``` public abstract class BusinessEntityKey : IBusinessEntityKey { public abstract Type GetEntityType(); } publ...
[ -0.15005096793174744, -0.14719535410404205, 0.3351905047893524, 0.11082721501588821, 0.062162868678569794, 0.16339772939682007, 0.14840561151504517, -0.008466918021440506, -0.17639368772506714, -0.5374712944030762, -0.10028772801160812, 0.6106411218643188, -0.4143317937850952, 0.2218192070...
any other places where this could occur: ``` public void RequirePropertiesToBeCompletelyVirtualOrNot() { var properties = typeof(FsisBusinessEntity).Assembly .GetExportedTypes() .Where(type => type.IsClass) .SelectMany( type => type.G...
[ 0.30370211601257324, -0.08580190688371658, 0.4005488455295563, -0.23286283016204834, 0.5165553689002991, -0.15229324996471405, 0.45185890793800354, -0.5708712339401245, -0.199776291847229, -0.5726915597915649, -0.3209713101387024, 0.7468445897102356, -0.3930205702781677, 0.1543938517570495...
BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic)) .Where(property => property.CanRead
[ 0.030248044058680534, 0.07832695543766022, 0.5402392148971558, -0.09301162511110306, -0.06670079380273819, -0.34731119871139526, 0.42349740862846375, -0.4989500939846039, -0.19968092441558838, -0.5826753973960876, -0.3721720278263092, 0.3154204487800598, -0.4938185214996338, 0.564144372940...
&& property.CanWrite) .Where(property => property.GetGetMethod(true).IsVirtual != property.GetSetMethod(true).IsVirtual); Assert.That( properties.Count(), Is.EqualTo(0), properties.Aggregate( "Found :
[ 0.18063072860240936, 0.024301636964082718, 0.4271981418132782, -0.16566309332847595, 0.36579832434654236, 0.06069328263401985, 0.3303239345550537, -0.9137247204780579, -0.200903058052063, -0.24053476750850677, -0.17724411189556122, 0.7986055612564087, -0.049907516688108444, 0.1561878621578...
", (m, p) => m + string.Format("{0}.{1}; ", p.DeclaringType.Name, p.Name))); } ``` This unit test was failing on the DbKey property mentioned above, and I didn't understand why. It's virtual because it implements an interface method. Interface implementation meth...
[ -0.21432098746299744, 0.02528407983481884, 0.6081215739250183, 0.15435592830181122, 0.1671103984117508, -0.06778405606746674, 0.26605460047721863, -0.066922627389431, 0.10560860484838486, -0.27883827686309814, -0.09627655893564224, 0.7351567149162292, -0.10090469568967819, 0.39813551306724...
I've written an experimental function evaluator that allows me to bind simple functions together such that when the variables change, all functions that rely on those variables (and the functions that rely on those functions, etc.) are updated simultaneously. The way I do this is instead of evaluating the function imme...
[ 0.33791083097457886, 0.18594340980052948, 0.18173521757125854, -0.3337053656578064, 0.26413848996162415, 0.49158236384391785, 0.007215747609734535, -0.7924656867980957, -0.22958293557167053, -0.5234571099281311, 0.018382543697953224, 0.5428439974784851, -0.2766598165035248, 0.1192536503076...
rad ``` I define 'pi' and 'rad' as variables (well, functions that return a constant), and 'area' and 'perim' as functions. Any time either 'pi' or 'rad' change, I expect the results of 'area' and 'perim' to change in kind. Likewise, if there were any functions depending on 'area' or 'perim', the results of those wou...
[ 0.06912318617105484, 0.3522294759750366, 0.036571137607097626, -0.16133473813533783, -0.1736496537923813, 0.18221323192119598, 0.31745585799217224, -0.4028545916080475, 0.11071417480707169, -0.33720752596855164, -0.2881576418876648, 0.4990195631980896, -0.37227505445480347, 0.1297950297594...
out' of recursion. I'd like to prevent it from happening at all, which means I need a way to detect it and declare the offending input as invalid. For example: ``` a = b b = c c = a ``` Right now evaluating the last line results in a StackOverflowException (while the first two lines evaluate to '0' - an undeclared ...
[ -0.008743117563426495, 0.303811639547348, 0.33232951164245605, -0.28581756353378296, -0.17067408561706543, -0.13890402019023895, 0.29470181465148926, -0.18540918827056885, -0.22860682010650635, -0.16082383692264557, -0.18045328557491302, 0.31218382716178894, -0.5186251401901245, 0.44876497...
how to go about doing so. Behind the scenes, by the way, input strings are converted to tokens via a simple scanner, then to an abstract syntax tree via a hand-written recursive descent parser, then the AST is evaluated. The language is C#, but I'm not looking for a code solution - logic alone will be fine. Note: thi...
[ 0.3049311637878418, -0.012883054092526436, -0.08634469658136368, 0.1371302306652069, 0.001196163590066135, 0.16296981275081635, 0.08054710924625397, 0.011159546673297882, 0.030325567349791527, -0.5911422967910767, -0.02816825918853283, 0.6041165590286255, 0.03754652664065361, -0.6646619439...
you guys can provide would be appreciated greatly. =) Edit: In case anyone's curious, [this post on my blog](http://shadowcoding.blogspot.com/2008/11/recursive-descent-and-grander-ideas.html) describes why I'm trying to learn this, and what I'm getting out of it. I've had a similar problem to this in the past. My solu...
[ 0.4098990261554718, -0.1466975063085556, 0.20344750583171844, 0.22757594287395477, 0.09402617067098618, -0.06177937239408493, 0.11413521319627762, -0.00368641410022974, -0.4439479112625122, -0.4640272557735443, 0.052241865545511246, 0.2072499692440033, -0.04162004217505455, -0.053413659334...
the variables in the circular reference chain (as they would be on the stack and could be popped off in sequence until I reached the offending name). EDIT: Of course, this was for single formulae... For your problem, a cyclic graph of variable assignments would be the better way to go.
[ 0.05557604134082794, -0.07021690905094147, 0.1165672093629837, 0.23273473978042603, -0.46509304642677307, 0.008252738043665886, -0.060461800545454025, 0.00466935196891427, -0.3050561845302582, 0.014360954985022545, 0.15056197345256805, 0.4643922746181488, -0.5092219710350037, 0.13357284665...