text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
<form> <label for="input1">Label 1</label> <input type="text" id="input1" name="input1" /> <span class="errorMsg">Error message</span> <label for="input1">Label 2</label> <input type="text" id="input2" name="input2" />
[ -0.46043288707733154, -0.1207154244184494, 0.2506643533706665, 0.06890217214822769, -0.35852423310279846, 0.093492291867733, -0.08526119589805603, -0.6199032068252563, -0.19440338015556335, -0.6584668755531311, -0.19545280933380127, 0.47729137539863586, -0.19331908226013184, -0.41879886388...
<span class="errorMsg">Error message</span> </form> </div> ``` It's worth noting that the width of the `.errorMsg` is 51%, not 50%, to accomodate the borders of the input (being added to the 50% width defined in the CSS. That may just be FF3.x on Ubuntu 8.04, though. I've not tested exhaustively. Or muc...
[ 0.022289641201496124, 0.030316440388560295, 0.7575096487998962, -0.3990616798400879, -0.23458340764045715, 0.03697329759597778, 0.27222755551338196, -0.41521379351615906, -0.38519638776779175, -0.6114394068717957, -0.08019883930683136, 0.46257805824279785, -0.08311117440462112, -0.08947593...
I have the following code: ``` def show @game = $site.new_game_of_type(params[:id]) @game.start end def update_game_time render :partial => 'countdown', :layout => false end ``` and the countdown partial: ``` <div id=countdown> <%= @game.running_time %></div> ``` In show.html.erb I have: ``...
[ 0.0989718958735466, 0.08860617130994797, 0.6708880066871643, -0.21941199898719788, -0.2363504320383072, -0.002601050306111574, -0.07283806800842285, -0.3901301324367523, -0.352908194065094, -0.5807129144668579, 0.1882673054933548, 0.44513633847236633, -0.14825214445590973, 0.13462981581687...
be called from Javascript. I got an error of @game being nil. It is nil even in the method update\_game\_time how can I make the @game variable to remain valid while the user is in that page? Making a request to the server every 0.5 seconds is not such a good idea. My suggestion is to load the `running_time` once an...
[ 0.4064112603664398, -0.25508543848991394, 0.399356871843338, -0.16833141446113586, 0.09771312773227692, 0.0551355741918087, 0.05367818474769592, -0.22406616806983948, -0.2146596759557724, -0.7125425338745117, -0.021781228482723236, 0.903152346611023, -0.14102667570114136, 0.056288074702024...
that your running_time is an int (seconds) var dateObj = new Date(); dateObj.setTime( timerValue*1000 ); countdownDiv.innerHTML = dateObj.getMinutes() + ":" + dateObj.getSeconds(); var timer = setInterval("dispalyTimer()", 1000); dispalyTimer = function() { dateObj.setTime( ( (dateObj.getTime()/1000) ...
[ 0.4012405276298523, -0.33554667234420776, 0.7114501595497131, -0.2462799847126007, 0.22212882339954376, 0.10163003951311111, 0.36995387077331543, -0.20625916123390198, -0.20478542149066925, -0.5720803141593933, -0.0815996453166008, 0.5189444422721863, -0.24973157048225403, 0.13082543015480...
I have a string that is contained inside of a wordpress install (the name of a server) thousands of times, across multiple columns, records and tables. I'd like to update it with the location of another server - we are moving the content over. So the source would be something like <http://my-server1/some/link/to/some...
[ 0.39706864953041077, 0.18157362937927246, 0.4304790496826172, -0.0279584601521492, -0.011531726457178593, -0.1578790694475174, 0.15218286216259003, 0.44681283831596375, -0.3299040198326111, -0.8472629189491272, 0.09194865077733994, 0.046552885323762894, -0.18029449880123138, 0.217654317617...
to dump the schema into a file, carefully apply the search-and-replace and then re-import. As a matter of fact I did that today :)
[ 0.38550689816474915, 0.2657974064350128, 0.20438696444034576, 0.051495425403118134, 0.43666401505470276, -0.054145071655511856, 0.013344959355890751, -0.2814480662345886, -0.013862710446119308, -0.49544158577919006, -0.17364902794361115, 0.49366655945777893, -0.01189166959375143, -0.098177...
I have an XML schema file which references a urn based location. Is there some way to resolve this into a url, or some way to actually read the file it refers to. ``` <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:tblDeclGrp.xsd:1.1"/> ``` ...maybe look at [RFC3121](http://www.ietf.org/rfc/rfc3121.txt) A URN...
[ 0.6026795506477356, 0.3758024573326111, 0.2646602690219879, 0.28462493419647217, 0.1376020908355713, -0.5358664989471436, 0.06765850633382797, -0.06771479547023773, -0.13097093999385834, -0.4951309859752655, -0.1842993199825287, 0.2204500138759613, -0.19539089500904083, 0.5221138000488281,...
that are within that section of the hierarchy unless you have control over it. edit 2: A little google searching found a file in oasis-open.org called [tblDeclGrp.xsd](http://docs.oasis-open.org/dita/v1.1/OS/schema/tblDeclGrp.xsd) and some [commentary on it and other schemas](http://docs.oasis-open.org/dita/v1.1/OS/ar...
[ 0.011652075685560703, -0.18347783386707306, 0.11961358040571213, 0.0570945106446743, -0.30214568972587585, -0.4292602241039276, -0.06452983617782593, -0.130041241645813, -0.2512977123260498, -0.36435988545417786, -0.43071770668029785, 0.20899470150470734, -0.5520744323730469, 0.09585191309...
I have an Exchange account with multiple calendars defined. Is it possible to query a secondary calendar with cfexchangeconnection? Here's the code that I use to get the primary calendar, but I don't see any options in CF8 to talk to the secondary calendar "AltCal" in my profile. ``` <cfexchangeConnection action="ope...
[ 0.10383608937263489, 0.3011524975299835, 0.877858579158783, -0.09293479472398758, -0.2602916955947876, 0.22852833569049835, 0.2556847929954529, 0.10510003566741943, -0.1956799477338791, -0.7966235280036926, 0.28198936581611633, 0.3120719790458679, -0.01627459190785885, 0.008455942384898663...
close look at the [CFML Reference](http://cfquickdocs.com/cf8/?getDoc=cfexchangecalendar) and the [User Guide](http://livedocs.adobe.com/coldfusion/8/htmldocs/cfexchange_1.html), and it looks like this is something that's not supported. I suggest you [enter this as a feature request](http://www.adobe.com/go/wish). I w...
[ 0.45910343527793884, -0.1407213807106018, 0.5742183923721313, 0.035267312079668045, -0.1722617894411087, -0.36389362812042236, 0.22504107654094696, -0.13097050786018372, -0.06630231440067291, -0.4774377942085266, -0.024383582174777985, 0.38065382838249207, -0.29965516924858093, -0.24436078...
I have a web user control that generates the following html on the client. I want to reference a specific RadioButton control using JavaScript. I am not sure how to do this as the RadioButton ID is generated by asp.net. For example I give the RadioButton ID = `1_RadioButton` asp.net generates an ID = `ctl00_Cont...
[ 0.38053834438323975, 0.1686849743127823, 0.6268715262413025, -0.03278687596321106, 0.04232412949204445, -0.3219892978668213, -0.10555655509233475, -0.539953887462616, -0.010267390869557858, -0.5844747424125671, -0.22516664862632751, 0.7092843651771545, -0.46093788743019104, 0.2019605189561...
$("#1_other").hide(); } }); </script> ``` The following is what asp.net generates for the client. ``` <input id="ctl00_ContentPlaceHolder1_Material_1_RadioButton" type="radio" name="ctl00$ContentPlaceHolder1$Material$Academic" value="1_RadioButton" onclick="javascript:$('#1_other').sh...
[ 0.06997788697481155, 0.09500843286514282, 0.6936373114585876, -0.20649702847003937, -0.2456410676240921, -0.3123822808265686, 0.14292965829372406, -0.7854704856872559, -0.25944575667381287, -0.44686853885650635, -0.5047875046730042, 0.4866335391998291, -0.18573802709579468, 0.0626970604062...
<input name="ctl00$ContentPlaceHolder1$Material$4_TextBox" type="text" value="bbb chabng" id="ctl00_ContentPlaceHolder1_Material_4_TextBox" /> </div> ``` If that code is in the .aspx file use <%= MyRadioButton.ClientID %> in its place and the ASP.NET rendering engine will properly render the ID for you. **Update:*...
[ 0.256442666053772, -0.08106877654790878, 0.672551155090332, -0.20765076577663422, -0.1089974194765091, 0.12591882050037384, 0.04163796827197075, -0.670731246471405, -0.22245033085346222, -0.9259396195411682, -0.4585927426815033, 0.38856205344200134, -0.09617657959461212, 0.095911905169487,...
I have created a web part using VSeWSS 1.3. It creates a wsp file and my web part gets installed, everything works great. I would like to also create a folder in the LAYOUTS directory of the 12 hive and place a couple files in there. How do I go about doing this? I know that I can manually place the files there, but ...
[ 0.7982856631278992, 0.00032045156694948673, 0.0033308155834674835, 0.11478405445814133, 0.09047650545835495, -0.2915368378162384, 0.44082391262054443, -0.3362075090408325, -0.10939475893974304, -0.8997397422790527, 0.18076887726783752, 0.5078181028366089, -0.31420034170150757, 0.0120302066...
a bunch of stuff with this new version and I want to make sure I don't mess anything up. You can create a new folder structure in your webpart project, like: Templates/Layouts/CustomFolder and put your files in the CustomFolder directory and include them in your project. When you go to the WSP View in Visual Studio, y...
[ 0.8072999119758606, -0.13888835906982422, 0.11535466462373734, 0.06404563784599304, -0.02579430304467678, -0.35925254225730896, 0.0011351484572514892, 0.0948105975985527, -0.4283708333969116, -0.8393243551254272, 0.15773630142211914, 0.571894645690918, -0.13291054964065552, 0.0384944342076...
Does anyone know of a good class to read in .ged files Gedcom is a file format that is used to store genealogical information. My goal is to write something that would let me import a ged file and export a .dot file for graphviz so that I can make a visual representation of a family tree thanks if you can help Here...
[ 0.3267577886581421, -0.010715379379689693, 0.04686625674366951, 0.41540712118148804, -0.06686966121196747, -0.3368448317050934, 0.33398181200027466, 0.4066745936870575, -0.010236830450594425, -0.8705151677131653, 0.26145604252815247, 0.06555794179439545, 0.23308928310871124, 0.462130010128...
could make anything more elequient ``` struct INDI { public string ID; public string Name; public string Sex; public string BirthDay; public bool Dead; } struct
[ 0.1511455476284027, -0.2152673453092575, 0.03902481868863106, -0.03600354120135307, -0.11866412311792374, 0.22831648588180542, 0.3195502460002899, -0.060270242393016815, 0.10399357974529266, -0.43367403745651245, -0.18618658185005188, 0.2699752748012543, -0.21259839832782745, 0.38682445883...
FAM { public string FamID; public string type; public string IndiID; } List<INDI> Individuals = new List<INDI>(); List<FAM> Family = new List<FAM>(); private void button1_Click(object sender, EventArgs e)
[ -0.4977380335330963, -0.34874430298805237, 0.6571750044822693, -0.28777140378952026, 0.2539975941181183, 0.489701509475708, 0.14911173284053802, -0.4926559627056122, -0.5301903486251831, -0.683917224407196, -0.4593328535556793, 0.32797104120254517, -0.7428402304649353, 0.16937308013439178,...
{ string path = @"C:\mostrecent.ged"; ParseGedcom(path); } private void ParseGedcom(string path) { //Open path to GED file StreamReader SR = new StreamReader(path);
[ -0.3480716347694397, -0.17816585302352905, 0.541214644908905, -0.2755061388015747, 0.23711083829402924, -0.03462262451648712, 0.3576882779598236, -0.13086175918579102, -0.01243366114795208, -0.6969636678695679, -0.36823251843452454, 0.677286684513092, -0.34723761677742004, 0.31264266371726...
//Read entire block and then plit on 0 @ for individuals and familys (no other info is needed for this instance) string[] Holder = SR.ReadToEnd().Replace("0 @", "\u0646").Split('\u0646'); //For each new cell in the holder array look for Individuals and familys foreach (string Node i...
[ 0.1143127977848053, -0.10155347734689713, 0.3251940906047821, -0.3052010238170624, 0.3906145393848419, 0.10286080092191696, 0.12157143652439117, -0.41875049471855164, -0.2623233497142792, -0.534340500831604, -0.32435208559036255, 0.06166645139455795, -0.2496688961982727, 0.3132677376270294...
//Sub Split the string on the returns to get a true block of info string[] SubNode = Node.Replace("\r\n", "\r").Split('\r'); //If a individual is found if (SubNode[0].Contains("INDI")) {
[ 0.01048464234918356, -0.520847499370575, 0.019795851781964302, 0.057604894042015076, 0.43448418378829956, 0.03465868905186653, 0.3985149562358856, -0.23278197646141052, -0.08475684374570847, -0.6555564999580383, -0.3058386743068695, 0.23563945293426514, -0.4981140196323395, 0.2280637323856...
//Create new Structure INDI I = new INDI(); //Add the ID number and remove extra formating I.ID = SubNode[0].Replace("@", "").Replace(" INDI", "").Trim();
[ 0.2834162712097168, -0.2038165181875229, 0.14608587324619293, -0.059168070554733276, 0.03225283697247505, -0.06704019010066986, 0.28421497344970703, -0.5760663151741028, -0.0264589823782444, -0.6865857243537903, -0.40125423669815063, 0.2880237400531769, -0.29691025614738464, 0.129949152469...
//Find the name remove extra formating for last name I.Name = SubNode[FindIndexinArray(SubNode, "NAME")].Replace("1 NAME", "").Replace("/", "").Trim(); //Find Sex and remove extra formating I.Sex = SubNode[FindIndexinArray(SubNode, "SEX")].Replace("1 SEX ", "...
[ -0.15737828612327576, -0.11184515058994293, 0.07023973017930984, -0.03160897642374039, 0.11126198619604111, 0.25970959663391113, 0.26545095443725586, -0.1936664879322052, 0.03507399931550026, -0.34650465846061707, -0.5579054355621338, 0.12862825393676758, -0.1470995396375656, 0.28493452072...
//Deterine if there is a brithday -1 means no if (FindIndexinArray(SubNode, "1 BIRT ") != -1) { // add birthday to Struct
[ -0.026200363412499428, -0.3619745969772339, 0.2954278290271759, -0.26358720660209656, -0.36790287494659424, 0.04469390586018562, 0.44264429807662964, -0.15428316593170166, 0.13131555914878845, -0.2650894224643707, -0.41646429896354675, 0.08115590363740921, -0.015768224373459816, 0.01853828...
I.BirthDay = SubNode[FindIndexinArray(SubNode, "1 BIRT ") + 1].Replace("2 DATE ", "").Trim(); } // deterimin if there is a death tag will return -1 if not found
[ 0.034536782652139664, -0.19962209463119507, 0.11379609256982803, -0.26995107531547546, 0.02761303447186947, 0.09793310612440109, 0.32705119252204895, -0.30895593762397766, 0.013072963804006577, -0.3468249440193176, -0.2899869680404663, 0.22349464893341064, -0.13813139498233795, 0.225162819...
if (FindIndexinArray(SubNode, "1 DEAT ") != -1) { //convert Y or N to true or false ( defaults to False so no need to change unless Y is found.
[ -0.2029636949300766, -0.2759262025356293, 0.010591941885650158, -0.1897083818912506, 0.2559334337711334, -0.040973909199237823, 0.34907668828964233, -0.16117654740810394, 0.17216940224170685, -0.3943932354450226, -0.4315566122531891, 0.6262240409851074, -0.1897871196269989, 0.0219495650380...
if (SubNode[FindIndexinArray(SubNode, "1 DEAT ")].Replace("1 DEAT ", "").Trim() == "Y") { //set death I.Dead = true;
[ 0.167058065533638, -0.2814105153083801, -0.1034758985042572, -0.19722385704517365, 0.4624997079372406, -0.03468630090355873, 0.360378623008728, -0.5405031442642212, 0.13886061310768127, -0.3760537803173065, -0.33167755603790283, 0.5668302178382874, -0.27059128880500793, 0.1531209498643875,...
} } //add the Struct to the list for later use Individuals.Add(I);
[ 0.002425079233944416, -0.1270722895860672, 0.03971739485859871, -0.2764114439487457, 0.17518597841262817, 0.022138351574540138, 0.28680044412612915, -0.1157749593257904, 0.11831219494342804, -0.5604700446128845, -0.23775309324264526, 0.6531655788421631, -0.40355798602104187, -0.07383647561...
} // Start Family section else if (SubNode[0].Contains("FAM")) { //grab Fam id from node early on to keep from doing it over and over
[ -0.29646843671798706, -0.057437703013420105, 0.2887287735939026, -0.2374163717031479, 0.4891369938850403, -0.1372273862361908, 0.3702359199523926, -0.429307758808136, 0.06334496289491653, -0.4053436815738678, -0.1975085288286209, -0.23572960495948792, -0.3358202576637268, 0.377711355686187...
string FamID = SubNode[0].Replace("@ FAM", ""); // Multiple children can exist for each family so this section had to be a bit more dynaimic // Look at each line of node foreach (string Line in SubNode)
[ -0.291669100522995, -0.5409643650054932, 0.25165271759033203, -0.1796761304140091, 0.1332256942987442, 0.29753395915031433, 0.4460095167160034, -0.060373976826667786, -0.043684326112270355, -0.4706439971923828, -0.018390698358416557, -0.1784353107213974, -0.34296372532844543, 0.32007798552...
{ // If node is HUSB if (Line.Contains("1 HUSB ")) {
[ -0.5487095713615417, -0.29102858901023865, 0.30188435316085815, -0.2644446790218353, 0.29769039154052734, 0.18451260030269623, 0.2738661766052246, 0.10712980479001999, -0.11482939124107361, -0.3946388363838196, -0.5456735491752625, -0.36484336853027344, -0.3730812668800354, -0.070977419614...
FAM F = new FAM(); F.FamID = FamID; F.type = "PAR";
[ -0.5033996105194092, 0.012978427112102509, 0.6453768014907837, -0.41344577074050903, -0.027527732774615288, 0.06645537912845612, 0.15109089016914368, -0.294046550989151, -0.1051139310002327, -0.365310400724411, -0.5976500511169434, 0.26198917627334595, -0.48716801404953003, 0.2109873741865...
F.IndiID = Line.Replace("1 HUSB ", "").Replace("@","").Trim(); Family.Add(F); }
[ 0.125518798828125, -0.34139004349708557, 0.32320088148117065, -0.2291068285703659, 0.40310633182525635, 0.37234804034233093, 0.3033931851387024, -0.34927207231521606, 0.12892602384090424, -0.758538007736206, -0.3699363172054291, 0.4195764362812042, -0.43078354001045227, 0.17324456572532654...
//If node for Wife else if (Line.Contains("1 WIFE ")) { FAM F = new FAM();
[ -0.308441698551178, -0.375986784696579, 0.6348506212234497, -0.4939858019351959, 0.664461612701416, 0.38130509853363037, 0.3897230625152588, -0.510549008846283, -0.07730463147163391, -0.35090723633766174, -0.32934239506721497, 0.09885354340076447, -0.27776142954826355, 0.29446181654930115,...
F.FamID = FamID; F.type = "PAR"; F.IndiID = Line.Replace("1 WIFE ", "").Replace("@", "").Trim();
[ 0.008056428283452988, -0.07583371549844742, 0.37444815039634705, -0.17697492241859436, 0.19570739567279816, 0.5119515061378479, 0.3343433141708374, -0.3719741702079773, 0.21157613396644592, -0.504446268081665, -0.41055139899253845, 0.2090584635734558, -0.36504390835762024, 0.23087576031684...
Family.Add(F); } //if node for multi children else if (Line.Contains("1 CHIL "))
[ 0.03961588069796562, -0.2949994206428528, 0.17880824208259583, 0.015273218974471092, 0.3249507248401642, 0.1751101016998291, 0.19635921716690063, -0.2699909508228302, -0.161660835146904, -0.7618218660354614, -0.20387589931488037, -0.0497913584113121, -0.40238913893699646, 0.470307379961013...
{ FAM F = new FAM(); F.FamID = FamID;
[ -0.5570777654647827, -0.31208619475364685, 0.5444062352180481, -0.5419225096702576, 0.4000440537929535, -0.10318541526794434, 0.34825775027275085, -0.3473917543888092, -0.020135430619120598, -0.42767584323883057, -0.7323121428489685, 0.5141531229019165, -0.5312103033065796, 0.0839809179306...
F.type = "CHIL"; F.IndiID = Line.Replace("1 CHIL ", "").Replace("@", ""); Family.Add(F); }
[ 0.1293187290430069, -0.37177976965904236, 0.4377875328063965, -0.14525571465492249, 0.07170230895280838, 0.2954709231853485, 0.2670755684375763, -0.3058975636959076, 0.18261004984378815, -0.795086145401001, -0.30893418192863464, 0.13326111435890198, -0.5085288286209106, 0.4314640164375305,...
} } } } private int FindIndexinArray(string[] Arr, string search) { int Val = -1;
[ -0.5310118198394775, -0.46526598930358887, 0.35392534732818604, -0.19866472482681274, 0.27234503626823425, 0.006807627156376839, 0.24797466397285461, -0.03690186142921448, 0.0776916965842247, -0.3297538161277771, -0.4677320122718811, 0.8764086365699768, -0.3226616084575653, 0.1345764100551...
for (int i = 0; i < Arr.Length; i++) { if (Arr[i].Contains(search)) { Val = i; }
[ -0.20224790275096893, -0.26567769050598145, 0.5280564427375793, -0.4562722146511078, 0.15420275926589966, 0.12842385470867157, 0.5384554862976074, -0.6569687724113464, -0.07266715168952942, -0.4840608537197113, -0.3654961884021759, 0.5489428043365479, -0.4019465148448944, 0.160004317760467...
} return Val; } ```
[ -0.3554324507713318, 0.09611688554286957, -0.11286279559135437, -0.3158831000328064, 0.19204793870449066, -0.21828000247478485, 0.34073495864868164, 0.2327888011932373, 0.32087087631225586, -0.3511972725391388, -0.5439363121986389, 0.9074357748031616, -0.26208940148353577, 0.16206310689449...
In the enhanced editor, the coloring might give you a hint. However, on the mainframe I don't believe there is anything, in the editor, that will help you. I use ``` OPTIONS OBS=0 noreplace; ``` The obs=0 option specifies that 0 observarions are read in from the input dataset and NOREPLACE tells SAS not to overwi...
[ -0.28884708881378174, 0.04845928028225899, 0.49769970774650574, -0.05093821883201599, 0.025284508243203163, -0.1641402393579483, 0.4912053346633911, -0.06434959173202515, -0.06858760863542557, -1.0369253158569336, -0.5168073177337646, 0.6026355028152466, -0.39179638028144836, -0.4960727095...
be interested in any other techniques. Thanks Explanation about options came from [here.](http://www.listserv.uga.edu/cgi-bin/wa?A2=ind9704e&L=sas-l&P=56) I use the cancel option on the run statement. It will check the syntax of the data step then terminate it without actually executing it. It's the data step analog t...
[ 0.272093266248703, -0.3511541485786438, 0.1520950049161911, 0.12827235460281372, 0.26382356882095337, -0.36823368072509766, 0.2088673710823059, 0.1437162458896637, -0.19331954419612885, -0.10256987065076828, -0.5316237807273865, 0.5855964422225952, -0.2575327455997467, -0.16983474791049957...
I've been told that if I foreign key two tables, that SQL Server will create something akin to an index in the child table. I have a hard time believing this to be true, but can't find much out there related specifically to this. My real reason for asking this is because we're experiencing some very slow response time...
[ 0.39144065976142883, 0.22920165956020355, 0.002840618137270212, 0.14376696944236755, 0.01674482971429825, 0.04766382277011871, -0.11750933527946472, 0.20364004373550415, -0.4274797737598419, -0.4996087849140167, 0.25256967544555664, 0.19485917687416077, -0.11400211602449417, 0.473742723464...
this? Should I add indexes on all foreign key fields or are they just unnecessary overhead? A foreign key is a constraint, a relationship between two tables - that has nothing to do with an index per se. But it is a known fact that it makes a lot of sense to index all the columns that are part of any foreign key relat...
[ -0.02030511014163494, 0.36101895570755005, 0.29856398701667786, 0.1272844672203064, -0.05674123391509056, -0.0005105845048092306, -0.07807502895593643, -0.029532618820667267, -0.30435025691986084, -0.31176573038101196, 0.13346007466316223, 0.04909690096974373, -0.40855181217193604, 0.23837...
but a FK per se is not an index. Check out Kimberly Tripp's excellent article ["When did SQL Server stop putting indexes on Foreign Key columns?"](https://www.sqlskills.com/blogs/kimberly/when-did-sql-server-stop-putting-indexes-on-foreign-key-columns/).
[ -0.3463848829269409, 0.13295775651931763, 0.14069069921970367, -0.03149561956524849, -0.31768548488616943, 0.07287237048149109, 0.3260907828807831, -0.02283335290849209, -0.2996634542942047, 0.24033382534980774, 0.21178647875785828, -0.3092253804206848, -0.2347329705953598, 0.4145458042621...
Stupid question time - how do you update the title attribute of a control? Obviously this does not work: ``` $("#valPageIndex").attr('title') = pageIndex; ``` ``` $("#valPageIndex").attr('title', pageIndex); ``` Basically, `$("#valPageIndex").attr('title')` is just for getting its value, while `$("#valPageIndex").a...
[ -0.0667402520775795, 0.24196234345436096, 0.4355866611003876, 0.4627918004989624, 0.12219823151826859, -0.35831212997436523, 0.1608244925737381, -0.024589406326413155, 0.15578290820121765, -0.33463114500045776, -0.14670108258724213, 0.8369252681732178, -0.1468811184167862, 0.16648371517658...
I've implemented both django-cms and flatpages, but can not get tiny\_mce to display in either. urls.py ``` (r'^tinymce/', include('tinymce.urls')), from django.conf import settings if settings.DEBUG: urlpatterns += patterns('', (r'^site_media/(?P<path>.*)$', 'django.views.static.serve', ...
[ 0.048987675458192825, 0.38848236203193665, 0.5870255827903748, -0.20774246752262115, 0.05305817723274231, 0.26028740406036377, -0.10127637535333633, -0.2491583228111267, -0.13843968510627747, -0.8579112887382507, 0.011588274501264095, 0.6345647573471069, -0.09274139255285263, 0.15167209506...
class Media: js = ('http://127.0.0.1:8000/js/tiny_mce/tiny_mce.js', 'http://127.0.0.1:8000/js/tiny_mce/textareas.js',) # We have to unregister it, and then reregister admin.site.unregister(FlatPage) admin.site.register(FlatPage, FlatPageAdmin) #django-cms from myprograms.cms.models import Page cl...
[ -0.05708418786525726, 0.23752528429031372, 0.6918878555297852, 0.13884033262729645, 0.08382067829370499, -0.057812344282865524, 0.09909383207559586, -0.23708641529083252, -0.4742673933506012, -0.8295199275016785, -0.2925677001476288, 0.5817084312438965, -0.36697712540626526, 0.259768545627...
what is the correct syntax. The CMS doesn't do me much good without some kind of text editor. Thx first of all please check this line with slash like: `<script type="text/javascript" src="{{ MEDIA_URL }}/js/tiny_mce/tiny_mce.js"></script>` also please check site\_id in error logs. had similar issue with site\_id be...
[ -0.09464950859546661, 0.1559540182352066, 0.08421772718429565, -0.13570202887058258, -0.03113984689116478, 0.2805425822734833, 0.3761378526687622, 0.05503128841519356, -0.2247636914253235, -0.5553382635116577, -0.08967666327953339, 0.40714311599731445, -0.01704147644340992, -0.061608884483...
Where is the setting to change the font size and font type in Visual Studio 2008? Use menu *Tools* -> *Options* -> Inside *Environment* -> *Fonts and Colors*: ![Screenshot of the options dialog in Visual Studio, invoked by menu command Tools/Options.](https://i.stack.imgur.com/hKRWW.png)
[ -0.2143593728542328, -0.017769038677215576, 0.38708946108818054, -0.30140578746795654, -0.2208912968635559, 0.2711734473705292, -0.008767720311880112, -0.16210946440696716, -0.3453119397163391, -0.5315596461296082, -0.09677008539438248, 0.6269484162330627, -0.15600763261318207, -0.40056660...
Is there a decent browser-based javascript self-editor? It is obvious one can make a quick js editor with a page containing a form textarea, some buttons and callbacks. I'm wondering if someone has taken that as a beginning and ran with it. The javascript to be edited could be defined in a global string or it could b...
[ -0.0341600626707077, 0.08561638742685318, 0.04856658726930618, 0.02805524319410324, -0.3773217797279358, -0.04338363930583, 0.1907719075679779, 0.32940295338630676, -0.14780321717262268, -0.672534167766571, 0.09797268360853195, 0.39960184693336487, -0.41685307025909424, -0.2485875636339187...
some additional server-side functionality. The ideal package would discuss and explore this.... but I'd settle for anything that just lets the user make their own simple changes to 100-200 line scripts. I'm not sure exactly what you're asking for, but does [jsbin](http://jsbin.com) satisfy your needs?
[ 0.39740869402885437, -0.24244768917560577, 0.051273785531520844, 0.0944187194108963, -0.21742090582847595, 0.014875244349241257, 0.2828587591648102, 0.20829974114894867, -0.16374541819095612, -0.6131576895713806, -0.0558231845498085, 0.3373832106590271, -0.2851806879043579, -0.152200058102...
Is there a way of marking methods/classes in C++ as obsolete? In c# you can write: ``` [Obsolete("You shouldn't use this method anymore.")] void foo() {} ``` I use the GNU toolchain/Eclipse CDT if that matters. The easiest way is with a `#define DEPRECATED`. On GCC, it expands to `__attribute__((deprecated))`, on V...
[ 0.07712645083665848, 0.2562655210494995, 0.16385066509246826, -0.25498825311660767, -0.10814224928617477, -0.2941564917564392, 0.14140760898590088, 0.12476720660924911, -0.1784965842962265, -0.24648232758045197, -0.3177977204322815, 0.5827048420906067, -0.34327203035354614, 0.2826724946498...
How do you find out how many queries have been executed since the MySQL server has started? ``` mysqladmin proc stat ``` This should give you a Questions count (among other information), which is the number of queries asked of the server. One handy part of the info returned is slow queries count. Hopefully that is 0...
[ 0.28257736563682556, 0.17823760211467743, 0.3423577547073364, 0.19265370070934296, -0.037065234035253525, -0.10700438171625137, 0.3400804102420807, 0.09776085615158081, -0.4310762584209442, -0.5032356977462769, 0.05287415534257889, 0.48509839177131653, 0.016040710732340813, 0.1063127666711...
This is a practical Domain Driven Design question: Conceptually, I think I get Aggregate roots until I go to define one. I have an Employee entity, which has surfaced as an Aggregate root. In the Business, *some* employees can have work-related Violations logged against them: Employee-----\*Violations Since not all...
[ 0.16359874606132507, 0.3914245069026947, -0.06393254548311234, 0.3220635950565338, -0.059075385332107544, -0.18133163452148438, 0.3536696434020996, 0.0007242599967867136, -0.4292164444923401, -0.5643206834793091, 0.44466227293014526, 0.4151972234249115, -0.13988660275936127, 0.387561410665...
doing even MORE research, I think I have the answer to my question. Paul Stovell had this slightly edited response to a similar question on the [DDD messageboard](http://tech.groups.yahoo.com/group/domaindrivendesign/message/9836). Substitute "Customer" for "Employee", and "Order" for "Violation" and you get the idea....
[ 0.2139844000339508, 0.13444481790065765, 0.18925504386425018, -0.08133205771446228, 0.004169840831309557, 0.18726381659507751, 0.04326382651925087, -0.3302033543586731, -0.40667277574539185, -0.61416095495224, 0.03394611179828644, 0.33330386877059937, -0.19863629341125488, 0.22895434498786...
this scenario). > > > From a domain point of view, you can > even question the validity of those > references (Customer has reference to > a list of Orders). How often will you > actually need *all* orders for a > customer? In some systems it makes > sense, but in others, one customer > might make many orders...
[ -0.044700488448143005, -0.3375210165977478, 0.23592722415924072, 0.07155875116586685, 0.34581005573272705, 0.13880440592765808, 0.08804578334093094, -0.1082826554775238, -0.379494845867157, -0.9437655210494995, -0.053157199174165726, 0.4070609211921692, -0.46426188945770264, -0.03616278246...
which you'll need all > of them might be relatively uncommon. > However, it's much more likely that > when dealing with an Order, you will > want the customer information. So in > code, `Order.Customer.Name` is useful, > but `Customer.Orders[0].LineItem.SKU` - > probably not so useful. Of course, > that totally...
[ 0.2755813002586365, 0.2640896737575531, 0.4329244792461395, 0.08416633307933807, 0.12822382152080536, 0.20170064270496368, 0.2010868638753891, -0.33907008171081543, -0.35730528831481934, -0.5327906608581543, -0.0550973154604435, 0.6988043785095215, -0.20573586225509644, -0.0038703868631273...
same aggregate because changing a violation line would likely affect a Violation. EDIT\*\* The wrinkle here in my Domain is that Violations have no behavior. They are basically records of an event that happened. Not sure yet about the implications that has.
[ 0.6673272848129272, 0.4040944278240204, 0.2888442873954773, 0.0791345089673996, -0.022963037714362144, -0.4468062222003937, 0.4044956564903259, 0.355538547039032, -0.4648436903953552, -0.7068838477134705, 0.3587602972984314, 0.27120065689086914, -0.3227718770503998, 0.477551132440567, 0....
[This question](https://stackoverflow.com/questions/226405/find-position-of-a-node-using-xpath) is close, but it's looking for the ordinal position. I'm looking for the actual index position in a given source string. Better Explanation: I have the following string ``` "<a> <b>zyx</b> <b>wvu</b> <b>tsr</b...
[ -0.08911015838384628, -0.11497264355421066, 0.8402008414268494, -0.01267407275736332, -0.18332478404045105, -0.09998893737792969, -0.06749052554368973, -0.4156331717967987, -0.1657380759716034, -0.41544580459594727, -0.2613607347011566, 0.31216147541999817, -0.26785239577293396, 0.10025928...
Possible? After doing even MORE research, I think I have the answer to my question. Paul Stovell had this slightly edited response to a similar question on the [DDD messageboard](http://tech.groups.yahoo.com/group/domaindrivendesign/message/9836). Substitute "Customer" for "Employee", and "Order" for "Violation" and y...
[ 0.15691375732421875, 0.14097753167152405, 0.22031478583812714, 0.03517509996891022, 0.30622637271881104, 0.2925357222557068, 0.08940520137548447, -0.3534962236881256, -0.2752353847026825, -0.6365653276443481, 0.09451789408922195, 0.3149215579032898, -0.35843175649642944, 0.1735855489969253...
this scenario). > > > From a domain point of view, you can > even question the validity of those > references (Customer has reference to > a list of Orders). How often will you > actually need *all* orders for a > customer? In some systems it makes > sense, but in others, one customer > might make many orders...
[ -0.05844573304057121, -0.35431763529777527, 0.24327531456947327, 0.07116807997226715, 0.35271909832954407, 0.12719346582889557, 0.11771997809410095, -0.07790417969226837, -0.3373827636241913, -0.9992498755455017, -0.03268209844827652, 0.37444061040878296, -0.4675409495830536, -0.0298338625...
in which you'll need all > of them might be relatively uncommon. > However, it's much more likely that > when dealing with an Order, you will > want the customer information. So in > code, `Order.Customer.Name` is useful, > but `Customer.Orders[0].LineItem.SKU` - > probably not so useful. Of course, > that tota...
[ 0.2594887316226959, 0.17102834582328796, 0.4325428307056427, 0.08476519584655762, 0.08422674983739853, 0.2133491039276123, 0.19864964485168457, -0.3583509624004364, -0.31985345482826233, -0.6379374861717224, -0.1520119458436966, 0.5880047678947449, -0.26445314288139343, -0.0503572486340999...
the same aggregate because changing a violation line would likely affect a Violation. EDIT\*\* The wrinkle here in my Domain is that Violations have no behavior. They are basically records of an event that happened. Not sure yet about the implications that has.
[ 0.6191577911376953, 0.4043389856815338, 0.29853805899620056, 0.09264291822910309, 0.0019356075208634138, -0.4275406301021576, 0.41860678791999817, 0.30062317848205566, -0.4017980694770813, -0.6626640558242798, 0.30249375104904175, 0.2887353003025055, -0.3174719214439392, 0.4729550182819366...
I am using AdoNetAppender (SQL server) in my asp.net application and would like use to RollingFileAppender incase of any connection issue with SQL. Is there any way to configure to use RollingFileAppender only when there is an issue with AdoNetAppender? Thanks por There is no built in support for this kind of failove...
[ 0.2653118073940277, 0.056637123227119446, 0.33262917399406433, 0.14284473657608032, -0.12167658656835556, -0.059505563229322433, 0.10387294739484787, 0.2580130994319916, -0.32428497076034546, -0.6399412155151367, 0.1810450404882431, 0.5618160963058472, -0.26112210750579834, 0.1531808376312...
have the latest data in files. But I definitively see the case here for an appender that could have a priority list of sub-appenders doing some simple failover in case of failure. This should not be too hard to implement either building on [the AppenderSkeleton](http://logging.apache.org/log4net/release/sdk/log4net.Ap...
[ 0.3775028884410858, -0.057293299585580826, 0.3900907337665558, 0.2132042646408081, 0.18648001551628113, -0.5750058889389038, 0.15257810056209564, -0.31713300943374634, -0.3390772342681885, -0.47042736411094666, -0.29534515738487244, 0.42840197682380676, -0.07400824129581451, -0.09248084574...
I want to use forms authentication in asp.net mvc applications. I have searched a this things but could not get satisfactory answer so can any one please give me brief idea for this. I am a newbie and playing around asp.net mvc. Please also describe how many authentication is possible with the asp.net mvc. See the [of...
[ 0.6021427512168884, 0.30066487193107605, 0.5430797934532166, -0.16859662532806396, -0.23177668452262878, -0.49046698212623596, 0.505318820476532, -0.21424025297164917, -0.31945037841796875, -0.5528098940849304, 0.08586477488279343, 0.4695109724998474, 0.266276478767395, -0.0199266597628593...
ASP.NET Offers great caching api with lots of functionality. Can anybody answer me that how i can use the caching api with the asp.net mvc. Not sure if you've seen this already, but you might want to take a look at the OutputCache attribute. You can use this attribute on the actions in your controllers.. this allows yo...
[ 0.24853737652301788, -0.27865296602249146, 0.15806372463703156, 0.18558357656002045, -0.30772125720977783, -0.203101247549057, -0.09158612787723541, -0.1320757269859314, -0.38245689868927, -0.6568660140037537, 0.17674390971660614, 0.23386545479297638, -0.36148688197135925, -0.2775321006774...
I'm in the process of converting parts of an application to use ASP.NET MVC from WebForms. The idea is that when possible I use MVC for new development. My problem is this: Doing it this way means that my Models are not completely implemented in MVC. Let's say that my WebForms application has a robust Widget Managemen...
[ 0.4145227372646332, -0.11883004009723663, 0.43766066431999207, 0.06517130136489868, -0.025139428675174713, -0.10377604514360428, -0.0962468832731247, -0.16264913976192474, -0.18207408487796783, -0.8735337257385254, 0.4244474172592163, 0.6627536416053772, -0.3493097126483917, 0.273616999387...
and Color, for the sole purpose of validating and saving. So, I have gone down the road of implementing a Service namespace with methods such as "SetWidgetColor", accepting a WidgetID and Color parameter. My controller action simply calls that service in my Models assembly. My question: Is this a valid stopgap archit...
[ 0.22823165357112885, 0.0029757926240563393, 0.6202033758163452, 0.11155947297811508, 0.2869224548339844, 0.25325122475624084, 0.046231117099523544, -0.06736372411251068, -0.3402586281299591, -0.5514025092124939, -0.08740197122097015, 0.6440055966377258, -0.35822978615760803, 0.096034981310...
M, V and C for Hello World. It would strictly be "V". "C" adds more view-specific smarts, and "M" adds business logic, persistence and retrieval.
[ -0.09246885776519775, -0.2627905011177063, 0.47900718450546265, 0.1304755061864853, -0.09920437633991241, 0.2915027141571045, 0.0020759287290275097, 0.3741520643234253, -0.09536167979240417, -0.354049950838089, -0.511695921421051, 0.6438297033309937, -0.2823806703090668, 0.2661175131797790...
Is there a way to hide the console window when executing a console application? I am currently using a Windows Forms application to start a console process, but I don't want the console window to be displayed while the task is running. If you are using the `ProcessStartInfo` class you can set the window style to hidde...
[ 0.1201707199215889, 0.06772004067897797, 0.46843189001083374, -0.1403960883617401, 0.25677260756492615, -0.09404030442237854, 0.44002899527549744, -0.10796599835157394, 0.05928551033139229, -0.6944100260734558, -0.027277342975139618, 0.773216724395752, -0.20450763404369354, 0.3527091443538...
I am building a HTML scrubber basically an internal tool for scrubbing a problematic html page. I am building the tool as a web app using ASP.NET 3.5. It consists of a button and two multiline textboxes. I am programming it so you paste in the HTML you want scrubbed into the top box. Hit the button and the scrubbed H...
[ 0.3942655026912689, -0.09829167276620865, 0.36441925168037415, -0.12957975268363953, -0.2939700484275818, 0.29467350244522095, 0.18608929216861725, -0.18817509710788727, -0.03443702310323715, -0.8072117567062378, 0.04410286247730255, 0.4527433216571808, -0.1370447874069214, 0.0584907010197...
Basically I paired it down to this simple codebehind code that will strip out the formatting. ``` TransformHTML = RawHTML.Text; BEHtml.Text = TransformHTML; ``` How can I ensure that the formatting of the first Textbox will carry through to the second textbox when I assign it? Thanks. **UPDATE:** Seems to be a litt...
[ -0.07147340476512909, -0.20990189909934998, 0.8529967069625854, -0.04974877089262009, -0.14784026145935059, -0.09437616914510727, 0.19388654828071594, -0.6238433122634888, 0.023256056010723114, -0.8629217743873596, -0.349727064371109, 0.4562150835990906, -0.18761000037193298, -0.1314045637...
has the source of ``` TransformHTML = RawHTML.Text; BEHtml.Text = TransformHTML; ``` basically copies the Textbox.Text string to a string variable and then assignes that string variable to the other Textbox.Text I get the following output: ``` <tr> <td align="left" valign="middle" colspan="6" style="pa...
[ 0.08550769090652466, -0.16073128581047058, 0.8483918309211731, -0.06254067271947861, -0.24104177951812744, 0.012330765835940838, 0.0906253531575203, -0.4808080196380615, -0.07156571745872498, -0.7610141634941101, -0.13247577846050262, 0.30266278982162476, -0.23701828718185425, -0.026793567...
all the formatting? If you want to keep it, you may need to strip a bit less agressively.. Also, make sure the wordwrap option is set for the second textbox (could it be that simple?) **ANSWER FROM ORIGINAL QUESTIONER:** The answer above made me recheck my ASP.NET TextBox tag again and it was missing TextMode="MultiL...
[ 0.17920908331871033, -0.4279288649559021, 0.41747739911079407, 0.1758994311094284, -0.021252043545246124, -0.10895048081874847, 0.41651177406311035, -0.07535921037197113, -0.4501187205314636, -0.7051868438720703, -0.1882166564464569, 0.6507177352905273, -0.24319002032279968, -0.24975216388...
I need to write a small program for the university. The problem is, it has to be in C/C++ under linux, and I've never used linux, I anticipate having a lot of problems with the IDE, compilation, and all that. Is it possible to code it under windows and then "copy/paste" the code and compile it under linux? What are li...
[ 0.6499984264373779, 0.43018481135368347, 0.013585052452981472, 0.11927251517772675, 0.20570765435695648, -0.28282788395881653, 0.12275120615959167, 0.3470887839794159, 0.030756548047065735, -0.4987027049064636, 0.10269678384065628, 0.724549412727356, -0.10487507283687592, 0.179447025060653...
Forget about using an IDE, use vim (if you already get it) or nedit (more like notepad). Compile on the command line. Link it yourself. Write a make file to do this. This is the basics. You need to understand it before using an IDE. *Do this while you are still at university, because it's a pain and you will (and sho...
[ 0.7080740332603455, -0.0017292579868808389, -0.00789075531065464, 0.16189493238925934, -0.1530759185552597, -0.4135771095752716, 0.11519993841648102, 0.036108266562223434, 0.08146247267723083, -0.9395762085914612, -0.0032812159042805433, 0.6835259795188904, 0.24754634499549866, -0.23021450...
get you up and running. For writing small school projects, there is not much you need to know: `cd`, `ls`, `mkdir`, `make`, `gcc` (be sure to use `g++` for C++ projects - that has bitten me on my Mac before...). Stay close to your home directory (`~`). Doing your project on the target system will help you get certain ...
[ 0.5309568643569946, 0.01233568973839283, 0.23483817279338837, 0.23624078929424286, 0.26745837926864624, -0.6125810742378235, 0.4040207266807556, 0.3496871292591095, -0.4202819764614105, -0.8530530333518982, -0.3244647979736328, 0.7998580932617188, 0.20492373406887054, -0.1950303614139557, ...
to do this under Windows, your best bet is to have a POSIX environment under Windows. POSIX sockets are different to the Windows networking model if I remember correctly. Try either MinGW or Cygwin. Both should give you the \*nix development environment under Windows. You can use your favorite text editor (a Windows p...
[ 0.31506285071372986, -0.03516079857945442, 0.10207820683717728, 0.10075332224369049, -0.29616624116897583, -0.368386834859848, 0.26031923294067383, 0.2515673339366913, -0.2593369781970978, -0.8077713251113892, -0.13110309839248657, 0.867012083530426, -0.19685319066047668, -0.10364345461130...
with IDEs and have come to believe that they get in the way for starting off. Sure, you will need better tools for real life programs, but the overhead of project files etc. for school sample projects adds clutter. It also makes it harder to email your homework to your teacher - a zip with a bunch of .c and .h files an...
[ 0.6371090412139893, -0.14295026659965515, -0.13964875042438507, 0.5284243822097778, -0.06074780598282814, -0.37186935544013977, 0.13117720186710358, -0.33834773302078247, -0.21331314742565155, -0.5555294752120972, -0.06400088965892792, 0.3668021857738495, -0.14313216507434845, -0.262095242...
What is the correct way to implement and architect a command line tool as a C# console application? Concerns to address include proper parsing of command line variables, and the proper way to output text. While Console.WriteLine() is the most obvious choice for output, what are the circumstances in which one should in...
[ -0.036745455116033554, -0.034873079508543015, 0.3755826950073242, 0.24102818965911865, 0.14542464911937714, -0.08233270049095154, 0.16311347484588623, -0.17287234961986542, 0.12458634376525879, -0.43956848978996277, -0.24559596180915833, 0.7437631487846375, -0.33176690340042114, 0.08288863...
asynchronous operation is occurring on a separate thread? Is there a concise guide to command line tool programming in C#, or even better an open source project or template which I could use to properly implement a relatively simple tool? Error messages should be written to stderr aka Console.Error, and normal output ...
[ 0.1385866403579712, -0.13270334899425507, 0.196137472987175, 0.049809664487838745, -0.0735468864440918, -0.14327310025691986, 0.5444592833518982, 0.08365828543901443, -0.2805306613445282, -0.5725696086883545, -0.32038819789886475, 0.628912627696991, -0.36307522654533386, -0.085752189159393...
bother handling it. To return a result code, you can either pass it as an argument to Environment.Exit, set the Environment.ExitCode property, or return a non-zero value from main. For simple console apps I would: * have a helper class to parse the command line. * have a facade class that provides a testable API for...
[ 0.2293180525302887, 0.09942728281021118, 0.3857039213180542, -0.18885061144828796, 0.0987418070435524, 0.02858021855354309, 0.3278859555721283, -0.021441537886857986, -0.13404580950737, -0.6024672389030457, -0.10996537655591965, 0.9013236165046692, -0.41459864377975464, -0.0500764399766922...
catches exceptions thrown from the API, logs them, writes a user-oriented error message to Console.Error and sets a non-zero return code. But I wouln't consider this to be the one true way: there isn't really such a thing which is why you're unlikely to find the book you're looking for.
[ 0.05934908613562584, 0.30070093274116516, 0.32786381244659424, 0.2293987274169922, 0.07460962235927582, -0.22286935150623322, 0.610874593257904, 0.01847468689084053, -0.01801544986665249, -0.16556520760059357, -0.0833364948630333, 0.40342721343040466, -0.17158067226409912, -0.1501153558492...
I'm running sql analyzer on the following query ``` SELECT bl.Invoice_Number, bl.Date_Invoice, ti.TranNo, bt.Description, CONVERT(decimal(15,2), bl.Invoice_Amount) AS Invoice_Amount, co.Company_ID, co.Account_Nbr, isnull(bl.Reference,' ') as Reference, bl.Billing_Log_RecID AS BillingKey FROM [CONN.domain....
[ 0.22809948027133942, 0.2406178116798401, 0.6615810394287109, -0.1690492033958435, 0.13603940606117249, 0.22109155356884003, 0.023065727204084396, -0.20466215908527374, -0.1868574023246765, -0.4510922133922577, -0.007045857608318329, 0.4449000656604767, 0.00752917118370533, 0.34386879205703...
AND ti.TranNo IS NULL AND bl.Invoice_Amount <> 0 AND bl.Billing_Type_ID <> 'D' AND bl.Billing_Type_ID <> 'P' -- AND bl.Billing_Type_ID <> 'M' Order By bl.Invoice_Number ``` The query runs on the [App] server and connects to [Conn] sql server to do a join and the diagram is telling me ``...
[ 0.21053928136825562, 0.0010105877881869674, 0.8307587504386902, -0.019666478037834167, 0.3128131330013275, 0.10893118381500244, -0.02496296539902687, -0.3853573203086853, -0.04975546523928642, -0.6357559561729431, 0.05565992370247841, 0.9467889666557312, -0.28808510303497314, 0.09428504109...
would I go about figuring out how to make this run more efficiently? I"m guessing it has to do with connecting to another sql server on the same network. thanks in advance. you are doing a complete scan of the tarInvoice clustered index (touch every index entry), see if you can remove the function call dbo.\_fnStripL...
[ 0.03179226443171501, -0.06922740489244461, 0.35590797662734985, 0.22938714921474457, 0.011531160213053226, -0.03262887895107269, 0.16151206195354462, -0.17522650957107544, 0.033769551664590836, -0.5374705791473389, 0.19793005287647247, 0.8540518283843994, -0.43668463826179504, 0.1184779852...
OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] GO ```
[ 0.05323515459895134, 0.17124274373054504, 0.7670578360557556, -0.03909139335155487, 0.2906130254268646, -0.2984008491039276, 0.07935460656881332, -0.13852724432945251, -0.16459934413433075, -0.5513665080070496, -0.5600584745407104, 0.9064735174179077, -0.4561538100242615, 0.118828177452087...
I'm trying to simplify a bunch of header file "include spaghetti" by using forward declarations and moving #includes into the implementation file. However, I keep coming upon the following scenario: ``` //Foo.h #include "Bar.h" class Foo { public: void someMethod(Bar::someType_t &val); }; //Bar.h . . . class Bar {...
[ 0.4472769498825073, 0.32767897844314575, 0.15513812005519867, -0.3111173212528229, -0.2363557517528534, 0.0020344951190054417, 0.3077971339225769, -0.3506471812725067, -0.16153812408447266, -0.46806591749191284, -0.08771780133247375, 0.4643653333187103, -0.6045003533363342, 0.3155562877655...
the `typedef` which totally defeats the purpose of using a `typedef`. * You include the file which contains the `typedef`, which you want to avoid. The more interesting solutions: * Have all related `typedef`s in the same include and include that file. This creates code coupling between the classes though. You ought ...
[ 0.3608774244785309, 0.14912118017673492, -0.17469778656959534, 0.22735773026943207, -0.36927804350852966, -0.19560520350933075, 0.5684444904327393, -0.10975825786590576, -0.23655404150485992, -0.6892686486244202, -0.07288973778486252, 0.4610653519630432, -0.5243881344795227, 0.295332133769...
but it works. Those last two are like doing forward declarations but with added `typedef`s. They reduce file interdependencies since you are rarely modifying the typedef file. I'd say for most situations, the central include has the most benefit for hassle. Just be careful.
[ 0.29469430446624756, 0.09980808198451996, -0.09989822655916214, 0.21294598281383514, 0.02158043161034584, -0.35954082012176514, 0.44529518485069275, 0.12776589393615723, -0.2283419668674469, -0.46474123001098633, 0.030498409643769264, 0.6915874481201172, -0.16498728096485138, 0.23038065433...
I'm looking for some resources on build automation with VS2005 (VS2008 soon). I'd like to do things like delete all my files in my output folder, move all my build output to one folder, etc. I think this stuff is pretty basic but I don't know where to get started. Thanks! You can look at the Post Build Event in your p...
[ 0.4218224883079529, 0.06453754752874374, 0.3533870279788971, 0.1433843970298767, -0.0915437862277031, -0.2613866925239563, 0.33398178219795227, 0.13581396639347076, -0.1457245647907257, -0.9065536260604858, 0.2813095152378082, 0.75138920545578, 0.13951602578163147, 0.12096530199050903, -...
I'm curious and need to find this answer quick. Google won't help much. The Java Persistence API has these properties that tell the framework to cascade operations on associated entities: ``` CascadeType.PERSIST CascadeType.DELETE CascadeType.MERGE CascadeType.REFRESH ``` I know what the first two mean: when I pers...
[ 0.032767873257398605, 0.04094458743929863, 0.5190099477767944, -0.1532047837972641, -0.1774035394191742, 0.2478792667388916, 0.5636640191078186, -0.49433377385139465, -0.24948027729988098, -0.742342472076416, 0.19605420529842377, 0.28534162044525146, -0.4878300428390503, 0.213182270526886,...
like "push this detached entity back into managed status and save its state changes"; the cascading means that all associated entities get pushed back the same way, and the managed-entity handle you get back from `.merge()` has all managed entities associated with it. [Link to one instance of the relevant docs](http:/...
[ 0.05264122784137726, -0.3531070053577423, 0.19221636652946472, -0.011650153435766697, 0.32315099239349365, -0.28554633259773254, 0.014666625298559666, 0.06886734813451767, -0.38978123664855957, -0.538113534450531, -0.4475780129432678, 0.27491477131843567, -0.1699979305267334, 0.25137120485...
I'm working on a piece of software that creates a contract and captures the client's signature via gif and applies it to the contract (and spits out a pdf). Now, we're storing the data from the contract but when it comes to the signature, I'm not sure if I should. Store it: Pros: If the pdf document is lost, I can re...
[ 0.572023332118988, 0.20964863896369934, 0.6189396977424622, 0.17293092608451843, 0.7281261086463928, -0.27834320068359375, -0.07135394960641861, -0.2683680057525635, -0.16847355663776398, -0.6244445443153381, -0.041212812066078186, 0.48102590441703796, 0.1751466691493988, -0.06193726137280...
anything with the stored signature, I can't be certain that, if I ever leave the company, my coworkers or replacements will honor that. Don't Store it: Pros: Ethical high ground, there's no option for anyone now or in the future to use that image and do anything with it. It keeps everyone honest. Cons: Now there is n...
[ 0.5406968593597412, 0.2664223313331604, 0.5014486908912659, 0.4399208128452301, 0.43889936804771423, -0.4075993597507477, 0.0017968767788261175, 0.17027173936367035, -0.3140811622142792, -0.3903944492340088, -0.02058810368180275, 0.5374490022659302, 0.12017118185758591, 0.08869870752096176...
you CANNOT extract the original GIF. Such as taking a png file for the whole document, or some other solution. However, if you are storing the whole document with the signature embedded (and not extractable) then you have your ability to resend the signature, and you have no reason to store the unattached GIFs. Ulti...
[ 0.49144795536994934, 0.0697358101606369, 0.15777930617332458, 0.27160319685935974, 0.40239232778549194, -0.3923235237598419, 0.13879847526550293, -0.2223084568977356, -0.35210925340652466, -0.30143648386001587, -0.2978828549385071, 0.4890686273574829, -0.04551137611269951, 0.18367403745651...