text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
I have a list of elements describing events that took place at some time, the time being represented as a Datetime property 'StartTime' on the objects. I now wish to extract a subset of these events containing those elements that are placed in an interval / between two DateTime instances A,B such that StartTime >= A &&...
[ -0.10530135035514832, 0.057559508830308914, 0.3217032849788666, -0.14935263991355896, 0.2746792435646057, -0.013988477177917957, -0.04442456737160683, -0.030354825779795647, -0.22427019476890564, -0.35344037413597107, 0.037269800901412964, 0.1480463743209839, -0.04406410828232765, 0.237965...
functionality over the key, but that doesnt seem to be the case. Any ideas if this can be archived relatively simple with existing framework classes, or would I have to make some sort of custom binary search based on a SortedList? If possible, I would keep the instances in an array, sorted by the StartTime, and then ca...
[ 0.09948871284723282, -0.14299209415912628, 0.16145329177379608, 0.030088113620877266, 0.03865334019064903, -0.34673264622688293, 0.2762666642665863, 0.19115211069583893, -0.3998955190181732, -0.6578367948532104, -0.13425998389720917, 0.6032817959785461, -0.08717121183872223, 0.179325774312...
// Possibly passed to the call to BinarySort. private class ComparisonComparer : Comparer<T> { Comparison<T> comparison; internal static IComparer<T> Create(Comparison<T> comparison) { // If comparison is null, return the default comparer for T. if (comparison ==...
[ -0.15119415521621704, -0.2202090173959732, 0.0013545380206778646, 0.21707315742969513, -0.15302357077598572, 0.6127877831459045, 0.18285202980041504, -0.29866692423820496, 0.1015663743019104, -0.6313422322273254, -0.026965446770191193, 0.4691077172756195, -0.45101258158683777, 0.5783986449...
// Return the default. return Comparer<T>.Default; } // Return a new implementation. return new ComparisonComparer(comparison); } private ComparisonComparer(Comparison<T> comparison)
[ 0.05405466631054878, -0.21936507523059845, 0.2733019292354584, 0.06851404905319214, -0.23309729993343353, 0.653680145740509, 0.12507030367851257, -0.4000519812107086, 0.014815233647823334, -0.7830390930175781, 0.04039774090051651, 0.6615319848060608, -0.46647346019744873, 0.366278678178787...
{ this.comparison = comparison; } public override int Compare(T x, T y) { return comparison(x, y); } } // The elements. T[] elements; // The IComparable implementation. IComparer<T> comparer; // Do
[ -0.06212987005710602, -0.13340458273887634, 0.09990307688713074, 0.27555549144744873, -0.0225253663957119, 0.320124089717865, 0.11437387764453888, -0.5952346920967102, 0.016310090199112892, -0.6594155430793762, -0.09249141812324524, 0.3886656165122986, -0.4351087808609009, 0.43389773368835...
not assume sorting. public BinarySearcher(IEnumerable<T> elements) : this(elements, false, (IComparer<T>) null) { } // Use default comparer. public BinarySearcher(IEnumerable<T> elements, bool sorted) : this(elements, sorted, (IComparer<T>) null) { } // Assume no sorting. public B...
[ -0.4182209372520447, -0.07087867707014084, -0.23902957141399384, -0.015580294653773308, -0.11376899480819702, 0.1692572683095932, 0.3986859619617462, 0.0643763318657875, -0.16952931880950928, -0.8011760115623474, -0.5164702534675598, 0.2612871527671814, -0.5050160884857178, -0.098197802901...
ComparisonComparer.Create(comparer)) { } // Convert to IComparable<T>. public BinarySearcher(IEnumerable<T> elements, bool sorted, Comparison<T> comparer) : this(elements, sorted, ComparisonComparer.Create(comparer)) { } // No sorting. public BinarySearcher(IEnume...
[ -0.4651637077331543, -0.13208317756652832, 0.10223404318094254, 0.1565045267343521, -0.16055046021938324, 0.36636099219322205, 0.08066819608211517, -0.10832048207521439, -0.060077790170907974, -0.7423401474952698, -0.1789269894361496, 0.27700838446617126, -0.5349477529525757, 0.37847933173...
this(elements, false, comparer) { } // Convert to array. public BinarySearcher(IEnumerable<T> elements, bool sorted, IComparer<T> comparer) : this(elements.ToArray(), sorted, comparer) { } // Assume no sorting. public BinarySearcher(T[] elements) : this(elements, false) { } /...
[ -0.39510583877563477, -0.08881181478500366, 0.004472233820706606, -0.1747036576271057, -0.08180932700634003, 0.21776458621025085, 0.37912237644195557, -0.05765819549560547, -0.13901346921920776, -0.572474479675293, -0.3827657997608185, 0.4146454930305481, -0.5707513689994812, -0.0320481918...
// Assume not sorted. public BinarySearcher(T[] elements, Comparison<T> comparer) : this(elements, false, ComparisonComparer.Create(comparer)) { } // Create IComparable<T> from Comparable<T>. public BinarySearcher(T[] elements, bool sorted, Comparison<T> comparer) : this(elemen...
[ -0.3227374851703644, -0.17058917880058289, -0.264884352684021, 0.3165932893753052, 0.055489953607320786, 0.3047400712966919, 0.3118533492088318, -0.114012710750103, -0.11014056205749512, -0.4686712622642517, -0.37845689058303833, 0.4510769546031952, -0.4366775453090668, 0.09344606101512909...
} public BinarySearcher(T[] elements, bool sorted, IComparer<T> comparer) { // If the comparer is null, create the default one. if (comparer == null) { // Set to the default one. comparer = Comparer<T>.Default; }
[ -0.5100637674331665, -0.26264694333076477, -0.20102551579475403, -0.000221815804252401, 0.24186205863952637, 0.3111608028411865, 0.2606487274169922, 0.16115860641002655, 0.08729052543640137, -0.5406859517097473, -0.3414926528930664, 0.5718565583229065, -0.6825941801071167, 0.04804693907499...
// Set the comparer. this.comparer = comparer; // Set the elements. If they are sorted already, don't bother, // otherwise, sort. if (!sorted) { // Sort. Array.Sort(elements, this.comparer); }
[ -0.1603519320487976, -0.0578010156750679, 0.22165162861347198, -0.13348376750946045, 0.10624997317790985, 0.13648316264152527, 0.10006525367498398, -0.394514799118042, -0.1423303633928299, -0.6105539798736572, -0.2103910744190216, 0.3661416172981262, -0.47065815329551697, -0.11029355973005...
// Set the elements. this.elements = elements; } public IEnumerable<T> Between(T from, T to) { // Find the index for the beginning. int index = Array.BinarySearch(this.elements, from, comparer); // Was the item found? bool found = (index >= 0); // If the
[ -0.14466357231140137, -0.10865011811256409, 0.18539749085903168, 0.03250598907470703, 0.23623453080654144, 0.09426504373550415, 0.05886007472872734, -0.28771430253982544, 0.05652220919728279, -0.3077010214328766, -0.21737918257713318, 0.27655208110809326, -0.23464570939540863, 0.0335768163...
item was not found, take the bitwise // compliment to find out where it would be. if (!found) { // Take the bitwise compliment. index = ~index; } // If the item was found, cycle backwards from
[ -0.1025463417172432, -0.38426369428634644, 0.21962101757526398, -0.12923099100589752, -0.006253348663449287, 0.03299003839492798, 0.04772363603115082, -0.010513677261769772, -0.02862856537103653, -0.46325597167015076, -0.1535063087940216, 0.6016164422035217, -0.211288720369339, 0.000078051...
// the index while there are elements that are the same. if (found) { // Cycle backwards. for (; index >= 0 && comparer.Compare(from, elements[index]) == 0; --index) ;
[ -0.09193041175603867, -0.04008626565337181, 0.34343329071998596, -0.3978867530822754, 0.30970239639282227, 0.00894487090408802, 0.24133872985839844, -0.5524960160255432, 0.05210956558585167, -0.623491108417511, -0.13930779695510864, 0.5483787059783936, -0.26829537749290466, 0.0117471525445...
// Add one to the index, since this is on the element // that didn't match the comparison. index++; } // Go forward now. for ( ; index < elements.Length; index++) {
[ -0.1606149524450302, -0.19838455319404602, 0.21296413242816925, -0.25756606459617615, 0.1014876440167427, 0.10813639312982559, 0.09607411175966263, -0.5020348429679871, -0.11735839396715164, -0.5127535462379456, -0.017387015745043755, 0.2509765028953552, -0.25026658177375793, 0.17424103617...
// Return while the comparison is true. if (comparer.Compare(elements[index], to) <= 0) { // Return the element. yield return elements[index]; } else
[ -0.06488215178251266, 0.014942735433578491, 0.1596192717552185, -0.18727752566337585, 0.1092754453420639, 0.22029252350330353, 0.2659132480621338, -0.6402304768562317, 0.4075845181941986, -0.505313515663147, -0.16526181995868683, 0.5357174873352051, -0.150605708360672, 0.04028819501399994,...
{ // Break yield break; } } } } ``` Most of what is here are helpers to initialize the class, which will need a method of comparing two items (`IComparer<T>` and `Comparable<T>` are taken here). The class also lets you
[ -0.02140830084681511, -0.018194284290075302, 0.03835137188434601, 0.40497666597366333, -0.12374913692474365, -0.14200204610824585, 0.0741596519947052, -0.06375713646411896, -0.15277715027332306, -0.5584762692451477, -0.12611882388591766, 0.42183807492256165, -0.028952881693840027, 0.113149...
take in a raw array which is already sorted, in case you want to add/remove/update elements in the proper positions yourself later on (without having to resort the array all the time). The meat of the class is in the call to Between. It takes a from value, which will be passed to the static BinarySearch method on the ...
[ -0.04126215726137161, -0.5666054487228394, -0.1854514628648758, -0.12828238308429718, -0.08455218374729156, 0.14064037799835205, -0.08930615335702896, -0.18434029817581177, 0.025159036740660667, -0.40086331963539124, -0.08623136579990387, 0.418724924325943, -0.2739192545413971, -0.06599014...
with the same value in the array. Then, it cycles forward, returning the items in the enumeration while the current element is less than or equal to the to value. In your particular situation, assuming you had a class like this: ``` public class Task { public string Name; public DateTime StartTime; } ``` Y...
[ -0.036816008388996124, -0.5486117005348206, 0.3676793575286865, -0.24020133912563324, 0.07435894757509232, 0.2475634664297104, 0.020385529845952988, -0.16650350391864777, -0.5729480385780334, -0.5939931869506836, -0.15390846133232117, 0.3928775489330292, -0.2767913341522217, 0.193671852350...
new Task() { Name = "Task 3", StartTime = new DateTime(2009, 02, 12) }, new Task() { Name = "Task 4", StartTime = new DateTime(2009, 02, 11) }, new Task() { Name = "Task 5", StartTime = new DateTime(2009, 02, 10) }, new Task() { Name = "Task 6", StartTime = new DateTime(2009, 02, 01) }, new Task() { Nam...
[ -0.3205864727497101, -0.5038921236991882, 0.8510876297950745, -0.3089681565761566, 0.15605038404464722, 0.4180319607257843, 0.24906602501869202, -0.19237300753593445, -0.46285274624824524, -0.7944954037666321, -0.370768278837204, 0.508174479007721, -0.14441129565238953, 0.4292695224285126,...
in searcher.Between( new Task() { StartTime = new DateTime(2009, 02, 13) }, new Task() { StartTime = new DateTime(2009, 02, 10) })) { // Write. Console.WriteLine(t); } ```
[ -0.28217893838882446, -0.36755606532096863, 0.7570093870162964, -0.29285910725593567, 0.6449869871139526, 0.02269047684967518, 0.09474757313728333, 0.11342156678438187, -0.024047140032052994, -0.7491083145141602, -0.4034012258052826, 0.5316497683525085, -0.3061830699443817, 0.4126295447349...
I use $Rev:$ in a file to have the revision number, the problem is that the file does not change a lot so the number is not automatically updated. Any help in how to do this? $Rev$ won't work the way you expect it. If you're using command-line subversion you have [svnversion](http://svnbook.red-bean.com/en/1.4/svn.ref...
[ 0.28485044836997986, 0.06468754261732101, 0.9724196791648865, -0.16850292682647705, -0.3026793599128723, -0.13526824116706848, 0.4363948702812195, -0.27639132738113403, -0.44021373987197876, -0.7581496238708496, 0.011638599447906017, 0.9908860921859741, -0.08950258046388626, 0.360453605651...
Is there a way to test if a variable will fail the INPUT conversion process in SAS ? Or alternatively, if the resulting "NOTE: Invalid argument" message can be avoided? ``` data _null_; format test2 date9.; input test ; test2=INPUT(PUT(test,8.),yymmdd8.); if _error_ =1 then do; _error_=0; test2=INP...
[ 0.28334367275238037, -0.10604416579008102, 0.26017889380455017, -0.1836918443441391, 0.06572576612234116, 0.125873863697052, 0.30366042256355286, -0.5112144351005554, -0.18863607943058014, -0.5698432326316833, -0.40730777382850647, 0.19868619740009308, 0.01468465756624937, 0.08708702027797...
If an employee leaves the company we need a way to find all the places that person has been granted permission in SharePoint. And then of course we would need to remove those permissions or if they are a site owner, change the owner to another employee. Has anybody done this or have an idea where to start? I recently ...
[ 0.5762434005737305, 0.1424575299024582, 0.5477132201194763, 0.19854924082756042, 0.3059707581996918, -0.30774176120758057, -0.06371020525693893, -0.08488641679286957, -0.6245923042297363, -0.2748444676399231, -0.16821976006031036, -0.0054302942007780075, -0.09289166331291199, 0.43512919545...
which you can get the name of the user or group that has been assigned permission to this object. This allows you to get the permissions even if the list or folder is not inheriting from a parent. The [Access Checker Web Part](http://www.codeplex.com/AccessChecker) mentioned earlier does this, but it does not look at s...
[ 0.3143415153026581, 0.07226130366325378, 0.20543958246707916, 0.28412431478500366, 0.23193351924419403, -0.36938410997390747, 0.18977133929729462, -0.2638283371925354, -0.5823664665222168, -0.3975476920604706, -0.32744142413139343, 0.1641656458377838, -0.21551820635795593, 0.26311820745468...
functionality to display this quickly and simply.
[ 0.26934558153152466, 0.07651825249195099, 0.37385159730911255, 0.1940975934267044, 0.06171369552612305, -0.19681403040885925, 0.0818876326084137, -0.05322420224547386, -0.10978925228118896, -0.70939701795578, -0.13846322894096375, 0.5700153112411499, -0.0717984288930893, -0.052992515265941...
Should I load child forms in the Constructor or the FormLoad()? I have some code that is calling a custom class that embeds a form in a control. I had originally been declaring my child forms outside the Constructor and then calling a FormPaint() routine in the FormLoad() to then load the forms like so: ``` internal ...
[ 0.18486030399799347, -0.11795724183320999, 0.6996430158615112, -0.3767467439174652, 0.12518997490406036, -0.010311959311366081, 0.37563014030456543, -0.6708739995956421, 0.22610382735729218, -0.5256609916687012, -0.18380260467529297, 0.5856271982192993, -0.09611780941486359, 0.226584374904...
WinFormCustomHandling.ShowFormInControl(frmWWCMemberHost, ref tpgMember, FormBorderStyle.FixedToolWindow, -4, -2); WinFormCustomHandling.ShowFormInControl(frmWWCEnrollmentHost, ref tpgEnrollment, FormBorderStyle.FixedToolWindow, -4, -2); // Call each top-Level (visible) tabpage's form FormPaint() frmWWCMCP...
[ -0.004856577608734369, -0.028806021437048912, 0.8873136043548584, -0.11181359738111496, -0.21875107288360596, -0.25600218772888184, 0.07345546782016754, -0.3363061547279358, -0.16980557143688202, -0.5390284657478333, -0.3070393204689026, 0.6444444060325623, -0.15721942484378815, 0.03901288...
in the constructor will I be using far more unnecessary resources? Will I be gaining anything? How do I decide? Interesting question Mr\_Mom. My recommendation would be to use your constructors to do only the setup needed for the sub forms and put off loading the sub forms until the parent formLoad(). As for resource...
[ 0.5111562013626099, 0.1320401281118393, 0.21160875260829926, 0.2598159909248352, 0.3297911286354065, 0.04105576500296593, -0.1021319031715393, -0.08792895078659058, -0.13564433157444, -0.6711804866790771, 0.3141860365867615, 0.5150017738342285, 0.09759164601564407, 0.31003671884536743, -...
Press alt + numeric in bash and you get (arg [numeric]) what is that? (This type of question is better suited for asking a human, instead of trying to "guess" for the correct terminology to search on the documentation via internet). The term you want to google for is: ``` "readline arguments" ``` This will lead to,...
[ 0.12745904922485352, 0.028560569509863853, 0.38852569460868835, -0.18499980866909027, -0.24947242438793182, 0.002506804885342717, 0.21552972495555878, -0.30106237530708313, -0.043313708156347275, -0.2273363173007965, -0.199741929769516, 0.7315087914466858, -0.2091042846441269, -0.229599714...
in a forward direction, that command will act in a backward direction. For example, to kill text back to the start of the line, you might type 'M-- C-k'. > > > The general way to pass numeric arguments to a command is to type meta digits before the command. If the first 'digit' typed is a minus sign ('-'), then the s...
[ -0.1873847395181656, -0.05867826193571091, 0.26369982957839966, 0.007566189859062433, -0.28177210688591003, 0.42226797342300415, 0.27819526195526123, -0.3000835180282593, 0.12577056884765625, -0.33008161187171936, -0.21484483778476715, 0.44588717818260193, -0.327519029378891, 0.00428941752...
argument of 10, you could type 'M-1 0 C-d', which will delete the next ten characters on the input line. For that to work, you have to know where the Meta key is mapped: sometimes it's `Alt`, sometimes it's `Esc`, cool computers have a dedicated Meta key ;) For those not familiar with the syntax, 'M-- C-k' is the equ...
[ -0.41348862648010254, 0.15513071417808533, 0.5757552981376648, -0.04458863288164139, -0.034338872879743576, 0.5497022271156311, -0.09754710644483566, -0.2080632746219635, -0.019343199208378792, -0.5512022376060486, -0.26650315523147583, 0.740791380405426, 0.03581008315086365, -0.1922020316...
presses.
[ -0.07416766881942749, 0.04323093220591545, 0.05710223689675331, 0.10083303600549698, 0.35466083884239197, 0.33341166377067566, -0.5444978475570679, 0.0848693773150444, -0.4160906672477722, -0.5559962391853333, -0.13347585499286652, 0.5567613244056702, 0.15968890488147736, 0.014334789477288...
I am writing a test that depends on the results of an extension method but I don't want a future failure of that extension method to ever break this test. Mocking that result seemed the obvious choice but **Moq doesn't seem to offer a way to override a static method** (a requirement for an extension method). There is a...
[ 0.34102848172187805, 0.043187014758586884, 0.1332181841135025, 0.11672286689281464, -0.197550430893898, -0.17558470368385315, 0.5018727779388428, 0.17081457376480103, -0.13057272136211395, -0.4077302813529968, 0.334574431180954, 0.5198364853858948, -0.24519723653793335, 0.15904442965984344...
on a non-overridable member"***. This is a bad example of needing to mock an extension method, but it should do. ``` public class SomeType { int Id { get; set; } } var ListMock = new Mock<List<SomeType>>(); ListMock.Expect(l => l.FirstOrDefault(st => st.Id == 5)) .Returns(new SomeType { Id = 5 }); ``` A...
[ 0.5184204578399658, 0.08395037800073624, 0.44186100363731384, -0.13402284681797028, -0.10194604843854904, 0.05818731337785721, 0.7135630249977112, -0.2524111270904541, -0.152938574552536, -0.6168993711471558, -0.09206437319517136, 0.5559559464454651, -0.3315979242324829, -0.025818245485424...
like Moq or Rhinomocks can only create mock instances of objects, this means mocking static methods is not possible.
[ 0.21756723523139954, 0.25178882479667664, -0.24099504947662354, 0.17899812757968903, -0.3863261044025421, -0.025065654888749123, 0.8389625549316406, 0.22188721597194672, -0.36694440245628357, -0.3336895704269409, -0.19166895747184753, 0.2758771777153015, -0.6390299201011658, -0.02807547338...
I'm trying to match the h4 of a div (using jQuery) so that I can remove it's top margin. However, I only want to match the h4 if it has no text on top of it. For example, match this: ``` <div> <h4>Header</h4> ... </div> ``` but not this: ``` <div> Blah blah blah. <h4>Header</h4> ... </div> ``` The best ...
[ -0.07075201719999313, 0.1655546873807907, 0.4586089253425598, -0.17180024087429047, -0.10256476700305939, -0.00512700667604804, -0.26469653844833374, -0.3325796127319336, 0.05603843554854393, -0.7916480898857117, -0.11918081343173981, 0.377139687538147, -0.1949004977941513, -0.021030152216...
disguise. Mocking frameworks like Moq or Rhinomocks can only create mock instances of objects, this means mocking static methods is not possible.
[ 0.21828053891658783, 0.12052919715642929, 0.008760673925280571, 0.33407387137413025, -0.32116666436195374, -0.016530605033040047, 0.8073841333389282, 0.06580759584903717, -0.01571403443813324, -0.4570310711860657, -0.11647366732358932, 0.44104519486427307, -0.540253221988678, -0.1733474433...
I include a JS file in a user control. The host page has multiple instances of the user control. The JS file has a global variable that is used as a flag for a JS function. I need the scope of this variable be restricted to the user control. Unfortunately, when I have multiple instances of the control, the variable v...
[ 0.1490081548690796, 0.2775753438472748, 0.20093469321727753, 0.16554421186447144, 0.044970568269491196, -0.08160395920276642, 0.14868733286857605, -0.11102272570133209, -0.07273193448781967, -0.6963958144187927, -0.06872766464948654, 0.21005749702453613, -0.5925112962722778, 0.318983882665...
by a good margin. You can pass in the id of the UserControl to the common JS method(s) to differentiate between the UserControls. For the issue of limiting the scope of your 'UserControl' variable, you could store some sort of a Key/Value structure to keep your UserControl-specific value - the Key would be the UserC...
[ -0.10851489752531052, 0.14303813874721527, 0.6845901012420654, -0.08116751164197922, 0.10977552086114883, -0.021751275286078453, -0.07780023664236069, -0.24986879527568817, -0.13413019478321075, -0.8018192052841187, -0.26543667912483215, 0.5381188988685608, -0.16992749273777008, 0.16576588...
the server-side, you can replace the constant strings "UC1" or "UC2" with ``` <%= this.ClientID %> ``` like this: ``` myFlag = UCFlags["<%= this.ClientID %>"]; ``` You can still use the <%= this.ClientID %> syntax here even though the bulk of the JS is in a separate file; simply set ``` UCFlags["<%= this.Clien...
[ -0.13451136648654938, -0.12666042149066925, 0.6656820178031921, -0.3150215148925781, -0.06803030520677567, -0.06993910670280457, -0.03215285390615463, 0.3385374844074249, -0.07603491842746735, -0.7491572499275208, -0.3996954560279846, 0.5321102738380432, -0.25311002135276794, 0.11279434710...
I have a snippet of code that writes the data alphabetically from a database *ACROSS 3 columns* on a web page. Example: ``` a result b result c result d result e result f result g result h result i result ``` I need instead to display it *alphabetically DOWN the columns*, like this: ``` a result d res...
[ 0.06475932896137238, 0.18575529754161835, 0.40650391578674316, -0.022886205464601517, -0.25365450978279114, 0.22849975526332855, 0.218241885304451, -0.3685070276260376, -0.05836929753422737, -0.674812376499176, -0.010357887484133244, 0.07503899186849594, -0.2246483862400055, 0.250035911798...
a new column and continue, breaking it into 3 equal parts. The code I have now that sorts across the rows is: ``` <% GL="<table width="+Z+"100%"+Z+"border=0 cellpadding=3 celspacing=3>" sql="select * from guideDef order by guideDesc;" rs.open sql,adoCon colCount=0 do while not rs.eof colCount=(colCount+1) mod 3 ...
[ -0.1271238774061203, 0.11567948013544083, 1.2286337614059448, -0.021992642432451248, -0.07202444225549698, 0.11484744399785995, 0.26091301441192627, -0.536910891532898, -0.5221337080001831, -0.5421644449234009, 0.012888064607977867, 0.4147545099258423, -0.41113534569740295, 0.0623887255787...
code will solve your problem: ``` <% Set rs = Server.CreateObject("ADODB.RecordSet") Set adoCon = Server.CreateObject("ADODB.Connection") adoCon.Open "your connection string here" Const COLUMN_COUNT = 3 Const adOpenStatic = 3 sql = "SELECT guide, guideDesc FROM guideDef ORDER BY guideDesc;" rs.Open sql,...
[ 0.1001906618475914, 0.07414501905441284, 0.6562293171882629, 0.2606453597545624, 0.2873869240283966, 0.060945410281419754, 0.4515385925769806, -0.5281208753585815, -0.07770846784114838, -0.4074344038963318, 0.017863120883703232, 0.671883761882782, -0.3151049315929413, -0.1777746081352234, ...
CellsRemain & " stand-alone cells.</div>" Response.Write "<table width=""100%"" border=""0"" cellpadding=""3"" celspacing=""3"">" & vbCrLf done = 0 cell = 0 While done < rs.RecordCount Response.Write "<tr>" & vbCrLf While cell < COLUMN_COUNT And done < rs.RecordCount cell = cell + 1 done = done...
[ -0.2672182023525238, -0.016730651259422302, 1.1435010433197021, 0.09622450917959213, 0.20692062377929688, 0.03933741897344589, 0.26018092036247253, -0.694097101688385, -0.4193595349788666, -0.38257983326911926, -0.2557007968425751, 0.23118825256824493, -0.14930929243564606, 0.0833390504121...
= "shop.asp?guide=" + Server.UrlEncode(guide) + "&city=Plantation" Response.Write "<td>" Response.Write "<a href=""" & Server.HtmlEncode(url) & """>" Response.Write Server.HtmlEncode(guideDesc) Response.Write "</td>" & vbCrLf If cell < COLUMN_COUNT Then rs.Move RowCount Wend If done < rs.Record...
[ -0.06431738287210464, -0.17010119557380676, 1.1231229305267334, -0.0546322762966156, -0.004176539368927479, 0.2003518044948578, 0.3357807993888855, -0.7857427597045898, -0.5301127433776855, -0.544791579246521, -0.4018023610115051, 0.19600257277488708, -0.3273007273674011, 0.192739710211753...
1 Wend End If Response.Write "</tr>" & vbCrLf Wend Response.Write "</table>" & vbCrLf %> ``` This renders your table the way you want it: ``` A E H B F I C G J D ``` You can use the `COLUMN_COUNT` constant to control how many columns will be made. The algorithm flexibly adapts to that number. What...
[ -0.12974053621292114, -0.12794238328933716, 0.532279908657074, 0.027895893901586533, -0.191325381398201, -0.29611775279045105, 0.03800436109304428, -0.4616192877292633, -0.5831120610237122, -0.6278195977210999, -0.300397664308548, 0.23168767988681793, -0.4223494529724121, -0.06751573085784...
full 5. jump back to the record that's after the one we started with in step 4 6. `</tr>` 7. if there are still records left, go to step 3 8. render as many empty cells as we need to make the table well-formed 9. done.
[ 0.34707707166671753, 0.18178041279315948, 0.4064939320087433, -0.08473774790763855, 0.18451069295406342, -0.11301296949386597, 0.25647225975990295, -0.11224009096622467, -0.5952091217041016, -0.5765178203582764, -0.25213679671287537, 0.47924497723579407, -0.043730784207582474, 0.0814907774...
I wanted to do ``` typedef deque type; //error, use of class template requires template argument list type<int> container_; ``` But that error is preventing me. How do I do this? You can't (until C++0x). But it could be emulated with: ``` template<typename T> struct ContainerOf { typedef std::deque<T> type; }; `...
[ 0.4091782867908478, -0.005441352259367704, 0.412844717502594, -0.08508769422769547, 0.22796663641929626, -0.10803855955600739, 0.3717711269855499, -0.48829060792922974, -0.012214293703436852, -0.5840207934379578, -0.05862414836883545, 0.5352357625961304, -0.37973907589912415, 0.08356957882...
So I've been trying to figure out the most efficient way to pull off this trick: I have a two column primary key in the database (an int and a string) and I'm trying to make a cache (I like using dictionaries) and I need to have a way to reference the two values as a key to get the object out. The key is ``` private...
[ 0.1730511635541916, 0.29524311423301697, 0.5016147494316101, -0.006984060164541006, -0.055765751749277115, -0.11432523280382156, 0.3143060803413391, 0.06104642525315285, 0.05032232403755188, -0.7599475979804993, 0.17701441049575806, 0.43626901507377625, -0.368527889251709, 0.34003978967666...
memory once this thing gets 10,000 entries put in it. My understanding that the memory footprint of a struct is smaller than that of a class. Why not use the PageNameOnSise the key to the Dictionary? You'd need to override a few things but it's not too bad. ``` private struct PageNameOnSite { public int siteId; ...
[ -0.3080151379108429, 0.12952734529972076, 0.5966170430183411, -0.29698821902275085, 0.25066351890563965, 0.06305380910634995, 0.4470178186893463, -0.18072547018527985, 0.046087995171546936, -0.761692225933075, -0.1425028145313263, 0.3947427570819855, -0.15777599811553955, 0.142876431345939...
== other.siteId && StringComparer.Oridinal.Equals(pageName, other.pageName); } public override int GetHashCode() { return sideId + pageName.GetHashCode(); } } ``` Then you can just use a quick lookup with an id pageName pair ``` public static object Loopup(Dictionary<PageNameOnSite,object> map, int id, string ...
[ -0.2506355047225952, -0.0898677334189415, 0.7656638026237488, -0.19788514077663422, 0.17166802287101746, 0.004410766996443272, 0.3015187978744507, -0.3304247260093689, -0.11278784275054932, -0.7674949169158936, -0.22733624279499054, 0.41574859619140625, -0.40351131558418274, 0.131822228431...
I don't know if jssh has any security built-in. While testing web apps, I would only like to be able to connect to jssh from localhost. I added the following lines to iptables : ``` iptables -A INPUT -p tcp -s 0/0 --dport 9997 -j LOG iptables -A INPUT -p tcp -s 0/0 --dport 9997 -j DROP ``` will they provide the sec...
[ 0.03417198359966278, 0.1678602248430252, 0.5531682968139648, 0.041666895151138306, 0.09215282648801804, -0.2522158622741699, 0.6408381462097168, -0.2713019549846649, -0.020626509562134743, -0.6678552627563477, -0.2648612856864929, 0.6713599562644958, -0.1394052803516388, -0.055933050811290...
from the connected user. Imagine the potential harm it could do if someone connects to a jssh shell that's being ran by an user with administrative priviledges . EDIT2 : Just because I don't have a problem with the code I write, this doesn't mean that this question should be dismissed. I think it's a legitimate questi...
[ 0.16084057092666626, -0.10046035051345825, 0.1237281784415245, 0.14623481035232544, -0.005001220386475325, -0.32198017835617065, 0.251144140958786, 0.16587333381175995, -0.22581110894680023, -0.6697205901145935, -0.18324045836925507, 0.5424823760986328, -0.47819986939430237, 0.252492517232...
The documentation at <http://code.google.com/android/reference/android/widget/AbsoluteLayout.html> says: ``` onLayout(boolean changed, int l, int t, int r, int b) //Called from layout when this view should assign a size and position to each of its children. ``` So I overrode it like this: ``` @Override protected v...
[ 0.10929715633392334, -0.024302244186401367, 0.910940945148468, -0.08040687441825867, 0.6411355137825012, 0.6661696434020996, 0.05923326313495636, -0.2798122465610504, -0.027970973402261734, -0.6869859099388123, -0.291965126991272, 0.2737422585487366, 0.04207397252321243, 0.4826737344264984...
the child elements (buttons) in the XML for the layout. This correctly sets the position of the buttons but not the size. The size is being taken from what is defined in the XML (it's a required attribute). On your link it also says > This class is deprecated. Don't spent time making something work that is going to ...
[ 0.10684772580862045, -0.0276314876973629, 0.31248971819877625, -0.045349836349487305, 0.37465351819992065, 0.31140202283859253, -0.16800934076309204, -0.16972579061985016, -0.24439749121665955, -0.5784745812416077, -0.22961942851543427, 0.26475784182548523, -0.2124556303024292, -0.02590587...
This one is causing me a few nightmares as I'm on the live box trying to work out what is going wrong! If someone accesses our ASP.Net MVC website with the full URL <http://www>..net all is OK. If they go to: http://.net then our custom error page is shown. This used to work OK before we moved the site to MVC. We do...
[ 0.03512575477361679, 0.059486933052539825, 0.3540370762348175, -0.021088982000947, -0.20420004427433014, -0.20601022243499756, 0.6694782972335815, 0.5384292006492615, -0.578549325466156, -0.7910510897636414, 0.2141883820295334, 0.47016286849975586, -0.2870226800441742, 0.33046242594718933,...
the site behaves correctly! We're using the MVC Beta at the moment. Edit: We're running on IIS6 and using the MVC routing for friendly URLs. This is impossible to test locally which is fustrating as it only happens on live without the www. I wonder if it is something to do with routing...... Thanks! The problem is ...
[ 0.6795415282249451, 0.045711565762758255, 0.2759821116924286, 0.012378614395856857, -0.22673223912715912, -0.47185152769088745, 0.7869672179222107, 0.15083560347557068, -0.1320524513721466, -0.6366804242134094, -0.1148439422249794, 0.5199639797210693, -0.4167097508907318, 0.372211486101150...
with your response. As for why the error goes away when you turn customErrors off, well, I have no idea sorry. On a side-note, if you're concerned with Google ranking, you may want to use a rewriting tool (like Isapi Rewrite and I think built-in to IIS7) to send an automatic redirect (HTTP 301 response) that will sen...
[ 0.4042903482913971, -0.023212658241391182, 0.4082764685153961, 0.14511477947235107, -0.2888200283050537, -0.15226054191589355, 0.5304490327835083, 0.026051655411720276, -0.20659273862838745, -0.45676562190055847, 0.039999477565288544, 0.5490780472755432, -0.2609421908855438, 0.028043787926...
I'm not sure if Application\_Error is really the best way to deal with errors in ASP.Net MVC. Do some research into the HandleError Action Filter as this to see if this might provide you with a better approach to error handling. Check out [Scott Gu's post](http://weblogs.asp.net/scottgu/archive/2008/07/14/asp-net-mvc-p...
[ 0.2871454060077667, 0.3649786710739136, 0.18084478378295898, 0.16289468109607697, -0.1876666247844696, -0.35162368416786194, 0.31570494174957275, 0.26061517000198364, -0.3978674113750458, -0.42586052417755127, -0.08100544661283493, 0.4902159869670868, 0.02828754112124443, -0.13745066523551...
I'm running python 2.4 from cgi and I'm trying to upload to a cloud service using a python api. In php, the $\_FILE array contains a "tmp" element which is where the file lives until you place it where you want it. What's the equivalent in python? if I do this ``` fileitem = form['file'] ``` `fileitem.filename` i...
[ 0.697625994682312, 0.11542584002017975, 0.34780368208885193, -0.22094474732875824, -0.007797637023031712, -0.24074789881706238, 0.15685172379016876, 0.2552633285522461, -0.2255050539970398, -0.5711177587509155, 0.10134002566337585, 0.4713274836540222, -0.3861220180988312, 0.208698764443397...
file, but the `cgi.FieldStorage` unlinked it as soon as it was created so that it would exist only as long as you keep it open, and no longer has a real path on the file system. You can, however, change this... You can extend the `cgi.FieldStorage` and replace the `make_file` method to place the file wherever you wan...
[ 0.7275972366333008, -0.05257277563214302, 0.4011273980140686, -0.22064241766929626, 0.18482671678066254, -0.1316128969192505, 0.13126850128173828, -0.10434272885322571, -0.3662607669830322, -0.6944290399551392, -0.23832209408283234, 0.3731039762496948, -0.4600376486778259, 0.23303695023059...
`cStringIO.StringIO`) **EDIT**: The `cgi` module actually makes the file with the `tempfile` module, so check that out if you want lots of gooey details.
[ 0.4159591495990753, -0.06911064684391022, 0.20529626309871674, 0.13678446412086487, 0.18414509296417236, -0.3709421157836914, -0.010238430462777615, 0.3162553012371063, -0.3794660270214081, -0.48261404037475586, -0.3565642535686493, 0.4581441879272461, -0.3446282148361206, -0.1170805245637...
On a windows mobile device I have a mutliline text edit control that is set to read-only and has some static text displayed during it's display lifetime. I would like to only display a vertical scrollbar when it's actually useful (i.e. the text is larger than the display). I can't easily figure out if the text is to l...
[ -0.22930417954921722, 0.121102474629879, 0.7359551191329956, -0.2315741330385208, -0.013063092716038227, -0.025118812918663025, 0.4552021920681, -0.11271324753761292, -0.2665901780128479, -0.7925462126731873, -0.08830469846725464, 0.8174178600311279, -0.19310253858566284, 0.196050405502319...
edit control must tell the scroll bar what it's scroll range is at some point. I was wondering if I could get in between then and hide the scroll bar if it's not going to be used. This is how I solved this problem. First off: * It only works with read-only mode of a edit control (as you don't want the text to change...
[ 0.03153020888566971, 0.04194848611950874, 0.679670512676239, 0.0966368094086647, -0.009735158644616604, -0.1654340773820877, 0.37324050068855286, 0.17035096883773804, -0.06293458491563797, -0.7663049101829529, -0.017601244151592255, 0.7908155918121338, -0.3047543466091156, 0.15363432466983...
IDC\_MESSAGE, > m\_Message); * During the InitDialog and OnSize calls, turn on the display of the scroll bar and setup a timer message. > m\_Message.ShowScrollBar(SB\_VERT, > TRUE); > > > SetTimer(DO\_ADJUST\_DISPLAY\_STATE, 50, > 0); * In the timer handling code, use the scroll information to determine if the sc...
[ 0.036314450204372406, -0.207314133644104, 0.7592657208442688, -0.11318935453891754, 0.1562858372926712, -0.01155425701290369, 0.4894658029079437, -0.7277217507362366, 0.22814910113811493, -0.9955612421035767, -0.16203922033309937, 0.7920418381690979, -0.24668872356414795, 0.195054963231086...
// deselect all text > m_Message.SetSel(0, 0); > > ``` ``` SCROLLINFO info; m_Message.GetScrollInfo(SB_VERT, &info); if(info.nPage > (UINT)info.nMax) { // need to re-display the non scroll bar version m_Message.ShowScrollBar(SB_VERT, FALSE);
[ 0.005140591412782669, -0.02030899189412594, 0.6620234847068787, -0.24495019018650055, 0.06972423940896988, 0.08702868968248367, 0.7355837821960449, -0.46632149815559387, -0.11138692498207092, -0.8536977171897888, -0.6547863483428955, 0.8675675988197327, -0.3381273150444031, 0.2533702850341...
// I could not find any other way to force a redisplay // correctly without display problems... // first move the window to a know invisible area // then wait (using a timer) for the window to move // then move the window back to it's original position
[ 0.2606375813484192, -0.1376948058605194, 0.5174676179885864, -0.12406943738460541, 0.04782704636454582, 0.18647140264511108, 0.320787638425827, -0.204528346657753, 0.06709423661231995, -0.6895196437835693, 0.03677847608923912, 0.3517744839191437, -0.06219688430428505, 0.265993595123291, ...
RECT rt; rt.left = 0; rt.right = 5; rt.top = 0; rt.bottom = 5; m_Message.MoveWindow(&rt); SetTimer(DO_REDISPLAY_MESSAGE, 50, 0);
[ -0.3991836905479431, -0.3810436427593231, 0.9968101978302002, -0.7078032493591309, 0.7001453638076782, 0.2898467481136322, 0.42602330446243286, -1.0051449537277222, -0.2738615572452545, -0.5464106202125549, -0.7613682150840759, 0.8566094636917114, -0.28091248869895935, 0.21556158363819122,...
} break; case DO_REDISPLAY_MESSAGE: KillTimer(nIDEvent); // m_MessagePosition holds the original position // worked out dynamically during the WM_SIZE // processing m_Message.MoveWindow(&m_MessagePosition); break; } } ``` I hope that helps out other peo...
[ 0.0004108072607778013, -0.06138598918914795, 0.24491186439990997, -0.47058120369911194, 0.4977637231349945, -0.1784726232290268, 0.35083314776420593, -0.24342651665210724, -0.2692030370235443, -0.5099465250968933, -0.40445101261138916, 0.7092483043670654, -0.30173709988594055, 0.1123639270...
I'm trying to perform a linq to entities query on a table that's inherited using [Table per Type](http://msdn.microsoft.com/en-us/data/cc765425.aspx). The problem I'm having is that I can't get at the properties on the Inhertied table only the properties on the Base Table. ``` var qry = from i in _DB.BaseTable where ...
[ -0.13284550607204437, 0.22814175486564636, 0.0880124419927597, -0.07843175530433655, 0.11137793213129044, -0.05110588297247887, 0.3153628408908844, -0.46448779106140137, -0.18311604857444763, -0.5919228196144104, -0.12405594438314438, 0.6599878668785095, -0.19056929647922516, 0.30427852272...
tables, never text, ntext, or image > columns. The query processor produced > a query plan that required a text, > ntext, or image column in a work > table. I suppose my question is How are you supposed to access the properties of the Inherited tables in linq to entities when using [Table per Type](http://msdn.mic...
[ -0.10067116469144821, 0.1823292374610901, 0.4428706765174866, 0.05666220933198929, 0.14798812568187714, 0.05160743370652199, -0.12164090573787689, -0.3392561674118042, -0.27516618371009827, -0.5369145274162292, -0.08471864461898804, 0.22130979597568512, -0.2599731385707855, 0.2037388831377...
How do you disable the Ctrl+N/File->New options from browser windows, specifically for IE. Only if this project needs to be supported into the future is this a good use of time. If you will be regularly maintaining/expanding this system; however, this is a great idea. 1) There is a large degree of risk associated wit...
[ 0.35251110792160034, -0.2916899621486664, 0.11798222362995148, 0.34134888648986816, -0.016113469377160072, -0.5014888644218445, 0.6348505020141602, 0.1229730173945427, -0.1150306984782219, -0.7815777063369751, -0.20420736074447632, 0.5736176371574402, -0.40299126505851746, 0.01718334667384...
another system (like table names, server names etc) they can be very difficult to update when those other system names change. Centralize them and it's a trivial issue.
[ -0.059784065932035446, 0.06330032646656036, 0.264691025018692, 0.6382070183753967, 0.17863202095031738, -0.4298654794692993, 0.11720945686101913, 0.42789292335510254, -0.3809535503387451, -0.8229663968086243, -0.13961338996887207, 0.3790060877799988, -0.2841521203517914, 0.6015119552612305...
I have an initializer which sets a default that is used throughout the app. The value is an ActiveRecord model, I'm essentially caching it for the lifetime of the app: ``` @@default_region = Region.find_by_uri("whistler") ``` The record is guaranteed to be in the database: it's fixture data which is referenced by ot...
[ 0.3503124713897705, 0.41751036047935486, 0.5700939893722534, -0.14597763121128082, 0.26503294706344604, -0.14825370907783508, 0.49357959628105164, 0.04806136339902878, -0.10976028442382812, -0.583814799785614, 0.019568953663110733, 0.5963843464851379, -0.30696216225624084, 0.24410074949264...
`regions.yml` fixture file, but fixtures aren't loaded until after the rails initializer is done. What's the right way to deal with such a dependency on fixture data? Or is there a better way to structure this? I'd rather not use a before\_filter because there's no sense reloading this on each request: it will not cha...
[ 0.18770571053028107, -0.14380785822868347, 1.0112792253494263, -0.17885451018810272, 0.3551167845726013, -0.3705393671989441, -0.1502557396888733, 0.0642368420958519, -0.16905586421489716, -0.74256432056427, -0.10891267657279968, 0.5106766223907471, -0.1419401466846466, 0.5545998811721802,...
in place.
[ -0.03967883437871933, 0.20694102346897125, 0.315205842256546, 0.10541079938411713, 0.023231850937008858, -0.43710222840309143, 0.15849602222442627, 0.07795393466949463, -0.2854722738265991, -0.6890550255775452, -0.04580904170870781, -0.1808493286371231, -0.19053849577903748, 0.299355417490...
Simple one I think but essentially I need to know what the syntax is for the save function on the PIL. The help is really vague and I can't find anything online. Any help'd be great, thanks :). From the [PIL Handbook](http://effbot.org/imagingbook/image.htm#tag-Image.Image.save): ``` im.save(outfile, options...) im.s...
[ -0.015012748539447784, 0.11087903380393982, 0.5438243746757507, -0.007097738329321146, -0.008598323911428452, 0.1215587854385376, 0.020952878519892693, -0.14644932746887207, -0.16538961231708527, -0.6582159399986267, -0.1892930269241333, 0.498243123292923, -0.6568767428398132, -0.290374279...
list the different file types that are supported. In some cases, options are given for `save`. For example, on the [JPEG file format page](http://effbot.org/imagingbook/format-jpeg.htm), we're told that save supports * `quality` * `optimize`, and * `progressive` with notes about each option.
[ 0.5707244873046875, -0.10447494685649872, 0.16151636838912964, 0.15652744472026825, 0.06887374073266983, -0.1422881931066513, -0.20495600998401642, 0.22159786522388458, -0.16954673826694489, -0.5365045666694641, -0.1991419494152069, 0.5132816433906555, -0.13499288260936737, -0.168101921677...
What is the difference between the following lines of code, or are they just 2 different ways to write the same thing: ``` $("p").click(function() { some code here }); $("p").bind("click", function(){ some other code here }); ``` Am I over simplifying this? Because if you wanted to bind more than one event you coul...
[ 0.16107960045337677, -0.3043845593929291, 0.15694594383239746, 0.06349530071020126, -0.21526123583316803, -0.3973534405231476, 0.32402440905570984, -0.3262593150138855, -0.23839659988880157, -0.4318400025367737, 0.10752119868993759, 0.5562353134155273, -0.9185493588447571, 0.26063030958175...
In the following examples: ``` public class RowData { public object[] Values; } public class FieldData { public object Value; } ``` I am curious as how either protobuf-net or dotnet-protobufs would handle such classes. I am more familiar with protobuf-net, so what I actually have is: ``` [ProtoContract] pu...
[ -0.027881881222128868, -0.002161522163078189, -0.13007554411888123, 0.006128883920609951, 0.1371731162071228, 0.0926503911614418, -0.0712028294801712, -0.06633435934782028, -0.1263921707868576, -0.7445352673530579, -0.14548100531101227, 0.7485358715057373, -0.5311506986618042, -0.060939822...
case: This is a scaled down version of a data class used in remoting. So essentially it looks like this: ``` FieldData data = new FieldData(); data.Value = 8; remoteObject.DoSomething(data); ``` Note: I've omitted the ISerializable implementation for simplicity, but it is as you'd expect. (updated) Right; figured...
[ -0.07098574191331863, -0.24346525967121124, 0.11833923310041428, -0.21797531843185425, 0.22536471486091614, -0.29080063104629517, 0.32743746042251587, -0.2626918852329254, -0.21484515070915222, -0.5692517161369324, -0.25408345460891724, 0.7693454027175903, -0.3700367212295532, 0.1378280073...
set { Value = value; } } ``` etc, with: ``` private T? Get<T>() where T : struct { return (Value != null && Value is T) ? (T?)Value : (T?)null; } ``` Both this and the \*Specified approach have been [tested](http://code.google.com/p/protobuf-net/source/browse/trunk/Examples/ValueWrapper.cs)...
[ 0.27195098996162415, -0.26223838329315186, 0.2703344523906708, -0.1943851113319397, 0.11604905128479004, -0.19694888591766357, 0.19854164123535156, -0.31537869572639465, -0.12292587757110596, -0.4358561336994171, -0.4230988323688507, 0.852685272693634, -0.39481261372566223, -0.152388632297...
In a PHP script, what regex should I use to check for mismatched parentheses in a string? Things that I want to allow include: * This is (ok) * This (is) (ok) Things I want to prevent: * This is )bad( * This is also (bad * This is (bad (too) Thanks! Update: You guys all rock. Doing this with a regex seemed trickie...
[ 0.31865641474723816, 0.016683999449014664, 0.2422456592321396, 0.22391033172607422, -0.151228666305542, -0.5170467495918274, 0.6865447163581848, -0.07467126101255417, -0.20018619298934937, -0.2534830570220947, 0.04206468537449837, 0.7207455039024353, -0.12882140278816223, -0.20242705941200...
the right tool for the job. Scan a string manually. Pseudo-code: ``` depth = 0 for character in some_string: depth += character == '(' depth -= character == ')' if depth < 0: break if depth != 0: print "unmatched parentheses" ```
[ -0.07392849028110504, -0.03882572799921036, 0.21578052639961243, -0.12927918136119843, 0.18917599320411682, -0.22973871231079102, 0.3271363377571106, -0.24167801439762115, 0.011139506474137306, -0.57682865858078, -0.11549496650695801, 0.8201279044151306, -0.05306100472807884, -0.3103313446...
Background ---------- I recently joined a small start-up after working at a large company. I'm not a professional system administrator, however, because of my programming and systems knowledge I am now the internal person managing our servers and infrastructure. In the past, I never needed to document our system inf...
[ 0.4998873770236969, 0.2127738893032074, 0.17241209745407104, 0.04334361106157303, 0.4175263047218323, 0.07105490565299988, -0.004118146374821663, 0.4497217833995819, -0.3059857487678528, -0.49861812591552734, 0.18428602814674377, 0.5369607210159302, 0.1284085065126419, 0.03531594201922417,...
didn't know *where* my main subversion configuration file was in /etc/apache2 (not to mention that the config file isn't under version control or backed up!) I realized that this needs to be addressed quickly. Next step --------- I now have to figure out how to document all of this in a sane, elegant, access controll...
[ 0.5435381531715393, 0.1338319182395935, 0.1773209273815155, 0.20200923085212708, -0.006224396172910929, -0.5567488074302673, 0.5360573530197144, 0.18260067701339722, -0.10333828628063202, -0.6857629418373108, 0.179512619972229, 0.5787197947502136, -0.09769661724567413, 0.018114056438207626...
had good success with a Wiki. Use something where you can control logins easily — Mediawiki is okay, but requires some PHP hacking — and build some templates for processes, inventories, and so forth. ### Update Actually, I must have needed coffee. [Trac](http://trac.edgewall.org/) is pretty nearly ideal; better acces...
[ 0.4943191111087799, -0.07473838329315186, 0.2400180548429489, 0.36190250515937805, -0.09053115546703339, -0.5906609296798706, 0.336139976978302, 0.2714694142341614, -0.1582336276769638, -0.4962445795536041, 0.3444786071777344, 0.6416534185409546, -0.18771512806415558, -0.28793421387672424,...
Say I have three threads that need access to a collection and I use a lock block around the access in each thread. The following happens... (1) Thread 1 gets the lock on the collection (2) Thread 2 gets blocked (3) Thread 3 gets blocked When Thread 1 releases the lock, who gets to take the lock next? Is it FIFO...
[ 0.41592302918434143, -0.13602600991725922, 0.535055935382843, 0.09192103892564774, 0.11057169735431671, -0.2722403407096863, 0.15616430342197418, -0.19777017831802368, -0.545832097530365, -0.16069211065769196, 0.024540245532989502, 0.446689248085022, -0.6221455931663513, 0.4917909502983093...
I have a C# `WPF` application that is suddenly throwing an exception on startup, and I cannot figure out why. The exception is a C++ `HRException`, and it occurs in `MSCORLIB` in `CreateInstanceSlow()`, which is called from `CreateInstance()`, which is called from `BamlRecordReader.CreateInstanceFromType()` in the `Sy...
[ 0.07351253926753998, 0.10005851089954376, 0.5080175399780273, -0.15233474969863892, 0.02189173735678196, -0.12450399994850159, 0.2992868721485138, -0.22293847799301147, -0.36059626936912537, -0.37513071298599243, -0.04107610508799553, 0.3726052939891815, -0.5564311146736145, 0.104927763342...
each as a reference, and declaring a variable of a type defined in that assembly in my main app, and this worked **OK**. So I blew all that away and reverted to what was checked in, and I am back to the exception again, so I don't think it's a DLL that cannot be found, or one that's blowing up on initialization - but ...
[ 0.18686385452747345, 0.1990782469511032, 0.24626509845256805, 0.1387610286474228, -0.10420943051576614, -0.05569225549697876, 0.5264735817909241, -0.13579322397708893, -0.2823461592197418, -0.3166654407978058, 0.051805827766656876, 0.5463063716888428, -0.4544166028499603, 0.203134626150131...
at the top of the stack. I'd really appreciate any tips on how to go about figuring out what `XAML` is actually being parsed when the exception is thrown, as well as hearing fro anyone else who has had similar issues. I would start with ensuing VS has native and managed debugging enabled, and a symbol server working. ...
[ 0.14207294583320618, 0.006150409113615751, 0.34729743003845215, 0.14080753922462463, -0.3672402799129486, -0.47391247749328613, 0.474000483751297, -0.11862453818321228, -0.3491285443305969, -0.6373541355133057, -0.19715717434883118, 0.48977231979370117, 0.05874679237604141, -0.131666392087...
use a XamlReader instance)?
[ 0.0784435048699379, 0.13335339725017548, -0.014898507855832577, -0.06273144483566284, 0.046948570758104324, -0.22532694041728973, 0.5708246231079102, -0.04003515467047691, -0.08312539011240005, -0.3357705771923065, -0.2953920066356659, 0.16435156762599945, -0.5740973353385925, -0.052930276...
I'm using a Subversion repository hosted on Dreamhost for a project. I would like to allow access to some users on a restricted basis. At the very least I would like to allow read-only access to some users, but ideally I would like to prevent some users seeing some parts of repository at all. I can't find user permiss...
[ 0.8539443016052246, -0.09506864100694656, 0.09246471524238586, 0.28024914860725403, -0.07798230648040771, -0.39768481254577637, 0.12529560923576355, 0.2159772366285324, -0.21858051419258118, -0.4837934970855713, -0.018221424892544746, 0.3887227475643158, -0.14537017047405243, 0.26105636358...
for specific users and specific directories. In svnserve.conf you can specify if anonymous users have read access or not. Here's an example from a repository of mine: ``` [groups] project1_team = dave, john, andy [/] * = dave = rw [/project1] @project1_team = rw [/project2] andy = r ``` What's happening here is ...
[ 0.2246437519788742, 0.19388896226882935, -0.06911804527044296, -0.02481486275792122, 0.037710048258304596, -0.08305006474256516, 0.2659251093864441, -0.1215938925743103, -0.6037148833274841, -0.2946377098560333, -0.3967043161392212, 0.1636263132095337, -0.1708233803510666, 0.06289516389369...
We have several projects that use [p4.net](http://p4dotnet.sourceforge.net/index.php/P4.Net_Overview), a managed DLL, which in turn is dependent on p4dn.dll, a 32-bit unmanaged DLL. This has problems on x64 systems, so I have had to go to each project that uses p4.net and set its processor type to x86. If I understand...
[ 0.3593193590641022, 0.09777344763278961, 0.22650092840194702, 0.049616098403930664, 0.007300307508558035, -0.17389261722564697, 0.009146735072135925, 0.08250855654478073, -0.30249956250190735, -0.8230974078178406, -0.020890090614557266, 0.5190462470054626, -0.5239918828010559, 0.1384113281...
we have quite a few of these. Also, people are going to continue to make new ones and forget to set 32-bit and then in the future we'll have this problem again when someone else tries to use it on x64. My question is this: is there a way to have .NET automatically load any app that uses p4dn.dll as 32-bit? Failing tha...
[ 0.4062347710132599, 0.08833104372024536, -0.00686410628259182, 0.2892695665359497, -0.00867466814815998, -0.2352297604084015, 0.13558068871498108, 0.05524266138672829, -0.42623206973075867, -0.6714350581169128, 0.13170069456100464, 0.7206690311431885, -0.5349306464195251, -0.10271370410919...
auto run in 32 bit? If you have absolutely no other choice you can use *corflags* as part of an automated build script to mark all of the .NET dlls as x86 - `corflags /32bit+ file.dll`. Although I think that proper education of developers is more adequate solution.
[ 0.5007948279380798, 0.15360446274280548, 0.06248965486884117, -0.16941975057125092, -0.01732982136309147, -0.11248455941677094, 0.40895017981529236, 0.12736821174621582, -0.2797558605670929, -0.24604611098766327, -0.2768712043762207, 0.978211522102356, -0.7059316039085388, -0.5237000584602...
I want to match an input string to my PHP page the same way a match done by the LIKE command in SQL (MySQL) for consistency of other searches. Since (I have seen but don't comprehend) some of the PHP syntax includes SQL commands I am wondering if this is possible? The reason for this is I am now implementing a search ...
[ 0.46860215067863464, 0.21878574788570404, 0.16654165089130402, 0.128814235329628, -0.5567527413368225, -0.2646346986293793, 0.2472340613603592, -0.15956957638263702, 0.03528131544589996, -0.541596531867981, 0.3772891163825989, 0.6397334933280945, -0.2973614037036896, 0.08969848603010178, ...
the matching ability of the query. Otherwise I need to find an alternate matching routine, which won't be consistent. I can't go back and re-structure the DB since this wasn't anticipated wayyy back in the spec. Yes, I need an ugly hack, but am looking for the most elegant. If it's not possible I could use any recomme...
[ 0.15250813961029053, 0.03763478994369507, 0.30770403146743774, 0.22323830425739288, -0.3872556686401367, -0.04525059461593628, 0.4900878369808197, 0.003432398894801736, 0.16953149437904358, -0.566849410533905, 0.17232297360897064, 0.6680834293365479, -0.3845311105251312, -0.034146305173635...