text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
init: function(c) { this.controls = c }, foo: function(args) { var self = this; this.init(args.controls); $(this.controls.DropDown).change(function() {
[ -0.17922912538051605, -0.13111969828605652, 0.49305838346481323, -0.3897615373134613, 0.2779634892940521, 0.2389213889837265, 0.24420654773712158, -0.196618914604187, -0.08909627050161362, -0.18001508712768555, -0.1035444587469101, 0.5861454606056213, -0.6290969848632812, 0.106033444404602...
$(self.controls.PlaceHolder).toggle(); }); } } }; ```
[ 0.08968105912208557, 0.08258557319641113, 0.5759454369544983, -0.29836177825927734, 0.3808361291885376, -0.10819394886493683, 0.41725242137908936, -0.20098237693309784, 0.09562098979949951, -0.5707452297210693, -0.17731092870235443, 0.7841581106185913, -0.4735386073589325, 0.38920420408248...
My table structure looks like this: ``` tbl.users tbl.issues +--------+-----------+ +---------+------------+-----------+ | userid | real_name | | issueid | assignedid | creatorid | +--------+-----------+ +---------+------------+-----------+ | 1 | test_1 | | 1 | 1 ...
[ -0.2665521502494812, 0.2910292446613312, 0.6441532969474792, 0.14475516974925995, 0.10244186967611313, -0.02515174262225628, -0.04447832331061363, -0.2114507406949997, -0.01898062601685524, -0.9758049249649048, 0.23807254433631897, 0.3043767511844635, -0.33299192786216736, 0.16977730393409...
2 | test_2 | | 2 | 1 | 2 | +--------+-----------+ +---------+------------+-----------+ ``` Basically I want to write a query that will end in a results table looking like this: ``` (results table) +---------+------------+---------------+-----------+--------...
[ -0.3345969617366791, -0.06665186583995819, 0.27173322439193726, 0.1399184614419937, -0.1778881698846817, -0.21108025312423706, 0.16111186146736145, -0.38896644115448, 0.0926237404346466, -0.7235934138298035, -0.16557016968727112, 0.26127877831459045, -0.4420989453792572, 0.0409307256340980...
1 | 1 | test_1 | 1 | test_1 | | 2 | 1 | test_1 | 2 | test_2 | +---------+------------+---------------+-----------+--------------+ ``` My SQL looks like this at the moment: ``` SELECT
[ -0.08166343718767166, 0.07347454130649567, 0.21583500504493713, -0.034883759915828705, -0.10473419725894928, -0.34537941217422485, 0.15354101359844208, -0.3793502748012543, 0.25648319721221924, -0.5928351879119873, 0.1886141002178192, 0.30211037397384644, -0.3556588888168335, 0.27741396427...
`issues`.`issueid`, `issues`.`creatorid`, `issues`.`assignedid`, `users`.`real_name` FROM `issues` JOIN `users` ON ( `users`.`userid` = `issues`.`creatorid` ) OR (`users`.`userid` = `issues`.`assignedid`) ORDER BY `issueid` ASC LIMIT 0 , 30 ``` This returns something like this: ``` (resul...
[ -0.4162781834602356, 0.2894873321056366, 0.4797132611274719, 0.1285974383354187, 0.06259854137897491, -0.022413399070501328, -0.12161567062139511, -0.26605749130249023, -0.24835224449634552, -0.5393605828285217, -0.26231226325035095, 0.5204623341560364, -0.10494409501552582, -0.00352783640...
1 | 2 | test_1 | | 2 | 1 | 2 | test_2 | +---------+------------+-----------+-----------+ ``` Can anyone help me get to the desired results table? ``` SELECT IssueID, AssignedID, CreatorID, AssignedUser.real_name AS AssignedName, CreatorUser.real_name AS Creator...
[ -0.10133657604455948, 0.15681958198547363, 0.38088035583496094, 0.26349955797195435, 0.11343289166688919, -0.023863736540079117, 0.1132609099149704, -0.31192612648010254, -0.03251466527581215, -0.9646574258804321, -0.0075963991694152355, 0.3178893029689789, -0.18133202195167542, 0.20024389...
ON Issues.AssignedID = AssignedUser.UserID LEFT JOIN Users AS CreatorUser ON Issues.CreatorID = CreatorUser.UserID ORDER BY `issueid` ASC LIMIT 0, 30 ```
[ -0.19784300029277802, 0.23362208902835846, 0.548132061958313, -0.07422538101673126, -0.19847634434700012, 0.27866509556770325, -0.017058275640010834, -0.0465390719473362, -0.3185638189315796, -0.6658140420913696, -0.15266546607017517, 0.29558265209198, -0.4076339304447174, 0.32400599122047...
I have some servers in Europe and some in Asia. I would like to be able to work out where the current server is by querying ... something. Is there some global variable I can query or sp\_xxx I can execute to find out the locale of the server? I'd go with a parameter in a table. There can be multiple solutions to...
[ 0.6137824058532715, 0.20834636688232422, 0.3816259205341339, 0.061534278094768524, 0.2836553156375885, 0.15675362944602966, 0.15182915329933167, 0.3814149498939514, -0.31261691451072693, -0.5201137661933899, 0.03285185992717743, -0.19105394184589386, -0.09947584569454193, 0.300251513719558...
I'm thinking about how to do this, but I have several different shapes of Data in my Database, Articles, NewsItems, etc. They All have something in common, they all have IDs (in the DB they're named ArticleID, NewsID etc. ) They all have a **Title** They all have **BodyText**. They all have a **Status** They all ...
[ 0.6559467911720276, 0.11724390834569931, 0.41850003600120544, 0.297958642244339, -0.1252586990594864, -0.37716609239578247, 0.10163094848394394, -0.17348003387451172, -0.01612355373799801, -0.8835484981536865, 0.024352870881557465, 0.2401193231344223, 0.16361680626869202, 0.219889134168624...
this is because then I can pass a list of COntent to my UserControl which is responsible for Rendering it. It will only need the information that is common to all objects. Is this even possible? This is what Interfaces are for. Have each class implement an IContent interface that contains your Title, BodyText, Status ...
[ 0.05455842241644859, 0.033241141587495804, 0.43776801228523254, 0.29605814814567566, 0.08830177783966064, -0.08528858423233032, 0.029079074040055275, 0.1176815927028656, -0.3708348572254181, -0.8178757429122925, -0.0829007551074028, 0.439623087644577, -0.20117488503456116, 0.16689170897006...
Why does this lambda expression not compile? ``` Action a = () => throw new InvalidOperationException(); ``` Conjecture is fine, but I would really appreciate references to the C# language specification or other documentation. And yes, I know that the following is valid and will compile: ``` Action a = () => { thr...
[ 0.3018169105052948, 0.3112247884273529, -0.061036720871925354, -0.19595855474472046, -0.34044894576072693, -0.16036362946033478, 0.43046268820762634, -0.3912241458892822, -0.17490336298942566, -0.22017335891723633, -0.005605924408882856, 0.5361268520355225, -0.4549578130245209, -0.01519797...
void type. As a parallel, you can't have a switch statement, or an if statement etc as the body of a lambda on its own. You can only have an expression or a block (section 7.14). Is that any help?
[ 0.4671739935874939, -0.1589231938123703, 0.06396088749170303, 0.21718215942382812, 0.04605340585112572, -0.014088424853980541, 0.13770051300525665, 0.26223641633987427, -0.3929932415485382, -0.13595271110534668, 0.1212252601981163, 0.344866544008255, -0.6523491740226746, 0.176952064037323,...
In a table, I have three columns - id, name, and count. A good number of name columns are identical (due to the lack of a UNIQUE early on) and I want to fix this. However, the id column is used by other (4 or 5, I think - I would have to check the docs) tables to look up the name and just removing them would break thin...
[ 0.25210297107696533, 0.3916000723838806, 0.10318201035261154, 0.17748934030532837, 0.1273103654384613, -0.045459598302841187, -0.1770663857460022, -0.10437052696943283, -0.5754285454750061, -0.6268656849861145, 0.3531935214996338, -0.11267998069524765, -0.08784324675798416, 0.2760568559169...
clean way to do it. You have to change all the rows in the child table that depend on unwanted values in the parent table before you can eliminate the unwanted rows in the parent table. MySQL supports multi-table `UPDATE` and `DELETE` statements (unlike other brands of database) and so you can do some pretty neat tric...
[ 0.2999049127101898, -0.12940065562725067, 0.08646800369024277, 0.16442210972309113, 0.23363792896270752, -0.16942331194877625, 0.46394121646881104, -0.06059585139155388, -0.21647827327251434, -0.7979546189308167, 0.19152739644050598, 0.4505595564842224, -0.09592422842979431, 0.152440011501...
multi-table `DELETE` syntax to remove unwanted rows in the parent table: ``` DELETE FROM n2 USING names n1 JOIN names n2 ON (n1.id < n2.id AND n1.name = n2.name); ```
[ -0.6065304279327393, 0.18361949920654297, 0.22475843131542206, -0.19406941533088684, -0.1396104395389557, 0.29549717903137207, 0.15357090532779694, -0.2531816065311432, -0.2376684844493866, -0.387771874666214, -0.6775093674659729, 0.22594605386257172, -0.3202227056026459, 0.229048356413841...
I need a way to determine the type of an HTML element in JavaScript. It has the ID, but the element itself could be a `<div>`, a `<form>` field, a `<fieldset>`, etc. How can I achieve this? [`nodeName`](https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeName) is the attribute you are looking for. For example: `...
[ 0.11172328144311905, 0.12079817801713943, 0.33000993728637695, -0.13912954926490784, 0.1381227970123291, -0.10937666147947311, 0.08596552908420563, -0.44248783588409424, 0.1289164125919342, -0.724852979183197, -0.031131988391280174, 0.46787163615226746, -0.33984899520874023, 0.111949220299...
I have a page with some dynamically added buttons. If you click a button before the page has fully loaded, it throws the classic exception: > ``` > Invalid postback or callback argument. > Event validation is enabled using in configuration or in a page. For > > ``` > > security purposes, > this feature verifies t...
[ 0.07402414828538895, 0.04011935368180275, 0.5306082367897034, -0.08862537890672684, 0.06560705602169037, -0.16211579740047455, 0.11128530651330948, -0.18967735767364502, -0.04954257607460022, -0.750078558921814, -0.08878803253173828, 0.39178022742271423, -0.18149444460868835, 0.16807980835...
validation. I am guessing the Viewstate field hasn't loaded on the form yet, the the other bits are being submitted. What's the best way to prevent this error, while maintaining Event Validation? I answered a similar question [here](https://stackoverflow.com/questions/140303/aspnet-unable-to-validate-data#254581). To ...
[ 0.19008517265319824, -0.04136032983660698, 0.768120288848877, -0.08414232730865479, -0.3249290883541107, -0.32646554708480835, 0.1906406134366989, -0.39629581570625305, -0.12232471257448196, -0.2009212076663971, -0.0452180840075016, 0.6975859999656677, 0.01873336359858513, -0.2249577641487...
then the ViewState is automatically being rendered at the top of the form (before the rest of the page is loaded) thus eliminating the ViewState error you are getting.
[ -0.12171237170696259, -0.19551151990890503, 1.0214756727218628, 0.10117759555578232, 0.13183137774467468, -0.33591216802597046, 0.032966580241918564, 0.18928754329681396, -0.09622599184513092, -0.663540780544281, -0.5133683681488037, 0.6291233897209167, -0.0071917069144546986, 0.0602486841...
**General Description:** To start with what works, I have a `UITableView` which has been placed onto an Xcode-generated view using Interface Builder. The view's File Owner is set to an Xcode-generated subclass of `UIViewController`. To this subclass I have added working implementations of `numberOfSectionsInTableView:...
[ 0.026265667751431465, -0.030725637450814247, 0.6545641422271729, -0.11385277658700943, -0.030371977016329765, 0.0496411994099617, -0.04155534505844116, -0.1293221265077591, 0.030296871438622475, -1.0592291355133057, 0.02292698808014393, 0.3768908679485321, -0.11671894788742065, 0.084678538...
besides the Table View and I'd like to move the Table View-related code out to its own class. To accomplish this, I try the following: * Create a new subclass of `UITableViewController` in Xcode * Move the known-good implementations of `numberOfSectionsInTableView:`, `tableView:numberOfRowsInSection:` and `tableView:c...
[ 0.014682860113680363, 0.0008653663098812103, 0.7482042908668518, 0.05729042738676071, -0.12388298660516739, -0.06572035700082779, 0.0493626594543457, -0.24354104697704315, 0.07835952192544937, -0.9306560158729553, 0.05426110699772835, 0.5062500834465027, -0.2532247304916382, 0.120122715830...
a working `UITableView`. I end up with one of three outcomes which can seemingly happen at random: * When the `UITableView` loads, I get a runtime error indicating I am sending `tableView:cellForRowAtIndexPath:` to an object which does not recognize it * When the `UITableView` loads, the project breaks into the debugg...
[ -0.10236754268407822, -0.048640355467796326, 0.4878259599208832, -0.05442387983202934, -0.04731052368879318, -0.3239455223083496, 0.6281869411468506, -0.10374481230974197, -0.14256423711776733, -0.9331537485122681, -0.3544270098209381, 0.43927836418151855, -0.4502720534801483, 0.1312794983...
`numberOfRowsInSection:` are both getting called, `cellForRowAtIndexPath:` is not. I am convinced I'm missing something really simple and was hoping the answer may be obvious to someone with more experience than I have. If this doesn't turn out to be an easy answer I would be happy to update with some code or a sample ...
[ 0.10478617250919342, 0.10582029074430466, 0.5089292526245117, 0.16666463017463684, 0.13451802730560303, 0.1959056854248047, 0.0542985163629055, 0.11224684119224548, -0.07663235068321228, -1.0479693412780762, -0.06824586540460587, 0.45394378900527954, -0.27198538184165955, 0.083628907799720...
already represent the `TableTestViewController`-class. Save your changes * Back in Xcode, add the following code to `TableTestViewController.m:` --- ``` - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { NSLog(@"Returning num sections"); return 1; } - (NSInteger)tableView:(UITableView *)table...
[ -0.1080947145819664, -0.019087037071585655, 0.9821650981903076, -0.08928318321704865, 0.22846807539463043, 0.45617541670799255, 0.19828203320503235, -0.09192528575658798, -0.2679130434989929, -1.0431663990020752, -0.18051758408546448, 0.3996414840221405, 0.0314885750412941, 0.2058597356081...
cell.text = @"Hello"; NSLog(@"Returning cell"); return cell; } ``` * Build and Go, and you should see the word `Hello` appear in the `UITableView` * Now to attempt to move this `UITableView`'s logic out to a separate class, first create a new file in Xcode, choosing `UITableViewController` subclass and callin...
[ -0.19510553777217865, 0.19112040102481842, 0.5457959175109863, -0.014384189620614052, 0.07291953265666962, 0.17453345656394958, 0.18679283559322357, -0.15960100293159485, 0.15252041816711426, -1.0560393333435059, -0.08927859365940094, 0.42324304580688477, -0.3536760210990906, 0.26100933551...
`UITableView` object that automatically came with it * Set the class for this new `UITableViewController` to `TableTestTableViewController` * Remove the `dataSource` and `delegate` bindings from the existing, previously-working `UITableView` and reconnect the same two bindings to the new `TableTestTableViewController` ...
[ -0.07517057657241821, 0.08034496009349823, 0.5636764764785767, 0.12347868084907532, -0.02245480567216873, 0.12524577975273132, 0.3784443736076355, -0.09118738025426865, 0.015725048258900642, -0.9015203714370728, -0.18737831711769104, 0.43656110763549805, -0.25312840938568115, 0.04189746826...
header (`TableTestViewController.h`): ``` #import "TableTestTableViewController.h" ``` and ``` IBOutlet TableTestTableViewController *myTableViewController; ``` Then, in Interface Builder, connect the new outlet from File's Owner to `TableTestTableViewController` in the main IB window. No changes are necessary in...
[ 0.18759045004844666, 0.2207733392715454, 0.6318987607955933, 0.24468424916267395, 0.0766301304101944, 0.13203805685043335, 0.14287246763706207, 0.3241861164569855, 0.003971011843532324, -1.0924655199050903, -0.06199543923139572, 0.2801474928855896, -0.2980060875415802, 0.12980104982852936,...
the `tableView` of the `TableTestTableViewController` to the `UITableView` you have on the screen. As I said before because it is not `IBOutlet` you can override the `tableView` property and make it and `IBOutlet`: ``` @interface TableTestTableViewController : UITableViewController { UITableView *tableView; } @pr...
[ -0.0369119867682457, 0.28992295265197754, 0.6017216444015503, 0.14539740979671478, 0.1821420043706894, -0.11073680222034454, 0.20109812915325165, 0.20464086532592773, 0.20194277167320251, -0.8629198670387268, -0.196771502494812, 0.5336045026779175, -0.18991391360759735, 0.4261056184768677,...
{ TableTestTableViewController *tableViewController; } @property (nonatomic, retain) IBOutlet TableTestTableViewController *tableViewController; ``` and connect that in the Interface Builder to the `TableTestTableViewController` instance. With the above this worked fine on my machine. Also I think it would be...
[ -0.19812877476215363, 0.136867493391037, 0.4963673949241638, 0.21948502957820892, -0.1740315556526184, 0.38607683777809143, -0.08877292275428772, 0.12053389847278595, 0.1798560470342636, -1.1606687307357788, 0.15895560383796692, 0.6564314961433411, -0.07351054251194, 0.2319161593914032, ...
Knuth [recently objected](http://www-cs-faculty.stanford.edu/~knuth/news08.html) to 64-bit systems, saying that for programs which fit in 4 gigs of memory, "they effectively throw away half of the cache" because the pointers are twice as big as on a 32-bit system. My question is: can this problem be avoided by install...
[ -0.004691964481025934, 0.38955286145210266, 0.3914371132850647, 0.011924607679247856, 0.007642450276762247, -0.13896732032299042, 0.0782477855682373, 0.015300428494811058, -0.28563323616981506, -0.4527716338634491, -0.3687210977077484, 0.37031570076942444, 0.11535654217004776, 0.2339647412...
be difficult to separate out from the noise. Designing a benchmark that will not optimise away is difficult. [This article about flawed java benchmarks](http://www.ibm.com/developerworks/java/library/j-jtp02225.html) was posted by someone in response to another question, but many of the principles described in it will ...
[ 0.5959065556526184, 0.1060313954949379, -0.1989145129919052, -0.07543889433145523, -0.00723626371473074, -0.11237738281488419, 0.21827413141727448, -0.42911496758461, 0.09538111090660095, -0.417498379945755, 0.055495284497737885, 0.3111022710800171, -0.3560183048248291, -0.0945503711700439...
How does one go about converting an image to black and white in PHP? Not just turning it into greyscale but every pixel made black or white? Simply round the grayscale color to either black or white. ``` float gray = (r + g + b) / 3 if(gray > 0x7F) return 0xFF; return 0x00; ```
[ 0.3512725532054901, 0.19357101619243622, 0.22315232455730438, -0.14202873408794403, 0.0566248819231987, 0.11493436247110367, 0.20989976823329926, -0.32813629508018494, 0.0900459960103035, -0.42884695529937744, 0.056095682084560394, 0.5076354742050171, -0.47456327080726624, 0.12502969801425...
What's the most appropriate type used to store the duration time information of a video in sql server? There are [several options](http://www.sqlteam.com/article/working-with-time-spans-and-durations-in-sql-server), including using the builtin DateTime or Time data type with offset from a particular fixed zero (which w...
[ 0.4755975008010864, -0.185135155916214, 0.6452783346176147, 0.3040720820426941, -0.024209776893258095, -0.1545967161655426, -0.04063434898853302, -0.17403843998908997, -0.5596714019775391, -0.15504056215286255, 0.15981332957744598, 0.3272720277309418, -0.0690189078450203, 0.096981003880500...
I have a method with an out parameter that tries to do a type conversion. Basically: ``` public void GetParameterValue(out object destination) { object paramVal = "I want to return this. could be any type, not just string."; destination = null; // default out param to null destination = Convert.ChangeType...
[ -0.26215729117393494, -0.01151672936975956, 0.5453062653541565, 0.05347735062241554, -0.09202444553375244, 0.16950316727161407, 0.43950343132019043, -0.4733283519744873, -0.19708803296089172, -0.5884109139442444, 0.0034094026777893305, 0.3315059542655945, -0.44915133714675903, 0.2445311397...
the type of an object that is set to null? I would think there would have to be a way to know what type a storage location is without it being assigned anything. --- Just to give a bit more info, I am trying to make a utility method that will grab the output parameters of an Oracle stored procedure. The issue is that...
[ 0.29936984181404114, -0.007255466189235449, -0.06865961104631424, 0.24070066213607788, -0.24958541989326477, -0.20093774795532227, 0.21836230158805847, -0.05554311349987984, 0.05314398184418678, -0.5801414847373962, 0.16824370622634888, 0.5843009352684021, -0.44941383600234985, 0.424550712...
the "equals", so I went with: ``` string val; GetParameterValue("parameterName", out val); ``` And figured within the method, I would know the destination type of the output variable. I guess that was a bad assumption. As an alternative, I also wrote the method: ``` public T GetParameterValue<T>(string paramName) ...
[ -0.1369873285293579, -0.04230157285928726, 0.5347667932510376, -0.01311027817428112, 0.0039283535443246365, 0.029088782146573067, 0.5122743248939514, -0.3360842764377594, 0.06421688199043274, -0.4102431833744049, -0.12216535210609436, 0.7580841779708862, -0.4216611683368683, 0.101617291569...
right? or else how would it catch cast exceptions? --- To partially solve my own problem, I can do: ``` MyObj.SomeProp = GetParameterValue<typeof(MyObj).GetField("SomeProp").GetType()>("parameterName"); ``` The whole idea was to not have to explicitly use the Type in more than one place, so that if the data type c...
[ 0.2215903401374817, 0.18494254350662231, 0.07100488990545273, 0.03961712494492531, 0.05722489580512047, -0.08495726436376572, 0.3265989124774933, -0.06497373431921005, -0.12159256637096405, -0.48713672161102295, 0.012288385070860386, 0.40504831075668335, -0.38381049036979675, 0.27749997377...
it being assigned anything. Not necessarily. The best that you can say is that it is an `object`. A `null` reference does not point to any storage location, so there is no metadata from which it can make that determination. The best that you could do is change it to be more generic, as in: ``` public void GetParamet...
[ 0.2047879695892334, -0.42031264305114746, 0.47005975246429443, 0.2249375283718109, 0.11816979944705963, -0.07050277292728424, 0.2864433228969574, -0.24676749110221863, -0.20977665483951569, -0.4726015627384186, -0.23019446432590485, 0.3558878004550934, -0.32649967074394226, 0.2522697150707...
What solutions have people come up with to develop their web applications offline when they made the decision to use OpenId for site membership? Couple of ideas: 1. Create two login pages one for OpenId and one for ASP.NET Membership 2. Create local OpenId provider with test accounts Any thoughts? You could use [an ...
[ 0.22811058163642883, -0.3000050187110901, 0.1832040399312973, 0.5900231003761292, 0.09168162941932678, -0.10436535626649857, 0.16356587409973145, -0.3502861261367798, -0.16721588373184204, -0.6633107662200928, -0.011423244141042233, 0.353900283575058, -0.3168899714946747, -0.21421930193901...
We have an installation of MOSS 2007 that is using MS SQL 2000 as the backend database. The web front end for MOSS is on one server and the database on a separate server. We would like to move the database to a MS SQL 2005 server. Is there a recommended approach for doing this? Does anyone know of any resources that of...
[ 0.07779547572135925, 0.07770641148090363, 0.09346408396959305, -0.09819158911705017, 0.1526942104101181, 0.03908895328640938, -0.02628074213862419, 0.10384736210107803, -0.17422714829444885, -0.3588016927242279, 0.5124171376228333, 0.07524241507053375, 0.13711461424827576, 0.18432949483394...
from the existing content databases by running SharePoint Products & Technologies Configuration Wizard. 2. Copied the relevant content databases from the SQL 2000 server to the SQL 2005 server. That is, saved back-ups from SQL2000 and then restored them to SQL2005. 3. Re-ran the SharePoint Products & Technologies Confi...
[ 0.36167433857917786, 0.07919155806303024, 0.6182501912117004, -0.0065671647898852825, -0.2365662306547165, 0.12413521111011505, 0.19233937561511993, -0.27027323842048645, -0.1590208262205124, -0.738750696182251, -0.030422577634453773, 0.4203815758228302, -0.34095045924186707, 0.24388948082...
settings in IIS (i.e. web sites and application pools). Our installation was an in place upgrade from SPS2003, so the database names and SSPs were a little goofy. Recreating the farm allowed me to reconfigure things to be more similar to the default MOSS 2007 installation.
[ 0.09753976762294769, -0.3759404122829437, 0.08525146543979645, 0.018795371055603027, 0.17896908521652222, -0.08262050896883011, 0.4321240484714508, -0.10905630141496658, -0.1139897033572197, -0.6614550352096558, 0.13523633778095245, 0.6047410368919373, -0.27787211537361145, -0.181084379553...
I've done numerous searches and I realize that I can just download this file and install it either in windows/system32 or in the application's directory. My question is, how does this dll generally get installed on Vista? I tried installing the .net framework 3.5 and it didn't get installed with that. Background: I'm...
[ 0.4137267470359802, 0.0055710370652377605, 0.3796274662017822, -0.23075203597545624, -0.1567663699388504, -0.3268703818321228, 0.3449932932853699, 0.022761782631278038, -0.3086356222629547, -0.6283310651779175, -0.05808902904391289, 0.7183436155319214, -0.2595745623111725, 0.03509857133030...
currently i have jdbc code with the following basic stucture: get Connection (do the next 4 lines several times, never closing statement) get statement get result set process result set close result set close connection It occurred to me after writing this code that i need to close the statement. 1...
[ 0.006600164342671633, 0.33515676856040955, 0.7060858011245728, -0.19661813974380493, -0.38441982865333557, -0.08937956392765045, 0.36890730261802673, -0.21930958330631256, -0.2422408163547516, -0.606296956539154, -0.014855287969112396, 0.4851195514202118, -0.2652917802333832, 0.16678678989...
statement process result set close result set close connection The answer depends on your JDBC driver unfortunately. What you wrote there might work. However, the general rule is that you close your statement only when you are done with the corresponding resultset. EDIT: I realize that you had a second quest...
[ 0.024792490527033806, 0.4639733135700226, 0.5101137161254883, -0.09348008036613464, -0.3706427216529846, -0.13130275905132294, 0.40174347162246704, -0.06274295598268509, -0.12590430676937103, -0.5204494595527649, -0.17875908315181732, 0.6530805826187134, -0.08013918250799179, 0.17651990056...
Are there any tools you would recommend for site architecture design and analysis? I've checked out several such as Poseidon UML, Adalon and FuseBuilder for ColdFusion, Mindmapper and a few others but have yet to find anything that seems to strike the right balance between allowing for quick high-level planning (as can...
[ 0.26528704166412354, -0.09865482896566391, 0.12346258759498596, 0.5013478994369507, 0.008972513489425182, -0.007027330808341503, -0.11885997653007507, 0.31758949160575867, -0.15095235407352448, -0.7563450932502747, 0.2399839609861374, 0.43670135736465454, -0.008200317621231079, -0.00426251...
to any programming language, from CF to C#. Perhaps a combination of tools? My fantasy modeling tool would * Be 'smart board' enabled + Recording White Board + Act as a "pointing device" for whatever software is behind it to allow drawing/highlighting + OCR * Record Stories, as easily as 3x5 cards * Allow Use Case ...
[ 0.7389974594116211, -0.035545386373996735, 0.23289169371128082, 0.5859888195991516, 0.09160993993282318, -0.19819219410419464, -0.07232216000556946, 0.2136378139257431, -0.11699367314577103, -0.6839540600776672, -0.03382911905646324, 0.37047451734542847, 0.004226047080010176, -0.1626923233...
"sticky-notes', recordings, lap-top for work with analysis or story recording. I use Poseidon for lack of a better [affordable] tool A wiki is useful for posting documents/content where users/customers can review and comment. I've also used Visio when someone else is paying for it. I can't wait to see the other res...
[ 0.6698287725448608, -0.149368554353714, 0.27921903133392334, 0.5397506952285767, 0.09903852641582489, -0.3399055302143097, 0.058658700436353683, 0.5053480863571167, -0.30241119861602783, -0.3516409993171692, -0.011132471263408661, 0.09730126708745956, 0.1237148568034172, 0.2312545031309127...
I have an abstract base class which acts as an interface. I have two "sets" of derived classes, which implement half of the abstract class. ( one "set" defines the abstract virtual methods related to initialization, the other "set" defines those related to the actual "work". ) I then have derived classes which use mu...
[ 0.40290072560310364, -0.13601306080818176, 0.048775266855955124, -0.22205443680286407, 0.11724601686000824, 0.10470063984394073, 0.2628042697906494, -0.43599948287010193, 0.22254860401153564, -0.5790460705757141, -0.20844994485378265, 0.5219999551773071, -0.402328759431839, 0.0034741314593...
abs } class AbsWork : public AbsBase { void work() { do_this(); } // init() still abs } class NotAbsTotal : public AbsInit, public AbsWork { // Nothing, both should be defined } ``` First of all, can I do this? Can I inherit from two classes which are both derived from the same Base? (I hope so). Here is the...
[ 0.3788835108280182, -0.28525498509407043, 0.14234572649002075, -0.21749888360500336, 0.015726223587989807, -0.06634067744016647, 0.5115596652030945, -0.21022304892539978, -0.23740515112876892, -0.48020681738853455, -0.17113272845745087, 0.7738719582557678, -0.6165190935134888, -0.146716505...
void init_impl() = 0; virtual void work_impl() = 0; } ``` Because, a common idiom is to make all virtual methods private. Unfortunately, now both AbsInit, and AbsWork inherit these methods, and so NotAbsTotal inherits "two of each" ( I realize I may be butchering what is really happening at compile time ). Anyway...
[ 0.05855735391378403, -0.06984048336744308, 0.15759339928627014, -0.268975168466568, -0.08159201592206955, -0.06718405336141586, 0.5010720491409302, 0.09732238203287125, -0.09784139692783356, -0.2681352198123932, -0.07244759798049927, 0.5853345394134521, -0.6518258452415466, 0.2071908414363...
a limitation of the idiom of making virtual methods private? - How do I refactor my code to do what I want? ( Provide one common interface, but allow a way to swap out implementations for "sets" of member functions ) Edit: Seems I am not the first one: <http://en.wikipedia.org/wiki/Diamond_problem> Seems Virtual Inh...
[ 0.2991533875465393, -0.23193863034248352, -0.004070001654326916, 0.14832022786140442, -0.26759830117225647, -0.34024664759635925, 0.13097526133060455, -0.12921829521656036, -0.19246739149093628, -0.35330355167388916, 0.07165656983852386, 1.1065917015075684, -0.2177988886833191, -0.07874974...
it: ``` class AbsBase {...}; class AbsInit: public virtual AbsBase {...}; class AbsWork: public virtual AbsBase {...}; class NotAbsTotal: public AbsInit, public AbsWork {...}; ``` Basically, the default, non-virtual multiple inheritance will include a copy of *each base class* in the derived class, and includes all...
[ 0.1155230700969696, -0.1733129918575287, 0.20300021767616272, 0.026383258402347565, 0.027928270399570465, 0.017535602673888206, 0.32534775137901306, -0.20115087926387787, -0.12808844447135925, -0.28142356872558594, -0.23710596561431885, 0.6176897883415222, -0.5555734038352966, 0.1031874790...
However, note: if there is additional data in the two intermediate classes, there may be some small additional runtime overhead, to enable the code to find the shared virtual base class.
[ -0.0449569970369339, -0.2048947662115097, -0.20055754482746124, 0.23363500833511353, 0.3164474666118622, -0.021895671263337135, 0.16565854847431183, 0.0009140698239207268, -0.10721927136182785, -0.5218080282211304, -0.20722006261348724, 0.43989458680152893, 0.07274741679430008, -0.07650376...
I see little functional difference between using a property ``` public readonly property foo as string get return bar end get end property ``` or a function ``` public function foo() as string return bar end function ``` Why would I want to use one form over the other? Thanks! I read an interesting art...
[ 0.4043656289577484, 0.175842747092247, 0.16651318967342377, 0.04392363876104355, -0.15197165310382843, -0.26471200585365295, 0.10317490994930267, -0.21635830402374268, -0.14527593553066254, -0.2013411819934845, -0.25804415345191956, 0.6808281540870667, -0.057080864906311035, 0.215057194232...
or that the method may change the value each time it is called, like GetNextId() or something. DateTime.Now is a good example of a Property that should have been a Method since it returns a different value each time it is used. **For those interested- here is the article** [Choose Between Methods and Properties](htt...
[ 0.41695737838745117, -0.5026894211769104, 0.3169967234134674, 0.31958863139152527, 0.1833564043045044, 0.015126225538551807, -0.16559143364429474, -0.2738218307495117, -0.4616302251815796, -0.49347400665283203, 0.16569702327251434, 0.49401646852493286, 0.0789041817188263, 0.028170274570584...
I recently downloaded Mono 2 for my new MacBook. I'm trying to figure out how to compile Visual Studio solutions with xbuild, which is included in Mono. Any ideas? Update: xbuild supports solution files now. see [xbuild](http://www.mono-project.com/Microsoft.Build)
[ 0.7631556391716003, 0.17004278302192688, -0.1701841652393341, -0.036945998668670654, -0.3511289060115814, -0.18272440135478973, 0.5282067060470581, -0.17956700921058655, -0.08907093852758408, -0.3918466866016388, -0.15982449054718018, 0.5614010691642761, -0.507129967212677, -0.109739772975...
The vast majority of applications does not handle "disk full" scenarios properly. Example: an installer doesn't see that the disk is full, ignores all errors, and finally happily announces "installation complete!", or an email program is unaware that the message it has just downloaded could not be saved, and tells th...
[ 0.5011219382286072, 0.2516961097717285, 0.1831960380077362, 0.07540097832679749, 0.3448755145072937, -0.5530170798301697, 0.41086679697036743, 0.12970797717571259, -0.2089351862668991, -0.37598809599876404, -0.48790568113327026, 0.7774169445037842, 0.004270647652447224, -0.0023145822342485...
about any special requirements. 4. Clean up after itself. As a developer, techniques to do this include: 1. Aborting **only** when there is no alternative, and allowing the user a chance to make a new choice if the previous one fails (see AgentThirteen's answer). 2. Checking for required resources (memory, disk space...
[ 0.4783192276954651, 0.04762822762131691, 0.11407247185707092, -0.17472736537456512, 0.24989072978496552, -0.21782197058200836, 0.8038914799690247, -0.10847681760787964, -0.18126130104064941, -0.3716075122356415, -0.805463433265686, 0.40433716773986816, -0.25036415457725525, 0.0290619004517...
application in the background and use other tools to fix the problem. 5. Maintaining an "undo" list: the history of actions that have been performed so far. If the application must abort, offer an opportunity to undo those actions.
[ 0.4035302400588989, -0.06322697550058365, 0.41537317633628845, 0.11600623279809952, 0.30558285117149353, -0.15215161442756653, 0.3721182942390442, -0.24384266138076782, -0.5302006006240845, -0.43422818183898926, -0.4329395294189453, 0.6981455087661743, -0.06529197841882706, -0.230704575777...
I want to be good in Data Structures and Analysis esp. in Java. I often find myself very weak. What should I do to be good in it? Any good mental exercises? An excellent book on complexity analysis, including the properties of popular and not-so-popular data structures, is [Introduction to Algorithms, Second Edition](h...
[ 0.16009803116321564, 0.15906789898872375, 0.4057866334915161, 0.057520944625139236, 0.24652260541915894, 0.022343512624502182, 0.24388886988162994, -0.32660380005836487, -0.408504843711853, -0.37860795855522156, -0.218877911567688, 0.5136879086494446, 0.005534802097827196, -0.4054555892944...
google ["acm practice problem"](http://www.google.com/search?q=acm+practice+problem). This is perhaps the thing that will give you the most tangible benefits in everyday coding. Most all of these will accept and evaluate Java (and C/C++) solutions, so you're all set on the language front.
[ 0.5191728472709656, 0.3719440698623657, -0.06197543814778328, 0.04332931712269783, -0.23938873410224915, -0.2562541663646698, 0.46616435050964355, 0.07444168627262115, -0.21418046951293945, -0.30128228664398193, -0.1393241435289383, 0.8192228078842163, -0.14965985715389252, -0.452184915542...
I want to be able to load a serialized xml class to a Soap Envelope. I am starting so I am not filling the innards so it appears like: ``` <Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/" /> ``` I want it to appear like: ``` <Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/" ></Envel...
[ 0.31153011322021484, 0.09613289684057236, 0.1470344513654709, -0.15050336718559265, -0.32733309268951416, -0.016872812062501907, 0.2246520221233368, -0.5354456901550293, 0.0833742693066597, -0.9125194549560547, 0.15792739391326904, 0.05990838631987572, -0.1702348291873932, 0.00864815339446...
but sadly I don't know the right keyword for this. As always thanks for your help. [Edit] The error comes when I try to use this instruction ``` System.Xml.Serialization.XmlSerializer xmlout = new System.Xml.Serialization.XmlSerializer(typeof(TestXmlEnvelope)); System.IO.MemoryStream memOut = new System.IO.MemoryStr...
[ 0.1540975719690323, 0.16595898568630219, 0.3679347634315491, -0.0697370395064354, -0.09211298078298569, -0.039815738797187805, 0.5254430174827576, -0.39594215154647827, -0.059248097240924835, -0.7421507239341736, 0.10843586921691895, 0.5338528752326965, -0.17718923091888428, 0.136913225054...
This, however, generates the shorthand `<tag/>` form when there is no content. The `WriteFullEndElement()` writes the end tag separately. You can inject your own `XmlTextWriter` into the middle that the serializer would then use to exhibit that functionality. Given that `serializer` is the appropriate `XmlSerializer`...
[ 0.22475126385688782, -0.0304159726947546, 0.7106815576553345, -0.22439347207546234, 0.021229945123195648, -0.22378608584403992, 0.2581331133842468, -0.45880070328712463, 0.2755856513977051, -0.7249026298522949, -0.1771087497472763, 0.6898145079612732, -0.5208835601806641, 0.068212285637855...
Encoding enc) : base(stream, enc) { } public XmlTextWriterFull(String str, Encoding enc) : base(str, enc) { } ``` Then, use the memory stream as your inner stream in the constructor as before: ``` System.IO.MemoryStream memOut = new System.IO.MemoryStream(); XmlTextWriterFull writer = new XmlTextWriterFull(memOut, E...
[ -0.16132837533950806, -0.09008295089006424, 0.7495553493499756, -0.10676088184118271, 0.1653061807155609, 0.09228777140378952, -0.017599409446120262, -0.23089343309402466, 0.14363792538642883, -0.9086534380912781, -0.16223138570785522, 0.6186068058013916, -0.2665378451347351, -0.0110318195...
I was reading an article on MSDN Magazine about using the [Enumerable class in LINQ](http://msdn.microsoft.com/en-us/magazine/cc700332.aspx) to generate a random array. The article uses VB.NET and I'm not immediately sure what the equivalent is in C#: ``` Dim rnd As New System.Random() Dim numbers = Enumerable.Range(1...
[ 0.39666467905044556, -0.2346784621477127, 0.32205304503440857, -0.13265693187713623, -0.18949519097805023, 0.023242849856615067, -0.15707699954509735, -0.3949677646160126, -0.41844165325164795, -0.5562519431114197, -0.08199433982372284, 0.4489804804325104, -0.3408541977405548, 0.2148424685...
does anybody know how could I get the TWO most largest values from the third column on the following array? ``` $ar = array(array(1, 1, 7.50, 'Hello'), array(1, 2, 18.90, 'Hello'), array(3, 5, 11.50, 'Hello'), array(2, 4, 15.90, 'Hello')); ``` Output should be: ...
[ -0.058317601680755615, 0.6400635242462158, 0.5022807717323303, -0.20639659464359283, 0.11326921731233597, 0.5423189401626587, 0.35424602031707764, -0.17203372716903687, -0.1284232884645462, -0.3441004753112793, 0.16224873065948486, 0.6548282504081726, -0.1687757819890976, 0.093520209193229...
change, just iterate over the array and keep track of the two largest numbers. If not, sort the arrays using [`usort`()](http://www.php.net/manual/en/function.usort.php) and providing an appropriate callback. Then take the first two values: ``` function cmp($a, $b) { $a = $a[2]; $b = $b[2]; return $a == $b...
[ 0.06463856995105743, -0.015646828338503838, 0.6637181639671326, -0.38121333718299866, 0.30196672677993774, 0.42734426259994507, -0.10899299383163452, -0.5675258040428162, -0.3078475594520569, -0.4390510022640228, -0.14612795412540436, 0.5606470704078674, -0.6136080622673035, 0.111416026949...
I'm trying to figure out how to restrict access to a page unless the page is navigated to from a specific "gate" page. Essentially I want the page to be unaccessible unless you're coming from the page that comes before it in my sitemap. I'm not certain this is even possible. If possible, can you limit your suggestions ...
[ 0.3484901189804077, -0.03219477832317352, 0.4459047317504883, 0.054619815200567245, 0.2674327790737152, -0.31167665123939514, 0.3249013423919678, 0.07821095734834671, -0.15033674240112305, -0.538561999797821, -0.12692053616046906, -0.004276724997907877, -0.2723851203918457, 0.6378614902496...
there, the script redirects to another page. Something like: ``` <a href="restricted.php?pass=eERadWRWE3ad=">Go!</a> ``` **Edit**: I don't know JS well enough to print that code but I know there are [several libraries](http://www.google.com/search?q=javascript+encryption+library&ie=utf-8&oe=utf-8&aq=t&rls=org.mozil...
[ 0.18161341547966003, 0.20208840072155, 0.30271661281585693, -0.02041218988597393, 0.19754566252231598, -0.4262860417366028, 0.45606592297554016, 0.12197986245155334, -0.3440309762954712, -0.6920737624168396, -0.2813437283039093, 0.42604702711105347, -0.452348917722702, 0.09617536514997482,...
I'm currently working on an application which requires transmission of speech encoded to a specific audio format. ``` System.Speech.AudioFormat.SpeechAudioFormatInfo synthFormat = new System.Speech.AudioFormat.SpeechAudioFormatInfo(System.Speech.AudioFormat.EncodingFormat.Pcm, ...
[ 0.10367570072412491, 0.349361389875412, 0.4249666631221771, 0.15510845184326172, 0.17689257860183716, 0.39218026399612427, 0.20640678703784943, -0.36249440908432007, -0.12423534691333771, -0.5613289475440979, -0.3081817328929901, 0.5653347969055176, -0.3026618957519531, 0.20927195250988007...
per second, block alignment of 2. When I attempt to execute the following code there is nothing written to my MemoryStream instance; however when I change from 8000 samples per second up to 11025 the audio data is written successfully. ``` SpeechSynthesizer synthesizer = new SpeechSynthesizer(); waveStream = new Mem...
[ -0.14136818051338196, -0.20707160234451294, 0.844106912612915, -0.17726486921310425, 0.2360440194606781, 0.5855125188827515, 0.5924854874610901, -0.4950668215751648, 0.12635092437267303, -0.6178381443023682, -0.28865987062454224, 0.6559637188911438, 0.08315887302160263, -0.0076111787930130...
I couldn't find anything useful in the documentation regarding SetOutputToAudioStream and why it succeeds at 11025 samples per second and not 8000. I have a workaround involving a wav file that I generated and converted to the correct sample rate using some sound editing tools, but I would like to generate the audio fr...
[ 0.39672836661338806, 0.1503390669822693, 0.3903682231903076, 0.0207167137414217, -0.22046887874603271, -0.024135204032063484, 0.45340532064437866, -0.4932342767715454, 0.023536615073680878, -0.7221069931983948, 0.18016691505908966, 0.6938387155532837, 0.08689718693494797, 0.131070479750633...
for LH Michael and LH Michelle, and failure varies for certain voice settings defined in the PromptBuilder. It's entirely possible that the LH Michael and LH Michelle voices simply don't support 8000 Hz sample rates (because they inherently generate samples > 8000 Hz). SAPI allows engines to reject unsupported rates.
[ -0.3213622272014618, -0.21802042424678802, 0.3379136025905609, -0.05504407361149788, 0.2155938297510147, 0.7023389935493469, 0.5681526064872742, -0.2839236855506897, 0.058036256581544876, -0.44579553604125977, -0.41720250248908997, 0.4560193717479706, 0.12024575471878052, -0.11868435889482...
As a follow-up to [this](https://stackoverflow.com/questions/199518/how-to-programatically-add-mapped-network-passwords-winxp) question I am hoping someone can help with the [CredEnumerate](http://msdn.microsoft.com/en-us/library/aa374794(VS.85).aspx) API. As I understand from the documentation the PCREDENTIALS out p...
[ 0.09672887623310089, 0.20854155719280243, 0.26741546392440796, -0.0067155808210372925, 0.0014169663190841675, -0.19061101973056793, -0.018988952040672302, -0.11942272633314133, -0.1325085163116455, -0.5867856740951538, 0.04172796383500099, 0.5645444393157959, -0.14792384207248688, 0.302262...
bool ret = false; ret = CredEnumerate(null, 0, out count, out pCredentials); if (ret != false) { IntPtr[] credentials = new IntPtr[count]; IntPtr p = pCredentials; for (int i = 0; i < count; i++)
[ 0.005937198642641306, -0.08444984257221222, 0.4492858052253723, -0.5023009181022644, -0.05352533981204033, 0.26988086104393005, 0.708124041557312, -0.7077169418334961, 0.06796339899301529, -0.0819467157125473, -0.4787468910217285, 0.7030442953109741, -0.34201639890670776, 0.221413448452949...
{ p = new IntPtr(p.ToInt32() + i); credentials[i] = Marshal.ReadIntPtr(p); } List<Credential> creds = new List<Credential>(credentials.Length); foreach (IntPtr ptr in credentials) {
[ -0.011649558320641518, 0.20348447561264038, 0.6738821268081665, -0.03482126072049141, 0.17026662826538086, 0.10899689048528671, 0.4134261906147003, -0.9547452330589294, -0.25024673342704773, -0.1991756111383438, -0.21505331993103027, 0.6662970781326294, 0.0888519212603569, 0.12842966616153...
creds.Add((Credential)Marshal.PtrToStructure(ptr, typeof(Credential))); } } ``` Unfortunately, while this works for the first credential in the array—it gets generated and added to the list correctly—subsequent array items bomb at Marshal.PtrToStructure with the following error: *Attempted to rea...
[ 0.4602808952331543, 0.37735944986343384, 0.2046590894460678, 0.1486814171075821, 0.2983539402484894, -0.10190454125404358, 0.5386283993721008, -0.3765105903148651, -0.38133832812309265, -0.4594842195510864, -0.13766615092754364, 0.7125083208084106, -0.2474008947610855, 0.16994309425354004,...
will need to dereference the item to get the `PCREDENTIALS` instance. I found [this post with some example code](http://www.msnewsgroups.net/group/microsoft.public.dotnet.languages.csharp/topic33651.aspx) for performing what you want to do: ``` [DllImport("advapi32", SetLastError = true, CharSet=CharSet.Unicode)] sta...
[ 0.021653316915035248, 0.07933519035577774, 0.6275075674057007, 0.06369001418352127, 0.061115168035030365, -0.07368253916501999, 0.48116108775138855, -0.7351154088973999, -0.03670850023627281, -0.3730115294456482, -0.508704423904419, 0.619141161441803, -0.3122510612010956, 0.461013942956924...
n * Marshal.SizeOf(typeof(IntPtr))); } } else // failed.... ``` Then for each pointer you'll need to use `Marshal.PtrToStructure` to dereference the pointer into a `PCREDENTIALS` struct instance (sorry I cannot find the typedef for `PCREDENTIALS` anywhere, I'll assume you have it - and if you do don't forget the...
[ 0.00627350015565753, 0.26220768690109253, 0.3187766969203949, -0.034646663814783096, 0.24221773445606232, -0.05365487560629845, 0.3349204659461975, -0.6739982962608337, -0.23786737024784088, -0.5838704705238342, 0.13472561538219452, 0.6389027237892151, -0.16482804715633392, 0.1122326254844...
results but I wanted to leave the integrity of the example intact.
[ 0.2747085690498352, 0.039896976202726364, 0.13281843066215515, 0.07733052223920822, -0.17653857171535492, -0.08184304088354111, 0.1754503846168518, -0.246002659201622, 0.11817124485969543, -0.4334314465522766, 0.2996252775192261, 0.5221104025840759, 0.21640658378601074, 0.08138479292392731...
What are the ways by which we can reduce the size of the HTML Response sent by an asp.net application? I am using Controls which are not owned by me and it produces output with white spaces. I am interested in Minifying the entire HTML output of the page just like how google does (View source www.google.com) to improv...
[ 0.34498360753059387, -0.0343548022210598, 0.17249280214309692, -0.12275625765323639, -0.29905545711517334, 0.052006933838129044, 0.42763444781303406, -0.19681614637374878, -0.456584095954895, -0.5512100458145142, 0.07787087559700012, 0.49751389026641846, -0.43718990683555603, 0.07269569486...
Would there a more elegant way of writing the following syntax? ``` Thread t0 = new Thread(new ParameterizedThreadStart(doWork)); t0.Start('someVal'); t0.Join(); Thread t1 = new Thread(new ParameterizedThreadStart(doWork)); t1.Start('someDiffVal'); t1.Join(); ``` Pre...
[ 0.10927444696426392, -0.05546364560723305, 0.40840139985084534, -0.14550331234931946, -0.006746863480657339, -0.057687241584062576, 0.2144218236207962, -0.27739912271499634, -0.34854671359062195, -0.3335687220096588, -0.15264321863651276, 0.23278169333934784, -0.4767201244831085, 0.1600739...
below), it errors that the thread can't be restarted. For example: ``` Thread t1 = new Thread(new ParameterizedThreadStart(doWork)); t1.Start('someVal'); t1.Start('someDiffVal'); ``` Why would you start a thread and then join against it immediately? I'd normally do something like this: ``` L...
[ 0.16893668472766876, -0.1826065182685852, 0.4785199463367462, -0.14931227266788483, 0.049563027918338776, -0.20869147777557373, 0.27154541015625, -0.3056173324584961, -0.4841729998588562, -0.45228850841522217, -0.24912425875663757, 0.45078790187835693, -0.511352002620697, 0.563086748123169...
t.Start(); threads.Add(t); } foreach (Thread t in threads) { t.Join(); } ```
[ 0.2349478304386139, -0.27126702666282654, 0.2668454349040985, -0.4413608908653259, 0.3056606948375702, -0.01670719124376774, 0.3625403642654419, 0.04912061244249344, -0.12879787385463715, -0.5539937019348145, -0.47023436427116394, 0.4617162048816681, -0.5421075224876404, 0.5568752288818359...
I've been tasked with implementing a Date/Time selector for several areas of our web project, and instructed to use a control that another developer created as part of it. The control I'm working on is supposed to allow the user to choose a date from a calendar, choose a format for the display of that date (from severa...
[ 0.440254271030426, -0.31047454476356506, 0.2770066261291504, -0.05012960359454155, 0.18887095153331757, -0.09678088128566742, -0.18678244948387146, -0.08997920900583267, -0.16947171092033386, -0.5925424695014954, 0.12239797413349152, -0.003885147860273719, 0.06915436685085297, 0.0507892817...
I began integrating it into the pages which needed Date and/or time inputs. In my testing of those implementations, I discovered a bug: when I include multiple copies of my control on a page, only the first one gets the jQuery calendar. The others are not tied to it. I have tried some of the methods suggested in a see...
[ 0.18401746451854706, -0.13791604340076447, 0.33808422088623047, -0.05088410526514053, -0.015661364421248436, -0.25113019347190857, -0.22547943890094757, 0.02706090360879898, -0.09279476851224899, -0.4660247564315796, -0.06665421277284622, 0.1430261731147766, -0.2698669731616974, 0.07183586...
<mycontrol> <west-windjQuerycontrol /> </mycontrol> <mycontrol> <west-windjQuerycontrol /> </mycontrol> </page> ``` Now, the strange part: When there are multiple copies of the west-wind control on the page, without the other user control containing them, they work correctly. Other than the jQuery control...
[ 0.07715687900781631, 0.40775349736213684, 0.5332222580909729, 0.2017005831003189, 0.011725596152245998, -0.3943135738372803, 0.0690324679017067, 0.153028666973114, -0.24732419848442078, -0.5689893364906311, -0.0021882301662117243, 0.23062583804130554, 0.11336375772953033, 0.295144975185394...
hard to say without the HTML. I've included it below. ``` <form name="form1" method="post" action="ControlTest.aspx" id="form1"> <div> <input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" /> <input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" /> <input type="hidden" name="__LASTF...
[ -0.3092186748981476, -0.3506067395210266, 0.589870274066925, -0.34125927090644836, 0.005150638986378908, -0.015289600938558578, 0.13611766695976257, -0.368623286485672, -0.1698925644159317, -0.4885859191417694, -0.4115133583545685, 0.824795126914978, 0.019509728997945786, -0.00716911628842...
} } //]]> </script> <script src="/SSO/DE/WebResource.axd?d=jMPpL-KK8_mPj_ssZzGblw2&amp;t=633481894229838141" type="text/javascript"></script> <script src="/SSO/DE/ScriptResource.axd?d=8KwRIGaNAD3hi2Loz3YV-uxgrdZpGe8nnwH5E3gxLW_lQpnYjRbyIYThTnHtD9rt0&amp;t=633613004148118290" type="text/javascript"></script> <...
[ -0.5358350276947021, 0.07797820121049881, 0.3077579438686371, -0.07962135225534439, 0.11128097027540207, 0.09855564683675766, 0.29775726795196533, -0.5889772772789001, -0.25068143010139465, -0.8442962169647217, -0.2093927562236786, 0.8040704727172852, 0.075922891497612, -0.2943014204502105...
</div> <div id="datePicker_Div2" class="DEInput datePicker"> <input name="datePicker$DateSelector" type="text" onchange="javascript:setTimeout('__doPostBack(\'datePicker$DateSelector\',\'\')', 0)" onkeypress="if (WebForm_TextBoxKeyHandler(event) == false) return false;" id="datePicker_DateSe...
[ -0.3060160279273987, -0.225364089012146, 0.5445618629455566, -0.11103285104036331, 0.23244017362594604, 0.27519118785858154, 0.05692964419722557, -0.007218418177217245, -0.05864446982741356, -0.4508604407310486, -0.5456905364990234, 0.3086562156677246, -0.048851314932107925, 0.034683171659...
value="es-MX">es-MX</option> </select> </div> </div> <div id="datePicker_Div3" class="AdminRowEven DERow"> <div id="datePicker_Div4" class="DELabel"> <span id="datePicker_FormatChoiceLabel">Choose your display format: </span> </div> <di...
[ -0.21165010333061218, -0.4236356317996979, 0.6730737090110779, -0.06984089314937592, -0.005591745488345623, 0.10011225938796997, -0.20128288865089417, -0.1942882239818573, -0.24241556227207184, -0.7191278338432312, -0.003593422006815672, 0.37978312373161316, 0.030107513070106506, 0.0091091...
<select name="datePicker$DateFormatSelector" onchange="javascript:setTimeout('__doPostBack(\'datePicker$DateFormatSelector\',\'\')', 0)" id="datePicker_DateFormatSelector"> <option selected="selected" value="Choose a date first">Choose a date first</option> </select> </div> ...
[ -0.27654409408569336, -0.5700317025184631, 0.38279852271080017, -0.08802773803472519, 0.08357296139001846, 0.15231485664844513, -0.29811689257621765, 0.031974829733371735, -0.011455549858510494, -0.5420615077018738, -0.26204806566238403, 0.29864710569381714, -0.10924938321113586, 0.2486349...
<span id="datePicker_FormatOverrideLabel">Or enter your own text</span> </div> <div id="datePicker_Div8" class="DEInput"> <input name="datePicker$DateFormatOverride" type="text" onchange="javascript:setTimeout('__doPostBack(\'datePicker$DateFormatOverride\',\'\')', 0)" on...
[ 0.028380880132317543, -0.30299171805381775, 0.6084960103034973, -0.09038349986076355, 0.006111226975917816, -0.09627608954906464, 0.08030609786510468, -0.3997046649456024, -0.017975304275751114, -0.6239374876022339, -0.06587126106023788, 0.5790375471115112, -0.046644773334264755, -0.114930...
<br /> <div id="date1_Div0" class="AdminRowOdd DERow"> <div id="date1_Div1" class="DELabel"> <span id="date1_DateLabel">Date</span> </div> <div id="date1_Div2" class="DEInput datePicker"> <input name="date1$DateSelector" type="text" onchange="javas...
[ -0.048648931086063385, -0.2555023729801178, 0.5368722081184387, -0.28133639693260193, -0.15675796568393707, 0.003790327813476324, -0.13439024984836578, -0.2670048773288727, -0.2324751764535904, -0.3150145709514618, -0.19972646236419678, 0.2560771703720093, -0.0978207066655159, 0.0723965093...
id="date1_DateSelector" style="width:80px;" /> <select name="date1$languageSelector" onchange="javascript:setTimeout('__doPostBack(\'date1$languageSelector\',\'\')', 0)" id="date1_languageSelector"> <option selected="selected" value="en-US">en-US</option> <option value="fr-CA">fr-CA</option> ...
[ -0.5408506989479065, -0.0058515481650829315, 0.2518449127674103, -0.23829905688762665, 0.06333820521831512, 0.40448442101478577, 0.3107764720916748, -0.028484128415584564, -0.2031370997428894, -0.43264925479888916, -0.6677643060684204, 0.2772313356399536, -0.017744189128279686, -0.05005975...
<span id="date1_FormatChoiceLabel">Choose your display format:</span> </div> <div id="date1_Div5" class="DEInput"> <select name="date1$DateFormatSelector" onchange="javascript:setTimeout('__doPostBack(\'date1$DateFormatSelector\',\'\')', 0)" id="date1_DateFormatSelector"> <op...
[ 0.02422320656478405, -0.5956616997718811, 0.7096424102783203, -0.14320552349090576, -0.15868328511714935, 0.02282402664422989, -0.3834872543811798, -0.2674568295478821, -0.21391601860523224, -0.731312096118927, -0.09303174167871475, 0.3851228952407837, -0.014475480653345585, -0.17321911454...
</div> <div id="date1_Div6" class="AdminRowOdd DERow"> <div id="date1_Div7" class="DELabel"> <span id="date1_FormatOverrideLabel">Or enter your own text</span> </div> <div id="date1_Div8" class="DEInput"> <input name="date1$DateFormatOverride" ...
[ 0.1322137713432312, -0.34248247742652893, 0.5422157645225525, -0.06182420626282692, -0.19655810296535492, -0.03816467896103859, 0.042603496462106705, -0.49906086921691895, -0.056806713342666626, -0.5717677474021912, -0.2072315365076065, 0.4629204571247101, -0.12551547586917877, -0.04108181...